#
# Author:: Seth Chisamore (<schisamo@chef.io>)
# Copyright:: 2011-2016, Chef Software, Inc.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

require 'chef/resource'

class Chef
  class Resource
    class Database < Chef::Resource
      def initialize(name, run_context = nil)
        super
        @resource_name = :database
        @database_name = name
        @allowed_actions.push(:create, :drop, :query)
        @action = :create
      end

      def database_name(arg = nil)
        set_or_return(
          :database_name,
          arg,
          kind_of: String
        )
      end

      def connection(arg = nil)
        set_or_return(
          :connection,
          arg,
          required: true
        )
      end

      def sql(arg = nil, &block)
        arg ||= block
        set_or_return(
          :sql,
          arg,
          kind_of: [String, Proc]
        )
      end

      def sql_query
        if sql.is_a?(Proc)
          sql.call
        else
          sql
        end
      end

      def template(arg = nil)
        set_or_return(
          :template,
          arg,
          kind_of: String,
          default: 'DEFAULT'
        )
      end

      def collation(arg = nil)
        set_or_return(
          :collation,
          arg,
          kind_of: String
        )
      end

      def encoding(arg = nil)
        set_or_return(
          :encoding,
          arg,
          kind_of: String,
          default: 'DEFAULT'
        )
      end

      def tablespace(arg = nil)
        set_or_return(
          :tablespace,
          arg,
          kind_of: String,
          default: 'DEFAULT'
        )
      end

      def connection_limit(arg = nil)
        set_or_return(
          :connection_limit,
          arg,
          kind_of: String,
          default: '-1'
        )
      end

      def owner(arg = nil)
        set_or_return(
          :owner,
          arg,
          kind_of: String
        )
      end
    end
  end
end

{'repo_name': 'chef-boneyard/database', 'stars': '188', 'repo_language': 'Ruby', 'file_name': 'sqlite.rb', 'mime_type': 'text/plain', 'hash': 138410981814163148, 'source_dataset': 'data'}


#pragma once

#include "ofMain.h"
#include "ofxOsc.h"

#define LOCAL_HOST "127.0.0.1"
#define INCOMING_SYNAPSE_DATA_PORT 12345
#define OUTGOING_SYNAPSE_DATA_PORT 12346
#define OUTGOING_STREAMING_DATA_PORT 5000

struct Joint{
    Joint(){
        trackWorldJoint = true;
        trackBodyJoint = true;
        clear();
    }
    void clear(){
        worldX = 0;
        worldY = 0;
        worldZ = 0;
        localX = 0;
        localY = 0;
        localZ = 0;
    }
    vector< double > getWorldCoordAsVector(){
        vector< double > data(3);
        data[0] = worldX;
        data[1] = worldY;
        data[2] = worldZ;
        return data;
    }
    vector< double > getLocalCoordAsVector(){
        vector< double > data(3);
        data[0] = localX;
        data[1] = localY;
        data[2] = localZ;
        return data;
    }
    double worldX;
    double worldY;
    double worldZ;
    double localX;
    double localY;
    double localZ;
    bool trackWorldJoint;
    bool trackBodyJoint;
};
typedef struct Joint Joint;

class SynapseStreamer{

public:

    SynapseStreamer();
    ~SynapseStreamer();

    void openSynapseConnection(unsigned int receiverIncomingDataPort = INCOMING_SYNAPSE_DATA_PORT, unsigned int senderOutgoingDataPort = OUTGOING_SYNAPSE_DATA_PORT,string ipAddress = LOCAL_HOST);
    void openOutgoingConnection(unsigned int outgoingDataPort = OUTGOING_STREAMING_DATA_PORT,string ipAddress = LOCAL_HOST);
    void update(){ parseIncomingMessages(); }
    void parseIncomingMessages();
    void drawTrackedJoints(float x,float y,float width,float height);

    //Getters
    bool getNewMessage();
    vector< double > getHeadJoint(){ return head.getWorldCoordAsVector(); }
    vector< double > getTorsoJoint(){ return torso.getWorldCoordAsVector(); }
    vector< double > getRightShoulderJoint(){ return rightShoulder.getWorldCoordAsVector(); }
    vector< double > getLeftShoulderJoint(){ return leftShoulder.getWorldCoordAsVector(); }
    vector< double > getRightElbowJoint(){ return rightElbow.getWorldCoordAsVector(); }
    vector< double > getLeftElbowJoint(){ return leftElbow.getWorldCoordAsVector(); }
    vector< double > getRightHandJoint(){ return rightHand.getWorldCoordAsVector(); }
    vector< double > getLeftHandJoint(){ return leftHand.getWorldCoordAsVector(); }
    vector< double > getRightHipJoint(){ return rightHip.getWorldCoordAsVector(); }
    vector< double > getLeftHipJoint(){ return leftHip.getWorldCoordAsVector(); }
    vector< double > getRightKneeJoint(){ return rightKnee.getWorldCoordAsVector(); }
    vector< double > getLeftKneeJoint(){ return leftKnee.getWorldCoordAsVector(); }
    vector< double > getRightFootJoint(){ return rightFoot.getWorldCoordAsVector(); }
    vector< double > getLeftFootJoint(){ return leftFoot.getWorldCoordAsVector(); }

    vector< double > getHeadJointBody(){ return head.getLocalCoordAsVector(); }
    vector< double > getTorsoJointBody(){ return torso.getLocalCoordAsVector(); }
    vector< double > getRightShoulderJointBody(){ return rightShoulder.getLocalCoordAsVector(); }
    vector< double > getLeftShoulderJointBody(){ return leftShoulder.getLocalCoordAsVector(); }
    vector< double > getRightElbowJointBody(){ return rightElbow.getLocalCoordAsVector(); }
    vector< double > getLeftElbowJointBody(){ return leftElbow.getLocalCoordAsVector(); }
    vector< double > getRightHandJointBody(){ return rightHand.getLocalCoordAsVector(); }
    vector< double > getLeftHandJointBody(){ return leftHand.getLocalCoordAsVector(); }
    vector< double > getRightHipJointBody(){ return rightHip.getLocalCoordAsVector(); }
    vector< double > getLeftHipJointBody(){ return leftHip.getLocalCoordAsVector(); }
    vector< double > getRightKneeJointBody(){ return rightKnee.getLocalCoordAsVector(); }
    vector< double > getLeftKneeJointBody(){ return leftKnee.getLocalCoordAsVector(); }
    vector< double > getRightFootJointBody(){ return rightFoot.getLocalCoordAsVector(); }
    vector< double > getLeftFootJointBody(){ return leftFoot.getLocalCoordAsVector(); }

    double getHandDistFeature(){ return handDistFeature; }

    //Setters
    void trackAllJoints(bool trackStatus,unsigned int jointPos = ALL_JOINT_POSITIONS);
    void trackHead(bool trackStatus,unsigned int jointPos = ALL_JOINT_POSITIONS);
    void trackTorso(bool trackStatus,unsigned int jointPos = ALL_JOINT_POSITIONS);
    void trackRightShoulder(bool trackStatus,unsigned int jointPos = ALL_JOINT_POSITIONS);
    void trackLeftShoulder(bool trackStatus,unsigned int jointPos = ALL_JOINT_POSITIONS);
    void trackRightElbow(bool trackStatus,unsigned int jointPos = ALL_JOINT_POSITIONS);
    void trackLeftElbow(bool trackStatus,unsigned int jointPos = ALL_JOINT_POSITIONS);
    void trackRightHand(bool trackStatus,unsigned int jointPos = ALL_JOINT_POSITIONS);
    void trackLeftHand(bool trackStatus,unsigned int jointPos = ALL_JOINT_POSITIONS);
    void trackRightHip(bool trackStatus,unsigned int jointPos = ALL_JOINT_POSITIONS);
    void trackLeftHip(bool trackStatus,unsigned int jointPos = ALL_JOINT_POSITIONS);
    void trackRightKnee(bool trackStatus,unsigned int jointPos = ALL_JOINT_POSITIONS);
    void trackLeftKnee(bool trackStatus,unsigned int jointPos = ALL_JOINT_POSITIONS);
    void trackRightFoot(bool trackStatus,unsigned int jointPos = ALL_JOINT_POSITIONS);
    void trackLeftFoot(bool trackStatus,unsigned int jointPos = ALL_JOINT_POSITIONS);
    void computeHandDistFeature(bool status){ computeHandDistanceFeature = status; }

private:
    //Private functions
    void clear();
    void sendJointRequests();
    double euclideanDistance(vector< double > a,vector< double > b);

    //OSC connections and counters
    ofxOscReceiver	receiver;
    ofxOscSender sender;
    ofxOscSender streamer;
    unsigned int sendMessageCounter;
    unsigned int sendMessageCounterValue;

    //Joints
    Joint head;
    Joint torso;
    Joint rightShoulder;
    Joint leftShoulder;
    Joint rightElbow;
    Joint leftElbow;
    Joint rightHand;
    Joint leftHand;
    Joint rightHip;
    Joint leftHip;
    Joint rightKnee;
    Joint leftKnee;
    Joint rightFoot;
    Joint leftFoot;

    //Features
    double handDistFeature;

    bool synapseConnectionOpen;
    bool streamingConnectionOpen;
    bool streamJointPositions;
    bool computeHandDistanceFeature;
    bool newMessageReceived;

    enum JointPositions{ALL_JOINT_POSITIONS=0,BODY_JOINT_POSITION,WORLD_JOINT_POSITION};

};

{'repo_name': 'nickgillian/ofxGrt', 'stars': '115', 'repo_language': 'C++', 'file_name': 'ofApp.h', 'mime_type': 'text/x-c++', 'hash': -8516276686684069672, 'source_dataset': 'data'}


// Copyright 2020 The TensorFlow Runtime Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//      http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

//===- device.cc ------------------------------------------------*- C++ -*-===//
//
// This file contains implementation of Device abstraction.
//
//===----------------------------------------------------------------------===//

#include "tfrt/host_context/device.h"

#include "llvm/ADT/FunctionExtras.h"

namespace tfrt {

const DeviceType& DeviceTypeRegistry::RegisterDeviceType(string_view type) {
  for (auto& dt : types_) {
    if (dt.name() == type) {
      assert(false && "re-registered existing device type.");
    }
  }
  types_.push_back(DeviceType(type));
  return types_.back();
}

const DeviceType& DeviceTypeRegistry::GetDeviceType(string_view type) const {
  for (auto& dt : types_) {
    if (dt.name() == type) {
      return dt;
    }
  }
  llvm_unreachable("invalid device type");
}

DeviceTypeRegistry* DeviceTypeRegistry::GetStaticDeviceTypeRegistry() {
  static DeviceTypeRegistry* ret = new DeviceTypeRegistry();
  return ret;
}

const DeviceType& RegisterDeviceType(string_view type) {
  return DeviceTypeRegistry::GetStaticDeviceTypeRegistry()->RegisterDeviceType(
      type);
}

const DeviceType& GetStaticDeviceType(string_view type) {
  return DeviceTypeRegistry::GetStaticDeviceTypeRegistry()->GetDeviceType(type);
}
}  // namespace tfrt

{'repo_name': 'tensorflow/runtime', 'stars': '380', 'repo_language': 'MLIR', 'file_name': 'build.bzl', 'mime_type': 'text/plain', 'hash': -2949899439313245122, 'source_dataset': 'data'}


import Octicon from '../components/Octicon.vue'

Octicon.register({"diff-ignored":{"width":14,"height":16,"d":"M13 1H1c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h12c.55 0 1-.45 1-1V2c0-.55-.45-1-1-1zm0 13H1V2h12v12zm-8.5-2H3v-1.5L9.5 4H11v1.5L4.5 12z"}})

{'repo_name': 'Justineo/vue-octicon', 'stars': '129', 'repo_language': 'JavaScript', 'file_name': 'icon.tpl', 'mime_type': 'text/plain', 'hash': -2080491521984093958, 'source_dataset': 'data'}


package tofu.higherKind
import cats.data.Tuple2K
import cats.tagless.ApplyK
import cats.~>
import simulacrum.typeclass

/**
  * higher order form of monoidal functor
  * for all F[_], uf: U[F] , zipWith2K(uf, unitK)(Function2K((f, _) => f)) == uf
  *  for all F[_], uf: U[F] , zipWith2K(unitK, uf)(Function2K((_, f) => f)) == uf
  * @tparam U - higher order functor
  */
