text
stringlengths
2
1.04M
meta
dict
using System.Reflection; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("MVVM Dialogs Test")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] // Setting ComVisible to false makes the types in this assembly not visible // to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("0a89f2e7-8d74-44fc-8842-be3b9f4c445a")]
{ "content_hash": "c1ab8a86ce23981292dee3281e35f51c", "timestamp": "", "source": "github", "line_count": 17, "max_line_length": 84, "avg_line_length": 44.588235294117645, "alnum_prop": 0.7770448548812665, "repo_name": "gigios/mvvm-dialogs", "id": "3b17cedad9365fa4df534dc2091eb1a7cee05ae6", "size": "760", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/NET/MvvmDialogsTest/Properties/AssemblyInfo.cs", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Batchfile", "bytes": "806" }, { "name": "C#", "bytes": "299858" }, { "name": "Gherkin", "bytes": "5209" }, { "name": "Smalltalk", "bytes": "10222" } ], "symlink_target": "" }
<?xml version="1.0" encoding="utf-8"?> <resources> <color name="colorPrimary">#3F51B5</color> <color name="colorPrimaryDark">#303F9F</color> <color name="colorAccent">#FF4081</color> <color name="colorAccentNight">#f982ab</color> <color name="colorTopItem">#696868</color> <color name="colorTopItemNight">#b4091f</color> <color name="colorBarBg">#8f8c8c</color> <color name="colorBarBg2">#f52835</color> <color name="colorBarBg3">#f74853</color> <color name="colorBlue">#8be9f5</color> <color name="colorBlueDark">#75c4ce</color> <color name="colorRed">#fcabb7</color> <color name="colorRedDark">#bc8089</color> <color name="colorGreen">#cdffbb</color> <color name="colorGreenDark">#91b485</color> <color name="colorAsh">#eceaea</color> <color name="colorAshDark">#b7b7b7</color> <color name="colorWhite">#fff</color> <color name="colorBlack">#000</color> <color name="colorItem">#d1cccc</color> <color name="colorItem2">#fff</color> <color name="colorText">#3b3b37</color> <color name="colorActive">#96f151</color> <color name="colorInActive">#d1cccc</color> </resources>
{ "content_hash": "8175f4cf25d8cc3ecddab7f284d6be37", "timestamp": "", "source": "github", "line_count": 36, "max_line_length": 51, "avg_line_length": 32.72222222222222, "alnum_prop": 0.668081494057725, "repo_name": "stoneWangL/GaoDi", "id": "33791f925b1e56f5a28fcd31e276dcdd6eb4f5d5", "size": "1178", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "app/src/main/res/values/colors.xml", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Java", "bytes": "1029908" } ], "symlink_target": "" }
layout: default title: Quick Start output: html_document: highlight: pygments --- # <a name="intro"></a> Introduction [//]: # "-------------------------------------------------------------------------------------" [//]: # "Tutorial introduction" This simple tutorial demonstrates how to get *CogStack Pipeline* running on a sample electronic health record (EHR) dataset stored initially in an external database. CogStack ecosystem has been designed with handling efficiently both structured and unstructured EHR data in mind. It shows its strength while working with the unstructured type of data, especially as some input data can be provided as documents in PDF or image formats. For the moment, however, we only show how to run CogStack on a set of structured and free-text EHRs that have been already digitalized. The part covering unstructured type of data in form of PDF documents, images and other clinical notes which needs to processed prior to analysis will come shortly. This tutorial is divided into 5 parts: 1. Getting CogStack ([link](#getting-cogstack)), 2. A brief description of how does CogStack pipeline work and its ecosystem ([link](#how-does-it-work)), 3. A brief description of the sample datasets used ([link](#datasets)), 4. Running CogStack pipeline 'out-of-the-box' using the dataset already preloaded into a sample database ([link](#running-cogstack)), 5. For advanced users: preparing a database schema according to the sample dataset and to the current CogStack pipeline requirements ([link](#advanced-schema)), 6. For advanced users: preparing the configuration file for CogStack data processing pipeline according to the used database schema and used microservices ([link](#advanced-properties)). To skip the brief description and to get hands on running CogStack pipeline please head directly to [Running CogStack](#running-cogstack) part. The main directory with resources used in this tutorial is available in the CogStack bundle under `examples/`. This tutorial is based on the **Example 2**, however, there are more examples available to play with. # <a name="getting-cogstack"></a> Getting CogStack The most convenient way to get CogStack bundle is to download it directly from the [official github repository](https://github.com/CogStack/CogStack-Pipeline) either by cloning it using git: ```bash git clone https://github.com/CogStack/CogStack-Pipeline.git ``` or by downloading it from the repository and decompressing it: ```bash wget 'https://github.com/CogStack/CogStack-Pipeline/archive/master.zip' unzip master.zip ``` The content will be decompressed into `CogStack-Pipeline/` directory. # <a name="how-does-it-work"></a> How does CogStack work [//]: # "-------------------------------------------------------------------------------------" ## Data processing workflow The data processing workflow of CogStack pipeline is based on [Java Spring Batch](https://spring.io/) framework. Not to dwell too much into technical details and just to give a general idea -- the data is being read from a predefined *data source*, later it follows a number of *processing operations* with the final result stored in a predefined *data sink*. CogStack pipeline implements variety of data processors, data readers and writers with scalability mechanisms that can be selected in CogStack job configuration. Although the data can be possibly read from different sources, the most frequently used data sink is [ElasicSearch](https://www.elastic.co/). For more details about the CogStack functionality, please refer to the [CogStack Documentation](https://cogstack.atlassian.net/wiki/spaces/COGDOC/overview). ![cogstack](https://raw.githubusercontent.com/CogStack/CogStack-Pipeline/master/fig/cogstack_pipeline_sm2.png "CogStack platform and data processing workflow") [//]: # "Content description" In this tutorial we only focus on a simple and very common use-case, where CogStack pipeline reads and process structured and free-text EHRs data from a single PostgreSQL database. The result is then stored in ElasticSearch where the data can be easily queried in [Kibana](https://www.elastic.co/products/kibana) dashboard. However, CogStack pipeline data processing engine also supports multiple data sources -- please see **Example 3** which covers such case. ## CogStack ecosystem CogStack ecosystem consists of multiple inter-connected microservices running together. For the ease of use and deployment we use [Docker](https://www.docker.com/) (more specifically, [Docker Compose](https://docs.docker.com/compose/)), and provide Compose files for configuring and running the microservices. The selection of running microservices depends mostly on the specification of EHR data source(s), data extraction and processing requirements. In this tutorial the CogStack ecosystem is composed of the following microservices: * `samples-db` -- PostgreSQL database loaded with a sample dataset under `db_samples` name, * `cogstack-pipeline` -- CogStack data processing pipeline with worker(s), * `cogstack-job-repo` -- PostgreSQL database for storing information about CogStack jobs, * `elasticsearch-1` -- ElasticSearch search engine (single node) for storing and querying the processed EHR data, * `kibana` -- Kibana data visualization tool for querying the data from ElasticSearch. Since all the examples share the common configuration for the microservices used, the base Docker Compose file is provided in `examples/docker-common/docker-compose.yml`. The Docker Compose file with configuration of microservices being overriden for this example can be found in `examples/example2/docker/docker-compose.override.yml`. Both configuration files are automatically used by Docker Compose when deploying CogStack, as will be shown later. # <a name="datasets"></a> Sample datasets [//]: # "-------------------------------------------------------------------------------------" The sample dataset used in this tutorial consists of two types of EHR data: * Synthetic -- structured, synthetic EHRs, generated using [synthea](https://synthetichealth.github.io/synthea/) application, * Medial reports -- unstructured, medical health report documents obtained from [MTsamples](https://www.mtsamples.com). These datasets, although unrelated, are used together to compose a combined dataset. ## <a name="samples-syn"></a> Synthetic -- synthea-based This dataset consists of synthetic EHRs that were generated using [synthea](https://synthetichealth.github.io/synthea/) application -- the synthetic patient generator that models the medical history of generated patients. For this tutorial, we generated EHRs for 100 patients and exported them as CSV files. Typed in the main synthea directory, the command line for running it: ```bash ./run_synthea -p 100 \ --generate.append_numbers_to_person_names=false \ --exporter.csv.export=true ``` However, the pre-generated files are provided in a compressed form as `examples/rawdata/synsamples.tgz` file. [//]: # "Dataset description" The generated dataset consists of the following files: - `allergies.csv` -- Patient allergy data, - `careplans.csv` -- Patient care plan data, including goals, - `conditions.csv` -- Patient conditions or diagnoses, - `encounters.csv` -- Patient encounter data, - `imaging_studies.csv` -- Patient imaging metadata, - `immunizations.csv` -- Patient immunization data, - `medications.csv` -- Patient medication data, - `observations.csv` -- Patient observations including vital signs and lab reports, - `patients.csv` -- Patient demographic data, - `procedures.csv` -- Patient procedure data including surgeries. For more details about the generated files and the schema definition please refer to the [official synthea wiki page](https://github.com/synthetichealth/synthea/wiki/CSV-File-Data-Dictionary). The sample records are shown in [Advanced: preparing a DB schema for CogStack pipeline](#advanced-schema) part. In this example we use a subset of the available data -- as a simple use-case, only *patients.csv*, *encounters.csv* and *observations.csv* file are used related. These files also represent separate tables in the `db_samples` database. For more advanced use-cases please check the **Example 3** which uses the full dataset. ## <a name="samples-mt"></a> Medical reports -- MTSamples [MTsamples](https://www.mtsamples.com) is a collection of transcribed medical sample reports and examples. The reports are in a free-text format and have been downloaded directly from the official website. Each report contain such information as: * Sample Type, * Medical Specialty, * Sample Name, * Short Description, * Medical Transcription Sample Report (in free text format). The collection comprises in total of 4873 documents. A sample document is shown in [Advanced: preparing a DB schema for CogStack pipeline](#advanced-schema) part. ## Preparing the data For the ease of use a database dump with predefined schema and preloaded data will be provided in `examples/example2/db_dump` directory. This way, the PostgreSQL database will be automatically initialized when deployed using Docker. The database dump for this example (alongside the others) can be also directly downloaded from Amazon S3 by running in the main `examples/` directory: ```bash bash download_db_dumps.sh ``` Alternatively, the PostgreSQL database schema definition used in this tutorial `db_create_schema.sql` is stored in `examples/example2/extra/` directory alongside the script `prepare_db.sh` to generate the database dump. More information covering the creation of database schema can be found in [Advanced: preparing a DB schema for CogStack pipeline](#advanced-schema) part. # <a name="running-cogstack"></a> Running CogStack platform [//]: # "-------------------------------------------------------------------------------------" ## Running CogStack pipeline for the first time For the ease of use CogStack is being deployed and run using Docker. However, before starting the CogStack ecosystem for the first time, one needs to have the database dump files for sample data either by creating them locally or downloading from Amazon S3. To download the database dumps, just type in the main `examples/` directory: ```bash bash download_db_dumps.sh ``` Next, a setup scripts needs to be run locally to prepare the Docker images and configuration files for CogStack data processing pipeline. The script is available in `examples/example2/` path and can be run as: ```bash bash setup.sh ``` As a result, a temporary directory `__deploy/` will be created containing all the necessary artifacts to deploy CogStack. ## Docker-based deployment Next, we can proceed to deploy CogStack ecosystem using Docker Compose. It will configure and start microservices based on the provided Compose files: - common base configuration, copied from `examples/docker-common/docker-compose.yml` , - example-specific configuration copied from `examples/example2/docker/docker-compose.override.yml`. Moreover, the PostgreSQL database container comes with pre-initialized database dump ready to be loaded directly into. In order to run CogStack, type in the `examples/example2/__deploy/` directory: ```bash docker-compose up ``` In the console there will be printed status logs of the currently running microservices. For the moment, however, they may be not very informative (we're working on that). ## Connecting to the microservices ### CogStack ecosystem The picture below sketches a general idea on how the microservices are running and communicating within a sample CogStack ecosystem used in this tutorial. ![alt text]({{ site.url }}/assets/uservices.png "CogStack data processing workflow") [//]: # "Connecting to ES, Kibana and PostgreSQL" Assuming that everything is working fine, we should be able to connect to the running microservices. Selected running services (`elasticsearch-1` and `kibana`) have their port connections forwarded to host `localhost`. When accessing webservices and when asked for **credentials** the username is *test* with password *test*. ### Kibana and ElasticSearch Kibana dashboard used to query the EHRs can be accessed directly in browser via URL: `http://localhost:5601/`. The data can be queried using a number of ElasticSearch indices, e.g. `sample_observations_view`. Usually, each index will correspond to the database view in `db_samples` (`samples-db` PostgreSQL database) from which the data was ingested. However, when entering Kibana dashboard for the first time, an index pattern needs to be configured in the Kibana management panel -- for more information about its creation, please refer to the official [Kibana documentation](https://www.elastic.co/guide/en/kibana/current/tutorial-define-index.html). In addition, ElasticSearch REST end-point can be accessed via URL `http://localhost:9200/`. It can be used to perform manual queries or to be used by other external services -- for example, one can list the available indices: ```bash curl 'http://localhost:9200/_cat/indices' ``` or query one of the available indices -- `sample_observations_view`: ```bash curl 'http://localhost:9200/sample_observations_view' ``` For more information about possible documents querying or modification operations, please refer to the official [ElasticSearch documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/getting-started.html). As a side note, the name for ElasticSearch node in the Docker Compose has been set as `elasticsearch-1`. The `-1` ending emphasizes that for larger-scale deployments, multiple ElasticSearch nodes can be used -- typically, a minimum of 3. ### PostgreSQL sample database Moreover, the access PostgreSQL database with the input sample data is exposed directly at `localhost:5555`. The database name is `db_sample` with user *test* and password *test*. To connect, one can run: ```bash psql -U 'test' -W -d 'db_samples' -h localhost -p 5555 ``` The information about connecting to the micro-services and resources will become useful in [Advanced: preparing a configuration file for CogStack](#advanced-properties) part. # <a name="advanced-schema"></a> Advanced: preparing a DB schema for CogStack pipeline [//]: # "-------------------------------------------------------------------------------------" ## General information In the current implementation, CogStack pipeline can only ingest EHR data from a specified input database. This is why, in order to process the sample patient data covered in this tutorial, one needs to create an appropriate database schema and load the data. Moreover, as relational join statements have a high performance burden for ElasticSearch, the EHR data is best to be stored denormalized in ElasticSearch. This is why, for the moment, we rely on ingesting the data from additional view(s) created in the sample database. Following, we cover the process of defining the required schema step-by-step. ## Database schema -- tables ### Patients table The first 5 records of patient data (file: `patients.csv` from [Synthea-based samples](#samples-syn)) in CSV format is presented below: ```csv ID,BIRTHDATE,DEATHDATE,SSN,DRIVERS,PASSPORT,PREFIX,FIRST,LAST,SUFFIX,MAIDEN,MARITAL,RACE,ETHNICITY,GENDER,BIRTHPLACE,ADDRESS,CITY,STATE,ZIP b9f5a11b-211d-4ced-b3ba-12012c83b937,1939-08-04,1996-03-15,999-11-9633,S99999830,X106007X,Mr.,Brady,Lynch,,,M,white,polish,M,Worcester,701 Schiller Esplanade,Fitchburg,Massachusetts,01420 fab43860-c3be-4808-b7b4-00423c02816b,1962-06-21,2011-03-10,999-67-8307,S99958025,X26840237X,Mrs.,Antonia,Benavides,,Padrón,M,hispanic,mexican,F,Rockland,643 Hand Bay,Boston,Massachusetts,02108 84dd6378-2ddc-44b6-9292-2a4461bcef53,1998-12-01,,999-50-5147,S99987241,,Mr.,Keith,Conn,,,,white,english,M,Rockland,461 Spinka Extension Suite 69,Framingham,Massachusetts,01701 9929044f-1f43-4453-b2c0-a2f45dcdd4be,2014-09-23,,999-64-4171,,,,Derrick,Lakin,,,,white,irish,M,Tewksbury,577 Hessel Lane,Hampden,Massachusetts, ``` The `patients` table definition in PostgreSQL according to the [specification](https://github.com/synthetichealth/synthea/wiki/CSV-File-Data-Dictionary): ```sql CREATE TABLE patients ( id UUID PRIMARY KEY, birthdate DATE NOT NULL, deathdate DATE, ssn VARCHAR(64) NOT NULL, drivers VARCHAR(64), passport VARCHAR(64), prefix VARCHAR(8), first VARCHAR(64) NOT NULL, last VARCHAR(64) NOT NULL, suffix VARCHAR(8), maiden VARCHAR(64), marital CHAR(1), race VARCHAR(64) NOT NULL, ethnicity VARCHAR(64) NOT NULL, gender CHAR(1) NOT NULL, birthplace VARCHAR(64) NOT NULL, address VARCHAR(64) NOT NULL, city VARCHAR(64) NOT NULL, state VARCHAR(64) NOT NULL, zip VARCHAR(64) ) ; ``` ### Encounters table Similarly, the first 5 records of patient encounters data (file: `encounters.csv`) ```csv ID,START,STOP,PATIENT,CODE,DESCRIPTION,COST,REASONCODE,REASONDESCRIPTION 123ffd84-618e-47cd-abca-5fe95b72179a,1955-07-30T07:30Z,1955-07-30T07:45Z,b9f5a11b-211d-4ced-b3ba-12012c83b937,185345009,Encounter for symptom,129.16,36971009,Sinusitis (disorder) 66b016e9-e797-446a-8f2b-e5534acbbb04,1962-03-09T07:30Z,1962-03-09T07:45Z,b9f5a11b-211d-4ced-b3ba-12012c83b937,185349003,Encounter for check up (procedure),129.16,, d517437d-50b5-4cab-aca2-9c010c06989e,1983-08-19T07:30Z,1983-08-19T08:00Z,b9f5a11b-211d-4ced-b3ba-12012c83b937,185349003,Encounter for check up (procedure),129.16,, 2452cf09-021b-4586-9e33-59d7d2242f31,1987-08-28T07:30Z,1987-08-28T07:45Z,b9f5a11b-211d-4ced-b3ba-12012c83b937,185349003,Encounter for check up (procedure),129.16,, f25a828f-ae79-4dd0-b6eb-bca26138421b,1969-09-13T14:02Z,1969-09-13T14:34Z,fab43860-c3be-4808-b7b4-00423c02816b,185345009,Encounter for symptom,129.16,10509002,Acute bronchitis (disorder) ``` with the corresponding `encounters` table definition: ```sql CREATE TABLE encounters ( id UUID PRIMARY KEY NOT NULL, start TIMESTAMP NOT NULL, stop TIMESTAMP, patient UUID REFERENCES patients, code VARCHAR(64) NOT NULL, description VARCHAR(256) NOT NULL, cost REAL NOT NULL, reasoncode VARCHAR(64), reasondescription VARCHAR(256), document TEXT --(*) ) ; ``` Here, with `--(*)` has been marked an additional `document` field. This extra field will be used to store a document from [MTSamples dataset](#samples-mt). Just to clarify, [Synthea-based](#samples-syn) and [MTSamples](#samples-mt) are two unrelated datasets. Here, we are extending the synthetic dataset with the clinical documents from the MTSamples to create a combined one, to be able to perform more advanced queries. A sample document from MTSamples dataset is presented below: ```text Sample Type / Medical Specialty: Allergy / Immunology Sample Name: Allergic Rhinitis Description: A 23-year-old white female presents with complaint of allergies. (Medical Transcription Sample Report) SUBJECTIVE: This 23-year-old white female presents with complaint of allergies. She used to have allergies when she lived in Seattle but she thinks they are worse here. In the past, she has tried Claritin, and Zyrtec. Both worked for short time but then seemed to lose effectiveness. She has used Allegra also. She used that last summer and she began using it again two weeks ago. It does not appear to be working very well. She has used over-the-counter sprays but no prescription nasal sprays. She does have asthma but doest not require daily medication for this and does not think it is flaring up. MEDICATIONS: Her only medication currently is Ortho Tri-Cyclen and the Allegra. ALLERGIES: She has no known medicine allergies. OBJECTIVE: Vitals: Weight was 130 pounds and blood pressure 124/78. HEENT: Her throat was mildly erythematous without exudate. Nasal mucosa was erythematous and swollen. Only clear drainage was seen. TMs were clear. Neck: Supple without adenopathy. Lungs: Clear. ASSESSMENT: Allergic rhinitis. PLAN: 1. She will try Zyrtec instead of Allegra again. Another option will be to use loratadine. She does not think she has prescription coverage so that might be cheaper. 2. Samples of Nasonex two sprays in each nostril given for three weeks. A prescription was written as well. Keywords: allergy / immunology, allergic rhinitis, allergies, asthma, nasal sprays, rhinitis, nasal, erythematous, allegra, sprays, allergic, ``` ### Observations table The next table is `observations`, where the first 5 rows of `observations.csv` file are: ```csv DATE,PATIENT,ENCOUNTER,CODE,DESCRIPTION,VALUE,UNITS,TYPE 1987-08-28,b9f5a11b-211d-4ced-b3ba-12012c83b937,2452cf09-021b-4586-9e33-59d7d2242f31,8302-2,Body Height,180.3,cm,numeric 2002-06-27,fab43860-c3be-4808-b7b4-00423c02816b,fd113dfd-5e2c-40f2-98f3-e153665c3f53,8302-2,Body Height,165.2,cm,numeric 2009-04-07,84dd6378-2ddc-44b6-9292-2a4461bcef53,2058da3b-f7f3-4ebc-8c1e-360cd256cdcb,8302-2,Body Height,138.3,cm,numeric 2002-06-27,fab43860-c3be-4808-b7b4-00423c02816b,fd113dfd-5e2c-40f2-98f3-e153665c3f53,29463-7,Body Weight,81.8,kg,numeric 2009-04-07,84dd6378-2ddc-44b6-9292-2a4461bcef53,2058da3b-f7f3-4ebc-8c1e-360cd256cdcb,29463-7,Body Weight,24.6,kg,numeric ``` and the corresponding table definition: ```sql CREATE TABLE observations ( cid SERIAL PRIMARY KEY, --(*) created TIMESTAMP DEFAULT CURRENT_TIMESTAMP, --(*) date DATE NOT NULL, patient UUID REFERENCES patients, encounter UUID REFERENCES encounters, code VARCHAR(64) NOT NULL, description VARCHAR(256) NOT NULL, value VARCHAR(64) NOT NULL, units VARCHAR(64), type VARCHAR(64) NOT NULL ) ; ``` Here, with `--(*)` have been marked two additional fields with auto-generated values. These are: `cid` field -- an automatically generated primary key and `created` field -- when the record was created. They will be later used by CogStack pipeline for data partitioning when processing the records. The `patient` and `encounters` tables have their primary keys (`ID` field) already defined (of `UUID` type) and are included in the input CSV files. ## Database schema -- views Next, we define a `observations_view` that will be used by CogStack data processing engine to ingest the records from input database: ```sql CREATE VIEW observations_view AS SELECT p.id AS patient_id, p.birthdate AS patient_birth_date, p.deathdate AS patient_death_date, p.ssn AS patient_ssn, p.drivers AS patient_drivers, p.passport AS patient_passport, p.prefix AS patient_prefix, p.first AS patient_first_name, p.last AS patient_last_name, p.suffix AS patient_suffix, p.maiden AS patient_maiden, p.marital AS patient_marital, p.race AS patient_race, p.ethnicity AS patient_ethnicity, p.gender AS patient_gender, p.birthplace AS patient_birthplace, p.address AS patient_addr, p.city AS patient_city, p.state AS patient_state, p.zip AS patient_zip, enc.id AS encounter_id, enc.start AS encounter_start, enc.stop AS encounter_stop, enc.code AS encounter_code, enc.description AS encounter_desc, enc.cost AS encounter_cost, enc.reasoncode AS encounter_reason_code, enc.reasondescription AS encounter_reason_desc, enc.document AS encounter_document, obs.cid AS observation_id, --(*) obs.created AS observation_timestamp, --(*) obs.date AS observation_date, obs.code AS observation_code, obs.description AS observation_desc, obs.value AS observation_value, obs.units AS observation_units, obs.type AS observation_type FROM patients p, encounters enc, observations obs WHERE enc.patient = p.id AND obs.patient = p.id AND obs.encounter = enc.id ; ``` The goal here is to denormalize the database schema for CogStack and ElasticSearch data ingestion, as the `observations` table is referencing both the `patient` and `encounters` tables by their primary key. In the current implementation, CogStack pipeline engine cannot yet perform dynamic joins over the relational data from specific database tables. Some of the crucial fields required for configuring CogStack Pipeline engine with Document data model have been marked with `--(*)` -- these are: - `observation_id` -- the unique identifier of the observation record (typically, the primary key), - `observation_timestamp` -- the record creation or last update time. These fields are later used when [preparing the configuration file for CogStack data processing workflow](#advanced-properties). # <a name="advanced-properties"></a> Advanced: preparing a configuration file for CogStack pipeline [//]: # "-------------------------------------------------------------------------------------" ## General information Each CogStack data processing pipeline is configured using a number of parameters defined in the corresponding [Java *properties* file](https://en.wikipedia.org/wiki/.properties). Moreover, multiple CogStack pipelines can be launched in parallel (see **Example 3**), each using its own *properties* file with configuration. In this example we use only one pipeline with configuration specified in `examples/example2/cogstack/observations.properties` file. ## Properties description There are multiple configurable parameters available to tailor the CogStack data processing pipeline to the specific data processing needs and available resources. Here we will cover only the most important parameters related with configuring the input source, the output sink and data processing workflow. For a more detailed description of the available properties and available profiles, please refer to the official [CogStack Documentation](https://cogstack.atlassian.net/wiki/spaces/COGDOC/overview). ### Spring profiles CogStack configuration file uses Spring profiles, which enable different components of the data processing pipeline. In our example we use: ``` spring.profiles.active = jdbc_in,elasticsearchRest,localPartitioning ``` which denotes that only such profiles will be active: * `jdbc_in` for JDBC input database connector, * `elasticsearchRest` for using REST API for inserting documents to ElasticSearch, * local `partitioning` functionality (for data processing). As a side note, specifying `localPartitioning` is optional, as, when not defined, `localPartitioning` will be used by default. We keep it here for clarity, as one of the obligatory properties to specify are the partitioner configuration. ### Data source The parameters for specifying the data source are defined as follows: ```properties source.JdbcPath = jdbc:postgresql://samples-db:5432/db_samples source.Driver = org.postgresql.Driver source.username = test source.password = test ``` In this example we are using a PostgreSQL database which driver is defined by `source.Driver` parameter. The PostgreSQL database service is available in the CogStack ecosystem as `samples-db`, has exposed port `5432` and the sample database name is `db_samples` -- all these details need to be included in the `source.JdbcPath` parameter field. The information about the data source host and port directly corresponds to the `samples-db` microservice configuration specified in the Docker Compose files (see: `examples/docker-common/docker-compose.yml` and `examples/example2/docker/docker-compose.override.yml`) as mentioned in the [Running CogStack](#running-cogstack) part. Next, we need to instruct CogStack workers how to query the records from the data source: ```properties source.selectClause = SELECT * source.fromClause = FROM observations_view source.sortKey = observations_id source.primaryKeyFieldValue = observations_id source.timeStamp = observations_timestamp source.dbmsToJavaSqlTimestampType = TIMESTAMP ``` This is where the previously defined `observations_view` with additional CogStack-specific fields are used (see: [Advanced: preparing a DB schema for CogStack pipeline](#advanced-schema) part). ### Data sink Next, we need to define the data sink -- in our example, and by default, ElasticSearch is being used: ```properties elasticsearch.cluster.host = elasticsearch-1 elasticsearch.cluster.port = 9200 ``` Similarly, as when defining the sample database source, we need to provide the ElasticSearch host and port configuration according to the microservices definition in the corresponding Docker Compose file. As a side note, security and ssl encryption can be enabled for communication with ElasticSearch. However, it uses the [ElasticSearch X-Pack bundle](https://www.elastic.co/guide/en/x-pack/current/xpack-introduction.html) and requires license for commercial deployments, hence it is disabled by default. In the next step, we can specify some optional (albeit helpful) ElasticSearch indexing parameters: ```properties elasticsearch.index.name = sample_observations_view elasticsearch.excludeFromIndexing = observations_id ``` We specify the index name which will be used to store the documents processed by CogStack workers. Additionally, we specify which fields from the DB view should be excluded from the indexing -- by default, we exclude the binary content, the constant-value fields and the primary key from the `observations_view` (see: [Advanced: preparing a DB schema for CogStack pipeline](#advanced-schema)). ### Jobs and CogStack workers configuration CogStack engine in order to coordinate the workers needs to keep the information about the current jobs in an additional PostgreSQL database -- `cogstack-job-repo`. Hence, similarly as when defining the source database, this database needs to specified: ```properties jobRepository.JdbcPath = jdbc:postgresql://cogstack-job-repo:5432/cogstack jobRepository.Driver = org.postgresql.Driver jobRepository.username = cogstack jobRepository.password = mysecretpassword ``` Moreover, a property can be specified to set a unique name for jobs that will be created: ```properties job.jobName = job_observations ``` It should be an unique name per running CogStack pipeline instance, but it is an optional parameter (default: `defaultJob`). Additionally, a number of available worker threads can be specified by specifying: ```properties step.concurrencyLimit = 4 ``` However, this property is optional and set to `2` by default. ### Partitioner and scheduler Another set of useful parameters are related with controlling the job execution and data partitioning: ```properties partitioner.partitionType = PKTimeStamp partitioner.tableToPartition = observations_view partitioner.pkColumnName = observations_id partitioner.timeStampColumnName = observations_timestamp ``` In the current implementation, CogStack engine can only partition the data using the records' primary key (`observations_id` field, containing unique values) and records' update time (`observations_timestamp` field) as defined in `observations_view`. This is specified by `PKTimeStamp` partitioning method type (the default value). Apart from data partitioning, it once can also set up the scheduler. Although it is disabled by default (`scheduler.useScheduling=false`), it can be easily configured. In this example we do not use scheduler, since we ingest EHRs from the data source only once. However, in case when the data is being generated in a continuous way, scheduler should be enabled to periodically run CogStack jobs to process the new EHRs.
{ "content_hash": "686bcd4826f14da2584120df3ecaaa81", "timestamp": "", "source": "github", "line_count": 533, "max_line_length": 820, "avg_line_length": 58.72420262664165, "alnum_prop": 0.7679552715654953, "repo_name": "CogStack/cogstack", "id": "32485d368902bcb76bc535f76bd82663afe01b9b", "size": "31305", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "docs/quickstart/index.md", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Groovy", "bytes": "2090" }, { "name": "HTML", "bytes": "2995818" }, { "name": "Java", "bytes": "460672" }, { "name": "Shell", "bytes": "8261" } ], "symlink_target": "" }
/* tslint:disable:no-unused-variable */ import { Injectable, OnDestroy } from '@angular/core' import { AppStateService } from '@app/core/app-state' import { DataService } from '@app/core/data' import { MdDialog, MdDialogRef, ComponentType } from '@angular/material' import { ItemDialog } from './item-dialog.interface' import { EditTextItemDialogComponent } from './edit-text-item/edit-text-item.dialog' import { DeleteItemDialogComponent } from './delete-item/delete-item.dialog' import { ReactToItemDialogComponent } from './react-to-item/react-to-item.dialog' import { ReportItemDialogComponent } from './report-item/report-item.dialog' import { SelectItemOptionDialogComponent } from './select-item-option/select-item-option.dialog' import * as M from '@app/core/model' import * as MLI from '@app/core/model/lobby-item.model' import moment = require('moment') function reltime(num: number, unit: moment.unitOfTime.DurationConstructor): Date { return moment().add(num, unit).toDate() } // TODO: clean. type isn't DRY type Options = { Post: M.LobbyItem, Data: M.LobbyItemData, CanEdit: boolean } export const DIALOGS = [ EditTextItemDialogComponent, DeleteItemDialogComponent, ReactToItemDialogComponent, ReportItemDialogComponent, SelectItemOptionDialogComponent, ] @Injectable() export class LobbyItemOptionsDialogService implements OnDestroy { private lastOption: M.LobbyItemOption private lastOptions: Options private isDialogOpen: boolean private openDialogRef: MdDialogRef<ItemDialog> constructor( private app: AppStateService, private data: DataService, private dialog: MdDialog) {} push(...obj) { let args = [`LobbyAction %cpush`, 'font-weight: bold', ...obj] console.log.apply(console, args) } private close() { // close MdDialog this.isDialogOpen = false this.lastOptions = null this.openDialogRef.close() } private open(options: Options, option: M.LobbyItemOption) { if (this.isDialogOpen) { this.close() } if (options == null) { return } let dialogRef: MdDialogRef<ItemDialog> // depending on the dialog type, we open different dialogs switch (option) { case M.LobbyItemOption.DELETE: dialogRef = this.dialog.open(DeleteItemDialogComponent); break case M.LobbyItemOption.EDIT: dialogRef = this.dialog.open(EditTextItemDialogComponent, { width: '80vw' }); break case M.LobbyItemOption.REACT: dialogRef = this.dialog.open(ReactToItemDialogComponent); break case M.LobbyItemOption.REPORT: dialogRef = this.dialog.open(ReportItemDialogComponent); break default: dialogRef = this.dialog.open(SelectItemOptionDialogComponent); break } this.isDialogOpen = true this.openDialogRef = dialogRef this.lastOptions = options this.lastOption = option // provide item options dialogRef.componentInstance.set(options) dialogRef.afterClosed().subscribe(result => { if (!this.isDialogOpen) { return } this.isDialogOpen = false let action = this.app.action("Close ItemDialog") console.log("DIALOG RESULT", result) action(`Result: ${result}`, { Lobby: { ItemOptions: null } }) }) } update(options: Options, option: M.LobbyItemOption) { if (this.isDialogOpen) { // we have something open if (options == null) { // close what we have open return this.close() } if (options.Post.Id === this.lastOptions.Post.Id && option === this.lastOption) { // we have the same thing open as before return } return this.open(options, option) } else { // we currently have nothing open // still nothing open if (options == null) { return } return this.open(options, option) } } // We'll listen for destruction so we can close the dialog in the case of hot reload ngOnDestroy() { if (this.isDialogOpen) { this.isDialogOpen = false this.openDialogRef.close() } } }
{ "content_hash": "ca6af72ae7bcd7379fbeb371b8e6197a", "timestamp": "", "source": "github", "line_count": 133, "max_line_length": 96, "avg_line_length": 30.458646616541355, "alnum_prop": 0.6889656874845718, "repo_name": "CovalentLabs/project-w-app", "id": "dfbc7c00d683e7f66d521ac944d290cf04418c17", "size": "4051", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/@app/routes/lobby/dialogs/lobby-item-options-dialog.service.ts", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "15921" }, { "name": "HTML", "bytes": "20634" }, { "name": "JavaScript", "bytes": "24960" }, { "name": "TypeScript", "bytes": "115937" } ], "symlink_target": "" }
FN="humanStemCell_0.34.0.tar.gz" URLS=( "https://bioconductor.org/packages/3.14/data/experiment/src/contrib/humanStemCell_0.34.0.tar.gz" "https://bioarchive.galaxyproject.org/humanStemCell_0.34.0.tar.gz" "https://depot.galaxyproject.org/software/bioconductor-humanstemcell/bioconductor-humanstemcell_0.34.0_src_all.tar.gz" ) MD5="7ac5b85557ae11179f8d22f5abdfc418" # Use a staging area in the conda dir rather than temp dirs, both to avoid # permission issues as well as to have things downloaded in a predictable # manner. STAGING=$PREFIX/share/$PKG_NAME-$PKG_VERSION-$PKG_BUILDNUM mkdir -p $STAGING TARBALL=$STAGING/$FN SUCCESS=0 for URL in ${URLS[@]}; do curl -L $URL > $TARBALL [[ $? == 0 ]] || continue # Platform-specific md5sum checks. if [[ $(uname -s) == "Linux" ]]; then if md5sum -c <<<"$MD5 $TARBALL"; then SUCCESS=1 break fi else if [[ $(uname -s) == "Darwin" ]]; then if [[ $(md5 $TARBALL | cut -f4 -d " ") == "$MD5" ]]; then SUCCESS=1 break fi fi fi done if [[ $SUCCESS != 1 ]]; then echo "ERROR: post-link.sh was unable to download any of the following URLs with the md5sum $MD5:" printf '%s\n' "${URLS[@]}" exit 1 fi # Install and clean up R CMD INSTALL --library=$PREFIX/lib/R/library $TARBALL rm $TARBALL rmdir $STAGING
{ "content_hash": "243ccde471852e084b2ca0a27f6d82a2", "timestamp": "", "source": "github", "line_count": 45, "max_line_length": 120, "avg_line_length": 29.066666666666666, "alnum_prop": 0.6704892966360856, "repo_name": "zachcp/bioconda-recipes", "id": "ac61f1cba626d20c71215791b61cf0f19d9d317c", "size": "1320", "binary": false, "copies": "5", "ref": "refs/heads/master", "path": "recipes/bioconductor-humanstemcell/post-link.sh", "mode": "33188", "license": "mit", "language": [ { "name": "Batchfile", "bytes": "3356" }, { "name": "C", "bytes": "154" }, { "name": "CMake", "bytes": "18139" }, { "name": "Groovy", "bytes": "1725" }, { "name": "ImageJ Macro", "bytes": "185" }, { "name": "Perl", "bytes": "45847" }, { "name": "Python", "bytes": "492183" }, { "name": "Raku", "bytes": "1067" }, { "name": "Roff", "bytes": "1012" }, { "name": "Shell", "bytes": "4129537" } ], "symlink_target": "" }
import { HistoryJSON, MaterialRevisionJSON, ModificationJSON, PipelineActivityJSON, StageJSON } from "../pipeline_activity_json"; export function passed(name: string, stageId: number = Math.random()) { return PipelineActivityData.stage(stageId, name, "Passed"); } export function failed(name: string, stageId: number = Math.random()) { return PipelineActivityData.stage(stageId, name, "Failed"); } export function building(name: string, stageId: number = Math.random()) { return PipelineActivityData.stage(stageId, name, "Building"); } export function cancelled(name: string, stageId: number = Math.random()) { return PipelineActivityData.stage(stageId, name, "Cancelled"); } export function unknown(name: string, stageId: number = Math.random()) { return PipelineActivityData.stage(stageId, name, "Unknown"); } export class PipelineActivityData { static modification(revision: string = this.randomRevision()) { return { user: "Bob <bob@go.cd>", revision, date: "2019-11-21T1:3:20+0:30", comment: "Adding test file", modifiedFiles: [] } as ModificationJSON; } static materialRevision(modifications: ModificationJSON[] = [this.modification(), this.modification()]) { return { revision: modifications[0].revision, revision_href: modifications[0].revision, user: modifications[0].user, date: modifications[0].date, changed: true, folder: "", scmType: "Git", location: "http://github.com/bdpiparva/sample_repo", action: "Modified", modifications } as MaterialRevisionJSON; } static pipelineRunInfo(...stages: StageJSON[]): HistoryJSON { return { pipelineId: 42, label: "1", counterOrLabel: "1", scheduled_date: "22 Nov, 2019 at 1:5:59 [+0530]", scheduled_timestamp: 1574404139615, buildCauseBy: "Triggered by changes", modification_date: "about 22 hours ago", revision: "b0982fa2ff92d126ad003c9e007959b4b8dd96a9", comment: "Initial commit", materialRevisions: [this.materialRevision(), this.materialRevision()], stages } as HistoryJSON; } static stage(stageId: number, name: string, status: string) { return { stageName: name, stageId, stageStatus: status, stageLocator: "Foo/0/foo/1", getCanRun: true, getCanCancel: false, scheduled: false, stageCounter: 1 } as StageJSON; } static underConstruction() { return { pipelineName: "up42", paused: true, pauseCause: "Under construction", pauseBy: "admin", canForce: false, nextLabel: "", groups: [ { config: { stages: [ { name: "foo", isAutoApproved: true } ] }, history: [ { pipelineId: -1, label: "unknown", counterOrLabel: "0", scheduled_date: "N/A", scheduled_timestamp: null, buildCauseBy: "Triggered by null", modification_date: "N/A", materialRevisions: [], stages: [ { stageName: "foo", stageId: 0, stageStatus: "Unknown", stageLocator: "Foo/0/foo/1", getCanRun: false, getCanCancel: false, scheduled: false, stageCounter: 1 } ], revision: "", comment: null } ] } ], forcedBuild: false, showForceBuildButton: false, canPause: true, count: 0, start: 0, perPage: 10 } as PipelineActivityJSON; } static oneStage() { return { pipelineName: "up43", paused: false, pauseCause: "", pauseBy: "", canForce: true, nextLabel: "", groups: [{ config: { stages: [{ name: "up42_stage", isAutoApproved: true }] }, history: [{ pipelineId: 42, label: "1", counterOrLabel: "1", scheduled_date: "22 Nov, 2019 at 1:5:59 [+0530]", scheduled_timestamp: 1574404139615, buildCauseBy: "Triggered by changes", modification_date: "about 22 hours ago", revision: "b0982fa2ff92d126ad003c9e007959b4b8dd96a9", comment: "Initial commit", materialRevisions: [{ revision: "b0982fa2ff92d126ad003c9e007959b4b8dd96a9", revision_href: "b0982fa2ff92d126ad003c9e007959b4b8dd96a9", user: "Bob <bob@go.cd>", date: "2019-11-21T1:3:20+0:30", changed: true, folder: "", scmType: "Git", location: "http://github.com/bdpiparva/sample_repo", action: "Modified", modifications: [{ user: "Bob <bob@go.cd>", revision: "b0982fa2ff92d126ad003c9e007959b4b8dd96a9", date: "2019-11-21T1:3:20+0:30", comment: "Adding test file", modifiedFiles: [] }] }], stages: [{ stageName: "up42_stage", stageId: 96, stageStatus: "Passed", stageLocator: "up43/1/up42_stage/1", getCanRun: true, getCanCancel: false, scheduled: true, stageCounter: 1, approvedBy: "changes" }] }] }], forcedBuild: false, showForceBuildButton: false, canPause: true, count: 1, start: 0, perPage: 10 } as PipelineActivityJSON; } private static randomRevision() { return [ "3b5c3810db30d1c98bdb18fb2fe91aabf593a", "501d66d5e442fd5e324e7ecf3e6627048abf1", "71f39e9b97063728be0f392ff5ba0e9df69e0", "445f86e9d0c080d72c7c8c5138408fe8f5acb", "a999249c08041ce2eedbb8bedae54e94684b1", "9d9f4dcd9a50c036cbcfb68b7c872feecb253", "5fc07bdda3a2aa151d76d75d7df9a32e440b1", "f53e09dc678d3a97c2b23e4b19a57bc67b489"] [this.getRandomIntegerInRange(0, 7)] + this.getRandomIntegerInRange(100, 999); } private static getRandomIntegerInRange(min: number, max: number) { return Math.ceil(Math.random() * (max - min) + min); } }
{ "content_hash": "7e1c475358795678fbdf7e6e3b10d4d0", "timestamp": "", "source": "github", "line_count": 222, "max_line_length": 107, "avg_line_length": 28.98198198198198, "alnum_prop": 0.5655890581286913, "repo_name": "ibnc/gocd", "id": "3dbfd3bc4a491d6d8dae898169f04219231cf360", "size": "7033", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "server/src/main/webapp/WEB-INF/rails/webpack/models/pipeline_activity/spec/test_data.ts", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Batchfile", "bytes": "466" }, { "name": "CSS", "bytes": "833927" }, { "name": "FreeMarker", "bytes": "9764" }, { "name": "Groovy", "bytes": "2043806" }, { "name": "HTML", "bytes": "644360" }, { "name": "Java", "bytes": "20536854" }, { "name": "JavaScript", "bytes": "2679628" }, { "name": "NSIS", "bytes": "23526" }, { "name": "PowerShell", "bytes": "691" }, { "name": "Ruby", "bytes": "1952239" }, { "name": "Shell", "bytes": "169149" }, { "name": "TSQL", "bytes": "200114" }, { "name": "TypeScript", "bytes": "2964749" }, { "name": "XSLT", "bytes": "200357" } ], "symlink_target": "" }
/** * Automatically generated file. Please do not edit. * @author Highcharts Config Generator by Karasiq * @see [[http://api.highcharts.com/highstock]] */ package com.highstock.config import scalajs.js, js.`|` import com.highcharts.CleanJsObject import com.highcharts.HighchartsUtils._ /** * @note JavaScript name: <code>navigation-menuStyle</code> */ @js.annotation.ScalaJSDefined class NavigationMenuStyle extends com.highcharts.HighchartsGenericObject { val border: js.UndefOr[String] = js.undefined val background: js.UndefOr[String] = js.undefined val padding: js.UndefOr[String] = js.undefined } object NavigationMenuStyle { /** */ def apply(border: js.UndefOr[String] = js.undefined, background: js.UndefOr[String] = js.undefined, padding: js.UndefOr[String] = js.undefined): NavigationMenuStyle = { val borderOuter: js.UndefOr[String] = border val backgroundOuter: js.UndefOr[String] = background val paddingOuter: js.UndefOr[String] = padding com.highcharts.HighchartsGenericObject.toCleanObject(new NavigationMenuStyle { override val border: js.UndefOr[String] = borderOuter override val background: js.UndefOr[String] = backgroundOuter override val padding: js.UndefOr[String] = paddingOuter }) } }
{ "content_hash": "cf518472879aa4675abdfeb91c892c62", "timestamp": "", "source": "github", "line_count": 38, "max_line_length": 170, "avg_line_length": 33.73684210526316, "alnum_prop": 0.7386895475819033, "repo_name": "Karasiq/scalajs-highcharts", "id": "c6a5519d42c8c774e507b6fb8016c848ec84f810", "size": "1282", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/main/scala/com/highstock/config/NavigationMenuStyle.scala", "mode": "33188", "license": "mit", "language": [ { "name": "Scala", "bytes": "131509301" } ], "symlink_target": "" }
import ReactDOM from 'react-dom'; import React from 'react'; import PsdCanvas from './Components/PsdCanvas'; window.onload = () => { var psdSrc = 'http://127.0.0.1:3000/api/get/psd?url=' + getSearchObj().psd + '.psd'; ReactDOM.render( <PsdCanvas psd={psdSrc}/>, document.querySelector('#container') ); function getSearchObj() { var loc = document.location; var searchStr = loc.search; var searchKvs; var obj = {}; searchStr = searchStr.slice(1); searchKvs = searchStr.split('&'); searchKvs.forEach(function (v, k) { var tmp = v.split('='); obj[tmp[0]] = tmp[1]; }); return obj; } };
{ "content_hash": "3914bb6adf6376bf66a8fb0fa6bef472", "timestamp": "", "source": "github", "line_count": 26, "max_line_length": 86, "avg_line_length": 25.076923076923077, "alnum_prop": 0.6088957055214724, "repo_name": "SKing7/surveyer", "id": "2ce6cb010ade7a976d0c27c9ccd8718317dbc3c5", "size": "652", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/index.js", "mode": "33188", "license": "mit", "language": [ { "name": "HTML", "bytes": "196" }, { "name": "JavaScript", "bytes": "1900085" } ], "symlink_target": "" }
package com.img.host.core; import lombok.Builder; import lombok.Value; @Value @Builder public class Image { private String id; private String filename; private String originalFilename; private String extension; }
{ "content_hash": "cdfb7450fb4e8b0182c7befe8ecc7521", "timestamp": "", "source": "github", "line_count": 14, "max_line_length": 36, "avg_line_length": 16.571428571428573, "alnum_prop": 0.7413793103448276, "repo_name": "rtatol/img-host", "id": "49ffa4d4d6d35904686056658fcecf5e9ded521b", "size": "232", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/main/java/com/img/host/core/Image.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "HTML", "bytes": "1079" }, { "name": "Java", "bytes": "9498" } ], "symlink_target": "" }
<h3>Useful Links</h3> <ul> <li><a href="https://pypi.python.org/pypi/openvpn-status">PyPI</a></li> <li><a href="https://github.com/tonyseek/openvpn-status">GitHub</a></li> <li><a href="https://github.com/tonyseek/openvpn-status/issues">Issue Tracker</a></li> </ul>
{ "content_hash": "a88bd47e2532b82b20a87f34adda9f5f", "timestamp": "", "source": "github", "line_count": 6, "max_line_length": 90, "avg_line_length": 46.166666666666664, "alnum_prop": 0.6570397111913358, "repo_name": "tonyseek/openvpn-status", "id": "5cb54f602b7ba16ed7975e3efbaa40b097353c63", "size": "277", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "docs/_templates/sidebarlinks.html", "mode": "33188", "license": "mit", "language": [ { "name": "Makefile", "bytes": "161" }, { "name": "Python", "bytes": "22670" } ], "symlink_target": "" }
<!DOCTYPE HTML> <html lang="de"> <head> <!-- Generated by javadoc (18) --> <title>Source code</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content="source: package: com.restfb.types.send, class: AccountUnlinkButton"> <meta name="generator" content="javadoc/SourceToHTMLConverter"> <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> </head> <body class="source-page"> <main role="main"> <div class="source-container"> <pre><span class="source-line-no">001</span><span id="line-1"></span> <span class="source-line-no">022</span><span id="line-22">package com.restfb.types.send;</span> <span class="source-line-no">023</span><span id="line-23"></span> <span class="source-line-no">024</span><span id="line-24">/**</span> <span class="source-line-no">025</span><span id="line-25"> * Represents the</span> <span class="source-line-no">026</span><span id="line-26"> * &lt;a href="https://developers.facebook.com/docs/messenger-platform/account-linking/unlink-account"&gt;Unlink</span> <span class="source-line-no">027</span><span id="line-27"> * Account/Logout button&lt;/a&gt; type</span> <span class="source-line-no">028</span><span id="line-28"> */</span> <span class="source-line-no">029</span><span id="line-29">public class AccountUnlinkButton extends AbstractButton {</span> <span class="source-line-no">030</span><span id="line-30"></span> <span class="source-line-no">031</span><span id="line-31"> public AccountUnlinkButton() {</span> <span class="source-line-no">032</span><span id="line-32"> super(null);</span> <span class="source-line-no">033</span><span id="line-33"> setType("account_unlink");</span> <span class="source-line-no">034</span><span id="line-34"> }</span> <span class="source-line-no">035</span><span id="line-35">}</span> </pre> </div> </main> </body> </html>
{ "content_hash": "3dec9d15423338b5aedd8028530424b7", "timestamp": "", "source": "github", "line_count": 93, "max_line_length": 177, "avg_line_length": 20.956989247311828, "alnum_prop": 0.6685479733196511, "repo_name": "restfb/restfb.github.io", "id": "9513ef7b29b0d2453b356b291d16ad44ee3d6cb5", "size": "4378", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "javadoc/src-html/com/restfb/types/send/AccountUnlinkButton.html", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "5482" }, { "name": "HTML", "bytes": "25044" }, { "name": "JavaScript", "bytes": "16395" }, { "name": "SCSS", "bytes": "14167" } ], "symlink_target": "" }
use std::fmt; use std::error::Error; use std::sync::Mutex; use CapabilitiesSource; use gl; use version::Api; use version::Version; pub use self::compute::ComputeShader; pub use self::program::Program; pub use self::reflection::{Uniform, UniformBlock, BlockLayout, OutputPrimitives}; pub use self::reflection::{Attribute, TransformFeedbackVarying, TransformFeedbackBuffer, TransformFeedbackMode}; mod compute; mod program; mod raw; mod reflection; mod shader; mod uniforms_storage; /// Returns true if the backend supports geometry shaders. pub fn is_geometry_shader_supported<C>(ctxt: &C) -> bool where C: CapabilitiesSource { shader::check_shader_type_compatibility(ctxt, gl::GEOMETRY_SHADER) } /// Returns true if the backend supports tessellation shaders. pub fn is_tessellation_shader_supported<C>(ctxt: &C) -> bool where C: CapabilitiesSource { shader::check_shader_type_compatibility(ctxt, gl::TESS_CONTROL_SHADER) } /// Returns true if the backend supports creating and retreiving binary format. pub fn is_binary_supported<C>(ctxt: &C) -> bool where C: CapabilitiesSource { ctxt.get_version() >= &Version(Api::Gl, 4, 1) || ctxt.get_version() >= &Version(Api::GlEs, 2, 0) || ctxt.get_extensions().gl_arb_get_programy_binary } /// Some shader compilers have race-condition issues, so we lock this mutex /// in the GL thread every time we compile a shader or link a program. // TODO: replace by a StaticMutex lazy_static! { static ref COMPILER_GLOBAL_LOCK: Mutex<()> = Mutex::new(()); } /// Error that can be triggered when creating a `Program`. #[derive(Clone, Debug)] pub enum ProgramCreationError { /// Error while compiling one of the shaders. CompilationError(String), /// Error while linking the program. LinkingError(String), /// One of the requested shader types is not supported by the backend. /// /// Usually the case for geometry shaders. ShaderTypeNotSupported, /// The OpenGL implementation doesn't provide a compiler. CompilationNotSupported, /// You have requested transform feedback varyings, but transform feedback is not supported /// by the backend. TransformFeedbackNotSupported, /// You have requested point size setting from the shader, but it's not /// supported by the backend. PointSizeNotSupported, } impl fmt::Display for ProgramCreationError { fn fmt(&self, formatter: &mut fmt::Formatter) -> Result<(), fmt::Error> { match self { &ProgramCreationError::CompilationError(ref s) => formatter.write_fmt(format_args!("Compilation error in one of the shaders: {}", s)), &ProgramCreationError::LinkingError(ref s) => formatter.write_fmt(format_args!("Error while linking shaders together: {}", s)), &ProgramCreationError::ShaderTypeNotSupported => formatter.write_str("One of the request shader type is \ not supported by the backend"), &ProgramCreationError::CompilationNotSupported => formatter.write_str("The backend doesn't support shaders compilation"), &ProgramCreationError::TransformFeedbackNotSupported => formatter.write_str("You requested transform feedback, but this feature is not \ supported by the backend"), &ProgramCreationError::PointSizeNotSupported => formatter.write_str("You requested point size setting, but it's not \ supported by the backend"), } } } impl Error for ProgramCreationError { fn description(&self) -> &str { match self { &ProgramCreationError::CompilationError(_) => "Compilation error in one of the \ shaders", &ProgramCreationError::LinkingError(_) => "Error while linking shaders together", &ProgramCreationError::ShaderTypeNotSupported => "One of the request shader type is \ not supported by the backend", &ProgramCreationError::CompilationNotSupported => "The backend doesn't support \ shaders compilation", &ProgramCreationError::TransformFeedbackNotSupported => "Transform feedback is not \ supported by the backend.", &ProgramCreationError::PointSizeNotSupported => "Point size is not supported by \ the backend.", } } fn cause(&self) -> Option<&Error> { None } } /// Error while retreiving the binary representation of a program. #[derive(Copy, Clone, Debug)] pub enum GetBinaryError { /// The backend doesn't support binary. NotSupported, } /// Input when creating a program. pub enum ProgramCreationInput<'a> { /// Use GLSL source code. SourceCode { /// Source code of the vertex shader. vertex_shader: &'a str, /// Source code of the optional tessellation control shader. tessellation_control_shader: Option<&'a str>, /// Source code of the optional tessellation evaluation shader. tessellation_evaluation_shader: Option<&'a str>, /// Source code of the optional geometry shader. geometry_shader: Option<&'a str>, /// Source code of the fragment shader. fragment_shader: &'a str, /// The list of variables and mode to use for transform feedback. /// /// The information specified here will be passed to the OpenGL linker. If you pass /// `None`, then you won't be able to use transform feedback. transform_feedback_varyings: Option<(Vec<String>, TransformFeedbackMode)>, /// Whether the shader uses point size. uses_point_size: bool, }, /// Use a precompiled binary. Binary { /// The data. data: Binary, /// Whether the shader uses point size. uses_point_size: bool, } } /// Represents the source code of a program. pub struct SourceCode<'a> { /// Source code of the vertex shader. pub vertex_shader: &'a str, /// Source code of the optional tessellation control shader. pub tessellation_control_shader: Option<&'a str>, /// Source code of the optional tessellation evaluation shader. pub tessellation_evaluation_shader: Option<&'a str>, /// Source code of the optional geometry shader. pub geometry_shader: Option<&'a str>, /// Source code of the fragment shader. pub fragment_shader: &'a str, } impl<'a> From<SourceCode<'a>> for ProgramCreationInput<'a> { fn from(code: SourceCode<'a>) -> ProgramCreationInput<'a> { let SourceCode { vertex_shader, fragment_shader, geometry_shader, tessellation_control_shader, tessellation_evaluation_shader } = code; ProgramCreationInput::SourceCode { vertex_shader: vertex_shader, tessellation_control_shader: tessellation_control_shader, tessellation_evaluation_shader: tessellation_evaluation_shader, geometry_shader: geometry_shader, fragment_shader: fragment_shader, transform_feedback_varyings: None, uses_point_size: false, } } } /// Represents the compiled binary data of a program. pub struct Binary { /// An implementation-defined format. pub format: u32, /// The binary data. pub content: Vec<u8>, } impl<'a> From<Binary> for ProgramCreationInput<'a> { fn from(binary: Binary) -> ProgramCreationInput<'a> { ProgramCreationInput::Binary { data: binary, uses_point_size: false, } } }
{ "content_hash": "24a84b2d5743d651849bb026d89ee909", "timestamp": "", "source": "github", "line_count": 212, "max_line_length": 112, "avg_line_length": 37.29716981132076, "alnum_prop": 0.633995194131782, "repo_name": "TyOverby/glium", "id": "90f4238036018838c4517b13e5388956118fea0b", "size": "7907", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/program/mod.rs", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Rust", "bytes": "1258769" } ], "symlink_target": "" }
package gov.nasa.pds.ws.jaxws; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlType; /** * This class was generated by Apache CXF 2.5.2 * Thu Apr 26 23:51:09 EEST 2012 * Generated source version: 2.5.2 */ @XmlRootElement(name = "searchEntitiesByTypeResponse", namespace = "http://pds.nasa.gov/") @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "searchEntitiesByTypeResponse", namespace = "http://pds.nasa.gov/") public class SearchEntitiesByTypeResponse { @XmlElement(name = "return") private gov.nasa.pds.entities.PagedResults<gov.nasa.pds.entities.EntityInfo> _return; public gov.nasa.pds.entities.PagedResults<gov.nasa.pds.entities.EntityInfo> getReturn() { return this._return; } public void setReturn(gov.nasa.pds.entities.PagedResults<gov.nasa.pds.entities.EntityInfo> new_return) { this._return = new_return; } }
{ "content_hash": "622e6825095d6835694c5aa7ff70d9ea", "timestamp": "", "source": "github", "line_count": 34, "max_line_length": 109, "avg_line_length": 31.205882352941178, "alnum_prop": 0.7474081055607917, "repo_name": "Small-Bodies-Node/ntl_archive_db_demo", "id": "8231cb99a2cfb43dc83ebd2019e80e43d85d5fc5", "size": "1061", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "web_service/src/gov/nasa/pds/ws/jaxws/SearchEntitiesByTypeResponse.java", "mode": "33188", "license": "bsd-3-clause", "language": [ { "name": "AGS Script", "bytes": "27887" }, { "name": "Assembly", "bytes": "3762" }, { "name": "Batchfile", "bytes": "77" }, { "name": "C", "bytes": "182066" }, { "name": "CSS", "bytes": "23875" }, { "name": "Fortran", "bytes": "95116" }, { "name": "HTML", "bytes": "28854" }, { "name": "IDL", "bytes": "10507" }, { "name": "Java", "bytes": "1320413" }, { "name": "JavaScript", "bytes": "452930" }, { "name": "Makefile", "bytes": "3081" }, { "name": "Objective-C", "bytes": "746" } ], "symlink_target": "" }
import React, { Component, PropTypes } from 'react'; import './chat-inset.scss'; export default class ChatInset extends Component { static propTypes = { participants: PropTypes.array.isRequired, date: PropTypes.string.isRequired, lastMessage: PropTypes.string.isRequired, } render() { const styles = require('./styles'); const { participants, date, lastMessage } = this.props; return ( <div className="ChatInset" style={styles.chatInset}> <div style={styles.chatInsetText}> <div style={styles.chatInsetParticipant}>{participants[0]}</div> <div style={styles.chatInsetLastMessage}>{lastMessage}</div> </div> <div style={styles.chatInsetDate}> {date} </div> </div> ); } }
{ "content_hash": "237f74888add06b0d11395824abd557e", "timestamp": "", "source": "github", "line_count": 28, "max_line_length": 74, "avg_line_length": 28, "alnum_prop": 0.6364795918367347, "repo_name": "BusyginCode/chat", "id": "f7edda3584a0074a5a6694812094adaee177559f", "size": "784", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/containers/ChatMain/InsetList/components/ChatInset/index.js", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "3875" }, { "name": "JavaScript", "bytes": "91973" } ], "symlink_target": "" }
package io.aeron; import org.agrona.CloseHelper; import org.agrona.IoUtil; import org.agrona.concurrent.UnsafeBuffer; import java.io.IOException; import java.nio.MappedByteBuffer; import java.nio.channels.FileChannel; import java.nio.file.Paths; import static io.aeron.logbuffer.LogBufferDescriptor.*; import static java.nio.file.StandardOpenOption.READ; import static java.nio.file.StandardOpenOption.WRITE; /** * Takes a log file name and maps the file into memory and wraps it with {@link UnsafeBuffer}s as appropriate. * * @see io.aeron.logbuffer.LogBufferDescriptor */ public class LogBuffers implements AutoCloseable { private final int termLength; private final FileChannel fileChannel; private final UnsafeBuffer[] termBuffers = new UnsafeBuffer[PARTITION_COUNT]; private final UnsafeBuffer logMetaDataBuffer; private final MappedByteBuffer[] mappedByteBuffers; public LogBuffers(final String logFileName, final FileChannel.MapMode mapMode) { try { fileChannel = FileChannel.open(Paths.get(logFileName), READ, WRITE); final long logLength = fileChannel.size(); final int termLength = computeTermLength(logLength); checkTermLength(termLength); this.termLength = termLength; if (logLength < Integer.MAX_VALUE) { final MappedByteBuffer mappedBuffer = fileChannel.map(mapMode, 0, logLength); mappedByteBuffers = new MappedByteBuffer[]{ mappedBuffer }; for (int i = 0; i < PARTITION_COUNT; i++) { final int offset = i * termLength; mappedBuffer.limit(offset + termLength).position(offset); termBuffers[i] = new UnsafeBuffer(mappedBuffer.slice()); } logMetaDataBuffer = new UnsafeBuffer( mappedBuffer, (int)(logLength - LOG_META_DATA_LENGTH), LOG_META_DATA_LENGTH); } else { mappedByteBuffers = new MappedByteBuffer[PARTITION_COUNT + 1]; for (int i = 0; i < PARTITION_COUNT; i++) { mappedByteBuffers[i] = fileChannel.map(mapMode, termLength * (long)i, termLength); termBuffers[i] = new UnsafeBuffer(mappedByteBuffers[i]); } final MappedByteBuffer metaDataMappedBuffer = fileChannel.map( mapMode, logLength - LOG_META_DATA_LENGTH, LOG_META_DATA_LENGTH); mappedByteBuffers[mappedByteBuffers.length - 1] = metaDataMappedBuffer; logMetaDataBuffer = new UnsafeBuffer(metaDataMappedBuffer); } } catch (final IOException ex) { throw new RuntimeException(ex); } for (final UnsafeBuffer buffer : termBuffers) { buffer.verifyAlignment(); } logMetaDataBuffer.verifyAlignment(); } public UnsafeBuffer[] termBuffers() { return termBuffers; } public UnsafeBuffer metaDataBuffer() { return logMetaDataBuffer; } public FileChannel fileChannel() { return fileChannel; } public void close() { for (final MappedByteBuffer buffer : mappedByteBuffers) { IoUtil.unmap(buffer); } CloseHelper.close(fileChannel); } public int termLength() { return termLength; } }
{ "content_hash": "fa1fded0fb2f5d393d4650bbf67eecc1", "timestamp": "", "source": "github", "line_count": 116, "max_line_length": 110, "avg_line_length": 30.344827586206897, "alnum_prop": 0.6161931818181818, "repo_name": "oleksiyp/Aeron", "id": "4c42e7b205bd6299aab835d242a5517834003376", "size": "4119", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "aeron-client/src/main/java/io/aeron/LogBuffers.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Batchfile", "bytes": "570" }, { "name": "C++", "bytes": "491858" }, { "name": "CMake", "bytes": "12769" }, { "name": "Java", "bytes": "1488160" }, { "name": "Shell", "bytes": "314" } ], "symlink_target": "" }
(function( factory ) { if ( typeof define === "function" && define.amd ) { define( ["jquery", "../jquery.validate"], factory ); } else if (typeof module === "object" && module.exports) { module.exports = factory( require( "jquery" ) ); } else { factory( jQuery ); } }(function( $ ) { /* * Translated default messages for the jQuery validation plugin. * Locale: TR (Turkish; Türkçe) */ $.extend( $.validator.messages, { required: "Bu alanın doldurulması zorunludur.", remote: "Lütfen bu alanı düzeltin.", email: "Lütfen geçerli bir e-posta adresi giriniz.", url: "Lütfen geçerli bir web adresi (URL) giriniz.", date: "Lütfen geçerli bir tarih giriniz.", dateISO: "Lütfen geçerli bir tarih giriniz(ISO formatında)", number: "Lütfen geçerli bir sayı giriniz.", digits: "Lütfen sadece sayısal karakterler giriniz.", creditcard: "Lütfen geçerli bir kredi kartı giriniz.", equalTo: "Lütfen aynı değeri tekrar giriniz.", extension: "Lütfen geçerli uzantıya sahip bir değer giriniz.", maxlength: $.validator.format( "Lütfen en fazla {0} karakter uzunluğunda bir değer giriniz." ), minlength: $.validator.format( "Lütfen en az {0} karakter uzunluğunda bir değer giriniz." ), rangelength: $.validator.format( "Lütfen en az {0} ve en fazla {1} uzunluğunda bir değer giriniz." ), range: $.validator.format( "Lütfen {0} ile {1} arasında bir değer giriniz." ), max: $.validator.format( "Lütfen {0} değerine eşit ya da daha küçük bir değer giriniz." ), min: $.validator.format( "Lütfen {0} değerine eşit ya da daha büyük bir değer giriniz." ), require_from_group: "Lütfen bu alanların en az {0} tanesini doldurunuz." } ); return $; }));
{ "content_hash": "368200db36156fe937d72c0f6649e03a", "timestamp": "", "source": "github", "line_count": 36, "max_line_length": 102, "avg_line_length": 46.888888888888886, "alnum_prop": 0.6866113744075829, "repo_name": "vigosser/lemon", "id": "ee0d659aba6fede36c6aa7758191d181158fcac3", "size": "1746", "binary": false, "copies": "3", "ref": "refs/heads/master", "path": "webapp/cdn/public/jquery-validation/1.16.0/localization/messages_tr.js", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "CSS", "bytes": "223863" }, { "name": "HTML", "bytes": "201837" }, { "name": "Java", "bytes": "6047963" }, { "name": "JavaScript", "bytes": "5423122" }, { "name": "SQLPL", "bytes": "5352" } ], "symlink_target": "" }
package com.liferay; import com.liferay.calendar.CalendarBookingDurationException; import com.liferay.calendar.CalendarBookingRecurrenceException; import com.liferay.calendar.CalendarNameException; import com.liferay.calendar.CalendarResourceCodeException; import com.liferay.calendar.CalendarResourceNameException; import com.liferay.calendar.DuplicateCalendarResourceException; import com.liferay.calendar.NoSuchResourceException; import com.liferay.calendar.model.Calendar; import com.liferay.calendar.model.CalendarBooking; import com.liferay.calendar.model.CalendarBookingConstants; import com.liferay.calendar.model.CalendarNotificationTemplate; import com.liferay.calendar.model.CalendarNotificationTemplateConstants; import com.liferay.calendar.model.CalendarResource; import com.liferay.calendar.notification.NotificationTemplateContextFactory; import com.liferay.calendar.notification.NotificationTemplateType; import com.liferay.calendar.notification.NotificationType; import com.liferay.calendar.recurrence.Frequency; import com.liferay.calendar.recurrence.PositionalWeekday; import com.liferay.calendar.recurrence.Recurrence; import com.liferay.calendar.recurrence.RecurrenceSerializer; import com.liferay.calendar.recurrence.Weekday; import com.liferay.calendar.service.CalendarBookingLocalServiceUtil; import com.liferay.calendar.service.CalendarBookingServiceUtil; import com.liferay.calendar.service.CalendarLocalServiceUtil; import com.liferay.calendar.service.CalendarNotificationTemplateServiceUtil; import com.liferay.calendar.service.CalendarResourceServiceUtil; import com.liferay.calendar.service.CalendarServiceUtil; import com.liferay.calendar.service.permission.CalendarPermission; import com.liferay.calendar.util.ActionKeys; import com.liferay.calendar.util.CalendarDataFormat; import com.liferay.calendar.util.CalendarDataHandler; import com.liferay.calendar.util.CalendarDataHandlerFactory; import com.liferay.calendar.util.CalendarResourceUtil; import com.liferay.calendar.util.CalendarSearcher; import com.liferay.calendar.util.CalendarUtil; import com.liferay.calendar.util.JCalendarUtil; import com.liferay.calendar.util.PortletKeys; import com.liferay.calendar.util.RSSUtil; import com.liferay.calendar.util.WebKeys; import com.liferay.calendar.workflow.CalendarBookingWorkflowConstants; import com.liferay.portal.kernel.dao.orm.QueryUtil; import com.liferay.portal.kernel.dao.search.SearchContainer; import com.liferay.portal.kernel.exception.PortalException; import com.liferay.portal.kernel.exception.SystemException; import com.liferay.portal.kernel.json.JSONArray; import com.liferay.portal.kernel.json.JSONFactoryUtil; import com.liferay.portal.kernel.json.JSONObject; import com.liferay.portal.kernel.portlet.PortletResponseUtil; import com.liferay.portal.kernel.search.Document; import com.liferay.portal.kernel.search.Field; import com.liferay.portal.kernel.search.Hits; import com.liferay.portal.kernel.search.Indexer; import com.liferay.portal.kernel.search.SearchContext; import com.liferay.portal.kernel.servlet.SessionErrors; import com.liferay.portal.kernel.upload.UploadPortletRequest; import com.liferay.portal.kernel.util.CharPool; import com.liferay.portal.kernel.util.Constants; import com.liferay.portal.kernel.util.ContentTypes; import com.liferay.portal.kernel.util.FileUtil; import com.liferay.portal.kernel.util.GetterUtil; import com.liferay.portal.kernel.util.HttpUtil; import com.liferay.portal.kernel.util.LocalizationUtil; import com.liferay.portal.kernel.util.MimeTypesUtil; import com.liferay.portal.kernel.util.ParamUtil; import com.liferay.portal.kernel.util.StringPool; import com.liferay.portal.kernel.util.StringUtil; import com.liferay.portal.kernel.util.Time; import com.liferay.portal.kernel.util.TimeZoneUtil; import com.liferay.portal.kernel.util.UnicodeProperties; import com.liferay.portal.kernel.util.Validator; import com.liferay.portal.kernel.uuid.PortalUUIDUtil; import com.liferay.portal.model.Group; import com.liferay.portal.model.User; import com.liferay.portal.security.auth.PrincipalException; import com.liferay.portal.security.permission.PermissionChecker; import com.liferay.portal.service.GroupLocalServiceUtil; import com.liferay.portal.service.ServiceContext; import com.liferay.portal.service.ServiceContextFactory; import com.liferay.portal.service.SubscriptionLocalServiceUtil; import com.liferay.portal.service.UserLocalServiceUtil; import com.liferay.portal.theme.ThemeDisplay; import com.liferay.portal.util.PortalUtil; import com.liferay.portal.util.comparator.UserFirstNameComparator; import com.liferay.portlet.messageboards.model.MBMessage; import com.liferay.portlet.messageboards.service.MBMessageServiceUtil; import com.liferay.util.bridges.mvc.MVCPortlet; import com.liferay.util.dao.orm.CustomSQLUtil; import java.io.File; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import java.util.LinkedHashMap; import java.util.LinkedHashSet; import java.util.List; import java.util.Locale; import java.util.Map; import java.util.Set; import java.util.TimeZone; import javax.portlet.ActionRequest; import javax.portlet.ActionResponse; import javax.portlet.PortletException; import javax.portlet.PortletPreferences; import javax.portlet.PortletRequest; import javax.portlet.RenderRequest; import javax.portlet.RenderResponse; import javax.portlet.ResourceRequest; import javax.portlet.ResourceResponse; /** * @author Eduardo Lundgren * @author Fabio Pezzutto * @author Andrea Di Giorgi * @author Marcellus Tavares * @author Bruno Basto * @author Pier Paolo Ramon */ public class CalendarPortlet extends MVCPortlet { protected void addCalendar( PortletRequest portletRequest, Set<Calendar> calendarsSet, long classNameId, long classPK) throws PortalException, SystemException { CalendarResource calendarResource = CalendarResourceUtil.getCalendarResource( portletRequest, classNameId, classPK); if (calendarResource == null) { return; } ThemeDisplay themeDisplay = (ThemeDisplay)portletRequest.getAttribute( WebKeys.THEME_DISPLAY); PermissionChecker permissionChecker = themeDisplay.getPermissionChecker(); List<Calendar> calendars = CalendarLocalServiceUtil.getCalendarResourceCalendars( calendarResource.getGroupId(), calendarResource.getCalendarResourceId()); for (Calendar calendar : calendars) { if (!CalendarPermission.contains( permissionChecker, calendar, ActionKeys.VIEW)) { continue; } calendarsSet.add(calendar); } } }
{ "content_hash": "0aeb5ccb0b1a77b3ad9c1ff144dd03ce", "timestamp": "", "source": "github", "line_count": 162, "max_line_length": 76, "avg_line_length": 40.660493827160494, "alnum_prop": 0.8430241384545316, "repo_name": "AndyWu2015/blade.tools", "id": "05bbec852d8f69db7a683587ae3a345564aa1792", "size": "7178", "binary": false, "copies": "4", "ref": "refs/heads/master", "path": "blade.migrate.liferay70/projects/legacy-apis-ant-portlet/docroot/WEB-INF/src/com/liferay/CalendarPortlet.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Batchfile", "bytes": "22523" }, { "name": "CSS", "bytes": "9902" }, { "name": "HTML", "bytes": "13101" }, { "name": "Java", "bytes": "7529994" }, { "name": "JavaScript", "bytes": "121459" }, { "name": "Perl", "bytes": "9844" }, { "name": "Python", "bytes": "3299" }, { "name": "Shell", "bytes": "11036" }, { "name": "XSLT", "bytes": "224454" } ], "symlink_target": "" }
FROM adoptopenjdk/openjdk11:alpine-jre ENV CLOUD_SDK_VERSION=252.0.0 ENV PATH /google-cloud-sdk/bin:$PATH RUN apk --no-cache add curl \ python \ py-crcmod \ bash \ openssh-client \ git \ gnupg && \ curl -O https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-${CLOUD_SDK_VERSION}-linux-x86_64.tar.gz && \ tar xzf google-cloud-sdk-${CLOUD_SDK_VERSION}-linux-x86_64.tar.gz && \ rm google-cloud-sdk-${CLOUD_SDK_VERSION}-linux-x86_64.tar.gz && \ ln -s /lib /lib64 && \ gcloud config set core/disable_usage_reporting true && \ gcloud config set component_manager/disable_update_check true && \ gcloud config set metrics/environment github_docker_image && \ gcloud --version && \ gcloud components install -q beta cloud-datastore-emulator COPY start.sh /usr/local/bin/start.sh RUN chmod +x /usr/local/bin/start.sh VOLUME ["/root/.config", "/home/data"] EXPOSE 8080 CMD ["/usr/local/bin/start.sh"]
{ "content_hash": "31894b0177fdb53c41ab3b941552ca77", "timestamp": "", "source": "github", "line_count": 32, "max_line_length": 133, "avg_line_length": 34.25, "alnum_prop": 0.6104014598540146, "repo_name": "hirokazumiyaji/dockerfiles", "id": "4901accc34ee013ab90e2e03d51d7fa7666d7627", "size": "1096", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "clouddatastore-emulator/Dockerfile", "mode": "33188", "license": "mit", "language": [ { "name": "AGS Script", "bytes": "922" }, { "name": "Dockerfile", "bytes": "20998" }, { "name": "Go", "bytes": "1102" }, { "name": "PHP", "bytes": "3643" }, { "name": "Python", "bytes": "3160" }, { "name": "Ruby", "bytes": "65991" }, { "name": "Shell", "bytes": "2962" } ], "symlink_target": "" }
/** * ble_app_uart example with interrupt driven ADC functionality */ #include <stdint.h> #include <string.h> #include "nordic_common.h" #include "nrf.h" #include "ble_hci.h" #include "ble_advdata.h" #include "ble_advertising.h" #include "ble_conn_params.h" #include "softdevice_handler.h" #include "app_timer.h" #include "app_button.h" #include "ble_nus.h" #include "app_uart.h" #include "app_util_platform.h" #include "bsp.h" #include "bsp_btn_ble.h" #include "nrf_drv_adc.h" #include "nrf_drv_ppi.h" #include "nrf_drv_timer.h" #define IS_SRVC_CHANGED_CHARACT_PRESENT 0 /**< Include the service_changed characteristic. If not enabled, the server's database cannot be changed for the lifetime of the device. */ #if (NRF_SD_BLE_API_VERSION == 3) #define NRF_BLE_MAX_MTU_SIZE GATT_MTU_SIZE_DEFAULT /**< MTU size used in the softdevice enabling and to reply to a BLE_GATTS_EVT_EXCHANGE_MTU_REQUEST event. */ #endif #define APP_FEATURE_NOT_SUPPORTED BLE_GATT_STATUS_ATTERR_APP_BEGIN + 2 /**< Reply when unsupported features are requested. */ #define CENTRAL_LINK_COUNT 0 /**< Number of central links used by the application. When changing this number remember to adjust the RAM settings*/ #define PERIPHERAL_LINK_COUNT 1 /**< Number of peripheral links used by the application. When changing this number remember to adjust the RAM settings*/ #define DEVICE_NAME "Nordic_UART" /**< Name of device. Will be included in the advertising data. */ #define NUS_SERVICE_UUID_TYPE BLE_UUID_TYPE_VENDOR_BEGIN /**< UUID type for the Nordic UART Service (vendor specific). */ #define APP_ADV_INTERVAL 64 /**< The advertising interval (in units of 0.625 ms. This value corresponds to 40 ms). */ #define APP_ADV_TIMEOUT_IN_SECONDS 180 /**< The advertising timeout (in units of seconds). */ #define APP_TIMER_PRESCALER 0 /**< Value of the RTC1 PRESCALER register. */ #define APP_TIMER_OP_QUEUE_SIZE 4 /**< Size of timer operation queues. */ #define MIN_CONN_INTERVAL MSEC_TO_UNITS(20, UNIT_1_25_MS) /**< Minimum acceptable connection interval (20 ms), Connection interval uses 1.25 ms units. */ #define MAX_CONN_INTERVAL MSEC_TO_UNITS(75, UNIT_1_25_MS) /**< Maximum acceptable connection interval (75 ms), Connection interval uses 1.25 ms units. */ #define SLAVE_LATENCY 0 /**< Slave latency. */ #define CONN_SUP_TIMEOUT MSEC_TO_UNITS(4000, UNIT_10_MS) /**< Connection supervisory timeout (4 seconds), Supervision Timeout uses 10 ms units. */ #define FIRST_CONN_PARAMS_UPDATE_DELAY APP_TIMER_TICKS(5000, APP_TIMER_PRESCALER) /**< Time from initiating event (connect or start of notification) to first time sd_ble_gap_conn_param_update is called (5 seconds). */ #define NEXT_CONN_PARAMS_UPDATE_DELAY APP_TIMER_TICKS(30000, APP_TIMER_PRESCALER) /**< Time between each call to sd_ble_gap_conn_param_update after the first call (30 seconds). */ #define MAX_CONN_PARAMS_UPDATE_COUNT 3 /**< Number of attempts before giving up the connection parameter negotiation. */ #define DEAD_BEEF 0xDEADBEEF /**< Value used as error code on stack dump, can be used to identify stack location on stack unwind. */ #define UART_TX_BUF_SIZE 512 /**< UART TX buffer size. */ #define UART_RX_BUF_SIZE 64 /**< UART RX buffer size. */ #define ADC_BUFFER_SIZE 6 //Size of buffer for ADC samples. Buffer size should be multiple of number of adc channels located. #define ADC_SAMPLE_RATE 1000 //ADC sampling frequencyng frequency in ms static nrf_adc_value_t adc_buffer[ADC_BUFFER_SIZE]; /**< ADC buffer. */ static nrf_ppi_channel_t m_ppi_channel; static const nrf_drv_timer_t m_timer = NRF_DRV_TIMER_INSTANCE(2); static uint8_t adc_event_counter = 0; static uint32_t number_of_adc_channels; static ble_nus_t m_nus; /**< Structure to identify the Nordic UART Service. */ static uint16_t m_conn_handle = BLE_CONN_HANDLE_INVALID; /**< Handle of the current connection. */ static ble_uuid_t m_adv_uuids[] = {{BLE_UUID_NUS_SERVICE, NUS_SERVICE_UUID_TYPE}}; /**< Universally unique service identifier. */ /**@brief Function for assert macro callback. * * @details This function will be called in case of an assert in the SoftDevice. * * @warning This handler is an example only and does not fit a final product. You need to analyse * how your product is supposed to react in case of Assert. * @warning On assert from the SoftDevice, the system can only recover on reset. * * @param[in] line_num Line number of the failing ASSERT call. * @param[in] p_file_name File name of the failing ASSERT call. */ void assert_nrf_callback(uint16_t line_num, const uint8_t * p_file_name) { app_error_handler(DEAD_BEEF, line_num, p_file_name); } /**@brief Function for the GAP initialization. * * @details This function will set up all the necessary GAP (Generic Access Profile) parameters of * the device. It also sets the permissions and appearance. */ static void gap_params_init(void) { uint32_t err_code; ble_gap_conn_params_t gap_conn_params; ble_gap_conn_sec_mode_t sec_mode; BLE_GAP_CONN_SEC_MODE_SET_OPEN(&sec_mode); err_code = sd_ble_gap_device_name_set(&sec_mode, (const uint8_t *) DEVICE_NAME, strlen(DEVICE_NAME)); APP_ERROR_CHECK(err_code); memset(&gap_conn_params, 0, sizeof(gap_conn_params)); gap_conn_params.min_conn_interval = MIN_CONN_INTERVAL; gap_conn_params.max_conn_interval = MAX_CONN_INTERVAL; gap_conn_params.slave_latency = SLAVE_LATENCY; gap_conn_params.conn_sup_timeout = CONN_SUP_TIMEOUT; err_code = sd_ble_gap_ppcp_set(&gap_conn_params); APP_ERROR_CHECK(err_code); } /**@brief Function for handling the data from the Nordic UART Service. * * @details This function will process the data received from the Nordic UART BLE Service and send * it to the UART module. * * @param[in] p_nus Nordic UART Service structure. * @param[in] p_data Data to be send to UART module. * @param[in] length Length of the data. */ /**@snippet [Handling the data received over BLE] */ static void nus_data_handler(ble_nus_t * p_nus, uint8_t * p_data, uint16_t length) { for (uint32_t i = 0; i < length; i++) { while (app_uart_put(p_data[i]) != NRF_SUCCESS); } while (app_uart_put('\r') != NRF_SUCCESS); while (app_uart_put('\n') != NRF_SUCCESS); } /**@snippet [Handling the data received over BLE] */ /**@brief Function for initializing services that will be used by the application. */ static void services_init(void) { uint32_t err_code; ble_nus_init_t nus_init; memset(&nus_init, 0, sizeof(nus_init)); nus_init.data_handler = nus_data_handler; err_code = ble_nus_init(&m_nus, &nus_init); APP_ERROR_CHECK(err_code); } /**@brief Function for handling an event from the Connection Parameters Module. * * @details This function will be called for all events in the Connection Parameters Module * which are passed to the application. * * @note All this function does is to disconnect. This could have been done by simply setting * the disconnect_on_fail config parameter, but instead we use the event handler * mechanism to demonstrate its use. * * @param[in] p_evt Event received from the Connection Parameters Module. */ static void on_conn_params_evt(ble_conn_params_evt_t * p_evt) { uint32_t err_code; if (p_evt->evt_type == BLE_CONN_PARAMS_EVT_FAILED) { err_code = sd_ble_gap_disconnect(m_conn_handle, BLE_HCI_CONN_INTERVAL_UNACCEPTABLE); APP_ERROR_CHECK(err_code); } } /**@brief Function for handling errors from the Connection Parameters module. * * @param[in] nrf_error Error code containing information about what went wrong. */ static void conn_params_error_handler(uint32_t nrf_error) { APP_ERROR_HANDLER(nrf_error); } /**@brief Function for initializing the Connection Parameters module. */ static void conn_params_init(void) { uint32_t err_code; ble_conn_params_init_t cp_init; memset(&cp_init, 0, sizeof(cp_init)); cp_init.p_conn_params = NULL; cp_init.first_conn_params_update_delay = FIRST_CONN_PARAMS_UPDATE_DELAY; cp_init.next_conn_params_update_delay = NEXT_CONN_PARAMS_UPDATE_DELAY; cp_init.max_conn_params_update_count = MAX_CONN_PARAMS_UPDATE_COUNT; cp_init.start_on_notify_cccd_handle = BLE_GATT_HANDLE_INVALID; cp_init.disconnect_on_fail = false; cp_init.evt_handler = on_conn_params_evt; cp_init.error_handler = conn_params_error_handler; err_code = ble_conn_params_init(&cp_init); APP_ERROR_CHECK(err_code); } /**@brief Function for putting the chip into sleep mode. * * @note This function will not return. */ static void sleep_mode_enter(void) { uint32_t err_code = bsp_indication_set(BSP_INDICATE_IDLE); APP_ERROR_CHECK(err_code); // Prepare wakeup buttons. err_code = bsp_btn_ble_sleep_mode_prepare(); APP_ERROR_CHECK(err_code); // Go to system-off mode (this function will not return; wakeup will cause a reset). err_code = sd_power_system_off(); APP_ERROR_CHECK(err_code); } /**@brief Function for handling advertising events. * * @details This function will be called for advertising events which are passed to the application. * * @param[in] ble_adv_evt Advertising event. */ static void on_adv_evt(ble_adv_evt_t ble_adv_evt) { uint32_t err_code; switch (ble_adv_evt) { case BLE_ADV_EVT_FAST: err_code = bsp_indication_set(BSP_INDICATE_ADVERTISING); APP_ERROR_CHECK(err_code); break; case BLE_ADV_EVT_IDLE: sleep_mode_enter(); break; default: break; } } /**@brief Function for the application's SoftDevice event handler. * * @param[in] p_ble_evt SoftDevice event. */ static void on_ble_evt(ble_evt_t * p_ble_evt) { uint32_t err_code; switch (p_ble_evt->header.evt_id) { case BLE_GAP_EVT_CONNECTED: err_code = bsp_indication_set(BSP_INDICATE_CONNECTED); APP_ERROR_CHECK(err_code); m_conn_handle = p_ble_evt->evt.gap_evt.conn_handle; break; // BLE_GAP_EVT_CONNECTED case BLE_GAP_EVT_DISCONNECTED: err_code = bsp_indication_set(BSP_INDICATE_IDLE); APP_ERROR_CHECK(err_code); m_conn_handle = BLE_CONN_HANDLE_INVALID; break; // BLE_GAP_EVT_DISCONNECTED case BLE_GAP_EVT_SEC_PARAMS_REQUEST: // Pairing not supported err_code = sd_ble_gap_sec_params_reply(m_conn_handle, BLE_GAP_SEC_STATUS_PAIRING_NOT_SUPP, NULL, NULL); APP_ERROR_CHECK(err_code); break; // BLE_GAP_EVT_SEC_PARAMS_REQUEST case BLE_GATTS_EVT_SYS_ATTR_MISSING: // No system attributes have been stored. err_code = sd_ble_gatts_sys_attr_set(m_conn_handle, NULL, 0, 0); APP_ERROR_CHECK(err_code); break; // BLE_GATTS_EVT_SYS_ATTR_MISSING case BLE_GATTC_EVT_TIMEOUT: // Disconnect on GATT Client timeout event. err_code = sd_ble_gap_disconnect(p_ble_evt->evt.gattc_evt.conn_handle, BLE_HCI_REMOTE_USER_TERMINATED_CONNECTION); APP_ERROR_CHECK(err_code); break; // BLE_GATTC_EVT_TIMEOUT case BLE_GATTS_EVT_TIMEOUT: // Disconnect on GATT Server timeout event. err_code = sd_ble_gap_disconnect(p_ble_evt->evt.gatts_evt.conn_handle, BLE_HCI_REMOTE_USER_TERMINATED_CONNECTION); APP_ERROR_CHECK(err_code); break; // BLE_GATTS_EVT_TIMEOUT case BLE_EVT_USER_MEM_REQUEST: err_code = sd_ble_user_mem_reply(p_ble_evt->evt.gattc_evt.conn_handle, NULL); APP_ERROR_CHECK(err_code); break; // BLE_EVT_USER_MEM_REQUEST case BLE_GATTS_EVT_RW_AUTHORIZE_REQUEST: { ble_gatts_evt_rw_authorize_request_t req; ble_gatts_rw_authorize_reply_params_t auth_reply; req = p_ble_evt->evt.gatts_evt.params.authorize_request; if (req.type != BLE_GATTS_AUTHORIZE_TYPE_INVALID) { if ((req.request.write.op == BLE_GATTS_OP_PREP_WRITE_REQ) || (req.request.write.op == BLE_GATTS_OP_EXEC_WRITE_REQ_NOW) || (req.request.write.op == BLE_GATTS_OP_EXEC_WRITE_REQ_CANCEL)) { if (req.type == BLE_GATTS_AUTHORIZE_TYPE_WRITE) { auth_reply.type = BLE_GATTS_AUTHORIZE_TYPE_WRITE; } else { auth_reply.type = BLE_GATTS_AUTHORIZE_TYPE_READ; } auth_reply.params.write.gatt_status = APP_FEATURE_NOT_SUPPORTED; err_code = sd_ble_gatts_rw_authorize_reply(p_ble_evt->evt.gatts_evt.conn_handle, &auth_reply); APP_ERROR_CHECK(err_code); } } } break; // BLE_GATTS_EVT_RW_AUTHORIZE_REQUEST #if (NRF_SD_BLE_API_VERSION == 3) case BLE_GATTS_EVT_EXCHANGE_MTU_REQUEST: err_code = sd_ble_gatts_exchange_mtu_reply(p_ble_evt->evt.gatts_evt.conn_handle, NRF_BLE_MAX_MTU_SIZE); APP_ERROR_CHECK(err_code); break; // BLE_GATTS_EVT_EXCHANGE_MTU_REQUEST #endif default: // No implementation needed. break; } } /**@brief Function for dispatching a SoftDevice event to all modules with a SoftDevice * event handler. * * @details This function is called from the SoftDevice event interrupt handler after a * SoftDevice event has been received. * * @param[in] p_ble_evt SoftDevice event. */ static void ble_evt_dispatch(ble_evt_t * p_ble_evt) { ble_conn_params_on_ble_evt(p_ble_evt); ble_nus_on_ble_evt(&m_nus, p_ble_evt); on_ble_evt(p_ble_evt); ble_advertising_on_ble_evt(p_ble_evt); bsp_btn_ble_on_ble_evt(p_ble_evt); } /**@brief Function for the SoftDevice initialization. * * @details This function initializes the SoftDevice and the BLE event interrupt. */ static void ble_stack_init(void) { uint32_t err_code; nrf_clock_lf_cfg_t clock_lf_cfg = NRF_CLOCK_LFCLKSRC; // Initialize SoftDevice. SOFTDEVICE_HANDLER_INIT(&clock_lf_cfg, NULL); ble_enable_params_t ble_enable_params; err_code = softdevice_enable_get_default_config(CENTRAL_LINK_COUNT, PERIPHERAL_LINK_COUNT, &ble_enable_params); APP_ERROR_CHECK(err_code); //Check the ram settings against the used number of links CHECK_RAM_START_ADDR(CENTRAL_LINK_COUNT,PERIPHERAL_LINK_COUNT); // Enable BLE stack. #if (NRF_SD_BLE_API_VERSION == 3) ble_enable_params.gatt_enable_params.att_mtu = NRF_BLE_MAX_MTU_SIZE; #endif err_code = softdevice_enable(&ble_enable_params); APP_ERROR_CHECK(err_code); // Subscribe for BLE events. err_code = softdevice_ble_evt_handler_set(ble_evt_dispatch); APP_ERROR_CHECK(err_code); } /**@brief Function for handling events from the BSP module. * * @param[in] event Event generated by button press. */ void bsp_event_handler(bsp_event_t event) { uint32_t err_code; switch (event) { case BSP_EVENT_SLEEP: sleep_mode_enter(); break; case BSP_EVENT_DISCONNECT: err_code = sd_ble_gap_disconnect(m_conn_handle, BLE_HCI_REMOTE_USER_TERMINATED_CONNECTION); if (err_code != NRF_ERROR_INVALID_STATE) { APP_ERROR_CHECK(err_code); } break; case BSP_EVENT_WHITELIST_OFF: if (m_conn_handle == BLE_CONN_HANDLE_INVALID) { err_code = ble_advertising_restart_without_whitelist(); if (err_code != NRF_ERROR_INVALID_STATE) { APP_ERROR_CHECK(err_code); } } break; default: break; } } /**@brief Function for handling app_uart events. * * @details This function will receive a single character from the app_uart module and append it to * a string. The string will be be sent over BLE when the last character received was a * 'new line' i.e '\r\n' (hex 0x0D) or if the string has reached a length of * @ref NUS_MAX_DATA_LENGTH. */ /**@snippet [Handling the data received over UART] */ void uart_event_handle(app_uart_evt_t * p_event) { static uint8_t data_array[BLE_NUS_MAX_DATA_LEN]; static uint8_t index = 0; uint32_t err_code; switch (p_event->evt_type) { case APP_UART_DATA_READY: UNUSED_VARIABLE(app_uart_get(&data_array[index])); index++; if ((data_array[index - 1] == '\n') || (index >= (BLE_NUS_MAX_DATA_LEN))) { err_code = ble_nus_string_send(&m_nus, data_array, index); if (err_code != NRF_ERROR_INVALID_STATE) { APP_ERROR_CHECK(err_code); } index = 0; } break; case APP_UART_COMMUNICATION_ERROR: APP_ERROR_HANDLER(p_event->data.error_communication); break; case APP_UART_FIFO_ERROR: APP_ERROR_HANDLER(p_event->data.error_code); break; default: break; } } /**@snippet [Handling the data received over UART] */ /**@brief Function for initializing the UART module. */ /**@snippet [UART Initialization] */ static void uart_init(void) { uint32_t err_code; const app_uart_comm_params_t comm_params = { RX_PIN_NUMBER, TX_PIN_NUMBER, RTS_PIN_NUMBER, CTS_PIN_NUMBER, APP_UART_FLOW_CONTROL_DISABLED, false, UART_BAUDRATE_BAUDRATE_Baud115200 }; APP_UART_FIFO_INIT( &comm_params, UART_RX_BUF_SIZE, UART_TX_BUF_SIZE, uart_event_handle, APP_IRQ_PRIORITY_LOWEST, err_code); APP_ERROR_CHECK(err_code); } /**@snippet [UART Initialization] */ /**@brief Function for initializing the Advertising functionality. */ static void advertising_init(void) { uint32_t err_code; ble_advdata_t advdata; ble_advdata_t scanrsp; ble_adv_modes_config_t options; // Build advertising data struct to pass into @ref ble_advertising_init. memset(&advdata, 0, sizeof(advdata)); advdata.name_type = BLE_ADVDATA_FULL_NAME; advdata.include_appearance = false; advdata.flags = BLE_GAP_ADV_FLAGS_LE_ONLY_LIMITED_DISC_MODE; memset(&scanrsp, 0, sizeof(scanrsp)); scanrsp.uuids_complete.uuid_cnt = sizeof(m_adv_uuids) / sizeof(m_adv_uuids[0]); scanrsp.uuids_complete.p_uuids = m_adv_uuids; memset(&options, 0, sizeof(options)); options.ble_adv_fast_enabled = true; options.ble_adv_fast_interval = APP_ADV_INTERVAL; options.ble_adv_fast_timeout = APP_ADV_TIMEOUT_IN_SECONDS; err_code = ble_advertising_init(&advdata, &scanrsp, &options, on_adv_evt, NULL); APP_ERROR_CHECK(err_code); } /**@brief Function for initializing buttons and leds. * * @param[out] p_erase_bonds Will be true if the clear bonding button was pressed to wake the application up. */ static void buttons_leds_init(bool * p_erase_bonds) { bsp_event_t startup_event; uint32_t err_code = bsp_init(BSP_INIT_LED | BSP_INIT_BUTTONS, APP_TIMER_TICKS(100, APP_TIMER_PRESCALER), bsp_event_handler); APP_ERROR_CHECK(err_code); err_code = bsp_btn_ble_init(NULL, &startup_event); APP_ERROR_CHECK(err_code); *p_erase_bonds = (startup_event == BSP_EVENT_CLEAR_BONDING_DATA); } /**@brief Function for placing the application in low power state while waiting for events. */ static void power_manage(void) { uint32_t err_code = sd_app_evt_wait(); APP_ERROR_CHECK(err_code); } /** * @brief ADC interrupt handler. * Prints ADC results on hardware UART and over BLE via the NUS service. */ static void adc_event_handler(nrf_drv_adc_evt_t const * p_event) { uint8_t adc_result[ADC_BUFFER_SIZE*2]; if (p_event->type == NRF_DRV_ADC_EVT_DONE) { adc_event_counter++; printf(" adc event counter: %d\r\n", adc_event_counter); for (uint32_t i = 0; i < p_event->data.done.size; i++) { printf("ADC value channel %d: %d\r\n", (int)(i % number_of_adc_channels), p_event->data.done.p_buffer[i]); adc_result[(i*2)] = p_event->data.done.p_buffer[i] >> 8; adc_result[(i*2)+1] = p_event->data.done.p_buffer[i]; } if(ADC_BUFFER_SIZE <= 10) { ble_nus_string_send(&m_nus, &adc_result[0], ADC_BUFFER_SIZE*2); } APP_ERROR_CHECK(nrf_drv_adc_buffer_convert(adc_buffer,ADC_BUFFER_SIZE)); LEDS_INVERT(BSP_LED_3_MASK); } } /** * @brief TIMER interrupt handler. */ void timer_handler(nrf_timer_event_t event_type, void* p_context) { } void adc_sampling_event_enable(void) { ret_code_t err_code = nrf_drv_ppi_channel_enable(m_ppi_channel); APP_ERROR_CHECK(err_code); } /** * @brief ADC initialization. */ static void adc_config(void) { ret_code_t ret_code; //Initialize ADC nrf_drv_adc_config_t config = NRF_DRV_ADC_DEFAULT_CONFIG; ret_code = nrf_drv_adc_init(&config, adc_event_handler); APP_ERROR_CHECK(ret_code); //Configure and enable ADC channel 0 static nrf_drv_adc_channel_t m_channel_0_config = NRF_DRV_ADC_DEFAULT_CHANNEL(NRF_ADC_CONFIG_INPUT_2); m_channel_0_config.config.config.input = NRF_ADC_CONFIG_SCALING_INPUT_ONE_THIRD; nrf_drv_adc_channel_enable(&m_channel_0_config); //Configure and enable ADC channel 1 static nrf_drv_adc_channel_t m_channel_1_config = NRF_DRV_ADC_DEFAULT_CHANNEL(NRF_ADC_CONFIG_INPUT_6); m_channel_1_config.config.config.input = NRF_ADC_CONFIG_SCALING_INPUT_ONE_THIRD; nrf_drv_adc_channel_enable(&m_channel_1_config); //Configure and enable ADC channel 2 static nrf_drv_adc_channel_t m_channel_2_config = NRF_DRV_ADC_DEFAULT_CHANNEL(NRF_ADC_CONFIG_INPUT_7); m_channel_2_config.config.config.input = NRF_ADC_CONFIG_SCALING_INPUT_ONE_THIRD; nrf_drv_adc_channel_enable(&m_channel_2_config); number_of_adc_channels = 3; //Set equal to the number of configured ADC channels, for the sake of UART output. } /** * @brief Setup sampling events. */ void adc_sampling_event_init(void) { ret_code_t err_code; err_code = nrf_drv_ppi_init(); APP_ERROR_CHECK(err_code); nrf_drv_timer_config_t timer_cfg = NRF_DRV_TIMER_DEFAULT_CONFIG; err_code = nrf_drv_timer_init(&m_timer, &timer_cfg, timer_handler); APP_ERROR_CHECK(err_code); /* setup m_timer for compare event */ uint32_t time_ticks = nrf_drv_timer_ms_to_ticks(&m_timer, ADC_SAMPLE_RATE); nrf_drv_timer_extended_compare(&m_timer, NRF_TIMER_CC_CHANNEL0, time_ticks, NRF_TIMER_SHORT_COMPARE0_CLEAR_MASK, true); nrf_drv_timer_enable(&m_timer); uint32_t timer_compare_event_addr = nrf_drv_timer_compare_event_address_get(&m_timer, NRF_TIMER_CC_CHANNEL0); uint32_t adc_sample_event_addr = nrf_drv_adc_start_task_get(); /* setup ppi channel so that timer compare event is triggering sample task in SAADC */ err_code = nrf_drv_ppi_channel_alloc(&m_ppi_channel); APP_ERROR_CHECK(err_code); err_code = nrf_drv_ppi_channel_assign(m_ppi_channel, timer_compare_event_addr, adc_sample_event_addr); //NRF_ADC->TASKS_START); APP_ERROR_CHECK(err_code); } /**@brief Application main function. */ int main(void) { uint32_t err_code; bool erase_bonds; // Initialize. APP_TIMER_INIT(APP_TIMER_PRESCALER, APP_TIMER_OP_QUEUE_SIZE, false); uart_init(); buttons_leds_init(&erase_bonds); ble_stack_init(); gap_params_init(); services_init(); advertising_init(); conn_params_init(); adc_sampling_event_init(); adc_config(); APP_ERROR_CHECK(nrf_drv_adc_buffer_convert(adc_buffer,ADC_BUFFER_SIZE)); adc_sampling_event_enable(); printf("\r\nUART Start - with ADC !\r\n"); err_code = ble_advertising_start(BLE_ADV_MODE_FAST); APP_ERROR_CHECK(err_code); // Enter main loop. for (;;) { power_manage(); } } /** * @} */
{ "content_hash": "62c85f19c3fe081f7688bc5245d9939c", "timestamp": "", "source": "github", "line_count": 717, "max_line_length": 223, "avg_line_length": 36.408647140864716, "alnum_prop": 0.6017621145374449, "repo_name": "NordicSemiconductor/nrf51-ADC-examples", "id": "5f23e5a101eaacacd33a9137cc5331befb001419", "size": "26543", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "ble_app_uart_adc_scan_mode/main.c", "mode": "33188", "license": "bsd-3-clause", "language": [ { "name": "Assembly", "bytes": "36840" }, { "name": "C", "bytes": "529839" }, { "name": "Makefile", "bytes": "48819" } ], "symlink_target": "" }
class AddNumberToSubscribes < ActiveRecord::Migration def change add_column :subscribes, :number, :string end end
{ "content_hash": "6f5ce99d0cc19cc9414af9c79e29de50", "timestamp": "", "source": "github", "line_count": 5, "max_line_length": 53, "avg_line_length": 24.4, "alnum_prop": 0.7622950819672131, "repo_name": "JaniKibichi/walkby", "id": "f6e0c0c1e0fd56abd1468e015a2570974cec8a89", "size": "122", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "db/migrate/20150706112912_add_number_to_subscribes.rb", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "3726" }, { "name": "CoffeeScript", "bytes": "2321" }, { "name": "Groff", "bytes": "2" }, { "name": "HTML", "bytes": "71040" }, { "name": "JavaScript", "bytes": "693" }, { "name": "Ruby", "bytes": "123264" } ], "symlink_target": "" }
package org.eclipse.jnosql.artemis.column.query; import jakarta.nosql.column.ColumnFamilyManagerAsync; import jakarta.nosql.mapping.Converters; import jakarta.nosql.mapping.RepositoryAsync; import jakarta.nosql.mapping.column.ColumnRepositoryAsyncProducer; import jakarta.nosql.mapping.column.ColumnTemplateAsync; import jakarta.nosql.mapping.column.ColumnTemplateAsyncProducer; import jakarta.nosql.mapping.reflection.ClassMappings; import javax.enterprise.context.ApplicationScoped; import javax.inject.Inject; import java.lang.reflect.Proxy; import java.util.Objects; @ApplicationScoped class DefaultColumnRepositoryAsyncProducer implements ColumnRepositoryAsyncProducer { @Inject private ClassMappings classMappings; @Inject private Converters converters; @Inject private ColumnTemplateAsyncProducer producer; @Override public <T, K, R extends RepositoryAsync<T, K>> R get(Class<R> repositoryClass, ColumnFamilyManagerAsync manager) { Objects.requireNonNull(repositoryClass, "repository class is required"); Objects.requireNonNull(manager, "manager class is required"); ColumnTemplateAsync template = producer.get(manager); return get(repositoryClass, template); } @Override public <T, K, R extends RepositoryAsync<T, K>> R get(Class<R> repositoryClass, ColumnTemplateAsync template) { Objects.requireNonNull(repositoryClass, "repository class is required"); Objects.requireNonNull(template, "template class is required"); ColumnRepositoryAsyncProxy<R> handler = new ColumnRepositoryAsyncProxy<>(template, classMappings, repositoryClass, converters); return (R) Proxy.newProxyInstance(repositoryClass.getClassLoader(), new Class[]{repositoryClass}, handler); } }
{ "content_hash": "53abfd7bcf7366d2a9e90435b0011e86", "timestamp": "", "source": "github", "line_count": 47, "max_line_length": 118, "avg_line_length": 39.06382978723404, "alnum_prop": 0.7619825708061002, "repo_name": "JNOSQL/diana", "id": "e36acd23441891ac0f28234dbf3734829dbe582f", "size": "2417", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "artemis/artemis-column/src/main/java/org/eclipse/jnosql/artemis/column/query/DefaultColumnRepositoryAsyncProducer.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Java", "bytes": "375379" } ], "symlink_target": "" }
using System.Collections; using System.Collections.Generic; using GeneticSharp.Extensions.Tsp; using UnityEngine; public class CityController : MonoBehaviour { private Vector3 screenPoint; private Vector3 offset; public TspCity Data { get; set;} void OnMouseDown() { screenPoint = Camera.main.WorldToScreenPoint(gameObject.transform.position); offset = gameObject.transform.position - Camera.main.ScreenToWorldPoint(new Vector3(Input.mousePosition.x, Input.mousePosition.y, screenPoint.z)); transform.localScale *= 2f; } void OnMouseUp() { transform.localScale /= 2f; } void OnMouseDrag() { Vector3 curScreenPoint = new Vector3(Input.mousePosition.x, Input.mousePosition.y, screenPoint.z); Vector3 curPosition = Camera.main.ScreenToWorldPoint(curScreenPoint) + offset; transform.position = curPosition; Data.X = transform.position.x; Data.Y = transform.position.y; } void Update() { transform.position = new Vector2(Data.X, Data.Y); } }
{ "content_hash": "f3cffe113e3b77ca19c50da2dbd99c50", "timestamp": "", "source": "github", "line_count": 42, "max_line_length": 154, "avg_line_length": 26.857142857142858, "alnum_prop": 0.6586879432624113, "repo_name": "giacomelli/GeneticSharp", "id": "178a0aa69197ed0505d39a96b45bb280d711b006", "size": "1130", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/GeneticSharp.Runner.UnityApp/Assets/_runner/tsp/CityController.cs", "mode": "33188", "license": "mit", "language": [ { "name": "Batchfile", "bytes": "1873" }, { "name": "C#", "bytes": "1331032" }, { "name": "CSS", "bytes": "19625" }, { "name": "GLSL", "bytes": "65726" }, { "name": "HLSL", "bytes": "10511" }, { "name": "HTML", "bytes": "20010" }, { "name": "JavaScript", "bytes": "1828" }, { "name": "ShaderLab", "bytes": "249832" }, { "name": "Shell", "bytes": "606" } ], "symlink_target": "" }
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("Ersx.Net")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("Ersx.Net")] [assembly: AssemblyCopyright("Copyright © 2014")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // Setting ComVisible to false makes the types in this assembly not visible // to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("7362433e-e82b-40a2-8b65-b88eceec890d")] // Version information for an assembly consists of the following four values: // // Major Version // Minor Version // Build Number // Revision // // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.0.0.0")]
{ "content_hash": "f587866228cfa98edf05f9e4a94acbad", "timestamp": "", "source": "github", "line_count": 36, "max_line_length": 84, "avg_line_length": 38.583333333333336, "alnum_prop": 0.7422606191504679, "repo_name": "seldary/Ersx.Net", "id": "82457330deb9365f9f7a2230b80f54341703b93c", "size": "1392", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/Ersx.Net/Properties/AssemblyInfo.cs", "mode": "33188", "license": "mit", "language": [ { "name": "C#", "bytes": "10941" } ], "symlink_target": "" }
Changelog ========= This file does not aim to be comprehensive (you have git history for that), rather it lists changes that might impact your own code as a consumer of this library. 3.0.0-beta.11 ----- ### Bugfix * `fork` - Updates the documentation for `fork` to match the better version from 2.x. 3.0.0-beta.10 ----- ### New additions * `takeWhile` - returns a new stream that ends when the function passed as a parameter stops returning true. [#677](https://github.com/caolan/highland/pull/677). * Async Iterator/Iterable support - Async iterators and iterables (as defined by the [Async Iteration specs](https://tc39.es/proposal-async-iteration/)), can now be passed to the Highland constructor function. [#682](https://github.com/caolan/highland/pull/682). 3.0.0-beta.9 ----- This release contains all changes from [2.13.3](#2133). 3.0.0-beta.8 ----- This release contains all changes from [2.13.1](#2131). 3.0.0-beta.7 ----- ### New additions * `ap` - Applies a stream of function(s) to the stream of value(s). [#643](https://github.com/caolan/highland/pull/643). * `empty` - Creates an empty stream. [#657](https://github.com/caolan/highland/pull/657). * Implements the [Fantasy Land](https://github.com/fantasyland/fantasy-land) [Alternative](https://github.com/fantasyland/fantasy-land#alternative), [Filterable](https://github.com/fantasyland/fantasy-land#filterable), and [Monad](https://github.com/fantasyland/fantasy-land#monad) specifications. [#658](https://github.com/caolan/highland/pull/658). ### Bugfix * `of` - Streams created with `of` didn't contain extentions added by `use`. [#662](https://github.com/caolan/highland/pull/662) Fixes [#659](https://github.com/caolan/highland/issues/659). 3.0.0-beta.6 ----- This release contains all changes from [2.12.0](#2120). ### Breaking changes * `toNodeStream` - In 2.x, if you call `toNodeStream` on a Highland stream that emits objects without setting `{objectMode: true}`, the resulting `Readable` may simply ignore any objects that are emitted (depending on the implementation of `StringDecoder`). In 3.x, the `Readable` will always emit an error. Also, in 2.x, calling `toNodeStream` will immediately consume the source. In 3.x, the source stream will only be consumed when the `Readable` is consumed. ### Other * `stopOnError` - update `stopOnError` documentation to include `push` [#650](https://github.com/caolan/highland/pull/650). 3.0.0-beta.5 ----- ### Breaking changes * `stream.source` - The (undocumented) `source` property on a stream no longer exists. * `consume` - It is no longer possible to `consume` the same stream multiple times, even after the original `consume` has pushed `nil`. Attempting to do so will result in an error. This affects all transforms that are implemented via `consume`. * **Old Behavior**: Code like this used to work ```javascript const stream = _([1, 2, 3]); stream.take(1) .toArray(array => { console.log(array); // => [1] stream.take(1).toArray(array2 => { console.log(array2); // => [2] stream.take(1).toArray(array3 => { console.log(array3); // => [3] }); }); }); ``` * **New Behavior**: ```javascript const stream = _([1, 2, 3]); stream.take(1) .toArray(array => { console.log(array); // => [1] stream.take(1); // The call to take(1) will fail. }); ``` * `drop` [#559](https://github.com/caolan/highland/pull/595) Fixes [#594](https://github.com/caolan/highland/issues/594) * **Old Behavior**: if `n` isn't a number or is negative, it defaults to `0`. * **New Behavior**: if `n` is not a number or if it is negative, an error is thrown. * `fork` - It is no longer possible to call `fork` after a call to `consume` on the same stream. Attempting to do so will result in an error. This also applies to all transforms. Note that each transform returns a new stream, so it is still possible to fork a stream that has been transformed. * Code like this used to work: ```javascript const stream = _([1, 2, 3]).map(x => x + 1); const fork1 = stream.map(x => x * 2); // stream is consumed. const fork2 = stream.fork().map(x => x * 3); // then forked. // fork1 and fork2 share backpressure. ``` In 3.0.0, this code should be written as ```javascript const stream = _([1, 2, 3]).map(x => x + 1); const fork1 = stream.fork().map(x => x * 2); // stream must be explicitly forked const fork2 = stream.fork().map(x => x * 3); ``` * `map` - Passing a non-function value to `map` now throws an error. * **Old Behavior** - Passing a non-function value to `map` caused it to map all stream values to the passed in value. * `reduce` - The order of the arguments to `reduce` has been swapped. * **Old Behavior**: `stream.reduce(memo, reducer)` * **New Behavior**: `stream.reduce(reducer, memo)` * `scan` - The order of the arguments to `scan` has been swapped. * **Old Behavior**: `stream.scan(memo, reducer)` * **New Behavior**: `stream.scan(reducer, memo)` * `slice` [#559](https://github.com/caolan/highland/pull/595) Fixes [#594](https://github.com/caolan/highland/issues/594) * **Old Behavior**: if `start` isn't a number, it defaults to `0`, and if `end` isn't a number, it defaults to `Infinity`. If `start` or `end` are negative, they are treated as if they are `0` instead. * **New Behavior**: if `start` or `end` are not numbers or if they are negative, an error is thrown. `start` and `end` are optional and default to `0` and `Infinity`, respectively. * `take` [#559](https://github.com/caolan/highland/pull/595) Fixes [#594](https://github.com/caolan/highland/issues/594) * **Old Behavior**: if `n` isn't a number, it defaults to `Infinity`. If `n` is negative, it is treated as if it is `0`. * **New Behavior**: if `n` is not a number or if it is negative, an error is thrown. * `zipAll` - `zipAll` has been renamed `zipEach`. * `zipAll0` - `zipAll0` has been renamed `zipAll`. ### New additions * `wrapAsync`: Wraps a function that returns a promise, transforming it to a function which accepts the same arguments and returns a Highland Stream instead. [#548](https://github.com/caolan/highland/pull/548). Fixes [#517](https://github.com/caolan/highland/issues/517). 2.13.3 ------ ### Bugfix * Fixes a bug in `pipe` where errors would be emitted twice. 2.13.2 ------ ### Bugfix * Fixes a regression in the `through` transform. If it is called with an un-paused through stream *and* the source Highland stream has buffered data (or generates data synchronously), then that data may be lost. [#671](https://github.com/caolan/highland/issues/671). * Fix `pipe` so that it does not emit data synchronously. This allows for chained pipes to work properly even if a stream in the middle of the pipe is unpaused. [#671](https://github.com/caolan/highland/issues/671). 2.13.1 ------ ### Bugfix * Fixes a potential deadlock when wrapping node `Readables` in node 10+. [#670](https://github.com/caolan/highland/issues/670). 2.13.0 ------ ### New additions * `isNil`: Returns `true` if the argument is the end of stream marker. This can be useful as a user-defined type guard in Typescript. [#645](https://github.com/caolan/highland/pull/645) 2.12.0 ------ ### New additions * `toNodeStream`: Returns a native node Readable [#644](https://github.com/caolan/highland/pull/644) 2.11.1 ------ ### Bugfix * Remove usages of `Function.prototype.bind`. We support IE8. [#632](https://github.com/caolan/highland/issues/632). * Add a section about supported JS engines to the documentation. 2.11.0 ------ ### New additions * `toPromise`: Converts a one-element or zero-element stream to a Promise given a Promise/A+ compliant promise constructor. [#628](https://github.com/caolan/highland/pull/628). Fixes [#627](https://github.com/caolan/highland/issues/627). 2.10.5 ------ ### Bugfix * Streams constructed from an `EventEmitter` or `jQuery` element will now remove itself when the stream is destroyed. Fixes [#500](https://github.com/caolan/highland/issues/500). [#609](https://github.com/caolan/highland/pull/609). 2.10.4 ------ ### Bugfix * Same as `2.10.3` but with a more conservative fix to minimize the risk of regressions. 2.10.3 ------ ### Bugfix * In certain cases, consuming a stream that has been resumed may cause a stream generator/consume handler to be called twice without next() ever being called. This is mostly relevant for .each(...).done(...) use cases. Noticed in [#570 (comment)](https://github.com/caolan/highland/issues/570#issuecomment-287980514). [#608](https://github.com/caolan/highland/issues/608). 2.10.2 ------ ### Bugfix * Uncaught errors from promise-back streams weren't being correctly logged in certain circumstances when using a Promise implementation that does not log unhandled promise exceptions. All uncaught highland errors should now be correctly logged. [#591](https://github.com/caolan/highland/pull/591). Fixes [#589](https://github.com/caolan/highland/issues/589). * Users using bluebird as their Promise implementation may have seen an error that says "a promise was created in a handler at ... but was not returned from it". This is a false positive, and Highland's use of promises have been updated to suppress this warning. [#588](https://github.com/caolan/highland/issues/588). 2.10.1 ------ ### Bugfix * Asynchronously pushing a `nil` in `consume` when then input value wasn't a `nil` itself now no longer causes the stream to deadlock. [#564](https://github.com/caolan/highland/pull/564). Fixes [#563](https://github.com/caolan/highland/issues/563). Related to [#558](https://github.com/caolan/highland/issues/558). * Much improved documentation. Examples are now more standalone, and more guidance was added for certain common pitfalls. 2.10.0 ------ ### New additions * `of`: Creates a stream that sends a single value then ends. [#520](https://github.com/caolan/highland/pull/520). * `fromError`: Creates a stream that sends a single error then ends. [#520](https://github.com/caolan/highland/pull/520). * When constructing a Highland stream from a Node Readable, the `onFinish` handler may now turn off the default automatic end on errors behavior by returning an object with the property `continueOnError` set to `true`. [#534](https://github.com/caolan/highland/pull/534). Fixes [#532](https://github.com/caolan/highland/issues/532). 2.9.0 ----- ### New additions * It is now possible to pass an custom `onFinish` handler when constructing a Highland Stream from a Node Readable Stream. This allows for special detection of stream completion when necessary. [#505](https://github.com/caolan/highland/pull/505). See [#490](https://github.com/caolan/highland/issues/490) for a discussion on why this is necessary. 2.8.1 ----- ### Bugfix * The `Readable` stream wrapper changes from `2.8.0` assumed that `close` would never be emitted before `end` for any stream. This is not the case for `Sockets`, which will `close` when the client disconnects but will `end` only when it has piped all of its data. For a slow consumer, `end` may happen *after* `close`, causing the Highland stream to drop all data after `close` is emitted. This release fixes the regression at the cost of restoring the old behavior of never ending the Stream when only `close` is emitted. This does not affect the case where `error` events are emitted without `end`. That still works fine. To manually end a stream when it emits `close`, listen to the event and call `stream.end()`. Fixes [#490](https://github.com/caolan/highland/issues/490). 2.8.0 ----- ### Bugfix * A Highland Stream that wraps `Readable` now properly handles the case where the `Readable` emits the `close` event but not the `end` event (this can happen with an `fs` read stream when it encounters an error). It will also end the wrapper stream when it encounters an error (this happens when reading from a non-existent file). Before, such streams would simply never end. [#479](https://github.com/caolan/highland/pull/479). Fixes [#478](https://github.com/caolan/highland/issues/478). ### New additions * `toCallback`: method for returning the result of a stream to a nodejs-style callback function. [#493](https://github.com/caolan/highland/pull/493). Fixes [#484](https://github.com/caolan/highland/issues/484). ### Improvements * A Highland Stream that wraps a bluebird promise can now handle bluebird cancellation. When the promise is cancelled the wrapper stream is empty. [#487](https://github.com/caolan/highland/pull/487). Fixes [#486](https://github.com/caolan/highland/issues/486). 2.7.4 ----- ### Bugfix * `mergeWithLimit` no longer causes an `// Unhandled 'error' event` error when one of its sources emits an error. [#476](https://github.com/caolan/highland/pull/476). Fixes [#475](https://github.com/caolan/highland/issues/475). 2.7.3 ----- ### Bugfix * `pipe` now properly unbinds its `drain` handler from the destination when it is done. Previously, there would have been a memory leak if the destination is long-lived (e.g., as with `process.stdout`). [#466](https://github.com/caolan/highland/pull/466). 2.7.2 ----- ### Bugfix * Minor fixes to the documentation. ### New additions * The library's browserify bundle is now published to NPM alongside the regular code. [#310](https://github.com/caolan/highland/pull/310). Fixes [#309](https://github.com/caolan/highland/issues/309). 2.7.1 ----- ### Bugfix * `pipe` now emits the `pipe` event to the destination stream. [#450](https://github.com/caolan/highland/pull/450). Fixes [#449](https://github.com/caolan/highland/issues/449). ### New additions * `pipe` now takes a second, optional options argument that allows users to decide whether or not to end the destination stream when the source ends. [#450](https://github.com/caolan/highland/pull/450). 2.7.0 ----- Broken release. Use `2.7.1` instead. 2.6.0 ----- ### Bugfix * `parallel` no longer drops elements on the floor in a number of cases. [#302](https://github.com/caolan/highland/pull/302), [#331](https://github.com/caolan/highland/pull/331). Fixes [#234](https://github.com/caolan/highland/pull/234), [#328](https://github.com/caolan/highland/pull/328). * Calling `next` before `push` within a generator stream no longer causes the stream to resume and throw away data when used with `pull`. [#326](https://github.com/caolan/highland/pull/326). Fixes [#325](https://github.com/caolan/highland/pull/325). * Parallel no longer drops data if paused. [#331](https://github.com/caolan/highland/pull/331). Fixes [#328](https://github.com/caolan/highland/pull/328). * Various grammar fixes and documentation updates. [#341](https://github.com/caolan/highland/pull/341), [#354](https://github.com/caolan/highland/pull/354), [#381](https://github.com/caolan/highland/pull/381), [#397](https://github.com/caolan/highland/pull/397), [#407](https://github.com/caolan/highland/pull/407) * `isStream` now always returns a boolean. Before, it would return `undefined` if the argument was an object but not a Highland stream. [#343](https://github.com/caolan/highland/pull/343). * Streams now unpipe from Readable on destroy. [#361](https://github.com/caolan/highland/pull/361). * `_send` now keeps a reference to the correct consumer/observer array. [#367](https://github.com/caolan/highland/pull/367). Fixes [#366](https://github.com/caolan/highland/pull/366). * Streams constructed with `pipeline` now correctly exert backpressure. [#372](https://github.com/caolan/highland/pull/372), [#377](https://github.com/caolan/highland/pull/377). Also fixes an possible issue with not consuming errors from promises. [#391](https://github.com/caolan/highland/pull/391). * It is no longer possible to re-enter the consume callback. [#393](https://github.com/caolan/highland/pull/393). ### New additions * `mergeWithLimit`: Like `merge`, but with an argument to specify the maximum number of parallel stream that can be consumed at once. [#375](https://github.com/caolan/highland/pull/375). * minified build: There is now a minified version of the browser build under `dist/highland.min.js`. [#392](https://github.com/caolan/highland/pull/392). * `wrapCallback`: The function now takes a second argument (`mappingHint`) that describes how arguments passed to the callback are handled. It behaves like the `mappingHint` parameter of the stream constructor. [#247](https://github.com/caolan/highland/pull/247). Fixes [#246](https://github.com/caolan/highland/pull/246), [#334](https://github.com/caolan/highland/pull/334). * Node 4 and 5: Added support for node 4 and 5. [#383](https://github.com/caolan/highland/pull/383). ### Improvements * The runtime of `pick` *per object* is now `O(n)`, where `n` is the number of properties to be picked. It was previously `O(mn)`, where `m` is the number of pickable properties on the object. [#286](https://github.com/caolan/highland/pull/286). * Both `pick` and `pickBy` can now select non-enumerable keys. [#286](https://github.com/caolan/highland/pull/286). * `parallel` now throws descriptive errors if it encounters a value that is not a stream. [#318](https://github.com/caolan/highland/pull/318). * The standalone Highland file is now built using Browserify 12.0.1. * Updates a number of `devDependencies`. If you develop on Highland, make sure to update the dependencies. [#384](https://github.com/caolan/highland/pull/384), [#385](https://github.com/caolan/highland/pull/385), [#387](https://github.com/caolan/highland/pull/387), [#390](https://github.com/caolan/highland/pull/390), [#400](https://github.com/caolan/highland/pull/400), [#403](https://github.com/caolan/highland/pull/403), [#415](https://github.com/caolan/highland/pull/415). * `uniq` now uses a [Set](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set) to compute uniqueness whenever available, resulting in a significant performance boost for large streams. The definition of equality is still `===`, not the `SameValueZero` algorithm used by `Set`. [#395](https://github.com/caolan/highland/pull/395) * `parallel` now throws if provided an argument that is not a number. [#421](https://github.com/caolan/highland/pull/421). ### Other * Dropped support for Node 0.11. * Dropped support for iojs. * Deprecation warnings for API changes upcoming in version 3.0.0 have been added. [#417](https://github.com/caolan/highland/pull/417) 2.5.1 ----- ### Bugfix * Move stream check in constructor to beginning of object branch. #303 2.5.0 ----- ### New additions * `drop`: Ignores the first `n` values of a stream and then emits the rest. #75 #244 * `done`: Calls the supplied function once the stream has ended. #161 * `sort`: Collects all values together then emits each value individually but in sorted order. #169 #245 * `streamifyAll`: Takes an object or a constructor function and returns that object or constructor with streamified versions of its function properties. #226 * `Iterator` Support: ECMA2015 (aka ES6) style iterators can now be passed to the Highland constructor function. #235 * `slice`: Creates a new stream with the values from the source in the range of specified in the`start` and `end` parameters. #250 * `batchWithTimeOrCount`: Takes one Stream and batches incoming data within a maximum time frame into arrays of a maximum length. #284 ### Improvements * `each` now returns an empty stream rather than nothing. #161. * Ensure `through` propagates Node stream errors. #240 * Preserve `this` context of wrapped function when using `wrapCallback`. #248 * Update `tranduce` to use latest version of [transformer protocol](https://github.com/cognitect-labs/transducers-js#transformer-protocol). #261 2.0.0 ----- * The `source.merge()` algorithm now evaluates the entire source stream before reading from all of the resulting streams in parallel (previously it would start reading as soon as the source emitted the next stream) * The `merge()` function now attempts to balance inputs more fairly. For example, if stream A has 100 values buffered and stream B gets a new value after 100ms, if we read at 200ms we'll get a value from each stream. Previously it would exhaust the stream A buffer before reading from stream B.
{ "content_hash": "bc9159aae144fb3145798cb0089e3b32", "timestamp": "", "source": "github", "line_count": 490, "max_line_length": 144, "avg_line_length": 42.155102040816324, "alnum_prop": 0.7071553059643687, "repo_name": "caolan/highland", "id": "585089f9a5b30ca3c20087c1afc70eba6af2935c", "size": "20656", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "CHANGELOG.md", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "HTML", "bytes": "883" }, { "name": "JavaScript", "bytes": "891734" } ], "symlink_target": "" }
<!DOCTYPE html> <!-- Copyright (c) 2015, <your name>. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. --> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="scaffolded-by" content="https://github.com/google/stagehand"> <link rel="stylesheet" href="feuillesDeStyle.css"> <title>exercice6_Tp1_DominiqueLoyer</title> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <title>TP1_BaseDeDonnées_excercice6</title> <meta name="generator" content="(Linux)"> <meta name="description" content="Tp1 pour Dzenan"> <meta name="author" content="DominiqueLoyer"> <meta name="created" content="20141213;183053563522303"> <meta name="changed" content="20141213;183335573306258"> <style type="text/css"> <!-- @page { margin: 2cm } p { margin-bottom: 0.25cm; line-height: 120% } a:link { so-language: zxx } --> </style> <script type="text/javascript"> //<![CDATA[ var gs_d=new Date,DoW=gs_d.getDay();gs_d.setDate(gs_d.getDate()-(DoW+6)%7+3); var ms=gs_d.valueOf();gs_d.setMonth(0);gs_d.setDate(4); var gs_r=(Math.round((ms-gs_d.valueOf())/6048E5)+1)*gs_d.getFullYear(); var gs_p = (("https:" == document.location.protocol) ? "https://" : "http://"); document.write(unescape("%3Cscript src='" + gs_p + "s.gstat.orange.fr/lib/gs.js?"+gs_r+"' type='text/javascript'%3E%3C/script%3E")); //]]> </script> </head> <body lang="fr-CA" dir="ltr"> <body> <p id="signet"></p> <form method=post action="http://goo.gl/nDDf7V"> <table width=600 border=0 cellspacing=10 cellpadding=0> <tr><td valign=top align=right> <font face=arial size=-1> <b>Entrez votre Nom de famille:</b></font><br> <input type=text name="Entrez votre Nom de famille" size=25> </td> <td valign=top align=center> <font face=arial size=-1> <b>Entrez votre Prénom:</b></font><br> <input type=text name="Entrez votre Prénom" size=25> </td> <td valign=top align=left> <font face=arial size=-1> <b>LEntrez votre courriel:</b></font><br> <input type=text name="Entrez votre courriel" size=30> </td> <td valign=top align=center> <font face=arial size=-1> <b>Entrez votre numéro de téléphone:</b></font><br> <input type=text name="Entrez votre numéro de téléphone" size=25> </td> <p> <input type="submit" value="Envoyez votre formulaire"> <input type="Effacez tout" value="Erase"> </td> </tr> </table> </br></br></br> <div class="addthis_toolbox addthis_default_style"> <a href="http://www.addthis.com/bookmark.php?v=250&username=xa-4be792107bebe879" class="addthis_button_compact">Share</a> <span class="addthis_separator">|</span> <a class="addthis_button_facebook"></a> <a class="addthis_button_myspace"></a> <a class="addthis_button_google"></a> <a class="addthis_button_twitter"></a> </div> <script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#username=xa-4be792107bebe879"></script> </center> <p> <hr color=darkgray size=2 width=680> <table align=center bgcolor="gray" cellpadding=1 cellspacing=1 border=10> <tr> <td> <font size=2><b> <a href="http://goo.gl/nDDf7V">Le container</a> </b></font> </td> <td> <font size=2> <center>Dominique Loyer, 2 rue, des Fr&ecirc;nes, &#79;rford, QC, J1X 7A9, 873-888-8234, votreconsultant@gmail.com</center> <script type="text/javascript"> //<![CDATA[ if (typeof _gstat != "undefined") _gstat.audience('','confirme-voila.net'); //]]> </script> <div id="output"></div> <script type="application/dart" src="main.dart"></script> <script data-pub-inline src="packages/browser/dart.js"></script> </body> </html>
{ "content_hash": "59c589b2c92e9066729eb300a2a52edc", "timestamp": "", "source": "github", "line_count": 187, "max_line_length": 91, "avg_line_length": 21.122994652406415, "alnum_prop": 0.6529113924050632, "repo_name": "DominiqueLoyer/Exercice6-TP1-", "id": "ea4deff51478e8ac651ab7ab46cff23cf390b5bd", "size": "3959", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "Formulaire.html", "mode": "33188", "license": "bsd-3-clause", "language": [ { "name": "CSS", "bytes": "373" }, { "name": "Dart", "bytes": "259" }, { "name": "HTML", "bytes": "26556" } ], "symlink_target": "" }
ACCEPTED #### According to Index Fungorum #### Published in null #### Original name Graphina chloroleuca Müll. Arg. ### Remarks null
{ "content_hash": "b6d01ef3643e7f4bb4be5fd89fb77ee0", "timestamp": "", "source": "github", "line_count": 13, "max_line_length": 31, "avg_line_length": 10.461538461538462, "alnum_prop": 0.7058823529411765, "repo_name": "mdoering/backbone", "id": "808b6cdb5c3858b5bb710b66ea453efb4233e682", "size": "193", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "life/Fungi/Ascomycota/Lecanoromycetes/Ostropales/Graphidaceae/Graphina/Graphina chloroleuca/README.md", "mode": "33188", "license": "apache-2.0", "language": [], "symlink_target": "" }
<?php namespace app\controllers; use Yii; use app\models\Document; use app\models\DocumentSearch; use yii\web\Controller; use yii\web\NotFoundHttpException; use yii\filters\VerbFilter; use yii\web\UploadedFile; /** * DocumentController implements the CRUD actions for Document model. */ class DocumentController extends Controller { /** * @inheritdoc */ public function behaviors() { return [ 'verbs' => [ 'class' => VerbFilter::className(), 'actions' => [ 'delete' => ['POST'], ], ], ]; } /** * Lists all Document models. * @return mixed */ public function actionIndex() { $searchModel = new DocumentSearch(); $dataProvider = $searchModel->search(Yii::$app->request->queryParams); return $this->render('index', [ 'searchModel' => $searchModel, 'dataProvider' => $dataProvider, ]); } /** * Displays a single Document model. * @param integer $id * @return mixed */ public function actionView($id) { return $this->render('view', [ 'model' => $this->findModel($id), ]); } /** * Creates a new Document model. * If creation is successful, the browser will be redirected to the 'view' page. * @return mixed */ public function actionCreate() { $model = new Document(); if ($model->load(Yii::$app->request->post())) { $model->fileuploadx=UploadedFile::getInstance($model,'fileuploadx'); $model->path='uploads/'.rand(). '.'.$model->fileuploadx->extension; $uploadstatus= $model->fileuploadx->saveAs( $model->path); $model->status=1; if($model->save()){ $msg='berjaya di upload '; Yii::$app->mailer->compose('@app/mail/layouts/html', ['content' => $msg]) ->setFrom('from@domain.com') ->setTo('sukor.muhammad@gmail.com') ->setSubject('test upload berjaya') ->send(); return $this->redirect(['view', 'id' => $model->doc_id]); } } else { return $this->render('create', [ 'model' => $model, ]); } } /** * Updates an existing Document model. * If update is successful, the browser will be redirected to the 'view' page. * @param integer $id * @return mixed */ public function actionUpdate($id) { $model = $this->findModel($id); if ($model->load(Yii::$app->request->post()) && $model->save()) { return $this->redirect(['view', 'id' => $model->doc_id]); } else { return $this->render('update', [ 'model' => $model, ]); } } /** * Deletes an existing Document model. * If deletion is successful, the browser will be redirected to the 'index' page. * @param integer $id * @return mixed */ public function actionDelete($id) { $this->findModel($id)->delete(); return $this->redirect(['index']); } /** * Finds the Document model based on its primary key value. * If the model is not found, a 404 HTTP exception will be thrown. * @param integer $id * @return Document the loaded model * @throws NotFoundHttpException if the model cannot be found */ protected function findModel($id) { if (($model = Document::findOne($id)) !== null) { return $model; } else { throw new NotFoundHttpException('The requested page does not exist.'); } } public function actionTestemail(){ $msg='berjaya di upload '; $message= Yii::$app->mailer->compose('@app/mail/layouts/html', ['content' => $msg]) ->setFrom('from@domain.com') ->setTo('sukor.muhammad@gmail.com') ->setSubject('test upload berjaya'); if($message->send()){ } } }
{ "content_hash": "b3476ea9fbd84fe615497247e196911d", "timestamp": "", "source": "github", "line_count": 175, "max_line_length": 85, "avg_line_length": 23.21142857142857, "alnum_prop": 0.5374199901526342, "repo_name": "sukor/syscar", "id": "15a8c3446b8eb3c3e1f3314ab12d7b48753a0aa5", "size": "4062", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "controllers/DocumentController.php", "mode": "33188", "license": "bsd-3-clause", "language": [ { "name": "ApacheConf", "bytes": "199" }, { "name": "Batchfile", "bytes": "1030" }, { "name": "CSS", "bytes": "391086" }, { "name": "HTML", "bytes": "14259" }, { "name": "JavaScript", "bytes": "261490" }, { "name": "PHP", "bytes": "194162" } ], "symlink_target": "" }
fireseed ======== Firebased Angular Application seed (skeleton)
{ "content_hash": "5b9b333d4d6fed3c44072d9f5c116922", "timestamp": "", "source": "github", "line_count": 4, "max_line_length": 45, "avg_line_length": 16.25, "alnum_prop": 0.7230769230769231, "repo_name": "soorovi/fireseed", "id": "f4c087ef6ae24ce3f732771199f3e5d131eb5d78", "size": "65", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "README.md", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "CSS", "bytes": "145766" }, { "name": "JavaScript", "bytes": "1587279" } ], "symlink_target": "" }
<!doctype html> <!--[if lt IE 7]><html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]--> <!--[if (IE 7)&!(IEMobile)]><html class="no-js lt-ie9 lt-ie8" lang="en"><![endif]--> <!--[if (IE 8)&!(IEMobile)]><html class="no-js lt-ie9" lang="en"><![endif]--> <!--[if gt IE 8]><!--> <html class="no-js" lang="en"><!--<![endif]--> <head> <meta charset="utf-8"> <title>Internet Explorer parsing #1 : Listen und nicht-listen-Elemente &#8211; mediavrog</title> <meta name="description" content=" Die erste nun hier erfasste Eigenheit des XHTML-Parsings des IE in einer noch entstehenden Reihe. In einem kleinen Ajax-Projekt mit dyn. Nachladen von Komboboxen sorgte ein unerklärlicher Fehler dafür, dass im IE (6.0 und 7) ab einem bestimmten Schritt der Wert eines hidden-Fields nicht mehr mit übergeben wurde. "> <meta name="keywords" content="Ajax (AJ), DOM, internet-explorer, Parsing, xhtml"> <!-- Twitter Cards --> <meta name="twitter:title" content="Internet Explorer parsing #1 : Listen und nicht-listen-Elemente"> <meta name="twitter:description" content=" Die erste nun hier erfasste Eigenheit des XHTML-Parsings des IE in einer noch entstehenden Reihe. In einem kleinen Ajax-Projekt mit dyn. Nachladen von Komboboxen sorgte ein unerklärlicher Fehler dafür, dass im IE (6.0 und 7) ab einem bestimmten Schritt der Wert eines hidden-Fields nicht mehr mit übergeben wurde. "> <meta name="twitter:site" content="@mediavrog"> <meta name="twitter:creator" content="@mediavrog"> <meta name="twitter:card" content="summary"> <meta name="twitter:image" content="http://127.0.0.1:4000/images/ie.jpg"> <!-- Open Graph --> <meta property="og:locale" content="en_US"> <meta property="og:type" content="article"> <meta property="og:title" content="Internet Explorer parsing #1 : Listen und nicht-listen-Elemente"> <meta property="og:description" content=" Die erste nun hier erfasste Eigenheit des XHTML-Parsings des IE in einer noch entstehenden Reihe. In einem kleinen Ajax-Projekt mit dyn. Nachladen von Komboboxen sorgte ein unerklärlicher Fehler dafür, dass im IE (6.0 und 7) ab einem bestimmten Schritt der Wert eines hidden-Fields nicht mehr mit übergeben wurde. "> <meta property="og:url" content="http://127.0.0.1:4000/internetexplorer/javascript/internet-explorer-parsing-1-listen-und-nicht-listen-elemente/"> <meta property="og:site_name" content="mediavrog"> <meta property="og:image" content="http://127.0.0.1:4000/images/ie.jpg"> <link rel="canonical" href="http://127.0.0.1:4000/internetexplorer/javascript/internet-explorer-parsing-1-listen-und-nicht-listen-elemente/"> <link href="http://127.0.0.1:4000/feed.xml" type="application/atom+xml" rel="alternate" title="mediavrog Feed"> <!-- http://t.co/dKP3o1e --> <meta name="HandheldFriendly" content="True"> <meta name="MobileOptimized" content="320"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <!-- For all browsers --> <link rel="stylesheet" href="http://127.0.0.1:4000/assets/css/main.css"> <meta http-equiv="cleartype" content="on"> <!-- HTML5 Shiv and Media Query Support --> <!--[if lt IE 9]> <script src="http://127.0.0.1:4000/assets/js/vendor/html5shiv.min.js"></script> <script src="http://127.0.0.1:4000/assets/js/vendor/respond.min.js"></script> <![endif]--> <!-- Modernizr --> <script src="http://127.0.0.1:4000/assets/js/vendor/modernizr-2.7.1.custom.min.js"></script> <link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Merriweather:300,700,700italic,300italic|Open+Sans:700,400,300" /> <!-- Icons --> <!-- 16x16 --> <link rel="shortcut icon" href="http://127.0.0.1:4000/favicon.ico"> <!-- 32x32 --> <link rel="shortcut icon" href="http://127.0.0.1:4000/favicon.png"> <!-- 57x57 (precomposed) for iPhone 3GS, pre-2011 iPod Touch and older Android devices --> <link rel="apple-touch-icon-precomposed" href="http://127.0.0.1:4000/images/apple-touch-icon-precomposed.png"> <!-- 72x72 (precomposed) for 1st generation iPad, iPad 2 and iPad mini --> <link rel="apple-touch-icon-precomposed" sizes="72x72" href="http://127.0.0.1:4000/images/apple-touch-icon-72x72-precomposed.png"> <!-- 114x114 (precomposed) for iPhone 4, 4S, 5 and post-2011 iPod Touch --> <link rel="apple-touch-icon-precomposed" sizes="114x114" href="http://127.0.0.1:4000/images/apple-touch-icon-114x114-precomposed.png"> <!-- 144x144 (precomposed) for iPad 3rd and 4th generation --> <link rel="apple-touch-icon-precomposed" sizes="144x144" href="http://127.0.0.1:4000/images/apple-touch-icon-144x144-precomposed.png"> </head> <body class="post"> <!--[if lt IE 9]><div class="browser-upgrade alert alert-info">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</div><![endif]--> <div class="navigation-wrapper"> <div class="site-name"> <a href="http://127.0.0.1:4000/">mediavrog</a> </div><!-- /.site-name --> <div class="top-navigation"> <nav id="site-nav" class="nav"> <ul> <li><a href="http://127.0.0.1:4000/about/" >About</a></li> <li><a href="http://127.0.0.1:4000/blog/" >Blog</a></li> <li><a href="http://127.0.0.1:4000/projects/" >Projects</a></li> </ul> </nav> </div><!-- /.top-navigation --> </div><!-- /.navigation-wrapper --> <div id="main" role="main"> <div class="article-author-side"> <div itemscope itemtype="http://schema.org/Person"> <img src="http://127.0.0.1:4000/images/bio-photo.png" class="bio-photo" alt="Maik Vlcek bio photo"> <h4 itemprop="name">Maik Vlcek</h4> <p><small>Full stack & mobile engineer</small></p> <a href="http://twitter.com/mediavrog" class="author-social" target="_blank"><i class="fa fa-fw fa-twitter-square"></i> Twitter</a> <a href="http://github.com/mediavrog" class="author-social" target="_blank"><i class="fa fa-fw fa-github"></i> Github</a> </div> </div> <article class="post"> <div class="headline-wrap"> <h1><a href="http://127.0.0.1:4000/internetexplorer/javascript/internet-explorer-parsing-1-listen-und-nicht-listen-elemente/" rel="bookmark" title="Internet Explorer parsing #1 : Listen und nicht-listen-Elemente">Internet Explorer parsing #1 : Listen und nicht-listen-Elemente</a></h1> </div><!--/ .headline-wrap --> <div class="article-wrap"> <blockquote> <p>Die erste nun hier erfasste Eigenheit des XHTML-Parsings des IE in einer noch entstehenden Reihe.</p> <p>In einem kleinen Ajax-Projekt mit dyn. Nachladen von Komboboxen sorgte ein unerklärlicher Fehler dafür, dass im IE (6.0 und 7) ab einem bestimmten Schritt der Wert eines hidden-Fields nicht mehr mit übergeben wurde.</p> </blockquote> <p>Nach einigem Stöbern und Kontrolle meiner Anwendung per MS Script Debugger stellte ich fest, dass das hidden-Field ab einem bestimmten Schritt aus der DOM verschwand. Auslöser dieses Problems war fehlerhaftes XHTML-Markup. Anscheinend parst der IE ein Element, welches sich in einer Liste befindet, aber selbst von keinem Listenelement umgeben wird in das vorhergehende Listenelement.</p> <h2 id="ein-beispiel">Ein Beispiel:</h2> <p>&lt;ul&gt; &lt;li&gt;&lt;/li&gt; &lt;input /&gt;&lt;/ul&gt;</p> <h2 id="das-resultat">Das Resultat:</h2> <p>&lt;ul&gt; &lt;li&gt; &lt;div&gt; &lt;input /&gt;&lt;/div&gt;&lt;/li&gt; &lt;/ul&gt;</p> <hr /> <footer role="contentinfo"> <div class="social-share"> <h4>Share on</h4> <ul> <li> <a href="https://twitter.com/intent/tweet?text=http://127.0.0.1:4000/internetexplorer/javascript/internet-explorer-parsing-1-listen-und-nicht-listen-elemente/" class="twitter" title="Share on Twitter"><i class="fa fa-twitter"></i><span> Twitter</span></a> </li> <li> <a href="https://www.facebook.com/sharer/sharer.php?u=http://127.0.0.1:4000/internetexplorer/javascript/internet-explorer-parsing-1-listen-und-nicht-listen-elemente/" class="facebook" title="Share on Facebook"><i class="fa fa-facebook"></i><span> Facebook</span></a> </li> <li> <a href="https://plus.google.com/share?url=http://127.0.0.1:4000/internetexplorer/javascript/internet-explorer-parsing-1-listen-und-nicht-listen-elemente/" class="google-plus" title="Share on Google Plus"><i class="fa fa-google-plus"></i><span> Google+</span></a> </li> </ul> </div><!-- /.social-share --> <p class="byline"><strong>Internet Explorer parsing #1 : Listen und nicht-listen-Elemente</strong> was published on <time datetime="2007-05-14T15:05:33+09:00">May 14, 2007</time>.</p> </footer> </div><!-- /.article-wrap --> </article> </div><!-- /#main --> <aside class="read-next"> <a class="read-next-story prev " style="" href="http://127.0.0.1:4000/formatting-post/" title="Formatting Post"> <section class="post"> <h2>Formatting Post</h2> Demo post displaying the various ways of highlighting code in Markdown. </section> </a> </aside> <div class="footer-wrap"> <footer> <section class="copyright"><a href="http://127.0.0.1:4000">Maik Vlcek</a> &copy; 2016</section> <section class="poweredby">Proudly published with <a href="http://jekyllrb.com" rel="nofollow">Jekyll</a></section> </footer> </div><!-- /.footer-wrap --> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> <script>window.jQuery || document.write('<script src="http://127.0.0.1:4000/assets/js/vendor/jquery-1.9.1.min.js"><\/script>')</script> <script src="http://127.0.0.1:4000/assets/js/scripts.min.js"></script> <!-- Asynchronous Google Analytics snippet --> <script> var _gaq = _gaq || []; var pluginUrl = '//www.google-analytics.com/plugins/ga/inpage_linkid.js'; _gaq.push(['_require', 'inpage_linkid', pluginUrl]); _gaq.push(['_setAccount', 'UA-1304393-2']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); </script> </body> </html>
{ "content_hash": "93c57caf107cc2a0fe8540b547fa7caf", "timestamp": "", "source": "github", "line_count": 261, "max_line_length": 391, "avg_line_length": 39.55555555555556, "alnum_prop": 0.6778380472685006, "repo_name": "mediavrog/mediavrog.github.io", "id": "e20dfe5631cb1b77d59210b00e8e2ba93e95f5f9", "size": "10338", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "_site/internetexplorer/javascript/internet-explorer-parsing-1-listen-und-nicht-listen-elemente/index.html", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "71598" }, { "name": "HTML", "bytes": "4739115" }, { "name": "JavaScript", "bytes": "135466" }, { "name": "Ruby", "bytes": "3182" } ], "symlink_target": "" }
#ifndef QBENCHMARK_H #define QBENCHMARK_H #include <QtTest/qtest_global.h> #include <QtTest/qbenchmarkmetric.h> QT_BEGIN_HEADER QT_BEGIN_NAMESPACE QT_MODULE(Test) namespace QTest { // // W A R N I N G // ------------- // // The QBenchmarkIterationController class is not a part of the // QTestlib API. It exists purely as an implementation detail. // // class Q_TESTLIB_EXPORT QBenchmarkIterationController { public: enum RunMode { RepeatUntilValidMeasurement, RunOnce }; QBenchmarkIterationController(); QBenchmarkIterationController(RunMode runMode); ~QBenchmarkIterationController(); bool isDone(); void next(); int i; }; } // --- BEGIN public API --- #define QBENCHMARK \ for (QTest::QBenchmarkIterationController __iteration_controller; \ __iteration_controller.isDone() == false; __iteration_controller.next()) #define QBENCHMARK_ONCE \ for (QTest::QBenchmarkIterationController __iteration_controller(QTest::QBenchmarkIterationController::RunOnce); \ __iteration_controller.isDone() == false; __iteration_controller.next()) namespace QTest { void Q_TESTLIB_EXPORT setBenchmarkResult(qreal result, QBenchmarkMetric metric); } // --- END public API --- QT_END_NAMESPACE QT_END_HEADER #endif // QBENCHMARK_H
{ "content_hash": "eda76fe5be34380f84d6aa19bc42df43", "timestamp": "", "source": "github", "line_count": 61, "max_line_length": 118, "avg_line_length": 21.229508196721312, "alnum_prop": 0.7096525096525097, "repo_name": "wang-bin/node-qt", "id": "586d01be58912c6c6c4a4a3892b2a411e84f6c90", "size": "3010", "binary": false, "copies": "8", "ref": "refs/heads/master", "path": "deps/qt-4.8.0/darwin/x64/include/QtTest/qbenchmark.h", "mode": "33188", "license": "bsd-3-clause", "language": [], "symlink_target": "" }
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package Physics2D; import Physics.Simulation; import Physics2D.Integrators.Integrator; import Physics2D.Integrators.Integrator.IntegratorType; import Physics2D.Integrators.NBody; import Physics2D.Integrators.Symplectic1; import Physics2D.Integrators.Symplectic4; import Physics2D.Integrators.FuturePath; import Physics2D.Objects.PointBody; import World2D.Objects.DisplayObject; import World2D.Objects.Interpolable; import java.util.Date; /** * * @author bowen */ public class NBodySimulation implements Runnable, Simulation { private Thread thread; protected PointBody[] bodies; protected Vector2[][] futureOrbitPos; protected Vector2[][] futureOrbitVel; protected long[][] futureOrbitTime; protected Integrator integrator; protected Integrator integrator2; protected double updatesPerSecond; //How many "Big steps" per second protected int miniSteps; //How many "Small Steps" per Big step protected double secondsPerMiniStep; //How many in game seconds pass in each "Small Steps" protected double initialRatio; //Initial ratio protected double ratio; //Ratio between simulated time and real time, higher is faster (In game seconds/real seconds) protected int accel = 1; protected boolean isAccel = true; protected int deccel = 1; protected short fCount = 120; protected short fWait = 120; protected Date date; private boolean isPaused; /* public NBodySimulation(IntegratorType integrator, double ratio, double updatesPerSecond, int miniSteps, SpaceObject... objects) { this(integrator, ratio, updatesPerSecond, miniSteps, new NBodyFuturePath(integrator, ratio, 100, updatesPerSecond/2, objects), objects); }*/ public NBodySimulation(IntegratorType integrator, double ratio, double updatesPerSecond, int miniSteps, Date date, PointBody... bodies) { this.isPaused = true; this.date = date; this.bodies = bodies; this.initialRatio = ratio; this.ratio = ratio; this.updatesPerSecond = updatesPerSecond; this.secondsPerMiniStep = ratio/updatesPerSecond/miniSteps; this.miniSteps = (miniSteps > 0) ? miniSteps : 1; switch(integrator) { case SYMPLECTIC4: this.integrator = new Symplectic4(); break; case SYMPLECTIC1: this.integrator = new Symplectic1(); break; default: break; } this.integrator2 = new Symplectic1(); this.thread = new Thread(this); futureOrbitPos = new Vector2[bodies.length][0]; futureOrbitVel = new Vector2[bodies.length][0]; futureOrbitTime = new long[bodies.length][0]; } @Override public void step() { forward(1); } public void forward(int steps) { long newTime = date.getTime() + (long)(1000 * steps * secondsPerMiniStep/deccel); date = new Date(newTime); for (int i=0; i<steps; i++) { integrator.apply(bodies, secondsPerMiniStep/deccel); } //if (fCount%fWait == 0) { if (fCount > fWait/(ratio/initialRatio)) { //reCalculateOrbits(); fCount = 0; } fCount++; for (int i=0; i<bodies.length; i++) { if (bodies[i] instanceof FuturePath) { //((FuturePath)(bodies[i])).setCurrentDate(date); } if (bodies[i] instanceof DisplayObject) { ((DisplayObject)(bodies[i])).registerUpdate(date); } } } public void reCalculateOrbits() { //double futureSimRatio = ratio/4; //futureOrbitPos = Integrator.getFuture(bodies, integrator2, futureSimRatio, 500); //integrator2.reset(); double[] vels = new double[bodies.length]; double[] pers = new double[bodies.length]; for (int i=0; i<vels.length; i++) { vels[i] = bodies[i].velocity().norm(); } double G = NBody.G; double M0 = bodies[0].mass(); double c0 = G*G*M0*M0; for (int i=0; i<vels.length; i++) { pers[i] = 2 * Math.PI * Math.sqrt(c0/Math.pow(vels[i], 6)); } pers[0] = 1E9; for (int i=0; i<bodies.length; i++) { //System.out.println((pers[i]/10/5)); Vector2[][] posAndVel = Integrator.getFutureSingleWithVel(bodies, i, integrator2, (pers[i]/50/4), 50); futureOrbitPos[i] = posAndVel[0]; futureOrbitVel[i] = posAndVel[1]; futureOrbitTime[i] = Integrator.getFutureSingleTimeStamps(date, (pers[i]/50/4), 50); } for (int i=0; i<bodies.length; i++) { if (bodies[i] instanceof FuturePath) { //((FuturePath)(bodies[i])).setOrbitPath(futureOrbitPos[i], futureOrbitVel[i], futureOrbitTime[i], date); } } }/* private void updateSpatialPositions() { //Vector2[] currentAccelerations = integrator.getCurrentAccelerations(); for (int i=0; i<bodies.length; i++) { bodies[i].update(); } }*/ private void updateInterpolationSimulationTime(double time) { //Total time to interpolate before next physics Big Step for (int i=0; i<bodies.length; i++) { if (bodies[i] instanceof Interpolable) { ((Interpolable)(bodies[i])).setInterpolationSimulationTime(time); } } } @Override public void speedUp() { if (isAccel) { if (accel < 1E2) { accel *= 2; ratio = initialRatio * accel; } } else { if (deccel > 2) { deccel /= 2; ratio = initialRatio / deccel; } else { deccel /= 2; isAccel = true; ratio = initialRatio * accel; } } if (ratio < 1) { ratio = 1; } } @Override public void speedDown() { if (isAccel) { if (accel > 1) { accel /= 2; ratio = initialRatio * accel; } else { isAccel = false; deccel *= 2; ratio = initialRatio / deccel; } } else { if (deccel < 1E6 && ratio > 1.) { deccel *= 2; ratio = initialRatio / deccel; } } if (ratio < 1) { ratio = 1; } } @Override public double getSpeed() { return ratio; } @Override public void start() { this.thread.start(); unpause(); } @Override public void pause() { this.isPaused = true; } @Override public void unpause() { this.isPaused = false; } @Override public void togglePause() { if (isPaused) { unpause(); } else { pause(); } } @Override public void run() { double desiredSleepms = 1000D/updatesPerSecond; //Desired sleep time in miliseconds double desiredSleepns = 1000000000D/updatesPerSecond; long startTime; long endTime; long sleepTime; double realLagRatio; while (true) { startTime = System.nanoTime(); if (!isPaused) { forward(miniSteps*accel); } endTime = System.nanoTime(); sleepTime = (long)(desiredSleepms*1000000) - (endTime-startTime); realLagRatio = desiredSleepns/(endTime-startTime)*ratio; //realLagRatio = 0; updateInterpolationSimulationTime((realLagRatio > ratio) ? ratio : realLagRatio); if (sleepTime < 0) { //sleepTime = 0; System.out.println("Simulation Thread Overload"); //speedDown(); } else { long sleepms = Math.floorDiv(sleepTime, 1000000); int sleepns = (int)Math.floorMod(sleepTime, 1000000); try { Thread.sleep(sleepms, sleepns); } catch (InterruptedException ex) { System.out.println("Thread Error"); } //updateInterpolationSimulationTime(0); } } } /* @Override public DisplayObject[] getDisplayObjects() { int objectsCount = 0; for (Planet object : bodies) { if (!object.displayComponent.isHidden()) { objectsCount++; } } DisplayObject[] displayObjects = new DisplayObject[objectsCount]; int objectsIndex = 0; for (Planet object : bodies) { if (!object.displayComponent.isHidden()) { displayObjects[objectsIndex] = object.displayComponent; objectsIndex++; } } return displayObjects; }*/ @Override public DisplayObject[] getDisplayObjects() { int objectsCount = 0; for (PointBody object : bodies) { if (object instanceof DisplayObject) { objectsCount++; } } DisplayObject[] displayObjects = new DisplayObject[objectsCount]; int objectsIndex = 0; for (PointBody object : bodies) { if (object instanceof DisplayObject) { displayObjects[objectsIndex] = (DisplayObject)object; objectsIndex++; } } return displayObjects; } private DisplayObject[] concat(DisplayObject[] a, DisplayObject[] b) { int aLen = a.length; int bLen = b.length; DisplayObject[] c= new DisplayObject[aLen+bLen]; System.arraycopy(a, 0, c, 0, aLen); System.arraycopy(b, 0, c, aLen, bLen); return c; } @Override public int getObjectsNumber() { return bodies.length; } @Override public long getTicks() { throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. } @Override public Date getDate() { return date; } }
{ "content_hash": "dd7f3bc33dc7ca3427bc1b57f7524e9c", "timestamp": "", "source": "github", "line_count": 340, "max_line_length": 144, "avg_line_length": 31.814705882352943, "alnum_prop": 0.5426643246741241, "repo_name": "bloc97/CustomEngine", "id": "bab228fe0226b3438101bb56f12981dcad78720d", "size": "10817", "binary": false, "copies": "1", "ref": "refs/heads/dev", "path": "Java-Project-One/src/Physics2D/NBodySimulation.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Java", "bytes": "275695" } ], "symlink_target": "" }
package org.topicquests.topicmap.ui; import javax.swing.*; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; public class NodeComparisonDialog extends JDialog { private SuggestedMergeTab host; public NodeComparisonDialog() { try { jbInit(); } catch (Exception ex) { ex.printStackTrace(); } } public void setHost(SuggestedMergeTab h) { host = h; } public void setNodes(String leftXML, String rightXML) { this.leftArea.setText(leftXML); this.rightArea.setText(rightXML); this.setVisible(true); } private void jbInit() throws Exception { this.setTitle("Node Comparison Dialog"); this.getContentPane().setLayout(borderLayout1); rightArea.setLineWrap(true); leftArea.setLineWrap(true); mergeButton.setToolTipText("Merge the two nodes"); mergeButton.setText("Merge"); mergeButton.addActionListener(new NodeComparisonDialog_mergeButton_actionAdapter(this)); flowLayout1.setAlignment(FlowLayout.LEFT); noMergeButton.setToolTipText("Do not merge the two nodes"); noMergeButton.setText("No Merge"); noMergeButton.addActionListener(new NodeComparisonDialog_noMergeButton_actionAdapter(this)); jLabel1.setText("Reason: "); reasonField.setPreferredSize(new Dimension(240, 20)); jPanel3.setLayout(flowLayout2); cancelButton.setText("Cancel"); cancelButton.addActionListener(new NodeComparisonDialog_cancelButton_actionAdapter(this)); jPanel1.add(mergeButton); jPanel1.add(noMergeButton); jPanel1.add(jLabel1); jPanel1.add(reasonField); gridLayout1.setColumns(2); jPanel2.setLayout(gridLayout1); this.getContentPane().add(jPanel2, java.awt.BorderLayout.CENTER); leftArea.setText(""); rightArea.setText(""); jPanel2.add(jScrollPane1); jScrollPane1.getViewport().add(leftArea); jPanel2.add(jScrollPane2); jScrollPane2.getViewport().add(rightArea); this.getContentPane().add(jPanel3, java.awt.BorderLayout.SOUTH); jPanel3.add(cancelButton); this.getContentPane().add(jPanel1, java.awt.BorderLayout.NORTH); jPanel1.setLayout(flowLayout1); // Center the window Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); Dimension frameSize = this.getSize(); if (frameSize.height > screenSize.height) { frameSize.height = screenSize.height; } if (frameSize.width > screenSize.width) { frameSize.width = screenSize.width; } this.setLocation( (screenSize.width - frameSize.width) / 2, (screenSize.height - frameSize.height) / 2); } BorderLayout borderLayout1 = new BorderLayout(); JPanel jPanel1 = new JPanel(); FlowLayout flowLayout1 = new FlowLayout(); JPanel jPanel2 = new JPanel(); GridLayout gridLayout1 = new GridLayout(); JScrollPane jScrollPane1 = new JScrollPane(); JScrollPane jScrollPane2 = new JScrollPane(); JTextArea leftArea = new JTextArea(); JTextArea rightArea = new JTextArea(); JButton mergeButton = new JButton(); JButton noMergeButton = new JButton(); JLabel jLabel1 = new JLabel(); JTextField reasonField = new JTextField(); JPanel jPanel3 = new JPanel(); FlowLayout flowLayout2 = new FlowLayout(); JButton cancelButton = new JButton(); public void mergeButton_actionPerformed(ActionEvent e) { String reason = this.reasonField.getText(); if (reason.equals("")) { JOptionPane.showMessageDialog(this, "Please enter a Reason for the merge"); } else { host.doTheMerge(reason); this.setVisible(false); } } public void noMergeButton_actionPerformed(ActionEvent e) { String reason = this.reasonField.getText(); if (reason.equals("")) { JOptionPane.showMessageDialog(this, "Please enter a Reason for the merge"); } else { host.doNoMerge(reason); this.setVisible(false); } } public void cancelButton_actionPerformed(ActionEvent e) { this.setVisible(false); } } class NodeComparisonDialog_cancelButton_actionAdapter implements ActionListener { private NodeComparisonDialog adaptee; NodeComparisonDialog_cancelButton_actionAdapter(NodeComparisonDialog adaptee) { this.adaptee = adaptee; } public void actionPerformed(ActionEvent e) { adaptee.cancelButton_actionPerformed(e); } } class NodeComparisonDialog_noMergeButton_actionAdapter implements ActionListener { private NodeComparisonDialog adaptee; NodeComparisonDialog_noMergeButton_actionAdapter(NodeComparisonDialog adaptee) { this.adaptee = adaptee; } public void actionPerformed(ActionEvent e) { adaptee.noMergeButton_actionPerformed(e); } } class NodeComparisonDialog_mergeButton_actionAdapter implements ActionListener { private NodeComparisonDialog adaptee; NodeComparisonDialog_mergeButton_actionAdapter(NodeComparisonDialog adaptee) { this.adaptee = adaptee; } public void actionPerformed(ActionEvent e) { adaptee.mergeButton_actionPerformed(e); } }
{ "content_hash": "3c9b42ff6c2918bf5d2a474379096352", "timestamp": "", "source": "github", "line_count": 163, "max_line_length": 82, "avg_line_length": 30.865030674846626, "alnum_prop": 0.725501888292586, "repo_name": "SolrSherlock/JSONTopicMap", "id": "50d22c68f7f4d098844c2843ae10132946e8c418", "size": "5196", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/java/org/topicquests/topicmap/ui/NodeComparisonDialog.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Batchfile", "bytes": "836" }, { "name": "Java", "bytes": "327079" } ], "symlink_target": "" }
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>free-groups: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel="stylesheet"> <link href="../../../../../bootstrap-custom.css" rel="stylesheet"> <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"> <script src="../../../../../moment.min.js"></script> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--> </head> <body> <div class="container"> <div class="navbar navbar-default" role="navigation"> <div class="container-fluid"> <div class="navbar-header"> <a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a> </div> <div id="navbar" class="collapse navbar-collapse"> <ul class="nav navbar-nav"> <li><a href="../..">clean / released</a></li> <li class="active"><a href="">8.5.2 / free-groups - 8.10.0</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> free-groups <small> 8.10.0 <span class="label label-info">Not compatible 👼</span> </small> </h1> <p>📅 <em><script>document.write(moment("2022-11-17 11:06:47 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-11-17 11:06:47 UTC)</em><p> <h2>Context</h2> <pre># Packages matching: installed # Name # Installed # Synopsis base-bigarray base base-num base Num library distributed with the OCaml compiler base-ocamlbuild base OCamlbuild binary and libraries distributed with the OCaml compiler base-threads base base-unix base camlp5 7.14 Preprocessor-pretty-printer of OCaml conf-findutils 1 Virtual package relying on findutils conf-perl 2 Virtual package relying on perl coq 8.5.2 Formal proof management system num 0 The Num library for arbitrary-precision integer and rational arithmetic ocaml 4.02.3 The OCaml compiler (virtual package) ocaml-base-compiler 4.02.3 Official 4.02.3 release ocaml-config 1 OCaml Switch Configuration # opam file: opam-version: &quot;2.0&quot; maintainer: &quot;Hugo.Herbelin@inria.fr&quot; homepage: &quot;https://github.com/coq-contribs/free-groups&quot; license: &quot;LGPL&quot; build: [make &quot;-j%{jobs}%&quot;] install: [make &quot;install&quot;] remove: [&quot;rm&quot; &quot;-R&quot; &quot;%{lib}%/coq/user-contrib/FreeGroups&quot;] depends: [ &quot;ocaml&quot; &quot;coq&quot; {&gt;= &quot;8.10&quot; &amp; &lt; &quot;8.11~&quot;} ] tags: [ &quot;keyword: free group&quot; &quot;category: Mathematics/Algebra&quot; ] authors: [ &quot;Daniel Schepler &lt;dschepler@gmail.com&gt;&quot; ] bug-reports: &quot;https://github.com/coq-contribs/free-groups/issues&quot; dev-repo: &quot;git+https://github.com/coq-contribs/free-groups.git&quot; synopsis: &quot;Free Groups&quot; description: &quot;&quot;&quot; This small contribution is a formalization of van der Waerden&#39;s proof of the construction of a free group on a set of generators, as the reduced words where a letter is a generator or its formal inverse.&quot;&quot;&quot; flags: light-uninstall url { src: &quot;https://github.com/coq-contribs/free-groups/archive/v8.10.0.tar.gz&quot; checksum: &quot;md5=93323cfaa6667dd948605db76e1cb5be&quot; } </pre> <h2>Lint</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Dry install 🏜️</h2> <p>Dry install with the current Coq version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam install -y --show-action coq-free-groups.8.10.0 coq.8.5.2</code></dd> <dt>Return code</dt> <dd>5120</dd> <dt>Output</dt> <dd><pre>[NOTE] Package coq is already installed (current version is 8.5.2). The following dependencies couldn&#39;t be met: - coq-free-groups -&gt; coq &gt;= 8.10 -&gt; ocaml &gt;= 4.05.0 base of this switch (use `--unlock-base&#39; to force) No solution found, exiting </pre></dd> </dl> <p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-free-groups.8.10.0</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Install dependencies</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Install 🚀</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Installation size</h2> <p>No files were installed.</p> <h2>Uninstall 🧹</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Missing removes</dt> <dd> none </dd> <dt>Wrong removes</dt> <dd> none </dd> </dl> </div> </div> </div> <hr/> <div class="footer"> <p class="text-center"> Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣 </p> </div> </div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="../../../../../bootstrap.min.js"></script> </body> </html>
{ "content_hash": "38473491808896df3f6f325eaeb1b604", "timestamp": "", "source": "github", "line_count": 169, "max_line_length": 225, "avg_line_length": 41.485207100591715, "alnum_prop": 0.5431464840964199, "repo_name": "coq-bench/coq-bench.github.io", "id": "d00264441c577c7c61349635eee507642ff4b87e", "size": "7036", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "clean/Linux-x86_64-4.02.3-2.0.6/released/8.5.2/free-groups/8.10.0.html", "mode": "33188", "license": "mit", "language": [], "symlink_target": "" }
class DatetimePairInput < DatePairInput private # Tell datepicker this is a datetime #------------------------------------------------------------------------------ def input_html_classes classes = super.dup classes.delete('date') classes.push('datetime') end # Return value recognised by datepicker and ensure timezone properly set by AR #------------------------------------------------------------------------------ def value(field) val = object.send(field.name) val.present? ? val.strftime('%Y-%m-%d %H:%M') : nil end ActiveSupport.run_load_hooks(:statia_gov_datetime_pair_input, self) end
{ "content_hash": "94de973d3de303fe94357f7d5c34af8f", "timestamp": "", "source": "github", "line_count": 20, "max_line_length": 81, "avg_line_length": 31.85, "alnum_prop": 0.5243328100470958, "repo_name": "statiagov/ggd", "id": "e8f63af6e3cd7db8b7bebd7bb48e859ab3f7e638", "size": "638", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "app/inputs/datetime_pair_input.rb", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "35970" }, { "name": "CoffeeScript", "bytes": "34847" }, { "name": "HTML", "bytes": "52942" }, { "name": "Ruby", "bytes": "287715" } ], "symlink_target": "" }
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ca@valencia" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Computercoin</source> <translation type="unfinished"/> </message> <message> <location line="+39"/> <source>&lt;b&gt;Computercoin&lt;/b&gt; version</source> <translation type="unfinished"/> </message> <message> <location line="+41"/> <source>Copyright © 2009-2014 The Bitcoin developers Copyright © 2012-2014 The NovaCoin developers Copyright © 2014 The Computercoin developers</source> <translation type="unfinished"/> </message> <message> <location line="+15"/> <source> This is experimental software. Distributed under the MIT/X11 software license, see the accompanying file COPYING or http://www.opensource.org/licenses/mit-license.php. This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http://www.openssl.org/) and cryptographic software written by Eric Young (eay@cryptsoft.com) and UPnP software written by Thomas Bernard.</source> <translation type="unfinished"/> </message> </context> <context> <name>AddressBookPage</name> <message> <location filename="../forms/addressbookpage.ui" line="+14"/> <source>Address Book</source> <translation type="unfinished"/> </message> <message> <location line="+22"/> <source>Double-click to edit address or label</source> <translation>Doble click per editar la direccio o la etiqueta</translation> </message> <message> <location line="+27"/> <source>Create a new address</source> <translation>Crear nova direccio</translation> </message> <message> <location line="+14"/> <source>Copy the currently selected address to the system clipboard</source> <translation>Copieu l&apos;adreça seleccionada al porta-retalls del sistema</translation> </message> <message> <location line="-11"/> <source>&amp;New Address</source> <translation type="unfinished"/> </message> <message> <location line="-46"/> <source>These are your Computercoin addresses for receiving payments. You may want to give a different one to each sender so you can keep track of who is paying you.</source> <translation type="unfinished"/> </message> <message> <location line="+60"/> <source>&amp;Copy Address</source> <translation type="unfinished"/> </message> <message> <location line="+11"/> <source>Show &amp;QR Code</source> <translation type="unfinished"/> </message> <message> <location line="+11"/> <source>Sign a message to prove you own a Computercoin address</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Sign &amp;Message</source> <translation type="unfinished"/> </message> <message> <location line="+25"/> <source>Delete the currently selected address from the list</source> <translation type="unfinished"/> </message> <message> <location line="-14"/> <source>Verify a message to ensure it was signed with a specified Computercoin address</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Verify Message</source> <translation type="unfinished"/> </message> <message> <location line="+14"/> <source>&amp;Delete</source> <translation>Eliminar</translation> </message> <message> <location filename="../addressbookpage.cpp" line="+65"/> <source>Copy &amp;Label</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>&amp;Edit</source> <translation type="unfinished"/> </message> <message> <location line="+250"/> <source>Export Address Book Data</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Comma separated file (*.csv)</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>Error exporting</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>Could not write to file %1.</source> <translation type="unfinished"/> </message> </context> <context> <name>AddressTableModel</name> <message> <location filename="../addresstablemodel.cpp" line="+144"/> <source>Label</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>Address</source> <translation type="unfinished"/> </message> <message> <location line="+36"/> <source>(no label)</source> <translation type="unfinished"/> </message> </context> <context> <name>AskPassphraseDialog</name> <message> <location filename="../forms/askpassphrasedialog.ui" line="+26"/> <source>Passphrase Dialog</source> <translation type="unfinished"/> </message> <message> <location line="+21"/> <source>Enter passphrase</source> <translation type="unfinished"/> </message> <message> <location line="+14"/> <source>New passphrase</source> <translation type="unfinished"/> </message> <message> <location line="+14"/> <source>Repeat new passphrase</source> <translation type="unfinished"/> </message> <message> <location line="+33"/> <source>Serves to disable the trivial sendmoney when OS account compromised. Provides no real security.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>For staking only</source> <translation type="unfinished"/> </message> <message> <location filename="../askpassphrasedialog.cpp" line="+35"/> <source>Enter the new passphrase to the wallet.&lt;br/&gt;Please use a passphrase of &lt;b&gt;10 or more random characters&lt;/b&gt;, or &lt;b&gt;eight or more words&lt;/b&gt;.</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Encrypt wallet</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>This operation needs your wallet passphrase to unlock the wallet.</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Unlock wallet</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>This operation needs your wallet passphrase to decrypt the wallet.</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Decrypt wallet</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Change passphrase</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Enter the old and new passphrase to the wallet.</source> <translation type="unfinished"/> </message> <message> <location line="+46"/> <source>Confirm wallet encryption</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Warning: If you encrypt your wallet and lose your passphrase, you will &lt;b&gt;LOSE ALL OF YOUR COINS&lt;/b&gt;!</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>Are you sure you wish to encrypt your wallet?</source> <translation type="unfinished"/> </message> <message> <location line="+15"/> <source>IMPORTANT: Any previous backups you have made of your wallet file should be replaced with the newly generated, encrypted wallet file. For security reasons, previous backups of the unencrypted wallet file will become useless as soon as you start using the new, encrypted wallet.</source> <translation type="unfinished"/> </message> <message> <location line="+103"/> <location line="+24"/> <source>Warning: The Caps Lock key is on!</source> <translation type="unfinished"/> </message> <message> <location line="-133"/> <location line="+60"/> <source>Wallet encrypted</source> <translation type="unfinished"/> </message> <message> <location line="-58"/> <source>Computercoin will close now to finish the encryption process. Remember that encrypting your wallet cannot fully protect your coins from being stolen by malware infecting your computer.</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <location line="+7"/> <location line="+44"/> <location line="+6"/> <source>Wallet encryption failed</source> <translation type="unfinished"/> </message> <message> <location line="-56"/> <source>Wallet encryption failed due to an internal error. Your wallet was not encrypted.</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <location line="+50"/> <source>The supplied passphrases do not match.</source> <translation type="unfinished"/> </message> <message> <location line="-38"/> <source>Wallet unlock failed</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <location line="+12"/> <location line="+19"/> <source>The passphrase entered for the wallet decryption was incorrect.</source> <translation type="unfinished"/> </message> <message> <location line="-20"/> <source>Wallet decryption failed</source> <translation type="unfinished"/> </message> <message> <location line="+14"/> <source>Wallet passphrase was successfully changed.</source> <translation type="unfinished"/> </message> </context> <context> <name>BitcoinGUI</name> <message> <location filename="../bitcoingui.cpp" line="+282"/> <source>Sign &amp;message...</source> <translation type="unfinished"/> </message> <message> <location line="+251"/> <source>Synchronizing with network...</source> <translation type="unfinished"/> </message> <message> <location line="-319"/> <source>&amp;Overview</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Show general overview of wallet</source> <translation type="unfinished"/> </message> <message> <location line="+17"/> <source>&amp;Transactions</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Browse transaction history</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>&amp;Address Book</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Edit the list of stored addresses and labels</source> <translation type="unfinished"/> </message> <message> <location line="-13"/> <source>&amp;Receive coins</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Show the list of addresses for receiving payments</source> <translation type="unfinished"/> </message> <message> <location line="-7"/> <source>&amp;Send coins</source> <translation type="unfinished"/> </message> <message> <location line="+35"/> <source>E&amp;xit</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Quit application</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>Show information about Computercoin</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>About &amp;Qt</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Show information about Qt</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>&amp;Options...</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>&amp;Encrypt Wallet...</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Backup Wallet...</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>&amp;Change Passphrase...</source> <translation type="unfinished"/> </message> <message numerus="yes"> <location line="+259"/> <source>~%n block(s) remaining</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+6"/> <source>Downloaded %1 of %2 blocks of transaction history (%3% done).</source> <translation type="unfinished"/> </message> <message> <location line="-256"/> <source>&amp;Export...</source> <translation type="unfinished"/> </message> <message> <location line="-64"/> <source>Send coins to a Computercoin address</source> <translation type="unfinished"/> </message> <message> <location line="+47"/> <source>Modify configuration options for Computercoin</source> <translation type="unfinished"/> </message> <message> <location line="+18"/> <source>Export the data in the current tab to a file</source> <translation type="unfinished"/> </message> <message> <location line="-14"/> <source>Encrypt or decrypt wallet</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Backup wallet to another location</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Change the passphrase used for wallet encryption</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>&amp;Debug window</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Open debugging and diagnostic console</source> <translation type="unfinished"/> </message> <message> <location line="-5"/> <source>&amp;Verify message...</source> <translation type="unfinished"/> </message> <message> <location line="-202"/> <source>Computercoin</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>Wallet</source> <translation type="unfinished"/> </message> <message> <location line="+180"/> <source>&amp;About Computercoin</source> <translation type="unfinished"/> </message> <message> <location line="+9"/> <source>&amp;Show / Hide</source> <translation type="unfinished"/> </message> <message> <location line="+9"/> <source>Unlock wallet</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>&amp;Lock Wallet</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Lock wallet</source> <translation type="unfinished"/> </message> <message> <location line="+35"/> <source>&amp;File</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>&amp;Settings</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>&amp;Help</source> <translation type="unfinished"/> </message> <message> <location line="+12"/> <source>Tabs toolbar</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>Actions toolbar</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <location line="+9"/> <source>[testnet]</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <location line="+60"/> <source>Computercoin client</source> <translation type="unfinished"/> </message> <message numerus="yes"> <location line="+75"/> <source>%n active connection(s) to Computercoin network</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+40"/> <source>Downloaded %1 blocks of transaction history.</source> <translation type="unfinished"/> </message> <message> <location line="+413"/> <source>Staking.&lt;br&gt;Your weight is %1&lt;br&gt;Network weight is %2&lt;br&gt;Expected time to earn reward is %3</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>Not staking because wallet is locked</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Not staking because wallet is offline</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Not staking because wallet is syncing</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Not staking because you don&apos;t have mature coins</source> <translation type="unfinished"/> </message> <message numerus="yes"> <location line="-403"/> <source>%n second(s) ago</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="-312"/> <source>About Computercoin card</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Show information about Computercoin card</source> <translation type="unfinished"/> </message> <message> <location line="+18"/> <source>&amp;Unlock Wallet...</source> <translation type="unfinished"/> </message> <message numerus="yes"> <location line="+297"/> <source>%n minute(s) ago</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message numerus="yes"> <location line="+4"/> <source>%n hour(s) ago</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message numerus="yes"> <location line="+4"/> <source>%n day(s) ago</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+6"/> <source>Up to date</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Catching up...</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>Last received block was generated %1.</source> <translation type="unfinished"/> </message> <message> <location line="+59"/> <source>This transaction is over the size limit. You can still send it for a fee of %1, which goes to the nodes that process your transaction and helps to support the network. Do you want to pay the fee?</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Confirm transaction fee</source> <translation type="unfinished"/> </message> <message> <location line="+27"/> <source>Sent transaction</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Incoming transaction</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Date: %1 Amount: %2 Type: %3 Address: %4 </source> <translation type="unfinished"/> </message> <message> <location line="+100"/> <location line="+15"/> <source>URI handling</source> <translation type="unfinished"/> </message> <message> <location line="-15"/> <location line="+15"/> <source>URI can not be parsed! This can be caused by an invalid Computercoin address or malformed URI parameters.</source> <translation type="unfinished"/> </message> <message> <location line="+18"/> <source>Wallet is &lt;b&gt;encrypted&lt;/b&gt; and currently &lt;b&gt;unlocked&lt;/b&gt;</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>Wallet is &lt;b&gt;encrypted&lt;/b&gt; and currently &lt;b&gt;locked&lt;/b&gt;</source> <translation type="unfinished"/> </message> <message> <location line="+25"/> <source>Backup Wallet</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>Wallet Data (*.dat)</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Backup Failed</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>There was an error trying to save the wallet data to the new location.</source> <translation type="unfinished"/> </message> <message numerus="yes"> <location line="+76"/> <source>%n second(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message numerus="yes"> <location line="+4"/> <source>%n minute(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message numerus="yes"> <location line="+4"/> <source>%n hour(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message numerus="yes"> <location line="+4"/> <source>%n day(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+18"/> <source>Not staking</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoin.cpp" line="+109"/> <source>A fatal error occurred. Computercoin can no longer continue safely and will quit.</source> <translation type="unfinished"/> </message> </context> <context> <name>ClientModel</name> <message> <location filename="../clientmodel.cpp" line="+90"/> <source>Network Alert</source> <translation type="unfinished"/> </message> </context> <context> <name>CoinControlDialog</name> <message> <location filename="../forms/coincontroldialog.ui" line="+14"/> <source>Coin Control</source> <translation type="unfinished"/> </message> <message> <location line="+31"/> <source>Quantity:</source> <translation type="unfinished"/> </message> <message> <location line="+32"/> <source>Bytes:</source> <translation type="unfinished"/> </message> <message> <location line="+48"/> <source>Amount:</source> <translation type="unfinished"/> </message> <message> <location line="+32"/> <source>Priority:</source> <translation type="unfinished"/> </message> <message> <location line="+48"/> <source>Fee:</source> <translation type="unfinished"/> </message> <message> <location line="+35"/> <source>Low Output:</source> <translation type="unfinished"/> </message> <message> <location filename="../coincontroldialog.cpp" line="+551"/> <source>no</source> <translation type="unfinished"/> </message> <message> <location filename="../forms/coincontroldialog.ui" line="+51"/> <source>After Fee:</source> <translation type="unfinished"/> </message> <message> <location line="+35"/> <source>Change:</source> <translation type="unfinished"/> </message> <message> <location line="+69"/> <source>(un)select all</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>Tree mode</source> <translation type="unfinished"/> </message> <message> <location line="+16"/> <source>List mode</source> <translation type="unfinished"/> </message> <message> <location line="+45"/> <source>Amount</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Label</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Address</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Date</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Confirmations</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Confirmed</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Priority</source> <translation type="unfinished"/> </message> <message> <location filename="../coincontroldialog.cpp" line="-515"/> <source>Copy address</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy label</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <location line="+26"/> <source>Copy amount</source> <translation type="unfinished"/> </message> <message> <location line="-25"/> <source>Copy transaction ID</source> <translation type="unfinished"/> </message> <message> <location line="+24"/> <source>Copy quantity</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Copy fee</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy after fee</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy bytes</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy priority</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy low output</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy change</source> <translation type="unfinished"/> </message> <message> <location line="+317"/> <source>highest</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>high</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>medium-high</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>medium</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>low-medium</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>low</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>lowest</source> <translation type="unfinished"/> </message> <message> <location line="+155"/> <source>DUST</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>yes</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>This label turns red, if the transaction size is bigger than 10000 bytes. This means a fee of at least %1 per kb is required. Can vary +/- 1 Byte per input.</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Transactions with higher priority get more likely into a block. This label turns red, if the priority is smaller than &quot;medium&quot;. This means a fee of at least %1 per kb is required.</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>This label turns red, if any recipient receives an amount smaller than %1. This means a fee of at least %2 is required. Amounts below 0.546 times the minimum relay fee are shown as DUST.</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>This label turns red, if the change is smaller than %1. This means a fee of at least %2 is required.</source> <translation type="unfinished"/> </message> <message> <location line="+37"/> <location line="+66"/> <source>(no label)</source> <translation type="unfinished"/> </message> <message> <location line="-9"/> <source>change from %1 (%2)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>(change)</source> <translation type="unfinished"/> </message> </context> <context> <name>EditAddressDialog</name> <message> <location filename="../forms/editaddressdialog.ui" line="+14"/> <source>Edit Address</source> <translation type="unfinished"/> </message> <message> <location line="+11"/> <source>&amp;Label</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>The label associated with this address book entry</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>&amp;Address</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>The address associated with this address book entry. This can only be modified for sending addresses.</source> <translation type="unfinished"/> </message> <message> <location filename="../editaddressdialog.cpp" line="+20"/> <source>New receiving address</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>New sending address</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Edit receiving address</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Edit sending address</source> <translation type="unfinished"/> </message> <message> <location line="+76"/> <source>The entered address &quot;%1&quot; is already in the address book.</source> <translation type="unfinished"/> </message> <message> <location line="-5"/> <source>The entered address &quot;%1&quot; is not a valid Computercoin address.</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>Could not unlock wallet.</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>New key generation failed.</source> <translation type="unfinished"/> </message> </context> <context> <name>GUIUtil::HelpMessageBox</name> <message> <location filename="../guiutil.cpp" line="+420"/> <location line="+12"/> <source>Computercoin-Qt</source> <translation type="unfinished"/> </message> <message> <location line="-12"/> <source>version</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Usage:</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>command-line options</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>UI options</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Set language, for example &quot;de_DE&quot; (default: system locale)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Start minimized</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Show splash screen on startup (default: 1)</source> <translation type="unfinished"/> </message> </context> <context> <name>OptionsDialog</name> <message> <location filename="../forms/optionsdialog.ui" line="+14"/> <source>Options</source> <translation type="unfinished"/> </message> <message> <location line="+16"/> <source>&amp;Main</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>Optional transaction fee per kB that helps make sure your transactions are processed quickly. Most transactions are 1 kB. Fee 0.01 recommended.</source> <translation type="unfinished"/> </message> <message> <location line="+15"/> <source>Pay transaction &amp;fee</source> <translation type="unfinished"/> </message> <message> <location line="+31"/> <source>Reserved amount does not participate in staking and is therefore spendable at any time.</source> <translation type="unfinished"/> </message> <message> <location line="+15"/> <source>Reserve</source> <translation type="unfinished"/> </message> <message> <location line="+31"/> <source>Automatically start Computercoin after logging in to the system.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Start Computercoin on system login</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Detach block and address databases at shutdown. This means they can be moved to another data directory, but it slows down shutdown. The wallet is always detached.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Detach databases at shutdown</source> <translation type="unfinished"/> </message> <message> <location line="+21"/> <source>&amp;Network</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>Automatically open the Computercoin client port on the router. This only works when your router supports UPnP and it is enabled.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Map port using &amp;UPnP</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Connect to the Computercoin network through a SOCKS proxy (e.g. when connecting through Tor).</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Connect through SOCKS proxy:</source> <translation type="unfinished"/> </message> <message> <location line="+9"/> <source>Proxy &amp;IP:</source> <translation type="unfinished"/> </message> <message> <location line="+19"/> <source>IP address of the proxy (e.g. 127.0.0.1)</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>&amp;Port:</source> <translation type="unfinished"/> </message> <message> <location line="+19"/> <source>Port of the proxy (e.g. 9050)</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>SOCKS &amp;Version:</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>SOCKS version of the proxy (e.g. 5)</source> <translation type="unfinished"/> </message> <message> <location line="+36"/> <source>&amp;Window</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>Show only a tray icon after minimizing the window.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Minimize to the tray instead of the taskbar</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Minimize instead of exit the application when the window is closed. When this option is enabled, the application will be closed only after selecting Quit in the menu.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>M&amp;inimize on close</source> <translation type="unfinished"/> </message> <message> <location line="+21"/> <source>&amp;Display</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>User Interface &amp;language:</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>The user interface language can be set here. This setting will take effect after restarting Computercoin.</source> <translation type="unfinished"/> </message> <message> <location line="+11"/> <source>&amp;Unit to show amounts in:</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>Choose the default subdivision unit to show in the interface and when sending coins.</source> <translation type="unfinished"/> </message> <message> <location line="+9"/> <source>Whether to show Computercoin addresses in the transaction list or not.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Display addresses in transaction list</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Whether to show coin control features or not.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Display coin &amp;control features (experts only!)</source> <translation type="unfinished"/> </message> <message> <location line="+71"/> <source>&amp;OK</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>&amp;Cancel</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>&amp;Apply</source> <translation type="unfinished"/> </message> <message> <location filename="../optionsdialog.cpp" line="+55"/> <source>default</source> <translation type="unfinished"/> </message> <message> <location line="+149"/> <location line="+9"/> <source>Warning</source> <translation type="unfinished"/> </message> <message> <location line="-9"/> <location line="+9"/> <source>This setting will take effect after restarting Computercoin.</source> <translation type="unfinished"/> </message> <message> <location line="+29"/> <source>The supplied proxy address is invalid.</source> <translation type="unfinished"/> </message> </context> <context> <name>OverviewPage</name> <message> <location filename="../forms/overviewpage.ui" line="+14"/> <source>Form</source> <translation type="unfinished"/> </message> <message> <location line="+33"/> <location line="+231"/> <source>The displayed information may be out of date. Your wallet automatically synchronizes with the Computercoin network after a connection is established, but this process has not completed yet.</source> <translation type="unfinished"/> </message> <message> <location line="-160"/> <source>Stake:</source> <translation type="unfinished"/> </message> <message> <location line="+29"/> <source>Unconfirmed:</source> <translation type="unfinished"/> </message> <message> <location line="-107"/> <source>Wallet</source> <translation type="unfinished"/> </message> <message> <location line="+49"/> <source>Spendable:</source> <translation type="unfinished"/> </message> <message> <location line="+16"/> <source>Your current spendable balance</source> <translation type="unfinished"/> </message> <message> <location line="+71"/> <source>Immature:</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>Mined balance that has not yet matured</source> <translation type="unfinished"/> </message> <message> <location line="+20"/> <source>Total:</source> <translation type="unfinished"/> </message> <message> <location line="+16"/> <source>Your current total balance</source> <translation type="unfinished"/> </message> <message> <location line="+46"/> <source>&lt;b&gt;Recent transactions&lt;/b&gt;</source> <translation type="unfinished"/> </message> <message> <location line="-108"/> <source>Total of transactions that have yet to be confirmed, and do not yet count toward the current balance</source> <translation type="unfinished"/> </message> <message> <location line="-29"/> <source>Total of coins that was staked, and do not yet count toward the current balance</source> <translation type="unfinished"/> </message> <message> <location filename="../overviewpage.cpp" line="+113"/> <location line="+1"/> <source>out of sync</source> <translation type="unfinished"/> </message> </context> <context> <name>QRCodeDialog</name> <message> <location filename="../forms/qrcodedialog.ui" line="+14"/> <source>QR Code Dialog</source> <translation type="unfinished"/> </message> <message> <location line="+59"/> <source>Request Payment</source> <translation type="unfinished"/> </message> <message> <location line="+56"/> <source>Amount:</source> <translation type="unfinished"/> </message> <message> <location line="-44"/> <source>Label:</source> <translation type="unfinished"/> </message> <message> <location line="+19"/> <source>Message:</source> <translation type="unfinished"/> </message> <message> <location line="+71"/> <source>&amp;Save As...</source> <translation type="unfinished"/> </message> <message> <location filename="../qrcodedialog.cpp" line="+62"/> <source>Error encoding URI into QR Code.</source> <translation type="unfinished"/> </message> <message> <location line="+40"/> <source>The entered amount is invalid, please check.</source> <translation type="unfinished"/> </message> <message> <location line="+23"/> <source>Resulting URI too long, try to reduce the text for label / message.</source> <translation type="unfinished"/> </message> <message> <location line="+25"/> <source>Save QR Code</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>PNG Images (*.png)</source> <translation type="unfinished"/> </message> </context> <context> <name>RPCConsole</name> <message> <location filename="../forms/rpcconsole.ui" line="+46"/> <source>Client name</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <location line="+23"/> <location line="+26"/> <location line="+23"/> <location line="+23"/> <location line="+36"/> <location line="+53"/> <location line="+23"/> <location line="+23"/> <location filename="../rpcconsole.cpp" line="+348"/> <source>N/A</source> <translation type="unfinished"/> </message> <message> <location line="-217"/> <source>Client version</source> <translation type="unfinished"/> </message> <message> <location line="-45"/> <source>&amp;Information</source> <translation type="unfinished"/> </message> <message> <location line="+68"/> <source>Using OpenSSL version</source> <translation type="unfinished"/> </message> <message> <location line="+49"/> <source>Startup time</source> <translation type="unfinished"/> </message> <message> <location line="+29"/> <source>Network</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Number of connections</source> <translation type="unfinished"/> </message> <message> <location line="+23"/> <source>On testnet</source> <translation type="unfinished"/> </message> <message> <location line="+23"/> <source>Block chain</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Current number of blocks</source> <translation type="unfinished"/> </message> <message> <location line="+23"/> <source>Estimated total blocks</source> <translation type="unfinished"/> </message> <message> <location line="+23"/> <source>Last block time</source> <translation type="unfinished"/> </message> <message> <location line="+52"/> <source>&amp;Open</source> <translation type="unfinished"/> </message> <message> <location line="+16"/> <source>Command-line options</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Show the Computercoin-Qt help message to get a list with possible Computercoin command-line options.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Show</source> <translation type="unfinished"/> </message> <message> <location line="+24"/> <source>&amp;Console</source> <translation type="unfinished"/> </message> <message> <location line="-260"/> <source>Build date</source> <translation type="unfinished"/> </message> <message> <location line="-104"/> <source>Computercoin - Debug window</source> <translation type="unfinished"/> </message> <message> <location line="+25"/> <source>Computercoin Core</source> <translation type="unfinished"/> </message> <message> <location line="+279"/> <source>Debug log file</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Open the Computercoin debug log file from the current data directory. This can take a few seconds for large log files.</source> <translation type="unfinished"/> </message> <message> <location line="+102"/> <source>Clear console</source> <translation type="unfinished"/> </message> <message> <location filename="../rpcconsole.cpp" line="-33"/> <source>Welcome to the Computercoin RPC console.</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Use up and down arrows to navigate history, and &lt;b&gt;Ctrl-L&lt;/b&gt; to clear screen.</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Type &lt;b&gt;help&lt;/b&gt; for an overview of available commands.</source> <translation type="unfinished"/> </message> </context> <context> <name>SendCoinsDialog</name> <message> <location filename="../forms/sendcoinsdialog.ui" line="+14"/> <location filename="../sendcoinsdialog.cpp" line="+182"/> <location line="+5"/> <location line="+5"/> <location line="+5"/> <location line="+6"/> <location line="+5"/> <location line="+5"/> <source>Send Coins</source> <translation type="unfinished"/> </message> <message> <location line="+76"/> <source>Coin Control Features</source> <translation type="unfinished"/> </message> <message> <location line="+20"/> <source>Inputs...</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>automatically selected</source> <translation type="unfinished"/> </message> <message> <location line="+19"/> <source>Insufficient funds!</source> <translation type="unfinished"/> </message> <message> <location line="+77"/> <source>Quantity:</source> <translation type="unfinished"/> </message> <message> <location line="+22"/> <location line="+35"/> <source>0</source> <translation type="unfinished"/> </message> <message> <location line="-19"/> <source>Bytes:</source> <translation type="unfinished"/> </message> <message> <location line="+51"/> <source>Amount:</source> <translation type="unfinished"/> </message> <message> <location line="+22"/> <location line="+86"/> <location line="+86"/> <location line="+32"/> <source>0.00 BOST</source> <translation type="unfinished"/> </message> <message> <location line="-191"/> <source>Priority:</source> <translation type="unfinished"/> </message> <message> <location line="+19"/> <source>medium</source> <translation type="unfinished"/> </message> <message> <location line="+32"/> <source>Fee:</source> <translation type="unfinished"/> </message> <message> <location line="+35"/> <source>Low Output:</source> <translation type="unfinished"/> </message> <message> <location line="+19"/> <source>no</source> <translation type="unfinished"/> </message> <message> <location line="+32"/> <source>After Fee:</source> <translation type="unfinished"/> </message> <message> <location line="+35"/> <source>Change</source> <translation type="unfinished"/> </message> <message> <location line="+50"/> <source>custom change address</source> <translation type="unfinished"/> </message> <message> <location line="+106"/> <source>Send to multiple recipients at once</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Add &amp;Recipient</source> <translation type="unfinished"/> </message> <message> <location line="+20"/> <source>Remove all transaction fields</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Clear &amp;All</source> <translation type="unfinished"/> </message> <message> <location line="+28"/> <source>Balance:</source> <translation type="unfinished"/> </message> <message> <location line="+16"/> <source>123.456 BOST</source> <translation type="unfinished"/> </message> <message> <location line="+31"/> <source>Confirm the send action</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>S&amp;end</source> <translation type="unfinished"/> </message> <message> <location filename="../sendcoinsdialog.cpp" line="-173"/> <source>Enter a Computercoin address (e.g. Sjz75uKHzUQJnSdzvpiigEGxseKkDhQToX)</source> <translation type="unfinished"/> </message> <message> <location line="+15"/> <source>Copy quantity</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy amount</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy fee</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy after fee</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy bytes</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy priority</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy low output</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy change</source> <translation type="unfinished"/> </message> <message> <location line="+86"/> <source>&lt;b&gt;%1&lt;/b&gt; to %2 (%3)</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Confirm send coins</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Are you sure you want to send %1?</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source> and </source> <translation type="unfinished"/> </message> <message> <location line="+29"/> <source>The recipient address is not valid, please recheck.</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>The amount to pay must be larger than 0.</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>The amount exceeds your balance.</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>The total exceeds your balance when the %1 transaction fee is included.</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>Duplicate address found, can only send to each address once per send operation.</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Error: Transaction creation failed.</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Error: The transaction was rejected. This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source> <translation type="unfinished"/> </message> <message> <location line="+251"/> <source>WARNING: Invalid Computercoin address</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>(no label)</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>WARNING: unknown change address</source> <translation type="unfinished"/> </message> </context> <context> <name>SendCoinsEntry</name> <message> <location filename="../forms/sendcoinsentry.ui" line="+14"/> <source>Form</source> <translation type="unfinished"/> </message> <message> <location line="+15"/> <source>A&amp;mount:</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>Pay &amp;To:</source> <translation type="unfinished"/> </message> <message> <location line="+24"/> <location filename="../sendcoinsentry.cpp" line="+25"/> <source>Enter a label for this address to add it to your address book</source> <translation type="unfinished"/> </message> <message> <location line="+9"/> <source>&amp;Label:</source> <translation type="unfinished"/> </message> <message> <location line="+18"/> <source>The address to send the payment to (e.g. Sjz75uKHzUQJnSdzvpiigEGxseKkDhQToX)</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>Choose address from address book</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>Alt+A</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Paste address from clipboard</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>Alt+P</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Remove this recipient</source> <translation type="unfinished"/> </message> <message> <location filename="../sendcoinsentry.cpp" line="+1"/> <source>Enter a Computercoin address (e.g. Sjz75uKHzUQJnSdzvpiigEGxseKkDhQToX)</source> <translation type="unfinished"/> </message> </context> <context> <name>SignVerifyMessageDialog</name> <message> <location filename="../forms/signverifymessagedialog.ui" line="+14"/> <source>Signatures - Sign / Verify a Message</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <location line="+124"/> <source>&amp;Sign Message</source> <translation type="unfinished"/> </message> <message> <location line="-118"/> <source>You can sign messages with your addresses to prove you own them. Be careful not to sign anything vague, as phishing attacks may try to trick you into signing your identity over to them. Only sign fully-detailed statements you agree to.</source> <translation type="unfinished"/> </message> <message> <location line="+18"/> <source>The address to sign the message with (e.g. Sjz75uKHzUQJnSdzvpiigEGxseKkDhQToX)</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <location line="+203"/> <source>Choose an address from the address book</source> <translation type="unfinished"/> </message> <message> <location line="-193"/> <location line="+203"/> <source>Alt+A</source> <translation type="unfinished"/> </message> <message> <location line="-193"/> <source>Paste address from clipboard</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>Alt+P</source> <translation type="unfinished"/> </message> <message> <location line="+12"/> <source>Enter the message you want to sign here</source> <translation type="unfinished"/> </message> <message> <location line="+24"/> <source>Copy the current signature to the system clipboard</source> <translation type="unfinished"/> </message> <message> <location line="+21"/> <source>Sign the message to prove you own this Computercoin address</source> <translation type="unfinished"/> </message> <message> <location line="+17"/> <source>Reset all sign message fields</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <location line="+146"/> <source>Clear &amp;All</source> <translation type="unfinished"/> </message> <message> <location line="-87"/> <location line="+70"/> <source>&amp;Verify Message</source> <translation type="unfinished"/> </message> <message> <location line="-64"/> <source>Enter the signing address, message (ensure you copy line breaks, spaces, tabs, etc. exactly) and signature below to verify the message. Be careful not to read more into the signature than what is in the signed message itself, to avoid being tricked by a man-in-the-middle attack.</source> <translation type="unfinished"/> </message> <message> <location line="+21"/> <source>The address the message was signed with (e.g. Sjz75uKHzUQJnSdzvpiigEGxseKkDhQToX)</source> <translation type="unfinished"/> </message> <message> <location line="+40"/> <source>Verify the message to ensure it was signed with the specified Computercoin address</source> <translation type="unfinished"/> </message> <message> <location line="+17"/> <source>Reset all verify message fields</source> <translation type="unfinished"/> </message> <message> <location filename="../signverifymessagedialog.cpp" line="+27"/> <location line="+3"/> <source>Enter a Computercoin address (e.g. Sjz75uKHzUQJnSdzvpiigEGxseKkDhQToX)</source> <translation type="unfinished"/> </message> <message> <location line="-2"/> <source>Click &quot;Sign Message&quot; to generate signature</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Enter Computercoin signature</source> <translation type="unfinished"/> </message> <message> <location line="+82"/> <location line="+81"/> <source>The entered address is invalid.</source> <translation type="unfinished"/> </message> <message> <location line="-81"/> <location line="+8"/> <location line="+73"/> <location line="+8"/> <source>Please check the address and try again.</source> <translation type="unfinished"/> </message> <message> <location line="-81"/> <location line="+81"/> <source>The entered address does not refer to a key.</source> <translation type="unfinished"/> </message> <message> <location line="-73"/> <source>Wallet unlock was cancelled.</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>Private key for the entered address is not available.</source> <translation type="unfinished"/> </message> <message> <location line="+12"/> <source>Message signing failed.</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Message signed.</source> <translation type="unfinished"/> </message> <message> <location line="+59"/> <source>The signature could not be decoded.</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <location line="+13"/> <source>Please check the signature and try again.</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>The signature did not match the message digest.</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Message verification failed.</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Message verified.</source> <translation type="unfinished"/> </message> </context> <context> <name>TransactionDesc</name> <message> <location filename="../transactiondesc.cpp" line="+19"/> <source>Open until %1</source> <translation type="unfinished"/> </message> <message numerus="yes"> <location line="-2"/> <source>Open for %n block(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+8"/> <source>conflicted</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>%1/offline</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>%1/unconfirmed</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>%1 confirmations</source> <translation type="unfinished"/> </message> <message> <location line="+18"/> <source>Status</source> <translation type="unfinished"/> </message> <message numerus="yes"> <location line="+7"/> <source>, broadcast through %n node(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+4"/> <source>Date</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Source</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>Generated</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <location line="+17"/> <source>From</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <location line="+22"/> <location line="+58"/> <source>To</source> <translation type="unfinished"/> </message> <message> <location line="-77"/> <location line="+2"/> <source>own address</source> <translation type="unfinished"/> </message> <message> <location line="-2"/> <source>label</source> <translation type="unfinished"/> </message> <message> <location line="+37"/> <location line="+12"/> <location line="+45"/> <location line="+17"/> <location line="+30"/> <source>Credit</source> <translation type="unfinished"/> </message> <message numerus="yes"> <location line="-102"/> <source>matures in %n more block(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+2"/> <source>not accepted</source> <translation type="unfinished"/> </message> <message> <location line="+44"/> <location line="+8"/> <location line="+15"/> <location line="+30"/> <source>Debit</source> <translation type="unfinished"/> </message> <message> <location line="-39"/> <source>Transaction fee</source> <translation type="unfinished"/> </message> <message> <location line="+16"/> <source>Net amount</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>Message</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Comment</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Transaction ID</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Generated coins must mature 120 blocks before they can be spent. When you generated this block, it was broadcast to the network to be added to the block chain. If it fails to get into the chain, its state will change to &quot;not accepted&quot; and it won&apos;t be spendable. This may occasionally happen if another node generates a block within a few seconds of yours.</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Debug information</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>Transaction</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Inputs</source> <translation type="unfinished"/> </message> <message> <location line="+23"/> <source>Amount</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>true</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>false</source> <translation type="unfinished"/> </message> <message> <location line="-211"/> <source>, has not been successfully broadcast yet</source> <translation type="unfinished"/> </message> <message> <location line="+35"/> <source>unknown</source> <translation type="unfinished"/> </message> </context> <context> <name>TransactionDescDialog</name> <message> <location filename="../forms/transactiondescdialog.ui" line="+14"/> <source>Transaction details</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>This pane shows a detailed description of the transaction</source> <translation type="unfinished"/> </message> </context> <context> <name>TransactionTableModel</name> <message> <location filename="../transactiontablemodel.cpp" line="+226"/> <source>Date</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>Type</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>Address</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>Amount</source> <translation type="unfinished"/> </message> <message> <location line="+60"/> <source>Open until %1</source> <translation type="unfinished"/> </message> <message> <location line="+12"/> <source>Confirmed (%1 confirmations)</source> <translation type="unfinished"/> </message> <message numerus="yes"> <location line="-15"/> <source>Open for %n more block(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+6"/> <source>Offline</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Unconfirmed</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Confirming (%1 of %2 recommended confirmations)</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>Conflicted</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Immature (%1 confirmations, will be available after %2)</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>This block was not received by any other nodes and will probably not be accepted!</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Generated but not accepted</source> <translation type="unfinished"/> </message> <message> <location line="+42"/> <source>Received with</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Received from</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Sent to</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Payment to yourself</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Mined</source> <translation type="unfinished"/> </message> <message> <location line="+38"/> <source>(n/a)</source> <translation type="unfinished"/> </message> <message> <location line="+190"/> <source>Transaction status. Hover over this field to show number of confirmations.</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Date and time that the transaction was received.</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Type of transaction.</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Destination address of transaction.</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Amount removed from or added to balance.</source> <translation type="unfinished"/> </message> </context> <context> <name>TransactionView</name> <message> <location filename="../transactionview.cpp" line="+55"/> <location line="+16"/> <source>All</source> <translation type="unfinished"/> </message> <message> <location line="-15"/> <source>Today</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>This week</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>This month</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Last month</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>This year</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Range...</source> <translation type="unfinished"/> </message> <message> <location line="+11"/> <source>Received with</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Sent to</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>To yourself</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Mined</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Other</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Enter address or label to search</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Min amount</source> <translation type="unfinished"/> </message> <message> <location line="+34"/> <source>Copy address</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy label</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy amount</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Copy transaction ID</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Edit label</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Show transaction details</source> <translation type="unfinished"/> </message> <message> <location line="+144"/> <source>Export Transaction Data</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Comma separated file (*.csv)</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>Confirmed</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Date</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Type</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Label</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Address</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Amount</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>ID</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Error exporting</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>Could not write to file %1.</source> <translation type="unfinished"/> </message> <message> <location line="+100"/> <source>Range:</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>to</source> <translation type="unfinished"/> </message> </context> <context> <name>WalletModel</name> <message> <location filename="../walletmodel.cpp" line="+206"/> <source>Sending...</source> <translation type="unfinished"/> </message> </context> <context> <name>bitcoin-core</name> <message> <location filename="../bitcoinstrings.cpp" line="+33"/> <source>Computercoin version</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Usage:</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Send command to -server or Computercoind</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>List commands</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Get help for a command</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Options:</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Specify configuration file (default: Computercoin.conf)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Specify pid file (default: Computercoind.pid)</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Specify wallet file (within data directory)</source> <translation type="unfinished"/> </message> <message> <location line="-1"/> <source>Specify data directory</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Set database cache size in megabytes (default: 25)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Set database disk log size in megabytes (default: 100)</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>Listen for connections on &lt;port&gt; (default: 15714 or testnet: 25714)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Maintain at most &lt;n&gt; connections to peers (default: 125)</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Connect to a node to retrieve peer addresses, and disconnect</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Specify your own public address</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Bind to given address. Use [host]:port notation for IPv6</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Stake your coins to support network and gain reward (default: 1)</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Threshold for disconnecting misbehaving peers (default: 100)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Number of seconds to keep misbehaving peers from reconnecting (default: 86400)</source> <translation type="unfinished"/> </message> <message> <location line="-44"/> <source>An error occurred while setting up the RPC port %u for listening on IPv4: %s</source> <translation type="unfinished"/> </message> <message> <location line="+51"/> <source>Detach block and address databases. Increases shutdown time (default: 0)</source> <translation type="unfinished"/> </message> <message> <location line="+109"/> <source>Error: The transaction was rejected. This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source> <translation type="unfinished"/> </message> <message> <location line="-5"/> <source>Error: This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds </source> <translation type="unfinished"/> </message> <message> <location line="-87"/> <source>Listen for JSON-RPC connections on &lt;port&gt; (default: 15715 or testnet: 25715)</source> <translation type="unfinished"/> </message> <message> <location line="-11"/> <source>Accept command line and JSON-RPC commands</source> <translation type="unfinished"/> </message> <message> <location line="+101"/> <source>Error: Transaction creation failed </source> <translation type="unfinished"/> </message> <message> <location line="-5"/> <source>Error: Wallet locked, unable to create transaction </source> <translation type="unfinished"/> </message> <message> <location line="-8"/> <source>Importing blockchain data file.</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Importing bootstrap blockchain data file.</source> <translation type="unfinished"/> </message> <message> <location line="-88"/> <source>Run in the background as a daemon and accept commands</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Use the test network</source> <translation type="unfinished"/> </message> <message> <location line="-24"/> <source>Accept connections from outside (default: 1 if no -proxy or -connect)</source> <translation type="unfinished"/> </message> <message> <location line="-38"/> <source>An error occurred while setting up the RPC port %u for listening on IPv6, falling back to IPv4: %s</source> <translation type="unfinished"/> </message> <message> <location line="+117"/> <source>Error initializing database environment %s! To recover, BACKUP THAT DIRECTORY, then remove everything from it except for wallet.dat.</source> <translation type="unfinished"/> </message> <message> <location line="-20"/> <source>Set maximum size of high-priority/low-fee transactions in bytes (default: 27000)</source> <translation type="unfinished"/> </message> <message> <location line="+11"/> <source>Warning: -paytxfee is set very high! This is the transaction fee you will pay if you send a transaction.</source> <translation type="unfinished"/> </message> <message> <location line="+61"/> <source>Warning: Please check that your computer&apos;s date and time are correct! If your clock is wrong Computercoin will not work properly.</source> <translation type="unfinished"/> </message> <message> <location line="-31"/> <source>Warning: error reading wallet.dat! All keys read correctly, but transaction data or address book entries might be missing or incorrect.</source> <translation type="unfinished"/> </message> <message> <location line="-18"/> <source>Warning: wallet.dat corrupt, data salvaged! Original wallet.dat saved as wallet.{timestamp}.bak in %s; if your balance or transactions are incorrect you should restore from a backup.</source> <translation type="unfinished"/> </message> <message> <location line="-30"/> <source>Attempt to recover private keys from a corrupt wallet.dat</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Block creation options:</source> <translation type="unfinished"/> </message> <message> <location line="-62"/> <source>Connect only to the specified node(s)</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Discover own IP address (default: 1 when listening and no -externalip)</source> <translation type="unfinished"/> </message> <message> <location line="+94"/> <source>Failed to listen on any port. Use -listen=0 if you want this.</source> <translation type="unfinished"/> </message> <message> <location line="-90"/> <source>Find peers using DNS lookup (default: 1)</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Sync checkpoints policy (default: strict)</source> <translation type="unfinished"/> </message> <message> <location line="+83"/> <source>Invalid -tor address: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Invalid amount for -reservebalance=&lt;amount&gt;</source> <translation type="unfinished"/> </message> <message> <location line="-82"/> <source>Maximum per-connection receive buffer, &lt;n&gt;*1000 bytes (default: 5000)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Maximum per-connection send buffer, &lt;n&gt;*1000 bytes (default: 1000)</source> <translation type="unfinished"/> </message> <message> <location line="-16"/> <source>Only connect to nodes in network &lt;net&gt; (IPv4, IPv6 or Tor)</source> <translation type="unfinished"/> </message> <message> <location line="+28"/> <source>Output extra debugging information. Implies all other -debug* options</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Output extra network debugging information</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Prepend debug output with timestamp</source> <translation type="unfinished"/> </message> <message> <location line="+35"/> <source>SSL options: (see the Bitcoin Wiki for SSL setup instructions)</source> <translation type="unfinished"/> </message> <message> <location line="-74"/> <source>Select the version of socks proxy to use (4-5, default: 5)</source> <translation type="unfinished"/> </message> <message> <location line="+41"/> <source>Send trace/debug info to console instead of debug.log file</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Send trace/debug info to debugger</source> <translation type="unfinished"/> </message> <message> <location line="+28"/> <source>Set maximum block size in bytes (default: 250000)</source> <translation type="unfinished"/> </message> <message> <location line="-1"/> <source>Set minimum block size in bytes (default: 0)</source> <translation type="unfinished"/> </message> <message> <location line="-29"/> <source>Shrink debug.log file on client startup (default: 1 when no -debug)</source> <translation type="unfinished"/> </message> <message> <location line="-42"/> <source>Specify connection timeout in milliseconds (default: 5000)</source> <translation type="unfinished"/> </message> <message> <location line="+109"/> <source>Unable to sign checkpoint, wrong checkpointkey? </source> <translation type="unfinished"/> </message> <message> <location line="-80"/> <source>Use UPnP to map the listening port (default: 0)</source> <translation type="unfinished"/> </message> <message> <location line="-1"/> <source>Use UPnP to map the listening port (default: 1 when listening)</source> <translation type="unfinished"/> </message> <message> <location line="-25"/> <source>Use proxy to reach tor hidden services (default: same as -proxy)</source> <translation type="unfinished"/> </message> <message> <location line="+42"/> <source>Username for JSON-RPC connections</source> <translation type="unfinished"/> </message> <message> <location line="+47"/> <source>Verifying database integrity...</source> <translation type="unfinished"/> </message> <message> <location line="+57"/> <source>WARNING: syncronized checkpoint violation detected, but skipped!</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Warning: Disk space is low!</source> <translation type="unfinished"/> </message> <message> <location line="-2"/> <source>Warning: This version is obsolete, upgrade required!</source> <translation type="unfinished"/> </message> <message> <location line="-48"/> <source>wallet.dat corrupt, salvage failed</source> <translation type="unfinished"/> </message> <message> <location line="-54"/> <source>Password for JSON-RPC connections</source> <translation type="unfinished"/> </message> <message> <location line="-84"/> <source>%s, you must set a rpcpassword in the configuration file: %s It is recommended you use the following random password: rpcuser=Computercoinrpc rpcpassword=%s (you do not need to remember this password) The username and password MUST NOT be the same. If the file does not exist, create it with owner-readable-only file permissions. It is also recommended to set alertnotify so you are notified of problems; for example: alertnotify=echo %%s | mail -s &quot;Computercoin Alert&quot; admin@foo.com </source> <translation type="unfinished"/> </message> <message> <location line="+51"/> <source>Find peers using internet relay chat (default: 0)</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Sync time with other nodes. Disable if time on your system is precise e.g. syncing with NTP (default: 1)</source> <translation type="unfinished"/> </message> <message> <location line="+15"/> <source>When creating transactions, ignore inputs with value less than this (default: 0.01)</source> <translation type="unfinished"/> </message> <message> <location line="+16"/> <source>Allow JSON-RPC connections from specified IP address</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Send commands to node running on &lt;ip&gt; (default: 127.0.0.1)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Execute command when the best block changes (%s in cmd is replaced by block hash)</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Execute command when a wallet transaction changes (%s in cmd is replaced by TxID)</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Require a confirmations for change (default: 0)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Enforce transaction scripts to use canonical PUSH operators (default: 1)</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Execute command when a relevant alert is received (%s in cmd is replaced by message)</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Upgrade wallet to latest format</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Set key pool size to &lt;n&gt; (default: 100)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Rescan the block chain for missing wallet transactions</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>How many blocks to check at startup (default: 2500, 0 = all)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>How thorough the block verification is (0-6, default: 1)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Imports blocks from external blk000?.dat file</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>Use OpenSSL (https) for JSON-RPC connections</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Server certificate file (default: server.cert)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Server private key (default: server.pem)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)</source> <translation type="unfinished"/> </message> <message> <location line="+53"/> <source>Error: Wallet unlocked for staking only, unable to create transaction.</source> <translation type="unfinished"/> </message> <message> <location line="+18"/> <source>WARNING: Invalid checkpoint found! Displayed transactions may not be correct! You may need to upgrade, or notify developers.</source> <translation type="unfinished"/> </message> <message> <location line="-158"/> <source>This help message</source> <translation type="unfinished"/> </message> <message> <location line="+95"/> <source>Wallet %s resides outside data directory %s.</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Cannot obtain a lock on data directory %s. Computercoin is probably already running.</source> <translation type="unfinished"/> </message> <message> <location line="-98"/> <source>Computercoin</source> <translation type="unfinished"/> </message> <message> <location line="+140"/> <source>Unable to bind to %s on this computer (bind returned error %d, %s)</source> <translation type="unfinished"/> </message> <message> <location line="-130"/> <source>Connect through socks proxy</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Allow DNS lookups for -addnode, -seednode and -connect</source> <translation type="unfinished"/> </message> <message> <location line="+122"/> <source>Loading addresses...</source> <translation type="unfinished"/> </message> <message> <location line="-15"/> <source>Error loading blkindex.dat</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Error loading wallet.dat: Wallet corrupted</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Error loading wallet.dat: Wallet requires newer version of Computercoin</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Wallet needed to be rewritten: restart Computercoin to complete</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Error loading wallet.dat</source> <translation type="unfinished"/> </message> <message> <location line="-16"/> <source>Invalid -proxy address: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="-1"/> <source>Unknown network specified in -onlynet: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="-1"/> <source>Unknown -socks proxy version requested: %i</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Cannot resolve -bind address: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Cannot resolve -externalip address: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="-24"/> <source>Invalid amount for -paytxfee=&lt;amount&gt;: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+44"/> <source>Error: could not start node</source> <translation type="unfinished"/> </message> <message> <location line="+11"/> <source>Sending...</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Invalid amount</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Insufficient funds</source> <translation type="unfinished"/> </message> <message> <location line="-34"/> <source>Loading block index...</source> <translation type="unfinished"/> </message> <message> <location line="-103"/> <source>Add a node to connect to and attempt to keep the connection open</source> <translation type="unfinished"/> </message> <message> <location line="+122"/> <source>Unable to bind to %s on this computer. Computercoin is probably already running.</source> <translation type="unfinished"/> </message> <message> <location line="-97"/> <source>Fee per KB to add to transactions you send</source> <translation type="unfinished"/> </message> <message> <location line="+55"/> <source>Invalid amount for -mininput=&lt;amount&gt;: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+25"/> <source>Loading wallet...</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>Cannot downgrade wallet</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Cannot initialize keypool</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Cannot write default address</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Rescanning...</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Done loading</source> <translation type="unfinished"/> </message> <message> <location line="-167"/> <source>To use the %s option</source> <translation type="unfinished"/> </message> <message> <location line="+14"/> <source>Error</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>You must set rpcpassword=&lt;password&gt; in the configuration file: %s If the file does not exist, create it with owner-readable-only file permissions.</source> <translation type="unfinished"/> </message> </context> </TS>
{ "content_hash": "e3549942fa682e4b83b8435c95d74fec", "timestamp": "", "source": "github", "line_count": 3285, "max_line_length": 395, "avg_line_length": 32.84261796042618, "alnum_prop": 0.5841150081566069, "repo_name": "computercoin/CMPT", "id": "da64de77eba0690c5d8c716d23d2c4afd70ad547", "size": "107892", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/qt/locale/bitcoin_ca@valencia.ts", "mode": "33188", "license": "mit", "language": [ { "name": "Assembly", "bytes": "51312" }, { "name": "C", "bytes": "3074333" }, { "name": "C++", "bytes": "3387754" }, { "name": "CSS", "bytes": "1127" }, { "name": "Objective-C++", "bytes": "3537" }, { "name": "Python", "bytes": "11646" }, { "name": "Shell", "bytes": "1026" }, { "name": "TypeScript", "bytes": "7526441" } ], "symlink_target": "" }
using System; using System.Collections.Generic; using System.IO; using System.Text; namespace Mastersign.Bench { public class AppIndexDefaultValueSource : IGroupedPropertySource { public IGroupedPropertySource AppIndex { get; set; } public AppIndexDefaultValueSource() { } public AppIndexDefaultValueSource(IGroupedPropertySource appIndex) { AppIndex = appIndex; } public object GetGroupValue(string appName, string key) { string appTyp; switch (key) { case PropertyKeys.AppTyp: return AppTyps.Default; case PropertyKeys.AppArchiveTyp: return AppArchiveTyps.Auto; case PropertyKeys.AppPackageName: return appName.ToLowerInvariant(); case PropertyKeys.AppDir: appTyp = AppIndex.GetGroupValue(appName, PropertyKeys.AppTyp) as string; switch (appTyp) { case AppTyps.NodePackage: return AppIndex.GetGroupValue(AppKeys.Npm, PropertyKeys.AppDir); case AppTyps.RubyPackage: return AppIndex.GetGroupValue(AppKeys.Ruby, PropertyKeys.AppDir); case AppTyps.Python2Package: return AppIndex.GetGroupValue(AppKeys.Python2, PropertyKeys.AppDir); case AppTyps.Python3Package: return AppIndex.GetGroupValue(AppKeys.Python3, PropertyKeys.AppDir); case AppTyps.Meta: return null; default: return appName.ToLowerInvariant(); } case PropertyKeys.AppPath: appTyp = AppIndex.GetGroupValue(appName, PropertyKeys.AppTyp) as string; switch (appTyp) { case AppTyps.NodePackage: return AppIndex.GetGroupValue(AppKeys.Npm, PropertyKeys.AppPath); case AppTyps.RubyPackage: return AppIndex.GetGroupValue(AppKeys.Ruby, PropertyKeys.AppPath); case AppTyps.Python2Package: return Path.Combine( AppIndex.GetGroupValue(AppKeys.Python2, PropertyKeys.AppDir) as string, "Scripts"); case AppTyps.Python3Package: return Path.Combine( AppIndex.GetGroupValue(AppKeys.Python3, PropertyKeys.AppDir) as string, "Scripts"); default: return AppIndex.GetGroupValue(appName, PropertyKeys.AppDir); } case PropertyKeys.AppExe: appTyp = AppIndex.GetGroupValue(appName, PropertyKeys.AppTyp) as string; if (appTyp == AppTyps.Default) { return Path.Combine( AppIndex.GetGroupValue(appName, PropertyKeys.AppDir) as string, appName.ToLowerInvariant() + ".exe"); } return null; case PropertyKeys.AppRegister: return true; case PropertyKeys.AppLauncherExecutable: return AppIndex.GetGroupValue(appName, PropertyKeys.AppExe); case PropertyKeys.AppLauncherArguments: return new[] { "%*" }; case PropertyKeys.AppLauncherIcon: return AppIndex.GetGroupValue(appName, PropertyKeys.AppLauncherExecutable); case PropertyKeys.AppSetupTestFile: return AppIndex.GetGroupValue(appName, PropertyKeys.AppExe); default: throw new NotSupportedException(); } } public bool CanGetGroupValue(string group, string name) { return name == PropertyKeys.AppTyp || name == PropertyKeys.AppArchiveTyp || name == PropertyKeys.AppPackageName || name == PropertyKeys.AppDir || name == PropertyKeys.AppPath || name == PropertyKeys.AppExe || name == PropertyKeys.AppRegister || name == PropertyKeys.AppLauncherExecutable || name == PropertyKeys.AppLauncherArguments || name == PropertyKeys.AppLauncherIcon || name == PropertyKeys.AppSetupTestFile; } } }
{ "content_hash": "200c8a7c0404e98c565f0ed41482eb88", "timestamp": "", "source": "github", "line_count": 107, "max_line_length": 103, "avg_line_length": 45.14018691588785, "alnum_prop": 0.517184265010352, "repo_name": "mastersign/bench-manager", "id": "a14a1cafc1d91d3ca95003dc2f6444fc6b90c762", "size": "4832", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "BenchLib/AppIndexDefaultValueSource.cs", "mode": "33188", "license": "mit", "language": [], "symlink_target": "" }
name: Bug report about: Create a report to help us improve title: '' labels: '' assignees: '' --- **Please complete the checklist before filing an issue:** - [ ] Is this a "how to" question? For questions on how to use the SDK, implement features or other related questions, [please use our forums](https://community.shopify.com/c/Shopify-APIs-SDKs/bd-p/shopify-apis-and-technology). - [ ] Is this something you can **debug and fix**? Create a pull request and contribute! Bug fixes and documentation fixes are welcome. You can read our [contribution](https://github.com/Shopify/js-buy-sdk/blob/master/CONTRIBUTING.md) guidelines for more details. None of the above? Create an issue. Be sure to include all the necessary information for us to understand and reproduce the problem: ### Bug details **Describe the bug** A clear and concise description of what the bug is. **To Reproduce** Steps to reproduce the behaviour: Please include code samples. If the error you're dealing with is a network / API issue, please include the value of the `X-Request-ID` response header, the data sent to the API, and the payload of the response. **Expected behavior** A clear and concise description of what you expected to happen. **Environment (please complete the following information):** - OS: [e.g. iOS] - Browser [e.g. chrome, safari] - SDK Version [e.g. `v1.2.0`] **Additional context** Add any other context about the problem here. **Bug Report Checklist** - [ ] I have read and agree to the [CODE_OF_CONDUCT.md](https://github.com/Shopify/js-buy-sdk/blob/master/CODE_OF_CONDUCT.md) - [ ] I have read the [CONTRIBUTING.md](https://github.com/Shopify/js-buy-sdk/blob/master/CONTRIBUTING.md) guidelines. - [ ] I have provided a detailed description of the bug, including code samples, and/or network data. - [ ] I have provided information about my development environment, including SDK version.
{ "content_hash": "4967f2c6dd91a7ee7be6b53dcd5b055f", "timestamp": "", "source": "github", "line_count": 43, "max_line_length": 263, "avg_line_length": 44.348837209302324, "alnum_prop": 0.7461982170949135, "repo_name": "Shopify/js-buy-sdk", "id": "dd6f1babe96a9608e855e05061a10dea346d558c", "size": "1911", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": ".github/ISSUE_TEMPLATE/Bug_report.md", "mode": "33188", "license": "mit", "language": [ { "name": "HTML", "bytes": "672" }, { "name": "JavaScript", "bytes": "261314" } ], "symlink_target": "" }
SYNONYM #### According to The Catalogue of Life, 3rd January 2011 #### Published in null #### Original name null ### Remarks null
{ "content_hash": "00f224a8183294ab434bfec5dae65c00", "timestamp": "", "source": "github", "line_count": 13, "max_line_length": 39, "avg_line_length": 10.23076923076923, "alnum_prop": 0.6917293233082706, "repo_name": "mdoering/backbone", "id": "2bf24f51fd97849c29507c093acf18f2ed8ef2e3", "size": "191", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "life/Plantae/Magnoliophyta/Magnoliopsida/Asterales/Asteraceae/Crepis/Crepis nigricans/Crepis senecioides/ Syn. Barkhausia nigricans/README.md", "mode": "33188", "license": "apache-2.0", "language": [], "symlink_target": "" }
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>gappa: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel="stylesheet"> <link href="../../../../../bootstrap-custom.css" rel="stylesheet"> <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"> <script src="../../../../../moment.min.js"></script> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--> </head> <body> <div class="container"> <div class="navbar navbar-default" role="navigation"> <div class="container-fluid"> <div class="navbar-header"> <a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a> </div> <div id="navbar" class="collapse navbar-collapse"> <ul class="nav navbar-nav"> <li><a href="../..">clean / released</a></li> <li class="active"><a href="">8.12.1 / gappa - 1.4.3</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> gappa <small> 1.4.3 <span class="label label-info">Not compatible 👼</span> </small> </h1> <p>📅 <em><script>document.write(moment("2022-03-21 22:41:26 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-03-21 22:41:26 UTC)</em><p> <h2>Context</h2> <pre># Packages matching: installed # Name # Installed # Synopsis base-bigarray base base-threads base base-unix base conf-findutils 1 Virtual package relying on findutils coq 8.12.1 Formal proof management system num 1.4 The legacy Num library for arbitrary-precision integer and rational arithmetic ocaml 4.09.1 The OCaml compiler (virtual package) ocaml-base-compiler 4.09.1 Official release 4.09.1 ocaml-config 1 OCaml Switch Configuration ocamlfind 1.9.3 A library manager for OCaml # opam file: opam-version: &quot;2.0&quot; maintainer: &quot;guillaume.melquiond@inria.fr&quot; homepage: &quot;https://gappa.gitlabpages.inria.fr/&quot; dev-repo: &quot;git+https://gitlab.inria.fr/gappa/coq.git&quot; bug-reports: &quot;https://gitlab.inria.fr/gappa/coq/issues&quot; license: &quot;LGPL-3.0-or-later&quot; build: [ [&quot;autoconf&quot;] {dev} [&quot;./configure&quot;] [&quot;./remake&quot; &quot;-j%{jobs}%&quot;] ] install: [&quot;./remake&quot; &quot;install&quot;] depends: [ &quot;ocaml&quot; &quot;coq&quot; {&gt;= &quot;8.8.1&quot; &amp; &lt; &quot;8.12~&quot;} &quot;coq-flocq&quot; {&gt;= &quot;3.0&quot;} &quot;conf-autoconf&quot; {build &amp; dev} (&quot;conf-g++&quot; {build} | &quot;conf-clang&quot; {build}) ] tags: [ &quot;keyword:floating-point arithmetic&quot; &quot;keyword:interval arithmetic&quot; &quot;keyword:decision procedure&quot; &quot;category:Computer Science/Decision Procedures and Certified Algorithms/Decision procedures&quot; &quot;logpath:Gappa&quot; &quot;date:2020-04-04&quot; ] authors: [ &quot;Guillaume Melquiond &lt;guillaume.melquiond@inria.fr&gt;&quot; ] synopsis: &quot;A Coq tactic for discharging goals about floating-point arithmetic and round-off errors using the Gappa prover&quot; url { src: &quot;https://gappa.gitlabpages.inria.fr/releases/gappalib-coq-1.4.3.tar.gz&quot; checksum: &quot;sha512=1a1b45121a2e581b9f7b4060455a496567563f7b75fc88323933b4b10bfd28adc5cb2e3d15aab74ad3d354d921fde2bf534a9498bc4907737ca7aa97054af7e6&quot; } </pre> <h2>Lint</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Dry install 🏜️</h2> <p>Dry install with the current Coq version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam install -y --show-action coq-gappa.1.4.3 coq.8.12.1</code></dd> <dt>Return code</dt> <dd>5120</dd> <dt>Output</dt> <dd><pre>[NOTE] Package coq is already installed (current version is 8.12.1). The following dependencies couldn&#39;t be met: - coq-gappa -&gt; coq &lt; 8.12~ -&gt; ocaml &lt; 4.06.0 base of this switch (use `--unlock-base&#39; to force) Your request can&#39;t be satisfied: - No available version of coq satisfies the constraints No solution found, exiting </pre></dd> </dl> <p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-gappa.1.4.3</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Install dependencies</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Install 🚀</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Installation size</h2> <p>No files were installed.</p> <h2>Uninstall 🧹</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Missing removes</dt> <dd> none </dd> <dt>Wrong removes</dt> <dd> none </dd> </dl> </div> </div> </div> <hr/> <div class="footer"> <p class="text-center"> Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣 </p> </div> </div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="../../../../../bootstrap.min.js"></script> </body> </html>
{ "content_hash": "b520453035dc0c37507b27389a14c194", "timestamp": "", "source": "github", "line_count": 173, "max_line_length": 159, "avg_line_length": 41.213872832369944, "alnum_prop": 0.5503506311360449, "repo_name": "coq-bench/coq-bench.github.io", "id": "325e173727435681a94b0528f19ac30e9666843e", "size": "7155", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "clean/Linux-x86_64-4.09.1-2.0.6/released/8.12.1/gappa/1.4.3.html", "mode": "33188", "license": "mit", "language": [], "symlink_target": "" }
package ec2 import ( "context" awsmiddleware "github.com/aws/aws-sdk-go-v2/aws/middleware" "github.com/aws/aws-sdk-go-v2/aws/signer/v4" "github.com/aws/aws-sdk-go-v2/service/ec2/types" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Delete the scope for an IPAM. You cannot delete the default scopes. For more // information, see Delete a scope // (https://docs.aws.amazon.com/vpc/latest/ipam/delete-scope-ipam.html) in the // Amazon VPC IPAM User Guide. func (c *Client) DeleteIpamScope(ctx context.Context, params *DeleteIpamScopeInput, optFns ...func(*Options)) (*DeleteIpamScopeOutput, error) { if params == nil { params = &DeleteIpamScopeInput{} } result, metadata, err := c.invokeOperation(ctx, "DeleteIpamScope", params, optFns, c.addOperationDeleteIpamScopeMiddlewares) if err != nil { return nil, err } out := result.(*DeleteIpamScopeOutput) out.ResultMetadata = metadata return out, nil } type DeleteIpamScopeInput struct { // The ID of the scope to delete. // // This member is required. IpamScopeId *string // A check for whether you have the required permissions for the action without // actually making the request and provides an error response. If you have the // required permissions, the error response is DryRunOperation. Otherwise, it is // UnauthorizedOperation. DryRun *bool noSmithyDocumentSerde } type DeleteIpamScopeOutput struct { // Information about the results of the deletion. IpamScope *types.IpamScope // Metadata pertaining to the operation's result. ResultMetadata middleware.Metadata noSmithyDocumentSerde } func (c *Client) addOperationDeleteIpamScopeMiddlewares(stack *middleware.Stack, options Options) (err error) { err = stack.Serialize.Add(&awsEc2query_serializeOpDeleteIpamScope{}, middleware.After) if err != nil { return err } err = stack.Deserialize.Add(&awsEc2query_deserializeOpDeleteIpamScope{}, middleware.After) if err != nil { return err } if err = addSetLoggerMiddleware(stack, options); err != nil { return err } if err = awsmiddleware.AddClientRequestIDMiddleware(stack); err != nil { return err } if err = smithyhttp.AddComputeContentLengthMiddleware(stack); err != nil { return err } if err = addResolveEndpointMiddleware(stack, options); err != nil { return err } if err = v4.AddComputePayloadSHA256Middleware(stack); err != nil { return err } if err = addRetryMiddlewares(stack, options); err != nil { return err } if err = addHTTPSignerV4Middleware(stack, options); err != nil { return err } if err = awsmiddleware.AddRawResponseToMetadata(stack); err != nil { return err } if err = awsmiddleware.AddRecordResponseTiming(stack); err != nil { return err } if err = addClientUserAgent(stack); err != nil { return err } if err = smithyhttp.AddErrorCloseResponseBodyMiddleware(stack); err != nil { return err } if err = smithyhttp.AddCloseResponseBodyMiddleware(stack); err != nil { return err } if err = addOpDeleteIpamScopeValidationMiddleware(stack); err != nil { return err } if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDeleteIpamScope(options.Region), middleware.Before); err != nil { return err } if err = addRequestIDRetrieverMiddleware(stack); err != nil { return err } if err = addResponseErrorMiddleware(stack); err != nil { return err } if err = addRequestResponseLogging(stack, options); err != nil { return err } return nil } func newServiceMetadataMiddleware_opDeleteIpamScope(region string) *awsmiddleware.RegisterServiceMetadata { return &awsmiddleware.RegisterServiceMetadata{ Region: region, ServiceID: ServiceID, SigningName: "ec2", OperationName: "DeleteIpamScope", } }
{ "content_hash": "3b27a5a1791bf5299ae66e6ee4ec3f5f", "timestamp": "", "source": "github", "line_count": 128, "max_line_length": 143, "avg_line_length": 29.375, "alnum_prop": 0.7414893617021276, "repo_name": "cilium/cilium", "id": "f5359689057f7dc7cfa3541d6a14a9fc682605c4", "size": "3813", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "vendor/github.com/aws/aws-sdk-go-v2/service/ec2/api_op_DeleteIpamScope.go", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "C", "bytes": "1064096" }, { "name": "Dockerfile", "bytes": "27722" }, { "name": "Go", "bytes": "11393655" }, { "name": "HCL", "bytes": "1525" }, { "name": "Lua", "bytes": "1424" }, { "name": "Makefile", "bytes": "76652" }, { "name": "Mustache", "bytes": "1457" }, { "name": "Python", "bytes": "14837" }, { "name": "Ruby", "bytes": "394" }, { "name": "Shell", "bytes": "393357" }, { "name": "SmPL", "bytes": "10748" }, { "name": "Smarty", "bytes": "16522" }, { "name": "TeX", "bytes": "416" } ], "symlink_target": "" }
package sample; import java.io.InputStreamReader; import java.io.BufferedReader; import java.io.IOException; import java.io.File; import java.io.FileReader; import java.io.FileNotFoundException; //import java.io.*; import javafx.application.Platform; import javafx.event.ActionEvent; import javafx.fxml.FXML; import javafx.fxml.FXMLLoader; import javafx.scene.Parent; import javafx.scene.Scene; import javafx.scene.control.Alert; import javafx.scene.control.Button; import javafx.scene.control.ButtonType; import javafx.scene.control.TextInputDialog; import javafx.stage.Stage; import java.io.BufferedWriter; import java.io.File; import java.io.FileWriter; import java.io.IOException; import java.util.Optional; public class Controller { @FXML private Button btn_siguiente; @FXML public Button btn_regresar; public void salir(ActionEvent actionEvent) { Platform.exit(); } public void cambiar_pantalla(ActionEvent actionEvent) throws IOException { Stage stage; Parent root; if (actionEvent.getSource() == btn_siguiente) { stage = (Stage) btn_siguiente.getScene().getWindow(); Alert alerta = new Alert(Alert.AlertType.CONFIRMATION); alerta.setTitle("Ventana de informacion"); alerta.setHeaderText("sigamos.."); alerta.setContentText("Vamos a cambiar a la segunda pantalla"); Optional<ButtonType> resultado = alerta.showAndWait(); if (resultado.get() == ButtonType.OK) { root = FXMLLoader.load(getClass().getResource("window2.fxml")); Scene scene = new Scene(root); stage.setScene(scene); stage.show(); } } else { stage = (Stage) btn_regresar.getScene().getWindow(); Alert alerta = new Alert(Alert.AlertType.CONFIRMATION); //Cambiar icono ej WARNING. alerta.setTitle("Ventana de informacion"); alerta.setHeaderText("Ahora.."); alerta.setContentText("Vas a cambiar a la pantalla inicial"); Optional<ButtonType> resultado = alerta.showAndWait(); if (resultado.get() == ButtonType.OK){ root = FXMLLoader.load(getClass().getResource("window1.fxml")); Scene scene = new Scene(root); stage.setScene(scene); stage.show(); } } /* Stage stage = (Stage) btn_siguiente.getScene().getWindow(); FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource("window2.fxml")); Parent root = (Parent) fxmlLoader.load(); Scene scene = new Scene(root); stage.setScene(scene); stage.show(); */ } }
{ "content_hash": "5eda9f3448c8f993739b243bc2fc6ed9", "timestamp": "", "source": "github", "line_count": 82, "max_line_length": 96, "avg_line_length": 34.24390243902439, "alnum_prop": 0.6271367521367521, "repo_name": "amedina14/Repositorio-de-Adrian", "id": "314dc7021ea1b9f9895135eec4e012ceb5cfe98a", "size": "2808", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "Proyecto final - copia2 respaldo/src/sample/Controller.java", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "13416" }, { "name": "HTML", "bytes": "153625" }, { "name": "Java", "bytes": "108999" }, { "name": "JavaScript", "bytes": "857" } ], "symlink_target": "" }
class Browser; class Profile; class TemplateURL; struct SessionStartupPref; namespace protector { // Base class for setting change tracked by Protector. class BaseSettingChange { public: BaseSettingChange(); virtual ~BaseSettingChange(); // Applies initial actions to the setting if needed. Must be called before // any other calls are made, including text getters. // Returns true if initialization was successful. // Associates this change with |profile| instance so overrides must call the // base method. virtual bool Init(Profile* profile); // Persists new setting if needed. |browser| is the Browser instance from // which the user action originates. virtual void Apply(Browser* browser); // Restores old setting if needed. |browser| is the Browser instance from // which the user action originates. virtual void Discard(Browser* browser); // Indicates that user has ignored this change and timeout has passed. virtual void Timeout(); // Returns the resource ID of the badge icon. virtual int GetBadgeIconID() const = 0; // Returns the resource ID for the menu item icon. virtual int GetMenuItemIconID() const = 0; // Returns the resource ID for bubble view icon. virtual int GetBubbleIconID() const = 0; // Returns the wrench menu item and bubble title. virtual string16 GetBubbleTitle() const = 0; // Returns the bubble message text. virtual string16 GetBubbleMessage() const = 0; // Returns text for the button to apply the change with |Apply|. // Returns empty string if no apply button should be shown. virtual string16 GetApplyButtonText() const = 0; // Returns text for the button to discard the change with |Discard|. virtual string16 GetDiscardButtonText() const = 0; protected: // Profile instance we've been associated with by an |Init| call. Profile* profile() { return profile_; } private: Profile* profile_; DISALLOW_COPY_AND_ASSIGN(BaseSettingChange); }; // TODO(ivankr): CompositeSettingChange that incapsulates multiple // BaseSettingChange instances. // Allocates and initializes BaseSettingChange implementation for default search // provider setting. Reports corresponding histograms. Both |actual| and // |backup| may be NULL if corresponding values are unknown or invalid. // |backup| will be owned by the returned |BaseSettingChange| instance. |actual| // is not owned and is safe to destroy after Protector::ShowChange has been // called for the returned instance. BaseSettingChange* CreateDefaultSearchProviderChange(const TemplateURL* actual, TemplateURL* backup); // Allocates and initializes BaseSettingChange implementation for session // startup setting. Reports corresponding histograms. BaseSettingChange* CreateSessionStartupChange( const SessionStartupPref& actual, const SessionStartupPref& backup); // Allocates and initializes BaseSettingChange implementation for an unknown // preferences change with invalid backup. BaseSettingChange* CreatePrefsBackupInvalidChange(); } // namespace protector #endif // CHROME_BROWSER_PROTECTOR_BASE_SETTING_CHANGE_H_
{ "content_hash": "6d93c4091c4f3f7416efff713d008be7", "timestamp": "", "source": "github", "line_count": 88, "max_line_length": 80, "avg_line_length": 35.85227272727273, "alnum_prop": 0.751188589540412, "repo_name": "rogerwang/chromium", "id": "a0ebe8285ff9b7f95a9c6ef14ceda217ef37b7ab", "size": "3545", "binary": false, "copies": "1", "ref": "refs/heads/node", "path": "chrome/browser/protector/base_setting_change.h", "mode": "33188", "license": "bsd-3-clause", "language": [ { "name": "Assembly", "bytes": "1178292" }, { "name": "C", "bytes": "73237787" }, { "name": "C++", "bytes": "116793287" }, { "name": "F#", "bytes": "381" }, { "name": "Go", "bytes": "10440" }, { "name": "Java", "bytes": "23296" }, { "name": "JavaScript", "bytes": "8698365" }, { "name": "Objective-C", "bytes": "5351255" }, { "name": "PHP", "bytes": "97796" }, { "name": "Perl", "bytes": "918286" }, { "name": "Python", "bytes": "5933085" }, { "name": "R", "bytes": "524" }, { "name": "Shell", "bytes": "4149150" }, { "name": "Tcl", "bytes": "277077" } ], "symlink_target": "" }
<div class="col-xs-12 content" ng-controller="requestCtrl"> <div class="row header animated fadeInDown"> <div class="col-xs-12"> <h2>Studio Locker Request Form</h2> <p class="lead">This is a mandatory form to be completed by Faculty and submitted prior to any locker usage. Pertains only to classroom lockers in: <span class="label label-default">102C</span> <span class="label label-default">601C</span> <span class="label label-default">701C</span> <span class="label label-default">702C</span> <span class="label label-default">703C</span> <span class="label label-default">901F</span> <span class="label label-default">902F</span> <span class="label label-default">1001F</span> <span class="label label-default">1002F</span></p> </div> </div><!-- /.header --> <div class="row request animated fadeInUpBig"> <div class="col-xs-12"> <form class="well" role="form" name="lockerRequest" ng-init="step = 1"> <section class="animated fadeInDown" ng-show="step==1"> <div class="page-header"> <h3>Step I: Select your semester <span class="label label-default pull-right">1/6</span></h3> </div><!-- /.page-header --> <div class="row" ng-form="step1form"> <div class="col-sm-4"> <button type="button" class="btn btn-block btn-primary semesterButton" id="Fall" name="semester" ng-model="formData.semester" btn-radio="'Fall'"> <img src="img/fall.png" /> </button> <h4>Fall</h4> </div> <div class="col-sm-4"> <button type="button" class="btn btn-block btn-primary semesterButton" id="Spring" name="semester" ng-model="formData.semester" btn-radio="'Spring'"> <img src="img/spring.png" /> </button> <h4>Spring</h4> </div> <div class="col-sm-4"> <button type="button" class="btn btn-block btn-primary semesterButton" id="Summer" name="semester" ng-model="formData.semester" btn-radio="'Summer'"> <img src="img/summer.png" /> </button> <h4>Summer</h4> </div> </div><!-- /.row --> <div class="row"> <div class="col-xs-12 requestActions"> <button class="btn btn-primary pull-right" ng-disabled="validateSemester()" ng-click="step = 2">Next <span class="glyphicon glyphicon-forward"></span></button> </div> </div><!-- /.row --> </section><!-- /step 1 --> <section class="animated fadeInDown" ng-show="step==2"> <div class="page-header"> <h3>Step II: Enter your information <span class="label label-default pull-right">2/6</span></h3> </div><!-- /.page-header --> <div class="row" ng-form="step2form"> <div class="col-sm-4"> <label for="courseID" class="control-label">Course ID Number</label> <input type="text" class="form-control" id="courseID" name="courseID" ng-model="formData.courseID" autofocus="autofocus" /> </div> <div class="col-sm-4"> <label for="facultyName" class="control-label">Faculty Name</label> <input type="text" class="form-control" id="facultyName" name="facultyName" ng-model="formData.facultyName" /> </div> <div class="col-sm-4"> <label for="email" class="control-label">Email Address</label> <input type="email" class="form-control" id="email" name="email" ng-model="formData.email" /> </div> </div><!-- /.row --> <div class="row"> <div class="col-xs-12 requestActions"> <button class="btn btn-primary pull-right" ng-disabled="validateInfo()" ng-click="step = 3">Next <span class="glyphicon glyphicon-forward"></span></button> <button class="btn btn-primary" ng-click="step = 1"><span class="glyphicon glyphicon-backward"></span> Previous</button> </div> </div><!-- /.row --> </section><!-- /step 2 --> <section class="animated fadeInDown" ng-show="step==3"> <div class="page-header"> <h3>Step III: Select Assigned Studio Classroom <span class="label label-default pull-right">3/6</span></h3> </div><!-- /.page-header --> <div class="row" ng-form="step3form"> <div class="col-sm-6"> <h4>133 / 144 West 21st Street</h4> <div class="row"> <div class="col-xs-6"> <button type="button" class="btn btn-block btn-secondary" id="102C" name="studio" ng-model="formData.studio" btn-radio="'102C'">102C</button> <button type="button" class="btn btn-block btn-secondary" id="601C" name="studio" ng-model="formData.studio" btn-radio="'601C'">601C</button> <button type="button" class="btn btn-block btn-secondary" id="701C" name="studio" ng-model="formData.studio" btn-radio="'701C'">701C</button> </div> <div class="col-xs-6"> <button type="button" class="btn btn-block btn-secondary" id="702C" name="studio" ng-model="formData.studio" btn-radio="'702C'">702C</button> <button type="button" class="btn btn-block btn-secondary" id="703C" name="studio" ng-model="formData.studio" btn-radio="'703C'">703C</button> </div> </div><!-- /.row --> </div> <div class="col-sm-6"> <h4>136 West 21st Street</h4> <div class="row"> <div class="col-xs-6"> <button type="button" class="btn btn-block btn-secondary" id="901F" name="studio" ng-model="formData.studio" btn-radio="'901F'">901F</button> <button type="button" class="btn btn-block btn-secondary" id="902F" name="studio" ng-model="formData.studio" btn-radio="'902F'">902F</button> </div> <div class="col-xs-6"> <button type="button" class="btn btn-block btn-secondary" id="1001F" name="studio" ng-model="formData.studio" btn-radio="'1001F'">1001F</button> <button type="button" class="btn btn-block btn-secondary" id="1002F" name="studio" ng-model="formData.studio" btn-radio="'1002F'">1002F</button> </div> </div><!-- /.row --> </div> </div><!-- /.row --> <div class="row"> <div class="col-xs-12 requestActions"> <button class="btn btn-primary pull-right" ng-disabled="validateStudio()" ng-click="step = 4">Next <span class="glyphicon glyphicon-forward"></span></button> <button class="btn btn-primary" ng-click="step = 2"><span class="glyphicon glyphicon-backward"></span> Previous</button> </div> </div><!-- /.row --> </section><!-- /step 3 --> <section class="animated fadeInDown" ng-show="step==4"> <div class="page-header"> <h3>Step IV: Select your program <span class="label label-default pull-right">4/6</span></h3> </div><!-- /.page-header --> <div class="row" ng-form="step4form"> <div class="col-sm-6"> <h4>Undergraduate</h4> <button type="button" class="btn btn-block btn-secondary" id="ild" name="program" ng-model="formData.program" btn-radio="'ILD - Illustration'">ILD - Illustration</button> <button type="button" class="btn btn-block btn-secondary" id="dsd" name="program" ng-model="formData.program" btn-radio="'DSD - Design'">DSD - Design</button> <button type="button" class="btn btn-block btn-secondary" id="and" name="program" ng-model="formData.program" btn-radio="'AND - Animation'">AND - Animation</button> <button type="button" class="btn btn-block btn-secondary" id="add" name="program" ng-model="formData.program" btn-radio="'ADD - Advertising'">ADD - Advertising</button> <button type="button" class="btn btn-block btn-secondary" id="cid" name="program" ng-model="formData.program" btn-radio="'CID - Cartooning'">CID - Cartooning</button> <button type="button" class="btn btn-block btn-secondary" id="fpd" name="program" ng-model="formData.program" btn-radio="'FPD - Fine Arts Painting'">FPD - Fine Arts Painting</button> <button type="button" class="btn btn-block btn-secondary" id="fpi" name="program" ng-model="formData.program" btn-radio="'FPI - Fine Arts Painting International'">FPI - Fine Arts Painting International</button> <button type="button" class="btn btn-block btn-secondary" id="fdd" name="program" ng-model="formData.program" btn-radio="'FDD - Fine Arts Drawing'">FDD - Fine Arts Drawing</button> <button type="button" class="btn btn-block btn-secondary" id="fdi" name="program" ng-model="formData.program" btn-radio="'FDI - Fine Arts Drawing International'">FDI - Fine Arts Drawing International</button> <h4>Graduate</h4> <button type="button" class="btn btn-block btn-secondary" id="ilg" name="program" ng-model="formData.program" btn-radio="'ILG - Illustration'">ILG - Illustration</button> </div> <div class="col-sm-6"> <h4>Continuing Education</h4> <button type="button" class="btn btn-block btn-secondary" id="ilc" name="program" ng-model="formData.program" btn-radio="'ILC - Illustration'">ILC - Illustration</button> <button type="button" class="btn btn-block btn-secondary" id="anc" name="program" ng-model="formData.program" btn-radio="'ANC - Animation'">ANC - Animation</button> <button type="button" class="btn btn-block btn-secondary" id="gdc" name="program" ng-model="formData.program" btn-radio="'GDC - Graphic Design'">GDC - Graphic Design</button> <button type="button" class="btn btn-block btn-secondary" id="fdc" name="program" ng-model="formData.program" btn-radio="'FDC - Fine Arts Drawing'">FDC - Fine Arts Drawing</button> <button type="button" class="btn btn-block btn-secondary" id="fpc" name="program" ng-model="formData.program" btn-radio="'FPC - Fine Arts Painting'">FPC - Fine Arts Painting</button> <button type="button" class="btn btn-block btn-secondary" id="fic" name="program" ng-model="formData.program" btn-radio="'FIC - Fine Arts'">FIC - Fine Arts</button> <h4>Pre-College</h4> <button type="button" class="btn btn-block btn-secondary" id="aep" name="program" ng-model="formData.program" btn-radio="'AEP - Art Education Pre-College'">AEP - Art Education Pre-College</button> <button type="button" class="btn btn-block btn-secondary" id="fip" name="program" ng-model="formData.program" btn-radio="'FIP - Fine Arts Painting Pre-College'">FIP - Fine Arts Painting Pre-College</button> <button type="button" class="btn btn-block btn-secondary" id="vcp" name="program" ng-model="formData.program" btn-radio="'VCP - Visual Critical Studies Pre-College'">VCP - Visual Critical Studies Pre-College</button> </div> </div><!-- /.row --> <div class="row"> <div class="col-xs-12 requestActions"> <button class="btn btn-primary pull-right" ng-disabled="validateProgram()" ng-click="step = 5">Next <span class="glyphicon glyphicon-forward"></span></button> <button class="btn btn-primary" ng-click="step = 3"><span class="glyphicon glyphicon-backward"></span> Previous</button> </div> </div><!-- /.row --> </section><!-- /step 4 --> <section class="animated fadeInDown" ng-show="step==5"> <div class="page-header"> <h3>Step V: Leave a comment (optional)<span class="label label-default pull-right">5/6</span></h3> </div><!-- /.page-header --> <div class="row" ng-form="step5form"> <div class="col-xs-12"> <textarea class="form-control" rows="6" id="comment" name="comment" ng-model="formData.comment" placeholder="please, keep it brief..." autofocus="autofocus"></textarea> </div> </div><!-- /.row --> <div class="row"> <div class="col-xs-12 requestActions"> <button class="btn btn-primary pull-right" ng-click="step = 6">Next <span class="glyphicon glyphicon-forward"></span></button> <button class="btn btn-primary" ng-click="step = 4"><span class="glyphicon glyphicon-backward"></span> Previous</button> </div> </div><!-- /.row --> </section><!-- /step 5 --> <section class="animated fadeInDown" ng-show="step==6"> <div class="page-header"> <h3>Step VI: Review terms and submit request<span class="label label-default pull-right">6/6</span></h3> </div><!-- /.page-header --> <div class="row" ng-form="step6form"> <div class="col-xs-12"> <p>Locker assignments are issued at the start of each semester after confirmation from the Registrar of the classroom assignment. There are no outstanding locker assignments that rollover through multiple semesters. Faculty can only occupy a locker with expressed consent at the start of each semester from the studio manager. Fine Arts gives priority for locker assignments to daytime Foundation classes. Lockers are for student work and their materials. Foundation Instructors must store props and other teaching materials in the 6th Foundation Prop room in the 133/141 West 21 street facilities. Instructors in 136 West 21st facilities may use lockers for a limited number of props in addition to student work.</p> <p>Only SVA issued locks distributed by the studio manager that are on file with the Fine Arts Department are permitted for use on studio classroom lockers. All other locks will be cut and the contents of the locker discarded. Faculty is solely responsible for the contents of the locker. At the end of each semester, Faculty must clear the contents of all student work from the locker and report the status to the studio manager by the last day of class session. SVA is not responsible for the loss or damage to personal property that has been removed or left in lockers. Any internal damages or repair needs within the locker can be reported to the studio manager.</p> <p>Locker assignments are determined by availability. Due to volume of courses and storage demands, locker assignments are not guarenteed to be located in the room scheduled by Registrar. Faculty will receive an email from the studio manager with the class locker assignment, lock combination and any other pertinent information once Locker Request is processed. Faculty and students must be attentive to posted signs regarding deadlines for removal of artwork and materials from storage areas.</p> <div class="checkbox"> <label> <input type="checkbox" name="acceptTerms" ng-model="formData.acceptTerms" /> I've read and understood the terms and conditions. Now, please get me a locker! </label> </div> </div> </div><!-- /.row --> <div class="row requestSuccess animated fadeInDown"> <div class="col-xs-12"> <h3>Thank you! Your request has been submitted!</h3> <p class="lead">An email will be generated to your MySVA account once your request has been processed.</p> </div> </div><!-- /.requestSuccess --> <div class="row requestFail animated fadeInDown"> <div class="col-xs-12"> <h3>Oops! Something went wrong with your request!</h3> <p class="lead">Please try submitting the form again. If the problem persists then contact the <a href="mailto:helpdesk@sva.edu">SVA Help Desk</a> for assistance.</p> </div> </div><!-- /.requestFail --> <div class="row"> <div class="col-xs-12 requestActions"> <button class="btn btn-primary pull-right" ng-disabled="validateTerms()" ng-click="submit()">Submit <span class="glyphicon glyphicon-check"></span></button> <button class="btn btn-primary" ng-click="step = 5"><span class="glyphicon glyphicon-backward"></span> Previous</button> </div> </div><!-- /.row --> </section><!-- /step 6 --> <!-- for testing - remove in production <div class="row"> <div class="col-xs-12"> <h3>Debug View (hidden in production)</h3> <pre>{{formData}}</pre> </div> </div> --> </form><!-- /lockerRequest --> </div> </div><!-- /.request --> </div><!-- /.content -->
{ "content_hash": "17797506edb18cba2c557e6a5758fda7", "timestamp": "", "source": "github", "line_count": 208, "max_line_length": 726, "avg_line_length": 76.6201923076923, "alnum_prop": 0.6484281859823053, "repo_name": "amazingBastard/nested-tabs-angular-app", "id": "f279eb897e545def45535648df0586e1c5c3aa23", "size": "15937", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "app/partials/locker-request.html", "mode": "33261", "license": "mit", "language": [ { "name": "CSS", "bytes": "13161" }, { "name": "JavaScript", "bytes": "18899" }, { "name": "PHP", "bytes": "0" }, { "name": "Ruby", "bytes": "503" }, { "name": "Shell", "bytes": "1113" } ], "symlink_target": "" }
package hashdb.main.threads; import hashdb.communication.ConnectionInstance; import hashdb.exceptions.ConnectionActiveException; import hashdb.exceptions.SomethingWentHorriblyWrong; import hashdb.main.Server; import hashdb.main.tasks.RequestHandler; import java.net.Socket; import java.util.concurrent.BlockingQueue; import java.util.concurrent.LinkedBlockingQueue; import org.apache.log4j.Logger; /** * The Class ConnectionManager. */ public class ConnectionManager extends Thread { /** * The log. */ private static final Logger log = Logger.getLogger(ConnectionManager.class); /** * The instance. */ private static ConnectionManager instance = null; /** * Adds the new connection. * * @param connection the connection */ private static void addNewConnection(final ConnectionInstance connection) { if (connection.cannotAdd()) return; try { ConnectionManager.instance.connections.put(connection); ConnectionManager.log.trace("New connection added. Now " + instance.connections.size() + " connections"); } catch (final InterruptedException e) { ConnectionManager.log.info(e.getMessage()); } } /** * Adds the new connection. * * @param tmp the tmp */ public static void addNewConnection(final Socket tmp) { try { ConnectionManager.instance.connections.put(new ConnectionInstance(tmp)); ConnectionManager.log.info("New connection is now being watched"); } catch (final InterruptedException e) { ConnectionManager.log.error(e.getMessage()); } } /** * Removes the. * * @param ci the ci */ public static void remove(final ConnectionInstance ci) { ConnectionManager.instance.connections.remove(ci); log.info("Connection removed. " + instance.connections.size() + " connections remaining"); } /** * The connections. */ private final BlockingQueue<ConnectionInstance> connections; /** * The server. */ private final Server server; /** * Instantiates a new connection manager. * * @param server the server */ public ConnectionManager(final Server server) { super("ConnManager"); if (ConnectionManager.instance != null) throw new SomethingWentHorriblyWrong(); ConnectionManager.instance = this; this.connections = new LinkedBlockingQueue<ConnectionInstance>(); this.server = server; } /* * (non-Javadoc) * * @see java.lang.Thread#run() */ @Override public void run() { ConnectionManager.log.info("Started!"); try { while (true) { final ConnectionInstance ci = this.connections.take(); ConnectionManager.log.trace("Checking new connection"); if (ci.hasRequest() && !ci.isBeingUsed()) { log.info( "Connection " + ci.toString() + " has request. There are " + connections.size() + " other connections"); WorkerThread.addTask(new RequestHandler(ci, this.server)); ConnectionManager.log.info("Task created!"); } else if (!ci.timeLeft()) { ci.terminate(); ConnectionManager.log.info( "Connection terminated! " + this.connections.size() + " connections remaining"); continue; } ConnectionManager.addNewConnection(ci); ConnectionManager.log.trace("Connection prepared for processing."); } } catch (final ConnectionActiveException ie) { ConnectionManager.log.error(ie.getMessage()); } catch (final InterruptedException ie) { ConnectionManager.log.error(ie.getMessage()); } } public static void printStatus() { log.info(instance.connections.size() + " connections active"); } public static int numberOfConnections() { return instance.connections.size(); } }
{ "content_hash": "10488e1a36792ee3071afcdb13ddd633", "timestamp": "", "source": "github", "line_count": 136, "max_line_length": 111, "avg_line_length": 26.375, "alnum_prop": 0.7117368274323947, "repo_name": "vivitas/hashdb", "id": "2fe91e2b8c19a710b561fd394115eb50ba1b0816", "size": "3587", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/hashdb/main/threads/ConnectionManager.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Java", "bytes": "175440" } ], "symlink_target": "" }
/* * \license @{ * * 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. * * @} */ // Copyright 2001, Google Inc. All rights reserved. // Maintainer: mec@google.com (Michael Chastain) // // A StringPiece points to part or all of a string, Cord, double-quoted string // literal, or other string-like object. A StringPiece does *not* own the // string to which it points. A StringPiece is not null-terminated. // // You can use StringPiece as a function or method parameter. A StringPiece // parameter can receive a double-quoted string literal argument, a "const // char*" argument, a string argument, or a StringPiece argument with no data // copying. Systematic use of StringPiece for arguments reduces data // copies and strlen() calls. // // Prefer passing StringPieces by value: // void MyFunction(StringPiece arg); // If circumstances require, you may also pass by const reference: // void MyFunction(const StringPiece& arg); // not preferred // Both of these have the same lifetime semantics. Passing by value // generates slightly smaller code. For more discussion, see the thread // go/stringpiecebyvalue on c-users. // // StringPiece is also suitable for local variables if you know that // the lifetime of the underlying object is longer than the lifetime // of your StringPiece variable. // // Beware of binding a StringPiece to a temporary: // StringPiece sp = obj.MethodReturningString(); // BAD: lifetime problem // // This code is okay: // string str = obj.MethodReturningString(); // str owns its contents // StringPiece sp(str); // GOOD, although you may not need sp at all // // StringPiece is sometimes a poor choice for a return value and usually a poor // choice for a data member. If you do use a StringPiece this way, it is your // responsibility to ensure that the object pointed to by the StringPiece // outlives the StringPiece. // // A StringPiece may represent just part of a string; thus the name "Piece". // For example, when splitting a string, vector<StringPiece> is a natural data // type for the output. For another example, a Cord is a non-contiguous, // potentially very long string-like object. The Cord class has an interface // that iteratively provides StringPiece objects that point to the // successive pieces of a Cord object. // // A StringPiece is not null-terminated. If you write code that scans a // StringPiece, you must check its length before reading any characters. // Common idioms that work on null-terminated strings do not work on // StringPiece objects. // // There are several ways to create a null StringPiece: // StringPiece() // StringPiece(NULL) // StringPiece(NULL, 0) // For all of the above, sp.data() == NULL, sp.length() == 0, // and sp.empty() == true. Also, if you create a StringPiece with // a non-NULL pointer then sp.data() != NULL. Once created, // sp.data() will stay either NULL or not-NULL, except if you call // sp.clear() or sp.set(). // // Thus, you can use StringPiece(NULL) to signal an out-of-band value // that is different from other StringPiece values. This is similar // to the way that const char* p1 = NULL; is different from // const char* p2 = "";. // // There are many ways to create an empty StringPiece: // StringPiece() // StringPiece(NULL) // StringPiece(NULL, 0) // StringPiece("") // StringPiece("", 0) // StringPiece("abcdef", 0) // StringPiece("abcdef"+6, 0) // For all of the above, sp.length() will be 0 and sp.empty() will be true. // For some empty StringPiece values, sp.data() will be NULL. // For some empty StringPiece values, sp.data() will not be NULL. // // Be careful not to confuse: null StringPiece and empty StringPiece. // The set of empty StringPieces properly includes the set of null StringPieces. // That is, every null StringPiece is an empty StringPiece, // but some non-null StringPieces are empty Stringpieces too. // // All empty StringPiece values compare equal to each other. // Even a null StringPieces compares equal to a non-null empty StringPiece: // StringPiece() == StringPiece("", 0) // StringPiece(NULL) == StringPiece("abc", 0) // StringPiece(NULL, 0) == StringPiece("abcdef"+6, 0) // // Look carefully at this example: // StringPiece("") == NULL // True or false? TRUE, because StringPiece::operator== converts // the right-hand side from NULL to StringPiece(NULL), // and then compares two zero-length spans of characters. // However, we are working to make this example produce a compile error. // // Suppose you want to write: // bool TestWhat?(StringPiece sp) { return sp == NULL; } // BAD // Do not do that. Write one of these instead: // bool TestNull(StringPiece sp) { return sp.data() == NULL; } // bool TestEmpty(StringPiece sp) { return sp.empty(); } // The intent of TestWhat? is unclear. Did you mean TestNull or TestEmpty? // Right now, TestWhat? behaves likes TestEmpty. // We are working to make TestWhat? produce a compile error. // TestNull is good to test for an out-of-band signal. // TestEmpty is good to test for an empty StringPiece. // // Caveats (again): // (1) The lifetime of the pointed-to string (or piece of a string) // must be longer than the lifetime of the StringPiece. // (2) There may or may not be a '\0' character after the end of // StringPiece data. // (3) A null StringPiece is empty. // An empty StringPiece may or may not be a null StringPiece. #ifndef GOOGLEAPIS_STRINGS_STRINGPIECE_H_ #define GOOGLEAPIS_STRINGS_STRINGPIECE_H_ #include <assert.h> #include <stddef.h> #include <string.h> #include <cstring> #include <iosfwd> using std::ostream; #include <limits> using std::numeric_limits; #include <string> using std::string; #include <type_traits> #include "googleapis/util/hash.h" #include "googleapis/base/integral_types.h" #include "googleapis/base/port.h" namespace googleapis { // StringPiece has *two* size types. // StringPiece::size_type // is unsigned // is 32 bits in LP32, 64 bits in LP64, 64 bits in LLP64 // no future changes intended // stringpiece_ssize_type // is signed // is 32 bits in LP32, 64 bits in LP64, 64 bits in LLP64 // typedef string::difference_type stringpiece_ssize_type; // STRINGPIECE_CHECK_SIZE protects us from 32-bit overflows. // TODO(user): delete this after stringpiece_ssize_type goes 64 bit. #if !defined(NDEBUG) #define STRINGPIECE_CHECK_SIZE 1 #elif defined(_FORTIFY_SOURCE) && _FORTIFY_SOURCE > 0 #define STRINGPIECE_CHECK_SIZE 1 #else #define STRINGPIECE_CHECK_SIZE 0 #endif class StringPiece { private: const char* ptr_; stringpiece_ssize_type length_; // Prevent overflow in debug mode or fortified mode. // sizeof(stringpiece_ssize_type) may be smaller than sizeof(size_t). static stringpiece_ssize_type CheckedSsizeTFromSizeT(size_t size) { #if STRINGPIECE_CHECK_SIZE > 0 if (size > static_cast<size_t>( std::numeric_limits<stringpiece_ssize_type>::max())) { // Some people grep for this message in logs // so take care if you ever change it. LogFatalSizeTooBig(size, "size_t to int conversion"); } #endif return static_cast<stringpiece_ssize_type>(size); } // Out-of-line error path. static void LogFatalSizeTooBig(size_t size, const char* details); public: // We provide non-explicit singleton constructors so users can pass // in a "const char*" or a "string" wherever a "StringPiece" is // expected. // // Style guide exception granted: // http://goto/style-guide-exception-20978288 StringPiece() : ptr_(NULL), length_(0) {} StringPiece(const char* str) // NOLINT(runtime/explicit) : ptr_(str), length_(0) { if (str != NULL) { length_ = CheckedSsizeTFromSizeT(strlen(str)); } } template <class Allocator> StringPiece(const std::basic_string<char, std::char_traits<char>, Allocator> &str) // NOLINT(runtime/explicit) : ptr_(str.data()), length_(0) { length_ = CheckedSsizeTFromSizeT(str.size()); } #if defined(HAS_GLOBAL_STRING) template <class Allocator> StringPiece(const basic_string<char, std::char_traits<char>, Allocator> &str) // NOLINT(runtime/explicit) : ptr_(str.data()), length_(0) { length_ = CheckedSsizeTFromSizeT(str.size()); } #endif StringPiece(const char* offset, stringpiece_ssize_type len) : ptr_(offset), length_(len) { assert(len >= 0); } // Substring of another StringPiece. // pos must be non-negative and <= x.length(). StringPiece(StringPiece x, stringpiece_ssize_type pos); // Substring of another StringPiece. // pos must be non-negative and <= x.length(). // len must be non-negative and will be pinned to at most x.length() - pos. StringPiece(StringPiece x, stringpiece_ssize_type pos, stringpiece_ssize_type len); // data() may return a pointer to a buffer with embedded NULs, and the // returned buffer may or may not be null terminated. Therefore it is // typically a mistake to pass data() to a routine that expects a NUL // terminated string. const char* data() const { return ptr_; } stringpiece_ssize_type size() const { return length_; } stringpiece_ssize_type length() const { return length_; } bool empty() const { return length_ == 0; } void clear() { ptr_ = NULL; length_ = 0; } void set(const char* data, stringpiece_ssize_type len) { assert(len >= 0); ptr_ = data; length_ = len; } void set(const char* str) { ptr_ = str; if (str != NULL) length_ = CheckedSsizeTFromSizeT(strlen(str)); else length_ = 0; } void set(const void* data, stringpiece_ssize_type len) { ptr_ = reinterpret_cast<const char*>(data); length_ = len; } char operator[](stringpiece_ssize_type i) const { assert(0 <= i); assert(i < length_); return ptr_[i]; } void remove_prefix(stringpiece_ssize_type n) { assert(length_ >= n); ptr_ += n; length_ -= n; } void remove_suffix(stringpiece_ssize_type n) { assert(length_ >= n); length_ -= n; } // returns {-1, 0, 1} int compare(StringPiece x) const { const stringpiece_ssize_type min_size = length_ < x.length_ ? length_ : x.length_; int r = memcmp(ptr_, x.ptr_, min_size); if (r < 0) return -1; if (r > 0) return 1; if (length_ < x.length_) return -1; if (length_ > x.length_) return 1; return 0; } string as_string() const { return ToString(); } // We also define ToString() here, since many other string-like // interfaces name the routine that converts to a C++ string // "ToString", and it's confusing to have the method that does that // for a StringPiece be called "as_string()". We also leave the // "as_string()" method defined here for existing code. string ToString() const { if (ptr_ == NULL) return string(); return string(data(), size()); } void CopyToString(string* target) const; void AppendToString(string* target) const; bool starts_with(StringPiece x) const { return (length_ >= x.length_) && (memcmp(ptr_, x.ptr_, x.length_) == 0); } bool ends_with(StringPiece x) const { return ((length_ >= x.length_) && (memcmp(ptr_ + (length_-x.length_), x.ptr_, x.length_) == 0)); } // standard STL container boilerplate typedef char value_type; typedef const char* pointer; typedef const char& reference; typedef const char& const_reference; typedef size_t size_type; typedef ptrdiff_t difference_type; static const size_type npos; typedef const char* const_iterator; typedef const char* iterator; typedef std::reverse_iterator<const_iterator> const_reverse_iterator; typedef std::reverse_iterator<iterator> reverse_iterator; iterator begin() const { return ptr_; } iterator end() const { return ptr_ + length_; } const_reverse_iterator rbegin() const { return const_reverse_iterator(ptr_ + length_); } const_reverse_iterator rend() const { return const_reverse_iterator(ptr_); } stringpiece_ssize_type max_size() const { return length_; } stringpiece_ssize_type capacity() const { return length_; } // cpplint.py emits a false positive [build/include_what_you_use] stringpiece_ssize_type copy(char* buf, size_type n, size_type pos = 0) const; // NOLINT bool contains(StringPiece s) const; stringpiece_ssize_type find(StringPiece s, size_type pos = 0) const; stringpiece_ssize_type find(char c, size_type pos = 0) const; stringpiece_ssize_type rfind(StringPiece s, size_type pos = npos) const; stringpiece_ssize_type rfind(char c, size_type pos = npos) const; stringpiece_ssize_type find_first_of(StringPiece s, size_type pos = 0) const; stringpiece_ssize_type find_first_of(char c, size_type pos = 0) const { return find(c, pos); } stringpiece_ssize_type find_first_not_of(StringPiece s, size_type pos = 0) const; stringpiece_ssize_type find_first_not_of(char c, size_type pos = 0) const; stringpiece_ssize_type find_last_of(StringPiece s, size_type pos = npos) const; stringpiece_ssize_type find_last_of(char c, size_type pos = npos) const { return rfind(c, pos); } stringpiece_ssize_type find_last_not_of(StringPiece s, size_type pos = npos) const; stringpiece_ssize_type find_last_not_of(char c, size_type pos = npos) const; StringPiece substr(size_type pos, size_type n = npos) const; }; // This large function is defined inline so that in a fairly common case where // one of the arguments is a literal, the compiler can elide a lot of the // following comparisons. inline bool operator==(StringPiece x, StringPiece y) { stringpiece_ssize_type len = x.size(); if (len != y.size()) { return false; } return x.data() == y.data() || len <= 0 || memcmp(x.data(), y.data(), len) == 0; } inline bool operator!=(StringPiece x, StringPiece y) { return !(x == y); } inline bool operator<(StringPiece x, StringPiece y) { const stringpiece_ssize_type min_size = x.size() < y.size() ? x.size() : y.size(); const int r = memcmp(x.data(), y.data(), min_size); return (r < 0) || (r == 0 && x.size() < y.size()); } inline bool operator>(StringPiece x, StringPiece y) { return y < x; } inline bool operator<=(StringPiece x, StringPiece y) { return !(x > y); } inline bool operator>=(StringPiece x, StringPiece y) { return !(x < y); } class StringPiece; template <class X> struct GoodFastHash; // ------------------------------------------------------------------ // Functions used to create STL containers that use StringPiece // Remember that a StringPiece's lifetime had better be less than // that of the underlying string or char*. If it is not, then you // cannot safely store a StringPiece into an STL container // ------------------------------------------------------------------ // SWIG doesn't know how to parse this stuff properly. Omit it. #ifndef SWIG // An implementation of GoodFastHash for StringPiece. See // GoodFastHash values. template<> struct GoodFastHash<StringPiece> { size_t operator()(StringPiece s) const { return HashStringThoroughly(s.data(), static_cast<size_t>(s.size())); } // Less than operator, for MSVC. bool operator()(const StringPiece& s1, const StringPiece& s2) const { return s1 < s2; } static const size_t bucket_size = 4; // These are required by MSVC static const size_t min_buckets = 8; // 4 and 8 are defaults. }; #endif // allow StringPiece to be logged extern std::ostream& operator<<(std::ostream& o, StringPiece piece); } // namespace googleapis #endif // GOOGLEAPIS_STRINGS_STRINGPIECE_H_
{ "content_hash": "96fd07d3db2737add0f884b64f066f78", "timestamp": "", "source": "github", "line_count": 448, "max_line_length": 90, "avg_line_length": 36.160714285714285, "alnum_prop": 0.6795061728395062, "repo_name": "rcari/google-api-cpp-client", "id": "d213de5b2a6bff0fb321574c131526fe227691f5", "size": "16850", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/googleapis/strings/stringpiece.h", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "C", "bytes": "18634" }, { "name": "C++", "bytes": "5931824" }, { "name": "CMake", "bytes": "35236" }, { "name": "Python", "bytes": "60272" } ], "symlink_target": "" }
#region License #endregion using System; using FakeItEasy; using NUnit.Framework; namespace Spring.Web.Support { /// <summary> /// /// </summary> /// <author>Erich Eichinger</author> [TestFixture] public class ResultFactoryRegistryTests { [SetUp] public void SetUp() { ResultFactoryRegistry.Reset(); } [Test] public void SetDefaultFactory() { IResultFactory resultFactory = A.Fake<IResultFactory>(); IResultFactory prevFactory = ResultFactoryRegistry.DefaultResultFactory; Assert.AreSame(prevFactory, ResultFactoryRegistry.SetDefaultFactory(resultFactory)); Assert.AreSame(resultFactory, ResultFactoryRegistry.DefaultResultFactory); // verify default factory is used for unknown result mode A.CallTo(() => resultFactory.CreateResult(null, "resultText")).Returns(new Result()); A.CallTo(() => resultFactory.CreateResult("resultMode", "resultText")).Returns(new Result()); ResultFactoryRegistry.CreateResult("resultText"); ResultFactoryRegistry.CreateResult("resultMode:resultText"); } [Test] public void ResultModeValuesHavePredefinedFactories() { IResultFactory defaultFactory = A.Fake<IResultFactory>(); ResultFactoryRegistry.SetDefaultFactory(defaultFactory); foreach (string resultMode in Enum.GetNames(typeof(ResultMode))) { Assert.IsNotNull(ResultFactoryRegistry.CreateResult(resultMode + ":resultText")); } } [Test] public void SelectsFactoryByResultMode() { IResultFactory resultFactory = A.Fake<IResultFactory>(); ResultFactoryRegistry.RegisterResultMode("resultMode", resultFactory); Result result = new Result(); // verify factory registry does not allow nulls to be returned A.CallTo(() => resultFactory.CreateResult("resultMode", "resultText")).Returns(result); Assert.AreSame(result, ResultFactoryRegistry.CreateResult("resultMode:resultText")); } [Test] public void BailsOnNullReturnedFromFactory() { IResultFactory resultFactory = A.Fake<IResultFactory>(); ResultFactoryRegistry.RegisterResultMode("resultMode", resultFactory); // verify factory registry does not allow nulls to be returned A.CallTo(() => resultFactory.CreateResult("resultMode", "resultText")).Returns(null); Assert.Throws<ArgumentNullException>(() => ResultFactoryRegistry.CreateResult("resultMode:resultText")); } } }
{ "content_hash": "0f159f114aee88a12e56d274a7cbb77d", "timestamp": "", "source": "github", "line_count": 83, "max_line_length": 116, "avg_line_length": 34.024096385542165, "alnum_prop": 0.6242917847025495, "repo_name": "spring-projects/spring-net", "id": "ce43268e80b3c9011b3509a57b64852d89af4e78", "size": "3461", "binary": false, "copies": "1", "ref": "refs/heads/main", "path": "test/Spring/Spring.Web.Tests/Web/Support/ResultFactoryRegistryTests.cs", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "ASP.NET", "bytes": "12885" }, { "name": "Batchfile", "bytes": "7429" }, { "name": "C#", "bytes": "14211634" }, { "name": "GAP", "bytes": "11799" }, { "name": "HTML", "bytes": "108969" }, { "name": "PowerShell", "bytes": "10717" }, { "name": "Rich Text Format", "bytes": "304516" }, { "name": "Shell", "bytes": "2294" }, { "name": "Smalltalk", "bytes": "69094" }, { "name": "TSQL", "bytes": "5099" }, { "name": "Visual Basic .NET", "bytes": "2042" }, { "name": "XSLT", "bytes": "40390" } ], "symlink_target": "" }
using System; using System.Diagnostics; using System.IO; using System.Text; using Fairweather.Service; namespace Fairweather.Service { public class Pos_Notepad_Printer : Pos_Printer_Engine { static readonly string nl = Environment.NewLine; readonly StringBuilder sb; public StringBuilder Buffer { get { return sb; } } readonly string m_filename; #if WINFORMS Func<IDisposable> Make_Show_Hide_Form(System.Windows.Forms.Form form) { var tmp_form = form; if (tmp_form == null) return () => On_Dispose.Nothing; Action show = () => { if (!tmp_form.IsDisposed && !tmp_form.Visible) tmp_form.Show(); }; return () => { if (tmp_form.IsDisposed) return On_Dispose.Nothing; if (Open_File) tmp_form.Hide(); return new On_Dispose(show); }; } public Pos_Notepad_Printer( System.Windows.Forms.Form form, int capacity, string filename) { Show_Hide_Form = Make_Show_Hide_Form(form); #else public Pos_Notepad_Printer( int capacity, string filename) { #endif // WINFORMS sb = new StringBuilder(capacity); m_filename = filename; Print_Tags = Tag_Levels.All; Make_Backup = true; } readonly Func<IDisposable> Show_Hide_Form = () => On_Dispose.Nothing; static string Tag(string name) { return Tag(name, ""); } public enum Tag_Levels { None, Images = 0x1, Fonts = 0x2, Misc = 0x4, Barcodes = 0x8, All = -1, } public Tag_Levels Print_Tags { get; set; } public bool Make_Backup { get; set; } public bool Open_File { get; set; } public bool Open_Dir { get; set; } static string Tag(string name, string content) { if (content.IsNullOrEmpty()) return "[{0}]".spf(name); else return "[{0}: {1}]".spf(name, content); } protected override void Print_Image_Inner(string filename, HAlignment alignment) { if (!Print_Tags.Contains(Tag_Levels.Images)) return; Print_Text(Tag("image", filename)); } public override void Print_Barcode(string barcode) { if (!Print_Tags.Contains(Tag_Levels.Barcodes)) return; Print_Text(Tag("barcode", barcode)); } public override void New_Page() { if (!Print_Tags.Contains(Tag_Levels.Misc)) return; Print_Text(Tag("new page")); } public override void Open_Cash_Drawer() { if (!Print_Tags.Contains(Tag_Levels.Misc)) return; Print_Text(Tag("cash drawer opened")); } public override bool Initialized { get { return true; } } internal override bool Initialize_Inner() { return true; } internal override bool Leave_Inner() { using (var stream = File.CreateText(m_filename)) { if (stream == null) return false; stream.Write(sb.ToString()); sb.Length = 0; } if (Open_File) { #if WINFORMS using (Show_Hide_Form()) #endif H.Run_Notepad(m_filename, true, true); } if (Open_Dir) { var dir = Directory.GetParent(m_filename).FullName; Process.Start(dir); // H.Open_In_Explorer(dir, false, false, m_filename); } return true; } public override bool Supports_Font(Pos_Print_Font _) { return false; } public override void Set_Font(Pos_Print_Font font) { if (!Print_Tags.Contains(Tag_Levels.Fonts)) return; Print_Text(Tag("font", font.ToString())); } public override bool Is_Async { get { return false; } } void Next_Line() { sb.Append(nl); } public override void Print_Text(string text) { int len = text.Safe_Length(); if (len == 0) return; int ii, jj = 0; for (ii = 0; ii < len; ) { for (jj = 0; jj < Characters_Per_Line && ii < len; ++ii, ++jj) { sb.Append(text[ii]); } if (ii < len) Next_Line(); } var rem = Characters_Per_Line - jj; if (rem > 0 && len != 0) sb.Append(space.Repeat(rem)); Next_Line(); } public override object Printer_Object { get { throw new InvalidOperationException(); } } /* public override byte Characters_Per_Line { get { return 48; } } /*/ protected override byte Characters_Per_Line { get { return cst_def_chars_per_line; } } //*/ } }
{ "content_hash": "cbf87e976124c00979ca745ec4649604", "timestamp": "", "source": "github", "line_count": 235, "max_line_length": 96, "avg_line_length": 23.68936170212766, "alnum_prop": 0.46200826297826475, "repo_name": "staafl/dotnet-bclext", "id": "caa3d46cd30a1f7ae3d571c11fbb8e9eab8d36a9", "size": "5569", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "to-integrate/libcs_staaflutil/Business/Point_Of_Sales/Pos_Notepad_Printer.cs", "mode": "33188", "license": "mit", "language": [ { "name": "C#", "bytes": "5202912" }, { "name": "Shell", "bytes": "55" } ], "symlink_target": "" }
PlatformIO Core =============== .. image:: https://github.com/platformio/platformio-core/workflows/Core/badge.svg :target: https://docs.platformio.org/en/latest/core/index.html :alt: CI Build for PlatformIO Core .. image:: https://github.com/platformio/platformio-core/workflows/Docs/badge.svg :target: https://docs.platformio.org?utm_source=github&utm_medium=core :alt: CI Build for Docs .. image:: https://github.com/platformio/platformio-core/workflows/Examples/badge.svg :target: https://github.com/platformio/platformio-examples :alt: CI Build for dev-platform examples .. image:: https://github.com/platformio/platformio-core/workflows/Projects/badge.svg :target: https://docs.platformio.org/en/latest/tutorials/index.html#projects :alt: CI Build for the Community Projects .. image:: https://img.shields.io/pypi/v/platformio.svg :target: https://pypi.python.org/pypi/platformio/ :alt: Latest Version .. image:: https://img.shields.io/badge/PlatformIO-Labs-orange.svg :alt: PlatformIO Labs :target: https://piolabs.com/?utm_source=github&utm_medium=core **Quick Links:** `Homepage <https://platformio.org?utm_source=github&utm_medium=core>`_ | `PlatformIO IDE <https://platformio.org/platformio-ide?utm_source=github&utm_medium=core>`_ | `Registry <https://registry.platformio.org?utm_source=github&utm_medium=core>`_ | `Project Examples <https://github.com/platformio/platformio-examples/>`__ | `Docs <https://docs.platformio.org?utm_source=github&utm_medium=core>`_ | `Donate <https://platformio.org/donate?utm_source=github&utm_medium=core>`_ | `Contact Us <https://piolabs.com/?utm_source=github&utm_medium=core>`_ **Social:** `LinkedIn <https://www.linkedin.com/company/platformio/>`_ | `Twitter <https://twitter.com/PlatformIO_Org>`_ | `Facebook <https://www.facebook.com/platformio>`_ | `Community Forums <https://community.platformio.org?utm_source=github&utm_medium=core>`_ .. image:: https://raw.githubusercontent.com/platformio/platformio-web/develop/app/images/platformio-ide-laptop.png :target: https://platformio.org?utm_source=github&utm_medium=core `PlatformIO <https://platformio.org>`_ is a professional collaborative platform for embedded development. **A place where Developers and Teams have true Freedom! No more vendor lock-in!** * Open source, maximum permissive Apache 2.0 license * Cross-platform IDE and Unified Debugger * Static Code Analyzer and Remote Unit Testing * Multi-platform and Multi-architecture Build System * Firmware File Explorer and Memory Inspection Get Started ----------- * `What is PlatformIO? <https://docs.platformio.org/en/latest/what-is-platformio.html?utm_source=github&utm_medium=core>`_ * `PlatformIO IDE <https://platformio.org/platformio-ide?utm_source=github&utm_medium=core>`_ * `PlatformIO Core (CLI) <https://docs.platformio.org/en/latest/core.html?utm_source=github&utm_medium=core>`_ * `Project Examples <https://github.com/platformio/platformio-examples?utm_source=github&utm_medium=core>`__ Solutions --------- * `Library Management <https://docs.platformio.org/en/latest/librarymanager/index.html?utm_source=github&utm_medium=core>`_ * `Desktop IDEs Integration <https://docs.platformio.org/en/latest/ide.html?utm_source=github&utm_medium=core>`_ * `Continuous Integration <https://docs.platformio.org/en/latest/ci/index.html?utm_source=github&utm_medium=core>`_ **Advanced** * `Debugging <https://docs.platformio.org/en/latest/plus/debugging.html?utm_source=github&utm_medium=core>`_ * `Unit Testing <https://docs.platformio.org/en/latest/advanced/unit-testing/index.html?utm_source=github&utm_medium=core>`_ * `Static Code Analysis <https://docs.platformio.org/en/latest/plus/pio-check.html?utm_source=github&utm_medium=core>`_ * `Remote Development <https://docs.platformio.org/en/latest/plus/pio-remote.html?utm_source=github&utm_medium=core>`_ Registry -------- * `Libraries <https://registry.platformio.org/search?t=library&utm_source=github&utm_medium=core>`_ * `Development Platforms <https://registry.platformio.org/search?t=platform&utm_source=github&utm_medium=core>`_ * `Development Tools <https://registry.platformio.org/search?t=tool&utm_source=github&utm_medium=core>`_ Contributing ------------ See `contributing guidelines <https://github.com/platformio/platformio/blob/develop/CONTRIBUTING.md>`_. Telemetry / Privacy Policy -------------------------- Share minimal diagnostics and usage information to help us make PlatformIO better. It is enabled by default. For more information see: * `Telemetry Setting <https://docs.platformio.org/en/latest/userguide/cmd_settings.html?utm_source=github&utm_medium=core#enable-telemetry>`_ License ------- Copyright (c) 2014-present PlatformIO <contact@platformio.org> The PlatformIO is licensed under the permissive Apache 2.0 license, so you can use it in both commercial and personal projects with confidence. .. image:: https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner-direct.svg :target: https://github.com/vshymanskyy/StandWithUkraine/blob/main/docs/README.md :alt: SWUbanner
{ "content_hash": "2a3ecbdb68a7e9dc74f360dadd099e6a", "timestamp": "", "source": "github", "line_count": 101, "max_line_length": 141, "avg_line_length": 50.71287128712871, "alnum_prop": 0.7508785630613042, "repo_name": "platformio/platformio-core", "id": "cd3454f52d1c6e3a15b674bf0cec557272d2d93c", "size": "5122", "binary": false, "copies": "1", "ref": "refs/heads/develop", "path": "README.rst", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "C++", "bytes": "2005" }, { "name": "Makefile", "bytes": "710" }, { "name": "Processing", "bytes": "101" }, { "name": "Python", "bytes": "1345194" }, { "name": "Smarty", "bytes": "52334" } ], "symlink_target": "" }
class Postgresql < Formula desc "Object-relational database system" homepage "https://www.postgresql.org/" url "https://ftp.postgresql.org/pub/source/v14.5/postgresql-14.5.tar.bz2" sha256 "d4f72cb5fb857c9a9f75ec8cf091a1771272802f2178f0b2e65b7b6ff64f4a30" license "PostgreSQL" head "https://github.com/postgres/postgres.git", branch: "master" livecheck do url "https://ftp.postgresql.org/pub/source/" regex(%r{href=["']?v?(\d+(?:\.\d+)+)/?["' >]}i) end bottle do sha256 arm64_monterey: "a5e6220e0a3307c9039883a54b58867bccc93e09cc27c701598bf3bfd791e821" sha256 arm64_big_sur: "0317e7a1b3a3cc5c377e07766009cf4204215757931a95fa4f4e06d56efa13f7" sha256 monterey: "79424d1734dec0e6df0a88d58c3f2311455e584fc51d5918fea9533e0082ca43" sha256 big_sur: "329986717572e1d01132bf028007a5450493f07a6713ae4e5e044cf12efd2ef6" sha256 catalina: "295b1598b158ca020be23a2c7300b2e498046d250193f98dbc065ebded4c6123" sha256 x86_64_linux: "1250bdb04d8a2f9276b299ff99982147592f0f174145fade4543c8f79876038b" end depends_on "pkg-config" => :build depends_on "icu4c" # GSSAPI provided by Kerberos.framework crashes when forked. # See https://github.com/Homebrew/homebrew-core/issues/47494. depends_on "krb5" depends_on "lz4" depends_on "openssl@1.1" depends_on "readline" uses_from_macos "libxml2" uses_from_macos "libxslt" uses_from_macos "openldap" uses_from_macos "perl" on_linux do depends_on "linux-pam" depends_on "util-linux" end def install ENV.prepend "LDFLAGS", "-L#{Formula["openssl@1.1"].opt_lib} -L#{Formula["readline"].opt_lib}" ENV.prepend "CPPFLAGS", "-I#{Formula["openssl@1.1"].opt_include} -I#{Formula["readline"].opt_include}" args = %W[ --disable-debug --prefix=#{prefix} --datadir=#{HOMEBREW_PREFIX}/share/postgresql --libdir=#{HOMEBREW_PREFIX}/lib --includedir=#{HOMEBREW_PREFIX}/include --sysconfdir=#{etc} --docdir=#{doc} --enable-thread-safety --with-gssapi --with-icu --with-ldap --with-libxml --with-libxslt --with-lz4 --with-openssl --with-pam --with-perl --with-uuid=e2fs ] if OS.mac? args += %w[ --with-bonjour --with-tcl ] end # PostgreSQL by default uses xcodebuild internally to determine this, # which does not work on CLT-only installs. args << "PG_SYSROOT=#{MacOS.sdk_path}" if MacOS.sdk_root_needed? system "./configure", *args system "make" system "make", "install-world", "datadir=#{pkgshare}", "libdir=#{lib}", "pkglibdir=#{lib}/postgresql", "includedir=#{include}", "pkgincludedir=#{include}/postgresql", "includedir_server=#{include}/postgresql/server", "includedir_internal=#{include}/postgresql/internal" if OS.linux? inreplace lib/"postgresql/pgxs/src/Makefile.global", "LD = #{HOMEBREW_PREFIX}/Homebrew/Library/Homebrew/shims/linux/super/ld", "LD = #{HOMEBREW_PREFIX}/bin/ld" end end def post_install (var/"log").mkpath postgresql_datadir.mkpath # Don't initialize database, it clashes when testing other PostgreSQL versions. return if ENV["HOMEBREW_GITHUB_ACTIONS"] system "#{bin}/initdb", "--locale=C", "-E", "UTF-8", postgresql_datadir unless pg_version_exists? end def postgresql_datadir var/"postgres" end def postgresql_log_path var/"log/postgres.log" end def pg_version_exists? (postgresql_datadir/"PG_VERSION").exist? end def caveats <<~EOS To migrate existing data from a previous major version of PostgreSQL run: brew postgresql-upgrade-database This formula has created a default database cluster with: initdb --locale=C -E UTF-8 #{postgresql_datadir} For more details, read: https://www.postgresql.org/docs/#{version.major}/app-initdb.html EOS end service do run [opt_bin/"postgres", "-D", var/"postgres"] keep_alive true log_path var/"log/postgres.log" error_log_path var/"log/postgres.log" working_dir HOMEBREW_PREFIX end test do system "#{bin}/initdb", testpath/"test" unless ENV["HOMEBREW_GITHUB_ACTIONS"] assert_equal "#{HOMEBREW_PREFIX}/share/postgresql", shell_output("#{bin}/pg_config --sharedir").chomp assert_equal "#{HOMEBREW_PREFIX}/lib", shell_output("#{bin}/pg_config --libdir").chomp assert_equal "#{HOMEBREW_PREFIX}/lib/postgresql", shell_output("#{bin}/pg_config --pkglibdir").chomp end end
{ "content_hash": "4477cb670dca77984a5419e04e2014e4", "timestamp": "", "source": "github", "line_count": 144, "max_line_length": 106, "avg_line_length": 33.083333333333336, "alnum_prop": 0.646095717884131, "repo_name": "nbari/homebrew-core", "id": "8364c25963f980770f01080d9e3c2b0f1c0265b6", "size": "4764", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "Formula/postgresql.rb", "mode": "33188", "license": "bsd-2-clause", "language": [ { "name": "Perl", "bytes": "740" }, { "name": "Ruby", "bytes": "14855357" } ], "symlink_target": "" }
@implementation XSCell { UIView * customV; } - (void)awakeFromNib { [super awakeFromNib]; // Initialization code } -(instancetype)initWithFrame:(CGRect)frame { if (self = [super initWithFrame:frame]) { [self customView:frame]; } return self; } -(void)customView:(CGRect)frame { customV = [[UIView alloc]initWithFrame:CGRectMake(10, 10, frame.size.width-20, frame.size.height-10)]; customV.backgroundColor = [UIColor whiteColor]; [self addSubview:customV]; [self addTheBtnV]; [self addTheRighgtV]; [self addTheBlueV]; [self addTheButtomV]; } -(void)addTheBtnV { _btnV = [[UIView alloc]initWithFrame:CGRectMake(0, 0, 150, 61)]; _btnV.backgroundColor = [UIColor clearColor]; _btnV.userInteractionEnabled = YES; [customV addSubview:_btnV]; _headImg = [[UIImageView alloc]initWithFrame:CGRectMake(10, 10, 41, 41)]; _headImg.contentMode = UIViewContentModeScaleAspectFill; [_btnV addSubview:_headImg]; [customV addSubview:_btnV]; _userNameLab = [[UILabel alloc]initWithFrame:CGRectMake(_headImg.frame.origin.x+_headImg.frame.size.width+10, 7, 55, 25)]; _userNameLab.font = [UIFont systemFontOfSize:15]; _userNameLab.textColor = [UIColor blackColor]; _userNameLab.textAlignment = NSTextAlignmentLeft; [_btnV addSubview:_userNameLab]; UIImageView * posImg = [[UIImageView alloc]initWithFrame:CGRectMake(_userNameLab.frame.origin.x, 37, 11, 11)]; posImg.image = [UIImage imageNamed:@"dizhi"]; [_btnV addSubview:posImg]; _positionLab = [[UILabel alloc]initWithFrame:CGRectMake(_userNameLab.frame.origin.x+16, 37, 49, 11)]; _positionLab.font = [UIFont systemFontOfSize:12]; _positionLab.textColor = [UIColor colorWithWhite:0.514 alpha:1.000]; _positionLab.textAlignment = NSTextAlignmentLeft; [_btnV addSubview:_positionLab]; _renzhImg = [[UIImageView alloc]initWithFrame:CGRectMake(_userNameLab.frame.origin.x+_userNameLab.frame.size.width, 13, 14, 14)]; _renzhImg.image = [UIImage imageNamed:@"renzhen"]; [_btnV addSubview:_renzhImg]; } -(void)addTheRighgtV { _timeLab = [[UILabel alloc]initWithFrame:CGRectMake(customV.frame.size.width-160, 7, 150, 20)]; _timeLab.backgroundColor = [UIColor clearColor]; _timeLab.font = [UIFont systemFontOfSize:13]; _timeLab.textColor = [UIColor colorWithWhite:0.514 alpha:1.000]; _timeLab.textAlignment = NSTextAlignmentRight; [customV addSubview:_timeLab]; _lookLab = [[UILabel alloc]initWithFrame:CGRectMake(customV.frame.size.width-140, 31.5, 60, 20)]; _lookLab.backgroundColor = [UIColor clearColor]; _lookLab.font = [UIFont systemFontOfSize:12]; _lookLab.textAlignment = NSTextAlignmentCenter; _lookLab.textColor = [UIColor colorWithWhite:0.514 alpha:1.000]; [customV addSubview:_lookLab]; _commentLab = [[UILabel alloc]initWithFrame:CGRectMake(customV.frame.size.width-70, 31.5, 60, 20)]; _commentLab.backgroundColor = [UIColor clearColor]; _commentLab.textAlignment = NSTextAlignmentRight; _commentLab.font = [UIFont systemFontOfSize:12]; _commentLab.textColor = [UIColor colorWithWhite:0.514 alpha:1.000]; [customV addSubview:_commentLab]; } -(void)addTheBlueV { _blueV = [[UIView alloc]initWithFrame:CGRectMake(0, 61, customV.frame.size.width, 168)]; _blueV.backgroundColor = [UIColor colorWithRed:0.455 green:0.675 blue:0.878 alpha:1.000]; _blueV.userInteractionEnabled = YES; [customV addSubview:_blueV]; _hanyeBtn = [UIButton buttonWithType:UIButtonTypeCustom]; _hanyeBtn.frame = CGRectMake(0, 6, 45, 16); _hanyeBtn.titleLabel.font = [UIFont systemFontOfSize:12]; [_hanyeBtn setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal]; [_hanyeBtn setBackgroundImage:[UIImage imageNamed:@"yuanxing"] forState:UIControlStateNormal]; _hanyeBtn.titleLabel.textAlignment = NSTextAlignmentCenter; _hanyeBtn.userInteractionEnabled = NO; [_blueV addSubview:_hanyeBtn]; _titLab = [[UILabel alloc]initWithFrame:CGRectMake(0, 47, _blueV.frame.size.width, 25)]; _titLab.backgroundColor = [UIColor clearColor]; _titLab.textAlignment = NSTextAlignmentCenter; _titLab.font = [UIFont systemFontOfSize:17]; _titLab.textColor = [UIColor whiteColor]; [_blueV addSubview:_titLab]; UIView * hxV = [[UIView alloc]initWithFrame:CGRectMake(0, 110, _blueV.frame.size.width, 1)]; hxV.backgroundColor = [UIColor colorWithWhite:0.934 alpha:0.5000]; [_blueV addSubview:hxV]; UILabel * qwbcLab = [[UILabel alloc]initWithFrame:CGRectMake((_blueV.frame.size.width-90)/2, 100, 90, 20)]; qwbcLab.backgroundColor = [UIColor colorWithRed:0.455 green:0.675 blue:0.878 alpha:1.000]; qwbcLab.textAlignment = NSTextAlignmentCenter; qwbcLab.textColor = [UIColor colorWithRed:0.925 green:0.922 blue:0.922 alpha:1.000]; qwbcLab.font = [UIFont systemFontOfSize:11]; qwbcLab.text = @"成交报酬(元)"; [_blueV addSubview:qwbcLab]; _moneyLab = [[UILabel alloc]initWithFrame:CGRectMake(0, 120, _blueV.frame.size.width,38)]; _moneyLab.backgroundColor = [UIColor clearColor]; _moneyLab.font = [UIFont boldSystemFontOfSize:24]; _moneyLab.textAlignment = NSTextAlignmentCenter; _moneyLab.textColor = [UIColor whiteColor]; [_blueV addSubview:_moneyLab]; } -(void)addTheButtomV { _xqqdLab = [[UILabel alloc]initWithFrame:CGRectMake(5, 229, 130, 41)]; _xqqdLab.backgroundColor = [UIColor clearColor]; _xqqdLab.textAlignment = NSTextAlignmentLeft; _xqqdLab.font = [UIFont systemFontOfSize:13]; [customV addSubview:_xqqdLab]; _lqLab = [[UILabel alloc]initWithFrame:CGRectMake(135, 229, customV.frame.size.width-135-5, 41)]; _lqLab.backgroundColor = [UIColor clearColor]; _lqLab.textAlignment = NSTextAlignmentRight; _lqLab.font = [UIFont systemFontOfSize:13]; [customV addSubview:_lqLab]; } - (void)setSelected:(BOOL)selected animated:(BOOL)animated { [super setSelected:selected animated:animated]; // Configure the view for the selected state } @end
{ "content_hash": "16952ed17fd49fa4690a69af488d46ac", "timestamp": "", "source": "github", "line_count": 145, "max_line_length": 133, "avg_line_length": 42.19310344827586, "alnum_prop": 0.7090552468126838, "repo_name": "DavidchanForZhimai/Zhimai_V2.0", "id": "7f8ad0e6a22bf0fd63691d4b38adf27f040dd200", "size": "6276", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "Lebao/Discover(发现相关)/ViewControllers/线索/view/XSCell.m", "mode": "33261", "license": "apache-2.0", "language": [ { "name": "C", "bytes": "165582" }, { "name": "HTML", "bytes": "110542" }, { "name": "JavaScript", "bytes": "19061" }, { "name": "Objective-C", "bytes": "4300436" } ], "symlink_target": "" }
export var x = () => this.window; //// [topLevelLambda4.js] define(["require", "exports"], function (require, exports) { var _this = this; exports.x = function () { return _this.window; }; });
{ "content_hash": "5fee1ededb4b40b97414ec5d43afcafb", "timestamp": "", "source": "github", "line_count": 7, "max_line_length": 60, "avg_line_length": 28.857142857142858, "alnum_prop": 0.6039603960396039, "repo_name": "freedot/tstolua", "id": "bf5e3fb4017b531575411d8680042b7cd1166bb4", "size": "228", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "tests/baselines/reference/topLevelLambda4.js", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Batchfile", "bytes": "1125" }, { "name": "HTML", "bytes": "4659" }, { "name": "JavaScript", "bytes": "85" }, { "name": "Lua", "bytes": "68588" }, { "name": "PowerShell", "bytes": "2780" }, { "name": "TypeScript", "bytes": "22883724" } ], "symlink_target": "" }
import React from 'react' import HomeContainer from 'containers/HomeContainer' export default class HomePage extends React.Component { render() { return ( <HomeContainer /> ) } }
{ "content_hash": "a43fc61c73c9fd41fa1dc8438335f721", "timestamp": "", "source": "github", "line_count": 11, "max_line_length": 55, "avg_line_length": 19.727272727272727, "alnum_prop": 0.6359447004608295, "repo_name": "OR13/car2go", "id": "d5e6d7d6217cff57ff07041d1cfcaedec00501fc", "size": "217", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/routes/Home/HomePage.js", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "13316" }, { "name": "HTML", "bytes": "445" }, { "name": "JavaScript", "bytes": "176931" } ], "symlink_target": "" }
/* globals describe, before, beforeEach, after, afterEach, it */ 'use strict'; var chai = require('chai'); var assert = chai.assert; var expect = chai.expect; chai.should(); chai.use(require('chai-things')); //http://chaijs.com/plugins/chai-things describe('selenium-helpers', function () { before('before', function () { }); beforeEach('beforeEach', function () { }); afterEach('afterEach', function () { }); after('after', function () { }); it('should have unit test', function () { assert(false, 'Please add unit tests.'); }); });
{ "content_hash": "a6b8a00c1cc4745b000ada0ad3ead62a", "timestamp": "", "source": "github", "line_count": 36, "max_line_length": 73, "avg_line_length": 15.944444444444445, "alnum_prop": 0.6202090592334495, "repo_name": "alykoshin/selenium-helpers", "id": "c48f203039e52375d7f0aec3f9446cd5e483657b", "size": "574", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "test/index.js", "mode": "33188", "license": "mit", "language": [ { "name": "JavaScript", "bytes": "19472" } ], "symlink_target": "" }
using System; using System.ComponentModel.Composition; using System.IO; using System.Windows.Media; using GameRes.Utility; namespace GameRes.Formats.Lilim { [Export(typeof(ImageFormat))] public class AbmFormat : ImageFormat { public override string Tag { get { return "ABM"; } } public override string Description { get { return "LiLiM/Le.Chocolat compressed bitmap"; } } public override uint Signature { get { return 0; } } public override ImageMetaData ReadMetaData (IBinaryStream stream) { var header = stream.ReadHeader (0x46); if ('B' != header[0] || 'M' != header[1]) return null; int type = header.ToInt16 (0x1C); uint frame_offset; int bpp = 24; if (1 == type || 2 == type) { int count = header.ToUInt16 (0x3A); if (count > 0xFF) return null; frame_offset = header.ToUInt32 (0x42); } else if (32 == type || 24 == type || 8 == type || -8 == type) { uint unpacked_size = header.ToUInt32 (2); if (0 == unpacked_size || unpacked_size == stream.Length) // probably an ordinary bmp file return null; frame_offset = header.ToUInt32 (0xA); if (8 == type) bpp = 8; } else return null; if (frame_offset >= stream.Length) return null; return new AbmImageData { Width = header.ToUInt32 (0x12), Height = header.ToUInt32 (0x16), BPP = bpp, Mode = type, BaseOffset = frame_offset, }; } public override ImageData Read (IBinaryStream stream, ImageMetaData info) { using (var reader = new AbmReader (stream, (AbmImageData)info)) return reader.Image; } public override void Write (Stream file, ImageData image) { throw new System.NotImplementedException ("AbmFormat.Write not implemented"); } } }
{ "content_hash": "61e8282cb494c6112af7d02072204557", "timestamp": "", "source": "github", "line_count": 65, "max_line_length": 106, "avg_line_length": 34.55384615384615, "alnum_prop": 0.5080142475512022, "repo_name": "morkt/GARbro", "id": "608c7e5dff5c42a102b9cdf05b4004bb086636ec", "size": "3492", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "ArcFormats/Lilim/ImageABM.cs", "mode": "33188", "license": "mit", "language": [ { "name": "C#", "bytes": "8167986" }, { "name": "Lex", "bytes": "533" }, { "name": "NSIS", "bytes": "5126" }, { "name": "Perl", "bytes": "1948" }, { "name": "Yacc", "bytes": "792" } ], "symlink_target": "" }
/** * (created at 2011-1-23) */ package org.opencloudb.paser.ast.expression.function.datetime; import java.util.List; import org.opencloudb.paser.ast.expression.Expression; import org.opencloudb.paser.ast.expression.function.FunctionExpression; import org.opencloudb.paser.ast.expression.function.literal.IntervalPrimary; import org.opencloudb.paser.visitor.SQLASTVisitor; /** * @author mycat */ public class Timestampadd extends FunctionExpression { private IntervalPrimary.Unit unit; public Timestampadd(IntervalPrimary.Unit unit, List<Expression> arguments) { super("TIMESTAMPADD", arguments); this.unit = unit; } public IntervalPrimary.Unit getUnit() { return unit; } @Override public FunctionExpression constructFunction(List<Expression> arguments) { throw new UnsupportedOperationException("function of Timestampadd has special arguments"); } @Override public void accept(SQLASTVisitor visitor) { visitor.visit(this); } }
{ "content_hash": "cbc15989774926f3210b197be3723ce4", "timestamp": "", "source": "github", "line_count": 39, "max_line_length": 98, "avg_line_length": 27.23076923076923, "alnum_prop": 0.7080979284369114, "repo_name": "xingh/opencloudb", "id": "abc697f27a0fb7783820bdfb6dd7a6fc60717afb", "size": "1686", "binary": false, "copies": "4", "ref": "refs/heads/master", "path": "src/main/java/org/opencloudb/paser/ast/expression/function/datetime/Timestampadd.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Java", "bytes": "2897952" }, { "name": "Shell", "bytes": "10250" } ], "symlink_target": "" }
function LuaScriptInstance() { Object.defineProperties(this, { 'tableRef': { enumerable: true, configurable: true, get: LuaScriptInstance.prototype.__get_tableRef, set: LuaScriptInstance.prototype.__set_tableRef} }) } LuaScriptInstance.prototype.__get_tableRef = function() { return Polycode.LuaScriptInstance__get_tableRef(this.__ptr) } LuaScriptInstance.prototype.__set_tableRef = function(val) { Polycode.LuaScriptInstance__set_tableRef(this.__ptr, val) } Duktape.fin(LuaScriptInstance.prototype, function (x) { if (x === LuaScriptInstance.prototype) { return; } Polycode.LuaScriptInstance__delete(x.__ptr) })
{ "content_hash": "7c0088ef9a0f13e5905e1492fa118b80", "timestamp": "", "source": "github", "line_count": 19, "max_line_length": 151, "avg_line_length": 32.94736842105263, "alnum_prop": 0.7539936102236422, "repo_name": "fodinabor/Polycode", "id": "d717f7ae40ff460ca965a9897b99841efcc5007c", "size": "626", "binary": false, "copies": "1", "ref": "refs/heads/goodbye_cmake", "path": "bindings/javascript/Polycode/LuaScriptInstance.js", "mode": "33188", "license": "mit", "language": [ { "name": "C", "bytes": "5457500" }, { "name": "C++", "bytes": "11872995" }, { "name": "CMake", "bytes": "6913" }, { "name": "GLSL", "bytes": "60874" }, { "name": "Java", "bytes": "172" }, { "name": "JavaScript", "bytes": "289057" }, { "name": "Lua", "bytes": "303804" }, { "name": "Makefile", "bytes": "69358" }, { "name": "Objective-C", "bytes": "99502" }, { "name": "Objective-C++", "bytes": "66719" } ], "symlink_target": "" }
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>search-trees: Not compatible 👼</title> <link rel="shortcut icon" type="image/png" href="../../../../../favicon.png" /> <link href="../../../../../bootstrap.min.css" rel="stylesheet"> <link href="../../../../../bootstrap-custom.css" rel="stylesheet"> <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet"> <script src="../../../../../moment.min.js"></script> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--> </head> <body> <div class="container"> <div class="navbar navbar-default" role="navigation"> <div class="container-fluid"> <div class="navbar-header"> <a class="navbar-brand" href="../../../../.."><i class="fa fa-lg fa-flag-checkered"></i> Coq bench</a> </div> <div id="navbar" class="collapse navbar-collapse"> <ul class="nav navbar-nav"> <li><a href="../..">clean / released</a></li> <li class="active"><a href="">8.4.6~camlp4 / search-trees - 8.5.0</a></li> </ul> </div> </div> </div> <div class="article"> <div class="row"> <div class="col-md-12"> <a href="../..">« Up</a> <h1> search-trees <small> 8.5.0 <span class="label label-info">Not compatible 👼</span> </small> </h1> <p>📅 <em><script>document.write(moment("2022-11-06 19:57:14 +0000", "YYYY-MM-DD HH:mm:ss Z").fromNow());</script> (2022-11-06 19:57:14 UTC)</em><p> <h2>Context</h2> <pre># Packages matching: installed # Name # Installed # Synopsis base-bigarray base base-num base Num library distributed with the OCaml compiler base-ocamlbuild base OCamlbuild binary and libraries distributed with the OCaml compiler base-threads base base-unix base camlp4 4.02+7 Camlp4 is a system for writing extensible parsers for programming languages conf-findutils 1 Virtual package relying on findutils conf-which 1 Virtual package relying on which coq 8.4.6~camlp4 Formal proof management system. num 0 The Num library for arbitrary-precision integer and rational arithmetic ocaml 4.02.3 The OCaml compiler (virtual package) ocaml-base-compiler 4.02.3 Official 4.02.3 release ocaml-config 1 OCaml Switch Configuration ocamlbuild 0 Build system distributed with the OCaml compiler since OCaml 3.10.0 # opam file: opam-version: &quot;2.0&quot; maintainer: &quot;matej.kosik@inria.fr&quot; homepage: &quot;https://github.com/coq-contribs/search-trees&quot; license: &quot;LGPL 2&quot; build: [make &quot;-j%{jobs}%&quot;] install: [make &quot;install&quot;] remove: [&quot;rm&quot; &quot;-R&quot; &quot;%{lib}%/coq/user-contrib/SearchTrees&quot;] depends: [ &quot;ocaml&quot; &quot;coq&quot; {&gt;= &quot;8.5&quot; &amp; &lt; &quot;8.6~&quot;} ] tags: [ &quot;keyword:binary search trees&quot; &quot;category:Computer Science/Data Types and Data Structures&quot; &quot;category:Miscellaneous/Extracted Programs/Data structures&quot; ] authors: [ &quot;Pierre Castéran &lt;&gt;&quot; ] bug-reports: &quot;https://github.com/coq-contribs/search-trees/issues&quot; dev-repo: &quot;git+https://github.com/coq-contribs/search-trees.git&quot; synopsis: &quot;Binary Search Trees&quot; description: &quot;Algorithms for collecting, searching, inserting and deleting elements in binary search trees on Z&quot; flags: light-uninstall url { src: &quot;https://github.com/coq-contribs/search-trees/archive/v8.5.0.tar.gz&quot; checksum: &quot;md5=a380d56da6baa4b60a68173226ddec9a&quot; } </pre> <h2>Lint</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Dry install 🏜️</h2> <p>Dry install with the current Coq version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam install -y --show-action coq-search-trees.8.5.0 coq.8.4.6~camlp4</code></dd> <dt>Return code</dt> <dd>5120</dd> <dt>Output</dt> <dd><pre>[NOTE] Package coq is already installed (current version is 8.4.6~camlp4). The following dependencies couldn&#39;t be met: - coq-search-trees -&gt; coq &gt;= 8.5 -&gt; ocaml &gt;= 4.05.0 base of this switch (use `--unlock-base&#39; to force) Your request can&#39;t be satisfied: - No available version of coq satisfies the constraints No solution found, exiting </pre></dd> </dl> <p>Dry install without Coq/switch base, to test if the problem was incompatibility with the current Coq/OCaml version:</p> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>opam remove -y coq; opam install -y --show-action --unlock-base coq-search-trees.8.5.0</code></dd> <dt>Return code</dt> <dd>0</dd> </dl> <h2>Install dependencies</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Install 🚀</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Duration</dt> <dd>0 s</dd> </dl> <h2>Installation size</h2> <p>No files were installed.</p> <h2>Uninstall 🧹</h2> <dl class="dl-horizontal"> <dt>Command</dt> <dd><code>true</code></dd> <dt>Return code</dt> <dd>0</dd> <dt>Missing removes</dt> <dd> none </dd> <dt>Wrong removes</dt> <dd> none </dd> </dl> </div> </div> </div> <hr/> <div class="footer"> <p class="text-center"> Sources are on <a href="https://github.com/coq-bench">GitHub</a> © Guillaume Claret 🐣 </p> </div> </div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="../../../../../bootstrap.min.js"></script> </body> </html>
{ "content_hash": "f6495668b7e184691ea9bef09c05dc0c", "timestamp": "", "source": "github", "line_count": 167, "max_line_length": 188, "avg_line_length": 43.34131736526946, "alnum_prop": 0.5515335728101686, "repo_name": "coq-bench/coq-bench.github.io", "id": "95370fc2796347e6d82cbeddff4572ac17a6eb3b", "size": "7264", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "clean/Linux-x86_64-4.02.3-2.0.6/released/8.4.6~camlp4/search-trees/8.5.0.html", "mode": "33188", "license": "mit", "language": [], "symlink_target": "" }
package io.grpc.internal; import com.google.common.util.concurrent.ListenableFuture; /** * An interface for types that <b>may</b> support instrumentation. If the actual type does not * support instrumentation, then the future will return a {@code null}. */ public interface Instrumented<T> extends WithLogId { ListenableFuture<T> getStats(); }
{ "content_hash": "c4180dc91833b1cdc4d4042be72abbb7", "timestamp": "", "source": "github", "line_count": 13, "max_line_length": 94, "avg_line_length": 27.153846153846153, "alnum_prop": 0.7563739376770539, "repo_name": "rmichela/grpc-java", "id": "70203a5b54e66df48b60703288d883e42984e446", "size": "970", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "core/src/main/java/io/grpc/internal/Instrumented.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Batchfile", "bytes": "3092" }, { "name": "C++", "bytes": "48642" }, { "name": "Java", "bytes": "4265400" }, { "name": "Python", "bytes": "21668" }, { "name": "Shell", "bytes": "15371" } ], "symlink_target": "" }
package uk.co.ribot.androidboilerplate.view; import android.content.Context; import android.util.AttributeSet; import android.widget.GridView; public class MyGridView extends GridView { public MyGridView(Context context, AttributeSet attrs) { super(context, attrs); } public MyGridView(Context context, AttributeSet attrs, int defStyleAttr) { super(context, attrs, defStyleAttr); // TODO Auto-generated constructor stub } public MyGridView(Context context) { super(context); // TODO Auto-generated constructor stub } // 设置不滚动 public void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { int expandSpec = MeasureSpec.makeMeasureSpec(Integer.MAX_VALUE >> 2, MeasureSpec.AT_MOST); super.onMeasure(widthMeasureSpec, expandSpec); } }
{ "content_hash": "4951ae744c6c2fed93a236a32783bee5", "timestamp": "", "source": "github", "line_count": 30, "max_line_length": 92, "avg_line_length": 25.6, "alnum_prop": 0.7721354166666666, "repo_name": "ebridfighter/GongXianSheng", "id": "5cedcda4d94c37c6af147128f381a646ed1a7bd3", "size": "778", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "app/src/main/java/uk/co/ribot/androidboilerplate/view/MyGridView.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Java", "bytes": "1183024" } ], "symlink_target": "" }
<?xml version="1.0" encoding="utf-8"?> <com.balysv.materialripple.MaterialRippleLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="50dp" app:rippleOverlay="false" app:rippleColor="@color/colorAccent" app:rippleAlpha="0.2" app:rippleHover="true"> <TextView android:id="@android:id/text1" android:layout_width="match_parent" android:layout_height="match_parent" android:gravity="center_vertical" android:fontFamily="sans-serif-light" android:textSize="20dp" /> </com.balysv.materialripple.MaterialRippleLayout>
{ "content_hash": "fd25376ecc8ef1f6c0888492de75be3c", "timestamp": "", "source": "github", "line_count": 19, "max_line_length": 62, "avg_line_length": 37.8421052631579, "alnum_prop": 0.6954102920723226, "repo_name": "SferaDev/HubToDate", "id": "30fd95fcbca4aee5e369fa4bf5d4e0aa87967196", "size": "719", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "app/src/main/res/layout/slide_item.xml", "mode": "33188", "license": "mit", "language": [ { "name": "Java", "bytes": "245329" } ], "symlink_target": "" }
import React, { Component } from 'react' import T from 'prop-types' import { StrapFormContextTypes } from './StrapForm' export const StrapSubmitPropTypes = { disabled: T.bool, } export default function (Button) { class StrapSubmit extends Component { static contextTypes = { ...StrapFormContextTypes, } static propTypes = { children: T.any.isRequired, disabled: T.bool, disableOnValidating: T.bool, } static defaultProps = { disabled: false, disableOnValidating: true, } state = { disabled: this.props.disabled, } componentWillMount() { this.context.listenTo('onFormUpdate', this.handleOnFormUpdate) } handleOnFormUpdate = ({ isValid, isSubmitting, isPristine, isValidating }) => { const { disableOnValidating } = this.props const disabled = ( this.props.disabled || isSubmitting || (isValidating && disableOnValidating) || (!isValid && !isPristine) ) this.setState({ disabled }) } render() { const { disabled } = this.state const isDisabled = disabled return ( <Button disabled={isDisabled}> {this.props.children} </Button> ) } } return StrapSubmit }
{ "content_hash": "3941c32c52343279010caeec9c21f905", "timestamp": "", "source": "github", "line_count": 60, "max_line_length": 83, "avg_line_length": 21.366666666666667, "alnum_prop": 0.6107644305772231, "repo_name": "mkatanski/strap-forms", "id": "987825d6fc9af16c63c9635a6242f77226af86b7", "size": "1282", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "components/StrapSubmit.js", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "306" }, { "name": "JavaScript", "bytes": "61644" } ], "symlink_target": "" }
using System; using System.Text; using System.Data; using System.Data.SqlClient; using System.Data.Common; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.Configuration; using System.Xml; using System.Xml.Serialization; using SubSonic; using SubSonic.Utilities; namespace DalSic { /// <summary> /// Strongly-typed collection for the PnTribu class. /// </summary> [Serializable] public partial class PnTribuCollection : ActiveList<PnTribu, PnTribuCollection> { public PnTribuCollection() {} /// <summary> /// Filters an existing collection based on the set criteria. This is an in-memory filter /// Thanks to developingchris for this! /// </summary> /// <returns>PnTribuCollection</returns> public PnTribuCollection Filter() { for (int i = this.Count - 1; i > -1; i--) { PnTribu o = this[i]; foreach (SubSonic.Where w in this.wheres) { bool remove = false; System.Reflection.PropertyInfo pi = o.GetType().GetProperty(w.ColumnName); if (pi.CanRead) { object val = pi.GetValue(o, null); switch (w.Comparison) { case SubSonic.Comparison.Equals: if (!val.Equals(w.ParameterValue)) { remove = true; } break; } } if (remove) { this.Remove(o); break; } } } return this; } } /// <summary> /// This is an ActiveRecord class which wraps the PN_tribus table. /// </summary> [Serializable] public partial class PnTribu : ActiveRecord<PnTribu>, IActiveRecord { #region .ctors and Default Settings public PnTribu() { SetSQLProps(); InitSetDefaults(); MarkNew(); } private void InitSetDefaults() { SetDefaults(); } public PnTribu(bool useDatabaseDefaults) { SetSQLProps(); if(useDatabaseDefaults) ForceDefaults(); MarkNew(); } public PnTribu(object keyID) { SetSQLProps(); InitSetDefaults(); LoadByKey(keyID); } public PnTribu(string columnName, object columnValue) { SetSQLProps(); InitSetDefaults(); LoadByParam(columnName,columnValue); } protected static void SetSQLProps() { GetTableSchema(); } #endregion #region Schema and Query Accessor public static Query CreateQuery() { return new Query(Schema); } public static TableSchema.Table Schema { get { if (BaseSchema == null) SetSQLProps(); return BaseSchema; } } private static void GetTableSchema() { if(!IsSchemaInitialized) { //Schema declaration TableSchema.Table schema = new TableSchema.Table("PN_tribus", TableType.Table, DataService.GetInstance("sicProvider")); schema.Columns = new TableSchema.TableColumnCollection(); schema.SchemaName = @"dbo"; //columns TableSchema.TableColumn colvarIdTribu = new TableSchema.TableColumn(schema); colvarIdTribu.ColumnName = "id_tribu"; colvarIdTribu.DataType = DbType.Int32; colvarIdTribu.MaxLength = 0; colvarIdTribu.AutoIncrement = true; colvarIdTribu.IsNullable = false; colvarIdTribu.IsPrimaryKey = true; colvarIdTribu.IsForeignKey = false; colvarIdTribu.IsReadOnly = false; colvarIdTribu.DefaultSetting = @""; colvarIdTribu.ForeignKeyTableName = ""; schema.Columns.Add(colvarIdTribu); TableSchema.TableColumn colvarNombre = new TableSchema.TableColumn(schema); colvarNombre.ColumnName = "nombre"; colvarNombre.DataType = DbType.AnsiString; colvarNombre.MaxLength = 80; colvarNombre.AutoIncrement = false; colvarNombre.IsNullable = true; colvarNombre.IsPrimaryKey = false; colvarNombre.IsForeignKey = false; colvarNombre.IsReadOnly = false; colvarNombre.DefaultSetting = @""; colvarNombre.ForeignKeyTableName = ""; schema.Columns.Add(colvarNombre); BaseSchema = schema; //add this schema to the provider //so we can query it later DataService.Providers["sicProvider"].AddSchema("PN_tribus",schema); } } #endregion #region Props [XmlAttribute("IdTribu")] [Bindable(true)] public int IdTribu { get { return GetColumnValue<int>(Columns.IdTribu); } set { SetColumnValue(Columns.IdTribu, value); } } [XmlAttribute("Nombre")] [Bindable(true)] public string Nombre { get { return GetColumnValue<string>(Columns.Nombre); } set { SetColumnValue(Columns.Nombre, value); } } #endregion //no foreign key tables defined (0) //no ManyToMany tables defined (0) #region ObjectDataSource support /// <summary> /// Inserts a record, can be used with the Object Data Source /// </summary> public static void Insert(string varNombre) { PnTribu item = new PnTribu(); item.Nombre = varNombre; if (System.Web.HttpContext.Current != null) item.Save(System.Web.HttpContext.Current.User.Identity.Name); else item.Save(System.Threading.Thread.CurrentPrincipal.Identity.Name); } /// <summary> /// Updates a record, can be used with the Object Data Source /// </summary> public static void Update(int varIdTribu,string varNombre) { PnTribu item = new PnTribu(); item.IdTribu = varIdTribu; item.Nombre = varNombre; item.IsNew = false; if (System.Web.HttpContext.Current != null) item.Save(System.Web.HttpContext.Current.User.Identity.Name); else item.Save(System.Threading.Thread.CurrentPrincipal.Identity.Name); } #endregion #region Typed Columns public static TableSchema.TableColumn IdTribuColumn { get { return Schema.Columns[0]; } } public static TableSchema.TableColumn NombreColumn { get { return Schema.Columns[1]; } } #endregion #region Columns Struct public struct Columns { public static string IdTribu = @"id_tribu"; public static string Nombre = @"nombre"; } #endregion #region Update PK Collections #endregion #region Deep Save #endregion } }
{ "content_hash": "2caa4d434c6c9273b938ad0c2de752d0", "timestamp": "", "source": "github", "line_count": 268, "max_line_length": 123, "avg_line_length": 25.12686567164179, "alnum_prop": 0.6005346005346005, "repo_name": "saludnqn/consultorio", "id": "4dc93d499018c354c684b625c63fb86c4e581de2", "size": "6734", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "DalSic/generated/PnTribu.cs", "mode": "33188", "license": "mit", "language": [ { "name": "ASP", "bytes": "1288342" }, { "name": "C#", "bytes": "13112654" }, { "name": "CSS", "bytes": "178461" }, { "name": "HTML", "bytes": "1914" }, { "name": "JavaScript", "bytes": "1653431" } ], "symlink_target": "" }
package org.seasar.doma.jdbc.query; import static org.seasar.doma.internal.util.AssertionUtil.assertNotNull; import java.util.ArrayList; import java.util.Collection; import java.util.List; import org.seasar.doma.jdbc.JdbcException; import org.seasar.doma.jdbc.PreparedSql; import org.seasar.doma.jdbc.SqlExecutionSkipCause; import org.seasar.doma.jdbc.SqlLogType; import org.seasar.doma.jdbc.entity.EntityPropertyType; import org.seasar.doma.jdbc.entity.EntityType; import org.seasar.doma.jdbc.entity.TenantIdPropertyType; import org.seasar.doma.jdbc.entity.VersionPropertyType; import org.seasar.doma.message.Message; public abstract class AutoBatchModifyQuery<ENTITY> extends AbstractQuery implements BatchModifyQuery { protected static final String[] EMPTY_STRINGS = new String[] {}; protected List<EntityPropertyType<ENTITY, ?>> targetPropertyTypes; protected List<EntityPropertyType<ENTITY, ?>> idPropertyTypes; protected String[] includedPropertyNames = EMPTY_STRINGS; protected String[] excludedPropertyNames = EMPTY_STRINGS; protected final EntityType<ENTITY> entityType; protected VersionPropertyType<ENTITY, ?, ?> versionPropertyType; protected TenantIdPropertyType<ENTITY, ?, ?> tenantIdPropertyType; protected boolean optimisticLockCheckRequired; protected boolean autoGeneratedKeysSupported; protected boolean executable; protected SqlExecutionSkipCause executionSkipCause = SqlExecutionSkipCause.BATCH_TARGET_NONEXISTENT; protected List<PreparedSql> sqls; protected List<ENTITY> entities; protected ENTITY currentEntity; protected int batchSize; protected SqlLogType sqlLogType; public AutoBatchModifyQuery(EntityType<ENTITY> entityType) { assertNotNull(entityType); this.entityType = entityType; } protected void prepareIdAndVersionPropertyTypes() { idPropertyTypes = entityType.getIdPropertyTypes(); versionPropertyType = entityType.getVersionPropertyType(); tenantIdPropertyType = entityType.getTenantIdPropertyType(); } protected void validateIdExistent() { if (idPropertyTypes.isEmpty()) { throw new JdbcException(Message.DOMA2022, entityType.getName()); } } protected void prepareOptions() { if (queryTimeout <= 0) { queryTimeout = config.getQueryTimeout(); } if (batchSize <= 0) { batchSize = config.getBatchSize(); } } protected boolean isTargetPropertyName(String name) { if (includedPropertyNames.length > 0) { for (String includedName : includedPropertyNames) { if (includedName.equals(name)) { for (String excludedName : excludedPropertyNames) { if (excludedName.equals(name)) { return false; } } return true; } } return false; } if (excludedPropertyNames.length > 0) { for (String excludedName : excludedPropertyNames) { if (excludedName.equals(name)) { return false; } } return true; } return true; } public void setEntities(Iterable<ENTITY> entities) { assertNotNull(entities); if (entities instanceof Collection<?>) { this.entities = new ArrayList<>((Collection<ENTITY>) entities); } else { this.entities = new ArrayList<>(); for (ENTITY entity : entities) { this.entities.add(entity); } } this.sqls = new ArrayList<>(this.entities.size()); } public List<ENTITY> getEntities() { return entities; } public void setBatchSize(int batchSize) { this.batchSize = batchSize; } public void setIncludedPropertyNames(String... includedPropertyNames) { this.includedPropertyNames = includedPropertyNames; } public void setExcludedPropertyNames(String... excludedPropertyNames) { this.excludedPropertyNames = excludedPropertyNames; } public void setSqlLogType(SqlLogType sqlLogType) { this.sqlLogType = sqlLogType; } @Override public PreparedSql getSql() { return sqls.get(0); } @Override public List<PreparedSql> getSqls() { return sqls; } @Override public boolean isOptimisticLockCheckRequired() { return optimisticLockCheckRequired; } @Override public boolean isAutoGeneratedKeysSupported() { return autoGeneratedKeysSupported; } @Override public boolean isExecutable() { return executable; } @Override public SqlExecutionSkipCause getSqlExecutionSkipCause() { return executionSkipCause; } @Override public int getBatchSize() { return batchSize; } @Override public SqlLogType getSqlLogType() { return sqlLogType; } @Override public String toString() { return sqls.toString(); } }
{ "content_hash": "b512c9a12d27ded20d7fe525b68f0f06", "timestamp": "", "source": "github", "line_count": 184, "max_line_length": 73, "avg_line_length": 25.64673913043478, "alnum_prop": 0.7168891714346259, "repo_name": "domaframework/doma", "id": "40b0861fbea9b9e6f77bd720a69d5cbe464d399f", "size": "4719", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "doma-core/src/main/java/org/seasar/doma/jdbc/query/AutoBatchModifyQuery.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Java", "bytes": "4179496" }, { "name": "Kotlin", "bytes": "194380" } ], "symlink_target": "" }
require 'test_helper' class MainMaterialBrandsHelperTest < ActionView::TestCase end
{ "content_hash": "40f0b636602bce34405e13162ff14ede", "timestamp": "", "source": "github", "line_count": 4, "max_line_length": 57, "avg_line_length": 21.25, "alnum_prop": 0.8352941176470589, "repo_name": "Alex-Rongzhen-Huang/iyijia", "id": "2c36c1635687a94cefe493f3cf5da60034157e45", "size": "85", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "test/unit/helpers/main_material_brands_helper_test.rb", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "179499" }, { "name": "CoffeeScript", "bytes": "4351" }, { "name": "JavaScript", "bytes": "180666" }, { "name": "Ruby", "bytes": "219012" }, { "name": "Shell", "bytes": "1216" } ], "symlink_target": "" }
"""Reboot a Swarming bot.""" import os import sys if sys.platform == 'win32': os.system('shutdown /r /t 0') else: os.system('sudo reboot')
{ "content_hash": "43a6b4cd8743655e07e008ba49b9fa0f", "timestamp": "", "source": "github", "line_count": 11, "max_line_length": 33, "avg_line_length": 13.727272727272727, "alnum_prop": 0.6225165562913907, "repo_name": "google/skia-buildbot", "id": "40fdfd5fc1fd1f6773fd0cdce8423760612d1bec", "size": "310", "binary": false, "copies": "1", "ref": "refs/heads/main", "path": "scripts/run_on_swarming_bots/reboot_bot.py", "mode": "33188", "license": "bsd-3-clause", "language": [ { "name": "Batchfile", "bytes": "736" }, { "name": "C", "bytes": "3114" }, { "name": "C++", "bytes": "18072" }, { "name": "CSS", "bytes": "13967" }, { "name": "Dockerfile", "bytes": "18546" }, { "name": "Go", "bytes": "8744467" }, { "name": "HTML", "bytes": "790880" }, { "name": "JavaScript", "bytes": "1186449" }, { "name": "Jupyter Notebook", "bytes": "9165" }, { "name": "Makefile", "bytes": "75823" }, { "name": "PowerShell", "bytes": "15305" }, { "name": "Python", "bytes": "126773" }, { "name": "SCSS", "bytes": "128048" }, { "name": "Shell", "bytes": "232449" }, { "name": "Starlark", "bytes": "234929" }, { "name": "TypeScript", "bytes": "1568540" } ], "symlink_target": "" }
int main(int argc, char * argv[]) { @autoreleasepool { return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); } }
{ "content_hash": "82f79a8b36b98cac19716411a56daaca", "timestamp": "", "source": "github", "line_count": 6, "max_line_length": 90, "avg_line_length": 26.333333333333332, "alnum_prop": 0.6582278481012658, "repo_name": "marta-rodriguez/RealmExample", "id": "3553a9449eaad230b5b2931a4731fe48ba8678a6", "size": "353", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "RealmExample/RealmExample/main.m", "mode": "33188", "license": "mit", "language": [ { "name": "Objective-C", "bytes": "15186" }, { "name": "Ruby", "bytes": "173" } ], "symlink_target": "" }
<?php namespace League\Flysystem\Util; use PHPUnit\Framework\TestCase; $passthru = true; function class_exists($class_name, $autoload = true) { global $passthru; if ($passthru) { return \class_exists($class_name, $autoload); } return false; } class UtilMimeTests extends TestCase { public function testNoFinfoFallback() { global $passthru; $passthru = false; $this->assertNull(MimeType::detectByContent('string')); $passthru = true; } public function testNoExtension() { $this->assertEquals('text/plain', MimeType::detectByFileExtension('dir/file')); } }
{ "content_hash": "4ef2f3b04b0aea31143d2a554520aa16", "timestamp": "", "source": "github", "line_count": 34, "max_line_length": 87, "avg_line_length": 19.147058823529413, "alnum_prop": 0.6405529953917051, "repo_name": "mhlavac/flysystem", "id": "5f8d97a137f6d0745d42f294b8bd8d5f5255536b", "size": "651", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "tests/UtilMimeTests.php", "mode": "33188", "license": "mit", "language": [ { "name": "PHP", "bytes": "248094" }, { "name": "Shell", "bytes": "1223" } ], "symlink_target": "" }
package com.bkav.training.week1.session3; import java.util.Scanner; public class Bin2Dec { private static Scanner in; public static void main(String[] args) { String binStr; // input binary string int binStrLen; // length of the input string int dec = 0; // equivalent decimal number boolean check = true; in = new Scanner(System.in); System.out.print(" Hãy nhập xâu bit"); binStr = in.next(); binStrLen = binStr.length(); // kiểm tra xem có phải chuỗi bit không for (int i = 0; i <= (binStrLen - 1); i++){ if ((binStr.charAt(i) != '0') && (binStr.charAt(i) != '1')){ check = false; } } if (check == false) { System.out.print("Đây không phải là chuỗi bit"); } else { for (int i = 0; i <= (binStrLen - 1); i++) { // chuyển từng chữ số sang dạng int int conv2Int = Integer.parseInt(Character.toString(binStr.charAt(i))); // chuyển sang số Dexima dec += (conv2Int * (Math.pow(2, binStrLen - 1 - i))); } System.out.print("Số sau khi đã chuyển sang hệ Dexima là: " + dec); } } }
{ "content_hash": "8639eb8e2f3e4d256b2ba05b2dee929a", "timestamp": "", "source": "github", "line_count": 36, "max_line_length": 79, "avg_line_length": 31.944444444444443, "alnum_prop": 0.5678260869565217, "repo_name": "anhtrungbk55/JavaTraining", "id": "5d4442e9ff43adebd991b2a240153e1acc27ddb2", "size": "1193", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "Documents/workspace/JavaTraining/src/com/bkav/training/week1/session3/Bin2Dec.java", "mode": "33188", "license": "bsd-2-clause", "language": [ { "name": "Java", "bytes": "103925" } ], "symlink_target": "" }
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="en"> <head> <!-- Generated by javadoc (1.8.0_92) on Wed Jul 27 21:19:33 CEST 2016 --> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Uses of Class net.sourceforge.pmd.lang.java.rule.migrating.MigratingRulesTest (PMD 5.5.1 Test API)</title> <meta name="date" content="2016-07-27"> <link rel="stylesheet" type="text/css" href="../../../../../../../../stylesheet.css" title="Style"> <script type="text/javascript" src="../../../../../../../../script.js"></script> </head> <body> <script type="text/javascript"><!-- try { if (location.href.indexOf('is-external=true') == -1) { parent.document.title="Uses of Class net.sourceforge.pmd.lang.java.rule.migrating.MigratingRulesTest (PMD 5.5.1 Test API)"; } } catch(err) { } //--> </script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> <!-- ========= START OF TOP NAVBAR ======= --> <div class="topNav"><a name="navbar.top"> <!-- --> </a> <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.top.firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../../../../../overview-summary.html">Overview</a></li> <li><a href="../package-summary.html">Package</a></li> <li><a href="../../../../../../../../net/sourceforge/pmd/lang/java/rule/migrating/MigratingRulesTest.html" title="class in net.sourceforge.pmd.lang.java.rule.migrating">Class</a></li> <li class="navBarCell1Rev">Use</li> <li><a href="../package-tree.html">Tree</a></li> <li><a href="../../../../../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../../../../../index-all.html">Index</a></li> <li><a href="../../../../../../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li>Prev</li> <li>Next</li> </ul> <ul class="navList"> <li><a href="../../../../../../../../index.html?net/sourceforge/pmd/lang/java/rule/migrating/class-use/MigratingRulesTest.html" target="_top">Frames</a></li> <li><a href="MigratingRulesTest.html" target="_top">No&nbsp;Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_top"> <li><a href="../../../../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_top"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <a name="skip.navbar.top"> <!-- --> </a></div> <!-- ========= END OF TOP NAVBAR ========= --> <div class="header"> <h2 title="Uses of Class net.sourceforge.pmd.lang.java.rule.migrating.MigratingRulesTest" class="title">Uses of Class<br>net.sourceforge.pmd.lang.java.rule.migrating.MigratingRulesTest</h2> </div> <div class="classUseContainer">No usage of net.sourceforge.pmd.lang.java.rule.migrating.MigratingRulesTest</div> <!-- ======= START OF BOTTOM NAVBAR ====== --> <div class="bottomNav"><a name="navbar.bottom"> <!-- --> </a> <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.bottom.firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../../../../../overview-summary.html">Overview</a></li> <li><a href="../package-summary.html">Package</a></li> <li><a href="../../../../../../../../net/sourceforge/pmd/lang/java/rule/migrating/MigratingRulesTest.html" title="class in net.sourceforge.pmd.lang.java.rule.migrating">Class</a></li> <li class="navBarCell1Rev">Use</li> <li><a href="../package-tree.html">Tree</a></li> <li><a href="../../../../../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../../../../../index-all.html">Index</a></li> <li><a href="../../../../../../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li>Prev</li> <li>Next</li> </ul> <ul class="navList"> <li><a href="../../../../../../../../index.html?net/sourceforge/pmd/lang/java/rule/migrating/class-use/MigratingRulesTest.html" target="_top">Frames</a></li> <li><a href="MigratingRulesTest.html" target="_top">No&nbsp;Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_bottom"> <li><a href="../../../../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_bottom"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <a name="skip.navbar.bottom"> <!-- --> </a></div> <!-- ======== END OF BOTTOM NAVBAR ======= --> <p class="legalCopy"><small>Copyright &#169; 2002&#x2013;2016 <a href="http://pmd.sourceforge.net/">InfoEther</a>. All rights reserved.</small></p> </body> </html>
{ "content_hash": "d231aed03e9ac4dc11b73e58d5534c62", "timestamp": "", "source": "github", "line_count": 126, "max_line_length": 189, "avg_line_length": 40.12698412698413, "alnum_prop": 0.6125395569620253, "repo_name": "jasonwee/videoOnCloud", "id": "b101a0cab64fd190690d6c8dd358ef160f1db4d0", "size": "5056", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "pmd/pmd-doc-5.5.1/testapidocs/net/sourceforge/pmd/lang/java/rule/migrating/class-use/MigratingRulesTest.html", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Batchfile", "bytes": "116270" }, { "name": "C", "bytes": "2209717" }, { "name": "C++", "bytes": "375267" }, { "name": "CSS", "bytes": "1134648" }, { "name": "Dockerfile", "bytes": "1656" }, { "name": "HTML", "bytes": "306558398" }, { "name": "Java", "bytes": "1465506" }, { "name": "JavaScript", "bytes": "9028509" }, { "name": "Jupyter Notebook", "bytes": "30907" }, { "name": "Less", "bytes": "107003" }, { "name": "PHP", "bytes": "856" }, { "name": "PowerShell", "bytes": "77807" }, { "name": "Pug", "bytes": "2968" }, { "name": "Python", "bytes": "1001861" }, { "name": "R", "bytes": "7390" }, { "name": "Roff", "bytes": "3553" }, { "name": "Shell", "bytes": "206191" }, { "name": "Thrift", "bytes": "80564" }, { "name": "XSLT", "bytes": "4740" } ], "symlink_target": "" }
<?php use Symfony\Component\HttpKernel\Kernel; use Symfony\Component\Config\Loader\LoaderInterface; class AppKernel extends Kernel { public function registerBundles() { $bundles = array( new Symfony\Bundle\FrameworkBundle\FrameworkBundle(), new Symfony\Bundle\SecurityBundle\SecurityBundle(), new Symfony\Bundle\TwigBundle\TwigBundle(), new Symfony\Bundle\MonologBundle\MonologBundle(), new Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle(), new Symfony\Bundle\AsseticBundle\AsseticBundle(), new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(), new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(), new Tipddy\SurveyBundle\TipddySurveyBundle(), new Tipddy\SecurityBundle\TipddySecurityBundle(), new Tipddy\BackendBundle\TipddyBackendBundle(), ); if (in_array($this->getEnvironment(), array('dev', 'test'))) { $bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle(); $bundles[] = new Sensio\Bundle\DistributionBundle\SensioDistributionBundle(); $bundles[] = new Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle(); } return $bundles; } public function registerContainerConfiguration(LoaderInterface $loader) { $loader->load(__DIR__.'/config/config_'.$this->getEnvironment().'.yml'); } }
{ "content_hash": "c14ceb647a9f5039add15d501ba641fb", "timestamp": "", "source": "github", "line_count": 37, "max_line_length": 89, "avg_line_length": 39.5945945945946, "alnum_prop": 0.6709897610921501, "repo_name": "sebathomson/tipsurvey", "id": "d141c7ae246dc3289ee28052bda0a2a48299d0d5", "size": "1465", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "app/AppKernel.php", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "109754" }, { "name": "JavaScript", "bytes": "87340" }, { "name": "PHP", "bytes": "130968" }, { "name": "Shell", "bytes": "182" } ], "symlink_target": "" }
<?xml version="1.0" encoding="utf-8"?> <android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:skin="http://schemas.android.com/android/skin" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/drawer_layout" android:layout_width="match_parent" android:layout_height="match_parent" tools:openDrawer="start"> <RelativeLayout android:id="@+id/main_fragment_container" android:layout_width="match_parent" android:layout_height="match_parent"> </RelativeLayout> <android.support.design.widget.NavigationView android:id="@+id/navigation_view" android:layout_width="wrap_content" android:layout_height="match_parent" android:layout_gravity="start" app:headerLayout="@layout/common_drawer_view" app:menu="@menu/menu_main_nav" skin:enable="true" /> </android.support.v4.widget.DrawerLayout>
{ "content_hash": "9b426ca4a6acdb4d89ecd5be8ea9963e", "timestamp": "", "source": "github", "line_count": 26, "max_line_length": 98, "avg_line_length": 39.19230769230769, "alnum_prop": 0.6840039254170756, "repo_name": "KouChengjian/acg12-android", "id": "1124cf6b7c390164efc792b8e2209982180fafdf", "size": "1019", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "module_app/src/main/res/layout/activity_main.xml", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Java", "bytes": "1454267" } ], "symlink_target": "" }
<Record> <Term>Sodium Potassium Chloride Symporter Inhibitors</Term> <SemanticType>Pharmacologic Substance</SemanticType> <ParentTerm>Membrane Transport Modulators</ParentTerm> <ClassificationPath>Chemical Actions and Uses/Pharmacologic Actions/Molecular Mechanisms of Pharmacological Action/Membrane Transport Modulators/Sodium Potassium Chloride Symporter Inhibitors</ClassificationPath> <BroaderTerm>Pharmacologic Actions</BroaderTerm> <BroaderTerm>Membrane Transport Modulators</BroaderTerm> <BroaderTerm>Chemical Actions and Uses</BroaderTerm> <BroaderTerm>Sodium Potassium Chloride Symporter Inhibitors</BroaderTerm> <BroaderTerm>Molecular Mechanisms of Pharmacological Action</BroaderTerm> <Synonym>Sodium Potassium Chloride Symporter Inhibitors</Synonym> <Synonym>Na-K-CL Symporter Inhibitors</Synonym> <Synonym>Na K CL Symporter Inhibitors</Synonym> <Synonym>Sodium Potassium Chloride Cotransporter Inhibitors</Synonym> <Synonym>Bumetanide Sensitive Na-K-Cl-Transporter Inhibitors</Synonym> <Synonym>Bumetanide Sensitive Na K Cl Transporter Inhibitors</Synonym> <Synonym>Loop Diuretics</Synonym> <Synonym>High Ceiling Diuretics</Synonym> <Description>Agents that inhibit SODIUM-POTASSIUM-CHLORIDE SYMPORTERS which are concentrated in the thick ascending limb at the junction of the LOOP OF HENLE and KIDNEY TUBULES, DISTAL. They act as DIURETICS. Excess use is associated with HYPOKALEMIA and HYPERGLYCEMIA.</Description> <Source>MeSH</Source> </Record>
{ "content_hash": "b7545963a1379d1bb9078524c9dc510a", "timestamp": "", "source": "github", "line_count": 21, "max_line_length": 283, "avg_line_length": 70.66666666666667, "alnum_prop": 0.8288409703504043, "repo_name": "detnavillus/modular-informatic-designs", "id": "859bd8e82fad9cc588b47c99ed2e8a12c04d1fe3", "size": "1484", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "pipeline/src/test/resources/thesaurus/pharmacologicsubstance/sodiumpotassiumchloridesymporterinhibitors.xml", "mode": "33261", "license": "apache-2.0", "language": [ { "name": "Java", "bytes": "2069134" } ], "symlink_target": "" }
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>SHTOOLS - Spherical harmonic rotations</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <link rel="stylesheet" type="text/css" href="../CSS/sh.css"> <link rel="icon" type="image/vnd.microsoft.icon" href="../Figures/favicon.ico"> </head> <body> <div class="main"> <p class="centeredimage"><img src="../Figures/logo.jpg" width=694 height=115 alt="SHTOOLS --- Tools for working with spherical harmonics"></p> <table class="menu"> <tbody> <tr> <td><a href="http://www.ipgp.jussieu.fr/~wieczor/SHTOOLS/SHTOOLS.html">HOME</a></td> <td><a href="../download.html">DOWNLOAD</a></td> <td class="selected"><a href="../documentation.html">DOCUMENTATION</a></td> <td><a href="http://groups.google.com/group/SHTOOLS">FORUM</a></td> <td><a href="../faq.html">FAQ</a> </td> </tr> </tbody> </table> <p class="dir"> > <a href="../../SHTOOLS.html" class="dir">Home</a> > <a href="../documentation.html" class="dir">Documentation</a> > <a href="../rotations.html" class="dir">Spherical Harmonic Rotations</a></p> <PRE> <!-- Manpage converted by man2html 3.0.1 --> <B>SHROTATECOEF(1)</B> SHTOOLS 2.6 <B>SHROTATECOEF(1)</B> </PRE> <H2 class="man">SHRotateCoef</H2 class="man"><PRE> SHRotateCoef - Determine the spherical harmonic coefficients of a complex function rotated by three Euler angles. </PRE> <H2 class="man">SYNOPSIS</H2 class="man"><PRE> SUBROUTINE SHRotateCoef ( X, COEF, RCOEF, DJ, LMAX ) REAL*8 X(3 ), COEF(2, (LMAX+1)*(LMAX+2)/2), RCOEF(2, (LMAX+1)*(LMAX+2)/2), DJ(LMAX+1, LMAX+1, LMAX+1) INTEGER LMAX </PRE> <H2 class="man">DESCRIPTION</H2 class="man"><PRE> <B>SHRotateCoef</B> will take the complex spherical harmonic coefficients of a function, rotate it according to the three Euler anlges in X, and output the spherical harmonic coefficients of the rotated function. The input and output coefficients are in an indexed form that can be converted to and from CILM(2,:,:) form by using the functions <B>SHCilmToCindex</B> and <B>SHCindexToCilm</B>. The coefficients MUST correspond to unit-normalized spherical harmonics that possess the Condon-Shortley phase convention. Real spherical harmonics can be converted to and from complex form using <B>SHrtoc</B> and <B>SHctor</B>. The input rotation matrix DJ is computed by a call to <B>DJPi2</B>. The rotation of a coordinate system or body can be viewed in two complementary ways involving three successive rotations. Both methods have the same initial and final configurations, and the angles listed in both schemes are the same. Scheme A: (I) Rotation about the z axis by alpha. (II) Rotation about the new y axis by beta. (III) Rotation about the new z axis by gamma. Scheme B: (I) Rotation about the z axis by gamma. (II) Rotation about the initial y axis by beta. (III) Rotation about the initial z axis by alpha. The rotations can further be viewed either as a rotation of the coordinate system or the physical body. For a rotation of the coordinate system without rotation of the physical body, use X(alpha, beta, gamma). For a rotation of the physical body without rotation of the coordinate system, use X(-gamma, -beta, -alpha). To perform the inverse transform of X(alpha, beta, gamma), use X(-gamma, -beta, -alpha). Note that this routine uses the "y convention", where the second rotation is with respect to the new y axis. If alpha, beta, and gamma were orginally defined in terms of the "x convention", where the second rotation was with respect to the newx axis, the Euler angles according to the y convention would be alpha_y = alpha_x - pi/2, beta_x = beta_y, and gamma_y = gamma_x + pi/2. </PRE> <H2 class="man">ARGUMENTS</H2 class="man"><PRE> X (input) REAL*8, DIMENSION(3 ) The three Euler angles, alpha, beta, and gamma. COEF (input) REAL*8, DIMENSION (2, (LMAX+1)*(LMAX+2)/2) The input complex spherical harmonic coefficients. This is an indexed array where the real and complex components are given by COEF(1,:) and COEF(2,:), respectively. The functions <B>SHCilmToCindex</B> and <B>SHCindexToCilm</B> are used to convert to and from indexed and CILM(2,:,:) form. The coefficients must correspond to unit-normalized spherical harmonics that possess the Condon-Shortley phase convention. RCOEF (output) REAL*8, DIMENSION (2, (LMAX+1)*(LMAX+2)/2) The spherical harmonic coefficients of the rotated function in indexed form. DJ (input) REAL*8, DIMENSION (LMAX+1, LMAX+1, LMAX+1) The rotation matrix DJ(pi/2), obtained from a call to <B>DJPi2</B>. LMAX (input) INTEGER, OPTIONAL The maximum spherical harmonic degree of the input and output coefficients. </PRE> <H2 class="man">NOTES</H2 class="man"><PRE> This routine is based upon code originally written by Guy Masters, which was then subsequently modified by Mark Simons and myself. </PRE> <H2 class="man">SEE ALSO</H2 class="man"><PRE> <B>djpi2(1)</B>, <B>shrotaterealcoef(1)</B>, <B>shctor(1)</B>, <B>shrtoc(1)</B>, <B>shcilmtocindex(1)</B>, <B>shcindextocilm(1)</B> &lt;http://www.ipgp.jussieu.fr/~wieczor/SHTOOLS/SHTOOLS.html&gt; </PRE> <H2 class="man">COPYRIGHT AND LICENSE</H2 class="man"><PRE> Copyright 2005, 2006 by Mark Wieczorek &lt;wieczor@ipgp.fr&gt;. This is free software; you can distribute and modify it under the terms of the revised BSD license. SHTOOLS 2.6 2009-08-18 <B>SHROTATECOEF(1)</B> </PRE> <p class="dir"> > <a href="../../SHTOOLS.html" class="dir">Home</a> > <a href="../documentation.html" class="dir">Documentation</a> > <a href="../rotations.html" class="dir">Spherical Harmonic Rotations</a></p> <table class="footer2" summary = "Mark Wieczorek"> <tbody> <tr> <td class="c1"><a href="http://www.cnrs.fr/">Centre National de la Recherche Scientifique</a></td> <td class="c2"><a href="http://www.ipgp.jussieu.fr/">Institut de Physique du Globe de Paris</a></td> <td class="c3">&copy; 2011 <a href="http://www.ipgp.jussieu.fr/~wieczor">Mark Wieczorek</a></td> </tr> </tbody> </table> </div> </body> </html>
{ "content_hash": "62875e6af00bf63a34dab8b493ab2c3c", "timestamp": "", "source": "github", "line_count": 179, "max_line_length": 195, "avg_line_length": 39.312849162011176, "alnum_prop": 0.6163137700724741, "repo_name": "pletnes/SHTOOLS", "id": "5d0e2c0d00fbcdcd68921382bf95af7b5790e847", "size": "7037", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "www/man/shrotatecoef.html", "mode": "33188", "license": "bsd-3-clause", "language": [ { "name": "FORTRAN", "bytes": "888004" }, { "name": "Perl", "bytes": "298832" }, { "name": "Python", "bytes": "7083" }, { "name": "Shell", "bytes": "708029" } ], "symlink_target": "" }
#include <aws/cloudformation/model/DescribeAccountLimitsResult.h> #include <aws/core/utils/xml/XmlSerializer.h> #include <aws/core/AmazonWebServiceResult.h> #include <aws/core/utils/StringUtils.h> #include <aws/core/utils/logging/LogMacros.h> #include <utility> using namespace Aws::CloudFormation::Model; using namespace Aws::Utils::Xml; using namespace Aws::Utils::Logging; using namespace Aws::Utils; using namespace Aws; DescribeAccountLimitsResult::DescribeAccountLimitsResult() { } DescribeAccountLimitsResult::DescribeAccountLimitsResult(const AmazonWebServiceResult<XmlDocument>& result) { *this = result; } DescribeAccountLimitsResult& DescribeAccountLimitsResult::operator =(const AmazonWebServiceResult<XmlDocument>& result) { const XmlDocument& xmlDocument = result.GetPayload(); XmlNode rootNode = xmlDocument.GetRootElement(); XmlNode resultNode = rootNode; if (rootNode.GetName() != "DescribeAccountLimitsResult") { resultNode = rootNode.FirstChild("DescribeAccountLimitsResult"); } if(!resultNode.IsNull()) { XmlNode accountLimitsNode = resultNode.FirstChild("AccountLimits"); if(!accountLimitsNode.IsNull()) { XmlNode accountLimitsMember = accountLimitsNode.FirstChild("member"); while(!accountLimitsMember.IsNull()) { m_accountLimits.push_back(accountLimitsMember); accountLimitsMember = accountLimitsMember.NextNode("member"); } } XmlNode nextTokenNode = resultNode.FirstChild("NextToken"); if(!nextTokenNode.IsNull()) { m_nextToken = StringUtils::Trim(nextTokenNode.GetText().c_str()); } } XmlNode responseMetadataNode = rootNode.FirstChild("ResponseMetadata"); m_responseMetadata = responseMetadataNode; AWS_LOGSTREAM_DEBUG("Aws::CloudFormation::Model::DescribeAccountLimitsResult", "x-amzn-request-id: " << m_responseMetadata.GetRequestId() ); return *this; }
{ "content_hash": "b5c3f5252ecba70d27890700df664ed3", "timestamp": "", "source": "github", "line_count": 60, "max_line_length": 142, "avg_line_length": 31.7, "alnum_prop": 0.7534174553101998, "repo_name": "kahkeng/aws-sdk-cpp", "id": "652026eaf65cc96254db6a930a0eb9c7e22b589d", "size": "2473", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "aws-cpp-sdk-cloudformation/source/model/DescribeAccountLimitsResult.cpp", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "C", "bytes": "7595" }, { "name": "C++", "bytes": "37744404" }, { "name": "CMake", "bytes": "265388" }, { "name": "Java", "bytes": "214644" }, { "name": "Python", "bytes": "46021" } ], "symlink_target": "" }
// Copyright 2018 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package org.chromium.chrome.browser.ui.signin; import android.content.Context; import android.util.AttributeSet; import android.view.ViewTreeObserver; import android.widget.ScrollView; import androidx.annotation.Nullable; /** * ScrollView without the top edge that also sends notification when it is scrolled to the bottom. */ public class SigninScrollView extends ScrollView { private final ViewTreeObserver.OnGlobalLayoutListener mOnGlobalLayoutListener = this::checkScrolledToBottom; private final ViewTreeObserver.OnScrollChangedListener mOnScrollChangedListener = this::checkScrolledToBottom; private @Nullable Runnable mObserver; public SigninScrollView(Context context, AttributeSet attrs) { super(context, attrs); } @Override protected float getTopFadingEdgeStrength() { // Disable fading out effect at the top of this ScrollView. return 0; } @Override protected void onDetachedFromWindow() { removeObserver(); super.onDetachedFromWindow(); } private void checkScrolledToBottom() { if (mObserver == null) return; if (getChildCount() == 0) { // The ScrollView is definitely scrolled to bottom if there are no children. mObserver.run(); return; } if ((getHeight() + getScrollY()) < getChildAt(getChildCount() - 1).getBottom()) return; mObserver.run(); } /** * Sets observer. Regardless of the passed value, notifications for the previous observer will * be canceled. * @param observer The Runnable to receive notification when SigninScrollView is scrolled to * bottom, or null to clear the observer. */ public void setScrolledToBottomObserver(@Nullable Runnable observer) { removeObserver(); if (observer == null) return; mObserver = observer; getViewTreeObserver().addOnGlobalLayoutListener(mOnGlobalLayoutListener); getViewTreeObserver().addOnScrollChangedListener(mOnScrollChangedListener); } private void removeObserver() { if (mObserver == null) return; mObserver = null; getViewTreeObserver().removeOnGlobalLayoutListener(mOnGlobalLayoutListener); getViewTreeObserver().removeOnScrollChangedListener(mOnScrollChangedListener); } }
{ "content_hash": "382b9afdcfd88cf926fdf986863ee9a2", "timestamp": "", "source": "github", "line_count": 71, "max_line_length": 98, "avg_line_length": 35.732394366197184, "alnum_prop": 0.7012219156484036, "repo_name": "ric2b/Vivaldi-browser", "id": "882112172429067eb44eb282651f223523dfd720", "size": "2537", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "chromium/chrome/browser/ui/android/signin/java/src/org/chromium/chrome/browser/ui/signin/SigninScrollView.java", "mode": "33188", "license": "bsd-3-clause", "language": [], "symlink_target": "" }
package de.katzenpapst.amunra.client.gui; import java.util.ArrayList; import java.util.List; import de.katzenpapst.amunra.AmunRa; import de.katzenpapst.amunra.helper.GuiHelper; import de.katzenpapst.amunra.inventory.ContainerShuttleDock; import de.katzenpapst.amunra.item.ItemShuttle; import de.katzenpapst.amunra.tile.TileEntityShuttleDock; import de.katzenpapst.amunra.tile.TileEntityShuttleDock.DockOperation; import micdoodle8.mods.galacticraft.core.client.gui.container.GuiContainerGC; import micdoodle8.mods.galacticraft.core.client.gui.element.GuiElementInfoRegion; import micdoodle8.mods.galacticraft.core.util.EnumColor; import micdoodle8.mods.galacticraft.core.util.GCCoreUtil; import net.minecraft.client.gui.GuiButton; import net.minecraft.entity.player.InventoryPlayer; import net.minecraft.item.ItemStack; import net.minecraft.util.ResourceLocation; public class GuiShuttleDock extends GuiContainerGC { private static final ResourceLocation solarGuiTexture = new ResourceLocation(AmunRa.ASSETPREFIX, "textures/gui/dock-gui.png"); private final TileEntityShuttleDock tile; private GuiButton buttonGetShuttle; private GuiButton buttonPutShuttle; private GuiButton buttonEnterShuttle; private boolean isObstructed = true; private GuiElementInfoRegion shuttleInfoRegion; public GuiShuttleDock(InventoryPlayer player, TileEntityShuttleDock tile) { super(new ContainerShuttleDock(player, tile)); this.tile = tile; this.ySize = 210; this.xSize = 176; } @Override protected void actionPerformed(GuiButton par1GuiButton) { switch (par1GuiButton.id) { case 0: tile.performDockOperationClient(DockOperation.GET_SHUTTLE); case 1: tile.performDockOperationClient(DockOperation.MOUNT_SHUTTLE); case 2: tile.performDockOperationClient(DockOperation.DEPLOY_SHUTTLE); break; } } @SuppressWarnings("unchecked") @Override public void initGui() { super.initGui(); isObstructed = tile.isObstructed(); shuttleInfoRegion = new GuiElementInfoRegion( (this.width - this.xSize) / 2 + 23, (this.height - this.ySize) / 2 + 57, 18, 27, new ArrayList<String>(), this.width, this.height, this); List<String> descrStrings = new ArrayList<String>(); descrStrings.add("foobar"); this.shuttleInfoRegion.tooltipStrings = descrStrings; this.shuttleInfoRegion.xPosition = (this.width - this.xSize) / 2 + 23; this.shuttleInfoRegion.yPosition = (this.height - this.ySize) / 2 + 57; this.shuttleInfoRegion.parentWidth = this.width; this.shuttleInfoRegion.parentHeight = this.height; this.infoRegions.add(this.shuttleInfoRegion); buttonGetShuttle = new GuiButton(0, (this.width - this.xSize)/2 + 52, (this.height - this.ySize)/2+ 20, 72, 20 , GCCoreUtil.translate("gui.message.dock.action.get")); buttonEnterShuttle = new GuiButton(1, (this.width - this.xSize)/2 + 52, (this.height - this.ySize)/2+ 56, 72, 20 , GCCoreUtil.translate("gui.message.dock.action.enter")); buttonPutShuttle = new GuiButton(2, (this.width - this.xSize)/2 + 52, (this.height - this.ySize)/2+ 93, 72, 20 , GCCoreUtil.translate("gui.message.dock.action.deploy")); this.buttonList.add(buttonGetShuttle); this.buttonList.add(buttonEnterShuttle); this.buttonList.add(buttonPutShuttle); } @Override protected void drawGuiContainerForegroundLayer(int par1, int par2) { String displayString = this.tile.getInventoryName(); this.fontRendererObj.drawString(displayString, this.xSize / 2 - this.fontRendererObj.getStringWidth(displayString) / 2, 7, 4210752); this.fontRendererObj.drawString(GCCoreUtil.translate("container.inventory"), 8, this.ySize - 94, 4210752); this.shuttleInfoRegion.tooltipStrings.clear(); this.shuttleInfoRegion.tooltipStrings.addAll(getStatus()); ItemStack stack = tile.getStackInSlot(0); boolean hasShuttle = tile.hasShuttle(); boolean hasItem = false; if(stack != null) { hasItem = (stack.stackSize > 0 && stack.getItem() instanceof ItemShuttle); } buttonGetShuttle.enabled = !hasItem && hasShuttle; buttonPutShuttle.enabled = hasItem && !hasShuttle && !isObstructed; buttonEnterShuttle.enabled = hasShuttle; } protected List<String> getStatus() { /*gui.message.dock.status.obstructed=There are blocks in the way. Shuttles cannot dock here. gui.message.dock.status.occupied=A shuttle is docked here. gui.message.dock.status.free=This dock is vacant.*/ if(tile.hasShuttle()) { return GCCoreUtil.translateWithSplit("gui.message.dock.status.occupied"); } if(isObstructed) { return GuiHelper.translateWithSplitColor("gui.message.dock.status.obstructed", EnumColor.DARK_RED); } return GCCoreUtil.translateWithSplit("gui.message.dock.status.free"); } @Override protected void drawGuiContainerBackgroundLayer(float p_146976_1_, int p_146976_2_, int p_146976_3_) { final int xPos = (this.width - this.xSize) / 2; final int yPos = (this.height - this.ySize) / 2; this.mc.renderEngine.bindTexture(solarGuiTexture); final int xOffset = (this.width - this.xSize) / 2; final int yOffset = (this.height - this.ySize) / 2; this.drawTexturedModalRect(xOffset, yOffset, 0, 0, this.xSize, this.ySize); if(isObstructed) { this.drawTexturedModalRect(xPos + 24, yPos + 59, 176, 28, 16, 16); } if(tile.hasShuttle()) { this.drawTexturedModalRect(xPos + 23, yPos + 53, 176, 1, 18, 27); } } }
{ "content_hash": "4a5ceafd113f54ed2bd5ade51093ec2a", "timestamp": "", "source": "github", "line_count": 161, "max_line_length": 140, "avg_line_length": 37.50931677018634, "alnum_prop": 0.6714687862228845, "repo_name": "katzenpapst/amunra", "id": "3375e948fd9053f829e6243631a8f4f68283482c", "size": "6039", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/main/java/de/katzenpapst/amunra/client/gui/GuiShuttleDock.java", "mode": "33261", "license": "mit", "language": [ { "name": "Java", "bytes": "1737273" } ], "symlink_target": "" }
/** * A page renderer that uses dustjs to render precompiled pages. * Templates is listed as a dependency because the templates are registered to dust by running that code, * and that's how they become available to dust.render() by a simple template name. */ define(["dust", "app/templates"], function(dust, templates){ return { /** * This function uses dust-core to render a precompiled template with the provided name, using the provided data. * @param templateName Name of the template to render. * @param data Data to use when rendering. * @param callback Function to call after rendering. This will receive one param, the result of the rendering. */ render: function(templateName, data, callback){ dust.render(templateName, data, function(err, out){ if(err){ throw err; } callback(out); }); } } });
{ "content_hash": "39a03791b3c0f3601c0685060da9ef5d", "timestamp": "", "source": "github", "line_count": 24, "max_line_length": 121, "avg_line_length": 40.708333333333336, "alnum_prop": 0.6151484135107472, "repo_name": "fdtaillefer/stitchat", "id": "2af5940bfbd4c10feee3a943ef62abacc967cfe9", "size": "977", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "js/app/dustRenderer.js", "mode": "33188", "license": "mit", "language": [ { "name": "JavaScript", "bytes": "106529" } ], "symlink_target": "" }
FactoryBot.define do factory :article do title { FFaker::Internet.email } body { FFaker::Lorem.words(10).join(' ') } published_at { 1.day.ago } comment { FFaker::Lorem.words(2).join(' ') } end end
{ "content_hash": "efc72d00b33b864bee6bc63893782307", "timestamp": "", "source": "github", "line_count": 8, "max_line_length": 48, "avg_line_length": 27.125, "alnum_prop": 0.6267281105990783, "repo_name": "redde/redde", "id": "93a454c893c7df17082f21ef55d066cb70cc7903", "size": "287", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "spec/factories/articles_factory.rb", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "42362" }, { "name": "CoffeeScript", "bytes": "4359" }, { "name": "HTML", "bytes": "29616" }, { "name": "JavaScript", "bytes": "103191" }, { "name": "Ruby", "bytes": "91411" } ], "symlink_target": "" }
{% extends "layout.html" %} {% block body %} Vehicle Controls: <form id="steering_wheel_form"> <label for="steering_wheel">Steering Wheel Angle:</label> <input type="number" name="steering_wheel" id="steering_wheel" min="-600.0" max="600.0" step="1.0" value="0"/> </form> <br><form id="accelerator_form"> <label for="accelerator">Accelerator Pedal Percentage:</label> <input type="number" name="accelerator" id="accelerator" min="0.0" max="100.0" step="1.0" value="{{ accelerator }}"/> </form> <br><form id="brake_form"> <label for="brake">Brake Pedal Percentage:</label> <input type="number" name="brake" id="brake" min="0.0" max="100.0" step="1.0" value="0"/> </form> <br><form id="parking_brake_form"> <label for="parking_brake_check">Parking Brake Active:</label> <input type="checkbox" name="parking_brake_check" id="parking_brake_check" /> </form> <br><form id="ignition_form"> <label for="ignition_radio">Ignition Status:</label> <div id="ignition_radio"> <input type="radio" name="ignition_radio" id="ig_off" ><label for="ig_off">Off</label> <input type="radio" name="ignition_radio" id="ig_acc" ><label for="ig_acc">Accessory</label> <input type="radio" name="ignition_radio" id="ig_run" checked'"checked"><label for="ig_run">Run</label> <input type="radio" name="ignition_radio" id="ig_start" ><label for="ig_start">Start</label> </div> </form> <br><form id="gear_form"> <label for="gear_radio">Gear Lever Position:</label> <div id="gear_radio"> <input type="radio" name="gear_radio" id="gear_park" ><label for="gear_park">Park</label> <input type="radio" name="gear_radio" id="gear_drive" checked'"checked"><label for="gear_drive">Drive</label> <input type="radio" name="gear_radio" id="gear_neutral"><label for="gear_neutral">Neutral</label> <input type="radio" name="gear_radio" id="gear_reverse" ><label for="gear_reverse">Reverse</label> </div> </form> <br><form id="manual_form"> <label for="manual_check">Select Shift Transmission:</label> <input type="checkbox" name="manual_check" id="manual_check" /> <input type="button" name="upshift_button" id="upshift_button" value="Shift Up" /> <input type="button" name="downshift_button" id="downshift_button" value="Shift Down" /> </form> <br><form id="headlamp_form"> <label for="headlamp_check">Headlamp Status:</label> <input type="checkbox" name="headlamp_check" id="headlamp_check" /> </form> <br><form id="high_beam_form"> <label for="high_beam_check">High Beam Status:</label> <input type="checkbox" name="high_beam_check" id="high_beam_check" /> </form> <br><form id="windshield_wiper_form"> <label for="windshield_wiper_check">Windshield Wiper Status:</label> <input type="checkbox" name="windshield_wiper_check" id="windshield_wiper_check" /> </form> <br><form id="door_status"> Door Ajar: <label for="driver_door_check">Driver:</label> <input type="checkbox" name="driver_door_check" id="driver_door_check" /> <label for="passenger_door_check">Passenger:</label> <input type="checkbox" name="passenger_door_check" id="passenger_door_check" /> <label for="right_rear_door_check">Right Rear:</label> <input type="checkbox" name="right_rear_door_check" id="right_rear_door_check" /> <label for="left_rear_door_check">Left Rear:</label> <input type="checkbox" name="left_rear_door_check" id="left_rear_door_check" /> </form> <br>New Lat/Lon: <br><label for="new_lat">Latitude</label> <input type="text" name="new_lat" id="new_lat" value="{{ session['new_lat'] }}"/> <br><label for="new_lon">Longitude</label> <input type="text" name="new_lon" id="new_lon" value="{{ session['new_lon'] }}"/> <br><button type="button" id="new_lat_lon" name="new_lat_lon">Update Lat/Lon</button> <br><br> <table>Vehicle Dynamics Data: <tr><td>Torque at Transmission: </td><td id="torque"></td><td>Nm</td></tr> <tr><td>Transmission Gear: </td><td id="gear"></td><td>Nm</td></tr> <tr><td>Engine Speed: </td><td id="engine_speed"></td><td>RPM</td></tr> <tr><td>Vehicle Speed: </td><td id="vehicle_speed"></td><td>km/hr</td></tr> <tr><td>Fuel Consumed Since Restart: </td><td id="fuel_consumed"></td><td>L</td></tr> <tr><td>Odometer: </td><td id="odometer"></td><td>km</td></tr> <tr><td>Fuel Level: </td><td id="fuel_level"></td><td>%</td></tr> <tr><td>Heading: </td><td id="heading"></td><td></td></tr> <tr><td>Latitude: </td><td id="latitude"></td><td></td></tr> <tr><td>Longitude: </td><td id="longitude"></td><td></td></tr> </table> <h3>Custom Message</h3> <br><form id="custom_message_form" method="POST" action="{{ url_for('send_custom_message') }}"> <p> <label for="custom_message_name">Name</label> <input type="text" name="custom_message_name" id="custom_message_name" value="{{ session['custom_message_name'] }}"/> </p> <p> <label for="custom_message_value">Value (only works for string values)</label> <input type="text" name="custom_message_value" id="custom_message_value" value="{{ session['custom_message_value'] }}"/> </p> <p> <label for="custom_message_event">Event</label> <input type="text" name="custom_message_event" id="custom_message_event" value="{{ session['custom_message_event'] }}"/> </p> <button type="submit">Send</button> </form> {% if session.updates_paused %} <form action="{{ url_for('single') }}" method=post class=add-entry> <dl> <dd><input type=submit value="Single Update"> </dl> </form> <form action="{{ url_for('start') }}" method=post class=add-entry> <dl> <dd><input type=submit value=Resume> </dl> </form> {% else %} <form action="{{ url_for('stop') }}" method=post class=add-entry> <dl> <dd><input type=submit value=Pause> </dl> </form> {% endif %} <h3>Received Command Data</h3> <pre><code> {% for received_message in received_messages %} {{ received_message }} {% endfor %} </code></pre> {% endblock %}
{ "content_hash": "fd00e6bd5f2c6fd05f8736ca8439a32b", "timestamp": "", "source": "github", "line_count": 161, "max_line_length": 117, "avg_line_length": 40.192546583850934, "alnum_prop": 0.5958893524957503, "repo_name": "iamthebest77/openx", "id": "2967df85060f55f5fd736164c42ab3210d8bca39", "size": "6471", "binary": false, "copies": "4", "ref": "refs/heads/master", "path": "templates/vehicle_controls.html", "mode": "33188", "license": "bsd-3-clause", "language": [ { "name": "CSS", "bytes": "918" }, { "name": "HTML", "bytes": "7556" }, { "name": "JavaScript", "bytes": "7494" }, { "name": "Python", "bytes": "36871" } ], "symlink_target": "" }
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="generator" content="rustdoc"> <meta name="description" content="API documentation for the Rust `XKB_KEY_therefore` constant in crate `wayland_kbd`."> <meta name="keywords" content="rust, rustlang, rust-lang, XKB_KEY_therefore"> <title>wayland_kbd::keysyms::XKB_KEY_therefore - Rust</title> <link rel="stylesheet" type="text/css" href="../../main.css"> </head> <body class="rustdoc"> <!--[if lte IE 8]> <div class="warning"> This old browser is unsupported and will most likely display funky things. </div> <![endif]--> <section class="sidebar"> <p class='location'><a href='../index.html'>wayland_kbd</a>::<wbr><a href='index.html'>keysyms</a></p><script>window.sidebarCurrent = {name: 'XKB_KEY_therefore', ty: 'constant', relpath: ''};</script><script defer src="sidebar-items.js"></script> </section> <nav class="sub"> <form class="search-form js-only"> <div class="search-container"> <input class="search-input" name="search" autocomplete="off" placeholder="Click or press 'S' to search, '?' for more options..." type="search"> </div> </form> </nav> <section id='main' class="content constant"> <h1 class='fqn'><span class='in-band'><a href='../index.html'>wayland_kbd</a>::<wbr><a href='index.html'>keysyms</a>::<wbr><a class='constant' href=''>XKB_KEY_therefore</a></span><span class='out-of-band'><span id='render-detail'> <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs"> [<span class='inner'>&#x2212;</span>] </a> </span><a id='src-3287' class='srclink' href='../../src/wayland_kbd/ffi/keysyms.rs.html#1349' title='goto source code'>[src]</a></span></h1> <pre class='rust const'>pub const XKB_KEY_therefore: <a href='http://doc.rust-lang.org/nightly/std/primitive.u32.html'>u32</a><code> = </code><code>0x08c0</code></pre></section> <section id='search' class="content hidden"></section> <section class="footer"></section> <div id="help" class="hidden"> <div class="shortcuts"> <h1>Keyboard shortcuts</h1> <dl> <dt>?</dt> <dd>Show this help dialog</dd> <dt>S</dt> <dd>Focus the search field</dd> <dt>&larrb;</dt> <dd>Move up in search results</dd> <dt>&rarrb;</dt> <dd>Move down in search results</dd> <dt>&#9166;</dt> <dd>Go to active search result</dd> </dl> </div> <div class="infos"> <h1>Search tricks</h1> <p> Prefix searches with a type followed by a colon (e.g. <code>fn:</code>) to restrict the search to a given type. </p> <p> Accepted types are: <code>fn</code>, <code>mod</code>, <code>struct</code>, <code>enum</code>, <code>trait</code>, <code>typedef</code> (or <code>tdef</code>). </p> <p> Search functions by type signature (e.g. <code>vec -> usize</code>) </p> </div> </div> <script> window.rootPath = "../../"; window.currentCrate = "wayland_kbd"; window.playgroundUrl = ""; </script> <script src="../../jquery.js"></script> <script src="../../main.js"></script> <script async src="../../search-index.js"></script> </body> </html>
{ "content_hash": "a0e69872fc254a051149ec2a289b3b54", "timestamp": "", "source": "github", "line_count": 101, "max_line_length": 254, "avg_line_length": 37.97029702970297, "alnum_prop": 0.5316818774445893, "repo_name": "mcanders/bevy", "id": "a14fd9e6bda0d8061ffa5b38a38a474f117b4f8d", "size": "3835", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "doc/wayland_kbd/keysyms/constant.XKB_KEY_therefore.html", "mode": "33188", "license": "mit", "language": [ { "name": "Rust", "bytes": "316751" } ], "symlink_target": "" }
<?php namespace ArturDoruch\PaginatorBundle\Paginator; use ArturDoruch\PaginatorBundle\Pagination; /** * @author Artur Doruch <arturdoruch@interia.pl> */ abstract class AbstractPaginator implements PaginatorInterface { /** * @var Pagination */ private $pagination; /** * @var \ArrayIterator */ private $items; /** * @param Pagination $pagination */ public function setPagination(Pagination $pagination) { $this->pagination = $pagination; } /** * @return Pagination */ public function getPagination() { return $this->pagination; } /** * @return \ArrayIterator */ public function getIterator() { if (!$this->items) { $this->items = $this->getItems(); } return $this->items; } /** * @return \ArrayIterator */ abstract protected function getItems(); /** * @return int */ protected function getLimit() { return $this->pagination->getLimit(); } /** * @return int */ protected function getOffset() { return $this->pagination->getOffset(); } }
{ "content_hash": "61a1346506fbb62285d0b8c1e311d16f", "timestamp": "", "source": "github", "line_count": 70, "max_line_length": 62, "avg_line_length": 17.15714285714286, "alnum_prop": 0.5553705245628643, "repo_name": "arturdoruch/PaginatorBundle", "id": "9432ae2c9cc182add527d2389e63700ebb5ff08a", "size": "1201", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "Paginator/AbstractPaginator.php", "mode": "33188", "license": "mit", "language": [ { "name": "HTML", "bytes": "932" }, { "name": "PHP", "bytes": "21481" } ], "symlink_target": "" }
<p class="soundbite">{{soundbite}}</p>
{ "content_hash": "6c6ac185574fd3279ecdfb113c3b83b2", "timestamp": "", "source": "github", "line_count": 1, "max_line_length": 38, "avg_line_length": 39, "alnum_prop": 0.6410256410256411, "repo_name": "nprapps/debates", "id": "24151bf064f24342273dc6db60f4a5c2dbe3323a", "size": "39", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "templates/transcript/soundbite.html", "mode": "33188", "license": "mit", "language": [ { "name": "AppleScript", "bytes": "1021" }, { "name": "CSS", "bytes": "92373" }, { "name": "HTML", "bytes": "29893" }, { "name": "JavaScript", "bytes": "468797" }, { "name": "Nginx", "bytes": "136" }, { "name": "Python", "bytes": "117929" }, { "name": "Shell", "bytes": "83" } ], "symlink_target": "" }
/***************************************************************************//** * @file em_leuart.h * @brief Low Energy Universal Asynchronous Receiver/Transmitter (LEUART) * peripheral API * @version 4.4.0 ******************************************************************************* * @section License * <b>Copyright 2016 Silicon Laboratories, Inc. http://www.silabs.com</b> ******************************************************************************* * * Permission is granted to anyone to use this software for any purpose, * including commercial applications, and to alter it and redistribute it * freely, subject to the following restrictions: * * 1. The origin of this software must not be misrepresented; you must not * claim that you wrote the original software. * 2. Altered source versions must be plainly marked as such, and must not be * misrepresented as being the original software. * 3. This notice may not be removed or altered from any source distribution. * * DISCLAIMER OF WARRANTY/LIMITATION OF REMEDIES: Silicon Labs has no * obligation to support this Software. Silicon Labs is providing the * Software "AS IS", with no express or implied warranties of any kind, * including, but not limited to, any implied warranties of merchantability * or fitness for any particular purpose or warranties against infringement * of any proprietary rights of a third party. * * Silicon Labs will not be liable for any consequential, incidental, or * special damages, or any other relief, or for any claim by any third party, * arising from your use of this Software. * ******************************************************************************/ #ifndef EM_LEUART_H #define EM_LEUART_H #include "em_device.h" #if defined(LEUART_COUNT) && (LEUART_COUNT > 0) #include <stdbool.h> #ifdef __cplusplus extern "C" { #endif /***************************************************************************//** * @addtogroup emlib * @{ ******************************************************************************/ /***************************************************************************//** * @addtogroup LEUART * @{ ******************************************************************************/ /******************************************************************************* ******************************** ENUMS ************************************ ******************************************************************************/ /** Databit selection. */ typedef enum { leuartDatabits8 = LEUART_CTRL_DATABITS_EIGHT, /**< 8 databits. */ leuartDatabits9 = LEUART_CTRL_DATABITS_NINE /**< 9 databits. */ } LEUART_Databits_TypeDef; /** Enable selection. */ typedef enum { /** Disable both receiver and transmitter. */ leuartDisable = 0x0, /** Enable receiver only, transmitter disabled. */ leuartEnableRx = LEUART_CMD_RXEN, /** Enable transmitter only, receiver disabled. */ leuartEnableTx = LEUART_CMD_TXEN, /** Enable both receiver and transmitter. */ leuartEnable = (LEUART_CMD_RXEN | LEUART_CMD_TXEN) } LEUART_Enable_TypeDef; /** Parity selection. */ typedef enum { leuartNoParity = LEUART_CTRL_PARITY_NONE, /**< No parity. */ leuartEvenParity = LEUART_CTRL_PARITY_EVEN, /**< Even parity. */ leuartOddParity = LEUART_CTRL_PARITY_ODD /**< Odd parity. */ } LEUART_Parity_TypeDef; /** Stopbits selection. */ typedef enum { leuartStopbits1 = LEUART_CTRL_STOPBITS_ONE, /**< 1 stopbits. */ leuartStopbits2 = LEUART_CTRL_STOPBITS_TWO /**< 2 stopbits. */ } LEUART_Stopbits_TypeDef; /******************************************************************************* ******************************* STRUCTS *********************************** ******************************************************************************/ /** Init structure. */ typedef struct { /** Specifies whether TX and/or RX shall be enabled when init completed. */ LEUART_Enable_TypeDef enable; /** * LEUART reference clock assumed when configuring baudrate setup. Set * it to 0 if currently configurated reference clock shall be used. */ uint32_t refFreq; /** Desired baudrate. */ uint32_t baudrate; /** Number of databits in frame. */ LEUART_Databits_TypeDef databits; /** Parity mode to use. */ LEUART_Parity_TypeDef parity; /** Number of stopbits to use. */ LEUART_Stopbits_TypeDef stopbits; } LEUART_Init_TypeDef; /** Default config for LEUART init structure. */ #define LEUART_INIT_DEFAULT \ { \ leuartEnable, /* Enable RX/TX when init completed. */ \ 0, /* Use current configured reference clock for configuring baudrate. */ \ 9600, /* 9600 bits/s. */ \ leuartDatabits8, /* 8 databits. */ \ leuartNoParity, /* No parity. */ \ leuartStopbits1 /* 1 stopbit. */ \ } /******************************************************************************* ***************************** PROTOTYPES ********************************** ******************************************************************************/ uint32_t LEUART_BaudrateCalc(uint32_t refFreq, uint32_t clkdiv); uint32_t LEUART_BaudrateGet(LEUART_TypeDef *leuart); void LEUART_BaudrateSet(LEUART_TypeDef *leuart, uint32_t refFreq, uint32_t baudrate); void LEUART_Enable(LEUART_TypeDef *leuart, LEUART_Enable_TypeDef enable); void LEUART_FreezeEnable(LEUART_TypeDef *leuart, bool enable); void LEUART_Init(LEUART_TypeDef *leuart, LEUART_Init_TypeDef const *init); void LEUART_TxDmaInEM2Enable(LEUART_TypeDef *leuart, bool enable); void LEUART_RxDmaInEM2Enable(LEUART_TypeDef *leuart, bool enable); /***************************************************************************//** * @brief * Clear one or more pending LEUART interrupts. * * @param[in] leuart * Pointer to LEUART peripheral register block. * * @param[in] flags * Pending LEUART interrupt source to clear. Use a bitwise logic OR * combination of valid interrupt flags for the LEUART module (LEUART_IF_nnn). ******************************************************************************/ __STATIC_INLINE void LEUART_IntClear(LEUART_TypeDef *leuart, uint32_t flags) { leuart->IFC = flags; } /***************************************************************************//** * @brief * Disable one or more LEUART interrupts. * * @param[in] leuart * Pointer to LEUART peripheral register block. * * @param[in] flags * LEUART interrupt sources to disable. Use a bitwise logic OR combination of * valid interrupt flags for the LEUART module (LEUART_IF_nnn). ******************************************************************************/ __STATIC_INLINE void LEUART_IntDisable(LEUART_TypeDef *leuart, uint32_t flags) { leuart->IEN &= ~flags; } /***************************************************************************//** * @brief * Enable one or more LEUART interrupts. * * @note * Depending on the use, a pending interrupt may already be set prior to * enabling the interrupt. Consider using LEUART_IntClear() prior to enabling * if such a pending interrupt should be ignored. * * @param[in] leuart * Pointer to LEUART peripheral register block. * * @param[in] flags * LEUART interrupt sources to enable. Use a bitwise logic OR combination of * valid interrupt flags for the LEUART module (LEUART_IF_nnn). ******************************************************************************/ __STATIC_INLINE void LEUART_IntEnable(LEUART_TypeDef *leuart, uint32_t flags) { leuart->IEN |= flags; } /***************************************************************************//** * @brief * Get pending LEUART interrupt flags. * * @note * The event bits are not cleared by the use of this function. * * @param[in] leuart * Pointer to LEUART peripheral register block. * * @return * LEUART interrupt sources pending. A bitwise logic OR combination of valid * interrupt flags for the LEUART module (LEUART_IF_nnn). ******************************************************************************/ __STATIC_INLINE uint32_t LEUART_IntGet(LEUART_TypeDef *leuart) { return leuart->IF; } /***************************************************************************//** * @brief * Get enabled and pending LEUART interrupt flags. * Useful for handling more interrupt sources in the same interrupt handler. * * @param[in] leuart * Pointer to LEUART peripheral register block. * * @note * Interrupt flags are not cleared by the use of this function. * * @return * Pending and enabled LEUART interrupt sources. * The return value is the bitwise AND combination of * - the OR combination of enabled interrupt sources in LEUARTx_IEN_nnn * register (LEUARTx_IEN_nnn) and * - the OR combination of valid interrupt flags of the LEUART module * (LEUARTx_IF_nnn). ******************************************************************************/ __STATIC_INLINE uint32_t LEUART_IntGetEnabled(LEUART_TypeDef *leuart) { uint32_t tmp; /* Store LEUARTx->IEN in temporary variable in order to define explicit order * of volatile accesses. */ tmp = leuart->IEN; /* Bitwise AND of pending and enabled interrupts */ return leuart->IF & tmp; } /***************************************************************************//** * @brief * Set one or more pending LEUART interrupts from SW. * * @param[in] leuart * Pointer to LEUART peripheral register block. * * @param[in] flags * LEUART interrupt sources to set to pending. Use a bitwise logic OR * combination of valid interrupt flags for the LEUART module (LEUART_IF_nnn). ******************************************************************************/ __STATIC_INLINE void LEUART_IntSet(LEUART_TypeDef *leuart, uint32_t flags) { leuart->IFS = flags; } /***************************************************************************//** * @brief * Get LEUART STATUS register. * * @param[in] leuart * Pointer to LEUART peripheral register block. * * @return * STATUS register value. * ******************************************************************************/ __STATIC_INLINE uint32_t LEUART_StatusGet(LEUART_TypeDef *leuart) { return leuart->STATUS; } void LEUART_Reset(LEUART_TypeDef *leuart); uint8_t LEUART_Rx(LEUART_TypeDef *leuart); uint16_t LEUART_RxExt(LEUART_TypeDef *leuart); void LEUART_Tx(LEUART_TypeDef *leuart, uint8_t data); void LEUART_TxExt(LEUART_TypeDef *leuart, uint16_t data); /***************************************************************************//** * @brief * Receive one 8 bit frame, (or part of a 9 bit frame). * * @details * This function is used to quickly receive one 8 bit frame by reading the * RXDATA register directly, without checking the STATUS register for the * RXDATAV flag. This can be useful from the RXDATAV interrupt handler, * i.e. waiting is superfluous, in order to quickly read the received data. * Please refer to @ref LEUART_RxDataXGet() for reception of 9 bit frames. * * @note * Since this function does not check whether the RXDATA register actually * holds valid data, it should only be used in situations when it is certain * that there is valid data, ensured by some external program routine, e.g. * like when handling an RXDATAV interrupt. The @ref LEUART_Rx() is normally a * better choice if the validity of the RXDATA register is not certain. * * @note * Notice that possible parity/stop bits are not * considered part of specified frame bit length. * * @param[in] leuart * Pointer to LEUART peripheral register block. * * @return * Data received. ******************************************************************************/ __STATIC_INLINE uint8_t LEUART_RxDataGet(LEUART_TypeDef *leuart) { return (uint8_t)leuart->RXDATA; } /***************************************************************************//** * @brief * Receive one 8-9 bit frame, with extended information. * * @details * This function is used to quickly receive one 8-9 bit frame with extended * information by reading the RXDATAX register directly, without checking the * STATUS register for the RXDATAV flag. This can be useful from the RXDATAV * interrupt handler, i.e. waiting is superfluous, in order to quickly read * the received data. * * @note * Since this function does not check whether the RXDATAX register actually * holds valid data, it should only be used in situations when it is certain * that there is valid data, ensured by some external program routine, e.g. * like when handling an RXDATAV interrupt. The @ref LEUART_RxExt() is normally * a better choice if the validity of the RXDATAX register is not certain. * * @note * Notice that possible parity/stop bits are not * considered part of specified frame bit length. * * @param[in] leuart * Pointer to LEUART peripheral register block. * * @return * Data received. ******************************************************************************/ __STATIC_INLINE uint16_t LEUART_RxDataXGet(LEUART_TypeDef *leuart) { return (uint16_t)leuart->RXDATAX; } /** @} (end addtogroup LEUART) */ /** @} (end addtogroup emlib) */ #ifdef __cplusplus } #endif #endif /* defined(LEUART_COUNT) && (LEUART_COUNT > 0) */ #endif /* EM_LEUART_H */
{ "content_hash": "c69b88ba17924d3d958e1e36963ec1eb", "timestamp": "", "source": "github", "line_count": 382, "max_line_length": 93, "avg_line_length": 36.40052356020942, "alnum_prop": 0.5412441567781373, "repo_name": "imec-idlab/LoRaMac-node", "id": "1d9ad1a667309a547ec2c0ed391ecc1c82f75e5a", "size": "13905", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "src/boards/mcu/efm32gg/emlib/inc/em_leuart.h", "mode": "33188", "license": "bsd-3-clause", "language": [ { "name": "Assembly", "bytes": "138394" }, { "name": "C", "bytes": "32366798" }, { "name": "C++", "bytes": "503900" }, { "name": "Makefile", "bytes": "3179" }, { "name": "Objective-C", "bytes": "4332" } ], "symlink_target": "" }
package com.amazonaws.services.sqs.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * <p/> * * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/sqs-2012-11-05/AddPermission" target="_top">AWS API * Documentation</a> */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AddPermissionRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** * <p> * The URL of the Amazon SQS queue to which permissions are added. * </p> * <p> * Queue URLs are case-sensitive. * </p> */ private String queueUrl; /** * <p> * The unique identification of the permission you're setting (for example, <code>AliceSendMessage</code>). Maximum * 80 characters. Allowed characters include alphanumeric characters, hyphens (<code>-</code>), and underscores ( * <code>_</code>). * </p> */ private String label; /** * <p> * The AWS account number of the <a * href="http://docs.aws.amazon.com/general/latest/gr/glos-chap.html#P">principal</a> who is given permission. The * principal must have an AWS account, but does not need to be signed up for Amazon SQS. For information about * locating the AWS account identification, see <a * href="http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/AWSCredentials.html">Your AWS * Identifiers</a> in the <i>Amazon SQS Developer Guide</i>. * </p> */ private com.amazonaws.internal.SdkInternalList<String> aWSAccountIds; /** * <p> * The action the client wants to allow for the specified principal. The following values are valid: * </p> * <ul> * <li> * <p> * <code>*</code> * </p> * </li> * <li> * <p> * <code>ChangeMessageVisibility</code> * </p> * </li> * <li> * <p> * <code>DeleteMessage</code> * </p> * </li> * <li> * <p> * <code>GetQueueAttributes</code> * </p> * </li> * <li> * <p> * <code>GetQueueUrl</code> * </p> * </li> * <li> * <p> * <code>ReceiveMessage</code> * </p> * </li> * <li> * <p> * <code>SendMessage</code> * </p> * </li> * </ul> * <p> * For more information about these actions, see <a href= * "http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/acp-overview.html#PermissionTypes" * >Understanding Permissions</a> in the <i>Amazon SQS Developer Guide</i>. * </p> * <p> * Specifying <code>SendMessage</code>, <code>DeleteMessage</code>, or <code>ChangeMessageVisibility</code> for * <code>ActionName.n</code> also grants permissions for the corresponding batch versions of those actions: * <code>SendMessageBatch</code>, <code>DeleteMessageBatch</code>, and <code>ChangeMessageVisibilityBatch</code>. * </p> */ private com.amazonaws.internal.SdkInternalList<String> actions; /** * Default constructor for AddPermissionRequest object. Callers should use the setter or fluent setter (with...) * methods to initialize the object after creating it. */ public AddPermissionRequest() { } /** * Constructs a new AddPermissionRequest object. Callers should use the setter or fluent setter (with...) methods to * initialize any additional object members. * * @param queueUrl * The URL of the Amazon SQS queue to which permissions are added.</p> * <p> * Queue URLs are case-sensitive. * @param label * The unique identification of the permission you're setting (for example, <code>AliceSendMessage</code>). * Maximum 80 characters. Allowed characters include alphanumeric characters, hyphens (<code>-</code>), and * underscores (<code>_</code>). * @param aWSAccountIds * The AWS account number of the <a * href="http://docs.aws.amazon.com/general/latest/gr/glos-chap.html#P">principal</a> who is given * permission. The principal must have an AWS account, but does not need to be signed up for Amazon SQS. For * information about locating the AWS account identification, see <a * href="http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/AWSCredentials.html">Your * AWS Identifiers</a> in the <i>Amazon SQS Developer Guide</i>. * @param actions * The action the client wants to allow for the specified principal. The following values are valid: * </p> * <ul> * <li> * <p> * <code>*</code> * </p> * </li> * <li> * <p> * <code>ChangeMessageVisibility</code> * </p> * </li> * <li> * <p> * <code>DeleteMessage</code> * </p> * </li> * <li> * <p> * <code>GetQueueAttributes</code> * </p> * </li> * <li> * <p> * <code>GetQueueUrl</code> * </p> * </li> * <li> * <p> * <code>ReceiveMessage</code> * </p> * </li> * <li> * <p> * <code>SendMessage</code> * </p> * </li> * </ul> * <p> * For more information about these actions, see <a href= * "http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/acp-overview.html#PermissionTypes" * >Understanding Permissions</a> in the <i>Amazon SQS Developer Guide</i>. * </p> * <p> * Specifying <code>SendMessage</code>, <code>DeleteMessage</code>, or <code>ChangeMessageVisibility</code> * for <code>ActionName.n</code> also grants permissions for the corresponding batch versions of those * actions: <code>SendMessageBatch</code>, <code>DeleteMessageBatch</code>, and * <code>ChangeMessageVisibilityBatch</code>. */ public AddPermissionRequest(String queueUrl, String label, java.util.List<String> aWSAccountIds, java.util.List<String> actions) { setQueueUrl(queueUrl); setLabel(label); setAWSAccountIds(aWSAccountIds); setActions(actions); } /** * <p> * The URL of the Amazon SQS queue to which permissions are added. * </p> * <p> * Queue URLs are case-sensitive. * </p> * * @param queueUrl * The URL of the Amazon SQS queue to which permissions are added.</p> * <p> * Queue URLs are case-sensitive. */ public void setQueueUrl(String queueUrl) { this.queueUrl = queueUrl; } /** * <p> * The URL of the Amazon SQS queue to which permissions are added. * </p> * <p> * Queue URLs are case-sensitive. * </p> * * @return The URL of the Amazon SQS queue to which permissions are added.</p> * <p> * Queue URLs are case-sensitive. */ public String getQueueUrl() { return this.queueUrl; } /** * <p> * The URL of the Amazon SQS queue to which permissions are added. * </p> * <p> * Queue URLs are case-sensitive. * </p> * * @param queueUrl * The URL of the Amazon SQS queue to which permissions are added.</p> * <p> * Queue URLs are case-sensitive. * @return Returns a reference to this object so that method calls can be chained together. */ public AddPermissionRequest withQueueUrl(String queueUrl) { setQueueUrl(queueUrl); return this; } /** * <p> * The unique identification of the permission you're setting (for example, <code>AliceSendMessage</code>). Maximum * 80 characters. Allowed characters include alphanumeric characters, hyphens (<code>-</code>), and underscores ( * <code>_</code>). * </p> * * @param label * The unique identification of the permission you're setting (for example, <code>AliceSendMessage</code>). * Maximum 80 characters. Allowed characters include alphanumeric characters, hyphens (<code>-</code>), and * underscores (<code>_</code>). */ public void setLabel(String label) { this.label = label; } /** * <p> * The unique identification of the permission you're setting (for example, <code>AliceSendMessage</code>). Maximum * 80 characters. Allowed characters include alphanumeric characters, hyphens (<code>-</code>), and underscores ( * <code>_</code>). * </p> * * @return The unique identification of the permission you're setting (for example, <code>AliceSendMessage</code>). * Maximum 80 characters. Allowed characters include alphanumeric characters, hyphens (<code>-</code>), and * underscores (<code>_</code>). */ public String getLabel() { return this.label; } /** * <p> * The unique identification of the permission you're setting (for example, <code>AliceSendMessage</code>). Maximum * 80 characters. Allowed characters include alphanumeric characters, hyphens (<code>-</code>), and underscores ( * <code>_</code>). * </p> * * @param label * The unique identification of the permission you're setting (for example, <code>AliceSendMessage</code>). * Maximum 80 characters. Allowed characters include alphanumeric characters, hyphens (<code>-</code>), and * underscores (<code>_</code>). * @return Returns a reference to this object so that method calls can be chained together. */ public AddPermissionRequest withLabel(String label) { setLabel(label); return this; } /** * <p> * The AWS account number of the <a * href="http://docs.aws.amazon.com/general/latest/gr/glos-chap.html#P">principal</a> who is given permission. The * principal must have an AWS account, but does not need to be signed up for Amazon SQS. For information about * locating the AWS account identification, see <a * href="http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/AWSCredentials.html">Your AWS * Identifiers</a> in the <i>Amazon SQS Developer Guide</i>. * </p> * * @return The AWS account number of the <a * href="http://docs.aws.amazon.com/general/latest/gr/glos-chap.html#P">principal</a> who is given * permission. The principal must have an AWS account, but does not need to be signed up for Amazon SQS. For * information about locating the AWS account identification, see <a * href="http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/AWSCredentials.html">Your * AWS Identifiers</a> in the <i>Amazon SQS Developer Guide</i>. */ public java.util.List<String> getAWSAccountIds() { if (aWSAccountIds == null) { aWSAccountIds = new com.amazonaws.internal.SdkInternalList<String>(); } return aWSAccountIds; } /** * <p> * The AWS account number of the <a * href="http://docs.aws.amazon.com/general/latest/gr/glos-chap.html#P">principal</a> who is given permission. The * principal must have an AWS account, but does not need to be signed up for Amazon SQS. For information about * locating the AWS account identification, see <a * href="http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/AWSCredentials.html">Your AWS * Identifiers</a> in the <i>Amazon SQS Developer Guide</i>. * </p> * * @param aWSAccountIds * The AWS account number of the <a * href="http://docs.aws.amazon.com/general/latest/gr/glos-chap.html#P">principal</a> who is given * permission. The principal must have an AWS account, but does not need to be signed up for Amazon SQS. For * information about locating the AWS account identification, see <a * href="http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/AWSCredentials.html">Your * AWS Identifiers</a> in the <i>Amazon SQS Developer Guide</i>. */ public void setAWSAccountIds(java.util.Collection<String> aWSAccountIds) { if (aWSAccountIds == null) { this.aWSAccountIds = null; return; } this.aWSAccountIds = new com.amazonaws.internal.SdkInternalList<String>(aWSAccountIds); } /** * <p> * The AWS account number of the <a * href="http://docs.aws.amazon.com/general/latest/gr/glos-chap.html#P">principal</a> who is given permission. The * principal must have an AWS account, but does not need to be signed up for Amazon SQS. For information about * locating the AWS account identification, see <a * href="http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/AWSCredentials.html">Your AWS * Identifiers</a> in the <i>Amazon SQS Developer Guide</i>. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setAWSAccountIds(java.util.Collection)} or {@link #withAWSAccountIds(java.util.Collection)} if you want * to override the existing values. * </p> * * @param aWSAccountIds * The AWS account number of the <a * href="http://docs.aws.amazon.com/general/latest/gr/glos-chap.html#P">principal</a> who is given * permission. The principal must have an AWS account, but does not need to be signed up for Amazon SQS. For * information about locating the AWS account identification, see <a * href="http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/AWSCredentials.html">Your * AWS Identifiers</a> in the <i>Amazon SQS Developer Guide</i>. * @return Returns a reference to this object so that method calls can be chained together. */ public AddPermissionRequest withAWSAccountIds(String... aWSAccountIds) { if (this.aWSAccountIds == null) { setAWSAccountIds(new com.amazonaws.internal.SdkInternalList<String>(aWSAccountIds.length)); } for (String ele : aWSAccountIds) { this.aWSAccountIds.add(ele); } return this; } /** * <p> * The AWS account number of the <a * href="http://docs.aws.amazon.com/general/latest/gr/glos-chap.html#P">principal</a> who is given permission. The * principal must have an AWS account, but does not need to be signed up for Amazon SQS. For information about * locating the AWS account identification, see <a * href="http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/AWSCredentials.html">Your AWS * Identifiers</a> in the <i>Amazon SQS Developer Guide</i>. * </p> * * @param aWSAccountIds * The AWS account number of the <a * href="http://docs.aws.amazon.com/general/latest/gr/glos-chap.html#P">principal</a> who is given * permission. The principal must have an AWS account, but does not need to be signed up for Amazon SQS. For * information about locating the AWS account identification, see <a * href="http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/AWSCredentials.html">Your * AWS Identifiers</a> in the <i>Amazon SQS Developer Guide</i>. * @return Returns a reference to this object so that method calls can be chained together. */ public AddPermissionRequest withAWSAccountIds(java.util.Collection<String> aWSAccountIds) { setAWSAccountIds(aWSAccountIds); return this; } /** * <p> * The action the client wants to allow for the specified principal. The following values are valid: * </p> * <ul> * <li> * <p> * <code>*</code> * </p> * </li> * <li> * <p> * <code>ChangeMessageVisibility</code> * </p> * </li> * <li> * <p> * <code>DeleteMessage</code> * </p> * </li> * <li> * <p> * <code>GetQueueAttributes</code> * </p> * </li> * <li> * <p> * <code>GetQueueUrl</code> * </p> * </li> * <li> * <p> * <code>ReceiveMessage</code> * </p> * </li> * <li> * <p> * <code>SendMessage</code> * </p> * </li> * </ul> * <p> * For more information about these actions, see <a href= * "http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/acp-overview.html#PermissionTypes" * >Understanding Permissions</a> in the <i>Amazon SQS Developer Guide</i>. * </p> * <p> * Specifying <code>SendMessage</code>, <code>DeleteMessage</code>, or <code>ChangeMessageVisibility</code> for * <code>ActionName.n</code> also grants permissions for the corresponding batch versions of those actions: * <code>SendMessageBatch</code>, <code>DeleteMessageBatch</code>, and <code>ChangeMessageVisibilityBatch</code>. * </p> * * @return The action the client wants to allow for the specified principal. The following values are valid:</p> * <ul> * <li> * <p> * <code>*</code> * </p> * </li> * <li> * <p> * <code>ChangeMessageVisibility</code> * </p> * </li> * <li> * <p> * <code>DeleteMessage</code> * </p> * </li> * <li> * <p> * <code>GetQueueAttributes</code> * </p> * </li> * <li> * <p> * <code>GetQueueUrl</code> * </p> * </li> * <li> * <p> * <code>ReceiveMessage</code> * </p> * </li> * <li> * <p> * <code>SendMessage</code> * </p> * </li> * </ul> * <p> * For more information about these actions, see <a href= * "http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/acp-overview.html#PermissionTypes" * >Understanding Permissions</a> in the <i>Amazon SQS Developer Guide</i>. * </p> * <p> * Specifying <code>SendMessage</code>, <code>DeleteMessage</code>, or <code>ChangeMessageVisibility</code> * for <code>ActionName.n</code> also grants permissions for the corresponding batch versions of those * actions: <code>SendMessageBatch</code>, <code>DeleteMessageBatch</code>, and * <code>ChangeMessageVisibilityBatch</code>. */ public java.util.List<String> getActions() { if (actions == null) { actions = new com.amazonaws.internal.SdkInternalList<String>(); } return actions; } /** * <p> * The action the client wants to allow for the specified principal. The following values are valid: * </p> * <ul> * <li> * <p> * <code>*</code> * </p> * </li> * <li> * <p> * <code>ChangeMessageVisibility</code> * </p> * </li> * <li> * <p> * <code>DeleteMessage</code> * </p> * </li> * <li> * <p> * <code>GetQueueAttributes</code> * </p> * </li> * <li> * <p> * <code>GetQueueUrl</code> * </p> * </li> * <li> * <p> * <code>ReceiveMessage</code> * </p> * </li> * <li> * <p> * <code>SendMessage</code> * </p> * </li> * </ul> * <p> * For more information about these actions, see <a href= * "http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/acp-overview.html#PermissionTypes" * >Understanding Permissions</a> in the <i>Amazon SQS Developer Guide</i>. * </p> * <p> * Specifying <code>SendMessage</code>, <code>DeleteMessage</code>, or <code>ChangeMessageVisibility</code> for * <code>ActionName.n</code> also grants permissions for the corresponding batch versions of those actions: * <code>SendMessageBatch</code>, <code>DeleteMessageBatch</code>, and <code>ChangeMessageVisibilityBatch</code>. * </p> * * @param actions * The action the client wants to allow for the specified principal. The following values are valid:</p> * <ul> * <li> * <p> * <code>*</code> * </p> * </li> * <li> * <p> * <code>ChangeMessageVisibility</code> * </p> * </li> * <li> * <p> * <code>DeleteMessage</code> * </p> * </li> * <li> * <p> * <code>GetQueueAttributes</code> * </p> * </li> * <li> * <p> * <code>GetQueueUrl</code> * </p> * </li> * <li> * <p> * <code>ReceiveMessage</code> * </p> * </li> * <li> * <p> * <code>SendMessage</code> * </p> * </li> * </ul> * <p> * For more information about these actions, see <a href= * "http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/acp-overview.html#PermissionTypes" * >Understanding Permissions</a> in the <i>Amazon SQS Developer Guide</i>. * </p> * <p> * Specifying <code>SendMessage</code>, <code>DeleteMessage</code>, or <code>ChangeMessageVisibility</code> * for <code>ActionName.n</code> also grants permissions for the corresponding batch versions of those * actions: <code>SendMessageBatch</code>, <code>DeleteMessageBatch</code>, and * <code>ChangeMessageVisibilityBatch</code>. */ public void setActions(java.util.Collection<String> actions) { if (actions == null) { this.actions = null; return; } this.actions = new com.amazonaws.internal.SdkInternalList<String>(actions); } /** * <p> * The action the client wants to allow for the specified principal. The following values are valid: * </p> * <ul> * <li> * <p> * <code>*</code> * </p> * </li> * <li> * <p> * <code>ChangeMessageVisibility</code> * </p> * </li> * <li> * <p> * <code>DeleteMessage</code> * </p> * </li> * <li> * <p> * <code>GetQueueAttributes</code> * </p> * </li> * <li> * <p> * <code>GetQueueUrl</code> * </p> * </li> * <li> * <p> * <code>ReceiveMessage</code> * </p> * </li> * <li> * <p> * <code>SendMessage</code> * </p> * </li> * </ul> * <p> * For more information about these actions, see <a href= * "http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/acp-overview.html#PermissionTypes" * >Understanding Permissions</a> in the <i>Amazon SQS Developer Guide</i>. * </p> * <p> * Specifying <code>SendMessage</code>, <code>DeleteMessage</code>, or <code>ChangeMessageVisibility</code> for * <code>ActionName.n</code> also grants permissions for the corresponding batch versions of those actions: * <code>SendMessageBatch</code>, <code>DeleteMessageBatch</code>, and <code>ChangeMessageVisibilityBatch</code>. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setActions(java.util.Collection)} or {@link #withActions(java.util.Collection)} if you want to override * the existing values. * </p> * * @param actions * The action the client wants to allow for the specified principal. The following values are valid:</p> * <ul> * <li> * <p> * <code>*</code> * </p> * </li> * <li> * <p> * <code>ChangeMessageVisibility</code> * </p> * </li> * <li> * <p> * <code>DeleteMessage</code> * </p> * </li> * <li> * <p> * <code>GetQueueAttributes</code> * </p> * </li> * <li> * <p> * <code>GetQueueUrl</code> * </p> * </li> * <li> * <p> * <code>ReceiveMessage</code> * </p> * </li> * <li> * <p> * <code>SendMessage</code> * </p> * </li> * </ul> * <p> * For more information about these actions, see <a href= * "http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/acp-overview.html#PermissionTypes" * >Understanding Permissions</a> in the <i>Amazon SQS Developer Guide</i>. * </p> * <p> * Specifying <code>SendMessage</code>, <code>DeleteMessage</code>, or <code>ChangeMessageVisibility</code> * for <code>ActionName.n</code> also grants permissions for the corresponding batch versions of those * actions: <code>SendMessageBatch</code>, <code>DeleteMessageBatch</code>, and * <code>ChangeMessageVisibilityBatch</code>. * @return Returns a reference to this object so that method calls can be chained together. */ public AddPermissionRequest withActions(String... actions) { if (this.actions == null) { setActions(new com.amazonaws.internal.SdkInternalList<String>(actions.length)); } for (String ele : actions) { this.actions.add(ele); } return this; } /** * <p> * The action the client wants to allow for the specified principal. The following values are valid: * </p> * <ul> * <li> * <p> * <code>*</code> * </p> * </li> * <li> * <p> * <code>ChangeMessageVisibility</code> * </p> * </li> * <li> * <p> * <code>DeleteMessage</code> * </p> * </li> * <li> * <p> * <code>GetQueueAttributes</code> * </p> * </li> * <li> * <p> * <code>GetQueueUrl</code> * </p> * </li> * <li> * <p> * <code>ReceiveMessage</code> * </p> * </li> * <li> * <p> * <code>SendMessage</code> * </p> * </li> * </ul> * <p> * For more information about these actions, see <a href= * "http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/acp-overview.html#PermissionTypes" * >Understanding Permissions</a> in the <i>Amazon SQS Developer Guide</i>. * </p> * <p> * Specifying <code>SendMessage</code>, <code>DeleteMessage</code>, or <code>ChangeMessageVisibility</code> for * <code>ActionName.n</code> also grants permissions for the corresponding batch versions of those actions: * <code>SendMessageBatch</code>, <code>DeleteMessageBatch</code>, and <code>ChangeMessageVisibilityBatch</code>. * </p> * * @param actions * The action the client wants to allow for the specified principal. The following values are valid:</p> * <ul> * <li> * <p> * <code>*</code> * </p> * </li> * <li> * <p> * <code>ChangeMessageVisibility</code> * </p> * </li> * <li> * <p> * <code>DeleteMessage</code> * </p> * </li> * <li> * <p> * <code>GetQueueAttributes</code> * </p> * </li> * <li> * <p> * <code>GetQueueUrl</code> * </p> * </li> * <li> * <p> * <code>ReceiveMessage</code> * </p> * </li> * <li> * <p> * <code>SendMessage</code> * </p> * </li> * </ul> * <p> * For more information about these actions, see <a href= * "http://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/acp-overview.html#PermissionTypes" * >Understanding Permissions</a> in the <i>Amazon SQS Developer Guide</i>. * </p> * <p> * Specifying <code>SendMessage</code>, <code>DeleteMessage</code>, or <code>ChangeMessageVisibility</code> * for <code>ActionName.n</code> also grants permissions for the corresponding batch versions of those * actions: <code>SendMessageBatch</code>, <code>DeleteMessageBatch</code>, and * <code>ChangeMessageVisibilityBatch</code>. * @return Returns a reference to this object so that method calls can be chained together. */ public AddPermissionRequest withActions(java.util.Collection<String> actions) { setActions(actions); return this; } /** * Returns a string representation of this object; useful for testing and debugging. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getQueueUrl() != null) sb.append("QueueUrl: ").append(getQueueUrl()).append(","); if (getLabel() != null) sb.append("Label: ").append(getLabel()).append(","); if (getAWSAccountIds() != null) sb.append("AWSAccountIds: ").append(getAWSAccountIds()).append(","); if (getActions() != null) sb.append("Actions: ").append(getActions()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof AddPermissionRequest == false) return false; AddPermissionRequest other = (AddPermissionRequest) obj; if (other.getQueueUrl() == null ^ this.getQueueUrl() == null) return false; if (other.getQueueUrl() != null && other.getQueueUrl().equals(this.getQueueUrl()) == false) return false; if (other.getLabel() == null ^ this.getLabel() == null) return false; if (other.getLabel() != null && other.getLabel().equals(this.getLabel()) == false) return false; if (other.getAWSAccountIds() == null ^ this.getAWSAccountIds() == null) return false; if (other.getAWSAccountIds() != null && other.getAWSAccountIds().equals(this.getAWSAccountIds()) == false) return false; if (other.getActions() == null ^ this.getActions() == null) return false; if (other.getActions() != null && other.getActions().equals(this.getActions()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getQueueUrl() == null) ? 0 : getQueueUrl().hashCode()); hashCode = prime * hashCode + ((getLabel() == null) ? 0 : getLabel().hashCode()); hashCode = prime * hashCode + ((getAWSAccountIds() == null) ? 0 : getAWSAccountIds().hashCode()); hashCode = prime * hashCode + ((getActions() == null) ? 0 : getActions().hashCode()); return hashCode; } @Override public AddPermissionRequest clone() { return (AddPermissionRequest) super.clone(); } }
{ "content_hash": "2c4b682a8636b6be4e88f4c67da546d2", "timestamp": "", "source": "github", "line_count": 922, "max_line_length": 134, "avg_line_length": 35.44034707158352, "alnum_prop": 0.5551475088750153, "repo_name": "dagnir/aws-sdk-java", "id": "7a6fa93101cf92b95db39ab1778d896c0ad9371e", "size": "33256", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "aws-java-sdk-sqs/src/main/java/com/amazonaws/services/sqs/model/AddPermissionRequest.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "FreeMarker", "bytes": "157317" }, { "name": "Gherkin", "bytes": "25556" }, { "name": "Java", "bytes": "165755153" }, { "name": "Scilab", "bytes": "3561" } ], "symlink_target": "" }
<!doctype html> <html lang="en-us"> <head> <meta charset="utf-8"> <title>White Label - a full featured Admin Skin</title> <meta name="description" content=""> <meta name="author" content="revaxarts.com"> <!-- Google Font and style definitions --> <link rel="stylesheet" href="http://fonts.googleapis.com/css?family=PT+Sans:regular,bold"> <link rel="stylesheet" href="css/style.css"> <!-- include the skins (change to dark if you like) --> <link rel="stylesheet" href="css/light/theme.css" id="themestyle"> <!-- <link rel="stylesheet" href="css/dark/theme.css" id="themestyle"> --> <!--[if lt IE 9]> <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> <link rel="stylesheet" href="css/ie.css"> <![endif]--> <!-- Apple iOS and Android stuff --> <meta name="apple-mobile-web-app-capable" content="no"> <meta name="apple-mobile-web-app-status-bar-style" content="black"> <link rel="apple-touch-icon-precomposed" href="apple-touch-icon-precomposed.png"> <!-- Apple iOS and Android stuff - don't remove! --> <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no,maximum-scale=1"> <!-- Use Google CDN for jQuery and jQuery UI --> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.12/jquery-ui.min.js"></script> <!-- Loading JS Files this way is not recommended! Merge them but keep their order --> <!-- some basic functions --> <script src="js/functions.js"></script> <!-- all Third Party Plugins --> <script src="js/plugins.js"></script> <script src="js/editor.js"></script> <script src="js/calendar.js"></script> <script src="js/flot.js"></script> <script src="js/elfinder.js"></script> <script src="js/datatables.js"></script> <!-- all Whitelabel Plugins --> <script src="js/wl_Alert.js"></script> <script src="js/wl_Autocomplete.js"></script> <script src="js/wl_Breadcrumb.js"></script> <script src="js/wl_Calendar.js"></script> <script src="js/wl_Chart.js"></script> <script src="js/wl_Color.js"></script> <script src="js/wl_Date.js"></script> <script src="js/wl_Editor.js"></script> <script src="js/wl_File.js"></script> <script src="js/wl_Dialog.js"></script> <script src="js/wl_Fileexplorer.js"></script> <script src="js/wl_Form.js"></script> <script src="js/wl_Gallery.js"></script> <script src="js/wl_Multiselect.js"></script> <script src="js/wl_Number.js"></script> <script src="js/wl_Password.js"></script> <script src="js/wl_Slider.js"></script> <script src="js/wl_Store.js"></script> <script src="js/wl_Time.js"></script> <script src="js/wl_Valid.js"></script> <script src="js/wl_Widget.js"></script> <!-- configuration to overwrite settings --> <script src="js/config.js"></script> <!-- the script which handles all the access to plugins etc... --> <script src="js/script.js"></script> </head> <body> <div id="pageoptions"> <ul> <li><a href="login.html">Logout</a></li> <li><a href="#" id="wl_config">Configuration</a></li> <li><a href="#">Settings</a></li> </ul> <div> <h3>Place for some configs</h3> <p>Li Europan lingues es membres del sam familie. Lor separat existentie es un myth. Por scientie, musica, sport etc, litot Europa usa li sam vocabular. Li lingues differe solmen in li grammatica, li pronunciation e li plu commun vocabules. Omnicos directe al desirabilite de un nov lingua franca: On refusa continuar payar custosi traductores.</p> </div> </div> <header> <div id="logo"> <a href="test.html">Logo Here</a> </div> <div id="header"> <ul id="headernav"> <li><ul> <li><a href="icons.html">Icons</a><span>300+</span></li> <li><a href="#">Submenu</a><span>4</span> <ul> <li><a href="#">Just</a></li> <li><a href="#">another</a></li> <li><a href="#">Dropdown</a></li> <li><a href="#">Menu</a></li> </ul> </li> <li><a href="login.html">Login</a></li> <li><a href="wizard.html">Wizard</a><span>Bonus</span></li> <li><a href="#">Errorpage</a><span>new</span> <ul> <li><a href="error-403.html">403</a></li> <li><a href="error-404.html">404</a></li> <li><a href="error-405.html">405</a></li> <li><a href="error-500.html">500</a></li> <li><a href="error-503.html">503</a></li> </ul> </li> </ul></li> </ul> <div id="searchbox"> <form id="searchform"> <input type="search" name="query" id="search" placeholder="Search"> </form> </div> </div> </header> <nav> <ul id="nav"> <li class="i_house"><a href="dashboard.html"><span>Dashboard</span></a></li> <li class="i_book"><a><span>Documentation</span></a> <ul> <li><a href="doc-alert.html"><span>Alert Boxes</span></a></li> <li><a href="doc-breadcrumb.html"><span>Breadcrumb</span></a></li> <li><a href="doc-calendar.html"><span>Calendar</span></a></li> <li><a href="doc-charts.html"><span>Charts</span></a></li> <li><a href="doc-dialog.html"><span>Dialog</span></a></li> <li><a href="doc-editor.html"><span>Editor</span></a></li> <li><a href="doc-file.html"><span>File</span></a></li> <li><a href="doc-fileexplorer.html"><span>Fileexplorer</span></a></li> <li><a href="doc-form.html"><span>Form</span></a></li> <li><a href="doc-gallery.html"><span>Gallery</span></a></li> <li><a href="doc-inputfields.html"><span>Inputfields</span></a></li> <li><a href="doc-slider.html"><span>Slider</span></a></li> <li><a href="doc-store.html"><span>Store</span></a></li> <li><a href="doc-widget.html"><span>Widget</span></a></li> </ul> </li> <li class="i_create_write"><a href="form.html"><span>Form</span></a></li> <li class="i_graph"><a href="charts.html"><span>Charts</span></a></li> <li class="i_images"><a href="gallery.html"><span>Gallery</span></a></li> <li class="i_blocks_images"><a href="widgets.html"><span>Widgets</span></a></li> <li class="i_breadcrumb"><a href="breadcrumb.html"><span>Breadcrumb</span></a></li> <li class="i_file_cabinet"><a href="fileexplorer.html"><span>Fileexplorer</span></a></li> <li class="i_calendar_day"><a href="calendar.html"><span>Calendar</span></a></li> <li class="i_speech_bubbles_2"><a href="dialogs_and_buttons.html"><span>Dialogs &amp; Buttons</span></a></li> <li class="i_table"><a href="datatable.html"><span>Table</span></a></li> <li class="i_typo"><a href="typo.html"><span>Typo</span></a></li> <li class="i_grid"><a href="grid.html"><span>Grid</span></a></li> </ul> </nav> <section id="content"> <div class="g12"> <h1>Calendar <span><a href="doc-calendar.html" class="small">Documentation</a></span></h1> <p>Using the fullcalendar plugin to display editable calendars</p> <div class="calendar"> </div> <h3>Agenda View</h3> <hr> <div class="calendar" data-default-view="agendaWeek"></div> </div> </section><!-- end div #content --> <footer>Copyright by revaxarts.com 2011</footer> </body> </html>
{ "content_hash": "0241ccbf2f6ad840611e0370fff4ccc8", "timestamp": "", "source": "github", "line_count": 188, "max_line_length": 354, "avg_line_length": 38.20744680851064, "alnum_prop": 0.6165947375748294, "repo_name": "cordoval/EmmediateCredit", "id": "83a6b13841a69949ecc59b16257cc7173ea0cf79", "size": "7183", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "whitelabelTheme/calendar.html", "mode": "33188", "license": "mit", "language": [ { "name": "JavaScript", "bytes": "1484993" }, { "name": "PHP", "bytes": "174125" }, { "name": "Python", "bytes": "38608" }, { "name": "Shell", "bytes": "388" } ], "symlink_target": "" }
using namespace VectorMath; namespace GameEngine { class LightUniforms { public: VectorMath::Vec3 lightDir; float pad0 = 0.0f; VectorMath::Vec3 lightColor; float ambient = 0.2f; int shadowMapId = -1; int numCascades = 0; int padding2 = 0, pad3 = 0; VectorMath::Matrix4 lightMatrix[MaxShadowCascades]; float zPlanes[MaxShadowCascades]; LightUniforms() { lightDir.SetZero(); lightColor.SetZero(); for (int i = 0; i < MaxShadowCascades; i++) zPlanes[i] = 0.0f; } }; class StandardRenderProcedure : public IRenderProcedure { private: RendererSharedResource * sharedRes = nullptr; ViewResource * viewRes = nullptr; RefPtr<WorldRenderPass> shadowRenderPass; RefPtr<WorldRenderPass> forwardRenderPass; RefPtr<WorldRenderPass> customDepthRenderPass; RefPtr<PostRenderPass> atmospherePass; RefPtr<PostRenderPass> toneMappingFromAtmospherePass; RefPtr<PostRenderPass> toneMappingFromLitColorPass; RefPtr<PostRenderPass> editorOutlinePass; RenderOutput * forwardBaseOutput = nullptr; RenderOutput * transparentAtmosphereOutput = nullptr; RenderOutput * customDepthOutput = nullptr; StandardViewUniforms viewUniform; RefPtr<WorldPassRenderTask> forwardBaseInstance, transparentPassInstance, customDepthPassInstance; DeviceMemory renderPassUniformMemory; SharedModuleInstances sharedModules; ModuleInstance forwardBasePassParams; CoreLib::List<ModuleInstance> shadowViewInstances; DrawableSink sink; List<Drawable*> reorderBuffer, drawableBuffer; LightingEnvironment lighting; AtmosphereParameters lastAtmosphereParams; ToneMappingParameters lastToneMappingParams; bool useAtmosphere = false; bool postProcess = false; bool useEnvMap = false; public: StandardRenderProcedure(bool pPostProcess, bool pUseEnvMap) { postProcess = pPostProcess; useEnvMap = pUseEnvMap; } ~StandardRenderProcedure() { if (customDepthOutput) viewRes->DestroyRenderOutput(customDepthOutput); if (forwardBaseOutput) viewRes->DestroyRenderOutput(forwardBaseOutput); if (transparentAtmosphereOutput) viewRes->DestroyRenderOutput(transparentAtmosphereOutput); } virtual RenderTarget* GetOutput() override { if (postProcess) { if (Engine::Instance()->GetEngineMode() == EngineMode::Editor) return viewRes->LoadSharedRenderTarget("editorColor", StorageFormat::RGBA_8).Ptr(); else return viewRes->LoadSharedRenderTarget("toneColor", StorageFormat::RGBA_8).Ptr(); } else { if (useAtmosphere) return viewRes->LoadSharedRenderTarget("litAtmosphereColor", StorageFormat::RGBA_F16).Ptr(); else return viewRes->LoadSharedRenderTarget("litColor", StorageFormat::RGBA_F16).Ptr(); } } virtual void UpdateSharedResourceBinding() override { for (int i = 0; i < DynamicBufferLengthMultiplier; i++) { auto descSet = forwardBasePassParams.GetDescriptorSet(i); descSet->BeginUpdate(); descSet->Update(1, sharedRes->textureSampler.Ptr()); descSet->EndUpdate(); } lighting.UpdateSharedResourceBinding(); } virtual void Init(Renderer * renderer, ViewResource * pViewRes) override { viewRes = pViewRes; sharedRes = renderer->GetSharedResource(); shadowRenderPass = CreateShadowRenderPass(); shadowRenderPass->Init(renderer); forwardRenderPass = CreateForwardBaseRenderPass(); forwardRenderPass->Init(renderer); customDepthRenderPass = CreateCustomDepthRenderPass(); customDepthRenderPass->Init(renderer); forwardBaseOutput = viewRes->CreateRenderOutput( forwardRenderPass->GetRenderTargetLayout(), viewRes->LoadSharedRenderTarget("litColor", StorageFormat::RGBA_F16), viewRes->LoadSharedRenderTarget("depthBuffer", DepthBufferFormat) ); transparentAtmosphereOutput = viewRes->CreateRenderOutput( forwardRenderPass->GetRenderTargetLayout(), viewRes->LoadSharedRenderTarget("litAtmosphereColor", StorageFormat::RGBA_F16), viewRes->LoadSharedRenderTarget("depthBuffer", DepthBufferFormat) ); customDepthOutput = viewRes->CreateRenderOutput( customDepthRenderPass->GetRenderTargetLayout(), viewRes->LoadSharedRenderTarget("customDepthBuffer", DepthBufferFormat)); atmospherePass = CreateAtmospherePostRenderPass(viewRes); atmospherePass->SetSource(MakeArray( PostPassSource("litColor", StorageFormat::RGBA_F16), PostPassSource("depthBuffer", DepthBufferFormat), PostPassSource("litAtmosphereColor", StorageFormat::RGBA_F16) ).GetArrayView()); atmospherePass->Init(renderer); if (postProcess) { toneMappingFromAtmospherePass = CreateToneMappingPostRenderPass(viewRes); toneMappingFromAtmospherePass->SetSource(MakeArray( PostPassSource("litAtmosphereColor", StorageFormat::RGBA_F16), PostPassSource("toneColor", StorageFormat::RGBA_8) ).GetArrayView()); toneMappingFromAtmospherePass->Init(renderer); toneMappingFromLitColorPass = CreateToneMappingPostRenderPass(viewRes); toneMappingFromLitColorPass->SetSource(MakeArray( PostPassSource("litColor", StorageFormat::RGBA_F16), PostPassSource("toneColor", StorageFormat::RGBA_8) ).GetArrayView()); toneMappingFromLitColorPass->Init(renderer); if (Engine::Instance()->GetEngineMode() == EngineMode::Editor) { editorOutlinePass = CreateOutlinePostRenderPass(viewRes); editorOutlinePass->SetSource(MakeArray( PostPassSource("toneColor", StorageFormat::RGBA_8), PostPassSource("customDepthBuffer", DepthBufferFormat), PostPassSource("editorColor", StorageFormat::RGBA_8) ).GetArrayView()); editorOutlinePass->Init(renderer); } } // initialize forwardBasePassModule and lightingModule renderPassUniformMemory.Init(sharedRes->hardwareRenderer.Ptr(), BufferUsage::UniformBuffer, true, 22, sharedRes->hardwareRenderer->UniformBufferAlignment()); sharedRes->CreateModuleInstance(forwardBasePassParams, spEnvFindModule(sharedRes->sharedSpireEnvironment, "ForwardBasePassParams"), &renderPassUniformMemory); lighting.Init(*sharedRes, &renderPassUniformMemory, useEnvMap); UpdateSharedResourceBinding(); sharedModules.View = &forwardBasePassParams; shadowViewInstances.Reserve(1024); } enum class PassType { Shadow, CustomDepth, Main, Transparent }; ArrayView<Drawable*> GetDrawable(DrawableSink * objSink, PassType pass, CullFrustum cf, bool append) { if (!append) drawableBuffer.Clear(); for (auto obj : objSink->GetDrawables(pass == PassType::Transparent)) { if (pass == PassType::Shadow && !obj->CastShadow) continue; if (pass == PassType::CustomDepth && !obj->RenderCustomDepth) continue; if (cf.IsBoxInFrustum(obj->Bounds)) drawableBuffer.Add(obj); } if (pass == PassType::CustomDepth) { for (auto obj : objSink->GetDrawables(true)) { if (!obj->RenderCustomDepth) continue; if (cf.IsBoxInFrustum(obj->Bounds)) drawableBuffer.Add(obj); } } return drawableBuffer.GetArrayView(); } List<Texture*> textures; virtual void Run(FrameRenderTask & task, const RenderProcedureParameters & params) override { int w = 0, h = 0; forwardRenderPass->ResetInstancePool(); forwardBaseOutput->GetSize(w, h); forwardBaseInstance = forwardRenderPass->CreateInstance(forwardBaseOutput, true); customDepthRenderPass->ResetInstancePool(); customDepthPassInstance = customDepthRenderPass->CreateInstance(customDepthOutput, true); float aspect = w / (float)h; shadowRenderPass->ResetInstancePool(); GetDrawablesParameter getDrawableParam; viewUniform.CameraPos = params.view.Position; viewUniform.ViewTransform = params.view.Transform; getDrawableParam.CameraDir = params.view.GetDirection(); getDrawableParam.IsEditorMode = params.isEditorMode; Matrix4 mainProjMatrix; Matrix4::CreatePerspectiveMatrixFromViewAngle(mainProjMatrix, params.view.FOV, w / (float)h, params.view.ZNear, params.view.ZFar, params.renderer->GetHardwareRenderer()->GetClipSpaceType()); Matrix4::Multiply(viewUniform.ViewProjectionTransform, mainProjMatrix, viewUniform.ViewTransform); viewUniform.ViewTransform.Inverse(viewUniform.InvViewTransform); viewUniform.ViewProjectionTransform.Inverse(viewUniform.InvViewProjTransform); viewUniform.Time = Engine::Instance()->GetTime(); getDrawableParam.CameraPos = viewUniform.CameraPos; getDrawableParam.rendererService = params.rendererService; getDrawableParam.sink = &sink; useAtmosphere = false; sink.Clear(); CoreLib::Graphics::BBox levelBounds; // initialize bounds to a small extent to prevent error levelBounds.Min = Vec3::Create(-10.0f); levelBounds.Max = Vec3::Create(10.0f); ToneMappingParameters toneMappingParameters; for (auto & actor : params.level->Actors) { levelBounds.Union(actor.Value->Bounds); actor.Value->GetDrawables(getDrawableParam); auto actorType = actor.Value->GetEngineType(); if (actorType == EngineActorType::Atmosphere) { useAtmosphere = true; auto atmosphere = dynamic_cast<AtmosphereActor*>(actor.Value.Ptr()); auto newParams = atmosphere->GetParameters(); if (!(lastAtmosphereParams == newParams)) { atmosphere->SunDir = atmosphere->SunDir.GetValue().Normalize(); newParams = atmosphere->GetParameters(); atmospherePass->SetParameters(&newParams, sizeof(newParams)); lastAtmosphereParams = newParams; } } else if (postProcess && actorType == EngineActorType::ToneMapping) { auto toneMappingActor = dynamic_cast<ToneMappingActor*>(actor.Value.Ptr()); toneMappingParameters = toneMappingActor->Parameters; } } if (postProcess) { if (!(lastToneMappingParams == toneMappingParameters)) { toneMappingFromAtmospherePass->SetParameters(&toneMappingParameters, sizeof(toneMappingParameters)); toneMappingFromLitColorPass->SetParameters(&toneMappingParameters, sizeof(toneMappingParameters)); lastToneMappingParams = toneMappingParameters; } } lighting.GatherInfo(task, &sink, params, w, h, viewUniform, shadowRenderPass.Ptr()); forwardBasePassParams.SetUniformData(&viewUniform, (int)sizeof(viewUniform)); auto cameraCullFrustum = CullFrustum(params.view.GetFrustum(aspect)); customDepthOutput->GetFrameBuffer()->GetRenderAttachments().GetTextures(textures); task.AddImageTransferTask(textures.GetArrayView(), CoreLib::ArrayView<Texture*>()); customDepthRenderPass->Bind(); sharedRes->pipelineManager.PushModuleInstance(&forwardBasePassParams); customDepthPassInstance->SetDrawContent(sharedRes->pipelineManager, reorderBuffer, GetDrawable(&sink, PassType::CustomDepth, cameraCullFrustum, false)); sharedRes->pipelineManager.PopModuleInstance(); task.AddTask(customDepthPassInstance); task.AddImageTransferTask(CoreLib::ArrayView<Texture*>(), textures.GetArrayView()); forwardBaseOutput->GetFrameBuffer()->GetRenderAttachments().GetTextures(textures); task.AddImageTransferTask(textures.GetArrayView(), CoreLib::ArrayView<Texture*>()); forwardRenderPass->Bind(); sharedRes->pipelineManager.PushModuleInstance(&forwardBasePassParams); sharedRes->pipelineManager.PushModuleInstance(&lighting.moduleInstance); forwardBaseInstance->SetDrawContent(sharedRes->pipelineManager, reorderBuffer, GetDrawable(&sink, PassType::Main, cameraCullFrustum, false)); sharedRes->pipelineManager.PopModuleInstance(); sharedRes->pipelineManager.PopModuleInstance(); task.AddTask(forwardBaseInstance); task.AddImageTransferTask(CoreLib::ArrayView<Texture*>(), textures.GetArrayView()); if (useAtmosphere) { task.AddTask(atmospherePass->CreateInstance(sharedModules)); } task.sharedModuleInstances = sharedModules; // transparency pass reorderBuffer.Clear(); for (auto drawable : GetDrawable(&sink, PassType::Transparent, cameraCullFrustum, false)) { reorderBuffer.Add(drawable); } if (reorderBuffer.Count()) { reorderBuffer.Sort([=](Drawable* d1, Drawable* d2) { return d1->Bounds.Distance(params.view.Position) > d2->Bounds.Distance(params.view.Position); }); if (useAtmosphere) { transparentPassInstance = forwardRenderPass->CreateInstance(transparentAtmosphereOutput, false); transparentAtmosphereOutput->GetFrameBuffer()->GetRenderAttachments().GetTextures(textures); } else { transparentPassInstance = forwardRenderPass->CreateInstance(forwardBaseOutput, false); forwardBaseOutput->GetFrameBuffer()->GetRenderAttachments().GetTextures(textures); } forwardRenderPass->Bind(); sharedRes->pipelineManager.PushModuleInstance(&forwardBasePassParams); sharedRes->pipelineManager.PushModuleInstance(&lighting.moduleInstance); transparentPassInstance->SetFixedOrderDrawContent(sharedRes->pipelineManager, reorderBuffer.GetArrayView()); sharedRes->pipelineManager.PopModuleInstance(); sharedRes->pipelineManager.PopModuleInstance(); task.AddImageTransferTask(textures.GetArrayView(), CoreLib::ArrayView<Texture*>()); task.AddTask(transparentPassInstance); task.AddImageTransferTask(CoreLib::ArrayView<Texture*>(), textures.GetArrayView()); } if (postProcess) { if (useAtmosphere) { task.AddTask(toneMappingFromAtmospherePass->CreateInstance(sharedModules)); } else { task.AddTask(toneMappingFromLitColorPass->CreateInstance(sharedModules)); } if (Engine::Instance()->GetEngineMode() == EngineMode::Editor) task.AddTask(editorOutlinePass->CreateInstance(sharedModules)); } } }; IRenderProcedure * CreateStandardRenderProcedure(bool toneMapping, bool useEnvMap) { return new StandardRenderProcedure(toneMapping, useEnvMap); } }
{ "content_hash": "a0b5cceed76fc1df26de9113872d81bf", "timestamp": "", "source": "github", "line_count": 369, "max_line_length": 164, "avg_line_length": 39.47425474254742, "alnum_prop": 0.7132363037209941, "repo_name": "csyonghe/SpireMiniEngine", "id": "6c6915375fb15beffb6e26cf071cb5ae978eb96d", "size": "14909", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "GameEngineCore/StandardRenderProcedure.cpp", "mode": "33188", "license": "mit", "language": [ { "name": "C", "bytes": "2711331" }, { "name": "C++", "bytes": "8937970" }, { "name": "CMake", "bytes": "1569" }, { "name": "GLSL", "bytes": "62138" }, { "name": "PowerShell", "bytes": "723" } ], "symlink_target": "" }
import { Injectable } from '@angular/core'; /** * Configuration service for the NgbTooltip directive. * You can inject this service, typically in your root component, and customize the values of its properties in * order to provide default values for all the tooltips used in the application. */ var NgbTooltipConfig = /** @class */ (function () { function NgbTooltipConfig() { this.placement = 'top'; this.triggers = 'hover'; this.disableTooltip = false; } NgbTooltipConfig.decorators = [ { type: Injectable }, ]; return NgbTooltipConfig; }()); export { NgbTooltipConfig }; //# sourceMappingURL=tooltip-config.js.map
{ "content_hash": "1b910454efddbadc9692bf14ea6419d1", "timestamp": "", "source": "github", "line_count": 19, "max_line_length": 111, "avg_line_length": 35.421052631578945, "alnum_prop": 0.6820208023774146, "repo_name": "Leo-g/Flask-Scaffold", "id": "5e9dc874febf45843d4a8e8fdb2ae16ff33a1a9d", "size": "673", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "app/templates/static/node_modules/@ng-bootstrap/ng-bootstrap/tooltip/tooltip-config.js", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "15274" }, { "name": "HTML", "bytes": "14505" }, { "name": "JavaScript", "bytes": "49098" }, { "name": "Nginx", "bytes": "1545" }, { "name": "Python", "bytes": "62750" }, { "name": "Shell", "bytes": "21" } ], "symlink_target": "" }
'use strict'; const _ = require('lodash'); const Mandrill = require('mandrill-api'); module.exports = function (options) { const mandrillClient = new Mandrill.Mandrill(options.key); return { send : function (emailObject) { return new Promise((resolve, reject) => { if (!emailObject.from) { reject('no from address provided'); } if (!emailObject.subject) { reject('no subject provided'); } if (!emailObject.template){ reject('no template provided'); } const sendObj = { template_name : emailObject.template, template_content : [], async : false, ip_pool : 'Main Pool', message : { subject : emailObject.subject, from_email : typeof emailObject.from === 'string' ? emailObject.from : emailObject.from.email, from_name : emailObject.from.name, to : this._formatTo(emailObject.to, reject), headers : { 'reply-to' : typeof emailObject.from === 'string' ? emailObject.from : emailObject.from.email }, global_merge_vars : _.map(emailObject.templateVars, (value, key) => ({ name : key, content : value })), attachments : emailObject.attachments } }; if (emailObject.from.name) { sendObj.message.from_name = emailObject.from.name; } mandrillClient.messages.sendTemplate( sendObj, (result) => resolve(result), (err) => reject('Mandrill error - ' + err.name + ': ' + err.message) ); }); }, _formatTo : function (to, reject) { // If there's no whitelist, then always send to the trap address if it's defined to = (!options.whitelist || !options.whitelist.length) ? options.trap || to : to; if (typeof to === 'string') { return [{ email : this._checkWhitelist(to, reject), type : 'to' }]; } else if (typeof to === 'object') { const formatObject = function (recipient) { if (!recipient.email) { reject('failure to provide a recipeient\'s email'); } recipient.email = this._checkWhitelist(emailAddressObject.email, reject); recipient.type = 'to'; return recipient; }; if (Object.prototype.toString.call(to) !== '[object Array]') { return [formatObject(to)]; } return _.map(to, (recipient) => formatObject(recipient)); } }, _checkWhitelist : function (emailAddress, reject) { if (!options.whitelist || !options.whitelist.length) { return emailAddress; } const domainPattern = /@(.*)$/; const domain = emailAddress.match(domainPattern)[1]; if (_.findIndex(options.whitelist, (whitelisted) => domain === whitelisted) >= 0) { return emailAddress; } if (!options.trap) { reject('trap option must be set if using whitelist'); } else { return options.trap; } } }; };
{ "content_hash": "de7fbbcd2c5430982de0b8f478db1532", "timestamp": "", "source": "github", "line_count": 109, "max_line_length": 127, "avg_line_length": 35.08256880733945, "alnum_prop": 0.448744769874477, "repo_name": "spruce-bruce/hapi-email-kue", "id": "581146e1c4fd415e3f88b992f4b4d7d15f221676", "size": "3824", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/drivers/mandrill.js", "mode": "33188", "license": "bsd-3-clause", "language": [ { "name": "JavaScript", "bytes": "5731" } ], "symlink_target": "" }
require 'spec_helper' describe RuboCop::Cop::Lint::NonLocalExitFromIterator do subject(:cop) { described_class.new } context 'inspection' do before do inspect_source(cop, source) end let(:message) do 'Non-local exit from iterator, without return value. ' \ '`next`, `break`, `Array#find`, `Array#any?`, etc. is preferred.' end shared_examples_for 'offense detector' do it 'registers an offense' do expect(cop.offenses.size).to eq(1) expect(cop.offenses.first.message).to eq(message) expect(cop.offenses.first.severity.name).to eq(:warning) expect(cop.highlights).to eq(['return']) end end context 'when block is followed by method chain' do context 'and has single argument' do let(:source) { <<-END } items.each do |item| return if item.stock == 0 item.update!(foobar: true) end END it_behaves_like('offense detector') it { expect(cop.offenses.first.line).to eq(2) } end context 'and has multiple arguments' do let(:source) { <<-END } items.each_with_index do |item, i| return if item.stock == 0 item.update!(foobar: true) end END it_behaves_like('offense detector') it { expect(cop.offenses.first.line).to eq(2) } end context 'and has no argument' do let(:source) { <<-END } item.with_lock do return if item.stock == 0 item.update!(foobar: true) end END it { expect(cop.offenses).to be_empty } end end context 'when block is not followed by method chain' do let(:source) { <<-END } transaction do return unless update_necessary? find_each do |item| return if item.stock == 0 # false-negative... item.update!(foobar: true) end end END it { expect(cop.offenses).to be_empty } end context 'when block is lambda' do let(:source) { <<-END } items.each(lambda do |item| return if item.stock == 0 item.update!(foobar: true) end) items.each -> (item) { return if item.stock == 0 item.update!(foobar: true) } END it { expect(cop.offenses).to be_empty } end context 'when lambda is inside of block followed by method chain' do let(:source) { <<-END } RSpec.configure do |config| # some configuration if Gem.loaded_specs["paper_trail"].version < Gem::Version.new("4.0.0") current_behavior = ActiveSupport::Deprecation.behavior ActiveSupport::Deprecation.behavior = lambda do |message, callstack| return if message =~ /foobar/ Array.wrap(current_behavior).each do |behavior| behavior.call(message, callstack) end end # more configuration end end END it { expect(cop.offenses).to be_empty } end context 'when block in middle of nest is followed by method chain' do let(:source) { <<-END } transaction do return unless update_necessary? items.each do |item| return if item.nil? item.with_lock do return if item.stock == 0 item.very_complicated_update_operation! end end end END it 'registers offenses' do expect(cop.offenses.size).to eq(2) expect(cop.offenses[0].message).to eq(message) expect(cop.offenses[0].severity.name).to eq(:warning) expect(cop.offenses[0].line).to eq(4) expect(cop.offenses[1].message).to eq(message) expect(cop.offenses[1].severity.name).to eq(:warning) expect(cop.offenses[1].line).to eq(6) expect(cop.highlights).to eq(%w(return return)) end end context 'when return with value' do let(:source) { <<-END } def find_first_sold_out_item(items) items.each do |item| return item if item.stock == 0 item.foobar! end end END it { expect(cop.offenses).to be_empty } end context 'when the message is define_method' do let(:source) { <<-END } [:method_one, :method_two].each do |method_name| define_method(method_name) do return if predicate? end end END it { expect(cop.offenses).to be_empty } end end end
{ "content_hash": "b0cdd5d5264042cecc9e2db5fa7cc37d", "timestamp": "", "source": "github", "line_count": 164, "max_line_length": 80, "avg_line_length": 28.25609756097561, "alnum_prop": 0.5578334052654295, "repo_name": "hanumakanthvvn/rubocop", "id": "ceaa13b031c7898e109ee761fe8f625e2f68641d", "size": "4665", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "spec/rubocop/cop/lint/non_local_exit_from_iterator_spec.rb", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "355" }, { "name": "HTML", "bytes": "7106" }, { "name": "Ruby", "bytes": "3372090" } ], "symlink_target": "" }
<component name="libraryTable"> <library name="exposed-instrumentation-api-publish-0.5"> <CLASSES> <root url="file://$PROJECT_DIR$/build/intermediates/exploded-aar/com.android.support.test/exposed-instrumentation-api-publish/0.5/res" /> <root url="jar://$PROJECT_DIR$/build/intermediates/exploded-aar/com.android.support.test/exposed-instrumentation-api-publish/0.5/jars/classes.jar!/" /> </CLASSES> <JAVADOC /> <SOURCES> <root url="jar://$USER_HOME$/Android/Sdk/extras/android/m2repository/com/android/support/test/exposed-instrumentation-api-publish/0.5/exposed-instrumentation-api-publish-0.5-sources.jar!/" /> </SOURCES> </library> </component>
{ "content_hash": "c092b59f6ad4f48b2baeba648b8f1670", "timestamp": "", "source": "github", "line_count": 12, "max_line_length": 197, "avg_line_length": 57.5, "alnum_prop": 0.7231884057971014, "repo_name": "nnguyen01/nn2-SizeBook", "id": "530ab535cb0e338f91fc5f1656c66d7d27fd9bbf", "size": "690", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "app/.idea/libraries/exposed_instrumentation_api_publish_0_5.xml", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Java", "bytes": "21960" } ], "symlink_target": "" }
<?xml version="1.0" encoding="UTF-8"?> <!-- Copyright 2017 StreamSets 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. --> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>com.streamsets</groupId> <artifactId>streamsets-datacollector-stage-lib-parent</artifactId> <version>3.8.0-SNAPSHOT</version> <relativePath>../stage-lib-parent</relativePath> </parent> <groupId>com.streamsets</groupId> <artifactId>streamsets-datacollector-azure-lib</artifactId> <version>3.8.0-SNAPSHOT</version> <description>StreamSets Data Collector Azure Library</description> <name>StreamSets Data Collector Azure Library</name> <packaging>jar</packaging> <properties> <azure.version>2.1.5</azure.version> <azure-eventhubs.version>1.0.1</azure-eventhubs.version> <azure-eventhubs-eph.version>1.0.0</azure-eventhubs-eph.version> <azure-iot-device-client.version>1.3.32</azure-iot-device-client.version> </properties> <dependencies> <dependency> <groupId>com.streamsets</groupId> <artifactId>streamsets-datacollector-api</artifactId> <scope>provided</scope> </dependency> <dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId> <scope>provided</scope> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-api</artifactId> <scope>provided</scope> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-log4j12</artifactId> <scope>provided</scope> </dependency> <dependency> <groupId>io.dropwizard.metrics</groupId> <artifactId>metrics-core</artifactId> <scope>provided</scope> </dependency> <dependency> <groupId>com.streamsets</groupId> <artifactId>streamsets-datacollector-sdk</artifactId> <scope>provided</scope> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>com.streamsets</groupId> <artifactId>streamsets-datacollector-common</artifactId> <scope>compile</scope> </dependency> <!-- Exclude the Confluent Schema Registry Client's Jackson library since this one ships its own --> <dependency> <groupId>com.streamsets</groupId> <artifactId>streamsets-datacollector-commonlib</artifactId> <exclusions> <exclusion> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-databind</artifactId> </exclusion> </exclusions> <scope>compile</scope> </dependency> <dependency> <groupId>io.confluent</groupId> <artifactId>kafka-schema-registry-client</artifactId> </dependency> <!-- azure --> <dependency> <groupId>com.microsoft.azure</groupId> <artifactId>azure-data-lake-store-sdk</artifactId> <version>${azure.version}</version> </dependency> <dependency> <groupId>com.microsoft.azure</groupId> <artifactId>azure-eventhubs</artifactId> <version>${azure-eventhubs.version}</version> </dependency> <dependency> <groupId>com.microsoft.azure</groupId> <artifactId>azure-eventhubs-eph</artifactId> <version>${azure-eventhubs-eph.version}</version> </dependency> <dependency> <groupId>com.microsoft.azure.sdk.iot</groupId> <artifactId>iot-device-client</artifactId> <version>${azure-iot-device-client.version}</version> </dependency> <dependency> <groupId>com.squareup.okhttp3</groupId> <artifactId>mockwebserver</artifactId> <version>3.2.0</version> <scope>test</scope> </dependency> <dependency> <groupId>org.mockito</groupId> <artifactId>mockito-core</artifactId> <scope>test</scope> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-deploy-plugin</artifactId> <version>2.8.2</version> <configuration> <skip>true</skip> </configuration> </plugin> </plugins> </build> </project>
{ "content_hash": "883c6ed3c37dc51c06b822a7fe012fbd", "timestamp": "", "source": "github", "line_count": 147, "max_line_length": 108, "avg_line_length": 33.50340136054422, "alnum_prop": 0.6696446700507614, "repo_name": "rockmkd/datacollector", "id": "6ed23899776ae6c30208ca4eb5607a5450c4c148", "size": "4925", "binary": false, "copies": "2", "ref": "refs/heads/master", "path": "azure-lib/pom.xml", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "ANTLR", "bytes": "101291" }, { "name": "CSS", "bytes": "120603" }, { "name": "Groovy", "bytes": "11876" }, { "name": "HTML", "bytes": "528951" }, { "name": "Java", "bytes": "20152513" }, { "name": "JavaScript", "bytes": "1070702" }, { "name": "Python", "bytes": "7413" }, { "name": "Scala", "bytes": "6347" }, { "name": "Shell", "bytes": "30088" } ], "symlink_target": "" }
// // Hero.h // SampleClass1 // // Created by Damian Lajara on 12/20/13. // Copyright (c) 2013 Damian Lajara. All rights reserved. // #ifndef __SampleClass1__Hero__ #define __SampleClass1__Hero__ #include "Character.h" #include "Monster.h" //#include "MainShop.h" //#include "Inventory.h" class Hero:public Character { //Has access to hero private data (i.e My_class) friend class SoldierWeapons; friend class MageWeapons; friend class ArcherWeapons; friend class SoldierArmor; friend class MageArmor; friend class ArcherArmor; private: string name; int gender_choice; string gender; string My_class; int roll; //string previous_class;/*keep record of class before user changes in options menu*/ int DungeonFloor; int RandMonsters; bool leveled_up[9]; int level_increase; int stat_increase[9]; bool exit = true; char option; bool skip = false; int option_choice; int skip_choice; int class_choice; int choice; int name_choice; void diceNumber(int roll); void initialize_hero(); public: Hero(); Hero(int, int, int, int); ~Hero(); string getName(){return name;} string getMy_class(){return My_class;} int getDungeonFloor(){return DungeonFloor;} void setDungeonFloor(int f); int getRandMonsters(){return RandMonsters;} void setRandMonsters(int r); int reset_max_hp(); void AdvanceNextDungeonLevel();//Advance to next floor void SetDungeonLevel();//set monsters for every level void Customize(); void option_menu(); void Dungeon(Hero& hero, Monster& m, Monster& m1,Monster& m2,Monster& m3,Monster& m4,Monster& m5,Monster& m6,Monster& m7,Monster& m8,Monster& m9); void RandDBattle(Monster& m, Monster& m1,Monster& m2,Monster& m3,Monster& m4,Monster& m5,Monster& m6,Monster& m7,Monster& m8,Monster& m9, int roll); //void DisplayInventory(); void Battle(Monster& m); void CheckExp(); void Checklevel(); void GamePlay(Hero& hero, Monster& m, Monster& m1,Monster& m2,Monster& m3,Monster& m4,Monster& m5,Monster& m6,Monster& m7,Monster& m8,Monster& m9); void CheckBattle(Monster& m, Monster& m1,Monster& m2,Monster& m3,Monster& m4,Monster& m5,Monster& m6,Monster& m7,Monster& m8,Monster& m9); }; #endif /* defined(__SampleClass1__Hero__) */
{ "content_hash": "51bdc09ff3eb8855bfdbcc7e70eaf2aa", "timestamp": "", "source": "github", "line_count": 82, "max_line_length": 152, "avg_line_length": 28.902439024390244, "alnum_prop": 0.670464135021097, "repo_name": "damianlajara/Claimh_Solais", "id": "849292de402ba37ec80e588db480f99a7f534cbc", "size": "2370", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "Claimh_Solais/Header/Hero.h", "mode": "33261", "license": "mit", "language": [ { "name": "C++", "bytes": "154858" } ], "symlink_target": "" }
<!DOCTYPE html> <html> <head> <script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> <title>MUSTANG MATCH</title> <link href='http://fonts.googleapis.com/css?family=Qwigley' rel='stylesheet' type='text/css'> <link href='css/match.css' rel='stylesheet' type='text/css'> </head> <body> <div class="stitched h1_height"> <h1> Mustang Match</h1> </div> <div class="stitched margin_twenty"> <p>This is a matching service provided by the MHS Byte Club. It is a matching service that matches one MHS student to another.</p> <p id=survey_takers></p> <script> var linecount = 0; $.get( "/matchresponses.csv", function( data ) { linecount = data.split("\n").length - 2; console.log(linecount); document.getElementById("survey_takers").innerHTML = "Number of people who have taken the survey: " + linecount; }); </script> <p>Remember to get your friends to take the survey.</p> <div class="above_xmas"> <a class="underline" href="https://goo.gl/yE1aTN">Take the survey here!!</a> <br><br> <a class="underline" href="http://www.mhsbyte.org/match_results.html">View your results here!! (Starting 2/10/16)</a> <br><br> </div> <br><br> <p> Results from the survey will available to be seen by the MHS Byte Club and a person who matches with you will be able to see your name.</p> <!--<div class="stitched margin_twenty"> <p>Results will be available starting February 10th, 2016. Tell your friends! The more results, the better the matches.</p> <a class="underline" href="http://www.mhsbyte.org/match_results.html">View your results here!! (Starting 2/10/16)</a> </div> --> <br><br><br><br> </div> <canvas id="xmas"></canvas> <!-- heart snow code --> <script src="js/letitsnow.js"></script> </body> </html>
{ "content_hash": "cca91dbac74f1c6b61985e93e0a42b41", "timestamp": "", "source": "github", "line_count": 59, "max_line_length": 146, "avg_line_length": 31.76271186440678, "alnum_prop": 0.6472785485592316, "repo_name": "MHSByteClub/mhsbyteclub.github.io", "id": "538be53d1af79c7e2ce4e9b21984737824637ff6", "size": "1874", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "match.html", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "27315" }, { "name": "HTML", "bytes": "196681" }, { "name": "Hack", "bytes": "2648" }, { "name": "JavaScript", "bytes": "33298" }, { "name": "PHP", "bytes": "87666" }, { "name": "Processing", "bytes": "364" }, { "name": "Python", "bytes": "29" }, { "name": "Shell", "bytes": "369" } ], "symlink_target": "" }
import picState0 from './state0.png'; import picState1 from './state1.png'; import picState2 from './state2.png'; import picState3 from './state3.png'; import picState4 from './state4.png'; import picState5 from './state5.png'; import picState6 from './state6.png'; import picstate7 from './state7.png'; export default [ picState0, picState1, picState2, picState3, picState4, picState5, picState6, picstate7, ]
{ "content_hash": "61fe7df0d5fbd21c3ea3befbf540938e", "timestamp": "", "source": "github", "line_count": 20, "max_line_length": 37, "avg_line_length": 21.45, "alnum_prop": 0.7202797202797203, "repo_name": "dimitrisafendras/multiGame", "id": "205b9b8781ff792b94f6ec0027636f1e80129d35", "size": "429", "binary": false, "copies": "1", "ref": "refs/heads/mine", "path": "src/routes/Hangman/images/index.js", "mode": "33188", "license": "mit", "language": [ { "name": "CSS", "bytes": "11109" }, { "name": "HTML", "bytes": "356" }, { "name": "JavaScript", "bytes": "211654" } ], "symlink_target": "" }
using Carbon.Data; using Carbon.Data.Expressions; namespace Amazon.DynamoDb; public sealed class UpdateItemRequest { public UpdateItemRequest( string tableName, IReadOnlyDictionary<string, DbValue> key, Change[] changes, Expression[]? conditions = null, ReturnValues? returnValues = null) { ArgumentNullException.ThrowIfNull(tableName); ArgumentNullException.ThrowIfNull(key); TableName = tableName; Key = key; ReturnValues = returnValues; var attributeNames = new Dictionary<string, string>(); var attributeValues = new AttributeCollection(); var updateExpression = new UpdateExpression(changes, attributeNames, attributeValues); UpdateExpression = updateExpression.ToString(); if (conditions is { Length: > 0 }) { var expression = new DynamoExpression(attributeNames, attributeValues); expression.AddRange(conditions); ConditionExpression = expression.Text; } if (attributeNames.Count > 0) { ExpressionAttributeNames = attributeNames; } if (attributeValues.Count > 0) { ExpressionAttributeValues = attributeValues; } } public string TableName { get; } public IReadOnlyDictionary<string, DbValue> Key { get; } public string? ConditionExpression { get; } public IReadOnlyDictionary<string, string>? ExpressionAttributeNames { get; } public AttributeCollection? ExpressionAttributeValues { get; } public ReturnValues? ReturnValues { get; } public string UpdateExpression { get; } }
{ "content_hash": "cc3922a9503cc391246c5c371af97b8b", "timestamp": "", "source": "github", "line_count": 62, "max_line_length": 94, "avg_line_length": 28.129032258064516, "alnum_prop": 0.6336009174311926, "repo_name": "carbon/Amazon", "id": "364d56459bb0ceb99e4ee18331e037e93722444d", "size": "1746", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "src/Amazon.DynamoDb/Actions/UpdateItemRequest.cs", "mode": "33261", "license": "mit", "language": [ { "name": "Batchfile", "bytes": "228" }, { "name": "C#", "bytes": "1031471" }, { "name": "PowerShell", "bytes": "1533" } ], "symlink_target": "" }
/* vi: set sw=4 ts=4: */ /* * Mini netstat implementation(s) for busybox * based in part on the netstat implementation from net-tools. * * Copyright (C) 2002 by Bart Visscher <magick@linux-fan.com> * * 2002-04-20 * IPV6 support added by Bart Visscher <magick@linux-fan.com> * * 2008-07-10 * optional '-p' flag support ported from net-tools by G. Somlo <somlo@cmu.edu> * * Licensed under GPLv2 or later, see file LICENSE in this source tree. */ #include "libbb.h" #include "inet_common.h" //usage:#define netstat_trivial_usage //usage: "[-"IF_ROUTE("r")"al] [-tuwx] [-en"IF_FEATURE_NETSTAT_WIDE("W")IF_FEATURE_NETSTAT_PRG("p")"]" //usage:#define netstat_full_usage "\n\n" //usage: "Display networking information\n" //usage: IF_ROUTE( //usage: "\n -r Routing table" //usage: ) //usage: "\n -a All sockets" //usage: "\n -l Listening sockets" //usage: "\n Else: connected sockets" //usage: "\n -t TCP sockets" //usage: "\n -u UDP sockets" //usage: "\n -w Raw sockets" //usage: "\n -x Unix sockets" //usage: "\n Else: all socket types" //usage: "\n -e Other/more information" //usage: "\n -n Don't resolve names" //usage: IF_FEATURE_NETSTAT_WIDE( //usage: "\n -W Wide display" //usage: ) //usage: IF_FEATURE_NETSTAT_PRG( //usage: "\n -p Show PID/program name for sockets" //usage: ) #define NETSTAT_OPTS "laentuwx" \ IF_ROUTE( "r") \ IF_FEATURE_NETSTAT_WIDE("W") \ IF_FEATURE_NETSTAT_PRG( "p") enum { OPT_sock_listen = 1 << 0, // l OPT_sock_all = 1 << 1, // a OPT_extended = 1 << 2, // e OPT_noresolve = 1 << 3, // n OPT_sock_tcp = 1 << 4, // t OPT_sock_udp = 1 << 5, // u OPT_sock_raw = 1 << 6, // w OPT_sock_unix = 1 << 7, // x OPTBIT_x = 7, IF_ROUTE( OPTBIT_ROUTE,) IF_FEATURE_NETSTAT_WIDE(OPTBIT_WIDE ,) IF_FEATURE_NETSTAT_PRG( OPTBIT_PRG ,) OPT_route = IF_ROUTE( (1 << OPTBIT_ROUTE)) + 0, // r OPT_wide = IF_FEATURE_NETSTAT_WIDE((1 << OPTBIT_WIDE )) + 0, // W OPT_prg = IF_FEATURE_NETSTAT_PRG( (1 << OPTBIT_PRG )) + 0, // p }; #define NETSTAT_CONNECTED 0x01 #define NETSTAT_LISTENING 0x02 #define NETSTAT_NUMERIC 0x04 /* Must match getopt32 option string */ #define NETSTAT_TCP 0x10 #define NETSTAT_UDP 0x20 #define NETSTAT_RAW 0x40 #define NETSTAT_UNIX 0x80 #define NETSTAT_ALLPROTO (NETSTAT_TCP|NETSTAT_UDP|NETSTAT_RAW|NETSTAT_UNIX) enum { TCP_ESTABLISHED = 1, TCP_SYN_SENT, TCP_SYN_RECV, TCP_FIN_WAIT1, TCP_FIN_WAIT2, TCP_TIME_WAIT, TCP_CLOSE, TCP_CLOSE_WAIT, TCP_LAST_ACK, TCP_LISTEN, TCP_CLOSING, /* now a valid state */ }; static const char *const tcp_state[] = { "", "ESTABLISHED", "SYN_SENT", "SYN_RECV", "FIN_WAIT1", "FIN_WAIT2", "TIME_WAIT", "CLOSE", "CLOSE_WAIT", "LAST_ACK", "LISTEN", "CLOSING" }; typedef enum { SS_FREE = 0, /* not allocated */ SS_UNCONNECTED, /* unconnected to any socket */ SS_CONNECTING, /* in process of connecting */ SS_CONNECTED, /* connected to socket */ SS_DISCONNECTING /* in process of disconnecting */ } socket_state; #define SO_ACCEPTCON (1<<16) /* performed a listen */ #define SO_WAITDATA (1<<17) /* wait data to read */ #define SO_NOSPACE (1<<18) /* no space to write */ #define ADDR_NORMAL_WIDTH 23 /* When there are IPv6 connections the IPv6 addresses will be * truncated to none-recognition. The '-W' option makes the * address columns wide enough to accomodate for longest possible * IPv6 addresses, i.e. addresses of the form * xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:ddd.ddd.ddd.ddd */ #define ADDR_WIDE 51 /* INET6_ADDRSTRLEN + 5 for the port number */ #if ENABLE_FEATURE_NETSTAT_WIDE # define FMT_NET_CONN_DATA "%s %6ld %6ld %-*s %-*s %-12s" # define FMT_NET_CONN_HEADER "\nProto Recv-Q Send-Q %-*s %-*s State %s\n" #else # define FMT_NET_CONN_DATA "%s %6ld %6ld %-23s %-23s %-12s" # define FMT_NET_CONN_HEADER "\nProto Recv-Q Send-Q %-23s %-23s State %s\n" #endif #define PROGNAME_WIDTH 20 #define PROGNAME_WIDTH_STR "20" /* PROGNAME_WIDTH chars: 12345678901234567890 */ #define PROGNAME_BANNER "PID/Program name " struct prg_node { struct prg_node *next; long inode; char name[PROGNAME_WIDTH]; }; #define PRG_HASH_SIZE 211 struct globals { smallint flags; #if ENABLE_FEATURE_NETSTAT_PRG smallint prg_cache_loaded; struct prg_node *prg_hash[PRG_HASH_SIZE]; #endif #if ENABLE_FEATURE_NETSTAT_PRG const char *progname_banner; #endif #if ENABLE_FEATURE_NETSTAT_WIDE unsigned addr_width; #endif }; #define G (*ptr_to_globals) #define flags (G.flags ) #define prg_cache_loaded (G.prg_cache_loaded) #define prg_hash (G.prg_hash ) #if ENABLE_FEATURE_NETSTAT_PRG # define progname_banner (G.progname_banner ) #else # define progname_banner "" #endif #define INIT_G() do { \ SET_PTR_TO_GLOBALS(xzalloc(sizeof(G))); \ flags = NETSTAT_CONNECTED | NETSTAT_ALLPROTO; \ } while (0) #if ENABLE_FEATURE_NETSTAT_PRG /* Deliberately truncating long to unsigned *int* */ #define PRG_HASHIT(x) ((unsigned)(x) % PRG_HASH_SIZE) static void prg_cache_add(long inode, char *name) { unsigned hi = PRG_HASHIT(inode); struct prg_node **pnp, *pn; prg_cache_loaded = 2; for (pnp = prg_hash + hi; (pn = *pnp) != NULL; pnp = &pn->next) { if (pn->inode == inode) { /* Some warning should be appropriate here as we got multiple processes for one i-node */ return; } } *pnp = xzalloc(sizeof(struct prg_node)); pn = *pnp; pn->inode = inode; safe_strncpy(pn->name, name, PROGNAME_WIDTH); } static const char *prg_cache_get(long inode) { unsigned hi = PRG_HASHIT(inode); struct prg_node *pn; for (pn = prg_hash[hi]; pn; pn = pn->next) if (pn->inode == inode) return pn->name; return "-"; } #if ENABLE_FEATURE_CLEAN_UP static void prg_cache_clear(void) { struct prg_node **pnp, *pn; for (pnp = prg_hash; pnp < prg_hash + PRG_HASH_SIZE; pnp++) { while ((pn = *pnp) != NULL) { *pnp = pn->next; free(pn); } } } #else #define prg_cache_clear() ((void)0) #endif static long extract_socket_inode(const char *lname) { long inode = -1; if (strncmp(lname, "socket:[", sizeof("socket:[")-1) == 0) { /* "socket:[12345]", extract the "12345" as inode */ inode = bb_strtoul(lname + sizeof("socket:[")-1, (char**)&lname, 0); if (*lname != ']') inode = -1; } else if (strncmp(lname, "[0000]:", sizeof("[0000]:")-1) == 0) { /* "[0000]:12345", extract the "12345" as inode */ inode = bb_strtoul(lname + sizeof("[0000]:")-1, NULL, 0); if (errno) /* not NUL terminated? */ inode = -1; } #if 0 /* bb_strtol returns all-ones bit pattern on ERANGE anyway */ if (errno == ERANGE) inode = -1; #endif return inode; } static int FAST_FUNC add_to_prg_cache_if_socket(const char *fileName, struct stat *statbuf UNUSED_PARAM, void *pid_slash_progname, int depth UNUSED_PARAM) { char *linkname; long inode; linkname = xmalloc_readlink(fileName); if (linkname != NULL) { inode = extract_socket_inode(linkname); free(linkname); if (inode >= 0) prg_cache_add(inode, (char *)pid_slash_progname); } return TRUE; } static int FAST_FUNC dir_act(const char *fileName, struct stat *statbuf UNUSED_PARAM, void *userData UNUSED_PARAM, int depth) { const char *pid; char *pid_slash_progname; char proc_pid_fname[sizeof("/proc/%u/cmdline") + sizeof(long)*3]; char cmdline_buf[512]; int n, len; if (depth == 0) /* "/proc" itself */ return TRUE; /* continue looking one level below /proc */ pid = fileName + sizeof("/proc/")-1; /* point after "/proc/" */ if (!isdigit(pid[0])) /* skip /proc entries which aren't processes */ return SKIP; len = snprintf(proc_pid_fname, sizeof(proc_pid_fname), "%s/cmdline", fileName); n = open_read_close(proc_pid_fname, cmdline_buf, sizeof(cmdline_buf) - 1); if (n < 0) return FALSE; cmdline_buf[n] = '\0'; /* go through all files in /proc/PID/fd and check whether they are sockets */ strcpy(proc_pid_fname + len - (sizeof("cmdline")-1), "fd"); pid_slash_progname = concat_path_file(pid, bb_basename(cmdline_buf)); /* "PID/argv0" */ n = recursive_action(proc_pid_fname, ACTION_RECURSE | ACTION_QUIET, add_to_prg_cache_if_socket, NULL, (void *)pid_slash_progname, 0); free(pid_slash_progname); if (!n) return FALSE; /* signal permissions error to caller */ return SKIP; /* caller should not recurse further into this dir */ } static void prg_cache_load(void) { int load_ok; prg_cache_loaded = 1; load_ok = recursive_action("/proc", ACTION_RECURSE | ACTION_QUIET, NULL, dir_act, NULL, 0); if (load_ok) return; if (prg_cache_loaded == 1) bb_error_msg("can't scan /proc - are you root?"); else bb_error_msg("showing only processes with your user ID"); } #else #define prg_cache_clear() ((void)0) #endif //ENABLE_FEATURE_NETSTAT_PRG #if ENABLE_FEATURE_IPV6 static void build_ipv6_addr(char* local_addr, struct sockaddr_in6* localaddr) { char addr6[INET6_ADDRSTRLEN]; struct in6_addr in6; sscanf(local_addr, "%08X%08X%08X%08X", &in6.s6_addr32[0], &in6.s6_addr32[1], &in6.s6_addr32[2], &in6.s6_addr32[3]); inet_ntop(AF_INET6, &in6, addr6, sizeof(addr6)); inet_pton(AF_INET6, addr6, &localaddr->sin6_addr); localaddr->sin6_family = AF_INET6; } #endif static void build_ipv4_addr(char* local_addr, struct sockaddr_in* localaddr) { sscanf(local_addr, "%X", &localaddr->sin_addr.s_addr); localaddr->sin_family = AF_INET; } static const char *get_sname(int port, const char *proto, int numeric) { if (!port) return "*"; if (!numeric) { struct servent *se = getservbyport(port, proto); if (se) return se->s_name; } /* hummm, we may return static buffer here!! */ return itoa(ntohs(port)); } static char *ip_port_str(struct sockaddr *addr, int port, const char *proto, int numeric) { char *host, *host_port; /* Code which used "*" for INADDR_ANY is removed: it's ambiguous * in IPv6, while "0.0.0.0" is not. */ host = numeric ? xmalloc_sockaddr2dotted_noport(addr) : xmalloc_sockaddr2host_noport(addr); host_port = xasprintf("%s:%s", host, get_sname(htons(port), proto, numeric)); free(host); return host_port; } struct inet_params { int local_port, rem_port, state, uid; union { struct sockaddr sa; struct sockaddr_in sin; #if ENABLE_FEATURE_IPV6 struct sockaddr_in6 sin6; #endif } localaddr, remaddr; unsigned long rxq, txq, inode; }; static int scan_inet_proc_line(struct inet_params *param, char *line) { int num; /* IPv6 /proc files use 32-char hex representation * of IPv6 address, followed by :PORT_IN_HEX */ char local_addr[33], rem_addr[33]; /* 32 + 1 for NUL */ num = sscanf(line, "%*d: %32[0-9A-Fa-f]:%X " "%32[0-9A-Fa-f]:%X %X " "%lX:%lX %*X:%*X " "%*X %d %*d %ld ", local_addr, &param->local_port, rem_addr, &param->rem_port, &param->state, &param->txq, &param->rxq, &param->uid, &param->inode); if (num < 9) { return 1; /* error */ } if (strlen(local_addr) > 8) { #if ENABLE_FEATURE_IPV6 build_ipv6_addr(local_addr, &param->localaddr.sin6); build_ipv6_addr(rem_addr, &param->remaddr.sin6); #endif } else { build_ipv4_addr(local_addr, &param->localaddr.sin); build_ipv4_addr(rem_addr, &param->remaddr.sin); } return 0; } static void print_inet_line(struct inet_params *param, const char *state_str, const char *proto, int is_connected) { if ((is_connected && (flags & NETSTAT_CONNECTED)) || (!is_connected && (flags & NETSTAT_LISTENING)) ) { char *l = ip_port_str( &param->localaddr.sa, param->local_port, proto, flags & NETSTAT_NUMERIC); char *r = ip_port_str( &param->remaddr.sa, param->rem_port, proto, flags & NETSTAT_NUMERIC); printf(FMT_NET_CONN_DATA, proto, param->rxq, param->txq, IF_FEATURE_NETSTAT_WIDE(G.addr_width,) l, IF_FEATURE_NETSTAT_WIDE(G.addr_width,) r, state_str); #if ENABLE_FEATURE_NETSTAT_PRG if (option_mask32 & OPT_prg) printf("%."PROGNAME_WIDTH_STR"s", prg_cache_get(param->inode)); #endif bb_putchar('\n'); free(l); free(r); } } static int FAST_FUNC tcp_do_one(char *line) { struct inet_params param; memset(&param, 0, sizeof(param)); if (scan_inet_proc_line(&param, line)) return 1; print_inet_line(&param, tcp_state[param.state], "tcp", param.rem_port); return 0; } #if ENABLE_FEATURE_IPV6 # define NOT_NULL_ADDR(A) ( \ ( (A.sa.sa_family == AF_INET6) \ && (A.sin6.sin6_addr.s6_addr32[0] | A.sin6.sin6_addr.s6_addr32[1] | \ A.sin6.sin6_addr.s6_addr32[2] | A.sin6.sin6_addr.s6_addr32[3]) \ ) || ( \ (A.sa.sa_family == AF_INET) \ && A.sin.sin_addr.s_addr != 0 \ ) \ ) #else # define NOT_NULL_ADDR(A) (A.sin.sin_addr.s_addr) #endif static int FAST_FUNC udp_do_one(char *line) { int have_remaddr; const char *state_str; struct inet_params param; memset(&param, 0, sizeof(param)); /* otherwise we display garbage IPv6 scope_ids */ if (scan_inet_proc_line(&param, line)) return 1; state_str = "UNKNOWN"; switch (param.state) { case TCP_ESTABLISHED: state_str = "ESTABLISHED"; break; case TCP_CLOSE: state_str = ""; break; } have_remaddr = NOT_NULL_ADDR(param.remaddr); print_inet_line(&param, state_str, "udp", have_remaddr); return 0; } static int FAST_FUNC raw_do_one(char *line) { int have_remaddr; struct inet_params param; if (scan_inet_proc_line(&param, line)) return 1; have_remaddr = NOT_NULL_ADDR(param.remaddr); print_inet_line(&param, itoa(param.state), "raw", have_remaddr); return 0; } static int FAST_FUNC unix_do_one(char *line) { unsigned long refcnt, proto, unix_flags; unsigned long inode; int type, state; int num, path_ofs; const char *ss_proto, *ss_state, *ss_type; char ss_flags[32]; /* 2.6.15 may report lines like "... @/tmp/fam-user-^@^@^@^@^@^@^@..." * Other users report long lines filled by NUL bytes. * (those ^@ are NUL bytes too). We see them as empty lines. */ if (!line[0]) return 0; path_ofs = 0; /* paranoia */ num = sscanf(line, "%*p: %lX %lX %lX %X %X %lu %n", &refcnt, &proto, &unix_flags, &type, &state, &inode, &path_ofs); if (num < 6) { return 1; /* error */ } if ((flags & (NETSTAT_LISTENING|NETSTAT_CONNECTED)) != (NETSTAT_LISTENING|NETSTAT_CONNECTED)) { if ((state == SS_UNCONNECTED) && (unix_flags & SO_ACCEPTCON)) { if (!(flags & NETSTAT_LISTENING)) return 0; } else { if (!(flags & NETSTAT_CONNECTED)) return 0; } } switch (proto) { case 0: ss_proto = "unix"; break; default: ss_proto = "??"; } switch (type) { case SOCK_STREAM: ss_type = "STREAM"; break; case SOCK_DGRAM: ss_type = "DGRAM"; break; case SOCK_RAW: ss_type = "RAW"; break; case SOCK_RDM: ss_type = "RDM"; break; case SOCK_SEQPACKET: ss_type = "SEQPACKET"; break; default: ss_type = "UNKNOWN"; } switch (state) { case SS_FREE: ss_state = "FREE"; break; case SS_UNCONNECTED: /* * Unconnected sockets may be listening * for something. */ if (unix_flags & SO_ACCEPTCON) { ss_state = "LISTENING"; } else { ss_state = ""; } break; case SS_CONNECTING: ss_state = "CONNECTING"; break; case SS_CONNECTED: ss_state = "CONNECTED"; break; case SS_DISCONNECTING: ss_state = "DISCONNECTING"; break; default: ss_state = "UNKNOWN"; } strcpy(ss_flags, "[ "); if (unix_flags & SO_ACCEPTCON) strcat(ss_flags, "ACC "); if (unix_flags & SO_WAITDATA) strcat(ss_flags, "W "); if (unix_flags & SO_NOSPACE) strcat(ss_flags, "N "); strcat(ss_flags, "]"); printf("%-5s %-6ld %-11s %-10s %-13s %6lu ", ss_proto, refcnt, ss_flags, ss_type, ss_state, inode ); #if ENABLE_FEATURE_NETSTAT_PRG if (option_mask32 & OPT_prg) printf("%-"PROGNAME_WIDTH_STR"s", prg_cache_get(inode)); #endif /* TODO: currently we stop at first NUL byte. Is it a problem? */ line += path_ofs; *strchrnul(line, '\n') = '\0'; while (*line) fputc_printable(*line++, stdout); bb_putchar('\n'); return 0; } static void do_info(const char *file, int FAST_FUNC (*proc)(char *)) { int lnr; FILE *procinfo; char *buffer; /* _stdin is just to save "r" param */ procinfo = fopen_or_warn_stdin(file); if (procinfo == NULL) { return; } lnr = 0; /* Why xmalloc_fgets_str? because it doesn't stop on NULs */ while ((buffer = xmalloc_fgets_str(procinfo, "\n")) != NULL) { /* line 0 is skipped */ if (lnr && proc(buffer)) bb_error_msg("%s: bogus data on line %d", file, lnr + 1); lnr++; free(buffer); } fclose(procinfo); } int netstat_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; int netstat_main(int argc UNUSED_PARAM, char **argv) { unsigned opt; INIT_G(); /* Option string must match NETSTAT_xxx constants */ opt = getopt32(argv, NETSTAT_OPTS); if (opt & OPT_sock_listen) { // -l flags &= ~NETSTAT_CONNECTED; flags |= NETSTAT_LISTENING; } if (opt & OPT_sock_all) flags |= NETSTAT_LISTENING | NETSTAT_CONNECTED; // -a //if (opt & OPT_extended) // -e if (opt & OPT_noresolve) flags |= NETSTAT_NUMERIC; // -n //if (opt & OPT_sock_tcp) // -t: NETSTAT_TCP //if (opt & OPT_sock_udp) // -u: NETSTAT_UDP //if (opt & OPT_sock_raw) // -w: NETSTAT_RAW //if (opt & OPT_sock_unix) // -x: NETSTAT_UNIX #if ENABLE_ROUTE if (opt & OPT_route) { // -r bb_displayroutes(flags & NETSTAT_NUMERIC, !(opt & OPT_extended)); return 0; } #endif #if ENABLE_FEATURE_NETSTAT_WIDE G.addr_width = ADDR_NORMAL_WIDTH; if (opt & OPT_wide) { // -W G.addr_width = ADDR_WIDE; } #endif #if ENABLE_FEATURE_NETSTAT_PRG progname_banner = ""; if (opt & OPT_prg) { // -p progname_banner = PROGNAME_BANNER; prg_cache_load(); } #endif opt &= NETSTAT_ALLPROTO; if (opt) { flags &= ~NETSTAT_ALLPROTO; flags |= opt; } if (flags & (NETSTAT_TCP|NETSTAT_UDP|NETSTAT_RAW)) { printf("Active Internet connections "); /* xxx */ if ((flags & (NETSTAT_LISTENING|NETSTAT_CONNECTED)) == (NETSTAT_LISTENING|NETSTAT_CONNECTED)) printf("(servers and established)"); else if (flags & NETSTAT_LISTENING) printf("(only servers)"); else printf("(w/o servers)"); printf(FMT_NET_CONN_HEADER, IF_FEATURE_NETSTAT_WIDE(G.addr_width,) "Local Address", IF_FEATURE_NETSTAT_WIDE(G.addr_width,) "Foreign Address", progname_banner ); } if (flags & NETSTAT_TCP) { do_info("/proc/net/tcp", tcp_do_one); #if ENABLE_FEATURE_IPV6 do_info("/proc/net/tcp6", tcp_do_one); #endif } if (flags & NETSTAT_UDP) { do_info("/proc/net/udp", udp_do_one); #if ENABLE_FEATURE_IPV6 do_info("/proc/net/udp6", udp_do_one); #endif } if (flags & NETSTAT_RAW) { do_info("/proc/net/raw", raw_do_one); #if ENABLE_FEATURE_IPV6 do_info("/proc/net/raw6", raw_do_one); #endif } if (flags & NETSTAT_UNIX) { printf("Active UNIX domain sockets "); if ((flags & (NETSTAT_LISTENING|NETSTAT_CONNECTED)) == (NETSTAT_LISTENING|NETSTAT_CONNECTED)) printf("(servers and established)"); else if (flags & NETSTAT_LISTENING) printf("(only servers)"); else printf("(w/o servers)"); printf("\nProto RefCnt Flags Type State I-Node %sPath\n", progname_banner); do_info("/proc/net/unix", unix_do_one); } prg_cache_clear(); return 0; }
{ "content_hash": "109585dcbecac8da57054334bbf467aa", "timestamp": "", "source": "github", "line_count": 746, "max_line_length": 108, "avg_line_length": 25.82975871313673, "alnum_prop": 0.6328818309201307, "repo_name": "sergecodd/FireFox-OS", "id": "9c239579fe8f0bdfad0187983cdcd5872a425dc6", "size": "19269", "binary": false, "copies": "53", "ref": "refs/heads/master", "path": "B2G/external/busybox/networking/netstat.c", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Ada", "bytes": "443" }, { "name": "ApacheConf", "bytes": "85" }, { "name": "Assembly", "bytes": "5123438" }, { "name": "Awk", "bytes": "46481" }, { "name": "Batchfile", "bytes": "56250" }, { "name": "C", "bytes": "101720951" }, { "name": "C#", "bytes": "38531" }, { "name": "C++", "bytes": "148896543" }, { "name": "CMake", "bytes": "23541" }, { "name": "CSS", "bytes": "2758664" }, { "name": "DIGITAL Command Language", "bytes": "56757" }, { "name": "Emacs Lisp", "bytes": "12694" }, { "name": "Erlang", "bytes": "889" }, { "name": "FLUX", "bytes": "34449" }, { "name": "GLSL", "bytes": "26344" }, { "name": "Gnuplot", "bytes": "710" }, { "name": "Groff", "bytes": "447012" }, { "name": "HTML", "bytes": "43343468" }, { "name": "IDL", "bytes": "1455122" }, { "name": "Java", "bytes": "43261012" }, { "name": "JavaScript", "bytes": "46646658" }, { "name": "Lex", "bytes": "38358" }, { "name": "Logos", "bytes": "21054" }, { "name": "Makefile", "bytes": "2733844" }, { "name": "Matlab", "bytes": "67316" }, { "name": "Max", "bytes": "3698" }, { "name": "NSIS", "bytes": "421625" }, { "name": "Objective-C", "bytes": "877657" }, { "name": "Objective-C++", "bytes": "737713" }, { "name": "PHP", "bytes": "17415" }, { "name": "Pascal", "bytes": "6780" }, { "name": "Perl", "bytes": "1153180" }, { "name": "Perl6", "bytes": "1255" }, { "name": "PostScript", "bytes": "1139" }, { "name": "PowerShell", "bytes": "8252" }, { "name": "Protocol Buffer", "bytes": "26553" }, { "name": "Python", "bytes": "8453201" }, { "name": "Ragel in Ruby Host", "bytes": "3481" }, { "name": "Ruby", "bytes": "5116" }, { "name": "Scilab", "bytes": "7" }, { "name": "Shell", "bytes": "3383832" }, { "name": "SourcePawn", "bytes": "23661" }, { "name": "TeX", "bytes": "879606" }, { "name": "WebIDL", "bytes": "1902" }, { "name": "XSLT", "bytes": "13134" }, { "name": "Yacc", "bytes": "112744" } ], "symlink_target": "" }
ACCEPTED #### According to International Plant Names Index #### Published in null #### Original name null ### Remarks null
{ "content_hash": "24d1844f95de77e8f2fc19eb7b5504e0", "timestamp": "", "source": "github", "line_count": 13, "max_line_length": 31, "avg_line_length": 9.692307692307692, "alnum_prop": 0.7063492063492064, "repo_name": "mdoering/backbone", "id": "5a401b13deffd94ee1cefdf216ab5a511e42b457", "size": "174", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "life/Plantae/Magnoliophyta/Magnoliopsida/Asterales/Asteraceae/Cacalia/Cacalia carduodes/README.md", "mode": "33188", "license": "apache-2.0", "language": [], "symlink_target": "" }
package com.google.gerrit.httpd.rpc.project; import com.google.gerrit.common.data.AccessSection; import com.google.gerrit.common.data.AddBranchResult; import com.google.gerrit.common.data.ListBranchesResult; import com.google.gerrit.common.data.ProjectAccess; import com.google.gerrit.common.data.ProjectAdminService; import com.google.gerrit.common.data.ProjectDetail; import com.google.gerrit.reviewdb.client.Branch; import com.google.gerrit.reviewdb.client.Change; import com.google.gerrit.reviewdb.client.Project; import com.google.gwtjsonrpc.common.AsyncCallback; import com.google.inject.Inject; import org.eclipse.jgit.lib.ObjectId; import java.util.List; import java.util.Set; class ProjectAdminServiceImpl implements ProjectAdminService { private final AddBranch.Factory addBranchFactory; private final ChangeProjectAccess.Factory changeProjectAccessFactory; private final ReviewProjectAccess.Factory reviewProjectAccessFactory; private final ChangeProjectSettings.Factory changeProjectSettingsFactory; private final DeleteBranches.Factory deleteBranchesFactory; private final ListBranches.Factory listBranchesFactory; private final VisibleProjectDetails.Factory visibleProjectDetailsFactory; private final ProjectAccessFactory.Factory projectAccessFactory; private final ProjectDetailFactory.Factory projectDetailFactory; @Inject ProjectAdminServiceImpl(final AddBranch.Factory addBranchFactory, final ChangeProjectAccess.Factory changeProjectAccessFactory, final ReviewProjectAccess.Factory reviewProjectAccessFactory, final ChangeProjectSettings.Factory changeProjectSettingsFactory, final DeleteBranches.Factory deleteBranchesFactory, final ListBranches.Factory listBranchesFactory, final VisibleProjectDetails.Factory visibleProjectDetailsFactory, final ProjectAccessFactory.Factory projectAccessFactory, final ProjectDetailFactory.Factory projectDetailFactory) { this.addBranchFactory = addBranchFactory; this.changeProjectAccessFactory = changeProjectAccessFactory; this.reviewProjectAccessFactory = reviewProjectAccessFactory; this.changeProjectSettingsFactory = changeProjectSettingsFactory; this.deleteBranchesFactory = deleteBranchesFactory; this.listBranchesFactory = listBranchesFactory; this.visibleProjectDetailsFactory = visibleProjectDetailsFactory; this.projectAccessFactory = projectAccessFactory; this.projectDetailFactory = projectDetailFactory; } @Override public void visibleProjectDetails(final AsyncCallback<List<ProjectDetail>> callback) { visibleProjectDetailsFactory.create().to(callback); } @Override public void projectDetail(final Project.NameKey projectName, final AsyncCallback<ProjectDetail> callback) { projectDetailFactory.create(projectName).to(callback); } @Override public void projectAccess(final Project.NameKey projectName, final AsyncCallback<ProjectAccess> callback) { projectAccessFactory.create(projectName).to(callback); } @Override public void changeProjectSettings(final Project update, final AsyncCallback<ProjectDetail> callback) { changeProjectSettingsFactory.create(update).to(callback); } private static ObjectId getBase(final String baseRevision) { if (baseRevision != null && !baseRevision.isEmpty()) { return ObjectId.fromString(baseRevision); } return null; } @Override public void changeProjectAccess(Project.NameKey projectName, String baseRevision, String msg, List<AccessSection> sections, AsyncCallback<ProjectAccess> cb) { changeProjectAccessFactory.create(projectName, getBase(baseRevision), sections, msg).to(cb); } @Override public void reviewProjectAccess(Project.NameKey projectName, String baseRevision, String msg, List<AccessSection> sections, AsyncCallback<Change.Id> cb) { reviewProjectAccessFactory.create(projectName, getBase(baseRevision), sections, msg).to(cb); } @Override public void listBranches(final Project.NameKey projectName, final AsyncCallback<ListBranchesResult> callback) { listBranchesFactory.create(projectName).to(callback); } @Override public void deleteBranch(final Project.NameKey projectName, final Set<Branch.NameKey> toRemove, final AsyncCallback<Set<Branch.NameKey>> callback) { deleteBranchesFactory.create(projectName, toRemove).to(callback); } @Override public void addBranch(final Project.NameKey projectName, final String branchName, final String startingRevision, final AsyncCallback<AddBranchResult> callback) { addBranchFactory.create(projectName, branchName, startingRevision).to( callback); } }
{ "content_hash": "9c31fe4e2db97deac70488b3a59a5cf5", "timestamp": "", "source": "github", "line_count": 116, "max_line_length": 96, "avg_line_length": 40.76724137931034, "alnum_prop": 0.8008035525481074, "repo_name": "basilgor/gerrit", "id": "0e46bc3e18645b9e048cdf41b48b3e0985cefe3b", "size": "5338", "binary": false, "copies": "2", "ref": "refs/heads/cvs_submit", "path": "gerrit-httpd/src/main/java/com/google/gerrit/httpd/rpc/project/ProjectAdminServiceImpl.java", "mode": "33188", "license": "apache-2.0", "language": [ { "name": "Java", "bytes": "5346642" }, { "name": "JavaScript", "bytes": "1590" }, { "name": "Perl", "bytes": "9943" }, { "name": "Prolog", "bytes": "17421" }, { "name": "Python", "bytes": "12182" }, { "name": "Shell", "bytes": "36339" } ], "symlink_target": "" }
// // NearbyAllController.m // Sanzu_Project // // Created by lanou3g on 15/10/14. // Copyright (c) 2015年 蓝欧科技. All rights reserved. // #import "NearbyAllController.h" #import "NearbyCell.h" #import <AFNetworking.h> #import "UIImageView+WebCache.h" #import "DataManagerHandle.h" #import "NearbyModel.h" #import "WebViewController.h" #define URLa @"http://api.breadtrip.com/place/pois/nearby/?keyword=&category=0&start=1&count=20&latitude=" @interface NearbyAllController () @property(nonatomic,strong)NSMutableArray *tableviewValue; @end @implementation NearbyAllController - (void)viewDidLoad { [super viewDidLoad]; [self.tableView registerClass:[NearbyCell class] forCellReuseIdentifier:@"nearbycell"]; [self getTableViewValue]; self.tableView.showsVerticalScrollIndicator = NO; self.tableView.separatorStyle = UITableViewCellSeparatorStyleNone; } - (void)getTableViewValue{ AFHTTPRequestOperationManager *manager = [AFHTTPRequestOperationManager manager]; NSString *strLat = [DataManagerHandle sharedata].lat; NSString *strLong = [DataManagerHandle sharedata].Long; //NSLog(@"%@",kNearbyAll(URLa, strLat, URLb, strLong, URLc)); [manager GET:kNearbyAll(URLa, strLat, URLb, strLong, URLc) parameters:nil success:^(AFHTTPRequestOperation * operation,id responseObject) { NSDictionary *dict = (NSDictionary *)responseObject; NSArray *array = dict[@"items"]; self.tableviewValue = [array mutableCopy]; [self.tableView reloadData]; } failure:^(AFHTTPRequestOperation * operation, NSError * error) { NSLog(@"Error:%@",error); }]; } - (void)didReceiveMemoryWarning { [super didReceiveMemoryWarning]; // Dispose of any resources that can be recreated. } #pragma mark - Table view data source - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { return 1; } - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { return self.tableviewValue.count; } -(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath { return 110; } - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { NearbyCell *cell = [tableView dequeueReusableCellWithIdentifier:@"nearbycell" forIndexPath:indexPath]; NSDictionary *dict = self.tableviewValue[indexPath.row]; NSString *name = dict[@"name"]; cell.title.text = name; cell.selectionStyle = UITableViewCellSelectionStyleNone; NSString *desc = dict[@"description"]; cell.text4desc.text = desc; NSString *add = dict[@"address"]; cell.text4add.text = add; NSString *popu = [NSString stringWithFormat:@"%@",dict[@"popularity"]]; NSString *strpopu = [NSString stringWithFormat:@"%@人去过", popu]; cell.text4popu.text = strpopu; NSString *urlstr = dict[@"cover_s"]; [cell.img4cover sd_setImageWithURL:[NSURL URLWithString:urlstr] placeholderImage:[UIImage imageNamed:@"zhan1"]]; return cell; } //点击进入详情页 - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{ NSDictionary *dic = _tableviewValue[indexPath.row]; NSString *deUrlstr = BlogURU(BlogsURL, dic[@"url"]); WebViewController *w = [WebViewController new]; w.urlstr = deUrlstr; [self.navigationController pushViewController:w animated:YES]; } /* // Override to support conditional editing of the table view. - (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath { // Return NO if you do not want the specified item to be editable. return YES; } */ /* // Override to support editing the table view. - (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath { if (editingStyle == UITableViewCellEditingStyleDelete) { // Delete the row from the data source [tableView deleteRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationFade]; } else if (editingStyle == UITableViewCellEditingStyleInsert) { // Create a new instance of the appropriate class, insert it into the array, and add a new row to the table view } } */ /* // Override to support rearranging the table view. - (void)tableView:(UITableView *)tableView moveRowAtIndexPath:(NSIndexPath *)fromIndexPath toIndexPath:(NSIndexPath *)toIndexPath { } */ /* // Override to support conditional rearranging of the table view. - (BOOL)tableView:(UITableView *)tableView canMoveRowAtIndexPath:(NSIndexPath *)indexPath { // Return NO if you do not want the item to be re-orderable. return YES; } */ /* #pragma mark - Navigation // In a storyboard-based application, you will often want to do a little preparation before navigation - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { // Get the new view controller using [segue destinationViewController]. // Pass the selected object to the new view controller. } */ -(NSMutableArray *)tableviewValue { if (_tableviewValue==nil) { _tableviewValue = [NSMutableArray new]; } return _tableviewValue; } @end
{ "content_hash": "37fd4f63b0832cf04397ef9d9906f777", "timestamp": "", "source": "github", "line_count": 153, "max_line_length": 149, "avg_line_length": 33.967320261437905, "alnum_prop": 0.731960746584568, "repo_name": "GeminiGuoGuo/Sanzu_LastProject", "id": "c879fc658856ec2cd0da47bb835e935a2d949690", "size": "5227", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "Sanzu_Project/Sanzu_Project/Class/Sences/Controllers/NearbyAllController.m", "mode": "33261", "license": "mit", "language": [ { "name": "Objective-C", "bytes": "1348902" }, { "name": "Objective-C++", "bytes": "4965" }, { "name": "Ruby", "bytes": "86" }, { "name": "Shell", "bytes": "4587" } ], "symlink_target": "" }
SYNONYM #### According to The Catalogue of Life, 3rd January 2011 #### Published in Syll. gen. sp. crypt. (Paris) 163 (1856) #### Original name Polyporus latemarginatus Durieu & Mont., 1856 ### Remarks null
{ "content_hash": "90a83dbad208ea3cfca571493d9206f7", "timestamp": "", "source": "github", "line_count": 13, "max_line_length": 45, "avg_line_length": 16.153846153846153, "alnum_prop": 0.7, "repo_name": "mdoering/backbone", "id": "fe84aad58fbd73f1106796972d182d21572a267d", "size": "279", "binary": false, "copies": "1", "ref": "refs/heads/master", "path": "life/Fungi/Basidiomycota/Agaricomycetes/Hymenochaetales/Schizoporaceae/Oxyporus/Oxyporus latemarginatus/ Syn. Polyporus latemarginatus/README.md", "mode": "33188", "license": "apache-2.0", "language": [], "symlink_target": "" }