@typeclass trait MonoidalK[U[_[_]]] extends PureK[U] with ApplyK[U] {
  def zipWith2K[F[_], G[_], H[_]](af: U[F], ag: U[G])(f2: Function2K[F, G, H]): U[H]

  override def map2K[F[_], G[_], H[_]](af: U[F], ag: U[G])(f: Tuple2K[F, G, *] ~> H): U[H] =
    zipWith2K(af, ag)(Function2K.untupled(f))

  override def mapK[F[_], G[_]](af: U[F])(fk: F ~> G): U[G] =
    zipWith2K[F, UnitK, G](af, unitK)(Function2K((f, _) => fk(f)))

  override def productK[F[_], G[_]](af: U[F], ag: U[G]): U[Tuple2K[F, G, *]] =
    zipWith2K(af, ag)(Function2K((f, g) => Tuple2K(f, g)))
}

{'repo_name': 'TinkoffCreditSystems/tofu', 'stars': '206', 'repo_language': 'Scala', 'file_name': 'CalcSuite.scala', 'mime_type': 'text/plain', 'hash': -5709426275165811663, 'source_dataset': 'data'}


// Protocol Buffers - Google's data interchange format
// Copyright 2008 Google Inc.  All rights reserved.
// https://developers.google.com/protocol-buffers/
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
//     * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
//     * Redistributions in binary form must reproduce the above
// copyright notice, this list of conditions and the following disclaimer
// in the documentation and/or other materials provided with the
// distribution.
//     * Neither the name of Google Inc. nor the names of its
// contributors may be used to endorse or promote products derived from
// this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

package com.google.protobuf;

import java.util.Collection;
import java.util.List;

/**
 * An interface extending {@code List<String>} that also provides access to the
 * items of the list as UTF8-encoded ByteString or byte[] objects. This is
 * used by the protocol buffer implementation to support lazily converting bytes
 * parsed over the wire to String objects until needed and also increases the
 * efficiency of serialization if the String was never requested as the
 * ByteString or byte[] is already cached. The ByteString methods are used in
 * immutable API only and byte[] methods used in mutable API only for they use
 * different representations for string/bytes fields.
 *
 * @author jonp@google.com (Jon Perlow)
 */
public interface LazyStringList extends ProtocolStringList {

  /**
   * Returns the element at the specified position in this list as a ByteString.
   *
   * @param index index of the element to return
   * @return the element at the specified position in this list
   * @throws IndexOutOfBoundsException if the index is out of range
   *         ({@code index < 0 || index >= size()})
   */
  ByteString getByteString(int index);

  /**
   * Returns the element at the specified position in this list as an Object
   * that will either be a String or a ByteString.
   *
   * @param index index of the element to return
   * @return the element at the specified position in this list
   * @throws IndexOutOfBoundsException if the index is out of range
   *         ({@code index < 0 || index >= size()})
   */
  Object getRaw(int index);

  /**
   * Returns the element at the specified position in this list as byte[].
   *
   * @param index index of the element to return
   * @return the element at the specified position in this list
   * @throws IndexOutOfBoundsException if the index is out of range
   *         ({@code index < 0 || index >= size()})
   */
  byte[] getByteArray(int index);

  /**
   * Appends the specified element to the end of this list (optional
   * operation).
   *
   * @param element element to be appended to this list
   * @throws UnsupportedOperationException if the <tt>add</tt> operation
   *         is not supported by this list
   */
  void add(ByteString element);

  /**
   * Appends the specified element to the end of this list (optional
   * operation).
   *
   * @param element element to be appended to this list
   * @throws UnsupportedOperationException if the <tt>add</tt> operation
   *         is not supported by this list
   */
  void add(byte[] element);

  /**
   * Replaces the element at the specified position in this list with the
   * specified element (optional operation).
   *
   * @param index index of the element to replace
   * @param element the element to be stored at the specified position
   * @throws UnsupportedOperationException if the <tt>set</tt> operation
   *         is not supported by this list
   *         IndexOutOfBoundsException if the index is out of range
   *         ({@code index < 0 || index >= size()})
   */
  void set(int index, ByteString element);

  /**
   * Replaces the element at the specified position in this list with the
   * specified element (optional operation).
   *
   * @param index index of the element to replace
   * @param element the element to be stored at the specified position
   * @throws UnsupportedOperationException if the <tt>set</tt> operation
   *         is not supported by this list
   *         IndexOutOfBoundsException if the index is out of range
   *         ({@code index < 0 || index >= size()})
   */
  void set(int index, byte[] element);

  /**
   * Appends all elements in the specified ByteString collection to the end of
   * this list.
   *
   * @param c collection whose elements are to be added to this list
   * @return true if this list changed as a result of the call
   * @throws UnsupportedOperationException if the <tt>addAllByteString</tt>
   *         operation is not supported by this list
   */
  boolean addAllByteString(Collection<? extends ByteString> c);

  /**
   * Appends all elements in the specified byte[] collection to the end of
   * this list.
   *
   * @param c collection whose elements are to be added to this list
   * @return true if this list changed as a result of the call
   * @throws UnsupportedOperationException if the <tt>addAllByteArray</tt>
   *         operation is not supported by this list
   */
  boolean addAllByteArray(Collection<byte[]> c);

  /**
   * Returns an unmodifiable List of the underlying elements, each of which is
   * either a {@code String} or its equivalent UTF-8 encoded {@code ByteString}
   * or byte[]. It is an error for the caller to modify the returned
   * List, and attempting to do so will result in an
   * {@link UnsupportedOperationException}.
   */
  List<?> getUnderlyingElements();

  /**
   * Merges all elements from another LazyStringList into this one. This method
   * differs from {@link #addAll(Collection)} on that underlying byte arrays are
   * copied instead of reference shared. Immutable API doesn't need to use this
   * method as byte[] is not used there at all.
   */
  void mergeFrom(LazyStringList other);

  /**
   * Returns a mutable view of this list. Changes to the view will be made into
   * the original list. This method is used in mutable API only.
   */
  List<byte[]> asByteArrayList();

  /** Returns an unmodifiable view of the list. */
  LazyStringList getUnmodifiableView();
}

{'repo_name': 'alibaba/x-deeplearning', 'stars': '3451', 'repo_language': 'PureBasic', 'file_name': 'ZooKeeperQuorumServer.h', 'mime_type': 'text/x-c++', 'hash': -6967443108921916366, 'source_dataset': 'data'}


// Protocol Buffers - Google's data interchange format
// Copyright 2008 Google Inc.  All rights reserved.
// https://developers.google.com/protocol-buffers/
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
//     * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
//     * Redistributions in binary form must reproduce the above
// copyright notice, this list of conditions and the following disclaimer
// in the documentation and/or other materials provided with the
// distribution.
//     * Neither the name of Google Inc. nor the names of its
// contributors may be used to endorse or promote products derived from
// this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#import <Foundation/Foundation.h>

#import "GPBUnknownField.h"

@class GPBCodedOutputStream;

@interface GPBUnknownField ()

- (instancetype)initWithNumber:(int32_t)number;

- (void)writeToOutput:(GPBCodedOutputStream *)output;
- (size_t)serializedSize;

- (void)writeAsMessageSetExtensionToOutput:(GPBCodedOutputStream *)output;
- (size_t)serializedSizeAsMessageSetExtension;

- (void)mergeFromField:(GPBUnknownField *)other;

@end

{'repo_name': 'subhan-nadeem/EZShop', 'stars': '130', 'repo_language': 'Objective-C', 'file_name': 'RecognitionCandidate.java', 'mime_type': 'text/plain', 'hash': -3247457717572919350, 'source_dataset': 'data'}


# frozen_string_literal: true

Dummy::Application.routes.draw do
  devise_for :users

  # The priority is based upon order of creation:
  # first created -> highest priority.

  # Sample of regular route:
  #   match 'products/:id' => 'catalog#view'
  # Keep in mind you can assign values other than :controller and :action

  # Sample of named route:
  #   match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
  # This route can be invoked with purchase_url(:id => product.id)

  # Sample resource route (maps HTTP verbs to controller actions automatically):
  #   resources :products

  # Sample resource route with options:
  #   resources :products do
  #     member do
  #       get 'short'
  #       post 'toggle'
  #     end
  #
  #     collection do
  #       get 'sold'
  #     end
  #   end

  # Sample resource route with sub-resources:
  #   resources :products do
  #     resources :comments, :sales
  #     resource :seller
  #   end

  # Sample resource route with more complex sub-resources
  #   resources :products do
  #     resources :comments
  #     resources :sales do
  #       get 'recent', :on => :collection
  #     end
  #   end

  # Sample resource route within a namespace:
  #   namespace :admin do
  #     # Directs /admin/products/* to Admin::ProductsController
  #     # (app/controllers/admin/products_controller.rb)
  #     resources :products
  #   end

  # You can have the root of your site routed with "root"
  # just remember to delete public/index.html.
  root to: "pages#index"

  get "foo", to: "pages#index"
  get "foo_secret", to: "pages#secret"

  get "authenticated", to: "authenticated#index"

  # See how all your routes lay out with "rake routes"

  # This is a legacy wild controller route that's not recommended for RESTful applications.
  # Note: This route will make all actions in every controller accessible via GET requests.
  # match ':controller(/:action(/:id(.:format)))'
end

{'repo_name': 'schneems/derailed_benchmarks', 'stars': '2384', 'repo_language': 'Ruby', 'file_name': 'tasks_test.rb', 'mime_type': 'text/x-ruby', 'hash': 1080892261282142263, 'source_dataset': 'data'}


# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
msgid ""
msgstr ""
"Project-Id-Version: SDAPS 0.1\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-02 16:34+0200\n"
"PO-Revision-Date: 2019-04-18 22:07+0000\n"
"Last-Translator: Rui Mendes <xz9@protonmail.com>\n"
"Language-Team: Portuguese (Brazil) <https://hosted.weblate.org/projects/"
"sdaps/master/pt_BR/>\n"
"Language: pt_BR\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 3.6-dev\n"

#: ../sdaps/script.py:42
msgid "SDAPS -- Paper based survey tool."
msgstr "SDAPS -- Ferramenta de questionários baseados em papel."

#: ../sdaps/script.py:47
msgid "Display version and exit"
msgstr ""

#. Set required as an attribute rather than kwarg so that it works with python <3.7
#: ../sdaps/script.py:52
msgid "command list|Commands:"
msgstr "lista de comandos|Comandos:"

#: ../sdaps/script.py:61
msgid "project directory|The SDAPS project."
msgstr "diretório do projeto|Projeto SDAPS."

#: ../sdaps/add/__init__.py:55
#, python-format
msgid ""
"Invalid input file %s. You need to specify a (multipage) monochrome TIFF as "
"input."
msgstr ""
"Arquivo de entrada inválido %s. Você precisa especificar uma imagem TIFF "
"(multipáginas) monocromática como entrada."

#: ../sdaps/add/__init__.py:67
#, python-format
msgid ""
"Not adding %s because it has a wrong page count (needs to be a mulitple of "
"%i)."
msgstr ""
"Não adicionando %s porque ele tem um número de páginas errado (deve ser um "
"múltiplo de %i)."

#: ../sdaps/boxgallery/__init__.py:108
#, python-format
msgid "Rendering boxgallery for metric \"%s\"."
msgstr "Renderizando caixas pela métrica \"%s\"."

#: ../sdaps/log.py:37
msgid "Warning: "
msgstr "Atenção: "

#: ../sdaps/log.py:41
msgid "Error: "
msgstr "Erro: "

#: ../sdaps/cmdline/__init__.py:15
#, fuzzy
msgid "Export data from an SDAPS project."
msgstr "Importar dados de um arquivo CSV."

#: ../sdaps/cmdline/__init__.py:16
msgid ""
"Export data from an SDAPS project. Please check the\n"
"    documentation for the provided formats for more information."
msgstr ""

#: ../sdaps/cmdline/__init__.py:26
#, fuzzy
msgid "Import data into an SDAPS project."
msgstr "diretório do projeto|Projeto SDAPS."

#: ../sdaps/cmdline/__init__.py:27
msgid ""
"Import data into an SDAPS project. This is only useful in\n"
"    rare cases. Please check the documentation for the provided formats for "
"more\n"
"    information."
msgstr ""

#: ../sdaps/cmdline/__init__.py:39
#, fuzzy
msgid "Generate a report."
msgstr "Criar um relatório PDF."

#: ../sdaps/cmdline/__init__.py:47
#, fuzzy
msgid "Create a new SDAPS project."
msgstr "Criar um relatório PDF."

#: ../sdaps/cmdline/add.py:31
msgid "Add scanned questionnaires to the survey."
msgstr "Adicionar questionários digitalizados na pesquisa."

#: ../sdaps/cmdline/add.py:32
msgid ""
"This command is used to add scanned images to the survey.\n"
"    The image data needs to be a (multipage) 300dpi monochrome TIFF file. "
"You\n"
"    may choose not to copy the data into the project directory. In that "
"case\n"
"    the data will be referenced using a relative path."
msgstr ""
"Este comando é usado para adicionar imagens digitalizadas na pesquisa.\n"
"     A imagem precisa ser em formato TIFF (multipáginas) monocromático de "
"300dpi.\n"
"     Você pode optar por não copiar os dados para o diretório do projeto. "
"Nesse\n"
"     caso os dados serão referenciados usando um caminho relativo."

#: ../sdaps/cmdline/add.py:38
msgid "Convert given files and add the result."
msgstr "Converter os arquivos fornecidos e adicionar o resultado."

#: ../sdaps/cmdline/add.py:43
msgid ""
"Do a 3D-transformation after finding the corner marks. If the\n"
"        corner marks are not found then the image will be added as-is."
msgstr ""
"Faz uma transformação 3D depois de encontrar as marcas de canto.\n"
"        Se as marcas não forem encontradas, a imagem é adicionada como é."

#: ../sdaps/cmdline/add.py:49
msgid ""
"Force adding the images even if the page count is wrong (only use if you "
"know what you are doing)."
msgstr ""
"Força a adição das imagens, mesmo que a contagem de páginas esteja errada "
"(só use se você sabe o que está fazendo)."

#: ../sdaps/cmdline/add.py:53
msgid "Copy the files into the directory (default)."
msgstr "Copie os arquivos para o diretório (padrão)."

#: ../sdaps/cmdline/add.py:58
msgid "Do not copy the files into the directory."
msgstr "Não copie os arquivos para o diretório."

#: ../sdaps/cmdline/add.py:62
msgid ""
"Images contain a duplex scan of a simplex questionnaire (default: simplex "
"scan)."
msgstr ""
"As imagens contêm uma digitalização duplex de um questionário simplex "
"(padrão: digitalização simplex)."

#: ../sdaps/cmdline/add.py:68 ../sdaps/cmdline/convert.py:48
msgid "A number of TIFF image files."
msgstr "Um número de arquivos de imagem TIFF."

#: ../sdaps/cmdline/add.py:94
msgid "The --no-copy option is not compatible with --convert!"
msgstr "A opção --no-copy não é compatível com --convert!"

#: ../sdaps/cmdline/add.py:103
msgid "Converting input files into a single temporary file."
msgstr "Converter arquivos de entrada em um diretório temporário."

#: ../sdaps/cmdline/add.py:115
msgid ""
"The page count of the created temporary file does not work with this survey."
msgstr ""
"A imagem convertida não tem o formato correto. O número de páginas está "
"errado."

#: ../sdaps/cmdline/add.py:120
msgid "Running the conversion failed."
msgstr "A conversão falhou."

#: ../sdaps/cmdline/add.py:126
#, python-format
msgid "Processing %s"
msgstr "Processando %s"

#: ../sdaps/cmdline/add.py:130 ../sdaps/reset/__init__.py:33
msgid "Done"
msgstr "Concluído"

#: ../sdaps/cmdline/annotate.py:28
msgid "Annotate the questionnaire and show the recognized positions."
msgstr "Anotar o questionário e mostrar as posições reconhecidas."

#: ../sdaps/cmdline/annotate.py:29
msgid ""
"This command is mainly a debug utility. It creates an\n"
"    annotated version of the questionnaire, with the information that SDAPS\n"
"    knows about it overlayed on top."
msgstr ""
"Este comando é principalmente um utilitário de depuração. Ele cria uma\n"
"    versão anotada do questionário, com as informações que o SDAPS\n"
"    sabe sobre ele sobrepostas na parte superior."

#: ../sdaps/cmdline/boxgallery.py:31
msgid "Create PDFs with boxes sorted by the detection heuristics."
msgstr "Cria PDFs com caixas ordenadas por heurísticas de detecção."

#: ../sdaps/cmdline/boxgallery.py:32
msgid ""
"SDAPS uses multiple heuristics to detect determine the\n"
"    state of checkboxes. There is a list for each heuristic giving the "
"expected\n"
"    state and the quality of the value (see defs.py). Using this command a "
"PDF\n"
"    will be created for each of the heuristics so that one can adjust the\n"
"    values."
msgstr ""
"O SDAPS usa várias heurísticas para determinar o estado das caixas.\n"
"    Há uma lista para cada heurística dando o estado esperado e a qualidade\n"
"    do valor (ver defs.py). Usando este comando um PDF será criado para "
"cada\n"
"    uma das heurísticas, para que se possa ajustar os valores."

#: ../sdaps/cmdline/boxgallery.py:40
msgid ""
"Reruns part of the recognition process and retrieves debug images from this "
"step."
msgstr ""
"Executa o reconhecimento novamente e armazena imagens adicionais para "
"depuração a partir deste passo."

#: ../sdaps/cmdline/convert.py:30
msgid "Convert a set of images to the correct image format."
msgstr "Converte um conjunto de imagens para o formato de imagem correto."

#: ../sdaps/cmdline/convert.py:31
#, fuzzy
msgid ""
"This command can be used if you scanned files in something\n"
"        other than the expected monochrome TIFF mode. All given files will\n"
"        be loaded, converted to monochrome and stored in a multipage 1bpp\n"
"        TIFF file. Optionally, you can select \"3D transformation\"\\ ,which "
"may facilitate\n"
"        working with photos of questionnaires instead of scans."
msgstr ""
"Esse comando pode ser usado se você tiver arquivos digitalizados em formato "
"diferente\n"
"\tao TIFF monocromático esperado. Todos os arquivos serão carregados,\n"
"\tconvertidos em monocromático e armazenados em um arquivo TIFF multipágina "
"de 1bpp.\n"
"\tOpcionalmente, você pode selecionar que se realize uma transformação 3D,\n"
"\tcom isto pode ser possível trabalhar com fotos dos questionários, ao "
"invés\n"
"\tda digitalização convencional."

#: ../sdaps/cmdline/convert.py:38
#, fuzzy
msgid ""
"Do a 3D-transformation after finding the corner marks.\n"
"    If they are not found, the image will be processed as-is."
msgstr ""
"Faz uma transformação 3D depois de encontrar as marcas de canto.\n"
"        Se as marcas não forem encontradas, a imagem é adicionada como é."

#: ../sdaps/cmdline/convert.py:44
#, fuzzy
msgid "The location of the output file."
msgstr "A localização do arquivo de saída. Deve ser fornecida."

#: ../sdaps/cmdline/convert.py:57
msgid "No output filename specified!"
msgstr "Nome do arquivo de saída não especificado!"

#: ../sdaps/cmdline/cover.py:27
msgid "Create a cover for the questionnaires."
msgstr "Criar uma página de rosto para os questionários."

#: ../sdaps/cmdline/cover.py:28
msgid ""
"This command creates a cover page for questionnaires. All\n"
"    the metadata of the survey will be printed on the page."
msgstr ""
"Este comando cria uma página de rosto para os questionários.\n"
"    Todos os metadados da pesquisa serão impressos nela."

#: ../sdaps/cmdline/cover.py:31
#, python-format
msgid "Filename to store the data to (default: cover_%%i.pdf)"
msgstr "Nome de arquivo para armazenar os dados (padrão: cover_%%i.pdf)"

#: ../sdaps/cmdline/csvdata.py:36
msgid "Export data to CSV file."
msgstr "Exportar dados para arquivo CSV."

#: ../sdaps/cmdline/csvdata.py:37
#, fuzzy
msgid ""
"Export data to a CSV file. The first line is a header\n"
"    which defines questionnaire_id and global_id, and a column for each\n"
"    checkbox and textfield."
msgstr ""
"Importar ou exportar dados de/para um arquivo CSV. A primeira linha\n"
"     é um cabeçalho, que define questionnaire_id, global_id e uma coluna\n"
"     para cada caixa de seleção e campo de texto. Note que a importação é\n"
"     atualmente muito limitada, já que você precisa especificar o "
"identificador\n"
"     do questionário para selecionar a folha que deverá ser atualizada."

#: ../sdaps/cmdline/csvdata.py:43
#, python-format
msgid "Filename to store the data to (default: data_%%i.csv)"
msgstr "Nome de arquivo para armazenar os dados (padrão: data_%%i.csv)"

#: ../sdaps/cmdline/csvdata.py:45
msgid "The delimiter used in the CSV file (default ',')"
msgstr "O delimitador usado no arquivo CSV (padrão ',')"

#: ../sdaps/cmdline/csvdata.py:49 ../sdaps/cmdline/feather.py:40
#: ../sdaps/cmdline/report.py:33 ../sdaps/cmdline/reporttex.py:55
msgid "Filter to only export a partial dataset."
msgstr "Filtro para exportar apenas um conjunto de dados parcial."

#: ../sdaps/cmdline/csvdata.py:51
msgid "Export images of freeform fields."
msgstr "Exportar imagens dos campos de forma livre."

#: ../sdaps/cmdline/csvdata.py:57
msgid "Export an image for each question that includes all boxes."
msgstr "Exportar uma imagem para cada pergunta que inclui todas as caixas."

#: ../sdaps/cmdline/csvdata.py:63
msgid "Export the recognition quality for each checkbox."
msgstr "Exportar a qualidade de reconhecimento para cada caixa de verificação."

#: ../sdaps/cmdline/csvdata.py:71
msgid "Import data to from a CSV file."
msgstr "Importar dados de um arquivo CSV."

#: ../sdaps/cmdline/csvdata.py:72
#, fuzzy
msgid ""
"Import data from a CSV file. The first line is a header\n"
"    which defines questionnaire_id and global_id, and a column for each\n"
"    checkbox and textfield. Note that the import is currently very limited,\n"
"    as you need to specifiy the questionnaire ID to select the sheet\n"
"    which should be updated."
msgstr ""
"Importar ou exportar dados de/para um arquivo CSV. A primeira linha\n"
"     é um cabeçalho, que define questionnaire_id, global_id e uma coluna\n"
"     para cada caixa de seleção e campo de texto. Note que a importação é\n"
"     atualmente muito limitada, já que você precisa especificar o "
"identificador\n"
"     do questionário para selecionar a folha que deverá ser atualizada."

#: ../sdaps/cmdline/csvdata.py:80
msgid "The file to import."
msgstr "O arquivo a ser importado."

#: ../sdaps/cmdline/feather.py:36
#, fuzzy
msgid "Export data to feather file."
msgstr "Exportar dados para arquivo CSV."

#: ../sdaps/cmdline/feather.py:38
#, fuzzy, python-format
msgid "Filename to store the data to (default: data_%%i.feather)"
msgstr "Nome de arquivo para armazenar os dados (padrão: data_%%i.csv)"

#: ../sdaps/cmdline/gui.py:28
#, fuzzy
msgid "Launch a GUI. You can view and alter the (recognized) answers with it."
msgstr ""
"Abrir uma interface gráfica (GUI). Você pode visualizar e alterar as "
"respostas (reconhecidas) nela."

#: ../sdaps/cmdline/gui.py:29
#, fuzzy
msgid ""
"This command launches a graphical user interface that can\n"
"    be used to correct answers. You need to run \"recognize\" before using "
"it.\n"
"    "
msgstr ""
"Este comando lança uma interface gráfica (GUI) que pode ser utilizada para\n"
"     corrigir respostas. Você precisa executar \"recognize\" antes de usá-"
"lo.\n"
"    "

#: ../sdaps/cmdline/gui.py:34
msgid "Filter to only show a partial dataset."
msgstr "Filtro para mostrar apenas um conjunto de dados parcial."

#: ../sdaps/cmdline/ids.py:29
msgid "Export and import questionnaire IDs."
msgstr "Exportação e importação de IDs de questionário."

#: ../sdaps/cmdline/ids.py:30
msgid ""
"This command can be used to import and export questionnaire\n"
"    IDs. It only makes sense in projects where such an ID is printed on the\n"
"    questionnaire. Note that you can also add IDs by using the stamp "
"command,\n"
"    which will give you the PDF at the same time."
msgstr ""
"Esse comando pode ser usado para importar e exportar IDs de questionário.\n"
"     Ele só faz sentido em projetos onde tal identificação é impressa no\n"
"     questionário. Note que você também pode adicionar IDs usando o comando\n"
"     \"stamp\", que também lhe dará o arquivo PDF."

#: ../sdaps/cmdline/ids.py:35
#, python-format
msgid "Filename to store the data to (default: ids_%%i)"
msgstr "Nome de arquivo para armazenar os dados (padrão: ids_%%i)"

#: ../sdaps/cmdline/ids.py:38
msgid "Add IDs to the internal list from the specified file."
msgstr "Adicionar IDs à lista interna do arquivo especificado."

#: ../sdaps/cmdline/info.py:28
msgid "Display and modify metadata of project."
msgstr "Exibir e modificar os metadados do projeto."

#: ../sdaps/cmdline/info.py:29
msgid ""
"This command lets you modify the metadata of the SDAPS\n"
"    project. You can modify, add and remove arbitrary keys that will be "
"printed\n"
"    on the report. The only key that always exist is \"title\".\n"
"    If no key is given then a list of defined keys is printed."
msgstr ""
"Este comando permite que você modifique os metadados do projeto SDAPS.\n"
"     Você pode modificar, adicionar e remover chaves arbitrárias que serão "
"impressas\n"
"     no relatório. A única chave que sempre existe é \"title\".\n"
"     Se nenhuma chave for informada, uma lista de chaves definidas é "
"impressa."

#: ../sdaps/cmdline/info.py:36
msgid "Delete the key and value pair."
msgstr "Exclua o par de chave e valor."

#: ../sdaps/cmdline/info.py:40
msgid "The key to display or modify."
msgstr "A chave para exibir ou modificar."

#: ../sdaps/cmdline/info.py:44
msgid "Set the given key to this value."
msgstr "Novo valor para a chave."

#: ../sdaps/cmdline/info.py:69
msgid "Existing fields:\n"
msgstr "Campos existentes:\n"

#: ../sdaps/cmdline/recognize.py:28
msgid "Run the optical mark recognition."
msgstr "Executar o reconhecimento óptico de marcas."

#: ../sdaps/cmdline/recognize.py:29
msgid ""
"Iterates over all images and runs the optical mark\n"
"    recognition. It will reevaluate sheets even if \"recognize\" has "
"already\n"
"    run or manual changes were made."
msgstr ""
"Itera sobre todas as imagens e executa o reconhecimento óptico de marcas.\n"
"     Ele irá reavaliar as folhas mesmo se o comando \"recognize\" for\n"
"     executado previamente ou alterações manuais tenham sido feitas."

#: ../sdaps/cmdline/recognize.py:34
msgid ""
"Only identify the page properties, but don't recognize the checkbox states."
msgstr "Analisa apenas as propriedades da página, mas não as respostas."

#: ../sdaps/cmdline/recognize.py:39
msgid ""
"Rerun the recognition for all pages. The default is to skip all pages that "
"were recognized or verified already."
msgstr ""
"Execute novamente o reconhecimento para todas as páginas. O padrão é pular "
"todas as páginas que já foram reconhecidas ou verificadas."

#: ../sdaps/cmdline/reorder.py:26
msgid "Reorder pages according to questionnaire ID."
msgstr "Reordenar páginas de acordo com o ID do questionário."

#: ../sdaps/cmdline/reorder.py:27
msgid ""
"This command reorders all pages according to the already\n"
"    recognized questionnaire ID. To use it add all the files to the "
"project,\n"
"    then run a partial recognition using \"recognize --identify\". After "
"this\n"
"    you have to run this command to reorder the data for the real "
"recognition.\n"
"    "
msgstr ""
"Este comando reordena as páginas pelo ID do questionário já reconhecido\n"
"     Para usá-lo, adicione todos os arquivos ao projeto, depois\n"
"     execute o reconhecimento parcial com \"recognize --identify\".\n"
"     Logo após, você precisa executar este comando para reordenar\n"
"     os dados para o real reconhecimento.\n"
"    "

#: ../sdaps/cmdline/report.py:27
#, fuzzy
msgid "Create a PDF report using reportlab."
msgstr "Criar um relatório em PDF usando LaTeX."

#: ../sdaps/cmdline/report.py:28
msgid ""
"This command creates a PDF report using reportlab that\n"
"    contains statistics and if selected the freeform fields."
msgstr ""
"Este comando cria um relatório em PDF usando reportlab que\n"
"     contém estatísticas e os campos de forma livre, se selecionados."

#: ../sdaps/cmdline/report.py:35
msgid "Create a filtered report for every checkbox."
msgstr "Criar um relatório filtrado para cada caixa."

#: ../sdaps/cmdline/report.py:38
msgid "Short format (without freeform text fields)."
msgstr "Formato curto (sem campos de texto de forma livre)."

#: ../sdaps/cmdline/report.py:43
msgid "Detailed output. (default)"
msgstr "Saída detalhada. (padrão)"

#: ../sdaps/cmdline/report.py:49 ../sdaps/cmdline/reporttex.py:33
msgid ""
"Do not include original images in the report. This is useful if there are "
"privacy concerns."
msgstr ""
"Não incluir imagens originais no relatório. Isso é útil se houver "
"preocupações com a privacidade."

#: ../sdaps/cmdline/report.py:54 ../sdaps/cmdline/reporttex.py:38
msgid "Do not use substitutions instead of images."
msgstr "Não use substituições em vez de imagens."

#: ../sdaps/cmdline/report.py:60 ../sdaps/cmdline/reporttex.py:49
msgid "The paper size used for the output (default: locale dependent)"
msgstr ""
"O tamanho do papel usado para a saída (padrão: dependente da localidade)"

#: ../sdaps/cmdline/report.py:63 ../sdaps/cmdline/reporttex.py:52
#, python-format
msgid "Filename to store the data to (default: report_%%i.pdf)"
msgstr "Nome de arquivo para armazenar os dados (padrão: report_%%i.pdf)"

#: ../sdaps/cmdline/reporttex.py:27
msgid "Create a PDF report using LaTeX."
msgstr "Criar um relatório em PDF usando LaTeX."

#: ../sdaps/cmdline/reporttex.py:28
msgid ""
"This command creates a PDF report using LaTeX that\n"
"    contains statistics and freeform fields."
msgstr ""
"Este comando cria um relatório em PDF usando LaTeX que\n"
"     contém estatísticas e campos de forma livre."

#: ../sdaps/cmdline/reporttex.py:44
msgid "Save the generated TeX files instead of the final PDF."
msgstr "Salve os arquivos TeX gerados em vez do PDF final."

#: ../sdaps/cmdline/reset.py:26
msgid "Reset project into original state."
msgstr ""

#: ../sdaps/cmdline/reset.py:27
msgid ""
"This command does a full reset of the project. All data\n"
"    will be discarded and only the empty project is left.\n"
"    "
msgstr ""

#: ../sdaps/cmdline/setup.py:29
msgid "Create a new survey using a LaTeX document."
msgstr "Criar uma nova pesquisa através de um documento LaTeX."

#: ../sdaps/cmdline/setup.py:30
msgid ""
"Create a new survey from a LaTeX document. You need to\n"
"    be using the SDAPS class. All the metadata and options for the project\n"
"    can be set inside the LaTeX document."
msgstr ""
"Criar uma nova pesquisa de um documento LaTeX. Você deve\n"
"     utilizar a classe SDAPS. Todos os metadados e opções\n"
"     para o projeto podem ser definidos no documento LaTeX."

#: ../sdaps/cmdline/setup.py:36
msgid "The LaTeX Document"
msgstr "O documento LaTeX"

#: ../sdaps/cmdline/setup.py:38
msgid ""
"Additional files that are required by the LaTeX document and need to be "
"copied into the project directory."
msgstr ""
"Arquivos adicionais são necessários para o documento LaTeX e precisam ser "
"copiados para o diretório do projeto."

#: ../sdaps/cmdline/setup.py:41
msgid "The engine to use to compile LaTeX documents."
msgstr ""

#: ../sdaps/cmdline/setup.py:45
msgid "Additional questions that are not part of the questionnaire."
msgstr "Outras perguntas que não fazem parte do questionário."

#: ../sdaps/cmdline/stamp.py:26
msgid "Add marks for automatic processing."
msgstr "Adicionar marcas para processamento automático."

#: ../sdaps/cmdline/stamp.py:27
msgid ""
"This command creates the printable document. Depending on\n"
"    the projects setting you are required to specifiy a source for "
"questionnaire\n"
"    IDs."
msgstr ""
"Este comando cria o documento para impressão. Dependendo das configurações\n"
"      do projeto, você deve especificar uma fonte para os IDs de "
"questionário."

#: ../sdaps/cmdline/stamp.py:33
msgid ""
"If using questionnaire IDs, create N questionnaires with randomized IDs."
msgstr ""
"Se estiver usando IDs de questionário, cria N questionários com IDs "
"aleatórios."

#: ../sdaps/cmdline/stamp.py:36
msgid ""
"If using questionnaire IDs, create questionnaires from the IDs read from the "
"specified file."
msgstr ""
"Se estiver usando IDs de questionário, cria questionários com os IDs lidos "
"do arquivo especificado."

#: ../sdaps/cmdline/stamp.py:39
msgid "If using questionnaire IDs, create questionnaires for all stored IDs."
msgstr ""
"Se estiver usando IDs de questionário, cria questionários para todos os IDs "
"armazenados."

#: ../sdaps/cmdline/stamp.py:42
#, python-format
msgid "Filename to store the data to (default: stamp_%%i.pdf)"
msgstr "Nome de arquivo para armazenar os dados (padrão: stamp_%%i.pdf)"

#: ../sdaps/convert/__init__.py:37
#, python-format
msgid "Could not apply 3D-transformation to image '%s', page %i!"
msgstr "Não foi possível aplicar transformação 3D na imagem '%s', página %i!"

#: ../sdaps/cover/__init__.py:40
#, fuzzy
msgid "SDAPS questionnaire"
msgstr "questionário sdaps"

#: ../sdaps/csvdata/buddies.py:78
#, fuzzy, python-format
msgid "Not importing unknown questionnaire ID \"%s\""
msgstr "Exportação e importação de IDs de questionário."

#: ../sdaps/gui/__init__.py:60
msgid ""
"The survey does not have any images! Please add images (and run recognize) "
"before using the GUI."
msgstr ""
"A pesquisa não possui imagens! Por favor, adicione imagens e execute "
"\"recognize\" antes de usar a interface gráfica (GUI)."

#: ../sdaps/gui/__init__.py:212
msgid "Page|Invalid"
msgstr "Página|Inválida"

#: ../sdaps/gui/__init__.py:215
#, python-format
msgid "Page %i"
msgid_plural "Page %i"
msgstr[0] "Página %i"
msgstr[1] "Página %i"

#: ../sdaps/gui/__init__.py:257
msgid "Copyright © 2007-2014 The SDAPS Authors"
msgstr "Copyright © 2007-2014 Os autores do SDAPS"

#: ../sdaps/gui/__init__.py:259
msgid "Scripts for data acquisition with paper based surveys"
msgstr "SDAPS - Scripts para aquisição de dados de pesquisas baseadas em papel"

#: ../sdaps/gui/__init__.py:260
msgid "http://sdaps.org"
msgstr "http://sdaps.org"

#: ../sdaps/gui/__init__.py:261
msgid "translator-credits"
msgstr "Rodrigo Antonio Müller"

#: ../sdaps/gui/__init__.py:306
#, python-format
msgid " of %i"
msgstr " de %i"

#: ../sdaps/gui/__init__.py:307
#, python-format
msgid "Recognition Quality: %.2f"
msgstr "Qualidade de reconhecimento: %.2f"

#: ../sdaps/gui/__init__.py:323
msgid ""
"You have reached the first page of the survey. Would you like to go to the "
"last page?"
msgstr ""
"Você chegou na primeira página da pesquisa. Deseja ir para a última página?"

#: ../sdaps/gui/__init__.py:325
msgid "Go to last page"
msgstr "Ir para a última página"

#: ../sdaps/gui/__init__.py:347
msgid ""
"You have reached the last page of the survey. Would you like to go to the "
"first page?"
msgstr ""
"Você chegou na última página da pesquisa. Deseja ir para a primeira página?"

#: ../sdaps/gui/__init__.py:349
msgid "Go to first page"
msgstr "Ir para a primeira página"

#: ../sdaps/gui/__init__.py:466
msgid "Close without saving"
msgstr "Fechar sem salvar"

#: ../sdaps/gui/__init__.py:470
#, fuzzy
msgid ""
"<b>Save the project before closing?</b>\n"
"\n"
"If you do not save you may lose data."
msgstr ""
"<b>Deseja salvar o projeto antes de fechar?</b>\n"
"\n"
"Se não salvar, poderá perder dados."

#: ../sdaps/gui/main_window.ui.h:1
msgid "Forward"
msgstr "Próximo"

#: ../sdaps/gui/main_window.ui.h:2
msgid "Previous"
msgstr "Anterior"

#: ../sdaps/gui/main_window.ui.h:3
msgid "Zoom In"
msgstr "Ampliar"

#: ../sdaps/gui/main_window.ui.h:4
msgid "Zoom Out"
msgstr "Reduzir"

#: ../sdaps/gui/main_window.ui.h:5
msgid "SDAPS"
msgstr "SDAPS"

#: ../sdaps/gui/main_window.ui.h:6
msgid "_File"
msgstr "_Arquivo"

#: ../sdaps/gui/main_window.ui.h:7
msgid "_View"
msgstr "_Exibir"

#: ../sdaps/gui/main_window.ui.h:8
msgid "_Help"
msgstr "_Ajuda"

#: ../sdaps/gui/main_window.ui.h:9
msgid "Recognize Page"
msgstr ""

#: ../sdaps/gui/main_window.ui.h:10
msgid "Page Rotated"
msgstr "Página Girada"

#: ../sdaps/gui/main_window.ui.h:11
msgid "Sort by Quality"
msgstr "Ordenar pela Qualidade"

#: ../sdaps/gui/main_window.ui.h:12
msgid "label"
msgstr "Rótulo"

#: ../sdaps/gui/widget_buddies.py:56
msgid "<b>Global Properties</b>"
msgstr "<b>Propriedades Globais</b>"

#: ../sdaps/gui/widget_buddies.py:60
msgid "Sheet valid"
msgstr "Folha válida"

#: ../sdaps/gui/widget_buddies.py:61
#, fuzzy
msgid "Sheet Verified"
msgstr "Verificado"

#: ../sdaps/gui/widget_buddies.py:62
#, fuzzy
msgid "Page Verified"
msgstr "Verificado"

#: ../sdaps/gui/widget_buddies.py:63 ../sdaps/gui/widget_buddies.py:73
msgid "Empty"
msgstr "Vazio"

#: ../sdaps/gui/widget_buddies.py:84 ../sdaps/gui/widget_buddies.py:115
msgid "<b>Questionnaire ID: </b>"
msgstr "<b>ID do Questionário: </b>"

#: ../sdaps/image/__init__.py:48
msgid ""
"It appears you have not build the C extension. Please run \"./setup.py build"
"\" in the toplevel directory."
msgstr ""
"Parece que você não construiu a extensão C. Por favor, execute \"./setup.py "
"build\" no diretório principal."

#: ../sdaps/utils/latex.py:29
msgid ""
"The latex character map is missing! Please build it using the supplied tool "
"(create-latexmap.py)."
msgstr ""

#: ../sdaps/utils/latex.py:69
msgid ""
"Generated string for LaTeX contains unicode characters. This may not work "
"correctly and could mean the LaTeX character map needs to be updated."
msgstr ""

#: ../sdaps/utils/opencv.py:35
msgid "Cannot convert PDF files as poppler is not installed or usable!"
msgstr ""
"Não é possível converter arquivos PDF, pois o poppler não está instalado ou "
"utilizável!"

#: ../sdaps/utils/opencv.py:44
msgid "File does not exist"
msgstr ""

#. The old code used to first filter, and then run; but that is
#. a bit ineffective in a way
#: ../sdaps/model/survey.py:411
#, python-format
msgid "%i sheet"
msgid_plural "%i sheets"
msgstr[0] "%i folha"
msgstr[1] "%i folhas"

#: ../sdaps/model/survey.py:427
#, python-format
msgid "Processed %i of %i sheets, took %f seconds"
msgstr ""

#: ../sdaps/model/survey.py:474
msgid ""
"A questionnaire that is printed in duplex needs an even amount of pages!"
msgstr ""
"Um questionário impresso em duplex necessita de uma quantidade par de "
"páginas!"

#: ../sdaps/model/survey.py:478
msgid ""
"The 'classic' style only supports a maximum of six pages! Use the 'code128' "
"style if you require more pages."
msgstr ""
"O estilo 'classic' suporta apenas seis páginas no máximo! Use o estilo "
"'code128' se você precisa de mais páginas."

#: ../sdaps/model/survey.py:491
msgid "IDs need to be integers in \"classic\" style!"
msgstr "IDs precisam ser números inteiros no estilo \"clássico\"!"

#: ../sdaps/model/survey.py:497
#, python-format
msgid "Invalid character %s in questionnaire ID \"%s\" in \"code128\" style!"
msgstr ""
"Caractere inválido %s no ID de questionário \"%s\" com estilo \"code128\"!"

#: ../sdaps/model/survey.py:501
msgid ""
"SDAPS cannot draw a questionnaire ID with the \"custom\" style. Do this "
"yourself somehow!"
msgstr ""
"SDAPS não pode desenhar um ID de questionário com o estilo \"custom\". Faça "
"isto de alguma forma!"

#. in simplex mode every page will have a matrix; it might be a None
#. matrix though
#: ../sdaps/recognize/buddies.py:76
#, python-format
msgid "%s, %i: Matrix not recognized."
msgstr "%s, %i: Matriz não reconhecida."

#: ../sdaps/recognize/buddies.py:85
#, python-format
msgid "%s, %i: Rotation not found."
msgstr "%s, %i: Rotação não detectada."

#. Copy the rotation over (if required) and print warning if the rotation is unknown
#: ../sdaps/recognize/buddies.py:89
#, python-format
msgid "Neither %s, %i or %s, %i has a known rotation!"
msgstr "Nem %s, %i ou %s, %i tem uma rotação conhecida!"

#: ../sdaps/recognize/buddies.py:101
#, python-format
msgid "%s, %i: Matrix not recognized (again)."
msgstr "%s, %i: Matriz não reconhecida (novamente)."

#: ../sdaps/recognize/buddies.py:115
#, python-format
msgid "%s, %i: Could not get page number."
msgstr "%s, %i: Não foi possível obter o número da página."

#. Whoa, that should not happen.
#: ../sdaps/recognize/buddies.py:135
#, python-format
msgid "Neither %s, %i or %s, %i has a known page number!"
msgstr "Nem %s, %i ou %s, %i tem um número de página conhecido!"

#. We don't touch the ignore flag in this case
#. Simply print a message as this should *never* happen
#: ../sdaps/recognize/buddies.py:146
#, python-format
msgid ""
"Got a simplex document where two adjacent pages had a known page number. "
"This should never happen as even simplex scans are converted to duplex by "
"inserting dummy pages. Maybe you did a simplex scan but added it in duplex "
"mode? The pages in question are %s, %i and %s, %i."
msgstr ""
"Tenho um documento simplex, onde duas páginas adjacentes tem um número de "
"página conhecido. Isso nunca deveria acontecer, pois mesmo as varreduras "
"simplex são convertidas para duplex, com a inserção de páginas falsas. Será "
"que você fez uma varredura simplex, mas a adicionou em modo duplex? As "
"páginas em questão são %s, %i e %s, %i."

#: ../sdaps/recognize/buddies.py:163
#, python-format
msgid "Images %s, %i and %s, %i do not have consecutive page numbers!"
msgstr "Imagens %s, %i e %s, %i não tem números de página consecutivos!"

#: ../sdaps/recognize/buddies.py:179
#, python-format
msgid "No page number for page %s, %i exists."
msgstr "Não existe número de página para a página %s, %i."

#: ../sdaps/recognize/buddies.py:184
#, python-format
msgid "Page number for page %s, %i already used by another image."
msgstr ""
"O número de página para a página %s, %i já é utilizado por outra imagem."

#: ../sdaps/recognize/buddies.py:190
#, python-format
msgid "Page number %i for page %s, %i is out of range."
msgstr "O número de página %i para a página %s, %i está fora do intervalo."

#: ../sdaps/recognize/buddies.py:207
#, python-format
msgid "%s, %i: Could not read survey ID, but should be able to."
msgstr ""
"%s, %i: Não foi possível ler o ID da pesquisa, mas deve ser capaz de fazer."

#: ../sdaps/recognize/buddies.py:211
#, python-format
msgid "Could not read survey ID of either %s, %i or %s, %i!"
msgstr "Não foi possível ler o ID da pesquisa de %s, %i ou %s, %i!"

#. Broken survey ID ...
#: ../sdaps/recognize/buddies.py:218
#, python-format
msgid "Got a wrong survey ID (%s, %i)! It is %s, but should be %i."
msgstr "Tem um ID de pesquisa errado (%s, %i)! É %s, mas deve ser %i."

#: ../sdaps/recognize/buddies.py:240
#, python-format
msgid "%s, %i: Could not read questionnaire ID, but should be able to."
msgstr ""
"%s, %i: Não foi possível ler o ID do questionário, mas deve ser capaz de "
"fazer."

#: ../sdaps/recognize/buddies.py:246
#, python-format
msgid "Could not read questionnaire ID of either %s, %i or %s, %i!"
msgstr "Não foi possível ler o ID de questionário de %s, %i ou %s, %i!"

#: ../sdaps/recognize/buddies.py:276
msgid ""
"Got different IDs on different pages for at least one sheet! Do *NOT* try to "
"use filters with this survey! You have to run a \"reorder\" step for this to "
"work properly!"
msgstr ""
"Tem diferentes IDs em páginas diferentes para pelo menos uma folha! *NÃO* "
"tente usar filtros com esta pesquisa! Você precisa executar o passo \"reorder"
"\" para que isso funcione corretamente!"

#: ../sdaps/recognize/buddies.py:337
msgid "No style buddy loaded. This needs to be done for the \"custom\" style!"
msgstr ""
"Não há definição de estilo carregada. Isto precisa ser feito para o estilo "
"\"custom\"!"

#: ../sdaps/report/answers.py:188
#, python-format
msgid "Answers: %i"
msgstr "Respostas: %i"

#: ../sdaps/report/answers.py:190
#, python-format
msgid "Mean: %.2f"
msgstr "Média: %.2f"

#: ../sdaps/report/answers.py:192
#, python-format
msgid "Standard Deviation: %.2f"
msgstr "Desvio Padrão: %.2f"

#: ../sdaps/report/__init__.py:75 ../sdaps/reporttex/__init__.py:140
msgid "Turned in Questionnaires"
msgstr "Quantidade de questionários"

#: ../sdaps/report/__init__.py:92 ../sdaps/reporttex/__init__.py:139
msgid "sdaps report"
msgstr "Relatório SDAPS"

#: ../sdaps/reset/__init__.py:29
msgid "Removing stored data..."
msgstr ""

#: ../sdaps/setup/buddies.py:62
#, python-format
msgid "Head %(l0)i got no title."
msgstr "O cabeçalho %(l0)i não tem título."

#: ../sdaps/setup/buddies.py:74
#, python-format
msgid "%(class)s %(l0)i.%(l1)i got no question."
msgstr "%(class)s %(l0)i.%(l1)i não possui qualquer questão."

#: ../sdaps/setup/buddies.py:114
#, python-format
msgid "Error in question \"%s\""
msgstr "Erro na questão \"%s\""

#: ../sdaps/setup/buddies.py:118
#, python-format
msgid "%(class)s %(l0)i.%(l1)i got no boxes."
msgstr "%(class)s %(l0)i.%(l1)i não possui caixas."

#: ../sdaps/setup/buddies.py:167
#, fuzzy, python-format
msgid "%(class)s %(l0)i.%(l1)i lower box out of range."
msgstr "%(class)s %(l0)i.%(l1)i não possui qualquer questão."

#: ../sdaps/setup/buddies.py:172
#, fuzzy, python-format
msgid "%(class)s %(l0)i.%(l1)i upper box out of range."
msgstr "%(class)s %(l0)i.%(l1)i não possui caixas."

#: ../sdaps/setup/buddies.py:177
#, fuzzy, python-format
msgid "%(class)s %(l0)i.%(l1)i lower box not before upper box."
msgstr "%(class)s %(l0)i.%(l1)i não tem exatamente uma caixa."

#: ../sdaps/setup/buddies.py:213
#, python-format
msgid "%(class)s %(l0)i.%(l1)i got not exactly two answers."
msgstr "%(class)s %(l0)i.%(l1)i não tem exatamente duas respostas."

#: ../sdaps/setup/buddies.py:234
#, python-format
msgid "%(class)s %(l0)i.%(l1)i got not exactly one box."
msgstr "%(class)s %(l0)i.%(l1)i não tem exatamente uma caixa."

#: ../sdaps/stamp/__init__.py:38
msgid ""
"You may not specify the number of sheets for this survey. All questionnaires "
"will be identical as the survey has been configured to not use questionnaire "
"IDs for each sheet."
msgstr ""
"Você não pode especificar o número de folhas para esta pesquisa. Todos os "
"questionários serão idênticos já que a pesquisa foi configurada para não "
"usar IDs de questionário em cada folha."

#: ../sdaps/stamp/__init__.py:76
msgid ""
"This survey has been configured to use questionnaire IDs. Each questionnaire "
"will be unique. You need to use on of the options to add new IDs or use the "
"existing ones."
msgstr ""
"Esta pesquisa foi configurada para usar IDs de questionário. Cada "
"questionário será único. Por isso, uma das opções deve ser usada, para "
"adicionar novos IDs ou usar já armazenados."

#: ../sdaps/stamp/latex.py:18
msgid ""
"There should be no need to stamp a SDAPS Project that uses LaTeX and does "
"not have different questionnaire IDs printed on each sheet.\n"
"I am going to do so anyways."
msgstr ""
"Não deveria ser necessário estampar um projeto SDAPS que usa LaTeX e não tem "
"diferentes IDs de questionário impresso em cada folha.\n"
"Vou fazê-lo de qualquer maneira."

#: ../sdaps/stamp/latex.py:26
#, fuzzy, python-format
msgid "Running %s now multiple times to generate the stamped questionnaire."
msgstr "Executando %s duas vezes para gerar o questionário estampado."

#: ../sdaps/stamp/latex.py:30 ../sdaps/setuptex/__init__.py:108
#: ../sdaps/setuptex/__init__.py:149 ../sdaps/reporttex/__init__.py:162
#, python-format
msgid "Error running \"%s\" to compile the LaTeX file."
msgstr "Erro executando \"%s\" para compilar o arquivo LaTeX."

#: ../sdaps/stamp/latex.py:36
#, python-format
msgid ""
"An error occured during creation of the report. Temporary files left in '%s'."
msgstr ""
"Ocorreu um erro durante a criação do relatório. Os arquivos temporários "
"foram deixados em '%s'."

#: ../sdaps/setuptex/__init__.py:46
msgid "The survey directory already exists."
msgstr "O diretório da pesquisa já existe."

#: ../sdaps/setuptex/__init__.py:51
#, python-format
msgid "Unknown file type (%s). questionnaire_tex should be of type text/x-tex."
msgstr ""
"Tipo de arquivo desconhecido (%s). O questionnaire_tex deve ser do tipo text/"
"x-tex."

#: ../sdaps/setuptex/__init__.py:52
msgid "Will keep going, but expect failure!"
msgstr "Vai continuar, mas espere por falhas!"

#: ../sdaps/setuptex/__init__.py:57
#, python-format
msgid "Unknown file type (%s). additionalqobjects should be text/plain."
msgstr ""
"Tipo de arquivo desconhecido (%s). O additionalqobjects deve ser do tipo "
"text/plain."

#: ../sdaps/setuptex/__init__.py:104
#, fuzzy, python-format
msgid "Running %s now multiple times to generate the questionnaire."
msgstr "Executando %s duas vezes para gerar o questionário."

#: ../sdaps/setuptex/__init__.py:123
msgid "Caught an Exception while parsing the SDAPS file. The current state is:"
msgstr "Houve uma exceção ao analisar o arquivo SDAPS. O estado atual é:"

#: ../sdaps/setuptex/__init__.py:137
msgid ""
"Some combination of options and project properties do not work. Aborted "
"Setup."
msgstr ""
"Uma combinação de opções e propriedades do projeto não funcionam. Instalação "
"abortada."

#: ../sdaps/setuptex/__init__.py:144
#, fuzzy, python-format
msgid "Running %s now multiple imes to generate the questionnaire."
msgstr "Executando %s duas vezes para gerar o questionário."

#: ../sdaps/setuptex/__init__.py:163
msgid ""
"An error occured in the setup routine. The survey directory still exists. "
"You can for example check the questionnaire.log file for LaTeX compile "
"errors."
msgstr ""
"Ocorreu um erro na rotina de instalação. O diretório de pesquisa ainda "
"existe. Você pode ver o arquivo questionnaire.log para verificar erros de "
"compilação do LaTeX."

#: ../sdaps/reporttex/__init__.py:107
msgid "author|Unknown"
msgstr "autor|Desconhecido"

#: ../sdaps/reporttex/__init__.py:138
msgid "tex language|english"
msgstr "brazilian"

#: ../sdaps/reporttex/__init__.py:155
#, python-format
msgid "The TeX project with the report data is located at '%s'."
msgstr "O projeto TeX com os dados do relatório está localizado em '%s'."

#: ../sdaps/reporttex/__init__.py:158
#, fuzzy, python-format
msgid "Running %s now multiple times to generate the report."
msgstr "Executando %s duas vezes para gerar o relatório."

#: ../sdaps/reporttex/__init__.py:168
#, python-format
msgid "An occured during creation of the report. Temporary files left in '%s'."
msgstr ""
"Ocorreu um erro durante a criação do relatório. Os arquivos temporários "
"foram deixados em '%s'."

#~ msgid "Import or export data to/from CSV files."
#~ msgstr "Importar ou exportar dados de/para arquivos CSV."

#~ msgid "%f seconds per sheet"
#~ msgstr "%f segundos por folha"

#~ msgid "Running upgrade routines for file format version %i"
#~ msgstr ""
#~ "Executando rotinas de atualização para a versão de formato de arquivo %i"

#~ msgid "Create a new survey using an ODT document."
#~ msgstr "Criar uma nova pesquisa usando um documento ODT."

#~ msgid ""
#~ "Create a new surevey from an ODT document. The PDF export\n"
#~ "    of the file needs to be specified at the same time. SDAPS will "
#~ "import\n"
#~ "    metadata (properties) and the title from the ODT document."
#~ msgstr ""
#~ "Cria uma nova pesquisa de um documento ODT. O arquivo exportado em PDF\n"
#~ "     precisa ser especificado ao mesmo tempo. O SDAPS importará os\n"
#~ "     metadados (propriedades) e o título do documento ODT."

#~ msgid "The ODT Document"
#~ msgstr "O documento ODT"

#~ msgid "PDF export of the ODT document"
#~ msgstr "Arquivo PDF exportado a partir do documento ODT"

#~ msgid "Enable printing of the survey ID (default)."
#~ msgstr "Ativar a impressão do ID da pesquisa (padrão)."

#~ msgid "Disable printing of the survey ID."
#~ msgstr "Desativar a impressão do ID da pesquisa."

#~ msgid "Enable printing of the questionnaire ID."
#~ msgstr "Ativar a impressão do ID do questionário."

#~ msgid "Disable printing of the questionnaire ID (default)."
#~ msgstr "Desativar a impressão do ID do questionário (padrão)."

#~ msgid ""
#~ "Set an additional global ID for tracking. This can can only be used in "
#~ "the \"code128\" style."
#~ msgstr ""
#~ "Definir um ID Global adicional para monitoramento. Isto só pode ser "
#~ "utilizado no estilo \"code128\"."

#~ msgid ""
#~ "The stamping style to use. Should be either \"classic\" or \"code128\". "
#~ "Use \"code128\" for more features."
#~ msgstr ""
#~ "O estilo que é usado para estampar. Deve ser \"classic\" ou \"code128\". "
#~ "Use \"code128\" para mais recursos."

#~ msgid "The mode to use when detecting checkboxes."
#~ msgstr "Modo de detecção das caixas de seleção."

#~ msgid ""
#~ "Use duplex mode (ie. only print the IDs on the back side). Requires a "
#~ "mulitple of two pages."
#~ msgstr ""
#~ "Use o modo duplex (ou seja, só imprimir as identificações na parte de "
#~ "trás). Requer um múltiplo de duas páginas."

#~ msgid ""
#~ "Use simplex mode. IDs are printed on each page. You need a simplex scan "
#~ "currently!"
#~ msgstr ""
#~ "Use o modo simplex. IDs são impressos em cada página. Você precisa de uma "
#~ "verificação simplex atualmente!"

#~ msgid ""
#~ "Unknown file type (%s). questionnaire_odt should be application/vnd.oasis."
#~ "opendocument.text."
#~ msgstr ""
#~ "Tipo de arquivo desconhecido (%s). O questionnaire_odt deve ser do tipo "
#~ "application/vnd.oasis.opendocument.text."

#~ msgid "Unknown file type (%s). questionnaire_pdf should be application/pdf."
#~ msgstr ""
#~ "Tipo de arquivo desconhecido (%s). O questionnaire_pdf deve ser do tipo "
#~ "application/pdf."

#~ msgid ""
#~ "Caught an Exception while parsing the ODT file. The current state is:"
#~ msgstr "Houve uma exceção ao analisar o arquivo ODT. O estado atual é:"

#~ msgid ""
#~ "If the dependencies for the \"annotate\" command are installed, then an "
#~ "annotated version will be created next to the original PDF file."
#~ msgstr ""
#~ "Se as dependências para o comando \"annotate\" estão instaladas, uma "
#~ "versão anotada será criada junto ao arquivo PDF original."

#~ msgid ""
#~ "Warning: Ignoring a box (page: %i, x: %.1f, y: %.1f, width: %.1f, height: "
#~ "%.1f)."
#~ msgstr ""
#~ "Aviso: Ignorando uma caixa (página: %i, x: %.1f, y: %.1f, largura: %.1f, "
#~ "altura: %.1f)."

#~ msgid "Survey-ID: %i"
#~ msgstr "ID da Pesquisa: %i"

#~ msgid "Questionnaire-ID: %i"
#~ msgstr "ID do Questionário: %i"

#, fuzzy
#~ msgid "You need to have either PDFtk or pyPdf installed. PDFtk is faster."
#~ msgstr ""
#~ "Você precisa ter o pdftk ou o pyPdf instalado. pdftk é o método mais "
#~ "rápido."

#~ msgid "Creating stamp PDF for %i sheet"
#~ msgid_plural "Creating stamp PDF for %i sheets"
#~ msgstr[0] "Criando estampa PDF para %i folha"
#~ msgstr[1] "Criando estampa PDF para %i folhas"

#~ msgid "%i sheet; %f seconds per sheet"
#~ msgid_plural "%i sheet; %f seconds per sheet"
#~ msgstr[0] "%i folha; %f segundos por folha"
#~ msgstr[1] "%i folhas; %f segundos por folha"

#, fuzzy
#~ msgid "Marking using PDFtk"
#~ msgstr "Estampando com pdftk"

#, fuzzy
#~ msgid "PDFtk: Overlaying the original PDF with the markings."
#~ msgstr "pdftk: Sobrepondo o PDF original com as marcas."

#, fuzzy
#~ msgid "PDFtk: Splitting out page %d of each stack."
#~ msgid_plural "PDFtk: Splitting out page %d of each stack."
#~ msgstr[0] "pdftk: Extraindo a página %d de cada folha."
#~ msgstr[1] "pdftk: Extraindo a página %d de cada folha."

#, fuzzy
#~ msgid "PDFtk: Splitting the questionnaire for marking."
#~ msgstr "pdftk: Dividindo o questionário para marca d'água."

#, fuzzy
#~ msgid "PDFtk: Marking page %d of all stacks."
#~ msgid_plural "PDFtk: Marking page %d of all stacks."
#~ msgstr[0] "pdftk: Criando marca d'água na página %d de todas as folhas."
#~ msgstr[1] "pdftk: Criando marca d'água na página %d de todas as folhas."

#~ msgid "pdftk: Assembling everything into the final PDF."
#~ msgstr "pdftk: Montando tudo no PDF final."

#, fuzzy
#~ msgid "Marking using pyPdf. For faster marking, install PDFtk."
#~ msgstr ""
#~ "Estampando com pyPdf. Para estampar mais rapidamente, instale o pdftk."

{'repo_name': 'sdaps/sdaps', 'stars': '149', 'repo_language': 'Python', 'file_name': 'format', 'mime_type': 'text/plain', 'hash': 1059877309847908008, 'source_dataset': 'data'}


<?xml version="1.0" encoding="UTF-8"?>

<Body>
	<Title>加纳发生重大交通事故致14人死亡</Title>
	<ReportTime type="absTime">2013年12月31日 02:02:34 来源： 新华网</ReportTime>
	<Content>
		<Paragraph>
			<Sentence>
				<Event type="thoughtevent" eid="e1">
					<Participant sid="s1">新华网阿克拉</Participant>
					<Time type="relTime" tid="t1">１２月３０日</Time>
					<Denoter type="statement" did="d1">电</Denoter>
				</Event>（记者林晓蔚）
				<Event eid="e2">
					<Location lid="l2">加纳中部省</Location>
					<Time type="relTime" tid="t2">３０日中午</Time>发生一起
					<Object sid="s2">３辆车</Object>
					<Denoter type="action" did="d2">相撞</Denoter>的
				</Event>
				<Event eid="e3">严重
					<Denoter type="emergency" did="d3">交通事故</Denoter>
				</Event>，
				<Event eid="e4">已
					<Denoter type="statement" did="d4">确认</Denoter>
				</Event>
				<Event eid="e5">
					<Participant sid="s5">１４人</Participant>
					<Denoter type="stateChange" did="d5">死亡</Denoter>
				</Event>。
			</Sentence>
		</Paragraph>
		<Paragraph>
			<Sentence>
				<Event type="thoughtevent" eid="e6">据
					<Participant sid="s6">当地媒体</Participant>
					<Denoter type="statement" did="d6">报道</Denoter>
				</Event>，
				<Event eid="e7">
					<Denoter type="emergency" did="d7">事故</Denoter>发生在
					<Location lid="l7">加纳中部省一个名为安塔多的小村庄附近</Location>
				</Event>，距首都阿克拉约１７０公里。
			</Sentence>
			<Sentence>
				<Event eid="e8">当时
					<Object sid="s8，s9">一辆重型卡车</Object>因
					<Denoter type="action" did="d8">爆胎</Denoter>
				</Event>
				<Event eid="e9">
					<Denoter type="stateChange" did="d9">失控</Denoter>
				</Event>，
				<Event eid="e10">
					<Denoter type="action" did="d10">撞向</Denoter>
					<Object oid="o10">一辆奔驰小型巴士</Object>
				</Event>，
				<Event eid="e11">
					<Location lid="l11">巴士上</Location>
					<Denoter type="operation" did="d11">载有</Denoter>
					<Participant oid="o11">至少２３名乘客</Participant>
				</Event>。
			</Sentence>
			<Sentence>
				<Event eid="e12">连带被
					<Denoter type="action" did="d12">撞</Denoter>的还有
					<Object oid="o12">一辆丰田皮卡</Object>
				</Event>，
				<Event polarity="negative" eid="e13">但皮卡车内
					<Participant sid="s13">乘客</Participant>均幸免
					<Denoter type="stateChange" did="d13">遇难</Denoter>
				</Event>。
			</Sentence>
		</Paragraph>
		<Paragraph>
			<Sentence>
				<Event eid="e14">
					<Time tid="t14" type="relTime">圣诞节和新年</Time>是
					<Location lid="l14">加纳</Location>的
					<Denoter type="emergency" did="d14">车祸</Denoter>高发期
				</Event>，
				<Event eid="e15">因
					<Denoter type="operation" did="d15">外出旅行</Denoter>的
					<Participant sid="s15">家庭</Participant>较多
				</Event>。
			</Sentence>
			<Sentence>
				<Event eid="e16">据
					<Denoter type="statement" did="d15">统计</Denoter>
				</Event>，
				<Event eid="e17">
					<Location lid="l17">加纳</Location>
					<Time tid="t17" type="relTime">每年</Time>
					<Participant sid="s17">约有１８００人</Participant>
					<Denoter type="stateChange" did="d17">死</Denoter>于
				</Event>
				<Event eid="e18">道路
					<Denoter type="emergency" did="d18">交通事故</Denoter>
				</Event>。
			</Sentence>
		</Paragraph>
	</Content>
	<eRelation relType="Thoughtcontent" thoughtevent_eid="e1" thoughtcontent_eids="e2-e18"/>
	<eRelation relType="Accompany" accompanya_eid="e2" accompanyb_eid="e3"/>
	<eRelation relType="Causal" cause_eid="e3" effect_eid="e5"/>
	<eRelation relType="Thoughtcontent" thoughtevent_eid="e6" thoughtcontent_eids="e7-e13"/>
	<eRelation relType="Accompany" accompanya_eid="e8" accompanyb_eid="e9"/>
	<eRelation relType="Accompany" accompanya_eid="e9" accompanyb_eid="e10"/>
	<eRelation relType="Accompany" accompanya_eid="e10" accompanyb_eid="e11"/>
	<eRelation relType="Accompany" accompanya_eid="e10" accompanyb_eid="e12"/>
	<eRelation relType="Follow" bevent_eid="e12" aevent_eid="e13"/>
	<eRelation relType="Causal" cause_eid="e15" effect_eid="e14"/>
	<eRelation relType="Causal" cause_eid="e18" effect_eid="e17"/>
</Body>

{'repo_name': 'shijiebei2009/CEC-Corpus', 'stars': '419', 'repo_language': 'None', 'file_name': '江西景德镇客车相撞致5人死亡20余人受伤.xml', 'mime_type': 'text/xml', 'hash': -2025985603550661575, 'source_dataset': 'data'}


# Copyright 2018-2020 Xanadu Quantum Technologies Inc.

# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at

#     http://www.apache.org/licenses/LICENSE-2.0

# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""
Unit tests for the :mod:`pennylane.QNodeCollection`
"""
from collections.abc import Sequence

import numpy as onp
import pytest
from pennylane import numpy as np

import pennylane as qml

try:
    import torch
except ImportError as e:
    torch = None

try:
    import tensorflow as tf

    if tf.__version__[0] == "1":
        tf.enable_eager_execution()

    from tensorflow import Variable
except ImportError as e:
    tf = None
    Variable = None

class TestConstruction:
    """Tests for the QNodeCollection construction"""

    def test_empty_init(self):
        """Test that an empty QNode collection can be initialized"""
        qc = qml.QNodeCollection()
        assert qc.qnodes == []
        assert len(qc) == 0

    def test_init_with_qnodes(self):
        """Test that a QNode collection can be initialized with QNodes"""
        dev = qml.device("default.qubit", wires=1)

        def circuit(x):
            qml.RX(x, wires=0)
            return qml.expval(qml.PauliZ(0))

        qnodes = [qml.QNode(circuit, dev) for i in range(4)]
        qc = qml.QNodeCollection(qnodes)

        assert qc.qnodes == qnodes
        assert len(qc) == 4

    @pytest.mark.parametrize("interface", ["autograd", "numpy", "torch", "tf"])
    def test_interface_property(self, interface, tf_support, torch_support):
        """Test that the interface property correctly
        resolves interfaces from the internal QNodes"""
        if interface == "torch" and not torch_support:
            pytest.skip("Skipped, no torch support")

        if interface == "tf" and not tf_support:
            pytest.skip("Skipped, no tf support")

        qc = qml.QNodeCollection()
        assert qc.interface is None

        def circuit(x):
            qml.RX(x, wires=0)
            return qml.expval(qml.PauliZ(0))

        dev = qml.device("default.qubit", wires=1)
        qnodes = [qml.QNode(circuit, dev, interface=interface) for i in range(4)]
        qc = qml.QNodeCollection(qnodes)

        if interface == "numpy":
            # Note: the "numpy" interface is deprecated, and
            # now resolves to "autograd"
            interface = "autograd"

        assert qc.interface == interface

    def test_append_qnode(self):
        """Test that a QNode is correctly appended"""
        qc = qml.QNodeCollection()
        assert qc.qnodes == []

        def circuit(x):
            qml.RX(x, wires=0)
            return qml.expval(qml.PauliZ(0))

        dev = qml.device("default.qubit", wires=1)
        qnode = qml.QNode(circuit, dev)
        qc.append(qnode)

        assert qc.qnodes == [qnode]

    def test_extend_qnodes(self):
        """Test that a list of QNodes is correctly appended"""
        qc = qml.QNodeCollection()
        assert qc.qnodes == []

        def circuit(x):
            qml.RX(x, wires=0)
            return qml.expval(qml.PauliZ(0))

        dev = qml.device("default.qubit", wires=1)
        qnodes = [qml.QNode(circuit, dev) for i in range(4)]
        qc.extend(qnodes)

        assert qc.qnodes == [] + qnodes

    def test_extend_multiple_interface_qnodes(self):
        """Test that an error is returned if QNodes with differing
        interfaces are attempted to be added to a QNodeCollection"""
        qc = qml.QNodeCollection()

        def circuit(x):
            qml.RX(x, wires=0)
            return qml.expval(qml.PauliZ(0))

        dev = qml.device("default.qubit", wires=1)
        qnodes = [
            qml.QNode(circuit, dev, interface="autograd"),
            qml.QNode(circuit, dev, interface=None),
        ]

        with pytest.raises(ValueError, match="do not all use the same interface"):
            qc.extend(qnodes)

    def test_extend_interface_mismatch(self):
        """Test that an error is returned if QNodes with a differing
        interface to the QNode collection are appended"""
        qc = qml.QNodeCollection()

        def circuit(x):
            qml.RX(x, wires=0)
            return qml.expval(qml.PauliZ(0))

        dev = qml.device("default.qubit", wires=1)
        qnode1 = qml.QNode(circuit, dev, interface="autograd")
        qnode2 = qml.QNode(circuit, dev, interface=None)

        qc.extend([qnode1])

        with pytest.raises(ValueError, match="Interface mismatch"):
            qc.extend([qnode2])

    def test_indexing(self):
        """Test that indexing into the QNodeCollection correctly works"""

        def circuit(x):
            qml.RX(x, wires=0)
            return qml.expval(qml.PauliZ(0))

        dev = qml.device("default.qubit", wires=1)
        qnodes = [qml.QNode(circuit, dev) for i in range(4)]

        qc = qml.QNodeCollection(qnodes)
        assert qc[2] == qnodes[2]

    def test_sequence(self):
        """Test that the QNodeCollection is a sequence type"""
        qc = qml.QNodeCollection()
        assert isinstance(qc, Sequence)

@pytest.mark.parametrize("parallel", [False, True])
class TestEvalation:
    """Tests for the QNodeCollection evaluation"""

    @pytest.mark.parametrize("interface", ["autograd", "numpy"])
    def test_eval_autograd(self, qnodes, parallel, interface):
        """Test correct evaluation of the QNodeCollection using
        the Autograd interface"""
        qnode1, qnode2 = qnodes
        qc = qml.QNodeCollection([qnode1, qnode2])
        params = [0.5643, -0.45]

        res = qc(params, parallel=parallel)
        expected = np.vstack([qnode1(params), qnode2(params)])
        assert np.all(res == expected)

    @pytest.mark.parametrize("interface", ["autograd", "numpy"])
    def test_grad_autograd(self, qnodes, parallel, interface):
        """Test correct gradient of the QNodeCollection using
        the Autograd interface"""
        qnode1, qnode2 = qnodes

        params = [0.5643, -0.45]
        qc = qml.QNodeCollection([qnode1, qnode2])
        cost_qc = lambda params: np.sum(qc(params))
        grad_qc = qml.grad(cost_qc, argnum=0)

        cost_expected = lambda params: np.sum(qnode1(params) + qnode2(params))
        grad_expected = qml.grad(cost_expected, argnum=0)

        res = grad_qc(params)
        expected = grad_expected(params)

        assert np.all(res == expected)

    @pytest.mark.parametrize("interface", ["torch"])
    def test_eval_torch(self, qnodes, skip_if_no_torch_support, parallel, interface):
        """Test correct evaluation of the QNodeCollection using
        the torch interface"""
        qnode1, qnode2 = qnodes
        qc = qml.QNodeCollection([qnode1, qnode2])
        params = [0.5643, -0.45]

        res = qc(params, parallel=parallel).numpy()
        expected = np.vstack([qnode1(params), qnode2(params)])
        assert np.all(res == expected)

    @pytest.mark.parametrize("interface", ["torch"])
    def test_grad_torch(self, qnodes, skip_if_no_torch_support, parallel, interface):
        """Test correct gradient of the QNodeCollection using
        the torch interface"""
        qnode1, qnode2 = qnodes

        # calculate the gradient of the collection using pytorch
        params = torch.autograd.Variable(torch.tensor([0.5643, -0.45]), requires_grad=True)
        qc = qml.QNodeCollection([qnode1, qnode2])
        cost = torch.sum(qc(params, parallel=parallel))
        cost.backward()
        res = params.grad.numpy()

        # calculate the gradient of the QNodes individually using pytorch
        params = torch.autograd.Variable(torch.tensor([0.5643, -0.45]), requires_grad=True)
        cost = torch.sum(qnode1(params) + qnode2(params))
        cost.backward()
        expected = params.grad.numpy()

        assert np.all(res == expected)

    @pytest.mark.parametrize("interface", ["tf"])
    def test_eval_tf(self, qnodes, skip_if_no_tf_support, parallel, interface):
        """Test correct evaluation of the QNodeCollection using
        the tf interface"""
        qnode1, qnode2 = qnodes
        qc = qml.QNodeCollection([qnode1, qnode2])
        params = [0.5643, -0.45]

        res = qc(params, parallel=parallel).numpy()
        expected = onp.vstack([qnode1(params), qnode2(params)])
        assert np.all(res == expected)

    @pytest.mark.xfail(raises=AttributeError, reason="Dask breaks the TF gradient tape")
    @pytest.mark.parametrize("interface", ["tf"])
    def test_grad_tf(self, qnodes, skip_if_no_tf_support, parallel, interface):
        """Test correct gradient of the QNodeCollection using
        the tf interface"""
        qnode1, qnode2 = qnodes

        # calculate the gradient of the collection using tf
        params = Variable([0.5643, -0.45])
        qc = qml.QNodeCollection([qnode1, qnode2])

        with tf.GradientTape() as tape:
            tape.watch(params)

            if parallel:
                with pytest.warns(UserWarning):
                    cost = sum(qc(params, parallel=parallel))
            else:
                cost = sum(qc(params, parallel=parallel))

            # the gradient will be None
            res = tape.gradient(cost, params).numpy()

        # calculate the gradient of the QNodes individually using tf
        params = Variable([0.5643, -0.45])

        with tf.GradientTape() as tape:
            tape.watch(params)
            cost = sum(qnode1(params) + qnode2(params))
            expected = tape.gradient(cost, params).numpy()

        assert np.all(res == expected)

{'repo_name': 'XanaduAI/pennylane', 'stars': '517', 'repo_language': 'Python', 'file_name': 'gdb3.mol5.XYZ', 'mime_type': 'text/plain', 'hash': -2249853357324407089, 'source_dataset': 'data'}


<?xml version="1.0" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<title>x509</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rev="made" href="mailto:" />

NAME

SYNOPSIS

DESCRIPTION

SEE ALSO

COPYRIGHT

NAME

x509 - X.509 certificate handling

SYNOPSIS

 #include <openssl/x509.h>

DESCRIPTION

An X.509 certificate is a structured grouping of information about an individual, a device, or anything one can imagine. A X.509 CRL (certificate revocation list) is a tool to help determine if a certificate is still valid. The exact definition of those can be found in the X.509 document from ITU-T, or in RFC3280 from PKIX. In OpenSSL, the type X509 is used to express such a certificate, and the type X509_CRL is used to express a CRL.

A related structure is a certificate request, defined in PKCS#10 from RSA Security, Inc, also reflected in RFC2896. In OpenSSL, the type X509_REQ is used to express such a certificate request.

To handle some complex parts of a certificate, there are the types X509_NAME (to express a certificate name), X509_ATTRIBUTE (to express a certificate attributes), X509_EXTENSION (to express a certificate extension) and a few more.

Finally, there's the supertype X509_INFO, which can contain a CRL, a certificate and a corresponding private key.

X509_XXX, d2i_X509_XXX, and i2d_X509_XXX functions handle X.509 certificates, with some exceptions, shown below.

X509_CRL_XXX, d2i_X509_CRL_XXX, and i2d_X509_CRL_XXX functions handle X.509 CRLs.

X509_REQ_XXX, d2i_X509_REQ_XXX, and i2d_X509_REQ_XXX functions handle PKCS#10 certificate requests.

X509_NAME_XXX functions handle certificate names.

X509_ATTRIBUTE_XXX functions handle certificate attributes.

X509_EXTENSION_XXX functions handle certificate extensions.

SEE ALSO

X509_NAME_ENTRY_get_object(3), X509_NAME_add_entry_by_txt(3), X509_NAME_add_entry_by_NID(3), X509_NAME_print_ex(3), X509_NAME_new(3), d2i_X509(3), d2i_X509_ALGOR(3), d2i_X509_CRL(3), d2i_X509_NAME(3), d2i_X509_REQ(3), d2i_X509_SIG(3), X509v3(3), crypto(7)

COPYRIGHT

Copyright 2003-2017 The OpenSSL Project Authors. All Rights Reserved.

Licensed under the OpenSSL license (the "License"). You may not use this file except in compliance with the License. You can obtain a copy in the file LICENSE in the source distribution or at https://www.openssl.org/source/license.html.

{'repo_name': 'chronoxor/CppServer', 'stars': '336', 'repo_language': 'C++', 'file_name': 'test_udp_multicast.cpp', 'mime_type': 'text/x-c++', 'hash': 1604300323328231476, 'source_dataset': 'data'}


//
//  ECSignalingEvent.m
//  ErizoClientIOS
//
//  Created by Alvaro Gil on 5/18/17.
//
//

#import "ECSignalingEvent.h"

@implementation ECSignalingEvent

- (instancetype)initWithName:(NSString *)name message:(NSDictionary *)message {
    if (self = [super init]) {
        self.name = name;
        self.message = [message mutableCopy];

        self.streamId = [NSString stringWithFormat:@"%@", [message objectForKey:kEventKeyId]];
        self.peerSocketId = [message objectForKey:kEventKeyPeerSocketId];
        self.attributes = [message objectForKey:kEventKeyAttributes];
        self.updatedAttributes = [message objectForKey:kEventKeyUpdatedAttributes];
        self.dataStream = [message objectForKey:kEventKeyDataStream];
        self.audio = [(NSNumber *)[message objectForKey:kEventKeyAudio] boolValue];
        self.video = [(NSNumber *)[message objectForKey:kEventKeyVideo] boolValue];
        self.data = [(NSNumber *)[message objectForKey:kEventKeyData] boolValue];

        // FIXME: Sometimes id is provided and sometimes streamId is provided.
        if ((!self.streamId || [self.streamId isEqualToString:@""])
            && [message valueForKey:kEventKeyStreamId]) {
            self.streamId = [NSString stringWithFormat:@"%@", [message objectForKey:kEventKeyStreamId]];
        }
    }
    return self;
}

@end

{'repo_name': 'zevarito/Licode-ErizoClientIOS', 'stars': '102', 'repo_language': 'Objective-C', 'file_name': 'Logger.m', 'mime_type': 'text/x-objective-c', 'hash': -2048373407723534657, 'source_dataset': 'data'}


server:
    port: 9030
spring:
    application:
        name: mss-gateway
    cloud:
        nacos:
            config:
                server-addr: 127.0.0.1:8848

{'repo_name': 'babylikebird/Micro-Service-Skeleton', 'stars': '734', 'repo_language': 'Java', 'file_name': 'zuul-auth.sql', 'mime_type': 'text/plain', 'hash': 7150271847410076770, 'source_dataset': 'data'}


/**
 * The `Pane` class manages the page's discussion list sidepane. The pane is a
 * part of the content view (DiscussionPage component), but its visibility is
 * determined by CSS classes applied to the outer page element. This class
 * manages the application of those CSS classes.
 */
export default class Pane {
  constructor(element) {
    /**
     * The localStorage key to store the pane's pinned state with.
     *
     * @type {String}
     * @protected
     */
    this.pinnedKey = 'panePinned';

    /**
     * The page element.
     *
     * @type {jQuery}
     * @protected
     */
    this.$element = $(element);

    /**
     * Whether or not the pane is currently pinned.
     *
     * @type {Boolean}
     * @protected
     */
    this.pinned = localStorage.getItem(this.pinnedKey) === 'true';

    /**
     * Whether or not the pane is currently exists.
     *
     * @type {Boolean}
     * @protected
     */
    this.active = false;

    /**
     * Whether or not the pane is currently showing, or is hidden off the edge
     * of the screen.
     *
     * @type {Boolean}
     * @protected
     */
    this.showing = false;

    this.render();
  }

  /**
   * Enable the pane.
   *
   * @public
   */
  enable() {
    this.active = true;
    this.render();
  }

  /**
   * Disable the pane.
   *
   * @public
   */
  disable() {
    this.active = false;
    this.showing = false;
    this.render();
  }

  /**
   * Show the pane.
   *
   * @public
   */
  show() {
    clearTimeout(this.hideTimeout);
    this.showing = true;
    this.render();
  }

  /**
   * Hide the pane.
   *
   * @public
   */
  hide() {
    this.showing = false;
    this.render();
  }

  /**
   * Begin a timeout to hide the pane, which can be cancelled by showing the
   * pane.
   *
   * @public
   */
  onmouseleave() {
    this.hideTimeout = setTimeout(this.hide.bind(this), 250);
  }

  /**
   * Toggle whether or not the pane is pinned.
   *
   * @public
   */
  togglePinned() {
    this.pinned = !this.pinned;

    localStorage.setItem(this.pinnedKey, this.pinned ? 'true' : 'false');

    this.render();
  }

  /**
   * Apply the appropriate CSS classes to the page element.
   *
   * @protected
   */
  render() {
    this.$element.toggleClass('panePinned', this.pinned).toggleClass('hasPane', this.active).toggleClass('paneShowing', this.showing);
  }
}

{'repo_name': 'flarum/core', 'stars': '4966', 'repo_language': 'PHP', 'file_name': 'update.php', 'mime_type': 'text/html', 'hash': 5074040401097935001, 'source_dataset': 'data'}


        {% include xad.html %}

百度站内搜索

Google站内搜索

            <gcse:searchbox-only></gcse:searchbox-only>

博客分类

                {% for tag in site.tags %}

                    {{ tag | first }} ({{ tag | last | size }})

                {% endfor %}

                    所有

赞助我们

            您的支持，将是我们前进的最大动力……

{'repo_name': 'ssy341/datatables-cn', 'stars': '456', 'repo_language': 'HTML', 'file_name': 'deployto_site.bat', 'mime_type': 'text/plain', 'hash': -5740813908460933461, 'source_dataset': 'data'}


/*
 * Copyright (c) 2018 Balabit
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of the GNU General Public License version 2 as published
 * by the Free Software Foundation, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 *
 * As an additional exemption you are allowed to compile & link against the
 * OpenSSL libraries as published by the OpenSSL project. See the file
 * COPYING for details.
 *
 */

#include "cfg-parser.h"
#include "plugin.h"
#include "plugin-types.h"

extern CfgParser openbsd_parser;

static Plugin openbsd_plugins[] =
{
  {
    .type = LL_CONTEXT_SOURCE,
    .name = "openbsd",
    .parser = &openbsd_parser,
  },
};

gboolean
openbsd_module_init(GlobalConfig *cfg, CfgArgs *args)
{
  plugin_register(cfg, openbsd_plugins, G_N_ELEMENTS(openbsd_plugins));
  return TRUE;
}

const ModuleInfo module_info =
{
  .canonical_name = "openbsd",
  .version = SYSLOG_NG_VERSION,
  .description = "This is the system source driver for OpenBSD",
  .core_revision = SYSLOG_NG_SOURCE_REVISION,
  .plugins = openbsd_plugins,
  .plugins_len = G_N_ELEMENTS(openbsd_plugins),
};

{'repo_name': 'syslog-ng/syslog-ng', 'stars': '1310', 'repo_language': 'C', 'file_name': 'FindGettext.cmake', 'mime_type': 'text/plain', 'hash': 1007088033670513614, 'source_dataset': 'data'}