answer
stringlengths
15
1.25M
.stm-autocomplete.ui-front { z-index: 999999; } .<API key> { vertical-align: middle !important; max-height: 60px; } .<API key> { vertical-align: middle !important; } .<API key> .button-primary { vertical-align: middle !important; } .<API key> { margin-left: 20px !important; } .stm_importer { margin: 20px 20px 0 0; background: #fff; padding: 30px; } .stm_message { padding: 40px; max-width: 450px; text-align: center; background: #fff; margin: 20px auto; } .stm_message_title { margin: 20px 0; line-height: 1.3; } .stm_message.success .stm_message_text { font-size: 16px; } .stm_message.danger { background-color: #e05d6f; color: #fff; font-size: 16px; line-height: 28px; } /* Multiselect */ .ms-container{ background: transparent url('../images/switch.png') no-repeat 50% 50%; width: 370px; } .ms-container:after{ content: "."; display: block; height: 0; line-height: 0; font-size: 0; clear: both; min-height: 0; visibility: hidden; } .ms-container .ms-selectable, .ms-container .ms-selection{ background: #fff; color: #555555; float: left; width: 45%; } .ms-container .ms-selection{ float: right; } .ms-container .ms-list{ -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); -webkit-transition: border linear 0.2s, box-shadow linear 0.2s; -moz-transition: border linear 0.2s, box-shadow linear 0.2s; -ms-transition: border linear 0.2s, box-shadow linear 0.2s; -o-transition: border linear 0.2s, box-shadow linear 0.2s; transition: border linear 0.2s, box-shadow linear 0.2s; border: 1px solid #ccc; -<API key>: 3px; -moz-border-radius: 3px; border-radius: 3px; position: relative; height: 200px; padding: 0; overflow-y: auto; } .ms-container .ms-list.ms-focus{ border-color: rgba(82, 168, 236, 0.8); -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6); -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6); box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6); outline: 0; outline: thin dotted \9; } .ms-container ul{ margin: 0; list-style-type: none; padding: 0; } .ms-container .<API key>{ width: 100%; } .ms-container .ms-optgroup-label{ margin: 0; padding: 5px 0px 0px 5px; cursor: pointer; color: #999; } .ms-container .ms-selectable li.ms-elem-selectable, .ms-container .ms-selection li.ms-elem-selection{ border-bottom: 1px #eee solid; padding: 2px 10px; margin-bottom: 0; color: #555; font-size: 14px; } .ms-container .ms-selectable li.ms-hover, .ms-container .ms-selection li.ms-hover{ cursor: pointer; color: #fff; text-decoration: none; background-color: #08c; } .ms-container .ms-selectable li.disabled, .ms-container .ms-selection li.disabled{ background-color: #eee; color: #aaa; cursor: text; } .<API key> { margin-top: 30px; } .<API key> label { display: block; max-width: 230px; margin-right: 35px; margin-bottom: 30px; float: left; } .<API key> label img { max-width: 100%; } .<API key>:after { content: ''; display: block; clear: both; } .<API key> .<API key> { margin-top: 25px; text-align: center; } .<API key> img { border-radius: 3px; box-shadow: 0 5px 10px rgba(0,0,0,0.17); transition: all 0.5s ease; } .<API key> img:hover { box-shadow: 0 5px 17px rgba(0,0,0,0.6); } .<API key> { max-width: 1290px; text-align: center; } .<API key> .size_big { height: 36px; line-height: 34px; padding: 0 15px 1px; } .stm-pick-icon { max-width: 30px; overflow: hidden; } .stm-pick-icon i { display: block; max-width: 100%; width: 20px; overflow: hidden; } .<API key> label { margin-right: 15px; } /*HIDE USELESS FIELDS FROM BOATS TEMPLATE*/ .wp-admin.stm-template-boats .stm_admin_sub_title, .wp-admin.stm-template-boats .<API key>, .wp-admin.stm-template-boats .<API key>, .wp-admin.stm-template-boats .<API key>, .wp-admin.stm-template-boats .<API key>, .wp-admin.stm-template-boats .<API key>, .wp-admin.stm-template-boats .stm_admin_sub_title, .wp-admin.stm-template-boats .<API key>, .wp-admin.stm-template-boats .stm_admin_history, .wp-admin.stm-template-boats .<API key>, .wp-admin.stm-template-boats .<API key>, .wp-admin.stm-template-boats .<API key>, .wp-admin.stm-template-boats .<API key>, .wp-admin.stm-template-boats .<API key> { display: none; } body.<API key> .hidden-on { display: block; } .hidden-on { display: none; } #widgets-right #stm_boats_car { display: none; } body.stm-template-boats #widgets-right #stm_boats_car { display: block; } #widgets-right #stm_listing_car { display: none; } body.<API key> #widgets-right #stm_listing_car { display: block; } .export_settings input[type="file"] { display: block; margin: 30px 0 15px; width: 100%; }
/* ft_isspace.c :+: :+: :+: */ /* By: hmartzol <hmartzol@student.42.fr> +#+ +:+ +#+ */ /* Created: 2016/02/08 18:44:36 by hmartzol #+# #+# */ #include <libft.h> int ft_isspace(int c) { return (c == ' ' || (c > 8 && c < 14)); }
package edu.eur.absa.algorithm.ontology; import java.io.File; import edu.eur.absa.Framework; import edu.eur.absa.algorithm.AbstractAlgorithm; import edu.eur.absa.algorithm.Experiment; import edu.eur.absa.data.DatasetJSONReader; import edu.eur.absa.data.DatasetJSONWriter; import edu.eur.absa.data.<API key>; import edu.eur.absa.external.ReasoningOntology; import edu.eur.absa.model.Dataset; import edu.eur.absa.nlp.OntologyLookup; /** * This class will run the experiments shown in our ESWC 2018 paper. * For the ontology access and reasoning we use the Jena library, which works okay enough * but is unfortunately very slow, both when running and when initializing. * The first time the ontology is actually used, it will build the so-called inference model, * which takes quite a bit of time. * When new classes are added to the ontology by the algorithm, again, the inference model * has to be build again. To avoid this, an 'expanded' version of the ontology is used by * the algorithms where these newly added classes already exist. Some of these classes are * nonsense though, so do not use the expanded version for future work on the ontology. * Using the <API key> will result in a grid search over gamma and C * parameters of the SVM. This will take a long time. * @author kimschouten * */ public class ESWC2018 { public static void main(String[] args) throws Exception{ // Note that this will use the file instead of the console out so you won't see much Framework.<API key>(); // Supress all the nonsense that Jena by default dumps in the console. Framework.<API key>(); //If the raw SemEval XML data have not yet been processed (gone through NLP pipeline) // you need to uncomment this // <API key>.main(null); /* * Read SemEval 2015 ABSA and SemEval 2016 ABSA data (restaurants only) */ String ontology = "ontology.owl"; Dataset train2015 = (new DatasetJSONReader()).read(new File(Framework.DATA_PATH+"<API key>.json")); train2015.process(new OntologyLookup(null, ReasoningOntology.getOntology(Framework.EXTERNALDATA_PATH + ontology)), "review"); Dataset test2015 = (new DatasetJSONReader()).read(new File(Framework.DATA_PATH+"<API key>.json")); test2015.process(new OntologyLookup(null, ReasoningOntology.getOntology(Framework.EXTERNALDATA_PATH + ontology)), "review"); Dataset train2016 = (new DatasetJSONReader()).read(new File(Framework.DATA_PATH+"<API key>.json")); train2016.process(new OntologyLookup(null, ReasoningOntology.getOntology(Framework.EXTERNALDATA_PATH + ontology)), "review"); Dataset test2016 = (new DatasetJSONReader()).read(new File(Framework.DATA_PATH+"<API key>.json")); test2016.process(new OntologyLookup(null, ReasoningOntology.getOntology(Framework.EXTERNALDATA_PATH + ontology)), "review"); ontology = "ontology.owl-Expanded.owl"; int nrc = <API key>.RESTAURANTS; /* * Defining the four algorithms from the paper */ AbstractAlgorithm OntBoW = new <API key>("Ont+BoW","review") .setBinaryProperties("use_sentence","use_bow_backup") .setProperty("ont", ontology) .setProperty("ont_ns", "http: AbstractAlgorithm Ont = new <API key>("Ont","review") .setBinaryProperties("use_sentence") .setProperty("ont", ontology) .setProperty("ont_ns", "http: AbstractAlgorithm BoW = new <API key>("BoW", "review", false, nrc) .setBinaryProperties("<API key>", "use_review","predict_neutral", "use_category","<API key>","<API key>") .setProperty("ont", ontology) .setProperty("ont_ns", "http: AbstractAlgorithm BoWOnt = new <API key>("BoW+Ont", "review", false, nrc) .setBinaryProperties("<API key>", "use_review","predict_neutral", "use_category","<API key>","<API key>", "use_ontology") .setProperty("ont", ontology) .setProperty("ont_ns", "http: // runExperimentTable1(Ont,BoW,OntBoW,BoWOnt,train2015); runExperimentTable2(Ont,BoW,OntBoW,BoWOnt,train2016); // runExperimentTable3(Ont,train2015,test2015,train2016,test2016); // <API key>(Ont,BoW,OntBoW,BoWOnt,train2015,test2015); // <API key>(Ont,BoW,OntBoW,BoWOnt,train2016,test2016); // runExperimentTable4(Ont,BoW,OntBoW,BoWOnt,train2015,test2015,train2016,test2016); } /** * Experiment to get the results from Table 1 */ public static void runExperimentTable1(AbstractAlgorithm Ont, AbstractAlgorithm BoW, AbstractAlgorithm OntBoW, AbstractAlgorithm BoWOnt, Dataset train2015) throws <API key>, <API key> { Framework.log("****************************"); Framework.log("*** Results for Table 1 ***"); Framework.log("****************************"); Experiment.createNewExperiment() .addAlgorithms(Ont, BoW, OntBoW, BoWOnt) .setDataset(train2015) .setCrossValidation(1, 10, 0.8, 0.2) .run(); } /** * Experiment to get the results from Table 2 */ public static void runExperimentTable2(AbstractAlgorithm Ont, AbstractAlgorithm BoW, AbstractAlgorithm OntBoW, AbstractAlgorithm BoWOnt, Dataset train2016) throws <API key>, <API key> { Framework.log("****************************"); Framework.log("*** Results for Table 2 ***"); Framework.log("****************************"); Experiment.createNewExperiment() .addAlgorithms(Ont, BoW, OntBoW, BoWOnt) .setDataset(train2016) .setCrossValidation(1, 10, 0.8, 0.2) .run(); } /** * Experiments to get the results from Table 3 (only the Ont+Bow results) * Left column first, then right colomn */ public static void runExperimentTable3(AbstractAlgorithm Ont, Dataset train2015, Dataset test2015, Dataset train2016, Dataset test2016) throws <API key>, <API key> { Framework.log("****************************"); Framework.log("*** Results for Table 3 ***"); Framework.log("****************************"); Experiment.createNewExperiment() .addAlgorithms(Ont) .<API key>(train2015, test2015, true, 0.8, 0.2) .run(); Experiment.createNewExperiment() .addAlgorithms(Ont) .<API key>(train2016, test2016, true, 0.8, 0.2) .run(); } /** * Experiment to get the results from Figure 5 */ public static void <API key>(AbstractAlgorithm Ont, AbstractAlgorithm BoW, AbstractAlgorithm OntBoW, AbstractAlgorithm BoWOnt, Dataset train2015, Dataset test2015) throws <API key>, <API key> { Framework.log("****************************"); Framework.log("*** Results for Figure 5 ***"); Framework.log("****************************"); for (double trainingDataSize = 1.0; trainingDataSize >= 0.0; trainingDataSize -= 0.1 ){ Framework.log("=========================================================================="); Framework.log("=== Training Data Size : " + trainingDataSize); Framework.log("=========================================================================="); Experiment.createNewExperiment() .addAlgorithms(Ont, BoW, OntBoW, BoWOnt) //MOnt, MOntBow,baseline, BowMOnt) .<API key>(train2015, test2015, false, 0.8*trainingDataSize, 0.2*trainingDataSize) .run(); } } /** * Experiment to get the results from Figure 6 */ public static void <API key>(AbstractAlgorithm Ont, AbstractAlgorithm BoW, AbstractAlgorithm OntBoW, AbstractAlgorithm BoWOnt, Dataset train2016, Dataset test2016) throws <API key>, <API key> { Framework.log("****************************"); Framework.log("*** Results for Figure 6 ***"); Framework.log("****************************"); for (double trainingDataSize = 1.0; trainingDataSize >= 0.0; trainingDataSize -= 0.1 ){ Framework.log("=========================================================================="); Framework.log("=== Training Data Size : " + trainingDataSize); Framework.log("=========================================================================="); Experiment.createNewExperiment() .addAlgorithms(Ont, BoW, OntBoW, BoWOnt) //MOnt, MOntBow,baseline, BowMOnt) .<API key>(train2016, test2016, false, 0.8*trainingDataSize, 0.2*trainingDataSize) .run(); } } /** * Experiments to get the results from Table 4 * Left part first, then right part */ public static void runExperimentTable4(AbstractAlgorithm Ont, AbstractAlgorithm BoW, AbstractAlgorithm OntBoW, AbstractAlgorithm BoWOnt, Dataset train2015, Dataset test2015, Dataset train2016, Dataset test2016) throws <API key>, <API key> { Framework.log("****************************"); Framework.log("*** Results for Table 4 ***"); Framework.log("****************************"); Experiment.createNewExperiment() .addAlgorithms(Ont, BoW) .<API key>(train2015, test2015, true, 0.8, 0.2) .run(); Experiment.createNewExperiment() .addAlgorithms(Ont, BoW) .<API key>(train2016, test2016, true, 0.8, 0.2) .run(); } }
/** * @requires OpenLayers/Format/XML.js */ /** * Class: OpenLayers.Format.WMTSCapabilities * Read WMTS Capabilities. * * Inherits from: * - <OpenLayers.Format.XML> */ OpenLayers.Format.WMTSCapabilities = OpenLayers.Class(OpenLayers.Format.XML, { /** * APIProperty: defaultVersion * {String} Version number to assume if none found. Default is "1.0.0". */ defaultVersion: "1.0.0", /** * APIProperty: version * {String} Specify a version string if one is known. */ version: null, /** * Property: parser * {<OpenLayers.Format>} A cached versioned format used for reading. */ parser: null, /** * APIProperty: yx * {Object} Members in the yx object are used to determine if a CRS URN * corresponds to a CRS with y,x axis order. Member names are CRS URNs * and values are boolean. By default, the following CRS URN are * assumed to correspond to a CRS with y,x axis order: * * * urn:ogc:def:crs:EPSG::4326 */ yx: { "urn:ogc:def:crs:EPSG::4326": true }, /** * Constructor: OpenLayers.Format.WMTSCapabilities * Create a new parser for WMTS capabilities. * * Parameters: * options - {Object} An optional object whose properties will be set on * this instance. */ initialize: function(options) { OpenLayers.Format.XML.prototype.initialize.apply(this, [options]); this.options = options; }, /** * APIMethod: read * Read capabilities data from a string, and return information about * the service (offering and observedProperty mostly). * * Parameters: * data - {String} or {DOMElement} data to read/parse. * * Returns: * {Object} Info about the WMTS Capabilities */ read: function(data) { if (typeof data == "string") { data = OpenLayers.Format.XML.prototype.read.apply(this, [data]); } var root = data.documentElement; var version = this.version || root.getAttribute("version") || this.defaultVersion; if (!this.parser || this.parser.version !== version) { var constr = OpenLayers.Format.WMTSCapabilities[ "v" + version.replace(/\./g, "_") ]; if (!constr) { throw new Error("Can't find a WMTS capabilities parser for version " + version); } this.parser = new constr(this.options); } return this.parser.read(data); }, /** * APIMethod: createLayer * Create a WMTS layer given a capabilities object. * * Parameters: * capabilities - {Object} The object returned from a <read> call to this * format. * config - {Object} Configuration properties for the layer. Defaults for * the layer will apply if not provided. * * Required config properties: * layer - {String} The layer identifier. * matrixSet - {String} The matrix set identifier. * * Returns: * {<OpenLayers.Layer.WMTS>} A properly configured WMTS layer. Throws an * error if an incomplete config is provided. Returns undefined if no * layer could be created with the provided config. */ createLayer: function(capabilities, config) { var layer; // confirm required properties are supplied in config var required = { layer: true, matrixSet: true }; for (var prop in required) { if (!(prop in config)) { throw new Error("Missing property '" + prop + "' in layer configuration."); } } var contents = capabilities.contents; var matrixSet = contents.tileMatrixSets[config.matrixSet]; // find the layer definition with the given identifier var layers = contents.layers; var layerDef; for (var i=0, ii=contents.layers.length; i<ii; ++i) { if (contents.layers[i].identifier === config.layer) { layerDef = contents.layers[i]; break; } } if (layerDef && matrixSet) { // get the default style for the layer var style; for (var i=0, ii=layerDef.styles.length; i<ii; ++i) { style = layerDef.styles[i]; if (style.isDefault) { break; } } layer = new OpenLayers.Layer.WMTS( OpenLayers.Util.applyDefaults(config, { url: capabilities.operationsMetadata.GetTile.dcp.http.get, name: layerDef.title, style: style, matrixIds: matrixSet.matrixIds }) ); } return layer; }, CLASS_NAME: "OpenLayers.Format.WMTSCapabilities" });
#ifndef <API key> #define <API key> #include "gst/gst.h" #include <gio/gio.h> GVariant *<API key>(GDBusProxy *pipeline_proxy, const gchar *element, const gchar *name, const gchar *value); gchar *<API key>(GDBusProxy *pipeline_proxy, const gchar *element, const gchar *name); GVariant *<API key>(GDBusProxy *pipeline_proxy, GstState state); GstState <API key>(GDBusProxy *pipeline_proxy); #endif /* <API key> */
Copyright (c) 2012 Ecma International. All rights reserved. Ecma International makes this code available under the terms and conditions set forth on http: "Use Terms"). Any redistribution of this code must retain the above copyright and this notice and otherwise comply with the Use Terms. /** * @path ch15/15.4/15.4.4/15.4.4.15/15.4.4.15-3-15.js * @description Array.prototype.lastIndexOf - value of 'length' is a string containing an exponential number */ function testcase() { var obj = {229: 229, 230: 2.3E2, length: "2.3E2"}; return Array.prototype.lastIndexOf.call(obj, 229) === 229 && Array.prototype.lastIndexOf.call(obj, 2.3E2) === -1; } runTestCase(testcase);
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */ #include "send-packet-state.h" SendPacketState::SendPacketState(int i) : ValueStringState(i){ composite_id = i; my_name = std::string("SendPacketState"); my_type = std::string("SendPacketState"); state_value = OK; }; SendPacketState::SendPacketState(int i,int n) : ValueStringState(i,n){ composite_id = i; my_name = std::string("SendPacketState"); my_type = std::string("SendPacketState"); state_value = FAULT_VALUE; };
package ngsep.transcriptome.io; import java.io.BufferedReader; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.List; import ngsep.sequences.DNAMaskedSequence; import ngsep.sequences.QualifiedSequence; import ngsep.sequences.<API key>; import ngsep.transcriptome.TranscriptSegment; import ngsep.transcriptome.Gene; import ngsep.transcriptome.Transcript; import ngsep.transcriptome.Transcriptome; /** * Implementation of an <API key> that loads the transcripts information * from a knownGenes file from UCSC. * @author Jorge Duitama * */ public class <API key> { private <API key> sequenceNames = new <API key>(); public <API key> getSequenceNames() { return sequenceNames; } public void setSequenceNames(<API key> sequenceNames) { if(sequenceNames==null) this.sequenceNames = new <API key>(); else this.sequenceNames = sequenceNames; } /** * Loads the genes, transcripts and exons information from the given map file * @param filename Name of the file with the transcriptome description * @throws IOException If the file can not be read */ public Transcriptome loadMap(String filename) throws IOException { Transcriptome answer = new Transcriptome(sequenceNames); try (FileInputStream fis = new FileInputStream(filename); BufferedReader in = new BufferedReader(new InputStreamReader(fis)) ) { String line=in.readLine(); while(line!=null) { if(line.charAt(0)!=' String [] items = line.split("\t"); String newSeqName = items[1]; QualifiedSequence seq; try { seq = sequenceNames.addOrLookupName(newSeqName); } catch (RuntimeException e) { System.err.println("Can not load line: "+line+". Unrecognized sequence name. "+e.getMessage()); line=in.readLine(); continue; } boolean reverse = items[2].charAt(0)=='-'; //Add 1 to all starts because positions are zero indexed and ends are exclusive int start = Integer.parseInt(items[3])+1; int end = Integer.parseInt(items[4]); int translationStart = Integer.parseInt(items[5])+1; int translationEnd = Integer.parseInt(items[6]); boolean coding = translationEnd > translationStart; String geneId = items[0]; String geneId2 = null; if(items.length>10) { geneId2 = items[10]; if(geneId2.length()>0 && !"n/a".equals(geneId2) ) { geneId = geneId2; } } Gene gene = answer.getGene(geneId); if(gene == null) { gene = new Gene(geneId,geneId,seq.getName(), start,end,reverse); } else { if(gene.getLast()<end) gene.setLast(end); if(gene.getFirst()>start) gene.setFirst(start); } Transcript transcript = new Transcript(items[0],seq.getName(),start,end,reverse); transcript.setGene(gene); String [] exonStarts = items[8].split(","); String [] exonEnds = items[9].split(","); List<TranscriptSegment> tExons = new ArrayList<TranscriptSegment>(); for(int i=0;i<exonStarts.length;i++) { int exonStart = Integer.parseInt(exonStarts[i])+1; int exonEnd = Integer.parseInt(exonEnds[i]); if(coding) { //Split exon if it includes non coding and coding region if(translationStart>exonStart && translationStart<exonEnd) { TranscriptSegment exon = new TranscriptSegment(transcript,exonStart,translationStart-1); if(reverse) { exon.setStatus(TranscriptSegment.STATUS_3P_UTR); } else { exon.setStatus(TranscriptSegment.STATUS_5P_UTR); } tExons.add(exon); exonStart = translationStart; } if(translationEnd>exonStart && translationEnd<exonEnd) { TranscriptSegment exon=new TranscriptSegment(transcript, exonStart, translationEnd); exon.setStatus(TranscriptSegment.STATUS_CODING); tExons.add(exon); exonStart = translationEnd+1; } TranscriptSegment exon = new TranscriptSegment(transcript,exonStart,exonEnd); if(exonEnd < translationStart ) { if(reverse) { exon.setStatus(TranscriptSegment.STATUS_3P_UTR); } else { exon.setStatus(TranscriptSegment.STATUS_5P_UTR); } } else if (exonStart>translationEnd) { if(reverse) { exon.setStatus(TranscriptSegment.STATUS_5P_UTR); } else { exon.setStatus(TranscriptSegment.STATUS_3P_UTR); } } else { exon.setStatus(TranscriptSegment.STATUS_CODING); } tExons.add(exon); } else { TranscriptSegment exon = new TranscriptSegment(transcript,exonStart,exonEnd); exon.setStatus(TranscriptSegment.STATUS_NCRNA); tExons.add(exon); } } transcript.<API key>(tExons); answer.addTranscript(transcript); } line=in.readLine(); } } return answer; } public void loadSequences(Transcriptome transcriptome, String mrnaFilename) throws IOException { FileInputStream fis = new FileInputStream(mrnaFilename); BufferedReader in = new BufferedReader(new InputStreamReader(fis)); String line=in.readLine(); while(line!=null) { String [] items = line.split("\t"); Transcript transcript = transcriptome.getTranscript(items[0]); if(transcript!=null) { transcript.setCDNASequence(new DNAMaskedSequence(items[1].toUpperCase())); } else { System.err.println("WARN: Transcript not found with id: "+items[0]); } line=in.readLine(); } fis.close(); } }
#include "pb_container1.h" PbContainer1::PbContainer1(const Machine &m) : edges(EDGES_SIZE), edge_count(0), f_size(0), clean_q(Q_SIZE), dirty_q(Q_SIZE), q_size(0) { proc_count = m.proc_count(); max_state_count = 0; for(int i = 0; i < proc_count; i++){ max_state_count = std::max(max_state_count,int(m.automata[i].get_states().size())); } int sz = 1; for(int i = 0; i < proc_count; i++){ sz *= max_state_count; } pcs_to_f.resize(sz); }; inline int PbContainer1::pc_index(PbConstraint *c) const{ int index = 0; int multiplier = 1; const std::vector<int> &pcs = c->pcs; for(int i = 0; i < proc_count; i++){ index += multiplier*pcs[i]; multiplier *= max_state_count; } return index; } void PbContainer1::remove_from_f(int pci, std::set<wrapper_t*,wrappercmp>::iterator it){ /* Remove from F */ wrapper_t w = **it; PbConstraint *c = w.constraint; bool dirty = c->dirty_bit; delete c; delete *it; pcs_to_f[pci].erase(it); f_size /* Remove from Q */ if(dirty){ if(dirty_q.in_queue(w.q_index) && dirty_q.at(w.q_index) == c){ dirty_q.at(w.q_index) = 0; q_size } }else{ if(dirty_q.in_queue(w.q_index) && clean_q.at(w.q_index) == c){ clean_q.at(w.q_index) = 0; q_size } } /* Remove Edges, and recursively remove descendants */ edge_t *cur_edge; edge_t *end_edge = &edges[edge_count]; if(w.edge_index >= 0){ cur_edge = &edges[w.edge_index]; assert(cur_edge->child == c); cur_edge->parent = 0; cur_edge->transition = 0; cur_edge->child = 0; }else{ cur_edge = &edges[0]; } while(cur_edge != end_edge){ assert(cur_edge < end_edge); if(cur_edge->parent == c){ remove_from_f(cur_edge->child); } cur_edge++; } } void PbContainer1::remove_from_f(PbConstraint *c){ wrapper_t w(c); int pci = pc_index(c); std::set<wrapper_t*,wrappercmp>::iterator it = pcs_to_f[pci].find(&w); assert(it != pcs_to_f[pci].end()); remove_from_f(pci,it); } inline PbContainer1::wrapper_t *PbContainer1::insert_in_f(PbConstraint *c){ wrapper_t *w = new wrapper_t(c); int pci = pc_index(c); auto pr = pcs_to_f[pci].insert(w); if(pr.second){ // Ok c was not present in F return w; }else{ wrapper_t *w2 = *pr.first; if(w2->constraint->dirty_bit && !c->dirty_bit){ // The old constraint is subsumed by c remove_from_f(pci,pr.first); #ifdef NDEBUG pcs_to_f[pci].insert(w); #else pr = pcs_to_f[pci].insert(w); assert(pr.second); #endif return w; }else{ // c is identical to or subsumed by the old constraint delete c; delete w; return 0; } } }; void PbContainer1::insert_root(Constraint *r){ assert(dynamic_cast<PbConstraint*>(r)); wrapper_t *w = insert_in_f(static_cast<PbConstraint*>(r)); if(w){ f_size++; insert_in_q(w); w->edge_index = -1; } }; void PbContainer1::insert(Constraint *p, const Machine::PTransition *t, Constraint *c){ assert(dynamic_cast<PbConstraint*>(c)); assert(dynamic_cast<PbConstraint*>(p)); wrapper_t *w = insert_in_f(static_cast<PbConstraint*>(c)); if(w){ f_size++; insert_in_q(w); add_edge(static_cast<PbConstraint*>(p),t,w); } }; void PbContainer1::insert_in_q(wrapper_t *w){ if(w->constraint->dirty_bit){ w->q_index = dirty_q.push(w->constraint); }else{ w->q_index = clean_q.push(w->constraint); } q_size++; }; void PbContainer1::add_edge(PbConstraint *p, const Machine::PTransition *t, wrapper_t *w){ assert(pointer_in_f(p)); if(edge_count >= int(edges.size())){ assert(edge_count == int(edges.size())); edges.resize(edge_count*2); } edges[edge_count].parent = p; edges[edge_count].transition = t; edges[edge_count].child = w->constraint; w->edge_index = edge_count; edge_count++; } bool PbContainer1::pointer_in_f(PbConstraint *c){ wrapper_t w(c); int pci = pc_index(c); auto it = pcs_to_f[pci].find(&w); return it != pcs_to_f[pci].end() && (*it)->constraint == c; }; Constraint *PbContainer1::pop(){ assert(q_size <= clean_q.size() + dirty_q.size()); assert(q_size >= 0); if(q_size == 0){ return 0; }else{ q_size PbConstraint *c = 0; while(c == 0 && clean_q.size() > 0){ c = clean_q.pop(); } if(!c){ while(c == 0){ c = dirty_q.pop(); } } return c; } }; Trace *PbContainer1::clear_and_get_trace(Constraint *cc){ assert(dynamic_cast<PbConstraint*>(cc)); PbConstraint *c = static_cast<PbConstraint*>(cc); assert(pointer_in_f(c)); /* Create the trace */ Trace *trace = new Trace(c); wrapper_t w(c); wrapper_t *wp = *pcs_to_f[pc_index(c)].find(&w); pcs_to_f[pc_index(c)].erase(&w); // Remove from F to avoid later deallocation delete wp; int i = edge_count-1; // Index into edges while(i >= 0){ if(edges[i].child == c){ c = edges[i].parent; assert(pointer_in_f(c)); w.constraint = c; wp = *pcs_to_f[pc_index(c)].find(&w); pcs_to_f[pc_index(c)].erase(&w); // Remove from F to avoid later deallocation delete wp; trace->push_back(*edges[i].transition,c); } i } /* Clear */ clear(); std::cout << "Trace length: " << trace->size() << "\n"; return trace; }; void PbContainer1::clear(){ for(unsigned i = 0; i < pcs_to_f.size(); i++){ for(auto it = pcs_to_f[i].begin(); it != pcs_to_f[i].end(); it++){ delete (*it)->constraint; delete *it; } pcs_to_f[i].clear(); } f_size = 0; edge_count = 0; q_size = 0; clean_q.clear(); dirty_q.clear(); }; bool PbContainer1::wrappercmp::operator()(wrapper_t * const &a, wrapper_t * const &b){ const PbConstraint &pbc_a = *a->constraint; const PbConstraint &pbc_b = *b->constraint; assert(pbc_a.pcs == pbc_b.pcs); assert(&pbc_a.common == &pbc_b.common); if(pbc_a.channels < pbc_b.channels){ return true; }else if(pbc_a.channels == pbc_b.channels){ if(pbc_a.ap_list < pbc_b.ap_list){ return true; } } return false; }
Joomla 3.7.1 = <API key>
<? # Contents/Description: Placeholder file. Not currently used on 2012-06-05 vaskoiii # todo relative score # todo full score
package com.tutorials.patterns.design; public class <API key> { public static void main(String[] args) { //The constructor SingleObject() is not visible //SingleObject singleObject = new SingleObject(); SingleObject singleObject = SingleObject.getInstance(); System.out.println(singleObject); singleObject.showMessage(); } }
package de.thecodex.logparser; import de.thecodex.logparser.parser.RawLogParser; import org.junit.Test; import java.io.<API key>; import java.io.IOException; import java.io.InputStream; import java.util.ArrayList; import java.util.List; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; /** * Tests the RawLogParser. */ public class RawLogParserTest { @Test public void <API key>() throws IOException { InputStream inputStream = this.getClass().getClassLoader().getResourceAsStream("simple.log"); assertNotNull(inputStream); List<RawLogEntry> result = parse(inputStream); assertNotNull(result); assertEquals(10, result.size()); } @Test public void <API key>() throws IOException { InputStream inputStream = this.getClass().getClassLoader().getResourceAsStream("oneException.log"); assertNotNull(inputStream); List<RawLogEntry> result = parse(inputStream); assertNotNull(result); assertEquals(5, result.size()); } @Test public void <API key> () throws IOException { InputStream inputStream = this.getClass().getClassLoader().getResourceAsStream("oneException.log"); List<RawLogEntry> result = parse(inputStream); // second entry is the exception RawLogEntry exceptionEntry = result.get(1); int length = exceptionEntry.getRawLogMessage().split("\n").length; assertEquals(29, length); } @Test public void <API key>() throws IOException { InputStream inputStream = new <API key>("Some log with some spaces and the numbers 123".getBytes()); List<RawLogEntry> result = parse(inputStream); assertNotNull(result); assertEquals(1, result.size()); assertEquals("Some log with some spaces and the numbers 123", result.get(0).getRawLogMessage()); } @Test public void <API key>() throws IOException { InputStream inputStream = this.getClass().getClassLoader().getResourceAsStream("simple.log"); int count = 0; for (RawLogEntry e : RawLogParser.createRawParser(inputStream)) { count++; } assertEquals(10, count); } @Test public void generateStacktrace () { new RuntimeException().printStackTrace(); } @Test public void <API key>() throws IOException { InputStream inputStream = this.getClass().getClassLoader().getResourceAsStream("multiYear.log"); List<RawLogEntry> result = parse(inputStream); assertNotNull(result); assertEquals(4, result.size()); } private List<RawLogEntry> parse(InputStream inputStream) throws IOException { ArrayList<RawLogEntry> result = new ArrayList<RawLogEntry>(200); for (RawLogEntry e : RawLogParser.createRawParser(inputStream)) { result.add(e); } return result; } }
# -*- coding: utf-8 -*- # Action Launcher Bot: This is a bot how can execute differents actions depends commands # For a good use of the bot please read the README file import telebot from telebot import types import time import random import datetime import token import user import os import subprocess import commands import sys from os.path import exists import StringIO import sys reload(sys) sys.setdefaultencoding('utf8') #user = [line.rstrip('\n') for line in open('user.txt','rt')] TOKEN = token.token_id bot = telebot.TeleBot(TOKEN) # Creating our bot object. bot.skip_pending=True # Skip the pending messages #LISTENER # def printUser(msg): #debug function (will print every message sent by any user to the console) print str(msg.chat.first_name) + " [" + str(msg.chat.id) + "]: " + msg.text def listener(messages): for m in messages: cid = m.chat.id if m.content_type == 'text': text = m.text printUser(m) #print the sent message to the console bot.set_update_listener(listener) #FUNCIONES PRINCIPALES DEL BOT (CON SEGURIDAD) # @bot.message_handler(commands=['temp']) def command_temp(m): temp = commands.getoutput('sudo vcgencmd measure_temp') <API key>(m, temp) @bot.message_handler(commands=['df']) def command_espacio(m): info = commands.getoutput('inxi -p') <API key>(m, info) @bot.message_handler(commands=['uptime']) def command_tiempo(m): tiempo = commands.getoutput('uptime') <API key>(m, tiempo) @bot.message_handler(commands=['free']) def command_libre(m): libre = commands.getoutput('free -m') <API key>(m, libre) @bot.message_handler(commands=['info']) def command_info(m): screenfetch = commands.getoutput('screenfetch -n') <API key>(m, u(screenfetch)) @bot.message_handler(commands=['who']) def command_who(m): who = commands.getoutput('who') <API key>(m, who) @bot.message_handler(commands=['shutdown']) def command_shutdown(m): shutdown = commands.getoutput('sudo shutdown -h now') <API key>(m, shutdown) @bot.message_handler(commands=['reboot']) def command_reboot(m): reboot = commands.getoutput('sudo reboot') <API key>(m, reboot) @bot.message_handler(commands=['repoup']) def command_repoup(m): repoup = commands.getoutput('sudo apt-get update') <API key>(m, repoup) @bot.message_handler(commands=['sysup']) def command_sysup(m): sysup = commands.getoutput('sudo apt-get upgrade -y') <API key>(m, sysup) @bot.message_handler(commands=['distup']) def command_distup(m): distup = commands.getoutput('sudo apt-get dist-upgrade -y') <API key>(m, distup) @bot.message_handler(commands=['osversion']) def command_osversion(m): osversion = commands.getoutput('lsb_release -a') <API key>(m, osversion) #Otra forma: osversion = commands.getoutput('cat /etc/os-release') @bot.message_handler(commands=['screens']) def command_screens(m): screens = commands.getoutput('screen -ls | grep "pi" ') <API key>(m, screens) @bot.message_handler(commands=['weather']) def command_weather(m): weather = commands.getoutput('inxi -w') <API key>(m, weather) def extract_arg(arg): return arg.split()[1:] @bot.message_handler(commands=['tv_on_off']) def command_tv_on_off(m): status = extract_arg(m.text) tv_on_off = commands.getoutput('sudo ./tv_on_off.sh'+status) # tv_on_off = subprocess(["sudo ./tv_on_off", status]) <API key>(m, tv_on_off) @bot.message_handler(commands=['ps_ram']) def command_ps_ram(m): ps_ram = commands.getoutput("ps aux | awk '{print $2, $4, $11}' | sort -k2r | head -n 10") <API key>(m, ps_ram) @bot.message_handler(commands=['ps_cpu']) def command_ps_cpu(m): ps_cpu = commands.getoutput('ps -Ao user,uid,comm,pid,pcpu,tty --sort=-pcpu | head -n 6') <API key>(m, ps_cpu) @bot.message_handler(commands=['<API key>']) def command_torrent_res(m): torrent_res = commands.getoutput('sudo service transmission-daemon restart') <API key>(m, torrent_res) #FUNCIONES SIN SEGURIDAD (SIMPLES) # @bot.message_handler(commands=['id']) def command_id(m): cid = m.chat.id bot.send_message(cid, cid) @bot.message_handler(commands=['ping']) def command_test(m): cid = m.chat.id bot.send_message(cid, "Pong") @bot.message_handler(commands=['help']) def command_ayuda(m): cid = m.chat.id bot.send_message(cid, "Comandos Disponibles: /help\n /ping\n /temp(admin)\n /free(admin)\n /df(admin)\n /uptime(admin)\n /info(admin)\n /who\n /repoup(admin)\n /sysup(admin)\n /distup(admin)\n /screens(admin)\n /osversion(admin)\n /weather(admin)\n /nmap_all(admin)\n /nmap_active(admin)\n /start_nginx(admin)\n /stop_nginx(admin)\n /restart_nginx(admin)\n /bot_update(admin)\n /shutdown(admin)\n /reboot(admin)\n /ps_ram(admin)\n /ps_cpu(admin)\n") #@bot.message_handler(commands=['apache']) #def command_test(m): # cid = m.chat.id # bot.send_document(cid, '/home/ubuntu/apache2.conf','rb') #MANEJO DEL SERVIDOR NGINX Y UPDATE DEL BOT VIA GIT # @bot.message_handler(commands=['start_nginx']) def command_start_nginx(m): nginx_start = commands.getoutput('sudo service nginx start') <API key>(m, nginx_start) @bot.message_handler(commands=['stop_nginx']) def command_stop_nginx(m): nginx_stop = commands.getoutput('sudo service nginx stop') <API key>(m, nginx_stop) @bot.message_handler(commands=['restart_nginx']) def <API key>(m): nginx_restart = commands.getoutput('sudo service nginx restart') <API key>(m, nginx_restart) @bot.message_handler(commands=['bot_update']) def command_bot_update(m): git_pull = commands.getoutput('git pull') <API key>(m, git_pull) @bot.message_handler(commands=['nmap_all']) def command_nmap_all(m): nmap_all = commands.getoutput('sudo nast -m -i eth0') <API key>(m, nmap_all) @bot.message_handler(commands=['nmap_active']) def command_nmap_active(m): nmap_active = commands.getoutput('sudo nast -g -i eth0') <API key>(m, nmap_active) # FUNCION PARA CHEQUEAR PERMISOS A LA HORA DE EJECUTAR COMANDOS # def <API key>(m, response): cid = m.chat.id uid = m.from_user.id if uid != user.user_id: bot.send_message(cid, "You can't use the bot") return else: bot.send_message(cid, "Triggering...") bot.send_message(cid, response) #def <API key>(m, response): # try: # cid = m.chat.id # uid = m.from_user.id # if uid != user.user_id: # bot.send_message(cid, "You can't use the bot") # return # bot.send_message(cid, response) # except Exception as e: # bot.reply_to(m, 'ops, hubo un error') # bot.send_message(cid, str(e)) #PETICIONES # print ("Bot Started") print ("Thanks for using ActionLauncherBot. Please visit us: https: bot.polling(none_stop=True) # Con esto, le decimos al bot que siga funcionando incluso si encuentra algun fallo.
#include <iostream> #include <cmath> using namespace std; int main(){ // Programa Principal // Declaracion de tipos de variables double esperanza ; double desviacion ; double abscisa ; cout << " Valor de µ : " ; cin >> esperanza ; cout << " Valor de o : " ; cin >> desviacion ; cout << " Valor de abscisa : " ; cin >> abscisa ; cout << "\n\n cout << "\n\n Gaussiana(" << abscisa << ") = " << (1/(desviacion*sqrt(2*3.14159)))*exp(-0.5 * pow(abscisa-esperanza/desviacion, 2)) << "\n" ; system("pause"); }
#include <config.h> #include "lib/global.h" #include "lib/util.h" #include "lib/event.h" #include "internal.h" static void <API key> (gpointer data) { GPtrArray *callbacks; callbacks = (GPtrArray *) data; g_ptr_array_foreach (callbacks, (GFunc) g_free, NULL); g_ptr_array_free (callbacks, TRUE); } gboolean mc_event_add (const gchar * event_group_name, const gchar * event_name, <API key> event_callback, gpointer event_init_data, GError ** mcerror) { GTree *event_group; GPtrArray *callbacks; mc_event_callback_t *cb; <API key> (mcerror, FALSE); if (mc_event_grouplist == NULL || event_group_name == NULL || event_name == NULL || event_callback == NULL) { mc_propagate_error (mcerror, 1, "%s", _("Check input data! Some of parameters are NULL!")); return FALSE; } event_group = <API key> (event_group_name, TRUE, mcerror); if (event_group == NULL) return FALSE; callbacks = <API key> (event_group, event_name, TRUE, mcerror); if (callbacks == NULL) return FALSE; cb = <API key> (callbacks, event_callback, event_init_data); if (cb == NULL) { cb = g_new0 (mc_event_callback_t, 1); cb->callback = event_callback; g_ptr_array_add (callbacks, (gpointer) cb); } cb->init_data = event_init_data; return TRUE; } void mc_event_del (const gchar * event_group_name, const gchar * event_name, <API key> event_callback, gpointer event_init_data) { GTree *event_group; GPtrArray *callbacks; mc_event_callback_t *cb; if (mc_event_grouplist == NULL || event_group_name == NULL || event_name == NULL || event_callback == NULL) return; event_group = <API key> (event_group_name, FALSE, NULL); if (event_group == NULL) return; callbacks = <API key> (event_group, event_name, FALSE, NULL); if (callbacks == NULL) return; cb = <API key> (callbacks, event_callback, event_init_data); if (cb == NULL) return; g_ptr_array_remove (callbacks, (gpointer) cb); g_free ((gpointer) cb); } void mc_event_destroy (const gchar * event_group_name, const gchar * event_name) { GTree *event_group; if (mc_event_grouplist == NULL || event_group_name == NULL || event_name == NULL) return; event_group = <API key> (event_group_name, FALSE, NULL); g_tree_remove (event_group, (gconstpointer) event_name); } void mc_event_group_del (const gchar * event_group_name) { if (mc_event_grouplist != NULL && event_group_name != NULL) g_tree_remove (mc_event_grouplist, (gconstpointer) event_group_name); } GTree * <API key> (const gchar * event_group_name, gboolean create_new, GError ** mcerror) { GTree *event_group; <API key> (mcerror, FALSE); event_group = (GTree *) g_tree_lookup (mc_event_grouplist, (gconstpointer) event_group_name); if (event_group == NULL && create_new) { event_group = g_tree_new_full ((GCompareDataFunc) g_ascii_strcasecmp, NULL, (GDestroyNotify) g_free, (GDestroyNotify) <API key>); if (event_group == NULL) { mc_propagate_error (mcerror, 1, _("Unable to create group '%s' for events!"), event_group_name); return NULL; } g_tree_insert (mc_event_grouplist, g_strdup (event_group_name), (gpointer) event_group); } return event_group; } GPtrArray * <API key> (GTree * event_group, const gchar * event_name, gboolean create_new, GError ** mcerror) { GPtrArray *callbacks; <API key> (mcerror, FALSE); callbacks = (GPtrArray *) g_tree_lookup (event_group, (gconstpointer) event_name); if (callbacks == NULL && create_new) { callbacks = g_ptr_array_new (); if (callbacks == NULL) { mc_propagate_error (mcerror, 1, _("Unable to create event '%s'!"), event_name); return NULL; } g_tree_insert (event_group, g_strdup (event_name), (gpointer) callbacks); } return callbacks; } mc_event_callback_t * <API key> (GPtrArray * callbacks, <API key> event_callback, gpointer event_init_data) { guint array_index; for (array_index = 0; array_index < callbacks->len; array_index++) { mc_event_callback_t *cb = g_ptr_array_index (callbacks, array_index); if (cb->callback == event_callback && cb->init_data == event_init_data) return cb; } return NULL; }
package org.halvors.nuclearphysics.common.type; import net.minecraft.client.particle.Particle; import net.minecraft.world.World; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; import org.halvors.nuclearphysics.client.render.particle.ParticleRadioactive; import org.halvors.nuclearphysics.common.NuclearPhysics; public enum EnumParticleType { RADIOACTIVE; EnumParticleType() { } @SideOnly(Side.CLIENT) public Class<? extends Particle> getParticleClass() { if (this == EnumParticleType.RADIOACTIVE) { return ParticleRadioactive.class; } return null; } @SideOnly(Side.CLIENT) public Particle <API key>(World world, double xCoord, double yCoord, double zCoord, double xSpeed, double ySpeed, double zSpeed) { Class<? extends Particle> particleClass = getParticleClass(); if (particleClass != null) { try { return particleClass.<API key>(World.class, double.class, double.class, double.class, double.class, double.class, double.class).newInstance(world, xCoord, yCoord, zCoord, xSpeed, ySpeed, zSpeed); } catch (Exception e) { NuclearPhysics.getLogger().error("Unable to indirectly create particle."); e.printStackTrace(); } } return null; } }
#!/usr/bin/env python "This module contains an object that represents an action." class Action(object): """This object represents an action. Use :class:`Action` methods to get instances of this class. Attributes: name (int): target (str): text (str): markup (str): payload (dict): Args: name (int): target (str): text (str): Keyword Args: markup (Optional[dict]): payload (Optional[dict]): """ def __init__(self, name, target, text, markup=None, payload=None): # Required self.name = name self.target = target self.text = text # Optionals self.markup = markup self.payload = payload def __repr__(self): from pprint import pformat return pformat(vars(self), indent=4, width=1)
{% extends <API key> %} {% load url from future %} {% load i18n %} {% load nav_helpers %} {% block main %} {% list_nav '' '' %} {% if not user.is_superuser or not user.is_list_owner %} <div class="mm_subHeader" > <h1>{% trans "No Preferences Available" %}</h1> </div> <p>{% trans 'You are not the owner for this list' %}</p> {% else %} <h1>{% trans 'Member preferences' %}</h1> <form class="well" action="" method="post" > <legend>{% trans 'Preferences for Member' %} {{ mm_member.email }}</legend> {% csrf_token %} <table class="table table-bordered table-striped" border="2"> <thead> <tr> <th>{% trans 'Preference' %}</th> <th>{% trans 'Setting' %} </th> </tr> </thead > <tr> <td> <p>{% trans 'Mail Delivery:' %} </p> </p> [<span class="more_info"><a href="#" target="_blank">More info</a><span>{{ settingsform.delivery_status.help_text }} </span></span>] </p> </td> <td> {{settingsform.delivery_status }} </td> </tr> <tr> <td> <p>{% trans 'Mode of Delivery:' %}</p> <p> [<span class="more_info"><a href="#" target="_blank">More info</a><span>{{ settingsform.delivery_mode.help_text }} </span></span>] </p> </td> <td> {{settingsform.delivery_mode }} </td> </tr> <tr> <td> <p>{% trans 'Receive own posts to the list?' %}</p> <p> [<span class="more_info"><a href="#" target="_blank">More info</a><span>{{ settingsform.<API key>.help_text }} </span></span>] </p> </td> <td> {{settingsform.<API key> }} </td> </tr> <tr> <td> <p>{% trans 'Receive acknowledgement mails?' %}</p> </p> [<span class="more_info"><a href="#" target="_blank">More info</a><span>{{ settingsform.acknowledge_posts.help_text }} </span></span>] </p> </td> <td> {{settingsform.acknowledge_posts }} </td> </tr> <tr> <td> <p>{% trans 'Conceal address from the subscriber list?' %}</p> </p> [<span class="more_info"><a href="#" target="_blank">More info</a><span>{{ settingsform.hide_address.help_text }} </span></span>] </p> </td> <td> {{settingsform.hide_address }} </td> </tr> <tr> <td> <p>{% trans 'Avoid duplicate copies of messages? ' %}</p> </p> [<span class="more_info"><a href="#" target="_blank">More info</a><span>{{ settingsform.receive_list_copy.help_text }} </span></span>] </p> </td> <td> {{settingsform.receive_list_copy }} </td> </tr> </table> <center><button class="btn btn-success" type="submit">{% trans "Save" %}</button></center> </form> {% endif %} {% endblock main %}
// Round Math.round(2.4); // X power of Y Math.pow(5, 2); // Round up Math.ceil(2.4); // Round down Math.floor(2.4); // Random number Math.random();
#!/bin/bash #usage #rm_file [id_filename] SCRIPTNAME=$(basename $0 .sh)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <HTML><HEAD><TITLE>Links</TITLE> <META http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </HEAD> <BODY> <H3 ALIGN="center">Matches for Zohaib <API key> shabir saeedi (832) MTS-34-A.cpp & Ayesha_Sarwar_name.cpp</H3> <H1 align="center">14.4%</H1> <CENTER> <A HREF="index.html#matches" TARGET="_top">INDEX</A> - <A HREF="help-en.html" TARGET="_top">HELP</A></CENTER> </BODY> </HTML>
<!DOCTYPE HTML PUBLIC "- <!--NewPage <HTML> <HEAD> <TITLE> Uses of Class org.apache.poi.hwmf.record.HwmfDraw (POI API Documentation) </TITLE> <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../stylesheet.css" TITLE="Style"> <SCRIPT type="text/javascript"> function windowTitle() { if (location.href.indexOf('is-external=true') == -1) { parent.document.title="Uses of Class org.apache.poi.hwmf.record.HwmfDraw (POI API Documentation)"; } } </SCRIPT> <NOSCRIPT> </NOSCRIPT> </HEAD> <BODY BGCOLOR="white" onload="windowTitle();"> <HR> <A NAME="navbar_top"></A> <A HREF="#skip-navbar_top" title="Skip navigation links"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="navbar_top_firstrow"></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../org/apache/poi/hwmf/record/HwmfDraw.html" title="class in org.apache.poi.hwmf.record"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> &nbsp;PREV&nbsp; &nbsp;NEXT</FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../../index.html?org/apache/poi/hwmf/record/\class-useHwmfDraw.html" target="_top"><B>FRAMES</B></A> &nbsp; &nbsp;<A HREF="HwmfDraw.html" target="_top"><B>NO FRAMES</B></A> &nbsp; &nbsp;<SCRIPT type="text/javascript"> <! if(window==top) { document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } </SCRIPT> <NOSCRIPT> <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_top"></A> <HR> <CENTER> <H2> <B>Uses of Class<br>org.apache.poi.hwmf.record.HwmfDraw</B></H2> </CENTER> No usage of org.apache.poi.hwmf.record.HwmfDraw <P> <HR> <A NAME="navbar_bottom"></A> <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> <TR> <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A NAME="<API key>"></A> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../org/apache/poi/hwmf/record/HwmfDraw.html" title="class in org.apache.poi.hwmf.record"><FONT CLASS="NavBarFont1"><B>Class</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD> </TR> </TABLE> </TD> <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> </EM> </TD> </TR> <TR> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> &nbsp;PREV&nbsp; &nbsp;NEXT</FONT></TD> <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../../index.html?org/apache/poi/hwmf/record/\class-useHwmfDraw.html" target="_top"><B>FRAMES</B></A> &nbsp; &nbsp;<A HREF="HwmfDraw.html" target="_top"><B>NO FRAMES</B></A> &nbsp; &nbsp;<SCRIPT type="text/javascript"> <! if(window==top) { document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } </SCRIPT> <NOSCRIPT> <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> </TABLE> <A NAME="skip-navbar_bottom"></A> <HR> <i>Copyright 2016 The Apache Software Foundation or its licensors, as applicable.</i> </BODY> </HTML>
<?php if($error == 0) echo '<p>Tema instalado correctamente</p>'; ?>
<!DOCTYPE HTML PUBLIC "- <!-- NewPage --> <html lang="de"> <head> <!-- Generated by javadoc (version 1.7.0_05-icedtea) on Mon Jun 25 09:34:23 CEST 2012 --> <title>CustomerInfosFrame.ExtensionFilter</title> <meta name="date" content="2012-06-25"> <link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style"> </head> <body> <script type="text/javascript"><! if (location.href.indexOf('is-external=true') == -1) { parent.document.title="CustomerInfosFrame.ExtensionFilter"; } </script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> <div class="topNav"><a name="navbar_top"> </a><a href="#skip-navbar_top" title="Skip navigation links"></a><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 class="navBarCell1Rev">Class</li> <li><a href="class-use/CustomerInfosFrame.ExtensionFilter.html">Use</a></li> <li><a href="package-tree.html">Tree</a></li> <li><a href="../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../index-files/index-1.html">Index</a></li> <li><a href="../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li><a href="../../../userinterface/gui/metaInfoFrame/CustomerInfosFrame.html" title="class in userinterface.gui.metaInfoFrame"><span class="strong">Prev Class</span></a></li> <li><a href="../../../userinterface/gui/metaInfoFrame/CustomTable.html" title="class in userinterface.gui.metaInfoFrame"><span class="strong">Next Class</span></a></li> </ul> <ul class="navList"> <li><a href="../../../index.html?userinterface/gui/metaInfoFrame/CustomerInfosFrame.ExtensionFilter.html" target="_top">Frames</a></li> <li><a href="CustomerInfosFrame.ExtensionFilter.html" target="_top">No Frames</a></li> </ul> <ul class="navList" id="<API key>"> <li><a href="../../../allclasses-noframe.html">All Classes</a></li> </ul> <div> <script type="text/javascript"><! allClassesLink = document.getElementById("<API key>"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } </script> </div> <div> <ul class="subNavList"> <li>Summary:&nbsp;</li> <li>Nested&nbsp;|&nbsp;</li> <li>Field&nbsp;|&nbsp;</li> <li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li> <li><a href="#method_summary">Method</a></li> </ul> <ul class="subNavList"> <li>Detail:&nbsp;</li> <li>Field&nbsp;|&nbsp;</li> <li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li> <li><a href="#method_detail">Method</a></li> </ul> </div> <a name="skip-navbar_top"> </a></div> <div class="header"> <div class="subTitle">userinterface.gui.metaInfoFrame</div> <h2 title="Class CustomerInfosFrame.ExtensionFilter" class="title">Class CustomerInfosFrame.ExtensionFilter</h2> </div> <div class="contentContainer"> <ul class="inheritance"> <li>java.lang.Object</li> <li> <ul class="inheritance"> <li>javax.swing.filechooser.FileFilter</li> <li> <ul class="inheritance"> <li>userinterface.gui.metaInfoFrame.CustomerInfosFrame.ExtensionFilter</li> </ul> </li> </ul> </li> </ul> <div class="description"> <ul class="blockList"> <li class="blockList"> <dl> <dt>Enclosing class:</dt> <dd><a href="../../../userinterface/gui/metaInfoFrame/CustomerInfosFrame.html" title="class in userinterface.gui.metaInfoFrame">CustomerInfosFrame</a></dd> </dl> <hr> <br> <pre>public class <span class="strong">CustomerInfosFrame.ExtensionFilter</span> extends javax.swing.filechooser.FileFilter</pre> <div class="block">Class to provide a extension filter for Filechooser</div> </li> </ul> </div> <div class="summary"> <ul class="blockList"> <li class="blockList"> <ul class="blockList"> <li class="blockList"><a name="constructor_summary"> </a> <h3>Constructor Summary</h3> <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> <caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Constructor and Description</th> </tr> <tr class="altColor"> <td class="colOne"><code><strong><a href="../../../userinterface/gui/metaInfoFrame/CustomerInfosFrame.ExtensionFilter.html#CustomerInfosFrame.ExtensionFilter(java.lang.String, java.lang.String)">CustomerInfosFrame.ExtensionFilter</a></strong>(java.lang.String&nbsp;description, java.lang.String&nbsp;extension)</code>&nbsp;</td> </tr> <tr class="rowColor"> <td class="colOne"><code><strong><a href="../../../userinterface/gui/metaInfoFrame/CustomerInfosFrame.ExtensionFilter.html#CustomerInfosFrame.ExtensionFilter(java.lang.String, java.lang.String[])">CustomerInfosFrame.ExtensionFilter</a></strong>(java.lang.String&nbsp;description, java.lang.String[]&nbsp;extensions)</code>&nbsp;</td> </tr> </table> </li> </ul> <ul class="blockList"> <li class="blockList"><a name="method_summary"> </a> <h3>Method Summary</h3> <table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> <caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tr class="altColor"> <td class="colFirst"><code>boolean</code></td> <td class="colLast"><code><strong><a href="../../../userinterface/gui/metaInfoFrame/CustomerInfosFrame.ExtensionFilter.html#accept(java.io.File)">accept</a></strong>(java.io.File&nbsp;file)</code>&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><code>java.lang.String</code></td> <td class="colLast"><code><strong><a href="../../../userinterface/gui/metaInfoFrame/CustomerInfosFrame.ExtensionFilter.html#getDescription()">getDescription</a></strong>()</code>&nbsp;</td> </tr> </table> <ul class="blockList"> <li class="blockList"><a name="<API key>.lang.Object"> </a> <h3>Methods inherited from class&nbsp;java.lang.Object</h3> <code>equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li> </ul> </li> </ul> </li> </ul> </div> <div class="details"> <ul class="blockList"> <li class="blockList"> <ul class="blockList"> <li class="blockList"><a name="constructor_detail"> </a> <h3>Constructor Detail</h3> <a name="CustomerInfosFrame.ExtensionFilter(java.lang.String, java.lang.String)"> </a> <ul class="blockList"> <li class="blockList"> <h4>CustomerInfosFrame.ExtensionFilter</h4> <pre>public&nbsp;CustomerInfosFrame.ExtensionFilter(java.lang.String&nbsp;description, java.lang.String&nbsp;extension)</pre> </li> </ul> <a name="CustomerInfosFrame.ExtensionFilter(java.lang.String, java.lang.String[])"> </a> <ul class="blockListLast"> <li class="blockList"> <h4>CustomerInfosFrame.ExtensionFilter</h4> <pre>public&nbsp;CustomerInfosFrame.ExtensionFilter(java.lang.String&nbsp;description, java.lang.String[]&nbsp;extensions)</pre> </li> </ul> </li> </ul> <ul class="blockList"> <li class="blockList"><a name="method_detail"> </a> <h3>Method Detail</h3> <a name="accept(java.io.File)"> </a> <ul class="blockList"> <li class="blockList"> <h4>accept</h4> <pre>public&nbsp;boolean&nbsp;accept(java.io.File&nbsp;file)</pre> <dl> <dt><strong>Specified by:</strong></dt> <dd><code>accept</code>&nbsp;in class&nbsp;<code>javax.swing.filechooser.FileFilter</code></dd> </dl> </li> </ul> <a name="getDescription()"> </a> <ul class="blockListLast"> <li class="blockList"> <h4>getDescription</h4> <pre>public&nbsp;java.lang.String&nbsp;getDescription()</pre> <dl> <dt><strong>Specified by:</strong></dt> <dd><code>getDescription</code>&nbsp;in class&nbsp;<code>javax.swing.filechooser.FileFilter</code></dd> </dl> </li> </ul> </li> </ul> </li> </ul> </div> </div> <div class="bottomNav"><a name="navbar_bottom"> </a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="<API key>"> </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 class="navBarCell1Rev">Class</li> <li><a href="class-use/CustomerInfosFrame.ExtensionFilter.html">Use</a></li> <li><a href="package-tree.html">Tree</a></li> <li><a href="../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../index-files/index-1.html">Index</a></li> <li><a href="../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li><a href="../../../userinterface/gui/metaInfoFrame/CustomerInfosFrame.html" title="class in userinterface.gui.metaInfoFrame"><span class="strong">Prev Class</span></a></li> <li><a href="../../../userinterface/gui/metaInfoFrame/CustomTable.html" title="class in userinterface.gui.metaInfoFrame"><span class="strong">Next Class</span></a></li> </ul> <ul class="navList"> <li><a href="../../../index.html?userinterface/gui/metaInfoFrame/CustomerInfosFrame.ExtensionFilter.html" target="_top">Frames</a></li> <li><a href="CustomerInfosFrame.ExtensionFilter.html" target="_top">No Frames</a></li> </ul> <ul class="navList" id="<API key>"> <li><a href="../../../allclasses-noframe.html">All Classes</a></li> </ul> <div> <script type="text/javascript"><! allClassesLink = document.getElementById("<API key>"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } </script> </div> <div> <ul class="subNavList"> <li>Summary:&nbsp;</li> <li>Nested&nbsp;|&nbsp;</li> <li>Field&nbsp;|&nbsp;</li> <li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li> <li><a href="#method_summary">Method</a></li> </ul> <ul class="subNavList"> <li>Detail:&nbsp;</li> <li>Field&nbsp;|&nbsp;</li> <li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li> <li><a href="#method_detail">Method</a></li> </ul> </div> <a name="skip-navbar_bottom"> </a></div> </body> </html>
# <API key>: true FactoryGirl.define do factory :user do sequence(:email) { |n| "stuff#{n}@example.com" } password 'something1212' end end
/** * Contains classes for the Tabs. * * @author Veminal * @version 1.0 */ package net.veminal.pdf.ui.tab;
package de.firebirdberlin.preference; import android.content.Context; import android.content.pm.PackageInfo; import android.content.pm.PackageManager.<API key>; import android.util.AttributeSet; import androidx.preference.Preference; public class VersionPreference extends Preference { public VersionPreference(Context context, AttributeSet attrs) { super(context, attrs); try { PackageInfo pInfo = context.getPackageManager().getPackageInfo(context.getPackageName(), 0); String version = pInfo.versionName; CharSequence title = getTitle(); if ( title != null ) { setTitle(title.toString() + " v" + version); } else { setTitle(pInfo.packageName + " v" + version); } } catch (<API key> e){ return; } } }
package spssoftware.opencare.repository; import org.jooq.DSLContext; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; import spssoftware.generated.tables.records.OrganisationRecord; import spssoftware.opencare.domain.Organisation; import static spssoftware.generated.tables.Organisation.ORGANISATION; @Component public class <API key> extends AbstractRepository<Organisation, OrganisationRecord> { @Autowired public <API key>(DSLContext connection) { this.TABLE = ORGANISATION; this.ID = ORGANISATION.ORGANISATION_ID; this.objectClass = Organisation.class; this.connection = connection; } }
// Global default vars var sampleEntity = "cos(x) * cos(y)"; var sampleEntityType = "entity-bw"; var mvMatrix = mat4.create(); var pMatrix = mat4.create(); var shaderProgram; var <API key>; var <API key>; var gl; // Init functions function initWebGL(canvas, entity) { var canvas = document.getElementById(canvas); initGL(canvas); initShaders(); initBuffers(); gl.clearColor(0.0, 0.0, 0.0, 1.0); gl.enable(gl.DEPTH_TEST); drawEntity(entity, "entity-bw", canvas); } function initGL(canvas) { try { gl = canvas.getContext("experimental-webgl"); gl.viewportWidth = canvas.width; gl.viewportHeight = canvas.height; } catch (e) { } if (!gl) { alert("Could not initialise WebGL, sorry :-("); } } function initBuffers() { <API key> = gl.createBuffer(); gl.bindBuffer(gl.ARRAY_BUFFER, <API key>); var vertices = [ 0.0, 1.0, 0.0, -1.0, -1.0, 0.0, 1.0, -1.0, 0.0 ]; gl.bufferData(gl.ARRAY_BUFFER, new Float32Array(vertices), gl.STATIC_DRAW); <API key>.itemSize = 3; <API key>.numItems = 3; <API key> = gl.createBuffer(); gl.bindBuffer(gl.ARRAY_BUFFER, <API key>); vertices = [ 1.0, 1.0, 0.0, -1.0, 1.0, 0.0, 1.0, -1.0, 0.0, -1.0, -1.0, 0.0 ]; gl.bufferData(gl.ARRAY_BUFFER, new Float32Array(vertices), gl.STATIC_DRAW); <API key>.itemSize = 3; <API key>.numItems = 4; } function initShaders() { var fragmentShader = getShader(gl, "shader-fs"); var vertexShader = getShader(gl, "shader-vs"); shaderProgram = gl.createProgram(); gl.attachShader(shaderProgram, vertexShader); gl.attachShader(shaderProgram, fragmentShader); gl.linkProgram(shaderProgram); if (!gl.getProgramParameter(shaderProgram, gl.LINK_STATUS)) { alert("Could not initialise shaders"); } gl.useProgram(shaderProgram); shaderProgram.<API key> = gl.getAttribLocation(shaderProgram, "aVertexPosition"); gl.<API key>(shaderProgram.<API key>); shaderProgram.pMatrixUniform = gl.getUniformLocation(shaderProgram, "uPMatrix"); shaderProgram.mvMatrixUniform = gl.getUniformLocation(shaderProgram, "uMVMatrix"); } function setMatrixUniforms() { gl.uniformMatrix4fv(shaderProgram.pMatrixUniform, false, pMatrix); gl.uniformMatrix4fv(shaderProgram.mvMatrixUniform, false, mvMatrix); } function getShader(gl, id) { var shaderScript = document.getElementById(id); if (!shaderScript) { return null; } var str = ""; var k = shaderScript.firstChild; while (k) { if (k.nodeType == 3) { str += k.textContent; } k = k.nextSibling; } var shader; if (shaderScript.type == "x-shader/x-fragment") { shader = gl.createShader(gl.FRAGMENT_SHADER); } else if (shaderScript.type == "x-shader/x-vertex") { shader = gl.createShader(gl.VERTEX_SHADER); } else { return null; } gl.shaderSource(shader, str); gl.compileShader(shader); if (!gl.getShaderParameter(shader, gl.COMPILE_STATUS)) { alert(gl.getShaderInfoLog(shader)); return null; } return shader; }
package eu.geopaparazzi.map.layers; import android.content.SharedPreferences; import android.os.Build; import android.preference.PreferenceManager; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import org.oscim.layers.Layer; import org.oscim.layers.tile.buildings.BuildingLayer; import org.oscim.layers.tile.vector.labeling.LabelLayer; import org.oscim.map.Layers; import java.io.File; import java.util.ArrayList; import java.util.Iterator; import java.util.LinkedHashMap; import java.util.List; import java.util.stream.Collectors; import eu.geopaparazzi.library.GPApplication; import eu.geopaparazzi.library.core.ResourcesManager; import eu.geopaparazzi.library.database.GPLog; import eu.geopaparazzi.library.profiles.Profile; import eu.geopaparazzi.library.profiles.ProfilesHandler; import eu.geopaparazzi.library.profiles.objects.ProfileBasemaps; import eu.geopaparazzi.library.profiles.objects.<API key>; import eu.geopaparazzi.library.util.FileUtilities; import eu.geopaparazzi.library.util.IActivitySupporter; import eu.geopaparazzi.map.GPMapThemes; import eu.geopaparazzi.map.GPMapView; import eu.geopaparazzi.map.features.editing.EditManager; import eu.geopaparazzi.map.layers.interfaces.IEditableLayer; import eu.geopaparazzi.map.layers.interfaces.IGpLayer; import eu.geopaparazzi.map.layers.interfaces.ISystemLayer; import eu.geopaparazzi.map.layers.interfaces.IVectorDbLayer; import eu.geopaparazzi.map.layers.interfaces.<API key>; import eu.geopaparazzi.map.layers.interfaces.<API key>; import eu.geopaparazzi.map.layers.systemlayers.BookmarkLayer; import eu.geopaparazzi.map.layers.systemlayers.CurrentGpsLogLayer; import eu.geopaparazzi.map.layers.systemlayers.GPMapScaleBarLayer; import eu.geopaparazzi.map.layers.systemlayers.GpsLogsLayer; import eu.geopaparazzi.map.layers.systemlayers.GpsPositionLayer; import eu.geopaparazzi.map.layers.systemlayers.<API key>; import eu.geopaparazzi.map.layers.systemlayers.ImagesLayer; import eu.geopaparazzi.map.layers.systemlayers.NotesLayer; import eu.geopaparazzi.map.layers.userlayers.<API key>; import eu.geopaparazzi.map.layers.userlayers.<API key>; import eu.geopaparazzi.map.layers.userlayers.<API key>; import eu.geopaparazzi.map.layers.userlayers.MBTilesLayer; import eu.geopaparazzi.map.layers.userlayers.MapsforgeLayer; import eu.geopaparazzi.map.layers.userlayers.<API key>; import eu.geopaparazzi.map.layers.userlayers.<API key>; import eu.geopaparazzi.map.layers.utils.EOnlineTileSources; import eu.geopaparazzi.map.utils.MapUtilities; @SuppressWarnings("ALL") public enum LayerManager { INSTANCE; public static final String LAYERS = "layers"; public static final String <API key> = "<API key>"; public static final String <API key> = "<API key>"; public static final String SAME_NAME_EXISTS = "A layer with the same name already exists."; private List<JSONObject> <API key> = new ArrayList<>(); private List<JSONObject> <API key> = new ArrayList<>(); /** * Initialize the layers from preferences */ public void init() throws Exception { GPApplication context = GPApplication.getInstance(); SharedPreferences preferences = PreferenceManager.<API key>(context); String loadedUserMapsJson = preferences.getString(<API key>, "{}"); JSONObject root = new JSONObject(loadedUserMapsJson); if (root.has(LAYERS)) { JSONArray layersArray = root.getJSONArray(LAYERS); int length = layersArray.length(); for (int i = 0; i < length; i++) { JSONObject jsonObject = layersArray.getJSONObject(i); <API key>.add(jsonObject); } } String <API key> = preferences.getString(<API key>, "{}"); root = new JSONObject(<API key>); if (root.has(LAYERS)) { JSONArray layersArray = root.getJSONArray(LAYERS); int length = layersArray.length(); for (int i = 0; i < length; i++) { JSONObject jsonObject = layersArray.getJSONObject(i); <API key>.add(jsonObject); } } else { // define system layers JSONObject jo = new JSONObject(); jo.put(IGpLayer.LAYERTYPE_TAG, GpsLogsLayer.class.getCanonicalName()); jo.put(IGpLayer.LAYERNAME_TAG, GpsLogsLayer.getName(context)); jo.put(IGpLayer.LAYERENABLED_TAG, true); <API key>.add(jo); jo = new JSONObject(); jo.put(IGpLayer.LAYERTYPE_TAG, CurrentGpsLogLayer.class.getCanonicalName()); jo.put(IGpLayer.LAYERNAME_TAG, CurrentGpsLogLayer.getName(context)); jo.put(IGpLayer.LAYERENABLED_TAG, true); <API key>.add(jo); jo = new JSONObject(); jo.put(IGpLayer.LAYERTYPE_TAG, BookmarkLayer.class.getCanonicalName()); jo.put(IGpLayer.LAYERNAME_TAG, BookmarkLayer.getName(context)); jo.put(IGpLayer.LAYERENABLED_TAG, true); <API key>.add(jo); jo = new JSONObject(); jo.put(IGpLayer.LAYERTYPE_TAG, ImagesLayer.class.getCanonicalName()); jo.put(IGpLayer.LAYERNAME_TAG, ImagesLayer.getName(context)); jo.put(IGpLayer.LAYERENABLED_TAG, true); <API key>.add(jo); jo = new JSONObject(); jo.put(IGpLayer.LAYERTYPE_TAG, NotesLayer.class.getCanonicalName()); jo.put(IGpLayer.LAYERNAME_TAG, NotesLayer.getName(context)); jo.put(IGpLayer.LAYERENABLED_TAG, true); <API key>.add(jo); jo = new JSONObject(); jo.put(IGpLayer.LAYERTYPE_TAG, GpsPositionLayer.class.getCanonicalName()); jo.put(IGpLayer.LAYERNAME_TAG, GpsPositionLayer.getName(context)); jo.put(IGpLayer.LAYERENABLED_TAG, true); <API key>.add(jo); jo = new JSONObject(); jo.put(IGpLayer.LAYERTYPE_TAG, <API key>.class.getCanonicalName()); jo.put(IGpLayer.LAYERNAME_TAG, <API key>.getName(context)); jo.put(IGpLayer.LAYERENABLED_TAG, false); <API key>.add(jo); jo = new JSONObject(); jo.put(IGpLayer.LAYERTYPE_TAG, GPMapScaleBarLayer.class.getCanonicalName()); jo.put(IGpLayer.LAYERNAME_TAG, GPMapScaleBarLayer.getName(context)); jo.put(IGpLayer.LAYERENABLED_TAG, true); <API key>.add(jo); } } public void createGroups(GPMapView mapView) { Layers layers = mapView.map().layers(); layers.addGroup(LayerGroups.GROUP_MAPLAYERS.getGroupId()); layers.addGroup(LayerGroups.GROUP_PROJECTLAYERS.getGroupId()); layers.addGroup(LayerGroups.GROUP_3D.getGroupId()); layers.addGroup(LayerGroups.GROUP_SYSTEM_TOP.getGroupId()); } public List<JSONObject> <API key>() { return <API key>; } public List<JSONObject> <API key>() { return <API key>; } /** * Load all the layers in the map. * * @param mapView the map view. * @param activitySupporter * @throws JSONException */ public void loadInMap(GPMapView mapView, IActivitySupporter activitySupporter) throws Exception { //-- Remove all the layers From Map: if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) { mapView.map().layers().removeIf(layer -> layer instanceof IGpLayer || layer instanceof BuildingLayer || layer instanceof LabelLayer); } else { // TODO remove when minsdk gets 24 Layers layers = mapView.map().layers(); Iterator<Layer> iterator = layers.iterator(); while (iterator.hasNext()) { Layer layer = iterator.next(); if (layer instanceof IGpLayer || layer instanceof BuildingLayer || layer instanceof LabelLayer) { iterator.remove(); } } } if (ProfilesHandler.INSTANCE.ProfileChanged) { ProfilesHandler.INSTANCE.ProfileChanged = false; // reset it // Remove all the layers From LayerManager List: <API key>.clear(); //-- Add all the layers from the profile -- Profile activeProfile = ProfilesHandler.INSTANCE.getActiveProfile(); if (activeProfile != null) { GPApplication gpApplication = GPApplication.getInstance(); ResourcesManager resourcesManager = ResourcesManager.getInstance(gpApplication); File sdcardDir = resourcesManager.getMainStorageDir(); for (ProfileBasemaps currentBasemap : activeProfile.basemapsList) { String filePath = currentBasemap.getRelativePath(); File basemapFile = new File(sdcardDir, filePath); ELayerTypes layerType = ELayerTypes.fromFileExt(basemapFile.getName()); if (layerType == ELayerTypes.MAPURL) { int index = <API key>(basemapFile, null); } else { int index = addMapFile(basemapFile, null); // adds to local list (and map?) } } List<<API key>> spatialiteList = activeProfile.spatialiteList; for (<API key> currentSpatialite : spatialiteList) { String filePath = currentSpatialite.getRelativePath(); File spatialite = new File(sdcardDir, filePath); if (currentSpatialite.visibleLayerNames != null) { for (String tableName : currentSpatialite.visibleLayerNames) { int index = addSpatialiteTable(spatialite, tableName, null); } } } } } if (<API key>.size() == 0) { EOnlineTileSources source = EOnlineTileSources.<API key>; LayerManager.INSTANCE.<API key>(source.getName(), source.getUrl(), source.getTilePath(), source.getMaxZoom(), 1f, null); } loadMapLayers(mapView, <API key>); //-- Add system layers -- if (<API key>.size() > 0) { for (JSONObject layerDefinition : <API key>) { String layerClass = layerDefinition.getString(IGpLayer.LAYERTYPE_TAG); boolean isEnabled = true; boolean hasEnabled = layerDefinition.has(IGpLayer.LAYERENABLED_TAG); if (hasEnabled) isEnabled = layerDefinition.getBoolean(IGpLayer.LAYERENABLED_TAG); if (layerClass.equals(GpsLogsLayer.class.getCanonicalName())) { GpsLogsLayer sysLayer = new GpsLogsLayer(mapView); sysLayer.load(); sysLayer.setEnabled(isEnabled); } else if (layerClass.equals(CurrentGpsLogLayer.class.getCanonicalName())) { CurrentGpsLogLayer sysLayer = new CurrentGpsLogLayer(mapView); sysLayer.load(); sysLayer.setEnabled(isEnabled); } else if (layerClass.equals(BookmarkLayer.class.getCanonicalName())) { BookmarkLayer sysLayer = new BookmarkLayer(mapView); sysLayer.load(); sysLayer.setEnabled(isEnabled); } else if (layerClass.equals(ImagesLayer.class.getCanonicalName())) { ImagesLayer sysLayer = new ImagesLayer(mapView); sysLayer.load(); sysLayer.setEnabled(isEnabled); } else if (layerClass.equals(NotesLayer.class.getCanonicalName())) { NotesLayer sysLayer = new NotesLayer(mapView, activitySupporter); sysLayer.load(); sysLayer.setEnabled(isEnabled); } else if (layerClass.equals(GpsPositionLayer.class.getCanonicalName())) { GpsPositionLayer sysLayer = new GpsPositionLayer(mapView); sysLayer.load(); sysLayer.setEnabled(isEnabled); } else if (layerClass.equals(<API key>.class.getCanonicalName())) { <API key> sysLayer = new <API key>(mapView); sysLayer.load(); sysLayer.setEnabled(isEnabled); } else if (layerClass.equals(GPMapScaleBarLayer.class.getCanonicalName())) { GPMapScaleBarLayer sysLayer = new GPMapScaleBarLayer(mapView); sysLayer.load(); sysLayer.setEnabled(isEnabled); } } } else { loadSystemLayers(mapView, activitySupporter, <API key>); } } public void loadMapLayers(GPMapView mapView, List<JSONObject> <API key>) throws Exception { EditManager.INSTANCE.setEditLayer(null); for (JSONObject layerDefinition : <API key>) { try { String layerClass = layerDefinition.getString(IGpLayer.LAYERTYPE_TAG); String name = layerDefinition.getString(IGpLayer.LAYERNAME_TAG); boolean isEnabled = true; boolean hasEnabled = layerDefinition.has(IGpLayer.LAYERENABLED_TAG); if (hasEnabled) { isEnabled = layerDefinition.getBoolean(IGpLayer.LAYERENABLED_TAG); if (!isEnabled) { continue; } } ELayerTypes layerType = ELayerTypes.fromType(layerClass); if (layerType != null) { switch (layerType) { case MAPSFORGE: { String mapPath = layerDefinition.getString(IGpLayer.LAYERPATH_TAG); String[] mapPaths = mapPath.split(IGpLayer.PATHS_DELIMITER); boolean doLabels = true; if (layerDefinition.has(IGpLayer.LAYERDOLABELS_TAG)) doLabels = layerDefinition.getBoolean(IGpLayer.LAYERDOLABELS_TAG); boolean do3d = true; if (layerDefinition.has(IGpLayer.LAYERDO3D_TAG)) do3d = layerDefinition.getBoolean(IGpLayer.LAYERDO3D_TAG); MapsforgeLayer mapsforgeLayer = new MapsforgeLayer(mapView, name, do3d, doLabels, mapPaths); mapsforgeLayer.load(); mapsforgeLayer.setEnabled(isEnabled); break; } case MBTILES: { String path = layerDefinition.getString(IGpLayer.LAYERPATH_TAG); float alpha = 1f; if (layerDefinition.has(IGpLayer.LAYERALPHA_TAG)) alpha = (float) layerDefinition.getDouble(IGpLayer.LAYERALPHA_TAG); MBTilesLayer mbtilesLayer = new MBTilesLayer(mapView, path, alpha, null); mbtilesLayer.load(); mbtilesLayer.setEnabled(isEnabled); break; } case VECTORTILESSERVICE: { String tilePath = layerDefinition.getString(IGpLayer.LAYERPATH_TAG); String url = layerDefinition.getString(IGpLayer.LAYERURL_TAG); <API key> vtsLayer = new <API key>(mapView, name, url, tilePath); vtsLayer.load(); vtsLayer.setEnabled(isEnabled); break; } case BITMAPTILESERVICE: { String tilePath = layerDefinition.getString(IGpLayer.LAYERPATH_TAG); String url = layerDefinition.getString(IGpLayer.LAYERURL_TAG); int maxZoom = 19; if (layerDefinition.has(IGpLayer.LAYERMAXZOOM_TAG)) maxZoom = layerDefinition.getInt(IGpLayer.LAYERMAXZOOM_TAG); float alpha = 1f; if (layerDefinition.has(IGpLayer.LAYERALPHA_TAG)) alpha = (float) layerDefinition.getDouble(IGpLayer.LAYERALPHA_TAG); <API key> bitmapLayer = new <API key>(mapView, name, url, tilePath, maxZoom, alpha); bitmapLayer.load(); bitmapLayer.setEnabled(isEnabled); break; } case SPATIALITE: { String dbPath = layerDefinition.getString(IGpLayer.LAYERPATH_TAG); boolean isEditing = false; if (layerDefinition.has(IGpLayer.LAYEREDITING_TAG)) isEditing = layerDefinition.getBoolean(IGpLayer.LAYEREDITING_TAG); <API key> spatialiteLayer = new <API key>(mapView, dbPath, name, isEditing); spatialiteLayer.load(); spatialiteLayer.setEnabled(isEnabled); if (isEditing) { EditManager.INSTANCE.setEditLayer(spatialiteLayer); } break; } case GEOPACKAGE: { String dbPath = layerDefinition.getString(IGpLayer.LAYERPATH_TAG); if (layerClass.equals(ELayerTypes.GEOPACKAGE.getVectorType())) { boolean isEditing = false; if (layerDefinition.has(IGpLayer.LAYEREDITING_TAG)) isEditing = layerDefinition.getBoolean(IGpLayer.LAYEREDITING_TAG); <API key> spatialiteLayer = new <API key>(mapView, dbPath, name, isEditing); spatialiteLayer.load(); spatialiteLayer.setEnabled(isEnabled); if (isEditing) { EditManager.INSTANCE.setEditLayer(spatialiteLayer); } } else { float alpha = 1f; if (layerDefinition.has(IGpLayer.LAYERALPHA_TAG)) alpha = (float) layerDefinition.getDouble(IGpLayer.LAYERALPHA_TAG); <API key> <API key> = new <API key>(mapView, dbPath, name, alpha, null); <API key>.load(); <API key>.setEnabled(isEnabled); } break; } } } } catch (Exception e) { GPLog.error(this, "Unable to load layer: " + layerDefinition.toString(2), e); } } } public void loadSystemLayers(GPMapView mapView, IActivitySupporter activitySupporter, List<JSONObject> <API key>) throws Exception { GpsLogsLayer gpsLogsLayer = new GpsLogsLayer(mapView); gpsLogsLayer.load(); <API key>.add(gpsLogsLayer.toJson()); CurrentGpsLogLayer currentGpsLogLayer = new CurrentGpsLogLayer(mapView); currentGpsLogLayer.load(); <API key>.add(currentGpsLogLayer.toJson()); BookmarkLayer bookmarkLayer = new BookmarkLayer(mapView); bookmarkLayer.load(); <API key>.add(bookmarkLayer.toJson()); ImagesLayer imagesLayer = new ImagesLayer(mapView); imagesLayer.load(); <API key>.add(imagesLayer.toJson()); NotesLayer notesLayer = new NotesLayer(mapView, activitySupporter); notesLayer.load(); <API key>.add(notesLayer.toJson()); GpsPositionLayer gpsPositionLayer = new GpsPositionLayer(mapView); gpsPositionLayer.load(); <API key>.add(gpsPositionLayer.toJson()); <API key> <API key> = new <API key>(mapView); <API key>.load(); <API key>.add(<API key>.toJson()); } // public void updateFromMap(GPMapView mapView) throws JSONException { // <API key>.clear(); // Layers layers = mapView.map().layers(); // int size = layers.size(); // for (int i = 0; i < size; i++) { // Layer layer = layers.get(i); // if (layer instanceof IGpLayer && !(layer instanceof ISystemLayer)) { // IGpLayer iPersistenceLayer = (IGpLayer) layer; // JSONObject jsonObject = iPersistenceLayer.toJson(); // <API key>.add(jsonObject); /** * Dispose all the layers and save the state to preferences. */ public void dispose(GPMapView mapView) throws JSONException { if (mapView != null) { JSONArray usersLayersArray = new JSONArray(); JSONObject usersRoot = new JSONObject(); usersRoot.put(LAYERS, usersLayersArray); JSONArray systemLayersArray = new JSONArray(); JSONObject systemRoot = new JSONObject(); systemRoot.put(LAYERS, systemLayersArray); for (Layer layer : mapView.map().layers()) { if (layer instanceof IGpLayer) { if (layer instanceof ISystemLayer) { IGpLayer gpLayer = (IGpLayer) layer; JSONObject jsonObject = gpLayer.toJson(); systemLayersArray.put(jsonObject); gpLayer.dispose(); } else { IGpLayer gpLayer = (IGpLayer) layer; JSONObject jsonObject = gpLayer.toJson(); usersLayersArray.put(jsonObject); gpLayer.dispose(); } } } SharedPreferences preferences = PreferenceManager.<API key>(GPApplication.getInstance()); SharedPreferences.Editor editor = preferences.edit(); String jsonString = usersRoot.toString(); editor.putString(<API key>, jsonString); jsonString = systemRoot.toString(); editor.putString(<API key>, jsonString); editor.apply(); } } /** * Remove the current layer from the map view. * * @return the position the layer had or -1 if the layer could not be found. */ public int removeFromMap(GPMapView mapView, String id) { Layers layers = mapView.map().layers(); int index = 0; for (Layer layer : layers) { if (layer instanceof IGpLayer) { IGpLayer gpLayer = (IGpLayer) layer; if (gpLayer.getId().equals(id)) { layers.remove(index); return index; } } index++; } return -1; } // public void swapLayers(GPMapView mapView, int oldIndex, int newIndex) { // Layers layers = mapView.map().layers(); // Layer removed = layers.remove(oldIndex); // layers.add(newIndex, removed); public void onResume(GPMapView mapView, IActivitySupporter activitySupporter) { if (mapView != null) { Layers layers = mapView.map().layers(); // right now we dispose and reload try { loadInMap(mapView, activitySupporter); } catch (Exception e) { GPLog.error(this, null, e); } for (Layer layer : layers) { if (layer instanceof IGpLayer) { IGpLayer gpLayer = (IGpLayer) layer; gpLayer.onResume(); } } //ToDo Debug int count = 0; if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) { count = (int) layers.stream().filter(l -> l instanceof <API key> || l instanceof <API key>).count(); } else { // TODO remove when minsdk is 24 for (Layer l : layers) { if (l instanceof <API key> || l instanceof <API key>) { count++; } } } if (count > 0) { SharedPreferences preferences = PreferenceManager.<API key>(GPApplication.getInstance()); String themeLabel = preferences.getString(MapUtilities.<API key>, GPMapThemes.DEFAULT.getThemeLabel()); mapView.setTheme(GPMapThemes.fromLabel(themeLabel)); } } } public void onPause(GPMapView mapView) { if (mapView != null) { // for (Layer layer : mapView.map().layers()) { // if (layer instanceof IGpLayer) { // IGpLayer gpLayer = (IGpLayer) layer; // gpLayer.onPause(); for (Layer layer : mapView.map().layers()) { if (layer instanceof IGpLayer) { IGpLayer gpLayer = (IGpLayer) layer; gpLayer.dispose(); } } } } /** * Ad a mapsforge and mbtiles files to the list. * * <p>If a mapfile is already existing, then add to it.</p> * * @param finalFile the file to add. * @param index optional index of the layer to add. * @return the index in which the layer was added or -1 if for some reason a new layer has not been added. * @throws Exception */ public int addMapFile(File finalFile, Integer index) throws Exception { int i = finalFile.getName().lastIndexOf('.'); String name = FileUtilities.<API key>(finalFile); <API key>(name); JSONObject jo = null; ELayerTypes layerType = ELayerTypes.fromFileExt(finalFile.getName()); if (layerType == null) { // throw new RuntimeException(); } else { switch (layerType) { case MAPSFORGE: { JSONObject existingObj = null; for (JSONObject def : <API key>) { String type = def.getString(IGpLayer.LAYERTYPE_TAG); ELayerTypes layerTypes = ELayerTypes.fromType(type); if (layerTypes == ELayerTypes.MAPSFORGE) { existingObj = def; break; } } if (existingObj != null) { String existingName = existingObj.getString(IGpLayer.LAYERNAME_TAG); String existingPath = existingObj.getString(IGpLayer.LAYERPATH_TAG); existingName += IGpLayer.PATHS_DELIMITER + name; existingPath += IGpLayer.PATHS_DELIMITER + finalFile.getAbsolutePath(); existingObj.put(IGpLayer.LAYERNAME_TAG, existingName); existingObj.put(IGpLayer.LAYERPATH_TAG, existingPath); return -1; } else { jo = new JSONObject(); jo.put(IGpLayer.LAYERTYPE_TAG, layerType.getTilesType()); jo.put(IGpLayer.LAYERNAME_TAG, name); jo.put(IGpLayer.LAYERPATH_TAG, finalFile.getAbsolutePath()); if (!<API key>.contains(jo)) if (index != null) { <API key>.add(index, jo); } else { <API key>.add(jo); } } break; } case MBTILES: { jo = new JSONObject(); jo.put(IGpLayer.LAYERTYPE_TAG, layerType.getTilesType()); jo.put(IGpLayer.LAYERNAME_TAG, name); jo.put(IGpLayer.LAYERPATH_TAG, finalFile.getAbsolutePath()); if (!<API key>.contains(jo)) if (index != null) { <API key>.add(index, jo); } else { <API key>.add(jo); } } } } if (jo != null) { return <API key>.indexOf(jo); } else { return -1; } } private void <API key>(String name) throws Exception { for (JSONObject definition : <API key>) { String existingName = definition.getString(IGpLayer.LAYERNAME_TAG); if (existingName.equals(name)) { throw new Exception(SAME_NAME_EXISTS); } } for (JSONObject definition : <API key>) { String existingName = definition.getString(IGpLayer.LAYERNAME_TAG); if (existingName.equals(name)) { throw new Exception(SAME_NAME_EXISTS); } } } public int addSpatialiteTable(File dbFile, String tableName, Integer index) throws Exception { <API key>(tableName); JSONObject jo = new JSONObject(); jo.put(IGpLayer.LAYERTYPE_TAG, ELayerTypes.SPATIALITE.getVectorType()); jo.put(IGpLayer.LAYERNAME_TAG, tableName); jo.put(IGpLayer.LAYERPATH_TAG, dbFile); jo.put(IGpLayer.LAYERMAXZOOM_TAG, 25); if (!<API key>.contains(jo)) if (index != null) { <API key>.add(index, jo); } else { <API key>.add(jo); } return <API key>.indexOf(jo); } public int addGeopackageTable(File dbFile, String tableName, Integer index, String layerTypeClass) throws Exception { <API key>(tableName); JSONObject jo = new JSONObject(); jo.put(IGpLayer.LAYERTYPE_TAG, layerTypeClass); jo.put(IGpLayer.LAYERNAME_TAG, tableName); jo.put(IGpLayer.LAYERPATH_TAG, dbFile); jo.put(IGpLayer.LAYERMAXZOOM_TAG, 25); if (!<API key>.contains(jo)) if (index != null) { <API key>.add(index, jo); } else { <API key>.add(jo); } return <API key>.indexOf(jo); } public int <API key>(File mapurlFile, Integer index) throws Exception { // minzoom=0 // maxzoom=19 // center=11.42 46.8 // type=google // format=png // defaultzoom=13 // mbtiles=defaulttiles/_mapnik.mbtiles // description=Mapnik - Openstreetmap Slippy Map Tileserver - Data, imagery and map information provided by MapQuest, OpenStreetMap and contributors, ODbL. String name = FileUtilities.<API key>(mapurlFile); <API key>(name); LinkedHashMap<String, String> paramsMap = FileUtilities.readFileToHashMap(mapurlFile, null, false); String url = paramsMap.get("url"); if (url != null) { int firstSlash = url.indexOf('/', 9); if (firstSlash != -1) { String newUrl = url.substring(0, firstSlash); String path = url.substring(firstSlash); path = path.replace("ZZZ", "{Z}"); path = path.replace("YYY", "{Y}"); path = path.replace("XXX", "{X}"); String maxZoomStr = paramsMap.get("maxzoom"); int maxZoom = 19; try { if (maxZoomStr != null) { maxZoom = (int) Double.parseDouble(maxZoomStr); } } catch (Exception e) { // ignore } return <API key>(name, newUrl, path, maxZoom, 1f, null); } } throw new Exception("Mapurl file format not recognized."); } public int <API key>(String name, String url, String tilePath, int maxZoom, float alpha, Integer index) throws Exception { <API key>(name); JSONObject jo = new JSONObject(); jo.put(IGpLayer.LAYERTYPE_TAG, ELayerTypes.BITMAPTILESERVICE.getTilesType()); jo.put(IGpLayer.LAYERNAME_TAG, name); jo.put(IGpLayer.LAYERURL_TAG, url); jo.put(IGpLayer.LAYERPATH_TAG, tilePath); jo.put(IGpLayer.LAYERMAXZOOM_TAG, maxZoom); jo.put(IGpLayer.LAYERALPHA_TAG, alpha); if (!<API key>.contains(jo)) if (index != null) { <API key>.add(index, jo); } else { <API key>.add(jo); } return <API key>.indexOf(jo); } public void setEnabled(boolean isSystem, int position, boolean enabled) { try { List<JSONObject> list = isSystem ? <API key> : <API key>; JSONObject layerObj = list.get(position); layerObj.put(IGpLayer.LAYERENABLED_TAG, enabled); } catch (Exception e) { GPLog.error(this, null, e); } } public void changeLayerPosition(boolean isSystem, int fromRow, int toRow) { List<JSONObject> list = isSystem ? <API key> : <API key>; if (list.size() > fromRow && list.size() > toRow) { JSONObject item = list.remove(fromRow); list.add(toRow, item); } } public List<IVectorDbLayer> <API key>(GPMapView mapView) { List<IGpLayer> layers = mapView.getLayers(); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) { return layers.stream().filter(l -> l instanceof IVectorDbLayer && l.isEnabled()).map(l -> (IVectorDbLayer) l).collect(Collectors.toList()); } else { List<IVectorDbLayer> vectorLayers = new ArrayList<>(); for (IGpLayer l : layers) { if (l instanceof IVectorDbLayer && l.isEnabled()) { vectorLayers.add((IVectorDbLayer) l); } } return vectorLayers; } } /** * Get all editable and enabled layers. * * @param mapView the mapview. * @return the list of editable and enabled layers. */ public List<IEditableLayer> getEditableLayers(GPMapView mapView) { List<IGpLayer> layers = mapView.getLayers(); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) { return layers.stream().filter(l -> l instanceof IEditableLayer && l.isEnabled() && ((IEditableLayer) l).isEditable()).map(l -> (IEditableLayer) l).collect(Collectors.toList()); } else { List<IEditableLayer> editableLayers = new ArrayList<>(); for (IGpLayer l : layers) { if (l instanceof IEditableLayer && l.isEnabled() && ((IEditableLayer) l).isEditable()) { editableLayers.add((IEditableLayer) l); } } return editableLayers; } } }
# <API key> Given a C header file. Find all the C struct, the size of each struct and the size of padding. All sizes need to be in bytes. Input: 1)some_header_file.h 2)memory alignment option (2,4,8 bytes) Output: a CSV file with name of struct , size of struct, size of padding bytes. Please write a python module which can do the above calculation. Please also write test code. Note: The basic data types in C header file are char of size 1 byte. int of size 4 byte. double of size 8 byte. Arrays of above types Structs of above types. Example of a header file /* header file start */ struct A1 { char m1[3]; double m2; char m3; }; struct A2 { char m1; double m2; char m3; }; struct A3 { A1 S1; A2 S2; } /* header file End */
from brian2 import * set_device('cpp_standalone') prefs.codegen.cpp.extra_compile_args = ['-w', '-O3', '-ffast-math', '-march=native'] # Parameters cells = 1 defaultclock.dt = 0.01*ms area = 20000*umetre**2 Cm = (1*ufarad*cmetre**-2) * area gl = (5e-5*siemens*cmetre**-2) * area El = -60*mV EK = -90*mV ENa = 50*mV g_na = (100*msiemens*cmetre**-2) * area g_kd = (30*msiemens*cmetre**-2) * area VT = -63*mV # Synaptic strengths gAMPA = (0.1*msiemens*cmetre**-2)* area gGABAA = (0.06*msiemens*cmetre**-2)* area # Synaptic time constants tauAMPA = 2 tauGABAA = 5 # Synaptic reversal potentials EAMPA = 1*mV EGABAA = -80*mV # The model eqs = Equations(''' dv/dt = (gl*(El-v)- gAMPA/cells*sAMPAtotal*(v-EAMPA)- gGABAA/cells*sGABAAtotal*(v-EGABAA)- g_na*(m*m*m)*h*(v-ENa)- g_kd*(n*n*n*n)*(v-EK))/Cm : volt dm/dt = alpha_m*(1-m)-beta_m*m : 1 dn/dt = alpha_n*(1-n)-beta_n*n : 1 dh/dt = alpha_h*(1-h)-beta_h*h : 1 alpha_m = 0.32*(mV**-1)*(13*mV-v+VT)/ (exp((13*mV-v+VT)/(4*mV))-1.)/ms : Hz beta_m = 0.28*(mV**-1)*(v-VT-40*mV)/ (exp((v-VT-40*mV)/(5*mV))-1)/ms : Hz alpha_h = 0.128*exp((17*mV-v+VT)/(18*mV))/ms : Hz beta_h = 4./(1+exp((40*mV-v+VT)/(5*mV)))/ms : Hz alpha_n = 0.032*(mV**-1)*(15*mV-v+VT)/ (exp((15*mV-v+VT)/(5*mV))-1.)/ms : Hz beta_n = .5*exp((10*mV-v+VT)/(40*mV))/ms : Hz sAMPAtotal : 1 sGABAAtotal : 1 ''') # Construct intrinsic cells P = NeuronGroup(cells, model=eqs, method='euler') Pe = 1 # proportion=int(0.8*cells) # Pe = P[:proportion] # Pi = P[proportion:] # Contruct synaptic network sAMPA=Synapses(Pe,P, model='''ds/dt=1000.*5.*(1 + tanh(v_pre/(4.*mV)))*(1-s)/ms - (s)/(2*ms) : 1 (clock-driven) sAMPAtotal_post = s : 1 (summed) ''') sAMPA.connect(p=0.90) # sGABAA_RETC=Synapses(Pi,P, # model='''ds/dt=1000.*2.*(1 + tanh(v_pre/(4.*mV)))*(1-s)/ms - s/(5*ms) : 1 (clock-driven) # sGABAAtotal_post = s : 1 (summed) # ''') # sGABAA_RETC.connect(p=0.90) # Initialization P.v = 'El + (randn() * 5 - 5)*mV' # Record a few traces trace = StateMonitor(P, 'v', record=[1, 10, 100]) totaldata = StateMonitor(P, 'v', record=True) run(0.5 * second, report='text') # # If you want to plot: # plot(trace.t/ms, trace[1].v/mV) # plot(trace.t/ms, trace[10].v/mV) # plot(trace.t/ms, trace[100].v/mV) # xlabel('t (ms)') # ylabel('v (mV)') # show() # # If you want to save data: # print("Saving TC cell voltages!") # numpy.savetxt("foo_totaldata.csv", totaldata.v/mV, delimiter=",")
#include <iostream> #include <numeric> #include <iterator> #include <string> #include <vector> #include <algorithm> #include <sstream> #include <utility> #include <set> using namespace std; #define all(t) begin(t), end(t) #define sp << " " << typedef vector<int>::iterator vit; typedef pair<int,pair<int,int>> line; typedef vector<line>::iterator vlit; vector<vector<int>> inner; ostream& operator<< (ostream& os, line v) { return os << "(" << v.first << "," << v.second.first << "," << v.second.second << ")"; } template <typename I> void print(I f, I l) { for (auto i=f;i != l; i++) cout << *i << endl; } void visit(vit f, vit l) { set<int> S; S.insert(f,l); if ((int)S.size()==distance(f,l)) { inner.push_back(vector<int>(f,l)); } } //7.2.1.4 Algorithm H void partitions(int n, int m) { vector<int> a(m+2); //H1 Initialize a[1]=n-m+1;fill(begin(a)+2,end(a)-1,1);a[m+1]=-1; do { do { //H2 Visit if (a[1] <= 2*m) visit(begin(a)+1, end(a)-1); if (a[2]>=a[1]-1) break; //H3 Tweak a[1] and a[2] a[1]-=1;a[2]+=1; } while (true); //H4 Find j int j=3;int s=a[1]+a[2]-1; while (a[j]>=a[1]-1) {s+=a[j];j++;} //H5 Increase a[j] if (j>m) return; int x=a[j]+1;a[j]=x;j //H6 Tweak a[1]...a[j] while (j>1) {a[j]=x;s-=x;j a[1]=s; } while (true); } void swp(pair<int,int>& p) { int tmp = p.first; p.first=p.second; p.second = tmp; } string gen_str(vlit f, vlit l) { set<int> check; stringstream ss; auto v=f; check.insert(v->first); ss << v->first << (v->second).first << (v->second).second; for (int i=1;i<distance(f,l);i++) { auto w = find_if(f,l,[&](line u){ return u.first != v->first && (u.second.first == (v->second).second || u.second.second == (v->second).second); }); if ((w->second).second == (v->second).second) swp(w->second); v=w; if (check.insert(v->first).second == false) return ""; ss << v->first << (v->second).first << (v->second).second; } return ss.str(); } int main() { int N, S; cin >> N >> S; int Si = N*S-2*N*N-N; //int So = 4*N*N+2*N-N*S; partitions(Si,N); vector<string> Solutions; vector<line> Sol; for (auto it=begin(inner);it!=end(inner);it++) { vector<bool> marker(2*N,true); for_each(all(*it),[&](int n){marker[n-1]=false;}); vector<int> outer; for (int i=0;i<2*N;i++) if (marker[i]) outer.push_back(i+1); vector<int> marker2(2*N,2); for (int i=0;i<N;i++) { auto jt1 = begin(*it); while (jt1 != end(*it)-1) { //find next 2 unmarked jt1 = find_if(jt1,end(*it),[&](int n){return marker2[n-1] != 0;}); if (jt1 == end(*it)) goto nosol; auto jt2 = find_if(jt1+1,end(*it),[&](int n){return marker2[n-1] != 0;}); if (jt2 == end(*it) || outer[i]+*jt1+*jt2<S) goto nosol; while (jt2 != end(*it) && outer[i]+*jt1+*jt2>S) jt2 = find_if(jt2+1,end(*it),[&](int n){return marker2[n-1] != 0;}); if (jt2 == end(*it) || outer[i]+*jt1+*jt2<S) {jt1++;continue;} marker2[(*jt1)-1] marker2[(*jt2)-1] Sol.push_back(make_pair(outer[i],make_pair(*jt1,*jt2))); break; } if (i==N-1) { string s = gen_str(all(Sol)); if (s.size()==0) break; Solutions.push_back(s); swp(Sol[0].second); Solutions.push_back(gen_str(all(Sol))); } } nosol: Sol.clear(); } sort(all(Solutions)); print(all(Solutions)); }
(function($){ $.fn.extend({ sliderAccess: function(options){ options = options || {}; options.touchonly = options.touchonly !== undefined? options.touchonly : true; // by default only show it if touch device if(options.touchonly === true && !("ontouchend" in document)){ return $(this); } return $(this).each(function(i,obj){ var $t = $(this), o = $.extend({},{ where: 'after', step: $t.slider('option','step'), upIcon: 'ui-icon-plus', downIcon: 'ui-icon-minus', text: false, upText: '+', downText: '-', buttonset: true, buttonsetTag: 'span', isRTL: false }, options), $buttons = $('<'+ o.buttonsetTag +' class="ui-slider-access">'+ '<button data-icon="'+ o.downIcon +'" data-step="'+ (o.isRTL? o.step : o.step*-1) +'">'+ o.downText +'</button>'+ '<button data-icon="'+ o.upIcon +'" data-step="'+ (o.isRTL? o.step*-1 : o.step) +'">'+ o.upText +'</button>'+ '</'+ o.buttonsetTag +'>'); $buttons.children('button').each(function(j, jobj){ var $jt = $(this); $jt.button({ text: o.text, icons: { primary: $jt.data('icon') } }) .click(function(e){ var step = $jt.data('step'), curr = $t.slider('value'), newval = curr += step*1, minval = $t.slider('option','min'), maxval = $t.slider('option','max'), slidee = $t.slider("option", "slide") || function(){}, stope = $t.slider("option", "stop") || function(){}; e.preventDefault(); if(newval < minval || newval > maxval){ return; } $t.slider('value', newval); slidee.call($t, null, { value: newval }); stope.call($t, null, { value: newval }); }); }); // before or after $t[o.where]($buttons); if(o.buttonset){ $buttons.removeClass('ui-corner-right').removeClass('ui-corner-left').buttonset(); $buttons.eq(0).addClass('ui-corner-left'); $buttons.eq(1).addClass('ui-corner-right'); } // adjust the width so we don't break the original layout var bOuterWidth = $buttons.css({ marginLeft: ((o.where === 'after' && !o.isRTL) || (o.where === 'before' && o.isRTL)? 20:0), marginRight: ((o.where === 'before' && !o.isRTL) || (o.where === 'after' && o.isRTL)? 20:0) }).outerWidth(true) + 5; var tOuterWidth = $t.outerWidth(true); $t.css('display','inline-block').width(<API key>); }); } }); })(jQuery);
''' available factories: <API key> ''' import numpy from mlpdata import MLPData class zero_matrix(object): def __init__(self, rows, cols): self.__rows = rows self.__cols = cols def rows(self): return self.__rows def cols(self): return self.__cols def __repr__(self): return str(self.rows()) + "x" + str(self.cols()) + " zero matrix" class numpy_dense_matrix(numpy.ndarray): def rows(self): return self.shape[0] def cols(self): return self.shape[1] def __repr__(self): return str(self.rows()) + "x" + str(self.cols()) + " dense matrix" def <API key>(layers, afunction): ''' determines: - number of layers - number of neurons per layer - number of total neurons ''' mlp = MLPData() mlp.weights = {} for i in xrange(len(layers)): mlp.weights[i] = {} for j in xrange(len(layers)): if j-i == 1: mlp.weights[i][j] = numpy.ndarray(shape=(layers[i], layers[j]), dtype=numpy.float).view(numpy_dense_matrix) else: mlp.weights[i][j] = zero_matrix(rows=layers[i], cols=layers[j]) mlp.neuron_parameters = numpy.ndarray(shape=(sum(layers)), dtype=afunction.parameters) mlp.activation_function = afunction return mlp
<?php if (!defined('MODULE_FILE')) { die('You can\'t access this file directly...'); } $popup = 1; if ($popup != "1"){ $module_name = basename(dirname(__FILE__)); require("modules/".$module_name."/nukebb.php"); } else { $phpbb_root_path = NUKE_FORUMS_DIR; } define('IN_PHPBB', true); include($phpbb_root_path . 'extension.inc'); include($phpbb_root_path . 'common.'.$phpEx); // Start session management $userdata = session_pagestart($user_ip, PAGE_GAME, $nukeuser); init_userprefs($userdata); // End session management include('includes/functions_arcade.' . $phpEx); // Start auth check if (!$userdata['session_logged_in']) { $header_location = (@preg_match("/Microsoft|WebSTAR|Xitami/", getenv("SERVER_SOFTWARE"))) ? "Refresh: 0; URL=" : "Location: "; header($header_location . "modules.php?name=Your_Account"); exit; } // End of auth check $arcade_config = array(); $arcade_config = read_arcade_config(); if($arcade_config['limit_by_posts'] && $userdata['user_level'] != ADMIN){ $secs = 86400; $uid = $userdata['user_id']; $days = $arcade_config['days_limit']; $posts = $arcade_config['posts_needed']; $current_time = time(); $old_time = $current_time - ($secs * $days); //Begin Limit Play mod if($arcade_config['limit_type']=='posts') { $sql = "SELECT * FROM " . POSTS_TABLE . " WHERE poster_id = $uid"; } else { $sql = "SELECT * FROM " . POSTS_TABLE . " WHERE poster_id = $uid and post_time BETWEEN $old_time AND $current_time"; } if ( !($result = $db->sql_query($sql)) ) { message_die(GENERAL_ERROR, 'Could not obtain forums information', '', __LINE__, __FILE__, $sql); } $Amount_Of_Posts = $db->sql_numrows( $result ); if($Amount_Of_Posts < $posts) { $diff_posts = $posts - $Amount_Of_Posts; if($arcade_config['limit_type']=='posts') { $message = "You need $posts posts to play the arcade.<br />You need $diff_posts more posts."; } else { $message = "You need $posts posts in the last $days days to play the arcade.<br />You need $diff_posts more posts."; } message_die(GENERAL_MESSAGE, $message); } } //End Limit Play mod if (!empty($HTTP_POST_VARS['gid']) || !empty($HTTP_GET_VARS['gid'])) { $gid = (!empty($HTTP_POST_VARS['gid'])) ? intval($HTTP_POST_VARS['gid']) : intval($HTTP_GET_VARS['gid']); } else { message_die(GENERAL_ERROR, "No game is specified"); } $sql = "SELECT g.* , u.username, MAX(s.score_game) AS highscore FROM " . GAMES_TABLE . " g LEFT JOIN " . SCORES_TABLE . " s ON g.game_id = s.game_id LEFT JOIN " . USERS_TABLE . " u ON g.game_highuser = u.user_id WHERE g.game_id = $gid GROUP BY g.game_id,g.game_highscore"; if (!($result = $db->sql_query($sql))) { message_die(GENERAL_ERROR, "Could not read games table", '', __LINE__, __FILE__, $sql); } if (!($row = $db->sql_fetchrow($result)) ) { message_die(GENERAL_ERROR, "This game does not exist", '', __LINE__, __FILE__, $sql); } $mode = $HTTP_GET_VARS['mode']; if($mode == "done") { $gamename = $row['game_name']; // set page title $page_title = "Current Highscore's for " .$gamename; $gen_simple_header = TRUE; include("includes/page_header_review.php"); $template->set_filenames(array( 'body' => 'gamespopup_finish.tpl')); $template->assign_vars(array( 'GAMENAME' => $gamename, 'PLAYAGAIN' => append_sid("gamespopup.$phpEx?gid=$gid", true), 'RETURN' => append_sid("arcade.$phpEx", true), )); $sql = "SELECT s.*, u.username FROM " . SCORES_TABLE . " s LEFT JOIN " . USERS_TABLE . " u ON s.user_id = u.user_id WHERE game_id = $gid ORDER BY s.score_game DESC, s.score_date ASC LIMIT 0,15"; if (!($result = $db->sql_query($sql))) { message_die(GENERAL_ERROR, "Could not read from scores table", '', __LINE__, __FILE__, $sql); } $pos = 0; $posreelle = 0; $lastscore = 0; while ($row = $db->sql_fetchrow($result)) { $posreelle++; if ($lastscore!=$row['score_game']) { $pos = $posreelle; } $lastscore = $row['score_game']; $class = ($class == 'row1') ? 'row2' : 'row1'; $template->assign_block_vars('scorerow', array( 'CLASS' => $class, 'POS' => $pos, 'USERNAME' => UsernameColor($row['username']), 'URL_STATS' => '<nobr><a class="cattitle" href="' . append_sid("statarcade.$phpEx?uid=" . $row['user_id']) . '">' . "<img src='modules/Forums/templates/" . $theme['template_name'] . "/images/loupe.gif' align='absmiddle' border='0' alt='" . $lang['statuser'] . " " . $row['username'] . "'>" . '</a></nobr>', 'SCORE' => number_format($row['score_game']), 'DATEHIGH' => create_date($board_config['default_dateformat'] , $row['score_date'] , $board_config['board_timezone'])) ); } // Generate the page end $template->pparse('body'); include("includes/page_tail_review.php"); exit; } $liste_cat_auth_play = <API key>($userdata['user_id'], $userdata['user_level'],'play'); $tbauth_play = array(); $tbauth_play = explode(',',$liste_cat_auth_play); if (!in_array($row['arcade_catid'],$tbauth_play)) { message_die(GENERAL_MESSAGE, $lang['game_forbidden']); } //chargement du template $template->set_filenames(array( 'body' => 'gamespopup_body.tpl') ); $sql = "DELETE FROM " . GAMEHASH_TABLE . " WHERE hash_date < " . (time() - 72000); if (!$db->sql_query($sql)) { message_die(GENERAL_ERROR, "Could not delete from the hash table", '', __LINE__, __FILE__, $sql); } // Type V2 Game Else Type V1 if ($row['game_type'] == 3) { $type_v2 = true; $template->assign_block_vars('game_type_V2',array()); $gamehash_id = md5(uniqid($user_ip)); $sql = "INSERT INTO " . GAMEHASH_TABLE . " (gamehash_id , game_id , user_id , hash_date) VALUES ('$gamehash_id' , '$gid' , '" . $userdata['user_id'] . "' , '" . time() . "')"; if (!($result = $db->sql_query($sql))) { message_die(GENERAL_ERROR, "Could not delete from the hash table", '', __LINE__, __FILE__, $sql); } } elseif ($row['game_type'] == 4 or $row['game_type'] == 5) { if ($row['game_type'] == 5) { $template->assign_block_vars('game_type_V5',array()); } else { $template->assign_block_vars('game_type_V2',array()); } setcookie('gidstarted', '', time() - 3600); setcookie('gidstarted',$gid); setcookie('timestarted', '', time() - 3600); setcookie('timestarted', time()); $gamehash_id = md5($user_ip); $sql = "INSERT INTO " . GAMEHASH_TABLE . " (gamehash_id , game_id , user_id , hash_date) VALUES ('$gamehash_id' , '$gid' , '" . $userdata['user_id'] . "' , '" . time() . "')"; if (!($result = $db->sql_query($sql))) { message_die(GENERAL_ERROR, "Couldn't update hashtable", '', __LINE__, __FILE__, $sql); } } else { message_die(GENERAL_ERROR, "Game Type no longer supported, please contact the admin and have him/her delete it."); } setcookie('arcadepopup', '', time() - 3600); setcookie('arcadepopup', '1'); $scriptpath = substr($board_config['script_path'] , strlen($board_config['script_path']) - 1 , 1) == '/' ? substr($board_config['script_path'] , 0 , strlen($board_config['script_path']) - 1) : $board_config['script_path']; $scriptpath = "http://" . $board_config['server_name'] .$scriptpath; global $prefix; $sql = "SELECT arcade_cattitle FROM `".$prefix."<API key>` WHERE arcade_catid = " . $row['arcade_catid']; $result = $db->sql_query($sql); $ourrow = $db->sql_fetchrow($result); $cat_title = $ourrow['arcade_cattitle']; $template->assign_vars(array( 'SWF_GAME' => $row['game_swf'] , 'GAMEHASH' => $gamehash_id, 'L_GAME' => $row['game_name'], 'HIGHUSER' => (!empty($row['username'])) ? "'s Highscore: ".$row['username']." - ": " : No Highscore", 'HIGHSCORE' => $row['highscore']) ); // Output page header $page_title = $lang['arcade_game']; $template->pparse('body'); ?>
var express = require('express'); var app = express(); var server = require('http').Server(app); var io = require('socket.io')(server); var getport = require('getport'); var spawn = require('child_process').spawn; var parseTorrent = require('parse-torrent'); var processes = {}; // Peerflix processes var users = 0; server.listen(3000, function () { console.log('app listening on port 3000!'); }); app.use(express.static('public')); function printProcesses() { console.log(" for(var p in processes) { console.log(processes[p].name + " | Port:" + processes[p].port + " | Spectators: " + processes[p].spectators); } console.log(" } io.on('connection', function (socket) { users++; console.log("Connected users : " + users); socket.on('disconnect', function() { users console.log("Connected users : " + users); if(socket.playing != undefined) { processes[socket.playing].spectators if(processes[socket.playing].spectators === 0) { processes[socket.playing].child.kill(); delete processes[socket.playing]; } } printProcesses(); }); socket.on('cancelTorrent', function () { if(!socket.playing) return; processes[socket.playing].spectators if(processes[socket.playing].spectators === 0) { processes[socket.playing].child.kill(); delete processes[socket.playing]; } socket.playing = null; printProcesses(); }); socket.on('getTorrent', function (data) { var torrent = data.torrent // There is already a stream running, kill it if(socket.playing && process[socket.playing] != torrent) { processes[socket.playing].spectators if(processes[socket.playing].spectators === 0) { processes[socket.playing].child.kill(); delete processes[socket.playing]; } socket.playing = null; } // A process already exists for this torrent if(processes[torrent]) { port = processes[torrent].port; processes[torrent].spectators++; socket.playing = torrent; socket.emit('port', port); printProcesses(); return; } // Create a new process getport(function (err, port) { if (err) console.log(err); var process = {}; var child = spawn('peerflix', [torrent, '--port='+ port, '--tmp=./tmp', '--remove'], {}); process.child = child; process.port = port; process.spectators = 0; processes[torrent] = process; processes[torrent].spectators++; parseTorrent.remote(torrent, function (err, parsedTorrent) { if (err) throw err processes[torrent].name = parsedTorrent.name; printProcesses(); }) socket.playing = torrent; socket.emit('port', port); child.stdout.on('data', function(data) { //console.log('stdout: ' + data); }); child.stderr.on('data', function(data) { console.log('stderr: ' + data); }); child.on('close', function (code, signal) { console.log('child closed'); }); }); }); });
-- the Not_indexed Table CREATE TABLE notindexed( queueID INTEGER PRIMARY KEY, fedorahandle VARCHAR(100) );
ALTER TABLE [dbo].[risk_factor] WITH CHECK ADD CONSTRAINT [FKDAD694BFA1C0C699] FOREIGN KEY([medical_history_id]) REFERENCES [dbo].[medical_history] ([id]) GO ALTER TABLE [dbo].[risk_factor] CHECK CONSTRAINT [FKDAD694BFA1C0C699] GO ALTER TABLE [dbo].[risk_factor] WITH CHECK ADD CONSTRAINT [FKDAD694BFF76277CA] FOREIGN KEY([type_id]) REFERENCES [dbo].[risk_factor_type] ([id]) GO ALTER TABLE [dbo].[risk_factor] CHECK CONSTRAINT [FKDAD694BFF76277CA] GO
/** * @module server * * Start up the Trails Application. */ 'use strict' const app = require('./') const TrailsApp = require('trails') const server = new TrailsApp(app) server.start().catch(err => server.stop(err)) process.on('uncaughtException', function (err) { console.log('Caught exception: ' + err); console.log(err.stack); });
package com.pixelutilities; import java.util.ArrayList; import java.util.HashMap; import net.minecraft.block.Block; import net.minecraft.item.Item; import net.minecraft.item.Item.ToolMaterial; import net.minecraft.item.ItemArmor.ArmorMaterial; import net.minecraft.item.ItemStack; import net.minecraft.launchwrapper.LogWrapper; import net.minecraft.world.World; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.common.util.EnumHelper; import net.minecraftforge.fml.common.*; import net.minecraftforge.fml.common.event.*; import net.minecraftforge.fml.common.registry.EntityRegistry; import net.minecraftforge.fml.common.registry.GameData; import net.minecraftforge.fml.common.registry.GameRegistry; import net.minecraftforge.fml.relauncher.Side; import uk.co.caprica.vlcj.discovery.NativeDiscovery; import uk.co.caprica.vlcj.version.LibVlcVersion; import uk.co.caprica.vlcj.version.Version; import com.pixelmonmod.pixelmon.Pixelmon; import com.pixelutilities.achievements.<API key>; import com.pixelutilities.commands.*; import com.pixelutilities.config.<API key>; import com.pixelutilities.config.<API key>; import com.pixelutilities.config.<API key>; import com.pixelutilities.entitys.SeatEntity; import com.pixelutilities.events.*; import com.pixelutilities.networking.PacketHandler; import com.pixelutilities.proxies.CommonProxy; import com.pixelutilities.radioplayer.VLCPlayer; import com.pixelutilities.tileentitys.*; import com.pixelutilities.worldgen.*; @Mod(modid = Basemod.MODID, name = Basemod.NAME, version = Basemod.VERSION, dependencies = "after:pixelmon", guiFactory="com.pixelutilities.<API key>") public class Basemod { public static final String MODID = "pixelutilities"; public static final String NAME = "PixelUtilities"; public static final String VERSION = "3.3.7"; public final ToolMaterial ELEMENTSTONE = EnumHelper.addToolMaterial("ELEMENTSTONE", 3, 1561, 12.0F, 0.0F, 22); public final ToolMaterial RUBY = EnumHelper.addToolMaterial("RUBY", 2, 300, 6.5F, 2, 14); public final ToolMaterial SAPHIRE = EnumHelper.addToolMaterial("SAPHIRE", 2, 300, 6.5F, 2, 14); public final ToolMaterial AMETHYST = EnumHelper.addToolMaterial("AMETHYST", 2, 300, 6.5F, 2, 14); public final ToolMaterial CRYSTAL = EnumHelper.addToolMaterial("CRYSTAL", 2, 300, 6.5F, 2, 14); //TODO 1.8 armor public final ArmorMaterial ELEMENTSTONE1 = EnumHelper.addArmorMaterial("ELEMENTSTONE1", 40, new int[]{4, 8, 6, 4}, 0); public final ArmorMaterial ELEMENTSTONE2 = EnumHelper.addArmorMaterial("ELEMENTSTONE2", 15, new int[]{3, 7, 6, 3}, 0); public final ArmorMaterial RUBYA = EnumHelper.addArmorMaterial("RUBY", 200, new int[]{3, 7, 6, 3}, 10); public final ArmorMaterial SAPHIREA = EnumHelper.addArmorMaterial("SAPHIRE", 200, new int[]{3, 7, 6, 3}, 10); public final ArmorMaterial CRYSTALA = EnumHelper.addArmorMaterial("CRYSTAL", 200, new int[]{3, 7, 6, 3}, 10); public final ArmorMaterial SILICONA = EnumHelper.addArmorMaterial("SILICON", 200, new int[]{3, 7, 6, 3}, 10); public final ArmorMaterial AMETHYSTA = EnumHelper.addArmorMaterial("AMETHYST", 200, new int[]{3, 7, 6, 3}, 10); //Massive chunk of variables to reduce static //Items public Item pokeCoin1Item; public Item pokeCoin5Item; public Item pokeCoin10Item; public Item pokeCoin50Item; public Item pokeCoin100Item; public Item bugBadgeItem; public Item fightingBadgeItem; public Item flyingBadgeItem; public Item groundBadgeItem; public Item normalBadgeItem; public Item poisonBadgeItem; public Item rockBadgeItem; public Item ghostBadgeItem; public Item steelBadgeItem; public Item fireBadgeItem; public Item waterBadgeItem; public Item grassBadgeItem; public Item electricBadgeItem; public Item darkBadgeItem; public Item iceBadgeItem; public Item psychicBadgeItem; public Item dragonBadgeItem; public Item saphireItem; public Item rubyItem; public Item siliconItem; public Item crystalItem; public Item cdItem; public Item amethystItem; public static Item pixelBoyItem; //Ruby Tools public static Item rubyPickaxe; public static Item rubyHammer; public static Item rubyAxe; public static Item rubyShovel; public static Item rubyHoe; public static Item rubySword; //Saphire Tools public static Item saphirePickaxe; public static Item saphireHammer; public static Item saphireAxe; public static Item saphireShovel; public static Item saphireHoe; public static Item saphireSword; //Amethyst Tools public static Item amethystPickaxe; public static Item amethystHammer; public static Item amethystShovel; public static Item amethystAxe; public static Item amethystHoe; public static Item amethystSword; public static Item crystalPickaxe; public static Item crystalHammer; public static Item crystalAxe; public static Item crystalShovel; public static Item crystalHoe; public static Item crystalSword; //EvoTools //Firestone tools public static Item firestonePickaxe; public static Item firestoneHammer; public static Item firestoneAxe; public static Item firestoneShovel; public static Item firestoneHoe; public static Item firestoneSword; //Waterstone tools public static Item waterstonePickaxe; public static Item waterstoneHammer; public static Item waterstoneAxe; public static Item waterstoneShovel; public static Item waterstoneHoe; public static Item waterstoneSword; //Leafstone tools public static Item leafstonePickaxe; public static Item leafstoneHammer; public static Item leafstoneAxe; public static Item leafstoneShovel; public static Item leafstoneHoe; public static Item leafstoneSword; public static Item thunderstonePickaxe; public static Item thunderstoneHammer; public static Item thunderstoneAxe; public static Item thunderstoneShovel; public static Item thunderstoneHoe; public static Item thunderstoneSword; public static Item moonstonePickaxe; public static Item moonstoneHammer; public static Item moonstoneAxe; public static Item moonstoneShovel; public static Item moonstoneHoe; public static Item moonstoneSword; public static Item sunstonePickaxe; public static Item sunstoneHammer; public static Item sunstoneAxe; public static Item sunstoneShovel; public static Item sunstoneHoe; public static Item sunstoneSword; public static Item dawnstonePickaxe; public static Item dawnstoneHammer; public static Item dawnstoneAxe; public static Item dawnstoneShovel; public static Item dawnstoneHoe; public static Item dawnstoneSword; //Armours public static Item rubyHelm; public static Item rubyPlate; public static Item rubyLegs; public static Item rubyBoots; public static Item saphireHelm; public static Item saphirePlate; public static Item saphireLegs; public static Item saphireBoots; public static Item galacticHelm; public static Item galacticBoots; public static Item galacticPlate; public static Item galacticLegs; public static Item crystalHelm; public static Item crystalBoots; public static Item crystalPlate; public static Item crystalLegs; public static Item neoHelm; public static Item neoBoots; public static Item neoPlate; public static Item neoLegs; public static Item rocketHelm; public static Item rocketBoots; public static Item rocketPlate; public static Item rocketLegs; public static Item firestoneHelm; public static Item firestonePlate; public static Item firestoneLegs; public static Item firestoneBoots; public static Item waterstoneHelm; public static Item waterstonePlate; public static Item waterstoneLegs; public static Item waterstoneBoots; public static Item leafstoneHelm; public static Item leafstonePlate; public static Item leafstoneLegs; public static Item leafstoneBoots; public static Item thunderstoneHelm; public static Item thunderstonePlate; public static Item thunderstoneLegs; public static Item thunderstoneBoots; public static Item sunstoneHelm; public static Item sunstonePlate; public static Item sunstoneLegs; public static Item sunstoneBoots; public static Item moonstoneHelm; public static Item moonstonePlate; public static Item moonstoneLegs; public static Item moonstoneBoots; public static Item dawnstoneHelm; public static Item dawnstonePlate; public static Item dawnstoneLegs; public static Item dawnstoneBoots; //lights public Block blueLightBlock; public Block redLightBlock; public Block purpleLightBlock; public Block yellowLightBlock; public Block orangeLightBlock; public Block whiteLightBlock; public Block greenLightBlock; public boolean vlcLoaded = false; public boolean pixelmonPresent = false; public final boolean is64bit = Integer.parseInt(System.getProperty("sun.arch.data.model")) == 64; public boolean DEBUGMODE = false; public static ArrayList<VLCPlayer> playerList = new ArrayList<>(); public static ArrayList<VLCPlayer> battleMusicList = new ArrayList<>(); public VLCPlayer localMusicPlayer = null; //this holds players battling in grass //public HashMap<String, ArrayList<String>> grassBattlers = new HashMap<String, ArrayList<String>>(); private World eventWorld; @Mod.Instance(Basemod.MODID) public static Basemod instance; @SidedProxy(clientSide = "com.pixelutilities.proxies.ClientProxy", serverSide = "com.pixelutilities.proxies.CommonProxy") public static CommonProxy proxy; <API key> config; public PokegiftEventGen pge; @Mod.EventHandler public void preInit(<API key> event) { instance = this; try { if (Class.forName("com.pixelmonmod.pixelmon.Pixelmon") != null) pixelmonPresent = true; } catch (<API key> e) { FMLLog.warning("Pixelmon mod not found, pixelmon functions disabled."); } if(pixelmonPresent) { //TODO pixel 1.8 /* Pixelmon.EVENT_BUS.register(CustomDrops.getInstance()); if(event.getSide().equals(Side.CLIENT)) Pixelmon.EVENT_BUS.register(new PUTickHandler()); */ } AddMeta(event); config = <API key>.getInstance(); config.setEvent(event); pge = new PokegiftEventGen(); <API key>.setupAchievements(); EntityRegistry.registerModEntity(SeatEntity.class, "Seat", 0, this, 3, 1, false); } @Mod.EventHandler public void init(<API key> event) { if (event.getSide().equals(Side.CLIENT)) { FMLCommonHandler.instance().bus().register(config); StandardTickHandler tickHandler = new StandardTickHandler(); FMLCommonHandler.instance().bus().register(tickHandler); MinecraftForge.EVENT_BUS.register(tickHandler); initVLC(); } FMLCommonHandler.instance().bus().register(new <API key>()); MinecraftForge.EVENT_BUS.register(new FallEliminator()); PacketHandler.init(); } private void initVLC() { new NativeDiscovery().discover(); try { Version vlcVersion = LibVlcVersion.getVersion(); System.out.println("VLC VERSION " + vlcVersion.toString()); vlcLoaded = true; } catch (<API key> error) { System.out.println("You need to install VLC for radio functions."); } } @Mod.EventHandler public void load(<API key> event) { proxy.<API key>(); GameRegistry.registerTileEntity(TreeEntity.class, "Tree"); GameRegistry.registerTileEntity(BolderEntity.class, "Boulder"); GameRegistry.registerTileEntity(BoxEntity.class, "Box"); GameRegistry.registerTileEntity(ClothedTableEntity.class, "ClothedTable"); GameRegistry.registerTileEntity(PokeballEntity.class, "Pokeball"); GameRegistry.registerTileEntity(<API key>.class, "RedCusionChair"); GameRegistry.registerTileEntity(TrashcanEntity.class, "Trashcan"); GameRegistry.registerTileEntity(<API key>.class, "YellowCusionChair"); GameRegistry.registerTileEntity(<API key>.class, "TotodileDoll"); //where the hell did these disappear from? GameRegistry.registerTileEntity(AronPokedollEntity.class, "AronDoll"); GameRegistry.registerTileEntity(GymSignEntity.class, "GymSign"); GameRegistry.registerTileEntity(TVEntity.class, "TV"); GameRegistry.registerTileEntity(BlueRugEntity.class, "BlueRug"); GameRegistry.registerTileEntity(RedRugEntity.class, "RedRug"); GameRegistry.registerTileEntity(GreenRugEntity.class, "GreenRug"); GameRegistry.registerTileEntity(<API key>.class, "PokeballStatue"); GameRegistry.registerTileEntity(TileEntityRadio.class, "Radio"); GameRegistry.registerTileEntity(TileEntityConveyor.class, "Conveyor"); GameRegistry.registerTileEntity(PokegiftEntity.class, "Pokegift"); if(config.oreGen) { //Ore generation GameRegistry.<API key>(new RubyGenerator(), 3); GameRegistry.<API key>(new SaphireGenerator(), 3); GameRegistry.<API key>(new AmethystGenerator(), 3); GameRegistry.<API key>(new SiliconGenerator(), 3); GameRegistry.<API key>(new CrystalGenerator(), 3); } if(config.grassGen) GameRegistry.<API key>(new <API key>(), 3); <API key> recipes = new <API key>(); recipes.addRecipes(); <API key>.rubyOre.setHarvestLevel("pickaxe", 2); <API key>.saphireOre.setHarvestLevel("pickaxe", 2); <API key>.amethystOre.setHarvestLevel("pickaxe", 2); <API key>.siliconOre.setHarvestLevel("pickaxe", 2); <API key>.crystalOre.setHarvestLevel("pickaxe", 2); } @Mod.EventHandler public void onServerStart(<API key> event) { event.<API key>(new AddToDrops()); event.<API key>(new AddToGrassCommand()); event.<API key>(new EventLocation()); eventWorld = event.getServer().<API key>(0); if (DEBUGMODE) { //Here be dragons. for (Block block : (Iterable<Block>) GameData.getBlockRegistry()) { if (!GameRegistry.<API key>(block).modId.equals("minecraft")) continue; if(block.delegate.name().contains("minecraft")) continue; String localName = block.getLocalizedName(); if (localName.contains("tile")) { System.out.println("Block " + block.getClass().getName() + " Doesn't seem to have a name set!"); System.out.println(); System.out.println(localName); System.out.println(); } /*if (block.<API key>() == null) { System.out.println("Block " + block.getClass().getName() + " Doesn't seem to have a creative tab set!"); System.out.println(); }*/ } for (Item item : (Iterable<Item>) GameData.getItemRegistry()) { ItemStack itemStack = new ItemStack(item, 0, 1); String itemName = item.<API key>(itemStack); if (!GameRegistry.<API key>(item).modId.equals(MODID)) continue; if (itemName.contains("item.")) { System.out.println("Item " + itemName + " doesn't seem to have a name set"); System.out.println(); } if(item.getCreativeTab() == null) { System.out.println("Item " + itemName + " doesn't seem to have a creative tab set"); System.out.println(); } } System.out.println("Debug complete!"); } } @Mod.EventHandler public void onServerStarted(<API key> event) { //moved here so the world is loaded and we can make sure the chunk is too if(config.doEvents && config.isEvent && pixelmonPresent) { pge.generate(eventWorld); } } @Mod.EventHandler public void serverStop(<API key> event) { killAllStreams(); } /** * Fix dem spaces and don't break saves, ty Haxxy * * @param event */ @Mod.EventHandler public void <API key>(<API key> event) { <API key>.<API key>(event); } public static void killAllStreams() { for (VLCPlayer p : playerList) { p.stop(); } for (VLCPlayer p : battleMusicList) { p.stop(); } PUTickHandler.playerRadio.stop(); } /** * Add Pack Meta Data */ private void AddMeta(<API key> event) { ModMetadata m = event.getModMetadata(); // This is required or it will not work m.autogenerated = false; // This is required otherwise it will not work m.modId = Basemod.MODID; m.version = Basemod.VERSION; m.name = Basemod.NAME; m.url = ""; m.updateUrl = ""; //m.description = "A mod that adds Pokemon blocks and items into Pixelmon"; //m.description = "Happy Halloween >=D"; m.description = "Welcome to Pixeltopia"; m.authorList.add("AnDwHaT5"); m.authorList.add("Clienthax"); m.authorList.add("MoeBoy76"); m.credits = "The PixelUtilities Team"; } }
package de.bpmnaftool.model.aristaflow.fileio; import java.io.File; import java.io.IOException; import de.bpmnaftool.model.aristaflow.AristaFlowModel; public interface AristaFlowXmlWriter { /** * Sets a new file and checks its existence * * @param file * where to write the XML * @throws IOException */ void setFile(File file) throws IOException; /** * Returns the file name * * @return name of file */ String getFile(); /** * Writes the given AristaFlowModel to the file which is set using setFile(...) * * @param aristaFlowModel * model to write to file */ void write(AristaFlowModel aristaFlowModel); }
// XrefFileScope.h: interface for the CXrefFileScope class. #if !defined(<API key>) #define <API key> #include "SortedStringMap.h" // Added by ClassView #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 class CXref; class CXrefFind; class CXrefFileScope : public CObList { friend class CXrefItem; public: CXrefFileScope(); virtual ~CXrefFileScope(); DECLARE_SERIAL(CXrefFileScope) void Serialize( CArchive& archive ); BOOL ReadFromFile(ifstream &StreamIn,CXref &XrefScope); BOOL FindDefinitions(CStringArray &DefinitionList,CXrefFind &FindScope); CXrefDefinition * FindDefinition(CXrefFind &FindScope); StringId MatchLocation(const CString &sLocation); BOOL FindReferences(CStringArray &DefinitionList,CXrefFind &FindScope); // OSAI-Feature 22.03.04 SIS >> BOOL FindDefs(CSortedStringMap& rastrDefs, CXrefFind &FindScope); BOOL FindRefs(CSortedStringMap& rastrRefs, CXrefFind &FindScope); // OSAI-Feature 22.03.04 SIS << StringId GetScopeNameId(); CString GetLocation(); protected: CXrefItem *FindItem(StringId ItemName); int m_iVersion; StringId m_ScopeName; int m_iDate; CString m_sGuid; CString m_sLanguage; CString m_sLocation; }; #endif // !defined(<API key>)
#ifndef DATASTORE_H #define DATASTORE_H #include "logOutput.h" class dataStore { public: dataStore(); void setupLogOutput(logOutput *log); void print(FILE *stream=stderr); QByteArray toByteArray(); dataStore fromByteArray(QByteArray data); float roll, pitch, heading; // Primary IMU outputs float rollRate, pitchRate, headingRate; // Secondary IMU outputs // GPS-Related values double latitude, longitude; // Position from GPS float track, speedOverGround; // Track over ground, Speed over ground in m/s int fixType, actSats; float mdop, hdop, vdop; }; #endif
'use strict'; var moment = require('moment'); var Info = require('./models/Info'); var WebNotification = require('./models/WebNotification'); var async = require('async'); module.exports = { deleteOldInfo() { var now = moment().utc().format(); var self = this; Info.find({expirydate: {$lt: now} }, function(err, infos) { async.each(infos, function(info, callback) { info.remove(function(err, result) { if(err) { console.log('Error when trying to delete old infos'); return; } self.cleanNotifications(result._id); }); }); console.log(''); }); }, cleanNotifications (infoID) { WebNotification.remove({infoID: infoID}, function(err) { if(err) { console.log('Error when trying to delete Webnotification subscription'); return; } }); } };
(function() { var QuizeeConfig; angular.module("quizee", ['ui.router', 'quizee.srv', 'quizee.drt']); angular.module("quizee.srv", []); angular.module("quizee.drt", []); QuizeeConfig = function($stateProvider, $urlRouterProvider) { $stateProvider.state('home', { url: '/home', templateUrl: 'home.html', abstract: true }).state('home.dashbord', { url: '/dashbord', abstract: true, views: { 'header': { templateUrl: 'header-unco.html' }, 'sidemenu': { templateUrl: 'sidemenu.html' }, 'maincontent': { templateUrl: 'maincontent.html' } } }).state('home.dashbord.quizee', { url: '/quizee', templateUrl: 'quizee-content.html' }).state('home.dashbord.cours', { url: '/cours', templateUrl: 'cours.html' }).state('user', { url: '/user', templateUrl: 'home-co.html', abstract: true }).state('user.dashbord', { url: '/dashbord', abstract: true, views: { 'header': { templateUrl: 'header-co.html' }, 'sidemenu': { templateUrl: 'sidemenu-co.html' }, 'maincontent': { templateUrl: 'maincontent.html' }, 'infouser': { templateUrl: 'info-user.html' } } }).state('user.dashbord.quizee', { url: '/quizee', templateUrl: 'quizee-content.html' }).state('user.dashbord.cours', { url: '/cours', templateUrl: 'cours.html' }); $urlRouterProvider.otherwise('/home/dashbord/quizee'); }; QuizeeConfig.$inject = ['$stateProvider', '$urlRouterProvider']; angular.module("quizee").config(QuizeeConfig); })();
#ifndef <API key> #define <API key> #include <QObject> #include <QVariantMap> #include "typedefs.h" #include "databasecommand.h" #include "dllmacro.h" class DLLEXPORT <API key> : public DatabaseCommand { Q_OBJECT public: enum SortOrder { None = 0, ModificationTime = 1 }; enum SortAscDesc { NoOrder = 0, Ascending = 1, Descending = 2 }; explicit <API key>( const Tomahawk::source_ptr& s, QObject* parent = 0 ) : DatabaseCommand( s, parent ) , m_limitAmount( 0 ) , m_sortOrder( None ) , m_sortDescending( false ) {} virtual void exec( DatabaseImpl* ); virtual bool doesMutates() const { return false; } virtual QString commandname() const { return "loadallplaylists"; } void setLimit( unsigned int limit ) { m_limitAmount = limit; } void setSortOrder( SortOrder order ) { m_sortOrder = order; } void setSortDescending( bool descending ) { m_sortDescending = descending; } signals: void done( const QList<Tomahawk::playlist_ptr>& playlists ); private: unsigned int m_limitAmount; SortOrder m_sortOrder; bool m_sortDescending; }; #endif // <API key>
<?php defined('BASEPATH') OR exit('No direct script access allowed.'); $config['useragent'] = 'PHPMailer'; // Mail engine switcher: 'CodeIgniter' or 'PHPMailer' $config['protocol'] = 'smtp'; // 'mail', 'sendmail', or 'smtp' $config['mailpath'] = '/usr/sbin/sendmail'; $config['smtp_host'] = 'smtp.gmail.com'; $config['smtp_user'] = 'ThePOPTracker@gmail.com'; $config['smtp_pass'] = 'W!spe4E6paza{fA}'; $config['smtp_port'] = 587; $config['smtp_timeout'] = 30; // (in seconds) $config['smtp_crypto'] = 'tls'; // '' or 'tls' or 'ssl' $config['smtp_debug'] = 0; // PHPMailer's SMTP debug info level: 0 = off, 1 = commands, 2 = commands and data, 3 = as 2 plus connection status, 4 = low level data output. $config['smtp_auto_tls'] = true; // Whether to enable TLS encryption automatically if a server supports it, even if `smtp_crypto` is not set to 'tls'. $config['smtp_conn_options'] = array(); // SMTP connection options, an array passed to the function <API key>() when connecting via SMTP. $config['wordwrap'] = true; $config['wrapchars'] = 76; $config['mailtype'] = 'html'; // 'text' or 'html' $config['charset'] = 'UTF-8'; // 'UTF-8', 'ISO-8859-15', ...; NULL (preferable) means config_item('charset'), i.e. the character set of the site. $config['validate'] = true; $config['priority'] = 3; $config['crlf'] = "\n"; // "\r\n" or "\n" or "\r" $config['newline'] = "\n"; // "\r\n" or "\n" or "\r" $config['bcc_batch_mode'] = false; $config['bcc_batch_size'] = 200; $config['encoding'] = '8bit'; // The body encoding. For CodeIgniter: '8bit' or '7bit'. For PHPMailer: '8bit', '7bit', 'binary', 'base64', or 'quoted-printable'. // DKIM Signing // See https://github.com/PHPMailer/PHPMailer/blob/v5.2.14/test/phpmailerTest.php#L1708 $config['dkim_domain'] = ''; // DKIM signing domain name, for exmple 'example.com'. $config['dkim_private'] = ''; // DKIM private key, set as a file path. $config['dkim_private_string'] = ''; // DKIM private key, set directly from a string. $config['dkim_selector'] = ''; // DKIM selector. $config['dkim_passphrase'] = ''; // DKIM passphrase, used if your key is encrypted. $config['dkim_identity'] = ''; // DKIM Identity, usually the email address used as the source of the email.
import java.sql.Timestamp; import java.util.ArrayList; import java.io.IOException; import java.nio.charset.Charset; import java.util.Arrays; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import java.util.List; public class Reader { public static class Data { Timestamp[] ts; String[] nameColumn; double[][] columns; public void setTimeStamp(Timestamp[] newTS) { this.ts = newTS; } public void setColumnName(String[] newCN) { this.nameColumn = newCN; } public void setColumn(double[][] newC) { this.columns = newC; } } public Data readFromFile(String fileName, String separatorChar) throws IOException { Data result = new Data(); Path p = Paths.get("", fileName); Charset c = Charset.forName("UTF-8"); List<String> file = Files.readAllLines(p, c); ArrayList<Timestamp> timeStamp = new ArrayList<>(); boolean start = false, sWrong = true; String[] fields = null; double[][] columns = null; int currentID = 0, lowPos = 0, highPos = 0; for(String line : file) { if(start) { String[] parts = line.split("[" + separatorChar + "]"); int indexF = 0; for(int i = 0; i < parts.length; i++) { if(fields[i].equals("ts")) { timeStamp.add(Timestamp.valueOf(parts[i])); } else { columns[indexF][currentID] = Double.parseDouble(parts[i]); indexF += 1; } } currentID += 1; } else { fields = line.split("[" + separatorChar + "]"); for(int i = 0; i < fields.length; i++) { if(fields[i].equals("timestamp") || fields[i].equals("datahora") || fields[i].equals("time-stamp")) { fields[i] = "ts"; } else if(fields[i].equals("average") || fields[i].equals("media") || fields[i].equals("média") || fields[i].equals("preco_medio")) { fields[i] = "avg"; } else if(fields[i].equals("abertura") || fields[i].equals("o")) { fields[i] = "open"; } else if(fields[i].equals("max") || fields[i].equals("máximo") || fields[i].equals("maximo")) { fields[i] = "high"; } else if(fields[i].equals("min") || fields[i].equals("mínima")) { fields[i] = "low"; } else if(fields[i].equals("fecho") || fields[i].equals("fechamento")) { fields[i] = "close"; } else if(fields[i].equals("volume")) { fields[i] = "vol"; } } columns = new double[fields.length-1][file.size()-1]; start = true; } } ArrayList<String> formatFields = new ArrayList<String>(Arrays.asList(fields)); Timestamp[] formatTS = timeStamp.toArray(new Timestamp[0]); formatFields.remove("ts"); fields = formatFields.toArray(new String[0]); for(int i = 0; i < fields.length; i++) { if(fields[i].equals("low")) { lowPos = i; } else if(fields[i].equals("high")) { highPos = i; } } if(highPos > lowPos) { double[] hC = columns[highPos]; double[] lC = columns[lowPos]; columns[lowPos] = hC; columns[highPos] = lC; fields[lowPos] = "high"; fields[highPos] = "low"; } int mainPos = -1; int secundaryPos = -1; for(int i = 0; i < fields.length; i++) { if(fields[i].equals("vol") || fields[i].equals("close") || fields[i].equals("open") || fields[i].equals("low") || fields[i].equals("high") || fields[i].equals("avg")) { mainPos = i; } else if(secundaryPos == -1) { secundaryPos = i; } } if(mainPos > secundaryPos && secundaryPos != -1) { String[] auxS = new String[fields.length]; auxS[0] = fields[mainPos]; int aux = 1; for(int i = 0; i < fields.length; i++) { if(!fields[i].equals(fields[mainPos])) { auxS[aux] = fields[i]; aux += 1; } } fields = auxS; double[][] auxC = new double[fields.length][file.size()-1]; auxC[0] = columns[mainPos]; aux = 1; for(int i = 0; i < columns.length; i++) { if(columns[i] != columns[mainPos]) { auxC[aux] = columns[i]; aux += 1; } } columns = auxC; } if(fields.length >= 8) { if(fields[6].equals("ts_min")) { String[] auxS = fields; int aux = 0; for(int i = 1; i < 6; i++) { auxS[aux] = fields[i]; aux += 1; } auxS[5] = "vol"; fields = auxS; double[][] auxC = columns; aux = 0; double[] fix = columns[0]; for(int i = 1; i < 6; i++) { auxC[aux] = columns[i]; aux += 1; } auxC[5] = fix; columns = auxC; } } result.setTimeStamp(formatTS); result.setColumnName(fields); result.setColumn(columns); return result; } }
# -*- coding: utf-8 -*- # Brandeis - A tool to convert plaintext court cases (from the lochner # This program is free software: you can redistribute it and/or modify # (at your option) any later version. # This program is distributed in the hope that it will be useful, # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the from validator import Validator from bexceptions import * import os, unittest class TestFileValidation(unittest.TestCase): '''Test functions that validate the input files.''' def setUp(self): pass def tearDown(self): self.buffer.close() def <API key>(self): with open('buffer.txt', 'w', encoding='utf-8') as self.buffer: self.buffer.write('\n\n\t\t\t\t<h1>Person v. Person - 100 U.S. 25 (2000)</h1>') v = Validator('buffer.txt') try: v.<API key>() except: self.fail('Validator did not pass a good title.') def <API key>(self): with open('buffer.txt', 'w', encoding='utf-8') as self.buffer: self.buffer.write('\n\n\t\t\t\t<div></div><h1>Person v. Person - 100 U.S. 25 (2000)</h1>') v = Validator('buffer.txt') with self.assertRaises(BadTitle, msg='Validator passed a title that was not at the ' 'beginning of the file.'): v.<API key>() def testNoTitle(self): with open('buffer.txt', 'w', encoding='utf-8') as self.buffer: self.buffer.write('\n\n\t\t\t') v = Validator('buffer.txt') with self.assertRaises(BadTitle, msg='Validator passed a file with no title.'): v.<API key>() def testGoodTitleParts(self): with open('buffer.txt', 'w', encoding='utf-8') as self.buffer: self.buffer.write('\t\t\t\t<h1>Foo v. Bar - 100 U.S. 200 (2013)</h1><div>Extra stuff</div>') v = Validator('buffer.txt') try: v.validateTitleParts() except: self.fail('Validator did not pass a title with good parts.') def <API key>(self): with open('buffer.txt', 'w', encoding='utf-8') as self.buffer: self.buffer.write('\t\t\t<h1>Group of Cases - 100 U.S. 200 (2013)</h1>\t\t\t') v = Validator('buffer.txt') with self.assertRaises(GroupedCase, msg='Validator failed to identify a group of cases' ' as such.'): v.validateTitleParts() def testBadTitleDate(self): with open('buffer.txt', 'w', encoding='utf-8') as self.buffer: self.buffer.write('<h1>Foo v. Bar - 100 U.S. 200 (203)</h1>') v = Validator('buffer.txt') with self.assertRaises(BadTitle, msg='Validator passed a title containing an improperly' 'formatted date.'): v.validateTitleParts() def testBadTitleNumber(self): with open('buffer.txt', 'w', encoding='utf-8') as self.buffer: self.buffer.write('<h1>Foo v. Bar - U.S. 200 (2013)</h1>') v = Validator('buffer.txt') with self.assertRaises(BadTitle, msg='Validator passed a title containing an improperly' 'formatted case number.'): v.validateTitleParts() if __name__ == "__main__": unittest.main() try: os.remove('buffer.txt') except: pass
#ifndef VX_DEFINES_H #define VX_DEFINES_H /* aliases for commonly used values, characters, etc */ #define VX_TRUE 1 #define VX_FALSE 0 /* aliases for various short strings */ #define VX_STR_VX "VX" #define VX_STR_DELTA "Delta" #define VX_STR_EPSILON "Epsilon" #define VX_STR_YALGETH "Yalgeth" #define VX_STR_PONIES "I like ponies" #define VX_STR_BADGER "Badger" #define VX_STR_MUSHROOM "Mushroom" #define VX_STR_SNAKE "Snake" /* format strings */ #define VX_FMT_INT "%d" #define VX_FMT_NUM "%g" /* configuration options */ #define VX_CONFIG_DIR "vx.dir" #define VX_CONFIG_PATH "vx.path" #define VX_CONFIG_MODDIR "vx.module_dir" #define VX_CONFIG_MODEXT "vx.module_ext" #define VX_CONFIG_MODPATH "vx.module_path" /* dummy arguments(s) as a fallback for generating error messages */ #define VX_WTF "<?>" #define VX_WTFS VX_WTF, VX_WTF, VX_WTF, VX_WTF, VX_WTF /* default setting for various internals */ #define VX_BUFFER_SIZE 256 /* size of VX name lookup buffers */ #define VX_MESSAGE_SIZE 2048 /* size of message/error buffers */ #define VX_HASH_DENSITY 5 /* max hash density before resizing */ #define VX_YALGETH_LIMIT 0.88 /* you know what this is, right? */ #define VX_VECTOR_SIZE 32 /* # of vectors allocated per slab */ #define VX_TYPES_SIZE 32 /* # of data types (Nan-tagged) */ #define VX_TYPES_RESERVED 16 /* # of reserved data types */ #define VX_QUENCH_LIMIT 4.20 /* Do NOT change these values unless */ #define VX_QUENCH_THIRST 99 /* you want to lose your body hair! */ #define VX_IS_ONE_PRIME "no" /* one is not prime */ #define VX_REDDIT_UID "abw" /* Hello World! This is me! */ #define VX_PAGING "juarez" /* please pick up white courtesty phone */ #define VX_FLAG_VERBOSE 0x00001 /* verbose messages enabled */ #define VX_FLAG_DEBUG 0x00002 /* enable debugging */ #define VX_FLAG_CHEESE 0x00004 /* a nice English cheddar, perhaps */ #define VX_FLAG_BISCUITS 0x00008 /* I like the Hovis ones */ #define VX_FLAG_BADGER 0x00010 /* Note: English badger (cute), not US */ #define VX_FLAG_SNAKE 0x00020 /* Hissing Sid */ #define VX_FLAG_MUSHROOM 0x00040 /* Liberty caps, no doubt */ #define VX_FLAG_YALGETH 0x00080 /* my heroine */ #define VX_FLAG_PREFIX 0x00100 /* before VX my life was a void */ #define VX_FLAG_POSTFIX 0x00400 /* after VX I am three wolves howling */ #define VX_FLAG_POSTMARK 0x00800 /* at the moon */ #endif /* VX_DEFINES_H */
layout: post title: "Component Communication" image: <API key>.jpg date: 2018-05-15 09:32:11 -0400 categories: Angular If you're familiar with AngularJS, then you know all about `$scope`. Every controller has a `$scope` object and you can use these guys to broadcast and emit changes from one controller to another. Well, ideally, you'd emit up to a _parent_ or container controller and then broadcast back down the chain to a sibling of the emit controller. What the hay, man? Angular doesn't use the `$scope` object now. How do I make the thing go? ## The Angular Way of Component Communication Angular's mode of component comunicado is a bit different. This article is just going to focus on sending data 'down' the chain to a _child_ or nested component. Without the `$scope` object to hook into we need more of a direct method for our pieces to speak to one another. What we need is the `@Input` decorator. This guy sets a class's property to receive 'input'. But input from what, from where? Some examples might fill in the holes. ## Child Component Inside our child we're going to decorate a property to accept input from its parent component. typescript import { Component, Input } from '@angular/core'; // import Input symbol @Component({ selector: 'child', template: ` <p>{% raw %}{{ dataFromParent }}{% endraw %}<p> <!-- show data from parent --> ` }) export class ChildComponent { @Input() dataFromParent: string; // decorate property to accept input } ## Parent Component Then, we call our child selector from within the parent. That way we can set the value of the child's property as an element attribute that's exposed to its parent. It's a typical child/parent relationship -- the parent just gives and gives and give while the child takes and takes and takes ;) typescript @Component({ selector: 'parent', template: ` <!-- we point the child's attribute toward our parent's property --> <child [dataFromParent='favoriteMuppet']></child> ` }) export class ParentComponent { public favoriteMuppet = 'Oscar The Grouch'; } Now, we've got one way data flowing from parent to child. Stay tuned to see how we turn this around and get data back up to the parent. Think of it as backtalk. We're about to give the parent a piece of our mind.
'''Proxy support for HTTP requests.''' import asyncio import base64 import io import logging import wpull.string from wpull.errors import NetworkError from wpull.network.pool import ConnectionPool from wpull.protocol.http.request import RawRequest from wpull.protocol.http.stream import Stream _logger = logging.getLogger(__name__) class <API key>(ConnectionPool): '''Establish pooled connections to a HTTP proxy. Args: proxy_address (tuple): Tuple containing host and port of the proxy server. connection_pool (:class:`.connection.ConnectionPool`): Connection pool proxy_ssl (bool): Whether to connect to the proxy using HTTPS. authentication (tuple): Tuple containing username and password. ssl_context: SSL context for SSL connections on TCP tunnels. host_filter (:class:`.proxy.hostfilter.HostFilter`): Host filter which for deciding whether a connection is routed through the proxy. A test result that returns True is routed through the proxy. ''' def __init__(self, proxy_address, *args, proxy_ssl=False, authentication=None, ssl_context=True, host_filter=None, **kwargs): super().__init__(*args, **kwargs) self._proxy_address = proxy_address self._proxy_ssl = proxy_ssl self._authentication = authentication self._ssl_context = ssl_context self._host_filter = host_filter if authentication: self._auth_header_value = 'Basic {}'.format( base64.b64encode( '{}:{}'.format(authentication[0], authentication[1]) .encode('ascii') ).decode('ascii') ) else: self._auth_header_value = None self._connection_map = {} @asyncio.coroutine def acquire(self, host, port, use_ssl=False, host_key=None): yield from self.acquire_proxy(host, port, use_ssl=use_ssl, host_key=host_key) @asyncio.coroutine def acquire_proxy(self, host, port, use_ssl=False, host_key=None, tunnel=True): '''Check out a connection. This function is the same as acquire but with extra arguments concerning proxies. Coroutine. ''' if self._host_filter and not self._host_filter.test(host): connection = yield from \ super().acquire(host, port, use_ssl, host_key) return connection host_key = host_key or (host, port, use_ssl) proxy_host, proxy_port = self._proxy_address connection = yield from super().acquire( proxy_host, proxy_port, self._proxy_ssl, host_key=host_key ) connection.proxied = True _logger.debug('Request for proxy connection.') if connection.closed(): _logger.debug('Connecting to proxy.') yield from connection.connect() if tunnel: yield from self._establish_tunnel(connection, (host, port)) if use_ssl: ssl_connection = yield from connection.start_tls(self._ssl_context) ssl_connection.proxied = True ssl_connection.tunneled = True self._connection_map[ssl_connection] = connection connection.wrapped_connection = ssl_connection return ssl_connection if connection.wrapped_connection: ssl_connection = connection.wrapped_connection self._connection_map[ssl_connection] = connection return ssl_connection else: return connection @asyncio.coroutine def release(self, proxy_connection): connection = self._connection_map.pop(proxy_connection, proxy_connection) yield from super().release(connection) def no_wait_release(self, proxy_connection): connection = self._connection_map.pop(proxy_connection, proxy_connection) super().no_wait_release(connection) @asyncio.coroutine def _establish_tunnel(self, connection, address): '''Establish a TCP tunnel. Coroutine. ''' host = '[{}]'.format(address[0]) if ':' in address[0] else address[0] port = address[1] request = RawRequest('CONNECT', '{0}:{1}'.format(host, port)) self.add_auth_header(request) stream = Stream(connection, keep_alive=True) _logger.debug('Sending Connect.') yield from stream.write_request(request) _logger.debug('Read proxy response.') response = yield from stream.read_response() if response.status_code != 200: debug_file = io.BytesIO() _logger.debug('Read proxy response body.') yield from stream.read_body(request, response, file=debug_file) debug_file.seek(0) _logger.debug(ascii(debug_file.read())) if response.status_code == 200: connection.tunneled = True else: raise NetworkError( 'Proxy does not support CONNECT: {} {}' .format(response.status_code, wpull.string.printable_str(response.reason)) ) def add_auth_header(self, request): '''Add the username and password to the HTTP request.''' if self._authentication: request.fields['Proxy-Authorization'] = self._auth_header_value
package dsq.ersatz.db.plant; import android.widget.SimpleCursorAdapter; public interface PlantViewBinder extends SimpleCursorAdapter.ViewBinder { }
module.exports = function (Napchart) { // import styles require('./styles')(Napchart) Napchart.draw = { fullDraw: fullDraw, drawFrame: draw, benchmark: benchmark } var clear = require('./clear') var tasks = [ // // - face function(chart){ if(typeof Napchart.draw.ocanvas != 'undefined'){ chart.ctx.drawImage(Napchart.draw.ocanvas, 0, 0) } }, // - content // -- bars require('./content/bars'), // -- handles require('./content/handles'), // -- handleTimes require('./content/handleTimes'), // -- text require('./content/text'), // -- distances require('./content/distances'), // -- metaText require('./content/metaText'), ] var faceTasks = [ // -- circles require('./face/background'), // -- circles require('./face/circles'), // -- lines require('./face/lines'), // -- text require('./face/text'), ] function fullDraw(chart) { var ctx = chart.ctx ctx.font = chart.config.fontSize + 'px ' + chart.config.font ctx.textAlign = 'center' ctx.textBaseline = 'middle' clear(chart) if(typeof document == 'undefined'){ // we are in a node environment // dont do the offscreen thing faceTasks.forEach(function(task) { task(chart, chart.ctx) }) tasks.forEach(function(task) { task(chart, chart.ctx) }) } else { Napchart.draw.ocanvas = document.createElement('canvas') Napchart.draw.ocanvas.width = chart.width Napchart.draw.ocanvas.height = chart.height var octx = Napchart.draw.ocanvas.getContext('2d') var <API key> = Object.assign({}, chart, {ctx: octx}) faceTasks.forEach(function(task) { task(<API key>, octx) }) draw(chart) } } function draw(chart) { clear(chart) tasks.forEach(function(task) { task(chart, Napchart) }) } function benchmark(chart) { var iterations = 1000 var bigstart = Date.now() for (task in tasks) { var start = Date.now() for (var i = 0; i < iterations; i++) { tasks[task](chart, Napchart) } var end = Date.now() console.log(`${task} x ${iterations} ` + (end-start) + ' ms') } var bigend = Date.now() console.log(`Total: ` + (bigend-bigstart) + ' ms') console.log(`One round: ` + ((bigend-bigstart)/iterations) + ' ms') } }
#!/usr/bin/env bash # used in travis to: # - build libsodium git clone https://github.com/jedisct1/libsodium.git cd libsodium git checkout tags/1.0.8 ./autogen.sh ./configure --prefix=$HOME/installed_libsodium && \ make -j$(nproc) && \ make install cd ..
#include "<API key>.h" <API key>::<API key>(int iterations, double timeout, const QString &shortDescription, const QString &longDescription, const QString &iconFileName, QObject *parent) : AMLoopActionInfo3(iterations, shortDescription, longDescription, iconFileName, parent) { timeoutTime_ = timeout; } <API key>::~<API key>() { } AMActionInfo3 *<API key>::createCopy() const { AMActionInfo3 *info = new <API key>(*this); info->dissociateFromDb(true); return info; } void <API key>::setTimeoutTime(double newTime) { if (newTime != timeoutTime_){ timeoutTime_ = newTime; setModified(true); emit timeoutTimeChanged(timeoutTime_); } }
<!DOCTYPE html> <html lang="en" class="no-js"> <head> <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Unity - Scripting API: DeviceType.Desktop</title> <meta name="description" content="Develop once, publish everywhere! Unity is the ultimate tool for video game development, architectural visualizations, and interactive media installations - publish to the web, Windows, OS X, Wii, Xbox 360, and iPhone with many more platforms to come." /> <meta name="author" content="Unity Technologies" /> <link rel="shortcut icon" href="../StaticFiles/images/favicons/favicon.ico" /> <link rel="icon" type="image/png" href="../StaticFiles/images/favicons/favicon.png" /> <link rel="<API key>" sizes="152x152" href="../StaticFiles/images/favicons/<API key>.png" /> <link rel="<API key>" sizes="144x144" href="../StaticFiles/images/favicons/<API key>.png" /> <link rel="<API key>" sizes="120x120" href="../StaticFiles/images/favicons/<API key>.png" /> <link rel="<API key>" sizes="114x114" href="../StaticFiles/images/favicons/<API key>.png" /> <link rel="<API key>" sizes="72x72" href="../StaticFiles/images/favicons/<API key>.png" /> <link rel="<API key>" href="../StaticFiles/images/favicons/apple-touch-icon.png" /> <meta name="<API key>" content="#222c37" /> <meta name="<API key>" content="../StaticFiles/images/favicons/tileicon-144x144.png" /> <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-2854981-1']); _gaq.push(['_setDomainName', 'unity3d.com']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https: var s = document.<API key>('script')[0]; s.parentNode.insertBefore(ga, s); })(); </script> <script type="text/javascript" src="../StaticFiles/js/jquery.js"> </script> <script type="text/javascript" src="docdata/toc.js">//toc</script> <!--local TOC <script type="text/javascript" src="docdata/global_toc.js">//toc</script> <!--global TOC, including other platforms <script type="text/javascript" src="../StaticFiles/js/core.js"> </script> <link href="http://fonts.googleapis.com/css?family=Open+Sans:400,700,400italic" rel="stylesheet" type="text/css" /> <link rel="stylesheet" type="text/css" href="../StaticFiles/css/core.css" /> </head> <body> <div class="header-wrapper"> <div id="header" class="header"> <div class="content"> <div class="spacer"> <div class="menu"> <div class="logo"> <a href="http://docs.unity3d.com"> </a> </div> <div class="search-form"> <form action="30_search.html" method="get" class="apisearch"> <input type="text" name="q" placeholder="Search scripting..." autosave="Unity Reference" results="5" class="sbox field" id="q"> </input> <input type="submit" class="submit"> </input> </form> </div> <ul> <li> <a href="http://docs.unity3d.com">Overview</a> </li> <li> <a href="../Manual/index.html">Manual</a> </li> <li> <a href="../ScriptReference/index.html" class="selected">Scripting API</a> </li> </ul> </div> </div> <div class="more"> <div class="filler"> </div> <ul> <li> <a href="http://unity3d.com/">unity3d.com</a> </li> </ul> </div> </div> </div> <div class="toolbar"> <div class="content clear"> <div class="lang-switcher hide"> <div class="current toggle" data-target=".lang-list"> <div class="lbl">Language: <span class="b">English</span></div> <div class="arrow"> </div> </div> <div class="lang-list" style="display:none;"> <ul> <li> <a href="">English</a> </li> </ul> </div> </div> <div class="script-lang"> <ul> <li class="selected" data-lang="CS">C <li data-lang="JS">JS</li> </ul> <div id="script-lang-dialog" class="dialog hide"> <div class="dialog-content clear"> <h2>Script language</h2> <div class="close"> </div> <p class="clear">Select your preferred scripting language. All code snippets will be displayed in this language.</p> </div> </div> </div> </div> </div> </div> <div id="master-wrapper" class="master-wrapper clear"> <div id="sidebar" class="sidebar"> <div class="sidebar-wrap"> <div class="content"> <div class="sidebar-menu"> <div class="toc"> <h2>Scripting API</h2> </div> </div> <p> <a href="40_history.html" class="cw">History</a> </p> </div> </div> </div> <div id="content-wrap" class="content-wrap"> <div class="content-block"> <div class="content"> <div class="section"> <div class="mb20 clear"> <h1 class="heading inherit"> <a href="DeviceType.html">DeviceType</a>.Desktop</h1> <div class="clear"> </div> <div class="clear"> </div> <div class="suggest"> <a class="blue-btn sbtn">Suggest a change</a> <div class="suggest-wrap rel hide"> <div class="loading hide"> <div> </div> <div> </div> <div> </div> </div> <div class="suggest-success hide"> <h2>Success!</h2> <p>Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.</p> <a class="gray-btn sbtn close">Close</a> </div> <div class="suggest-failed hide"> <h2>Sumbission failed</h2> <p>For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.</p> <a class="gray-btn sbtn close">Close</a> </div> <div class="suggest-form clear"> <label for="suggest_name">Your name</label> <input id="suggest_name" type="text"> </input> <label for="suggest_email">Your email</label> <input id="suggest_email" type="email"> </input> <label for="suggest_body" class="clear">Suggestion <span class="r">*</span></label> <textarea id="suggest_body" class="req"> </textarea> <button id="suggest_submit" class="blue-btn mr10">Submit suggestion</button> <p class="mb0"> <a class="cancel left lh42 cn">Cancel</a> </p> </div> </div> </div> <a href="" class="switch-link gray-btn sbtn left hide">Switch to Manual</a> <div class="clear"> </div> </div> <div class="subsection"> <div class="signature"> <div class="signature-JS sig-block"> </div> <div class="signature-CS sig-block"> </div> </div> </div> <div class="subsection"> <h2>Description</h2> <p>Desktop or laptop computer.</p> </div> </div> <div class="footer-wrapper"> <div class="footer clear"> <div class="copy">Copyright © 2014 Unity Technologies</div> <div class="menu"> <a href="http://unity3d.com/learn">Learn</a> <a href="http://unity3d.com/community">Community</a> <a href="http://unity3d.com/asset-store">Asset Store</a> <a href="https://store.unity3d.com">Buy</a> <a href="http://unity3d.com/unity/download">Download</a> </div> </div> </div> </div> </div> </div> </div> </body> </html>
<?php require_once("../resources/config.php"); ?> <?php include(TEMPLATE_FRONT.DS."header.php"); ?> <!-- Page Content --> <div class="container"> <div class="row"> <!-- Categories here --> <?php include(TEMPLATE_FRONT.DS."side_nav.php"); ?> <div class="col-md-9"> <div class="row"> <?php get_products(); ?> </div> <! </div> </div> </div> <!-- /.container --> <?php include(TEMPLATE_FRONT.DS."footer.php"); ?>
\file maker.cpp \brief Implementation of Maker area in Decoding board \author Janie \version 1.0.0.0 \note Version When Who Remarks =========================================================================================================================== 0.0.0.1 14Sep2017 Janie First creation 1.0.0.0 25Sep2017 Janie First release #include <random> #include <QApplication> #include <QMainWindow> #include <QVBoxLayout> #include <QGridLayout> #include "maker.h" #include "comdef.h" #include "holematrix.h" \fn Maker::Maker \brief Default constructor - Init data member (allocate memory and set default values for all push controls in Breaker area) - Initialize color pattern (assumed created by maker) - Analyze the color pattern in order to compare with pattern from breaker - Initialize key matrix (holes) in maker area \param none \return none Maker::Maker(): pattern_matrix_{new HoleMatrix{comdef::makerarea::kDefNumOfRows, comdef::makerarea::<API key>}}, <API key>{new vector<comdef::<API key>>}, key_matrix_{new HoleMatrix{comdef::breakerarea::kDefNumOfRows, comdef::breakerarea::<API key>}} { InitPatternMatrix(); InitKeyMatrix(); } \fn Maker::~Maker \brief Destructor - Cleanup activities (Do nothing right now, shared_ptr variable will be destroyed automatically) \param none \return none Maker::~Maker(){} \fn Maker::GetPatternMatrix \brief Get pattern matrix (all of push buttons in Maker area) \param none \return shared_ptr<HoleMatrix> \brief color pattern matrix in Maker area shared_ptr<HoleMatrix> Maker::GetPatternMatrix(){ return pattern_matrix_; } \fn Maker::<API key> \brief Get analized color pattern from color pattern in Maker area \param none \return shared_ptr<vector<comdef::<API key>>> \brief analized color pattern shared_ptr<vector<comdef::<API key>>> Maker::<API key>(){ return <API key>; } \fn Maker::GetKeyMatrix \brief Get key matrix (holes) in Maker area \param none \return shared_ptr<HoleMatrix> \brief key matrix in Maker area shared_ptr<HoleMatrix> Maker::GetKeyMatrix(){ return key_matrix_; } \fn Maker::InitPatternMatrix \brief Initialize color pattern (assumed created by maker) \param none \return void void Maker::InitPatternMatrix() { QRect rect{comdef::decodingboard::pushbutton::kInitLargeRect}; uint16_t new_y = comdef::decodingboard::combobox::kInitRect.y() - comdef::decodingboard::pushbutton::kLargeHeight - comdef::decodingboard::pushbutton::kLargePadding - comdef::decodingboard::pushbutton::kSmallPadding; vector<QColor> color{comdef::color::kGreen, comdef::color::kBlue, comdef::color::kYellow, comdef::color::kLightGreen, comdef::color::kBrown, comdef::color::kRed, comdef::color::kLight}; random_device rand_dev; <API key> rand_en{rand_dev()}; <API key><int> uniform_dist(0, color.size() - 1); rect.moveTo(rect.x(), new_y); pattern_matrix_->InitHolesMatrix(rect, comdef::color::kLight, comdef::kEmptyString, comdef::decodingboard::kDefRowBreakIndex, &QPushButton::clicked, new CustomControls(), &CustomControls::SetQPushButtonColor, false); uint8_t num_of_holes = pattern_matrix_->GetNumOfHolesPerRow(); uint8_t cur_pattern_row = pattern_matrix_->GetNumOfRows() - 1; for(uint8_t cur_hole = 0; cur_hole < num_of_holes; cur_hole++) { int index_rand_val = uniform_dist(rand_en); QString style_sheet{comdef::color::kBgColorStyleText.arg(color[index_rand_val].name())}; pattern_matrix_->GetHoles()[cur_pattern_row][cur_hole]->setStyleSheet(style_sheet); } } \fn Maker::InitKeyMatrix \brief Initialize key matrix (holes) in maker area \param none \return void void Maker::InitKeyMatrix() { QRect rect(comdef::decodingboard::pushbutton::kInitSmallRect); uint16_t init_x = comdef::decodingboard::pushbutton::kInitX; uint16_t width_rect = comdef::decodingboard::pushbutton::kInitLargeRect.width(); uint8_t <API key> = pattern_matrix_->GetNumOfHolesPerRow(); uint16_t padding = comdef::decodingboard::pushbutton::kLargePadding; uint16_t new_x = init_x + <API key> * width_rect + (<API key> - 1) * padding + padding; rect.moveTo(new_x, rect.y()); key_matrix_->InitHolesMatrix(rect, comdef::color::kLight, comdef::kEmptyString, comdef::makerarea::kDefRowBreakIndex, &QPushButton::clicked, new CustomControls(), &CustomControls::SetQPushButtonColor, false); } \fn Maker::AnalyzeColorPattern \brief Analyze the color pattern in order to compare with pattern from breaker \param none \return const shared_ptr<vector<comdef::<API key>>>& \brief analized color pattern const shared_ptr<vector<comdef::<API key>>>& Maker::AnalyzeColorPattern() { uint8_t <API key> = GetPatternMatrix()->GetNumOfHolesPerRow(); vector<shared_ptr<QPushButton>> color_pattern{GetPatternMatrix()->GetHoles()[0]}; for(uint8_t cur_hole_index = 0; cur_hole_index < <API key>; cur_hole_index++) { bool existed = false; QColor cur_color = color_pattern[cur_hole_index]->palette().color(QPalette::Button); for(uint8_t color_index = 0; color_index < <API key>.get()->size(); color_index++) if(<API key>.get()->at(color_index).color == cur_color) { <API key>.get()->at(color_index).count++; existed = true; } if(!existed) <API key>.get()->push_back(comdef::<API key>{cur_color, 1}); } return <API key>; } \fn Maker::DrawPatternMatrix \brief Display color pattern matrix \param none \return void void Maker::DrawPatternMatrix() { QApplication* app = dynamic_cast<QApplication*>(QApplication::instance()); QMainWindow* main_window = nullptr; for(QWidget* widget: app->topLevelWidgets()) if(widget->inherits(comdef::mainwindow::kClassName.c_str())) main_window = dynamic_cast<QMainWindow*>(widget); unique_ptr<QVBoxLayout> outter_layout{new QVBoxLayout{main_window->centralWidget()}}; vector<vector<shared_ptr<QPushButton>>> pattern_hole_matrix = pattern_matrix_->GetHoles(); for(auto& row: pattern_hole_matrix) { unique_ptr<QHBoxLayout> row_layout{new QHBoxLayout}; for(auto& color_btn: row) row_layout->addWidget(color_btn.get()); outter_layout->addLayout(row_layout.get()); } AnalyzeColorPattern(); } \fn Maker::<API key> \brief Display color pattern matrix \param none \return void void Maker::<API key>() { vector<vector<shared_ptr<QPushButton>>> pattern_hole_matrix = pattern_matrix_->GetHoles(); for(vector<shared_ptr<QPushButton>>& row: pattern_hole_matrix) for(shared_ptr<QPushButton>& hole: row) hole->setVisible(true); } \fn Maker::HidePatternMatrix \brief Hide color pattern matrix \param none \return void void Maker::HidePatternMatrix() { vector<vector<shared_ptr<QPushButton>>> pattern_hole_matrix = pattern_matrix_->GetHoles(); for(vector<shared_ptr<QPushButton>>& row: pattern_hole_matrix) for(shared_ptr<QPushButton>& hole: row) hole->setVisible(false); } \fn Maker::DrawKeyMatrix \brief Display key matrix in Maker area \param none \return void void Maker::DrawKeyMatrix() { QApplication* app = dynamic_cast<QApplication*>(QApplication::instance()); QMainWindow* main_window = nullptr; for(QWidget* widget: app->topLevelWidgets()) if(widget->inherits(comdef::mainwindow::kClassName.c_str())) main_window = dynamic_cast<QMainWindow*>(widget); unique_ptr<QVBoxLayout> outter_layout{new QVBoxLayout{main_window->centralWidget()}}; vector<vector<shared_ptr<QPushButton>>> key_hole_matrix = key_matrix_->GetHoles(); for(auto& row: key_hole_matrix) { unique_ptr<QHBoxLayout> row_layout{new QHBoxLayout}; for(auto& key_btn: row) row_layout->addWidget(key_btn.get()); outter_layout->addLayout(row_layout.get()); } } \fn Maker::SetKeyColor \brief Set color for push button in key matrix \param row_idx \brief index of row (corresponding with rows in Breaker area) \param color \brief color to be set \return void void Maker::SetKeyColor(uint8_t row_idx, const QColor& color) { QString style_sheet{comdef::color::kBgColorStyleText.arg(color.name())}; vector<vector<shared_ptr<QPushButton>>> key_hole_matrix = key_matrix_->GetHoles(); for(auto& key_button: key_hole_matrix[row_idx]) if(key_button->palette().color(QPalette::Button) == comdef::color::kLight) { key_button->setStyleSheet(style_sheet); break; } }
<?php // autoload_classmap.php @generated by Composer $vendorDir = dirname(dirname(__FILE__)); $baseDir = dirname($vendorDir); return array( 'PHPUnit\\Exception' => $vendorDir . '/phpunit/phpunit/src/Exception.php', 'PHPUnit\\Framework\\Assert' => $vendorDir . '/phpunit/phpunit/src/Framework/Assert.php', 'PHPUnit\\Framework\\<API key>' => $vendorDir . '/phpunit/phpunit/src/Framework/Exception/<API key>.php', 'PHPUnit\\Framework\\<API key>' => $vendorDir . '/phpunit/phpunit/src/Framework/Exception/<API key>.php', 'PHPUnit\\Framework\\Constraint\\ArrayHasKey' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/ArrayHasKey.php', 'PHPUnit\\Framework\\Constraint\\ArraySubset' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/ArraySubset.php', 'PHPUnit\\Framework\\Constraint\\Attribute' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/Attribute.php', 'PHPUnit\\Framework\\Constraint\\Callback' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/Callback.php', 'PHPUnit\\Framework\\Constraint\\ClassHasAttribute' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/ClassHasAttribute.php', 'PHPUnit\\Framework\\Constraint\\<API key>' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/<API key>.php', 'PHPUnit\\Framework\\Constraint\\Composite' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/Composite.php', 'PHPUnit\\Framework\\Constraint\\Constraint' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/Constraint.php', 'PHPUnit\\Framework\\Constraint\\Count' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/Count.php', 'PHPUnit\\Framework\\Constraint\\DirectoryExists' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/DirectoryExists.php', 'PHPUnit\\Framework\\Constraint\\Exception' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/Exception.php', 'PHPUnit\\Framework\\Constraint\\ExceptionCode' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/ExceptionCode.php', 'PHPUnit\\Framework\\Constraint\\ExceptionMessage' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/ExceptionMessage.php', 'PHPUnit\\Framework\\Constraint\\<API key>' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/<API key>.php', 'PHPUnit\\Framework\\Constraint\\FileExists' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/FileExists.php', 'PHPUnit\\Framework\\Constraint\\GreaterThan' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/GreaterThan.php', 'PHPUnit\\Framework\\Constraint\\IsAnything' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/IsAnything.php', 'PHPUnit\\Framework\\Constraint\\IsEmpty' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/IsEmpty.php', 'PHPUnit\\Framework\\Constraint\\IsEqual' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/IsEqual.php', 'PHPUnit\\Framework\\Constraint\\IsFalse' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/IsFalse.php', 'PHPUnit\\Framework\\Constraint\\IsFinite' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/IsFinite.php', 'PHPUnit\\Framework\\Constraint\\IsIdentical' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/IsIdentical.php', 'PHPUnit\\Framework\\Constraint\\IsInfinite' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/IsInfinite.php', 'PHPUnit\\Framework\\Constraint\\IsInstanceOf' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/IsInstanceOf.php', 'PHPUnit\\Framework\\Constraint\\IsJson' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/IsJson.php', 'PHPUnit\\Framework\\Constraint\\IsNan' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/IsNan.php', 'PHPUnit\\Framework\\Constraint\\IsNull' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/IsNull.php', 'PHPUnit\\Framework\\Constraint\\IsReadable' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/IsReadable.php', 'PHPUnit\\Framework\\Constraint\\IsTrue' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/IsTrue.php', 'PHPUnit\\Framework\\Constraint\\IsType' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/IsType.php', 'PHPUnit\\Framework\\Constraint\\IsWritable' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/IsWritable.php', 'PHPUnit\\Framework\\Constraint\\JsonMatches' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/JsonMatches.php', 'PHPUnit\\Framework\\Constraint\\<API key>' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/<API key>.php', 'PHPUnit\\Framework\\Constraint\\LessThan' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/LessThan.php', 'PHPUnit\\Framework\\Constraint\\LogicalAnd' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/LogicalAnd.php', 'PHPUnit\\Framework\\Constraint\\LogicalNot' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/LogicalNot.php', 'PHPUnit\\Framework\\Constraint\\LogicalOr' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/LogicalOr.php', 'PHPUnit\\Framework\\Constraint\\LogicalXor' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/LogicalXor.php', 'PHPUnit\\Framework\\Constraint\\ObjectHasAttribute' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/ObjectHasAttribute.php', 'PHPUnit\\Framework\\Constraint\\RegularExpression' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/RegularExpression.php', 'PHPUnit\\Framework\\Constraint\\SameSize' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/SameSize.php', 'PHPUnit\\Framework\\Constraint\\StringContains' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/StringContains.php', 'PHPUnit\\Framework\\Constraint\\StringEndsWith' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/StringEndsWith.php', 'PHPUnit\\Framework\\Constraint\\<API key>' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/<API key>.php', 'PHPUnit\\Framework\\Constraint\\StringStartsWith' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/StringStartsWith.php', 'PHPUnit\\Framework\\Constraint\\TraversableContains' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/TraversableContains.php', 'PHPUnit\\Framework\\Constraint\\<API key>' => $vendorDir . '/phpunit/phpunit/src/Framework/Constraint/<API key>.php', 'PHPUnit\\Framework\\<API key>' => $vendorDir . '/phpunit/phpunit/src/Framework/Exception/<API key>.php', 'PHPUnit\\Framework\\<API key>' => $vendorDir . '/phpunit/phpunit/src/Framework/<API key>.php', 'PHPUnit\\Framework\\Error\\Deprecated' => $vendorDir . '/phpunit/phpunit/src/Framework/Error/Deprecated.php', 'PHPUnit\\Framework\\Error\\Error' => $vendorDir . '/phpunit/phpunit/src/Framework/Error/Error.php', 'PHPUnit\\Framework\\Error\\Notice' => $vendorDir . '/phpunit/phpunit/src/Framework/Error/Notice.php', 'PHPUnit\\Framework\\Error\\Warning' => $vendorDir . '/phpunit/phpunit/src/Framework/Error/Warning.php', 'PHPUnit\\Framework\\Exception' => $vendorDir . '/phpunit/phpunit/src/Framework/Exception/Exception.php', 'PHPUnit\\Framework\\ExceptionWrapper' => $vendorDir . '/phpunit/phpunit/src/Framework/ExceptionWrapper.php', 'PHPUnit\\Framework\\<API key>' => $vendorDir . '/phpunit/phpunit/src/Framework/Exception/<API key>.php', 'PHPUnit\\Framework\\IncompleteTest' => $vendorDir . '/phpunit/phpunit/src/Framework/IncompleteTest.php', 'PHPUnit\\Framework\\IncompleteTestCase' => $vendorDir . '/phpunit/phpunit/src/Framework/IncompleteTestCase.php', 'PHPUnit\\Framework\\IncompleteTestError' => $vendorDir . '/phpunit/phpunit/src/Framework/Exception/IncompleteTestError.php', 'PHPUnit\\Framework\\<API key>' => $vendorDir . '/phpunit/phpunit/src/Framework/Exception/<API key>.php', 'PHPUnit\\Framework\\<API key>' => $vendorDir . '/phpunit/phpunit/src/Framework/Exception/<API key>.php', 'PHPUnit\\Framework\\<API key>' => $vendorDir . '/phpunit/phpunit/src/Framework/Exception/<API key>.php', 'PHPUnit\\Framework\\MockObject\\Api' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Api/Api.php', 'PHPUnit\\Framework\\MockObject\\<API key>' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Exception/<API key>.php', 'PHPUnit\\Framework\\MockObject\\Builder\\Identity' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Builder/Identity.php', 'PHPUnit\\Framework\\MockObject\\Builder\\InvocationMocker' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Builder/InvocationMocker.php', 'PHPUnit\\Framework\\MockObject\\Builder\\Match' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Builder/Match.php', 'PHPUnit\\Framework\\MockObject\\Builder\\MethodNameMatch' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Builder/MethodNameMatch.php', 'PHPUnit\\Framework\\MockObject\\Builder\\NamespaceMatch' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Builder/NamespaceMatch.php', 'PHPUnit\\Framework\\MockObject\\Builder\\ParametersMatch' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Builder/ParametersMatch.php', 'PHPUnit\\Framework\\MockObject\\Builder\\Stub' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Builder/Stub.php', 'PHPUnit\\Framework\\MockObject\\ConfigurableMethod' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/ConfigurableMethod.php', 'PHPUnit\\Framework\\MockObject\\<API key>' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Exception/<API key>.php', 'PHPUnit\\Framework\\MockObject\\Exception' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Exception/Exception.php', 'PHPUnit\\Framework\\MockObject\\Generator' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Generator.php', 'PHPUnit\\Framework\\MockObject\\<API key>' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Exception/<API key>.php', 'PHPUnit\\Framework\\MockObject\\Invocation' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Invocation.php', 'PHPUnit\\Framework\\MockObject\\InvocationMocker' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/InvocationMocker.php', 'PHPUnit\\Framework\\MockObject\\Invokable' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Invokable.php', 'PHPUnit\\Framework\\MockObject\\Matcher' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Matcher.php', 'PHPUnit\\Framework\\MockObject\\Matcher\\AnyInvokedCount' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Matcher/AnyInvokedCount.php', 'PHPUnit\\Framework\\MockObject\\Matcher\\AnyParameters' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Matcher/AnyParameters.php', 'PHPUnit\\Framework\\MockObject\\Matcher\\<API key>' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Matcher/<API key>.php', 'PHPUnit\\Framework\\MockObject\\Matcher\\DeferredError' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Matcher/DeferredError.php', 'PHPUnit\\Framework\\MockObject\\Matcher\\Invocation' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Matcher/Invocation.php', 'PHPUnit\\Framework\\MockObject\\Matcher\\InvokedAtIndex' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Matcher/InvokedAtIndex.php', 'PHPUnit\\Framework\\MockObject\\Matcher\\InvokedAtLeastCount' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Matcher/InvokedAtLeastCount.php', 'PHPUnit\\Framework\\MockObject\\Matcher\\InvokedAtLeastOnce' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Matcher/InvokedAtLeastOnce.php', 'PHPUnit\\Framework\\MockObject\\Matcher\\InvokedAtMostCount' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Matcher/InvokedAtMostCount.php', 'PHPUnit\\Framework\\MockObject\\Matcher\\InvokedCount' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Matcher/InvokedCount.php', 'PHPUnit\\Framework\\MockObject\\Matcher\\InvokedRecorder' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Matcher/InvokedRecorder.php', 'PHPUnit\\Framework\\MockObject\\Matcher\\MethodName' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Matcher/MethodName.php', 'PHPUnit\\Framework\\MockObject\\Matcher\\Parameters' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Matcher/Parameters.php', 'PHPUnit\\Framework\\MockObject\\Matcher\\StatelessInvocation' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Matcher/StatelessInvocation.php', 'PHPUnit\\Framework\\MockObject\\Method' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Api/Method.php', 'PHPUnit\\Framework\\MockObject\\MockBuilder' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/MockBuilder.php', 'PHPUnit\\Framework\\MockObject\\MockClass' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/MockClass.php', 'PHPUnit\\Framework\\MockObject\\MockMethod' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/MockMethod.php', 'PHPUnit\\Framework\\MockObject\\MockMethodSet' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/MockMethodSet.php', 'PHPUnit\\Framework\\MockObject\\MockObject' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/MockObject.php', 'PHPUnit\\Framework\\MockObject\\MockTrait' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/MockTrait.php', 'PHPUnit\\Framework\\MockObject\\MockType' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/MockType.php', 'PHPUnit\\Framework\\MockObject\\MockedCloneMethod' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Api/MockedCloneMethod.php', 'PHPUnit\\Framework\\MockObject\\RuntimeException' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Exception/RuntimeException.php', 'PHPUnit\\Framework\\MockObject\\Stub' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Stub.php', 'PHPUnit\\Framework\\MockObject\\Stub\\ConsecutiveCalls' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Stub/ConsecutiveCalls.php', 'PHPUnit\\Framework\\MockObject\\Stub\\Exception' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Stub/Exception.php', 'PHPUnit\\Framework\\MockObject\\Stub\\MatcherCollection' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Stub/MatcherCollection.php', 'PHPUnit\\Framework\\MockObject\\Stub\\ReturnArgument' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Stub/ReturnArgument.php', 'PHPUnit\\Framework\\MockObject\\Stub\\ReturnCallback' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Stub/ReturnCallback.php', 'PHPUnit\\Framework\\MockObject\\Stub\\ReturnReference' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Stub/ReturnReference.php', 'PHPUnit\\Framework\\MockObject\\Stub\\ReturnSelf' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Stub/ReturnSelf.php', 'PHPUnit\\Framework\\MockObject\\Stub\\ReturnStub' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Stub/ReturnStub.php', 'PHPUnit\\Framework\\MockObject\\Stub\\ReturnValueMap' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Stub/ReturnValueMap.php', 'PHPUnit\\Framework\\MockObject\\Stub\\Stub' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Stub/Stub.php', 'PHPUnit\\Framework\\MockObject\\UnmockedCloneMethod' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Api/UnmockedCloneMethod.php', 'PHPUnit\\Framework\\MockObject\\Verifiable' => $vendorDir . '/phpunit/phpunit/src/Framework/MockObject/Verifiable.php', 'PHPUnit\\Framework\\OutputError' => $vendorDir . '/phpunit/phpunit/src/Framework/Exception/OutputError.php', 'PHPUnit\\Framework\\<API key>' => $vendorDir . '/phpunit/phpunit/src/Framework/Exception/<API key>.php', 'PHPUnit\\Framework\\RiskyTestError' => $vendorDir . '/phpunit/phpunit/src/Framework/Exception/RiskyTestError.php', 'PHPUnit\\Framework\\SelfDescribing' => $vendorDir . '/phpunit/phpunit/src/Framework/SelfDescribing.php', 'PHPUnit\\Framework\\SkippedTest' => $vendorDir . '/phpunit/phpunit/src/Framework/SkippedTest.php', 'PHPUnit\\Framework\\SkippedTestCase' => $vendorDir . '/phpunit/phpunit/src/Framework/SkippedTestCase.php', 'PHPUnit\\Framework\\SkippedTestError' => $vendorDir . '/phpunit/phpunit/src/Framework/Exception/SkippedTestError.php', 'PHPUnit\\Framework\\<API key>' => $vendorDir . '/phpunit/phpunit/src/Framework/Exception/<API key>.php', 'PHPUnit\\Framework\\SyntheticError' => $vendorDir . '/phpunit/phpunit/src/Framework/Exception/SyntheticError.php', 'PHPUnit\\Framework\\<API key>' => $vendorDir . '/phpunit/phpunit/src/Framework/Exception/<API key>.php', 'PHPUnit\\Framework\\Test' => $vendorDir . '/phpunit/phpunit/src/Framework/Test.php', 'PHPUnit\\Framework\\TestBuilder' => $vendorDir . '/phpunit/phpunit/src/Framework/TestBuilder.php', 'PHPUnit\\Framework\\TestCase' => $vendorDir . '/phpunit/phpunit/src/Framework/TestCase.php', 'PHPUnit\\Framework\\TestFailure' => $vendorDir . '/phpunit/phpunit/src/Framework/TestFailure.php', 'PHPUnit\\Framework\\TestListener' => $vendorDir . '/phpunit/phpunit/src/Framework/TestListener.php', 'PHPUnit\\Framework\\<API key>' => $vendorDir . '/phpunit/phpunit/src/Framework/<API key>.php', 'PHPUnit\\Framework\\TestResult' => $vendorDir . '/phpunit/phpunit/src/Framework/TestResult.php', 'PHPUnit\\Framework\\TestSuite' => $vendorDir . '/phpunit/phpunit/src/Framework/TestSuite.php', 'PHPUnit\\Framework\\TestSuiteIterator' => $vendorDir . '/phpunit/phpunit/src/Framework/TestSuiteIterator.php', 'PHPUnit\\Framework\\<API key>' => $vendorDir . '/phpunit/phpunit/src/Framework/Exception/<API key>.php', 'PHPUnit\\Framework\\Warning' => $vendorDir . '/phpunit/phpunit/src/Framework/Exception/Warning.php', 'PHPUnit\\Framework\\WarningTestCase' => $vendorDir . '/phpunit/phpunit/src/Framework/WarningTestCase.php', 'PHPUnit\\Runner\\<API key>' => $vendorDir . '/phpunit/phpunit/src/Runner/Hook/<API key>.php', 'PHPUnit\\Runner\\AfterLastTestHook' => $vendorDir . '/phpunit/phpunit/src/Runner/Hook/AfterLastTestHook.php', 'PHPUnit\\Runner\\AfterRiskyTestHook' => $vendorDir . '/phpunit/phpunit/src/Runner/Hook/AfterRiskyTestHook.php', 'PHPUnit\\Runner\\<API key>' => $vendorDir . '/phpunit/phpunit/src/Runner/Hook/<API key>.php', 'PHPUnit\\Runner\\<API key>' => $vendorDir . '/phpunit/phpunit/src/Runner/Hook/<API key>.php', 'PHPUnit\\Runner\\AfterTestErrorHook' => $vendorDir . '/phpunit/phpunit/src/Runner/Hook/AfterTestErrorHook.php', 'PHPUnit\\Runner\\<API key>' => $vendorDir . '/phpunit/phpunit/src/Runner/Hook/<API key>.php', 'PHPUnit\\Runner\\AfterTestHook' => $vendorDir . '/phpunit/phpunit/src/Runner/Hook/AfterTestHook.php', 'PHPUnit\\Runner\\<API key>' => $vendorDir . '/phpunit/phpunit/src/Runner/Hook/<API key>.php', 'PHPUnit\\Runner\\BaseTestRunner' => $vendorDir . '/phpunit/phpunit/src/Runner/BaseTestRunner.php', 'PHPUnit\\Runner\\BeforeFirstTestHook' => $vendorDir . '/phpunit/phpunit/src/Runner/Hook/BeforeFirstTestHook.php', 'PHPUnit\\Runner\\BeforeTestHook' => $vendorDir . '/phpunit/phpunit/src/Runner/Hook/BeforeTestHook.php', 'PHPUnit\\Runner\\<API key>' => $vendorDir . '/phpunit/phpunit/src/Runner/<API key>.php', 'PHPUnit\\Runner\\Exception' => $vendorDir . '/phpunit/phpunit/src/Runner/Exception.php', 'PHPUnit\\Runner\\Filter\\<API key>' => $vendorDir . '/phpunit/phpunit/src/Runner/Filter/<API key>.php', 'PHPUnit\\Runner\\Filter\\Factory' => $vendorDir . '/phpunit/phpunit/src/Runner/Filter/Factory.php', 'PHPUnit\\Runner\\Filter\\GroupFilterIterator' => $vendorDir . '/phpunit/phpunit/src/Runner/Filter/GroupFilterIterator.php', 'PHPUnit\\Runner\\Filter\\<API key>' => $vendorDir . '/phpunit/phpunit/src/Runner/Filter/<API key>.php', 'PHPUnit\\Runner\\Filter\\NameFilterIterator' => $vendorDir . '/phpunit/phpunit/src/Runner/Filter/NameFilterIterator.php', 'PHPUnit\\Runner\\Hook' => $vendorDir . '/phpunit/phpunit/src/Runner/Hook/Hook.php', 'PHPUnit\\Runner\\NullTestResultCache' => $vendorDir . '/phpunit/phpunit/src/Runner/NullTestResultCache.php', 'PHPUnit\\Runner\\PhptTestCase' => $vendorDir . '/phpunit/phpunit/src/Runner/PhptTestCase.php', 'PHPUnit\\Runner\\<API key>' => $vendorDir . '/phpunit/phpunit/src/Runner/<API key>.php', 'PHPUnit\\Runner\\<API key>' => $vendorDir . '/phpunit/phpunit/src/Runner/<API key>.php', 'PHPUnit\\Runner\\TestHook' => $vendorDir . '/phpunit/phpunit/src/Runner/Hook/TestHook.php', 'PHPUnit\\Runner\\TestListenerAdapter' => $vendorDir . '/phpunit/phpunit/src/Runner/Hook/TestListenerAdapter.php', 'PHPUnit\\Runner\\TestResultCache' => $vendorDir . '/phpunit/phpunit/src/Runner/TestResultCache.php', 'PHPUnit\\Runner\\TestSuiteLoader' => $vendorDir . '/phpunit/phpunit/src/Runner/TestSuiteLoader.php', 'PHPUnit\\Runner\\TestSuiteSorter' => $vendorDir . '/phpunit/phpunit/src/Runner/TestSuiteSorter.php', 'PHPUnit\\Runner\\Version' => $vendorDir . '/phpunit/phpunit/src/Runner/Version.php', 'PHPUnit\\TextUI\\Command' => $vendorDir . '/phpunit/phpunit/src/TextUI/Command.php', 'PHPUnit\\TextUI\\Exception' => $vendorDir . '/phpunit/phpunit/src/TextUI/Exception.php', 'PHPUnit\\TextUI\\Help' => $vendorDir . '/phpunit/phpunit/src/TextUI/Help.php', 'PHPUnit\\TextUI\\ResultPrinter' => $vendorDir . '/phpunit/phpunit/src/TextUI/ResultPrinter.php', 'PHPUnit\\TextUI\\TestRunner' => $vendorDir . '/phpunit/phpunit/src/TextUI/TestRunner.php', 'PHPUnit\\Util\\Blacklist' => $vendorDir . '/phpunit/phpunit/src/Util/Blacklist.php', 'PHPUnit\\Util\\Color' => $vendorDir . '/phpunit/phpunit/src/Util/Color.php', 'PHPUnit\\Util\\Configuration' => $vendorDir . '/phpunit/phpunit/src/Util/Configuration.php', 'PHPUnit\\Util\\<API key>' => $vendorDir . '/phpunit/phpunit/src/Util/<API key>.php', 'PHPUnit\\Util\\ErrorHandler' => $vendorDir . '/phpunit/phpunit/src/Util/ErrorHandler.php', 'PHPUnit\\Util\\Exception' => $vendorDir . '/phpunit/phpunit/src/Util/Exception.php', 'PHPUnit\\Util\\FileLoader' => $vendorDir . '/phpunit/phpunit/src/Util/FileLoader.php', 'PHPUnit\\Util\\Filesystem' => $vendorDir . '/phpunit/phpunit/src/Util/Filesystem.php', 'PHPUnit\\Util\\Filter' => $vendorDir . '/phpunit/phpunit/src/Util/Filter.php', 'PHPUnit\\Util\\Getopt' => $vendorDir . '/phpunit/phpunit/src/Util/Getopt.php', 'PHPUnit\\Util\\GlobalState' => $vendorDir . '/phpunit/phpunit/src/Util/GlobalState.php', 'PHPUnit\\Util\\<API key>' => $vendorDir . '/phpunit/phpunit/src/Util/<API key>.php', 'PHPUnit\\Util\\Json' => $vendorDir . '/phpunit/phpunit/src/Util/Json.php', 'PHPUnit\\Util\\Log\\JUnit' => $vendorDir . '/phpunit/phpunit/src/Util/Log/JUnit.php', 'PHPUnit\\Util\\Log\\TeamCity' => $vendorDir . '/phpunit/phpunit/src/Util/Log/TeamCity.php', 'PHPUnit\\Util\\PHP\\AbstractPhpProcess' => $vendorDir . '/phpunit/phpunit/src/Util/PHP/AbstractPhpProcess.php', 'PHPUnit\\Util\\PHP\\DefaultPhpProcess' => $vendorDir . '/phpunit/phpunit/src/Util/PHP/DefaultPhpProcess.php', 'PHPUnit\\Util\\PHP\\WindowsPhpProcess' => $vendorDir . '/phpunit/phpunit/src/Util/PHP/WindowsPhpProcess.php', 'PHPUnit\\Util\\Printer' => $vendorDir . '/phpunit/phpunit/src/Util/Printer.php', 'PHPUnit\\Util\\RegularExpression' => $vendorDir . '/phpunit/phpunit/src/Util/RegularExpression.php', 'PHPUnit\\Util\\Test' => $vendorDir . '/phpunit/phpunit/src/Util/Test.php', 'PHPUnit\\Util\\TestDox\\CliTestDoxPrinter' => $vendorDir . '/phpunit/phpunit/src/Util/TestDox/CliTestDoxPrinter.php', 'PHPUnit\\Util\\TestDox\\HtmlResultPrinter' => $vendorDir . '/phpunit/phpunit/src/Util/TestDox/HtmlResultPrinter.php', 'PHPUnit\\Util\\TestDox\\NamePrettifier' => $vendorDir . '/phpunit/phpunit/src/Util/TestDox/NamePrettifier.php', 'PHPUnit\\Util\\TestDox\\ResultPrinter' => $vendorDir . '/phpunit/phpunit/src/Util/TestDox/ResultPrinter.php', 'PHPUnit\\Util\\TestDox\\TestDoxPrinter' => $vendorDir . '/phpunit/phpunit/src/Util/TestDox/TestDoxPrinter.php', 'PHPUnit\\Util\\TestDox\\TextResultPrinter' => $vendorDir . '/phpunit/phpunit/src/Util/TestDox/TextResultPrinter.php', 'PHPUnit\\Util\\TestDox\\XmlResultPrinter' => $vendorDir . '/phpunit/phpunit/src/Util/TestDox/XmlResultPrinter.php', 'PHPUnit\\Util\\<API key>' => $vendorDir . '/phpunit/phpunit/src/Util/<API key>.php', 'PHPUnit\\Util\\Type' => $vendorDir . '/phpunit/phpunit/src/Util/Type.php', 'PHPUnit\\Util\\<API key>' => $vendorDir . '/phpunit/phpunit/src/Util/<API key>.php', 'PHPUnit\\Util\\Xml' => $vendorDir . '/phpunit/phpunit/src/Util/Xml.php', 'PHPUnit\\Util\\XmlTestListRenderer' => $vendorDir . '/phpunit/phpunit/src/Util/XmlTestListRenderer.php', 'PHP_Token' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_TokenWithScope' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_<API key> => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_ABSTRACT' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_AMPERSAND' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_AND_EQUAL' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_ARRAY' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', '<API key>' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_AS' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_AT' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_BACKTICK' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', '<API key>' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', '<API key>' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', '<API key>' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_BOOL_CAST' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_BREAK' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_CALLABLE' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_CARET' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_CASE' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_CATCH' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_CHARACTER' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_CLASS' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_CLASS_C' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_<API key> => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_CLONE' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', '<API key>' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', '<API key>' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', '<API key>' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_CLOSE_TAG' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_COALESCE' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', '<API key>' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_COLON' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_COMMA' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_COMMENT' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', '<API key>' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_CONST' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_<API key> => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_CONTINUE' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', '<API key>' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_DEC' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_DECLARE' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_DEFAULT' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_DIR' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_DIV' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_DIV_EQUAL' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_DNUMBER' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_DO' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', '<API key>' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_DOLLAR' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_<API key> => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_DOT' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', '<API key>' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', '<API key>' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', '<API key>' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', '<API key>' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_ECHO' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_ELLIPSIS' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_ELSE' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_ELSEIF' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_EMPTY' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_<API key> => $vendorDir . '/phpunit/php-token-stream/src/Token.php', '<API key>' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_ENDFOR' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', '<API key>' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_ENDIF' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_ENDSWITCH' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_ENDWHILE' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', '<API key>' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_EQUAL' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_EVAL' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_<API key> => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_EXIT' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_EXTENDS' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_FILE' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_FINAL' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_FINALLY' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_FN' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_FOR' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_FOREACH' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_FUNCTION' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_FUNC_C' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_GLOBAL' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_GOTO' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_GT' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', '<API key>' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_IF' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', '<API key>' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_INC' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_INCLUDE' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', '<API key>' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', '<API key>' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', '<API key>' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_INSTEADOF' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_INTERFACE' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_INT_CAST' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_ISSET' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_IS_EQUAL' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_<API key> => $vendorDir . '/phpunit/php-token-stream/src/Token.php', '<API key>' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', '<API key>' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_<API key> => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_<API key> => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_Includes' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_LINE' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_LIST' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_LNUMBER' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', '<API key>' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', '<API key>' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', '<API key>' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_LT' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_METHOD_C' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_MINUS' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', '<API key>' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_MOD_EQUAL' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_MULT' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_MUL_EQUAL' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_NAMESPACE' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_NEW' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_NS_C' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', '<API key>' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', '<API key>' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', '<API key>' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_<API key> => $vendorDir . '/phpunit/php-token-stream/src/Token.php', '<API key>' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', '<API key>' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', '<API key>' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_OPEN_TAG' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_<API key> => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_OR_EQUAL' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_<API key> => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_PERCENT' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_PIPE' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_PLUS' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', '<API key>' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_POW' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_POW_EQUAL' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_PRINT' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_PRIVATE' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_PROTECTED' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_PUBLIC' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', '<API key>' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_REQUIRE' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', '<API key>' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_RETURN' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_SEMICOLON' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_SL' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_SL_EQUAL' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_SPACESHIP' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_SR' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_SR_EQUAL' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', '<API key>' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_STATIC' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_STRING' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', '<API key>' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', '<API key>' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_SWITCH' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_Stream' => $vendorDir . '/phpunit/php-token-stream/src/Token/Stream.php', 'PHP_<API key> => $vendorDir . '/phpunit/php-token-stream/src/Token/Stream/CachingFactory.php', 'PHP_Token_THROW' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_TILDE' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_TRAIT' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_TRAIT_C' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_TRY' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_UNSET' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', '<API key>' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_USE' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', '<API key>' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_Util' => $vendorDir . '/phpunit/php-token-stream/src/Token/Util.php', 'PHP_Token_VAR' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_VARIABLE' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_WHILE' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', '<API key>' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_XOR_EQUAL' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PHP_Token_YIELD' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', '<API key>' => $vendorDir . '/phpunit/php-token-stream/src/Token.php', 'PharIo\\Manifest\\Application' => $vendorDir . '/phar-io/manifest/src/values/Application.php', 'PharIo\\Manifest\\ApplicationName' => $vendorDir . '/phar-io/manifest/src/values/ApplicationName.php', 'PharIo\\Manifest\\Author' => $vendorDir . '/phar-io/manifest/src/values/Author.php', 'PharIo\\Manifest\\AuthorCollection' => $vendorDir . '/phar-io/manifest/src/values/AuthorCollection.php', 'PharIo\\Manifest\\<API key> => $vendorDir . '/phar-io/manifest/src/values/<API key>.php', 'PharIo\\Manifest\\AuthorElement' => $vendorDir . '/phar-io/manifest/src/xml/AuthorElement.php', 'PharIo\\Manifest\\<API key> => $vendorDir . '/phar-io/manifest/src/xml/<API key>.php', 'PharIo\\Manifest\\BundledComponent' => $vendorDir . '/phar-io/manifest/src/values/BundledComponent.php', 'PharIo\\Manifest\\<API key>' => $vendorDir . '/phar-io/manifest/src/values/<API key>.php', 'PharIo\\Manifest\\<API key>' => $vendorDir . '/phar-io/manifest/src/values/<API key>.php', 'PharIo\\Manifest\\BundlesElement' => $vendorDir . '/phar-io/manifest/src/xml/BundlesElement.php', 'PharIo\\Manifest\\ComponentElement' => $vendorDir . '/phar-io/manifest/src/xml/ComponentElement.php', 'PharIo\\Manifest\\<API key>' => $vendorDir . '/phar-io/manifest/src/xml/<API key>.php', 'PharIo\\Manifest\\ContainsElement' => $vendorDir . '/phar-io/manifest/src/xml/ContainsElement.php', 'PharIo\\Manifest\\CopyrightElement' => $vendorDir . '/phar-io/manifest/src/xml/CopyrightElement.php', 'PharIo\\Manifest\\<API key>' => $vendorDir . '/phar-io/manifest/src/values/<API key>.php', 'PharIo\\Manifest\\ElementCollection' => $vendorDir . '/phar-io/manifest/src/xml/ElementCollection.php', 'PharIo\\Manifest\\Email' => $vendorDir . '/phar-io/manifest/src/values/Email.php', 'PharIo\\Manifest\\Exception' => $vendorDir . '/phar-io/manifest/src/exceptions/Exception.php', 'PharIo\\Manifest\\ExtElement' => $vendorDir . '/phar-io/manifest/src/xml/ExtElement.php', 'PharIo\\Manifest\\<API key>' => $vendorDir . '/phar-io/manifest/src/xml/<API key>.php', 'PharIo\\Manifest\\Extension' => $vendorDir . '/phar-io/manifest/src/values/Extension.php', 'PharIo\\Manifest\\ExtensionElement' => $vendorDir . '/phar-io/manifest/src/xml/ExtensionElement.php', 'PharIo\\Manifest\\<API key>' => $vendorDir . '/phar-io/manifest/src/exceptions/<API key>.php', 'PharIo\\Manifest\\<API key>' => $vendorDir . '/phar-io/manifest/src/exceptions/<API key>.php', 'PharIo\\Manifest\\InvalidUrlException' => $vendorDir . '/phar-io/manifest/src/exceptions/InvalidUrlException.php', 'PharIo\\Manifest\\Library' => $vendorDir . '/phar-io/manifest/src/values/Library.php', 'PharIo\\Manifest\\License' => $vendorDir . '/phar-io/manifest/src/values/License.php', 'PharIo\\Manifest\\LicenseElement' => $vendorDir . '/phar-io/manifest/src/xml/LicenseElement.php', 'PharIo\\Manifest\\Manifest' => $vendorDir . '/phar-io/manifest/src/values/Manifest.php', 'PharIo\\Manifest\\ManifestDocument' => $vendorDir . '/phar-io/manifest/src/xml/ManifestDocument.php', 'PharIo\\Manifest\\<API key>' => $vendorDir . '/phar-io/manifest/src/exceptions/<API key>.php', 'PharIo\\Manifest\\<API key>' => $vendorDir . '/phar-io/manifest/src/xml/<API key>.php', 'PharIo\\Manifest\\<API key>' => $vendorDir . '/phar-io/manifest/src/<API key>.php', 'PharIo\\Manifest\\<API key>' => $vendorDir . '/phar-io/manifest/src/exceptions/<API key>.php', 'PharIo\\Manifest\\ManifestElement' => $vendorDir . '/phar-io/manifest/src/xml/ManifestElement.php', 'PharIo\\Manifest\\<API key>' => $vendorDir . '/phar-io/manifest/src/exceptions/<API key>.php', 'PharIo\\Manifest\\ManifestLoader' => $vendorDir . '/phar-io/manifest/src/ManifestLoader.php', 'PharIo\\Manifest\\<API key>' => $vendorDir . '/phar-io/manifest/src/exceptions/<API key>.php', 'PharIo\\Manifest\\ManifestSerializer' => $vendorDir . '/phar-io/manifest/src/ManifestSerializer.php', 'PharIo\\Manifest\\PhpElement' => $vendorDir . '/phar-io/manifest/src/xml/PhpElement.php', 'PharIo\\Manifest\\<API key>' => $vendorDir . '/phar-io/manifest/src/values/<API key>.php', 'PharIo\\Manifest\\<API key>' => $vendorDir . '/phar-io/manifest/src/values/<API key>.php', 'PharIo\\Manifest\\Requirement' => $vendorDir . '/phar-io/manifest/src/values/Requirement.php', 'PharIo\\Manifest\\<API key>' => $vendorDir . '/phar-io/manifest/src/values/<API key>.php', 'PharIo\\Manifest\\<API key>' => $vendorDir . '/phar-io/manifest/src/values/<API key>.php', 'PharIo\\Manifest\\RequiresElement' => $vendorDir . '/phar-io/manifest/src/xml/RequiresElement.php', 'PharIo\\Manifest\\Type' => $vendorDir . '/phar-io/manifest/src/values/Type.php', 'PharIo\\Manifest\\Url' => $vendorDir . '/phar-io/manifest/src/values/Url.php', 'PharIo\\Version\\<API key>' => $vendorDir . '/phar-io/version/src/constraints/<API key>.php', 'PharIo\\Version\\<API key>' => $vendorDir . '/phar-io/version/src/constraints/<API key>.php', 'PharIo\\Version\\<API key>' => $vendorDir . '/phar-io/version/src/constraints/<API key>.php', 'PharIo\\Version\\<API key>' => $vendorDir . '/phar-io/version/src/constraints/<API key>.php', 'PharIo\\Version\\Exception' => $vendorDir . '/phar-io/version/src/exceptions/Exception.php', 'PharIo\\Version\\<API key>' => $vendorDir . '/phar-io/version/src/constraints/<API key>.php', 'PharIo\\Version\\<API key>' => $vendorDir . '/phar-io/version/src/exceptions/<API key>.php', 'PharIo\\Version\\<API key>' => $vendorDir . '/phar-io/version/src/exceptions/<API key>.php', 'PharIo\\Version\\<API key>' => $vendorDir . '/phar-io/version/src/constraints/<API key>.php', 'PharIo\\Version\\PreReleaseSuffix' => $vendorDir . '/phar-io/version/src/PreReleaseSuffix.php', 'PharIo\\Version\\<API key>' => $vendorDir . '/phar-io/version/src/constraints/<API key>.php', 'PharIo\\Version\\<API key>' => $vendorDir . '/phar-io/version/src/constraints/<API key>.php', 'PharIo\\Version\\<API key>' => $vendorDir . '/phar-io/version/src/exceptions/<API key>.php', 'PharIo\\Version\\Version' => $vendorDir . '/phar-io/version/src/Version.php', 'PharIo\\Version\\VersionConstraint' => $vendorDir . '/phar-io/version/src/constraints/VersionConstraint.php', 'PharIo\\Version\\<API key>' => $vendorDir . '/phar-io/version/src/<API key>.php', 'PharIo\\Version\\<API key>' => $vendorDir . '/phar-io/version/src/<API key>.php', 'PharIo\\Version\\VersionNumber' => $vendorDir . '/phar-io/version/src/VersionNumber.php', 'SebastianBergmann\\CodeCoverage\\CodeCoverage' => $vendorDir . '/phpunit/php-code-coverage/src/CodeCoverage.php', 'SebastianBergmann\\CodeCoverage\\<API key>' => $vendorDir . '/phpunit/php-code-coverage/src/Exception/<API key>.php', 'SebastianBergmann\\CodeCoverage\\Driver\\Driver' => $vendorDir . '/phpunit/php-code-coverage/src/Driver/Driver.php', 'SebastianBergmann\\CodeCoverage\\Driver\\PCOV' => $vendorDir . '/phpunit/php-code-coverage/src/Driver/PCOV.php', 'SebastianBergmann\\CodeCoverage\\Driver\\PHPDBG' => $vendorDir . '/phpunit/php-code-coverage/src/Driver/PHPDBG.php', 'SebastianBergmann\\CodeCoverage\\Driver\\Xdebug' => $vendorDir . '/phpunit/php-code-coverage/src/Driver/Xdebug.php', 'SebastianBergmann\\CodeCoverage\\Exception' => $vendorDir . '/phpunit/php-code-coverage/src/Exception/Exception.php', 'SebastianBergmann\\CodeCoverage\\Filter' => $vendorDir . '/phpunit/php-code-coverage/src/Filter.php', 'SebastianBergmann\\CodeCoverage\\<API key>' => $vendorDir . '/phpunit/php-code-coverage/src/Exception/<API key>.php', 'SebastianBergmann\\CodeCoverage\\<API key>' => $vendorDir . '/phpunit/php-code-coverage/src/Exception/<API key>.php', 'SebastianBergmann\\CodeCoverage\\Node\\AbstractNode' => $vendorDir . '/phpunit/php-code-coverage/src/Node/AbstractNode.php', 'SebastianBergmann\\CodeCoverage\\Node\\Builder' => $vendorDir . '/phpunit/php-code-coverage/src/Node/Builder.php', 'SebastianBergmann\\CodeCoverage\\Node\\Directory' => $vendorDir . '/phpunit/php-code-coverage/src/Node/Directory.php', 'SebastianBergmann\\CodeCoverage\\Node\\File' => $vendorDir . '/phpunit/php-code-coverage/src/Node/File.php', 'SebastianBergmann\\CodeCoverage\\Node\\Iterator' => $vendorDir . '/phpunit/php-code-coverage/src/Node/Iterator.php', 'SebastianBergmann\\CodeCoverage\\Report\\Clover' => $vendorDir . '/phpunit/php-code-coverage/src/Report/Clover.php', 'SebastianBergmann\\CodeCoverage\\Report\\Crap4j' => $vendorDir . '/phpunit/php-code-coverage/src/Report/Crap4j.php', 'SebastianBergmann\\CodeCoverage\\Report\\Html\\Dashboard' => $vendorDir . '/phpunit/php-code-coverage/src/Report/Html/Renderer/Dashboard.php', 'SebastianBergmann\\CodeCoverage\\Report\\Html\\Directory' => $vendorDir . '/phpunit/php-code-coverage/src/Report/Html/Renderer/Directory.php', 'SebastianBergmann\\CodeCoverage\\Report\\Html\\Facade' => $vendorDir . '/phpunit/php-code-coverage/src/Report/Html/Facade.php', 'SebastianBergmann\\CodeCoverage\\Report\\Html\\File' => $vendorDir . '/phpunit/php-code-coverage/src/Report/Html/Renderer/File.php', 'SebastianBergmann\\CodeCoverage\\Report\\Html\\Renderer' => $vendorDir . '/phpunit/php-code-coverage/src/Report/Html/Renderer.php', 'SebastianBergmann\\CodeCoverage\\Report\\PHP' => $vendorDir . '/phpunit/php-code-coverage/src/Report/PHP.php', 'SebastianBergmann\\CodeCoverage\\Report\\Text' => $vendorDir . '/phpunit/php-code-coverage/src/Report/Text.php', 'SebastianBergmann\\CodeCoverage\\Report\\Xml\\BuildInformation' => $vendorDir . '/phpunit/php-code-coverage/src/Report/Xml/BuildInformation.php', 'SebastianBergmann\\CodeCoverage\\Report\\Xml\\Coverage' => $vendorDir . '/phpunit/php-code-coverage/src/Report/Xml/Coverage.php', 'SebastianBergmann\\CodeCoverage\\Report\\Xml\\Directory' => $vendorDir . '/phpunit/php-code-coverage/src/Report/Xml/Directory.php', 'SebastianBergmann\\CodeCoverage\\Report\\Xml\\Facade' => $vendorDir . '/phpunit/php-code-coverage/src/Report/Xml/Facade.php', 'SebastianBergmann\\CodeCoverage\\Report\\Xml\\File' => $vendorDir . '/phpunit/php-code-coverage/src/Report/Xml/File.php', 'SebastianBergmann\\CodeCoverage\\Report\\Xml\\Method' => $vendorDir . '/phpunit/php-code-coverage/src/Report/Xml/Method.php', 'SebastianBergmann\\CodeCoverage\\Report\\Xml\\Node' => $vendorDir . '/phpunit/php-code-coverage/src/Report/Xml/Node.php', 'SebastianBergmann\\CodeCoverage\\Report\\Xml\\Project' => $vendorDir . '/phpunit/php-code-coverage/src/Report/Xml/Project.php', 'SebastianBergmann\\CodeCoverage\\Report\\Xml\\Report' => $vendorDir . '/phpunit/php-code-coverage/src/Report/Xml/Report.php', 'SebastianBergmann\\CodeCoverage\\Report\\Xml\\Source' => $vendorDir . '/phpunit/php-code-coverage/src/Report/Xml/Source.php', 'SebastianBergmann\\CodeCoverage\\Report\\Xml\\Tests' => $vendorDir . '/phpunit/php-code-coverage/src/Report/Xml/Tests.php', 'SebastianBergmann\\CodeCoverage\\Report\\Xml\\Totals' => $vendorDir . '/phpunit/php-code-coverage/src/Report/Xml/Totals.php', 'SebastianBergmann\\CodeCoverage\\Report\\Xml\\Unit' => $vendorDir . '/phpunit/php-code-coverage/src/Report/Xml/Unit.php', 'SebastianBergmann\\CodeCoverage\\RuntimeException' => $vendorDir . '/phpunit/php-code-coverage/src/Exception/RuntimeException.php', 'SebastianBergmann\\CodeCoverage\\<API key>' => $vendorDir . '/phpunit/php-code-coverage/src/Exception/<API key>.php', 'SebastianBergmann\\CodeCoverage\\Util' => $vendorDir . '/phpunit/php-code-coverage/src/Util.php', 'SebastianBergmann\\CodeCoverage\\Version' => $vendorDir . '/phpunit/php-code-coverage/src/Version.php', 'SebastianBergmann\\<API key>\\Wizard' => $vendorDir . '/sebastian/<API key>/src/Wizard.php', 'SebastianBergmann\\Comparator\\ArrayComparator' => $vendorDir . '/sebastian/comparator/src/ArrayComparator.php', 'SebastianBergmann\\Comparator\\Comparator' => $vendorDir . '/sebastian/comparator/src/Comparator.php', 'SebastianBergmann\\Comparator\\ComparisonFailure' => $vendorDir . '/sebastian/comparator/src/ComparisonFailure.php', 'SebastianBergmann\\Comparator\\DOMNodeComparator' => $vendorDir . '/sebastian/comparator/src/DOMNodeComparator.php', 'SebastianBergmann\\Comparator\\DateTimeComparator' => $vendorDir . '/sebastian/comparator/src/DateTimeComparator.php', 'SebastianBergmann\\Comparator\\DoubleComparator' => $vendorDir . '/sebastian/comparator/src/DoubleComparator.php', 'SebastianBergmann\\Comparator\\ExceptionComparator' => $vendorDir . '/sebastian/comparator/src/ExceptionComparator.php', 'SebastianBergmann\\Comparator\\Factory' => $vendorDir . '/sebastian/comparator/src/Factory.php', 'SebastianBergmann\\Comparator\\<API key>' => $vendorDir . '/sebastian/comparator/src/<API key>.php', 'SebastianBergmann\\Comparator\\NumericComparator' => $vendorDir . '/sebastian/comparator/src/NumericComparator.php', 'SebastianBergmann\\Comparator\\ObjectComparator' => $vendorDir . '/sebastian/comparator/src/ObjectComparator.php', 'SebastianBergmann\\Comparator\\ResourceComparator' => $vendorDir . '/sebastian/comparator/src/ResourceComparator.php', 'SebastianBergmann\\Comparator\\ScalarComparator' => $vendorDir . '/sebastian/comparator/src/ScalarComparator.php', 'SebastianBergmann\\Comparator\\<API key>' => $vendorDir . '/sebastian/comparator/src/<API key>.php', 'SebastianBergmann\\Comparator\\TypeComparator' => $vendorDir . '/sebastian/comparator/src/TypeComparator.php', 'SebastianBergmann\\Diff\\Chunk' => $vendorDir . '/sebastian/diff/src/Chunk.php', 'SebastianBergmann\\Diff\\<API key>' => $vendorDir . '/sebastian/diff/src/Exception/<API key>.php', 'SebastianBergmann\\Diff\\Diff' => $vendorDir . '/sebastian/diff/src/Diff.php', 'SebastianBergmann\\Diff\\Differ' => $vendorDir . '/sebastian/diff/src/Differ.php', 'SebastianBergmann\\Diff\\Exception' => $vendorDir . '/sebastian/diff/src/Exception/Exception.php', 'SebastianBergmann\\Diff\\<API key>' => $vendorDir . '/sebastian/diff/src/Exception/<API key>.php', 'SebastianBergmann\\Diff\\Line' => $vendorDir . '/sebastian/diff/src/Line.php', 'SebastianBergmann\\Diff\\<API key>' => $vendorDir . '/sebastian/diff/src/<API key>.php', 'SebastianBergmann\\Diff\\<API key>' => $vendorDir . '/sebastian/diff/src/<API key>.php', 'SebastianBergmann\\Diff\\Output\\<API key>' => $vendorDir . '/sebastian/diff/src/Output/<API key>.php', 'SebastianBergmann\\Diff\\Output\\<API key>' => $vendorDir . '/sebastian/diff/src/Output/<API key>.php', 'SebastianBergmann\\Diff\\Output\\<API key>' => $vendorDir . '/sebastian/diff/src/Output/<API key>.php', 'SebastianBergmann\\Diff\\Output\\<API key>' => $vendorDir . '/sebastian/diff/src/Output/<API key>.php', 'SebastianBergmann\\Diff\\Output\\<API key>' => $vendorDir . '/sebastian/diff/src/Output/<API key>.php', 'SebastianBergmann\\Diff\\Parser' => $vendorDir . '/sebastian/diff/src/Parser.php', 'SebastianBergmann\\Diff\\<API key>' => $vendorDir . '/sebastian/diff/src/<API key>.php', 'SebastianBergmann\\Environment\\Console' => $vendorDir . '/sebastian/environment/src/Console.php', 'SebastianBergmann\\Environment\\OperatingSystem' => $vendorDir . '/sebastian/environment/src/OperatingSystem.php', 'SebastianBergmann\\Environment\\Runtime' => $vendorDir . '/sebastian/environment/src/Runtime.php', 'SebastianBergmann\\Exporter\\Exporter' => $vendorDir . '/sebastian/exporter/src/Exporter.php', 'SebastianBergmann\\FileIterator\\Facade' => $vendorDir . '/phpunit/php-file-iterator/src/Facade.php', 'SebastianBergmann\\FileIterator\\Factory' => $vendorDir . '/phpunit/php-file-iterator/src/Factory.php', 'SebastianBergmann\\FileIterator\\Iterator' => $vendorDir . '/phpunit/php-file-iterator/src/Iterator.php', 'SebastianBergmann\\GlobalState\\Blacklist' => $vendorDir . '/sebastian/global-state/src/Blacklist.php', 'SebastianBergmann\\GlobalState\\CodeExporter' => $vendorDir . '/sebastian/global-state/src/CodeExporter.php', 'SebastianBergmann\\GlobalState\\Exception' => $vendorDir . '/sebastian/global-state/src/exceptions/Exception.php', 'SebastianBergmann\\GlobalState\\Restorer' => $vendorDir . '/sebastian/global-state/src/Restorer.php', 'SebastianBergmann\\GlobalState\\RuntimeException' => $vendorDir . '/sebastian/global-state/src/exceptions/RuntimeException.php', 'SebastianBergmann\\GlobalState\\Snapshot' => $vendorDir . '/sebastian/global-state/src/Snapshot.php', 'SebastianBergmann\\ObjectEnumerator\\Enumerator' => $vendorDir . '/sebastian/object-enumerator/src/Enumerator.php', 'SebastianBergmann\\ObjectEnumerator\\Exception' => $vendorDir . '/sebastian/object-enumerator/src/Exception.php', 'SebastianBergmann\\ObjectEnumerator\\<API key>' => $vendorDir . '/sebastian/object-enumerator/src/<API key>.php', 'SebastianBergmann\\ObjectReflector\\Exception' => $vendorDir . '/sebastian/object-reflector/src/Exception.php', 'SebastianBergmann\\ObjectReflector\\<API key>' => $vendorDir . '/sebastian/object-reflector/src/<API key>.php', 'SebastianBergmann\\ObjectReflector\\ObjectReflector' => $vendorDir . '/sebastian/object-reflector/src/ObjectReflector.php', 'SebastianBergmann\\RecursionContext\\Context' => $vendorDir . '/sebastian/recursion-context/src/Context.php', 'SebastianBergmann\\RecursionContext\\Exception' => $vendorDir . '/sebastian/recursion-context/src/Exception.php', 'SebastianBergmann\\RecursionContext\\<API key>' => $vendorDir . '/sebastian/recursion-context/src/<API key>.php', 'SebastianBergmann\\ResourceOperations\\ResourceOperations' => $vendorDir . '/sebastian/resource-operations/src/ResourceOperations.php', 'SebastianBergmann\\Timer\\Exception' => $vendorDir . '/phpunit/php-timer/src/Exception.php', 'SebastianBergmann\\Timer\\RuntimeException' => $vendorDir . '/phpunit/php-timer/src/RuntimeException.php', 'SebastianBergmann\\Timer\\Timer' => $vendorDir . '/phpunit/php-timer/src/Timer.php', 'SebastianBergmann\\Type\\CallableType' => $vendorDir . '/sebastian/type/src/CallableType.php', 'SebastianBergmann\\Type\\Exception' => $vendorDir . '/sebastian/type/src/exception/Exception.php', 'SebastianBergmann\\Type\\GenericObjectType' => $vendorDir . '/sebastian/type/src/GenericObjectType.php', 'SebastianBergmann\\Type\\IterableType' => $vendorDir . '/sebastian/type/src/IterableType.php', 'SebastianBergmann\\Type\\NullType' => $vendorDir . '/sebastian/type/src/NullType.php', 'SebastianBergmann\\Type\\ObjectType' => $vendorDir . '/sebastian/type/src/ObjectType.php', 'SebastianBergmann\\Type\\RuntimeException' => $vendorDir . '/sebastian/type/src/exception/RuntimeException.php', 'SebastianBergmann\\Type\\SimpleType' => $vendorDir . '/sebastian/type/src/SimpleType.php', 'SebastianBergmann\\Type\\Type' => $vendorDir . '/sebastian/type/src/Type.php', 'SebastianBergmann\\Type\\TypeName' => $vendorDir . '/sebastian/type/src/TypeName.php', 'SebastianBergmann\\Type\\UnknownType' => $vendorDir . '/sebastian/type/src/UnknownType.php', 'SebastianBergmann\\Type\\VoidType' => $vendorDir . '/sebastian/type/src/VoidType.php', 'SebastianBergmann\\Version' => $vendorDir . '/sebastian/version/src/Version.php', 'Text_Template' => $vendorDir . '/phpunit/php-text-template/src/Template.php', 'TheSeer\\Tokenizer\\Exception' => $vendorDir . '/theseer/tokenizer/src/Exception.php', 'TheSeer\\Tokenizer\\NamespaceUri' => $vendorDir . '/theseer/tokenizer/src/NamespaceUri.php', 'TheSeer\\Tokenizer\\<API key>' => $vendorDir . '/theseer/tokenizer/src/<API key>.php', 'TheSeer\\Tokenizer\\Token' => $vendorDir . '/theseer/tokenizer/src/Token.php', 'TheSeer\\Tokenizer\\TokenCollection' => $vendorDir . '/theseer/tokenizer/src/TokenCollection.php', 'TheSeer\\Tokenizer\\<API key> => $vendorDir . '/theseer/tokenizer/src/<API key>.php', 'TheSeer\\Tokenizer\\Tokenizer' => $vendorDir . '/theseer/tokenizer/src/Tokenizer.php', 'TheSeer\\Tokenizer\\XMLSerializer' => $vendorDir . '/theseer/tokenizer/src/XMLSerializer.php', );
package com.confusionists.mjdjApi.morph; import java.util.List; import com.confusionists.mjdjApi.midi.MessageWrapper; import com.confusionists.mjdjApi.util.MidiTimerTask; import com.confusionists.mjdjApi.util.MjdjService; public interface Morph { public final static String OTHER_MORPHS = "Other Morphs"; /** * Call by Mjdj before init is called. Subclasses can generally inherit this default implementation. * @param value is a List<String> of the in device names. */ void setInDeviceNames(List<String> value); List<String> getInDeviceNames(); /** * Call by Mjdj before init is called. Subclasses should generally inherit this default implementation. * @param value is a List<String> of the in device names. */ void setOutDeviceNames(List<String> value); List<String> getOutDeviceNames(); /** * Mjdj will call this method to give the Morph instance access to the Mjdj system: this happens before init is called. * @param service an MjdjService instance. **/ void setService(MjdjService service); /** * @return name shown on Mjdj UI. */ String getName(); * /** * Call by the Mjdj system to allow for Morph initialization. Devices and service are already set. * @throws <API key> if the Morph cannot load because it hasn't found the devices it needs. */ void init() throws <API key>; void shutdown(); /** * * @param message * @param from a String with the input device: Morph can decide to process or not based on this (as well as other information). * @return true if the Morph did process the message, or false if the message was not of interest * @throws Exception */ boolean process(MessageWrapper message, String from) throws Throwable; void onBeat() throws Throwable; /** * @return Any useful logging information that implementing classes wish to return when the Morph checks that it is working correctly. */ String diagnose(); /** * Subclasses can produce a UI that is as complicated as they like for each Morph. * It should become visible (and even always-on-top) when this method is called, or the opposite (toggle) */ void toggleUi(); /** * This is very limited: any class can be serialized, even one that doesn't implement Serializable, but the class * cannot contain any reference to classes dynamically loaded in this Morph. * Essentially, use Hashtable<String, String> or anything in the JDK itself. * @return the serializable "piece" for configuring this Morph. */ Object getSerializable(); /** * Morph subclasses should recover state from the object passed in. * @param serializable */ void setSerializable(Object serializable); /** * @param playTimedTasks Used by the default implementation of {@link MidiTimerTask} to play or not play: true by default */ void setPlayTimedTasks(boolean playTimedTasks); /** * @return true by default. Otherwise returns whether the morph expects timed events to play or not. used by {@link MidiTimerTask}. */ boolean isPlayTimedTasks(); }
"""Triton Daemon - Communication server for Oxford Triton system The Triton fridge already has communication capacity to directly control and read both the temperatures and other elements of the fridge (pressure sensors, valves, compressor, ...). However, the Triton logging uses binary format files that can only be opened in their (very flaky) propriety program. This Daemon acts as an intermediary between the Triton system and the measurement computer, allowing the measurement computer to send commands to the system while it maintains an ASCII log of the system parameters. These logfiles can then be opened using cryoLogger. Note that the binary logs are still kept in any case. Run as:: python TritonDaemon.py This Daemon is intended to be run on the Triton control computer but can actually be run from any system that has network access to the triton control computer. The address will be requested when the script is started as well as the folder where the logs should be saved. The defaults can be adjusted in the variables :code:`TRITONADDR` and :code:`LOGFOLDER` at the top of the script. """ from stlab.devices.Oxford_Triton import Oxford_Triton as Triton from queue import Queue from threading import Thread import time from stlab.devices.TritonDaemon.TritonLogger import TritonLogger as logger import socket from stlab.utils.MySocket import MySocket import sys import datetime TRITONADDR = 'TCPIP::127.0.0.1::33576::SOCKET' LOGFOLDER = 'C:/RemoteLogging/' def command_handler(qin,addr='TCPIP::127.0.0.1::33576::SOCKET'): mytriton = Triton(addr=addr) while True: nextcomm = qin.get() if nextcomm == 0: break qout = nextcomm[0] comm = nextcomm[1] args = nextcomm[2] ret = comm(mytriton, *args) qin.task_done() qout.put(ret) if __name__ == '__main__': print("StLab Temperature server for Triton. Initializing...") ''' if len(sys.argv) >= 2: filename = sys.argv[1] ff = open(filename,'a') ff.write('\n') else: t0 = datetime.datetime.now() filename = 'log_' + t0.strftime('%y_%m_%d__%H_%M_%S') + '.dat' varline = ['Time (s)'] + ['PT2 Head (K)','PT2 Plate (K)', 'Still Plate (K)','Cold Plate (K)','MC Cernox (K)','PT1 Head (K)','PT1 Plate (K)','MC Plate (K)'] + ['P%d (mbar)' % i for i in range(1,7)] #varline = ['Time (s)'] + ['T%d (K)' % i for i in range(1,10)] + ['P%d (mbar)' % i for i in range(1,7)] print(varline) ff = open(filename,'w') ff.write('#' + ', '.join(varline)+'\n') ''' logfolder = input('Enter BF log folder location (default "{}"):\n'.format(LOGFOLDER)) if logfolder == '': logfolder = LOGFOLDER tritonaddr = input('Enter address of Triton instrument (default "{}"):\n'.format(TRITONADDR)) if tritonaddr == '': tritonaddr = TRITONADDR commandq = Queue(maxsize=0) myhandler = Thread(target=command_handler, args=(commandq,tritonaddr)) myhandler.daemon = True myhandler.start() loggerthread = Thread(target=logger, args=(commandq,logfolder)) loggerthread.start() # create an INET, STREAMing socket serversocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) # bind the socket to a public host, and a well-known port #serversocket.bind((socket.gethostname(), 8001)) #addr = socket.gethostbyname(socket.gethostname()) addr = '0.0.0.0' #listen on all network interfaces port = 8472 serversocket.bind((addr, port)) # become a server socket serversocket.listen(5) myip = socket.gethostbyname(socket.gethostname()) print("Ready. Listening on port %d and address %s" % (port,myip)) def RunCommand(sock,resultq): ss = MySocket(sock) word = ss.myreceive() word = word.decode('utf_8') commandq.put( (resultq, Triton.query, (word,)) ) xx = resultq.get() resultq.task_done() ss.mysend(xx.encode('utf_8')) ss.sock.close() return word resultq = Queue(maxsize=0) while True: clientsocket = None try: # accept connections from outside (clientsocket, address) = serversocket.accept() RunCommand(clientsocket,resultq) print("Listening on port %d and address %s" % (port,myip)) except KeyboardInterrupt: print('Shutting down temperature server') serversocket.close() break commandq.put(0) loggerthread.join()
require 'rails_helper' RSpec.describe "Assessments", type: :request do end
<?php /*! Class which allows to assign|fire events. */ class EventMaster{ private $events;//!< hash of event handlers private $master; private static $eventsStatic=array(); /*! constructor */ function __construct(){ $this->events=array(); $this->master = false; } /*! Method check if event with such name already exists. @param name name of event, case non-sensitive @return true if event with such name registered, false otherwise */ public function exist($name){ $name=strtolower($name); return (isset($this->events[$name]) && sizeof($this->events[$name])); } /*! Attach custom code to event. Only on event handler can be attached in the same time. If new event handler attached - old will be detached. @param name name of event, case non-sensitive @param method function which will be attached. You can use array(class, method) if you want to attach the method of the class. */ public function attach($name,$method=false){ //use class for event handling if ($method === false){ $this->master = $name; return; } //use separate functions $name=strtolower($name); if (!array_key_exists($name,$this->events)) $this->events[$name]=array(); $this->events[$name][]=$method; } public static function attach_static($name, $method){ $name=strtolower($name); if (!array_key_exists($name,EventMaster::$eventsStatic)) EventMaster::$eventsStatic[$name]=array(); EventMaster::$eventsStatic[$name][]=$method; } public static function trigger_static($name, $method){ $arg_list = func_get_args(); $name=strtolower(array_shift($arg_list)); if (isset(EventMaster::$eventsStatic[$name])) foreach(EventMaster::$eventsStatic[$name] as $method){ if (is_array($method) && !method_exists($method[0],$method[1])) throw new Exception("Incorrect method assigned to event: ".$method[0].":".$method[1]); if (!is_array($method) && !function_exists($method)) throw new Exception("Incorrect function assigned to event: ".$method); <API key>($method, $arg_list); } return true; } /*! Detach code from event @param name name of event, case non-sensitive */ public function detach($name){ $name=strtolower($name); unset($this->events[$name]); } /*! Trigger event. @param name name of event, case non-sensitive @param data value which will be provided as argument for event function, you can provide multiple data arguments, method accepts variable number of parameters @return true if event handler was not assigned , result of event hangler otherwise */ public function trigger($name,$data){ $arg_list = func_get_args(); $name=strtolower(array_shift($arg_list)); if (isset($this->events[$name])) foreach($this->events[$name] as $method){ if (is_array($method) && !method_exists($method[0],$method[1])) throw new Exception("Incorrect method assigned to event: ".$method[0].":".$method[1]); if (!is_array($method) && !function_exists($method)) throw new Exception("Incorrect function assigned to event: ".$method); <API key>($method, $arg_list); } if ($this->master !== false) if (method_exists($this->master, $name)) <API key>(array($this->master, $name), $arg_list); return true; } } /*! Class which handles access rules. **/ class AccessMaster{ private $rules,$local; /*! constructor Set next access right to "allowed" by default : read, insert, update, delete Basically - all common data operations allowed by default */ function __construct(){ $this->rules=array("read" => true, "insert" => true, "update" => true, "delete" => true); $this->local=true; } /*! change access rule to "allow" @param name name of access right */ public function allow($name){ $this->rules[$name]=true; } /*! change access rule to "deny" @param name name of access right */ public function deny($name){ $this->rules[$name]=false; } /*! change all access rules to "deny" */ public function deny_all(){ $this->rules=array(); } /*! check access rule @param name name of access right @return true if access rule allowed, false otherwise */ public function check($name){ if ($this->local){ /*! todo add referrer check, to prevent access from remote points */ } if (!isset($this->rules[$name]) || !$this->rules[$name]){ return false; } return true; } } /*! Controls error and debug logging. Class designed to be used as static object. **/ class LogMaster{ private static $_log=false;//!< logging mode flag private static $_output=false;//!< output error infor to client flag private static $session="";//!< all messages generated for current request /*! convert array to string representation ( it is a bit more readable than var_dump ) @param data data object @param pref prefix string, used for formating, optional @return string with array description */ private static function log_details($data,$pref=""){ if (is_array($data)){ $str=array(""); foreach($data as $k=>$v) array_push($str,$pref.$k." => ".LogMaster::log_details($v,$pref."\t")); return implode("\n",$str); } return $data; } /*! put record in log @param str string with log info, optional @param data data object, which will be added to log, optional */ public static function log($str="",$data=""){ if (LogMaster::$_log){ $message = $str.LogMaster::log_details($data)."\n\n"; LogMaster::$session.=$message; error_log($message,3,LogMaster::$_log); } } /*! get logs for current request @return string, which contains all log messages generated for current request */ public static function get_session_log(){ return LogMaster::$session; } /*! error handler, put normal php errors in log file @param errn error number @param errstr error description @param file error file @param line error line @param context error cntext */ public static function error_log($errn,$errstr,$file,$line,$context){ LogMaster::log($errstr." at ".$file." line ".$line); } /*! exception handler, used as default reaction on any error - show execution log and stop processing @param exception instance of Exception */ public static function exception_log($exception){ LogMaster::log("!!!Uncaught Exception\nCode: " . $exception->getCode() . "\nMessage: " . $exception->getMessage()); if (LogMaster::$_output){ echo "<pre><xmp>\n"; echo LogMaster::get_session_log(); echo "\n</xmp></pre>"; } die(); } /*! enable logging @param name path to the log file, if boolean false provided as value - logging will be disabled @param output flag of client side output, if enabled - session log will be sent to client side in case of an error. */ public static function enable_log($name,$output=false){ LogMaster::$_log=$name; LogMaster::$_output=$output; if ($name){ set_error_handler(array("LogMaster","error_log"),E_ALL); <API key>(array("LogMaster","exception_log")); LogMaster::log("\n\n====================================\nLog started, ".date("d/m/Y h:m:s")."\n===================================="); } } } ?>
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // inline Foam::<API key>::<API key> ( const speciesTable& species, const objectRegistry& ob, const dictionary& dict ) : <API key>(species, dict), aName_(dict.lookup("a")), aField_ ( ob.lookupObject<volScalarField::Internal>(aName_) ) {} // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // inline Foam::scalar Foam::<API key>::operator() ( const scalar p, const scalar T, const scalarField& c, const label li ) const { return <API key>::operator()(p, T, c, li)*aField_[li]; } inline Foam::scalar Foam::<API key>::ddT ( const scalar p, const scalar T, const scalarField& c, const label li ) const { return <API key>::ddT(p, T, c, li)*aField_[li]; } inline void Foam::<API key>::write(Ostream& os) const { <API key>::write(os); writeEntry(os, "a", aName_); } inline Foam::Ostream& Foam::operator<< ( Ostream& os, const <API key>& arr ) { arr.write(os); return os; }
ESDK=${EPIPHANY_HOME} ELDF=${ESDK}/bsps/current/fast.ldf ELDF=../ebsp_fast.ldf # ARCH will be either x86_64, x86, or armv7l (parallella) ARCH=$(shell uname -m) ifeq ($(ARCH),x86_64) PLATFORM_PREFIX=arm-linux-gnueabihf- else PLATFORM_PREFIX= endif CFLAGS=-std=c99 -O3 -ffast-math -Wall INCLUDES = \ -I../include\ -I${ESDK}/tools/host/include LIBS = \ -L../lib HOST_LIBS = \ -L /usr/arm-linux-gnueabihf/lib \ -L${ESDK}/tools/host/lib E_LIBS = \ -L${ESDK}/tools/host/lib HOST_LIB_NAMES = -lhost-bsp -le-hal -le-loader E_LIB_NAMES = -le-bsp -le-lib all: hello e_hello primitives dot_product memtest bspbench lu_decomposition bin/%: %.c @echo "CC $<" @$(PLATFORM_PREFIX)gcc $(CFLAGS) $(INCLUDES) -o $@ $< $(LIBS) $(HOST_LIBS) $(HOST_LIB_NAMES) bin/%.elf: %.c @echo "CC $<" @e-gcc $(CFLAGS) -T ${ELDF} $(INCLUDES) -o $@ $< $(LIBS) $(E_LIBS) $(E_LIB_NAMES) bin/%.srec: bin/%.elf @e-objcopy --srec-forceS3 --output-target srec $< $@ hello: bin/hello bin/hello/host_hello bin/hello/e_hello.elf bin/hello/e_hello.srec bin/hello: @mkdir -p bin/hello e_hello: bin/e_hello bin/e_hello/host_e_hello bin/e_hello/e_e_hello.elf bin/e_hello/e_e_hello.srec bin/e_hello: @mkdir -p bin/e_hello dot_product: bin/dot_product bin/dot_product/host_dot_product bin/dot_product/e_dot_product.elf bin/dot_product/e_dot_product.srec bin/dot_product: @mkdir -p bin/dot_product lu_decomposition: bin/lu_decomposition bin/lu_decomposition/<API key> bin/lu_decomposition/e_lu_decomposition.elf bin/lu_decomposition/e_lu_decomposition.srec bin/lu_decomposition: @mkdir -p bin/lu_decomposition memtest: bin/memtest bin/memtest/host_memtest bin/memtest/e_memtest.elf bin/memtest/e_memtest.srec bin/memtest: @mkdir -p bin/memtest bspbench: bin/bspbench bin/bspbench/host_bspbench bin/bspbench/e_bspbench.elf bin/bspbench/e_bspbench.srec bin/bspbench: @mkdir -p bin/bspbench primitives: bin/primitives bin/primitives/host_primitives bin/primitives/e_primitives.elf bin/primitives/e_primitives.srec bin/primitives: @mkdir -p bin/primitives clean: rm -r bin
package com.fastaccess.helper; public class GithubConfigHelper { private static final String REDIRECT_URL = "fasthub://login"; public static String getRedirectUrl() { return REDIRECT_URL; } public static String getClientId() { return "<API key>"; } public static String getSecret() { return "<SHA1-like>"; } }
package com.ouser.ui.helper; import android.view.Gravity; import android.widget.Toast; import com.ouser.logic.OperErrorCode; import com.ouser.util.Const; public class Alert { public static void Toast(String message) { Alert.Toast(message, true, true); } public static void Toast(String message, boolean longShow, boolean center) { Toast toast = Toast.makeText(Const.Application, message, longShow ? Toast.LENGTH_LONG : Toast.LENGTH_SHORT); if(center) { toast.setGravity(Gravity.CENTER, 0, 0); } toast.show(); } public static void showNetAvaiable() { Toast("", false, true); } public static void handleErrCode(OperErrorCode errCode) { switch(errCode) { case NetNotAviable: Alert.showNetAvaiable(); break; default: Alert.Toast(""); break; } } }
# -*- coding: utf-8 -*- import os import lxml.etree import io from . import pipeline_item import core.docvert_exception class <API key>(pipeline_item.pipeline_stage): def stage(self, pipeline_value): return pipeline_value
// This file is part of OVITO (Open Visualization Tool). // OVITO is free software; you can redistribute it and/or modify // (at your option) any later version. // OVITO is distributed in the hope that it will be useful, // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #ifndef <API key> #define <API key> #include <core/Core.h> #include <core/gui/dialogs/<API key>.h> namespace Ovito { <API key>(Gui) <API key>(Internal) /** * Page of the application settings dialog, which hosts general program options. */ class OVITO_CORE_EXPORT GeneralSettingsPage : public <API key> { public: Default constructor. Q_INVOKABLE GeneralSettingsPage() : <API key>() {} \brief Creates the widget. virtual void <API key>(<API key>* settingsDialog, QTabWidget* tabWidget) override; \brief Lets the settings page to save all values entered by the user. \param settingsDialog The settings dialog box. virtual bool saveValues(<API key>* settingsDialog, QTabWidget* tabWidget) override; private: QCheckBox* _useQtFileDialog; QCheckBox* <API key>; QComboBox* _contextSharingMode; QCheckBox* <API key>; QComboBox* _pointSpriteMode; QCheckBox* <API key>; QComboBox* _geometryShaderMode; QCheckBox* _enableUpdateChecks; QCheckBox* <API key>; Q_OBJECT OVITO_OBJECT }; <API key> <API key> } // End of namespace #endif // <API key>
<!DOCTYPE html> <html> <head> <meta charset="utf-8"/> <style> table.head, table.foot { width: 100%; } td.head-rtitle, td.foot-os { text-align: right; } td.head-vol { text-align: center; } table.foot td { width: 50%; } table.head td { width: 33%; } div.spacer { margin: 1em 0; } </style> <title> TERMIOS(3)</title> </head> <body> <div class="mandoc"> <table class="head"> <tbody> <tr> <td class="head-ltitle"> TERMIOS(3)</td> <td class="head-vol"> Linux Programmer's Manual</td> <td class="head-rtitle"> TERMIOS(3)</td> </tr> </tbody> </table> <div class="section"> <h1>NAME</h1> termios, tcgetattr, tcsetattr, tcsendbreak, tcdrain, tcflush, tcflow, cfmakeraw, cfgetospeed, cfgetispeed, cfsetispeed, cfsetospeed, cfsetspeed - get and set terminal attributes, line control, get and set baud rate</div> <div class="section"> <h1>SYNOPSIS</h1> <b>#include &lt;termios.h&gt;</b><div style="height: 0.00em;"> &#160;</div> <b>#include &lt;unistd.h&gt;</b><div style="height: 1.00em;"> &#160;</div> <br/> <b>int tcgetattr(int </b><i>fd</i><b>, struct termios *</b><i>termios_p</i><b>);</b><div style="height: 1.00em;"> &#160;</div> <br/> <b>int tcsetattr(int </b><i>fd</i><b>, int </b><i>optional_actions</i><b>,</b><br/> <b> const struct termios *</b><i>termios_p</i><b>);</b><div style="height: 1.00em;"> &#160;</div> <br/> <b>int tcsendbreak(int </b><i>fd</i><b>, int </b><i>duration</i><b>);</b><div style="height: 1.00em;"> &#160;</div> <br/> <b>int tcdrain(int </b><i>fd</i><b>);</b><div style="height: 1.00em;"> &#160;</div> <br/> <b>int tcflush(int </b><i>fd</i><b>, int </b><i>queue_selector</i><b>);</b><div style="height: 1.00em;"> &#160;</div> <br/> <b>int tcflow(int </b><i>fd</i><b>, int </b><i>action</i><b>);</b><div style="height: 1.00em;"> &#160;</div> <br/> <b>void cfmakeraw(struct termios *</b><i>termios_p</i><b>);</b><div style="height: 1.00em;"> &#160;</div> <br/> <b>speed_t cfgetispeed(const struct termios *</b><i>termios_p</i><b>);</b><div style="height: 1.00em;"> &#160;</div> <br/> <b>speed_t cfgetospeed(const struct termios *</b><i>termios_p</i><b>);</b><div style="height: 1.00em;"> &#160;</div> <br/> <b>int cfsetispeed(struct termios *</b><i>termios_p</i><b>, speed_t </b><i>speed</i><b>);</b><div style="height: 1.00em;"> &#160;</div> <br/> <b>int cfsetospeed(struct termios *</b><i>termios_p</i><b>, speed_t </b><i>speed</i><b>);</b><div style="height: 1.00em;"> &#160;</div> <br/> <b>int cfsetspeed(struct termios *</b><i>termios_p</i><b>, speed_t </b><i>speed</i><b>);</b><br/> <div style="height: 1.00em;"> &#160;</div> <br/> Feature Test Macro Requirements for glibc (see <b>feature_test_macros</b>(7)):<br/> <div style="height: 1.00em;"> &#160;</div> <b>cfsetspeed</b>(), <b>cfmakeraw</b>(): _BSD_SOURCE</div> <div class="section"> <h1>DESCRIPTION</h1> The termios functions describe a general terminal interface that is provided to control asynchronous communications ports.<div class="subsection"> <h2>The termios structure</h2> Many of the functions described here have a <i>termios_p</i> argument that is a pointer to a <i>termios</i> structure. This structure contains at least the following members:<div style="height: 1.00em;"> &#160;</div> <br/> <br/> tcflag_t c_iflag; /* input modes */<br/> tcflag_t c_oflag; /* output modes */<br/> tcflag_t c_cflag; /* control modes */<br/> tcflag_t c_lflag; /* local modes */<br/> cc_t c_cc[NCCS]; /* special characters */<br/> <br/> <div class="spacer"> </div> The values that may be assigned to these fields are described below. In the case of the first four bit-mask fields, the definitions of some of the associated flags that may be set are exposed only if a specific feature test macro (see <b>feature_test_macros</b>(7)) is defined, as noted in brackets (&quot;[]&quot;).<div class="spacer"> </div> In the descriptions below, &quot;not in POSIX&quot; means that the value is not specified in POSIX.1-2001, and &quot;XSI&quot; means that the value is specified in POSIX.1-2001 as part of the XSI extension.<div class="spacer"> </div> <i>c_iflag</i> flag constants:<dl> <dt> <b>IGNBRK</b></dt> <dd> Ignore BREAK condition on input.</dd> </dl> <dl> <dt> <b>BRKINT</b></dt> <dd> If <b>IGNBRK</b> is set, a BREAK is ignored. If it is not set but <b>BRKINT</b> is set, then a BREAK causes the input and output queues to be flushed, and if the terminal is the controlling terminal of a foreground process group, it will cause a <b>SIGINT</b> to be sent to this foreground process group. When neither <b>IGNBRK</b> nor <b>BRKINT</b> are set, a BREAK reads as a null byte ('\0'), except when <b>PARMRK</b> is set, in which case it reads as the sequence \377 \0 \0.</dd> </dl> <dl> <dt> <b>IGNPAR</b></dt> <dd> Ignore framing errors and parity errors.</dd> </dl> <dl> <dt> <b>PARMRK</b></dt> <dd> If <b>IGNPAR</b> is not set, prefix a character with a parity error or framing error with \377 \0. If neither <b>IGNPAR</b> nor <b>PARMRK</b> is set, read a character with a parity error or framing error as \0.</dd> </dl> <dl> <dt> <b>INPCK</b></dt> <dd> Enable input parity checking.</dd> </dl> <dl> <dt> <b>ISTRIP</b></dt> <dd> Strip off eighth bit.</dd> </dl> <dl> <dt> <b>INLCR</b></dt> <dd> Translate NL to CR on input.</dd> </dl> <dl> <dt> <b>IGNCR</b></dt> <dd> Ignore carriage return on input.</dd> </dl> <dl> <dt> <b>ICRNL</b></dt> <dd> Translate carriage return to newline on input (unless <b>IGNCR</b> is set).</dd> </dl> <dl> <dt> <b>IUCLC</b></dt> <dd> (not in POSIX) Map uppercase characters to lowercase on input.</dd> </dl> <dl> <dt> <b>IXON</b></dt> <dd> Enable XON/XOFF flow control on output.</dd> </dl> <dl> <dt> <b>IXANY</b></dt> <dd> (XSI) Typing any character will restart stopped output. (The default is to allow just the START character to restart output.)</dd> </dl> <dl> <dt> <b>IXOFF</b></dt> <dd> Enable XON/XOFF flow control on input.</dd> </dl> <dl> <dt> <b>IMAXBEL</b></dt> <dd> (not in POSIX) Ring bell when input queue is full. Linux does not implement this bit, and acts as if it is always set.</dd> </dl> <dl> <dt> <b>IUTF8</b> (since Linux 2.6.4)</dt> <dd> (not in POSIX) Input is UTF8; this allows character-erase to be correctly performed in cooked mode.</dd> </dl> <div class="spacer"> </div> <i>c_oflag</i> flag constants:<dl> <dt> <b>OPOST</b></dt> <dd> Enable <API key> output processing.</dd> </dl> <dl> <dt> <b>OLCUC</b></dt> <dd> (not in POSIX) Map lowercase characters to uppercase on output.</dd> </dl> <dl> <dt> <b>ONLCR</b></dt> <dd> (XSI) Map NL to CR-NL on output.</dd> </dl> <dl> <dt> <b>OCRNL</b></dt> <dd> Map CR to NL on output.</dd> </dl> <dl> <dt> <b>ONOCR</b></dt> <dd> Don't output CR at column 0.</dd> </dl> <dl> <dt> <b>ONLRET</b></dt> <dd> Don't output CR.</dd> </dl> <dl> <dt> <b>OFILL</b></dt> <dd> Send fill characters for a delay, rather than using a timed delay.</dd> </dl> <dl> <dt> <b>OFDEL</b></dt> <dd> Fill character is ASCII DEL (0177). If unset, fill character is ASCII NUL ('\0'). (Not implemented on Linux.)</dd> </dl> <dl> <dt> <b>NLDLY</b></dt> <dd> Newline delay mask. Values are <b>NL0</b> and <b>NL1</b>. [requires <b>_BSD_SOURCE</b> or <b>_SVID_SOURCE</b> or <b>_XOPEN_SOURCE</b>]</dd> </dl> <dl> <dt> <b>CRDLY</b></dt> <dd> Carriage return delay mask. Values are <b>CR0</b>, <b>CR1</b>, <b>CR2</b>, or <b>CR3</b>. [requires <b>_BSD_SOURCE</b> or <b>_SVID_SOURCE</b> or <b>_XOPEN_SOURCE</b>]</dd> </dl> <dl> <dt> <b>TABDLY</b></dt> <dd> Horizontal tab delay mask. Values are <b>TAB0</b>, <b>TAB1</b>, <b>TAB2</b>, <b>TAB3</b> (or <b>XTABS</b>). A value of TAB3, that is, XTABS, expands tabs to spaces (with tab stops every eight columns). [requires <b>_BSD_SOURCE</b> or <b>_SVID_SOURCE</b> or <b>_XOPEN_SOURCE</b>]</dd> </dl> <dl> <dt> <b>BSDLY</b></dt> <dd> Backspace delay mask. Values are <b>BS0</b> or <b>BS1</b>. (Has never been implemented.) [requires <b>_BSD_SOURCE</b> or <b>_SVID_SOURCE</b> or <b>_XOPEN_SOURCE</b>]</dd> </dl> <dl> <dt> <b>VTDLY</b></dt> <dd> Vertical tab delay mask. Values are <b>VT0</b> or <b>VT1</b>.</dd> </dl> <dl> <dt> <b>FFDLY</b></dt> <dd> Form feed delay mask. Values are <b>FF0</b> or <b>FF1</b>. [requires <b>_BSD_SOURCE</b> or <b>_SVID_SOURCE</b> or <b>_XOPEN_SOURCE</b>]</dd> </dl> <div class="spacer"> </div> <i>c_cflag</i> flag constants:<dl> <dt> <b>CBAUD</b></dt> <dd> (not in POSIX) Baud speed mask (4+1 bits). [requires <b>_BSD_SOURCE</b> or <b>_SVID_SOURCE</b>]</dd> </dl> <dl> <dt> <b>CBAUDEX</b></dt> <dd> (not in POSIX) Extra baud speed mask (1 bit), included in <b>CBAUD</b>. [requires <b>_BSD_SOURCE</b> or <b>_SVID_SOURCE</b>]<div style="height: 1.00em;"> &#160;</div> (POSIX says that the baud speed is stored in the <i>termios</i> structure without specifying where precisely, and provides <b>cfgetispeed</b>() and <b>cfsetispeed</b>() for getting at it. Some systems use bits selected by <b>CBAUD</b> in <i>c_cflag</i>, other systems use separate fields, for example, <i>sg_ispeed</i> and <i>sg_ospeed</i>.)</dd> </dl> <dl> <dt> <b>CSIZE</b></dt> <dd> Character size mask. Values are <b>CS5</b>, <b>CS6</b>, <b>CS7</b>, or <b>CS8</b>.</dd> </dl> <dl> <dt> <b>CSTOPB</b></dt> <dd> Set two stop bits, rather than one.</dd> </dl> <dl> <dt> <b>CREAD</b></dt> <dd> Enable receiver.</dd> </dl> <dl> <dt> <b>PARENB</b></dt> <dd> Enable parity generation on output and parity checking for input.</dd> </dl> <dl> <dt> <b>PARODD</b></dt> <dd> If set, then parity for input and output is odd; otherwise even parity is used.</dd> </dl> <dl> <dt> <b>HUPCL</b></dt> <dd> Lower modem control lines after last process closes the device (hang up).</dd> </dl> <dl> <dt> <b>CLOCAL</b></dt> <dd> Ignore modem control lines.</dd> </dl> <dl> <dt> <b>LOBLK</b></dt> <dd> (not in POSIX) Block output from a noncurrent shell layer. For use by <b>shl</b> (shell layers). (Not implemented on Linux.)</dd> </dl> <dl> <dt> <b>CIBAUD</b></dt> <dd> (not in POSIX) Mask for input speeds. The values for the <b>CIBAUD</b> bits are the same as the values for the <b>CBAUD</b> bits, shifted left <b>IBSHIFT</b> bits. [requires <b>_BSD_SOURCE</b> or <b>_SVID_SOURCE</b>] (Not implemented on Linux.)</dd> </dl> <dl> <dt> <b>CMSPAR</b></dt> <dd> (not in POSIX) Use &quot;stick&quot; (mark/space) parity (supported on certain serial devices): if <b>PARODD</b> is set, the parity bit is always 1; if <b>PARODD</b> is not set, then the parity bit is always 0. [requires <b>_BSD_SOURCE</b> or <b>_SVID_SOURCE</b>]</dd> </dl> <dl> <dt> <b>CRTSCTS</b></dt> <dd> (not in POSIX) Enable RTS/CTS (hardware) flow control. [requires <b>_BSD_SOURCE</b> or <b>_SVID_SOURCE</b>]</dd> </dl> <div class="spacer"> </div> <i>c_lflag</i> flag constants:<dl> <dt> <b>ISIG</b></dt> <dd> When any of the characters INTR, QUIT, SUSP, or DSUSP are received, generate the corresponding signal.</dd> </dl> <dl> <dt> <b>ICANON</b></dt> <dd> Enable canonical mode (described below).</dd> </dl> <dl> <dt> <b>XCASE</b></dt> <dd> (not in POSIX; not supported under Linux) If <b>ICANON</b> is also set, terminal is uppercase only. Input is converted to lowercase, except for characters preceded by \. On output, uppercase characters are preceded by \ and lowercase characters are converted to uppercase. [requires <b>_BSD_SOURCE</b> or <b>_SVID_SOURCE</b> or <b>_XOPEN_SOURCE</b>]</dd> </dl> <dl> <dt> <b>ECHO</b></dt> <dd> Echo input characters.</dd> </dl> <dl> <dt> <b>ECHOE</b></dt> <dd> If <b>ICANON</b> is also set, the ERASE character erases the preceding input character, and WERASE erases the preceding word.</dd> </dl> <dl> <dt> <b>ECHOK</b></dt> <dd> If <b>ICANON</b> is also set, the KILL character erases the current line.</dd> </dl> <dl> <dt> <b>ECHONL</b></dt> <dd> If <b>ICANON</b> is also set, echo the NL character even if ECHO is not set.</dd> </dl> <dl> <dt> <b>ECHOCTL</b></dt> <dd> (not in POSIX) If <b>ECHO</b> is also set, terminal special characters other than TAB, NL, START, and STOP are echoed as <b>^X</b>, where X is the character with ASCII code 0x40 greater than the special character. For example, character 0x08 (BS) is echoed as <b>^H</b>. [requires <b>_BSD_SOURCE</b> or <b>_SVID_SOURCE</b>]</dd> </dl> <dl> <dt> <b>ECHOPRT</b></dt> <dd> (not in POSIX) If <b>ICANON</b> and <b>ECHO</b> are also set, characters are printed as they are being erased. [requires <b>_BSD_SOURCE</b> or <b>_SVID_SOURCE</b>]</dd> </dl> <dl> <dt> <b>ECHOKE</b></dt> <dd> (not in POSIX) If <b>ICANON</b> is also set, KILL is echoed by erasing each character on the line, as specified by <b>ECHOE</b> and <b>ECHOPRT</b>. [requires <b>_BSD_SOURCE</b> or <b>_SVID_SOURCE</b>]</dd> </dl> <dl> <dt> <b>DEFECHO</b></dt> <dd> (not in POSIX) Echo only when a process is reading. (Not implemented on Linux.)</dd> </dl> <dl> <dt> <b>FLUSHO</b></dt> <dd> (not in POSIX; not supported under Linux) Output is being flushed. This flag is toggled by typing the DISCARD character. [requires <b>_BSD_SOURCE</b> or <b>_SVID_SOURCE</b>]</dd> </dl> <dl> <dt> <b>NOFLSH</b></dt> <dd> Disable flushing the input and output queues when generating signals for the INT, QUIT, and SUSP characters.</dd> </dl> <dl> <dt> <b>TOSTOP</b></dt> <dd> Send the <b>SIGTTOU</b> signal to the process group of a background process which tries to write to its controlling terminal.</dd> </dl> <dl> <dt> <b>PENDIN</b></dt> <dd> (not in POSIX; not supported under Linux) All characters in the input queue are reprinted when the next character is read. (<b>bash</b>(1) handles typeahead this way.) [requires <b>_BSD_SOURCE</b> or <b>_SVID_SOURCE</b>]</dd> </dl> <dl> <dt> <b>IEXTEN</b></dt> <dd> Enable <API key> input processing. This flag, as well as <b>ICANON</b> must be enabled for the special characters EOL2, LNEXT, REPRINT, WERASE to be interpreted, and for the <b>IUCLC</b> flag to be effective.</dd> </dl> <div class="spacer"> </div> The <i>c_cc</i> array defines the terminal special characters. The symbolic indices (initial values) and meaning are:<dl> <dt> <b>VDISCARD</b></dt> <dd> (not in POSIX; not supported under Linux; 017, SI, Ctrl-O) Toggle: start/stop discarding pending output. Recognized when <b>IEXTEN</b> is set, and then not passed as input.</dd> </dl> <dl> <dt> <b>VDSUSP</b></dt> <dd> (not in POSIX; not supported under Linux; 031, EM, Ctrl-Y) Delayed suspend character (DSUSP): send <b>SIGTSTP</b> signal when the character is read by the user program. Recognized when <b>IEXTEN</b> and <b>ISIG</b> are set, and the system supports job control, and then not passed as input.</dd> </dl> <dl> <dt> <b>VEOF</b></dt> <dd> (004, EOT, Ctrl-D) End-of-file character (EOF). More precisely: this character causes the pending tty buffer to be sent to the waiting user program without waiting for end-of-line. If it is the first character of the line, the <b>read</b>(2) in the user program returns 0, which signifies end-of-file. Recognized when <b>ICANON</b> is set, and then not passed as input.</dd> </dl> <dl> <dt> <b>VEOL</b></dt> <dd> (0, NUL) Additional end-of-line character (EOL). Recognized when <b>ICANON</b> is set.</dd> </dl> <dl> <dt> <b>VEOL2</b></dt> <dd> (not in POSIX; 0, NUL) Yet another end-of-line character (EOL2). Recognized when <b>ICANON</b> is set.</dd> </dl> <dl> <dt> <b>VERASE</b></dt> <dd> (0177, DEL, rubout, or 010, BS, Ctrl-H, or also #) Erase character (ERASE). This erases the previous not-yet-erased character, but does not erase past EOF or beginning-of-line. Recognized when <b>ICANON</b> is set, and then not passed as input.</dd> </dl> <dl> <dt> <b>VINTR</b></dt> <dd> (003, ETX, Ctrl-C, or also 0177, DEL, rubout) Interrupt character (INTR). Send a <b>SIGINT</b> signal. Recognized when <b>ISIG</b> is set, and then not passed as input.</dd> </dl> <dl> <dt> <b>VKILL</b></dt> <dd> (025, NAK, Ctrl-U, or Ctrl-X, or also @) Kill character (KILL). This erases the input since the last EOF or beginning-of-line. Recognized when <b>ICANON</b> is set, and then not passed as input.</dd> </dl> <dl> <dt> <b>VLNEXT</b></dt> <dd> (not in POSIX; 026, SYN, Ctrl-V) Literal next (LNEXT). Quotes the next input character, depriving it of a possible special meaning. Recognized when <b>IEXTEN</b> is set, and then not passed as input.</dd> </dl> <dl> <dt> <b>VMIN</b></dt> <dd> Minimum number of characters for noncanonical read (MIN).</dd> </dl> <dl> <dt> <b>VQUIT</b></dt> <dd> (034, FS, Ctrl-\) Quit character (QUIT). Send <b>SIGQUIT</b> signal. Recognized when <b>ISIG</b> is set, and then not passed as input.</dd> </dl> <dl> <dt> <b>VREPRINT</b></dt> <dd> (not in POSIX; 022, DC2, Ctrl-R) Reprint unread characters (REPRINT). Recognized when <b>ICANON</b> and <b>IEXTEN</b> are set, and then not passed as input.</dd> </dl> <dl> <dt> <b>VSTART</b></dt> <dd> (021, DC1, Ctrl-Q) Start character (START). Restarts output stopped by the Stop character. Recognized when <b>IXON</b> is set, and then not passed as input.</dd> </dl> <dl> <dt> <b>VSTATUS</b></dt> <dd> (not in POSIX; not supported under Linux; status request: 024, DC4, Ctrl-T). Status character (STATUS). Display status information at terminal, including state of foreground process and amount of CPU time it has consumed. Also sends a <b>SIGINFO</b> signal (not supported on Linux) to the foreground process group.</dd> </dl> <dl> <dt> <b>VSTOP</b></dt> <dd> (023, DC3, Ctrl-S) Stop character (STOP). Stop output until Start character typed. Recognized when <b>IXON</b> is set, and then not passed as input.</dd> </dl> <dl> <dt> <b>VSUSP</b></dt> <dd> (032, SUB, Ctrl-Z) Suspend character (SUSP). Send <b>SIGTSTP</b> signal. Recognized when <b>ISIG</b> is set, and then not passed as input.</dd> </dl> <dl> <dt> <b>VSWTCH</b></dt> <dd> (not in POSIX; not supported under Linux; 0, NUL) Switch character (SWTCH). Used in System V to switch shells in <i>shell layers</i>, a predecessor to shell job control.</dd> </dl> <dl> <dt> <b>VTIME</b></dt> <dd> Timeout in deciseconds for noncanonical read (TIME).</dd> </dl> <dl> <dt> <b>VWERASE</b></dt> <dd> (not in POSIX; 027, ETB, Ctrl-W) Word erase (WERASE). Recognized when <b>ICANON</b> and <b>IEXTEN</b> are set, and then not passed as input.</dd> </dl> <div class="spacer"> </div> An individual terminal special character can be disabled by setting the value of the corresponding <i>c_cc</i> element to <b>_POSIX_VDISABLE</b>.<div class="spacer"> </div> The above symbolic subscript values are all different, except that <b>VTIME</b>, <b>VMIN</b> may have the same value as <b>VEOL</b>, <b>VEOF</b>, respectively. In noncanonical mode the special character meaning is replaced by the timeout meaning. For an explanation of <b>VMIN</b> and <b>VTIME</b>, see the description of noncanonical mode below.</div> <div class="subsection"> <h2>Retrieving and changing terminal settings</h2> <b>tcgetattr</b>() gets the parameters associated with the object referred by <i>fd</i> and stores them in the <i>termios</i> structure referenced by <i>termios_p</i>. This function may be invoked from a background process; however, the terminal attributes may be subsequently changed by a foreground process.<div class="spacer"> </div> <b>tcsetattr</b>() sets the parameters associated with the terminal (unless support is required from the underlying hardware that is not available) from the <i>termios</i> structure referred to by <i>termios_p</i>. <i>optional_actions</i> specifies when the changes take effect:<dl> <dt> <b>TCSANOW</b></dt> <dd> the change occurs immediately.</dd> </dl> <dl> <dt> <b>TCSADRAIN</b></dt> <dd> the change occurs after all output written to <i>fd</i> has been transmitted. This option should be used when changing parameters that affect output.</dd> </dl> <dl> <dt> <b>TCSAFLUSH</b></dt> <dd> the change occurs after all output written to the object referred by <i>fd</i> has been transmitted, and all input that has been received but not read will be discarded before the change is made.</dd> </dl> </div> <div class="subsection"> <h2>Canonical and noncanonical mode</h2> The setting of the <b>ICANON</b> canon flag in <i>c_lflag</i> determines whether the terminal is operating in canonical mode (<b>ICANON</b> set) or noncanonical mode (<b>ICANON</b> unset). By default, <b>ICANON</b> set.<div style="height: 1.00em;"> &#160;</div> In canonical mode:<dl> <dt> *</dt> <dd> Input is made available line by line. An input line is available when one of the line delimiters is typed (NL, EOL, EOL2; or EOF at the start of line). Except in the case of EOF, the line delimiter is included in the buffer returned by <b>read</b>(2).</dd> </dl> <dl> <dt> *</dt> <dd> Line editing is enabled (ERASE, KILL; and if the <b>IEXTEN</b> flag is set: WERASE, REPRINT, LNEXT). A <b>read</b>(2) returns at most one line of input; if the <b>read</b>(2) requested fewer bytes than are available in the current line of input, then only as many bytes as requested are read, and the remaining characters will be available for a future <b>read</b>(2).</dd> </dl> <div class="spacer"> </div> In noncanonical mode input is available immediately (without the user having to type a line-delimiter character), no input processing is performed, and line editing is disabled. The settings of MIN (<i>c_cc[VMIN]</i>) and TIME (<i>c_cc[VTIME]</i>) determine the circumstances in which a <b>read</b>(2) completes; there are four distinct cases:<dl> <dt> MIN == 0, TIME == 0 (polling read)</dt> <dd> If data is available, <b>read</b>(2) returns immediately, with the lesser of the number of bytes available, or the number of bytes requested. If no data is available, <b>read</b>(2) returns 0.</dd> </dl> <dl> <dt> MIN &gt; 0, TIME == 0 (blocking read)</dt> <dd> <b>read</b>(2) blocks until MIN bytes are available, and returns up to the number of bytes requested.</dd> </dl> <dl> <dt> MIN == 0, TIME &gt; 0 (read with timeout)</dt> <dd> TIME specifies the limit for a timer in tenths of a second. The timer is started when <b>read</b>(2) is called. <b>read</b>(2) returns either when at least one byte of data is available, or when the timer expires. If the timer expires without any input becoming available, <b>read</b>(2) returns 0. If data is already available at the time of the call to <b>read</b>(2), the call behaves as though the data was received immediately after the call.</dd> </dl> <dl> <dt> MIN &gt; 0, TIME &gt; 0 (read with interbyte timeout)</dt> <dd> TIME specifies the limit for a timer in tenths of a second. Once an initial byte of input becomes available, the timer is restarted after each further byte is received. <b>read</b>(2) returns when any of the following conditions is met:</dd> </dl> <div style="margin-left: 5.00ex;"> <dl> <dt> *</dt> <dd> MIN bytes have been received.</dd> </dl> <dl> <dt> *</dt> <dd> The interbyte timer expires.</dd> </dl> <dl> <dt> *</dt> <dd> The number of bytes requested by <b>read</b>(2) has been received. (POSIX does not specify this termination condition, and on some other implementations <b>read</b>(2) does not return in this case.)</dd> </dl> </div> <dl> <dt> </dt> <dd> Because the timer is started only after the initial byte becomes available, at least one byte will be read. If data is already available at the time of the call to <b>read</b>(2), the call behaves as though the data was received immediately after the call.</dd> </dl> <div class="spacer"> </div> POSIX does not specify whether the setting of the <b>O_NONBLOCK</b> file status flag takes precedence over the MIN and TIME settings. If <b>O_NONBLOCK</b> is set, a <b>read</b>(2) in noncanonical mode may return immediately, regardless of the setting of MIN or TIME. Furthermore, if no data is available, POSIX permits a <b>read</b>(2) in noncanonical mode to return either 0, or -1 with <i>errno</i> set to <b>EAGAIN</b>.</div> <div class="subsection"> <h2>Raw mode</h2> <b>cfmakeraw</b>() sets the terminal to something like the &quot;raw&quot; mode of the old Version 7 terminal driver: input is available character by character, echoing is disabled, and all special processing of terminal input and output characters is disabled. The terminal attributes are set as follows:<div class="spacer"> </div> <br/> termios_p-&gt;c_iflag &amp;= ~(IGNBRK | BRKINT | PARMRK | ISTRIP<br/> | INLCR | IGNCR | ICRNL | IXON);<br/> termios_p-&gt;c_oflag &amp;= ~OPOST;<br/> termios_p-&gt;c_lflag &amp;= ~(ECHO | ECHONL | ICANON | ISIG | IEXTEN);<br/> termios_p-&gt;c_cflag &amp;= ~(CSIZE | PARENB);<br/> termios_p-&gt;c_cflag |= CS8;<br/> </div> <div class="subsection"> <h2>Line control</h2> <b>tcsendbreak</b>() transmits a continuous stream of zero-valued bits for a specific duration, if the terminal is using asynchronous serial data transmission. If <i>duration</i> is zero, it transmits zero-valued bits for at least 0.25 seconds, and not more that 0.5 seconds. If <i>duration</i> is not zero, it sends zero-valued bits for some <API key> length of time.<div class="spacer"> </div> If the terminal is not using asynchronous serial data transmission, <b>tcsendbreak</b>() returns without taking any action.<div class="spacer"> </div> <b>tcdrain</b>() waits until all output written to the object referred to by <i>fd</i> has been transmitted.<div class="spacer"> </div> <b>tcflush</b>() discards data written to the object referred to by <i>fd</i> but not transmitted, or data received but not read, depending on the value of <i>queue_selector</i>:<dl> <dt> <b>TCIFLUSH</b></dt> <dd> flushes data received but not read.</dd> </dl> <dl> <dt> <b>TCOFLUSH</b></dt> <dd> flushes data written but not transmitted.</dd> </dl> <dl> <dt> <b>TCIOFLUSH</b></dt> <dd> flushes both data received but not read, and data written but not transmitted.</dd> </dl> <div class="spacer"> </div> <b>tcflow</b>() suspends transmission or reception of data on the object referred to by <i>fd</i>, depending on the value of <i>action</i>:<dl> <dt> <b>TCOOFF</b></dt> <dd> suspends output.</dd> </dl> <dl> <dt> <b>TCOON</b></dt> <dd> restarts suspended output.</dd> </dl> <dl> <dt> <b>TCIOFF</b></dt> <dd> transmits a STOP character, which stops the terminal device from transmitting data to the system.</dd> </dl> <dl> <dt> <b>TCION</b></dt> <dd> transmits a START character, which starts the terminal device transmitting data to the system.</dd> </dl> <div class="spacer"> </div> The default on open of a terminal file is that neither its input nor its output is suspended.</div> <div class="subsection"> <h2>Line speed</h2> The baud rate functions are provided for getting and setting the values of the input and output baud rates in the <i>termios</i> structure. The new values do not take effect until <b>tcsetattr</b>() is successfully called.<div style="height: 1.00em;"> &#160;</div> Setting the speed to <b>B0</b> instructs the modem to &quot;hang up&quot;. The actual bit rate corresponding to <b>B38400</b> may be altered with <b>setserial</b>(8).<div class="spacer"> </div> The input and output baud rates are stored in the <i>termios</i> structure.<div class="spacer"> </div> <b>cfgetospeed</b>() returns the output baud rate stored in the <i>termios</i> structure pointed to by <i>termios_p</i>.<div class="spacer"> </div> <b>cfsetospeed</b>() sets the output baud rate stored in the <i>termios</i> structure pointed to by <i>termios_p</i> to <i>speed</i>, which must be one of these constants:<div class="spacer"> </div> <br/> B0<br/> B50<br/> B75<br/> B110<br/> B134<br/> B150<br/> B200<br/> B300<br/> B600<br/> B1200<br/> B1800<br/> B2400<br/> B4800<br/> B9600<br/> B19200<br/> B38400<br/> B57600<br/> B115200<br/> B230400<div class="spacer"> </div> <br/> The zero baud rate, <b>B0</b>, is used to terminate the connection. If B0 is specified, the modem control lines shall no longer be asserted. Normally, this will disconnect the line. <b>CBAUDEX</b> is a mask for the speeds beyond those defined in POSIX.1 (57600 and above). Thus, <b>B57600</b> &amp; <b>CBAUDEX</b> is nonzero.<div class="spacer"> </div> <b>cfgetispeed</b>() returns the input baud rate stored in the <i>termios</i> structure.<div class="spacer"> </div> <b>cfsetispeed</b>() sets the input baud rate stored in the <i>termios</i> structure to <i>speed</i>, which must be specified as one of the <b>Bnnn</b> constants listed above for <b>cfsetospeed</b>(). If the input baud rate is set to zero, the input baud rate will be equal to the output baud rate.<div class="spacer"> </div> <b>cfsetspeed</b>() is a 4.4BSD extension. It takes the same arguments as <b>cfsetispeed</b>(), and sets both input and output speed.</div> </div> <div class="section"> <h1>RETURN VALUE</h1> <b>cfgetispeed</b>() returns the input baud rate stored in the <i>termios</i> structure.<div class="spacer"> </div> <b>cfgetospeed</b>() returns the output baud rate stored in the <i>termios</i> structure.<div class="spacer"> </div> All other functions return:<dl> <dt> 0</dt> <dd> on success.</dd> </dl> <dl> <dt> -1</dt> <dd> on failure and set <i>errno</i> to indicate the error.</dd> </dl> <div class="spacer"> </div> Note that <b>tcsetattr</b>() returns success if <i>any</i> of the requested changes could be successfully carried out. Therefore, when making multiple changes it may be necessary to follow this call with a further call to <b>tcgetattr</b>() to check that all changes have been performed successfully.</div> <div class="section"> <h1>ATTRIBUTES</h1> For an explanation of the terms used in this section, see <b>attributes</b>(7).<table class="tbl"> <col style="width: 170.00ex;"/> <col style="width: 13.00ex;"/> <col style="width: 5.00ex;"/> <tbody> <tr> <td> Interface</td> <td> Attribute</td> <td> Value</td> </tr> <tr> <td> tcgetattr (), tcsetattr (), tcdrain (), tcflush (), tcflow (), tcsendbreak (), cfmakeraw (), cfgetispeed (), cfgetospeed (), cfsetispeed (), cfsetospeed (), cfsetspeed ()</td> <td> Thread safety</td> <td> </td> </tr> </tbody> </table> </div> <div class="section"> <h1>CONFORMING TO</h1> <b>tcgetattr</b>(), <b>tcsetattr</b>(), <b>tcsendbreak</b>(), <b>tcdrain</b>(), <b>tcflush</b>(), <b>tcflow</b>(), <b>cfgetispeed</b>(), <b>cfgetospeed</b>(), <b>cfsetispeed</b>(), and <b>cfsetospeed</b>() are specified in POSIX.1-2001.<div style="height: 1.00em;"> &#160;</div> <b>cfmakeraw</b>() and <b>cfsetspeed</b>() are nonstandard, but available on the BSDs.</div> <div class="section"> <h1>NOTES</h1> UNIX&#160;V7 and several later systems have a list of baud rates where after the fourteen values B0, ..., B9600 one finds the two constants EXTA, EXTB (&quot;External A&quot; and &quot;External B&quot;). Many systems extend the list with much higher baud rates.<div class="spacer"> </div> The effect of a nonzero <i>duration</i> with <b>tcsendbreak</b>() varies. SunOS specifies a break of <i>duration&#160;*&#160;N</i> seconds, where <i>N</i> is at least 0.25, and not more than 0.5. Linux, AIX, DU, Tru64 send a break of <i>duration</i> milliseconds. FreeBSD and NetBSD and HP-UX and MacOS ignore the value of <i>duration</i>. Under Solaris and UnixWare, <b>tcsendbreak</b>() with nonzero <i>duration</i> behaves like <b>tcdrain</b>().</div> <div class="section"> <h1>SEE ALSO</h1> <b>reset</b>(1), <b>setterm</b>(1), <b>stty</b>(1), <b>tput</b>(1), <b>tset</b>(1), <b>console_ioctl</b>(4), <b>tty_ioctl</b>(4), <b>setserial</b>(8)</div> <div class="section"> <h1>COLOPHON</h1> This page is part of release 4.02 of the Linux <i>man-pages</i> project. A description of the project, information about reporting bugs, and the latest version of this page, can be found at http: <table class="foot"> <tr> <td class="foot-date"> 2015-03-02</td> <td class="foot-os"> Linux</td> </tr> </table> </div> </body> </html>
<div style="width:90px;min-height:62px;" class="cmd <center> <span style="font-weight: bold;font-size : 12px;" class='cmdName'>#name_display#</span> <span style="font-size: 3em;font-weight: bold;margin-top: 5px;" class="iconCmd#uid#"></span> </center> <script> if ('#state#' == '1' || '#state#' == 1) { $('.iconCmd#uid#').addClass('fa fa-check'); } if ('#state#' == '0' || '#state#' == 0) { $('.iconCmd#uid#').addClass('fa fa-times'); } </script> </div>
# Makefile.in generated by automake 1.10 from Makefile.am. # gsoap/samples/Makefile. Generated from Makefile.in by configure. # 2003, 2004, 2005, 2006 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # PARTICULAR PURPOSE. pkgdatadir = $(datadir)/gsoap pkglibdir = $(libdir)/gsoap pkgincludedir = $(includedir)/gsoap am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(<API key>) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = i686-pc-linux-gnu host_triplet = i686-pc-linux-gnu subdir = gsoap/samples DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.in am__configure_deps = $(am__aclocal_m4_deps) $(<API key>) \ $(ACLOCAL_M4) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive <API key> \ <API key> <API key> \ <API key> <API key> \ <API key> <API key> install-recursive \ <API key> <API key> pdf-recursive \ ps-recursive uninstall-recursive <API key> = <API key> clean-recursive \ distclean-recursive <API key> ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = ${SHELL} /home/sviluppo/Scaricati/gsoap-2.8/missing --run aclocal-1.10 AMTAR = ${SHELL} /home/sviluppo/Scaricati/gsoap-2.8/missing --run tar AUTOCONF = ${SHELL} /home/sviluppo/Scaricati/gsoap-2.8/missing --run autoconf AUTOHEADER = ${SHELL} /home/sviluppo/Scaricati/gsoap-2.8/missing --run autoheader AUTOMAKE = ${SHELL} /home/sviluppo/Scaricati/gsoap-2.8/missing --run automake-1.10 AWK = mawk BISON_DEFINE = -DWITH_BISON CC = gcc CCDEPMODE = depmode=gcc3 CFLAGS = -g -O2 CPP = gcc -E CPPFLAGS = CXX = g++ CXXDEPMODE = depmode=gcc3 CXXFLAGS = -g -O2 CYGPATH_W = echo DEFS = -DHAVE_CONFIG_H DEPDIR = .deps ECHO_C = ECHO_N = -n ECHO_T = EGREP = /bin/grep -E ENABLE_SAMPLES = EXEEXT = GREP = /bin/grep INSTALL = /usr/bin/install -c INSTALL_DATA = ${INSTALL} -m 644 INSTALL_PROGRAM = ${INSTALL} INSTALL_SCRIPT = ${INSTALL} <API key> = $(install_sh) -c -s LDFLAGS = LEX = flex LEXLIB = -lfl LEX_DEFINE = -DWITH_FLEX LEX_FLAGS = -l LEX_OUTPUT_ROOT = lex.yy LIBOBJS = ${LIBOBJDIR}mktime$U.o LIBS = LN_S = ln -s LTLIBOBJS = ${LIBOBJDIR}mktime$U.lo MAKEINFO = ${SHELL} /home/sviluppo/Scaricati/gsoap-2.8/missing --run makeinfo MKDIR_P = /bin/mkdir -p OBJEXT = o PACKAGE = gsoap PACKAGE_BUGREPORT = PACKAGE_NAME = gsoap PACKAGE_STRING = gsoap 2.8 PACKAGE_TARNAME = gsoap PACKAGE_VERSION = 2.8 PATH_SEPARATOR = : RANLIB = ranlib SAMPLE_DIRS = SAMPLE_EXTRA_LIBS = SAMPLE_SSL_LIBS = -lssl -lcrypto -lz SET_MAKE = SHELL = /bin/bash SOAPCPP2_DEBUG = -DDEBUG SOAPCPP2_IMPORTPATH = -<API key>="\"${datarootdir}/gsoap/import\"" <API key> = STRIP = VERSION = 2.8 WSDL2H_EXTRA_FLAGS = -DWITH_OPENSSL -DWITH_GZIP WSDL2H_EXTRA_LIBS = -lssl -lcrypto -lz WSDL2H_IMPORTPATH = -DWSDL_IMPORT_PATH="\"${datarootdir}/gsoap/WS\"" WSDL2H_SOAP_CPP_LIB = libgsoapssl++.a YACC = bison -y YACC_LIB = YFLAGS = abs_builddir = /home/sviluppo/Scaricati/gsoap-2.8/gsoap/samples abs_srcdir = /home/sviluppo/Scaricati/gsoap-2.8/gsoap/samples abs_top_builddir = /home/sviluppo/Scaricati/gsoap-2.8 abs_top_srcdir = /home/sviluppo/Scaricati/gsoap-2.8 ac_ct_CC = gcc ac_ct_CXX = g++ am__include = include am__leading_dot = . am__quote = am__tar = ${AMTAR} chof - "$$tardir" am__untar = ${AMTAR} xf - bindir = ${exec_prefix}/bin build = i686-pc-linux-gnu build_alias = build_cpu = i686 build_os = linux-gnu build_vendor = pc builddir = . datadir = ${datarootdir} datarootdir = ${prefix}/share docdir = ${datarootdir}/doc/${PACKAGE_TARNAME} dvidir = ${docdir} exec_prefix = ${prefix} host = i686-pc-linux-gnu host_alias = host_cpu = i686 host_os = linux-gnu host_vendor = pc htmldir = ${docdir} includedir = ${prefix}/include infodir = ${datarootdir}/info install_sh = $(SHELL) /home/sviluppo/Scaricati/gsoap-2.8/install-sh libdir = ${exec_prefix}/lib libexecdir = ${exec_prefix}/libexec localedir = ${datarootdir}/locale localstatedir = ${prefix}/var mandir = ${datarootdir}/man mkdir_p = /bin/mkdir -p oldincludedir = /usr/include pdfdir = ${docdir} platform = LINUX prefix = /usr/local <API key> = s,x,x, psdir = ${docdir} sbindir = ${exec_prefix}/sbin sharedstatedir = ${prefix}/com srcdir = . sysconfdir = ${prefix}/etc target_alias = top_builddir = ../.. top_srcdir = ../.. AUTOMAKE_OPTIONS = foreign 1.4 SUBDIRS = \ autotest calc calc++ databinding dime dom oneway oneway++ \ factory factorytest \ gmt googleapi hello httpcookies lu magic mashup mashup++ \ mtom mtom-stream polytest roll router rss ssl template udp varparam \ wsa wsrm wsse xml-rpc all: all-recursive .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign gsoap/samples/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --foreign gsoap/samples/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(<API key>) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, # (1) if the variable is set in `config.status', edit `config.status' # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): @failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" $(<API key>): @failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$tags $$unique; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ test -z "$(CTAGS_ARGS)$$tags$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$tags $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && cd $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) $$here distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ else \ test -f $(distdir)/$$file \ || cp -p $$d/$$file $(distdir)/$$file \ || exit 1; \ fi; \ done list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ distdir=`$(am__cd) $(distdir) && pwd`; \ top_distdir=`$(am__cd) $(top_distdir) && pwd`; \ (cd $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$top_distdir" \ distdir="$$distdir/$$subdir" \ am__remove_distdir=: \ <API key>=: \ distdir) \ || exit 1; \ fi; \ done check-am: all-am check: check-recursive all-am: Makefile installdirs: <API key> installdirs-am: install: install-recursive install-exec: <API key> install-data: <API key> uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: <API key> install-strip: $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(<API key>)" \ install_sh_PROGRAM="$(<API key>)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) <API key>: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic mostlyclean-am distclean: distclean-recursive -rm -f Makefile distclean-am: clean-am distclean-generic distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive info: info-recursive info-am: install-data-am: install-dvi: <API key> install-exec-am: install-html: <API key> install-info: <API key> install-man: install-pdf: <API key> install-ps: <API key> installcheck-am: maintainer-clean: <API key> -rm -f Makefile maintainer-clean-am: distclean-am <API key> mostlyclean: <API key> mostlyclean-am: mostlyclean-generic pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: .MAKE: $(<API key>) $(RECURSIVE_TARGETS) install-am \ install-strip .PHONY: $(<API key>) $(RECURSIVE_TARGETS) CTAGS GTAGS \ all all-am check check-am clean clean-generic ctags \ ctags-recursive distclean distclean-generic distclean-tags \ distdir dvi dvi-am html html-am info info-am install \ install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-pdf install-pdf-am install-ps install-ps-am \ install-strip installcheck installcheck-am installdirs \ installdirs-am maintainer-clean <API key> \ mostlyclean mostlyclean-generic pdf pdf-am ps ps-am tags \ tags-recursive uninstall uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT:
Leviathan Level 6 [Leviathan6](http://overthewire.org/wargames/leviathan/leviathan6.html) **Username**: *leviathan6* **Password**: *UgaoFee4li* Solution bash for i in {0000..9999}; do ./leviathan6 $i; done cat /etc/leviathan_pass/leviathan7 # Credentials for Level 7 **Username**: *leviathan7* **Password**: *ahy7MaeBo9*
CREATE TABLE "fire_stations" ( "name" text, "address" text, "city" text, "state" text, "zip" text, "engine" text, "location" text );
#! /usr/bin/python class A1(object): def method(*argv): return argv a = A1() print 'Call a.method() ->', a.method() print 'Call a.method(1,2,3) ->', a.method(1,2,3) print ''' !! Note that the \'a\' instance is passed (implicitely) as the first !! function parameter (something like <__main__.A1 object at 0x7f...> ''' ''' The following will throw as A1.method is a bound method (i.e. non-static) of the A1 class: TypeError: unbound method method() must be called with A1 instance as first argument (got int instance instead) ''' # print 'Call A.method(1,2,3) ->', A1.method(1,2,3) ''' A static method does not receive an implicit first argument. It (i.e. the static method) can be called either on the class (such as A.method()) or on an instance (such as A().method()). The instance is ignored except for its class. ''' class A2(object): @staticmethod def method(*argv): return argv a = A2() print 'Call a.method() ->', a.method() print 'Call a.method(1,2,3) ->', a.method(1,2,3) print 'Call A.method(1,2,3) ->', A2.method(1,2,3) ## static call print ''' !! Note that no class instance is is passed to the call ''' ''' So in a normal (class) bound method call, the instance is passed implicitely as the first argument, whereas for a static method no implicit arguments are passed; the method is invoked via scoping the class name. There is a third option, where we do pass an implicit first argument, but NOT an instance; instead the argument is the class type itself. That is, A class method receives the class as implicit first argument, just like an instance method receives the instance. It can be called either on the class (such as A3.method()) or on an instance (such as A3().method()). The instance is ignored except for its class. If a class method is called for a derived class, the derived class object is passed as the implied first argument. ''' class A3(object): @classmethod def method(*argv): return argv a = A3() print 'Call a.method() ->', a.method() print 'Call a.method(1,2,3) ->', a.method(1,2,3) print 'Call A.method(1,2,3) ->', A3.method(1,2,3) print ''' !! Note that The class object (i.e. something like <class '__main__.A3'>) !! is (implicitely) passed as the first argument. '''
package net.KabOOm356.Util; import org.bukkit.ChatColor; import org.junit.Test; import static org.junit.Assert.*; public class UtilTest { public static final ChatColor indexColor = ChatColor.RED; public static final ChatColor separatorColor = ChatColor.WHITE; @Test public void <API key>() { final String str = "This is a string.\nThis is a new line!"; assertEquals(0, Util.countOccurrences(str, 'z')); assertEquals(0, Util.countOccurrences(str, '1')); assertEquals(0, Util.countOccurrences(str, 'A')); assertEquals(1, Util.countOccurrences(str, '\n')); assertEquals(1, Util.countOccurrences(str, '.')); assertEquals(1, Util.countOccurrences(str, '!')); assertEquals(7, Util.countOccurrences(str, ' ')); assertEquals(2, Util.countOccurrences(str, 'a')); } @Test public void testParseInt() { String stringValue; // Test to parse values between -1000 and 1000. for (Integer LCV = -1000; LCV <= 1000; LCV++) { stringValue = LCV.toString(); assertTrue(LCV.equals(Util.parseInt(stringValue))); } } @Test public void testIsInteger() { String stringValue; // Test values between -1000 and 1000. for (Integer LCV = -1000; LCV <= 1000; LCV++) { stringValue = LCV.toString(); assertTrue(Util.isInteger(stringValue)); } // Test ASCII characters. for (int LCV = 32; LCV <= 126; LCV++) // Loop through the ASCII characters. Space(' ') to tilde('~'). { stringValue = Character.toString((char) LCV); if (LCV < 48 || LCV > 57) // If the ASCII value is outside of the numeric characters. { assertFalse(Util.isInteger(stringValue)); } else // If the ASCII value is a numeric (0-9). { assertTrue(Util.isInteger(stringValue)); } } } @Test public void <API key>() { assertTrue(Util.endsWithIgnoreCase("", "")); assertTrue(Util.endsWithIgnoreCase("testing", "testing")); assertTrue(Util.endsWithIgnoreCase("testing", "TESTING")); assertTrue(Util.endsWithIgnoreCase("ANOTHER TEST", "test")); assertTrue(Util.endsWithIgnoreCase("testing", "ING")); assertTrue(Util.endsWithIgnoreCase("TeStIng", "EsTing")); assertFalse(Util.endsWithIgnoreCase("TESTING", "no")); assertFalse(Util.endsWithIgnoreCase("", "testing")); } @Test public void <API key>() { assertTrue(Util.<API key>("", "")); assertTrue(Util.<API key>("testing", "testing")); assertTrue(Util.<API key>("testing", "TESTING")); assertTrue(Util.<API key>("ANOTHER TEST", "another")); assertTrue(Util.<API key>("testing", "TEST")); assertTrue(Util.<API key>("TeSting", "TeStIn")); assertFalse(Util.<API key>("TESTING", "no")); assertFalse(Util.<API key>("more testing", "no More")); assertFalse(Util.<API key>("", "testing")); } }
--Begin Tools.lua :) local SUDO = 280455102 local function index_function(user_id) for k,v in pairs(_config.admins) do if user_id == v[1] then print(k) return k end end -- If not found return false end local function getindex(t,id) for i,v in pairs(t) do if v == id then return i end end return nil end local function already_sudo(user_id) for k,v in pairs(_config.sudo_users) do if user_id == v then return k end end -- If not found return false end local function reload_plugins( ) plugins = {} load_plugins() end local function sudolist(msg) local hash = "gp_lang:"..msg.chat_id_ local lang = redis:get(hash) local sudo_users = _config.sudo_users if not lang then text = "*List of sudo users :*\n" else text = "_لیست سودو های ربات :_\n" end for i=1,#sudo_users do text = text..i.." - "..sudo_users[i].."\n" end return text end local function adminlist(msg) local hash = "gp_lang:"..msg.chat_id_ local lang = redis:get(hash) local sudo_users = _config.sudo_users if not lang then text = '*List of bot admins :*\n' else text = "_لیست ادمین های ربات :_\n" end local compare = text local i = 1 for v,user in pairs(_config.admins) do text = text..i..'- '..(user[2] or '')..' ('..user[1]..')\n' i = i +1 end if compare == text then if not lang then text = '_No_ *admins* _available_' else text = '_ادمینی برای ربات تعیین نشده_' end end return text end local function action_by_reply(arg, data) local cmd = arg.cmd if not tonumber(data.sender_user_id_) then return false end if cmd == "adminprom" then local function adminprom_cb(arg, data) local hash = "gp_lang:"..arg.chat_id local lang = redis:get(hash) if data.username_ then user_name = '@'..check_markdown(data.username_) else user_name = check_markdown(data.first_name_) end if is_admin1(tonumber(data.id_)) then if not lang then return tdcli.sendMessage(arg.chat_id, "", 0, "_User_ "..user_name.." *"..data.id_.."* _is already an_ *admin*", 0, "md") else return tdcli.sendMessage(arg.chat_id, "", 0, "_کاربر_ "..user_name.." *"..data.id_.."* _از قبل ادمین ربات بود_", 0, "md") end end table.insert(_config.admins, {tonumber(data.id_), user_name}) save_config() if not lang then return tdcli.sendMessage(arg.chat_id, "", 0, "_User_ "..user_name.." *"..data.id_.."* _has been promoted as_ *admin*", 0, "md") else return tdcli.sendMessage(arg.chat_id, "", 0, "_کاربر_ "..user_name.." *"..data.id_.."* _به مقام ادمین ربات منتصب شد_", 0, "md") end end tdcli_function ({ ID = "GetUser", user_id_ = data.sender_user_id_ }, adminprom_cb, {chat_id=data.chat_id_,user_id=data.sender_user_id_}) end if cmd == "admindem" then local function admindem_cb(arg, data) local hash = "gp_lang:"..arg.chat_id local lang = redis:get(hash) local nameid = index_function(tonumber(data.id_)) if data.username_ then user_name = '@'..check_markdown(data.username_) else user_name = check_markdown(data.first_name_) end if not is_admin1(data.id_) then if not lang then return tdcli.sendMessage(arg.chat_id, "", 0, "_User_ "..user_name.." *"..data.id_.."* _is not a_ *admin*", 0, "md") else return tdcli.sendMessage(arg.chat_id, "", 0, "_کاربر_ "..user_name.." *"..data.id_.."* _از قبل ادمین ربات نبود_", 0, "md") end end table.remove(_config.admins, nameid) save_config() if not lang then return tdcli.sendMessage(arg.chat_id, "", 0, "_User_ "..user_name.." *"..data.id_.."* _has been demoted from_ *admin*", 0, "md") else return tdcli.sendMessage(arg.chat_id, "", 0, "_کاربر_ "..user_name.." *"..data.id_.."* _از مقام ادمین ربات برکنار شد_", 0, "md") end end tdcli_function ({ ID = "GetUser", user_id_ = data.sender_user_id_ }, admindem_cb, {chat_id=data.chat_id_,user_id=data.sender_user_id_}) end if cmd == "visudo" then local function visudo_cb(arg, data) local hash = "gp_lang:"..arg.chat_id local lang = redis:get(hash) if data.username_ then user_name = '@'..check_markdown(data.username_) else user_name = check_markdown(data.first_name_) end if already_sudo(tonumber(data.id_)) then if not lang then return tdcli.sendMessage(arg.chat_id, "", 0, "_User_ "..user_name.." *"..data.id_.."* _is already a_ *sudoer*", 0, "md") else return tdcli.sendMessage(arg.chat_id, "", 0, "_کاربر_ "..user_name.." *"..data.id_.."* _از قبل سودو ربات بود_", 0, "md") end end table.insert(_config.sudo_users, tonumber(data.id_)) save_config() reload_plugins(true) if not lang then return tdcli.sendMessage(arg.chat_id, "", 0, "_User_ "..user_name.." *"..data.id_.."* _is now_ *sudoer*", 0, "md") else return tdcli.sendMessage(arg.chat_id, "", 0, "_کاربر_ "..user_name.." *"..data.id_.."* _به مقام سودو ربات منتصب شد_", 0, "md") end end tdcli_function ({ ID = "GetUser", user_id_ = data.sender_user_id_ }, visudo_cb, {chat_id=data.chat_id_,user_id=data.sender_user_id_}) end if cmd == "desudo" then local function desudo_cb(arg, data) local hash = "gp_lang:"..arg.chat_id local lang = redis:get(hash) if data.username_ then user_name = '@'..check_markdown(data.username_) else user_name = check_markdown(data.first_name_) end if not already_sudo(data.id_) then if not lang then return tdcli.sendMessage(arg.chat_id, "", 0, "_User_ "..user_name.." *"..data.id_.."* _is not a_ *sudoer*", 0, "md") else return tdcli.sendMessage(arg.chat_id, "", 0, "_کاربر_ "..user_name.." *"..data.id_.."* _از قبل سودو ربات نبود_", 0, "md") end end table.remove(_config.sudo_users, getindex( _config.sudo_users, tonumber(data.id_))) save_config() reload_plugins(true) if not lang then return tdcli.sendMessage(arg.chat_id, "", 0, "_User_ "..user_name.." *"..data.id_.."* _is no longer a_ *sudoer*", 0, "md") else return tdcli.sendMessage(arg.chat_id, "", 0, "_کاربر_ "..user_name.." *"..data.id_.."* _از مقام سودو ربات برکنار شد_", 0, "md") end end tdcli_function ({ ID = "GetUser", user_id_ = data.sender_user_id_ }, desudo_cb, {chat_id=data.chat_id_,user_id=data.sender_user_id_}) end end local function action_by_username(arg, data) local hash = "gp_lang:"..arg.chat_id local lang = redis:get(hash) local cmd = arg.cmd if data.type_.user_.username_ then user_name = '@'..check_markdown(data.type_.user_.username_) else user_name = check_markdown(data.title_) end if not arg.username then return false end if cmd == "adminprom" then if is_admin1(tonumber(data.id_)) then if not lang then return tdcli.sendMessage(arg.chat_id, "", 0, "_User_ "..user_name.." *"..data.id_.."* _is not a_ *admin*", 0, "md") else return tdcli.sendMessage(arg.chat_id, "", 0, "_کاربر_ "..user_name.." *"..data.id_.."* _از قبل ادمین ربات نبود_", 0, "md") end end table.remove(_config.admins, nameid) save_config() if not lang then return tdcli.sendMessage(arg.chat_id, "", 0, "_User_ "..user_name.." *"..data.id_.."* _has been demoted from_ *admin*", 0, "md") else return tdcli.sendMessage(arg.chat_id, "", 0, "_کاربر_ "..user_name.." *"..data.id_.."* _از مقام ادمین ربات برکنار شد_", 0, "md") end end if cmd == "admindem" then local nameid = index_function(tonumber(data.id_)) if not is_admin1(data.id_) then if not lang then return tdcli.sendMessage(arg.chat_id, "", 0, "_User_ "..user_name.." *"..data.id_.."* _is not a_ *admin*", 0, "md") else return tdcli.sendMessage(arg.chat_id, "", 0, "_کاربر_ "..user_name.." *"..data.id_.."* _از قبل ادمین ربات نبود_", 0, "md") end end table.remove(_config.admins, nameid) save_config() if not lang then return tdcli.sendMessage(arg.chat_id, "", 0, "_User_ "..user_name.." *"..data.id_.."* _has been demoted from_ *admin*", 0, "md") else return tdcli.sendMessage(arg.chat_id, "", 0, "_کاربر_ "..user_name.." *"..data.id_.."* _از مقام ادمین ربات برکنار شد_", 0, "md") end end if cmd == "visudo" then if already_sudo(tonumber(data.id_)) then if not lang then return tdcli.sendMessage(arg.chat_id, "", 0, "_User_ "..user_name.." *"..data.id_.."* _is already a_ *sudoer*", 0, "md") else return tdcli.sendMessage(arg.chat_id, "", 0, "_کاربر_ "..user_name.." *"..data.id_.."* _از قبل سودو ربات بود_", 0, "md") end end table.insert(_config.sudo_users, tonumber(data.id_)) save_config() reload_plugins(true) if not lang then return tdcli.sendMessage(arg.chat_id, "", 0, "_User_ "..user_name.." *"..data.id_.."* _is now_ *sudoer*", 0, "md") else return tdcli.sendMessage(arg.chat_id, "", 0, "_کاربر_ "..user_name.." *"..data.id_.."* _به مقام سودو ربات منتصب شد_", 0, "md") end end if cmd == "desudo" then if not already_sudo(data.id_) then if not lang then return tdcli.sendMessage(arg.chat_id, "", 0, "_User_ "..user_name.." *"..data.id_.."* _is not a_ *sudoer*", 0, "md") else return tdcli.sendMessage(arg.chat_id, "", 0, "_کاربر_ "..user_name.." *"..data.id_.."* _از قبل سودو ربات نبود_", 0, "md") end end table.remove(_config.sudo_users, getindex( _config.sudo_users, tonumber(data.id_))) save_config() reload_plugins(true) if not lang then return tdcli.sendMessage(arg.chat_id, "", 0, "_User_ "..user_name.." *"..data.id_.."* _is no longer a_ *sudoer*", 0, "md") else return tdcli.sendMessage(arg.chat_id, "", 0, "_کاربر_ "..user_name.." *"..data.id_.."* _از مقام سودو ربات برکنار شد_", 0, "md") end end end local function action_by_id(arg, data) local hash = "gp_lang:"..arg.chat_id local lang = redis:get(hash) local cmd = arg.cmd if data.username_ then user_name = '@'..check_markdown(data.username_) else user_name = check_markdown(data.first_name_) end if not tonumber(arg.user_id) then return false end if cmd == "adminprom" then if is_admin1(tonumber(data.id_)) then if not lang then return tdcli.sendMessage(arg.chat_id, "", 0, "_User_ "..user_name.." *"..data.id_.."* _is not a_ *admin*", 0, "md") else return tdcli.sendMessage(arg.chat_id, "", 0, "_کاربر_ "..user_name.." *"..data.id_.."* _از قبل ادمین ربات نبود_", 0, "md") end end table.remove(_config.admins, nameid) save_config() if not lang then return tdcli.sendMessage(arg.chat_id, "", 0, "_User_ "..user_name.." *"..data.id_.."* _has been demoted from_ *admin*", 0, "md") else return tdcli.sendMessage(arg.chat_id, "", 0, "_کاربر_ "..user_name.." *"..data.id_.."* _از مقام ادمین ربات برکنار شد_", 0, "md") end end if cmd == "admindem" then local nameid = index_function(tonumber(data.id_)) if not is_admin1(data.id_) then if not lang then return tdcli.sendMessage(arg.chat_id, "", 0, "_User_ "..user_name.." *"..data.id_.."* _is not a_ *admin*", 0, "md") else return tdcli.sendMessage(arg.chat_id, "", 0, "_کاربر_ "..user_name.." *"..data.id_.."* _از قبل ادمین ربات نبود_", 0, "md") end end table.remove(_config.admins, nameid) save_config() if not lang then return tdcli.sendMessage(arg.chat_id, "", 0, "_User_ "..user_name.." *"..data.id_.."* _has been demoted from_ *admin*", 0, "md") else return tdcli.sendMessage(arg.chat_id, "", 0, "_کاربر_ "..user_name.." *"..data.id_.."* _از مقام ادمین ربات برکنار شد_", 0, "md") end end if cmd == "visudo" then if already_sudo(tonumber(data.id_)) then if not lang then return tdcli.sendMessage(arg.chat_id, "", 0, "_User_ "..user_name.." *"..data.id_.."* _is already a_ *sudoer*", 0, "md") else return tdcli.sendMessage(arg.chat_id, "", 0, "_کاربر_ "..user_name.." *"..data.id_.."* _از قبل سودو ربات بود_", 0, "md") end end table.insert(_config.sudo_users, tonumber(data.id_)) save_config() reload_plugins(true) if not lang then return tdcli.sendMessage(arg.chat_id, "", 0, "_User_ "..user_name.." *"..data.id_.."* _is now_ *sudoer*", 0, "md") else return tdcli.sendMessage(arg.chat_id, "", 0, "_کاربر_ "..user_name.." *"..data.id_.."* _به مقام سودو ربات منتصب شد_", 0, "md") end end if cmd == "desudo" then if not already_sudo(data.id_) then if not lang then return tdcli.sendMessage(arg.chat_id, "", 0, "_User_ "..user_name.." *"..data.id_.."* _is not a_ *sudoer*", 0, "md") else return tdcli.sendMessage(arg.chat_id, "", 0, "_کاربر_ "..user_name.." *"..data.id_.."* _از قبل سودو ربات نبود_", 0, "md") end end table.remove(_config.sudo_users, getindex( _config.sudo_users, tonumber(data.id_))) save_config() reload_plugins(true) if not lang then return tdcli.sendMessage(arg.chat_id, "", 0, "_User_ "..user_name.." *"..data.id_.."* _is no longer a_ *sudoer*", 0, "md") else return tdcli.sendMessage(arg.chat_id, "", 0, "_کاربر_ "..user_name.." *"..data.id_.."* _از مقام سودو ربات برکنار شد_", 0, "md") end end end local function run(msg, matches) local hash = "gp_lang:"..msg.chat_id_ local lang = redis:get(hash) if tonumber(msg.sender_user_id_) == SUDO then if matches[1] == "visudo" then if not matches[2] and tonumber(msg.<API key>) ~= 0 then tdcli_function ({ ID = "GetMessage", chat_id_ = msg.chat_id_, message_id_ = msg.<API key> }, action_by_reply, {chat_id=msg.chat_id_,cmd="visudo"}) end if matches[2] and string.match(matches[2], '^%d+$') then tdcli_function ({ ID = "GetUser", user_id_ = matches[2], }, action_by_id, {chat_id=msg.chat_id_,user_id=matches[2],cmd="visudo"}) end if matches[2] and not string.match(matches[2], '^%d+$') then tdcli_function ({ ID = "SearchPublicChat", username_ = matches[2] }, action_by_username, {chat_id=msg.chat_id_,username=matches[2],cmd="visudo"}) end end if matches[1] == "desudo" then if not matches[2] and tonumber(msg.<API key>) ~= 0 then tdcli_function ({ ID = "GetMessage", chat_id_ = msg.chat_id_, message_id_ = msg.<API key> }, action_by_reply, {chat_id=msg.chat_id_,cmd="desudo"}) end if matches[2] and string.match(matches[2], '^%d+$') then tdcli_function ({ ID = "GetUser", user_id_ = matches[2], }, action_by_id, {chat_id=msg.chat_id_,user_id=matches[2],cmd="desudo"}) end if matches[2] and not string.match(matches[2], '^%d+$') then tdcli_function ({ ID = "SearchPublicChat", username_ = matches[2] }, action_by_username, {chat_id=msg.chat_id_,username=matches[2],cmd="desudo"}) end end end if matches[1] == "adminprom" and is_sudo(msg) then if not matches[2] and tonumber(msg.<API key>) ~= 0 then tdcli_function ({ ID = "GetMessage", chat_id_ = msg.chat_id_, message_id_ = msg.<API key> }, action_by_reply, {chat_id=msg.chat_id_,cmd="adminprom"}) end if matches[2] and string.match(matches[2], '^%d+$') then tdcli_function ({ ID = "GetUser", user_id_ = matches[2], }, action_by_id, {chat_id=msg.chat_id_,user_id=matches[2],cmd="adminprom"}) end if matches[2] and not string.match(matches[2], '^%d+$') then tdcli_function ({ ID = "SearchPublicChat", username_ = matches[2] }, action_by_username, {chat_id=msg.chat_id_,username=matches[2],cmd="adminprom"}) end end if matches[1] == "admindem" and is_sudo(msg) then if not matches[2] and tonumber(msg.<API key>) ~= 0 then tdcli_function ({ ID = "GetMessage", chat_id_ = msg.chat_id_, message_id_ = msg.<API key> }, action_by_reply, {chat_id=msg.chat_id_,cmd="admindem"}) end if matches[2] and string.match(matches[2], '^%d+$') then tdcli_function ({ ID = "GetUser", user_id_ = matches[2], }, action_by_id, {chat_id=msg.chat_id_,user_id=matches[2],cmd="admindem"}) end if matches[2] and not string.match(matches[2], '^%d+$') then tdcli_function ({ ID = "SearchPublicChat", username_ = matches[2] }, action_by_username, {chat_id=msg.chat_id_,username=matches[2],cmd="admindem"}) end end if matches[1] == 'creategroup' and is_admin(msg) then local text = matches[2] tdcli.createNewGroupChat({[0] = msg.sender_user_id_}, text) if not lang then return '_Group Has Been Created!_' else return '_گروه ساخته شد!_' end end if matches[1] == 'createsuper' and is_admin(msg) then local text = matches[2] tdcli.<API key>({[0] = msg.sender_user_id_}, text) if not lang then return '_SuperGroup Has Been Created!_' else return '_سوپر گروه ساخته شد!_' end end if matches[1] == 'tosuper' and is_admin(msg) then local id = msg.chat_id_ tdcli.<API key>(id) if not lang then return '_Group Has Been Changed To SuperGroup!_' else return '_گروه به سوپر گروه تبدیل شد!_' end end if matches[1] == 'import' and is_admin(msg) then tdcli.<API key>(matches[2]) if not lang then return '*Done!*' else return '*انجام شد!*' end end if matches[1] == 'setbotname' and is_sudo(msg) then tdcli.changeName(matches[2]) if not lang then return '_Bot Name Changed To:_ *'..matches[2]..'*' else return '_اسم ربات تغییر کرد به:_ \n*'..matches[2]..'*' end end if matches[1] == 'setbotusername' and is_sudo(msg) then tdcli.changeUsername(matches[2]) if not lang then return '_Bot Username Changed To:_ @'..matches[2] else return '_یوزرنیم ربات تغییر کرد به:_ \n@'..matches[2]..'' end end if matches[1] == 'delbotusername' and is_sudo(msg) then tdcli.changeUsername('') if not lang then return '*Done!*' else return '*انجام شد!*' end end if matches[1] == 'markread' then if matches[2] == 'on' then redis:set('markread','on') if not lang then return '_Markread >_ *ON*' else return '_تیک دوم >_ *روشن*' end end if matches[2] == 'off' then redis:set('markread','off') if not lang then return '_Markread >_ *OFF*' else return '_تیک دوم >_ *خاموش*' end end end if matches[1] == 'bc' and is_admin(msg) then tdcli.sendMessage(matches[2], 0, 0, matches[3], 0) end if matches[1] == 'broadcast' and is_sudo(msg) then local data = load_data(_config.moderation.data) local bc = matches[2] for k,v in pairs(data) do tdcli.sendMessage(k, 0, 0, bc, 0) end end if matches[1] == 'sudolist' and is_sudo(msg) then return sudolist(msg) end if matches[1] == 'beyond' then return tdcli.sendMessage(msg.chat_id_, msg.id_, 1, _config.info_text, 1, 'html') end if matches[1] == 'adminlist' and is_admin(msg) then return adminlist(msg) end if matches[1] == 'leave' and is_admin(msg) then tdcli.<API key>(chat, our_id, 'Left', dl_cb, nil) end if matches[1] == 'autoleave' and is_admin(msg) then local hash = 'auto_leave_bot' --Enable Auto Leave if matches[2] == 'enable' then redis:del(hash) return 'Auto leave has been enabled' --Disable Auto Leave elseif matches[2] == 'disable' then redis:set(hash, true) return 'Auto leave has been disabled' --Auto Leave Status elseif matches[2] == 'status' then if not redis:get(hash) then return 'Auto leave is enable' else return 'Auto leave is disable' end end end end return { patterns = { "^[!/#](visudo)$", "^[!/#](desudo)$", "^[!/#](sudolist)$", "^[!/#](visudo) (.*)$", "^[!/#](desudo) (.*)$", "^[!/#](adminprom)$", "^[!/#](admindem)$", "^[!/#](adminlist)$", "^[!/#](adminprom) (.*)$", "^[!/#](admindem) (.*)$", "^[!/#](leave)$", "^[!/#](autoleave) (.*)$", "^[!/#](beyond)$", "^[!/#](creategroup) (.*)$", "^[!/#](createsuper) (.*)$", "^[!/#](tosuper)$", "^[!/#](import) (.*)$", "^[!/#](setbotname) (.*)$", "^[!/#](setbotusername) (.*)$", "^[!/#](delbotusername) (.*)$", "^[!/#](markread) (.*)$", "^[!/#](bc) (%d+) (.*)$", "^[!/#](broadcast) (.*)$", }, run = run }
\documentclass[]{article} \usepackage{pgfplots} \usepackage[margin=1cm]{geometry} \begin{document} \input{variables.tex} \title{OptionsPlot} \author{Option Plots For: \ticker} \date{Prepared: \today} \maketitle \pgfplotsset{width=17cm, compat=1.3} \section{General Information} \begin{table}[!th] \begin{tabular}{| l | r |} \hline \textbf{Underlying Asset Ticker:} & \ticker \\ \hline \textbf{Current \ticker quote:} & \underlyingquote \\ \hline \textbf{Options Expiration Date:} & \expiration \\ \hline \textbf{Historic Volatility:} & \histvolatility \\ \hline \textbf{At-the-money implied volatility:} & \impliedvolatility \\ \hline \end{tabular} \end{table} \section{Volatility Smile} \subsection{Volatility Smile Plot for \ticker \expiration \callorput s} \begin{tikzpicture} \begin{axis}[xlabel=Strike, ylabel=Volatility] \addplot+ [scatter, only marks] file{coords.dat}; \end{axis} \end{tikzpicture} \section{Black-Scholes Model Option Prices vs. Observed Market Prices} \subsection{Calculated using historic volatility, \ticker $\sigma=\histvolatility$} \begin{tikzpicture} \begin{axis}[xlabel=Black-Scholes calculated price, ylabel=Last observed market price] %\addplot gnuplot[id=filesuffix]{(x)}; \addplot+ [scatter, only marks] file{hist_coords.dat}; % how to plot y=x with domain 0:xmax %\draw[ultra thin] (axis cs:\pgfkeysvalueof{/pgfplots/xmin},0) -- (axis cs:\pgfkeysvalueof{/pgfplots/xmax},0); %\draw[ultra thin] (axis cs:0,\pgfkeysvalueof{/pgfplots/ymin}) -- (axis cs:0,\pgfkeysvalueof{/pgfplots/ymax}); %\def\lims{ymax=<num>} %\addplot [domain=0:/pgfplots/xmax] {x}; %\addplot coordinates {(0,0) (/pgfplots/xmax, /pgfplots/ymax)}; %\addplot[mark=none, domain=-2.5:2.5, thick, red] ({x},{x*x-0.5});% %\draw (0, current axis.above origin) -- (current axis.right of origin, current axis.above origin); %(current axis.below origin); %\draw (current axis.left of origin) -- (current axis.right of origin); %\draw ({axis cs:1.2,0}|-{rel axis cs:0,0}) -- ({axis cs:1.2,0}|-{rel axis cs:0,1}); %\xdef\maximumdomain{\pgfkeysvalueof{/pgfplots/xmax}} %\addplot[domain=0:1000] {x}; \draw (rel axis cs:0,0) -- (rel axis cs:1,1); \end{axis} \end{tikzpicture} \subsection{Calculated using at-the-money implied volatility, \ticker $\sigma=\impliedvolatility$} \begin{tikzpicture} \begin{axis}[xlabel=Black-Scholes calculated price, ylabel=Last observed market price] \addplot+ [scatter, only marks] file{iv_coords.dat}; \draw (rel axis cs:0,0) -- (rel axis cs:1,1); \end{axis} \end{tikzpicture} \end{document}
from electrum_doge.util import print_error import httplib, urllib import socket import threading import hashlib import json from urlparse import urlparse, parse_qs try: import PyQt4 except Exception: sys.exit("Error: Could not import PyQt4 on Linux systems, you may try 'sudo apt-get install python-qt4'") from PyQt4.QtGui import * from PyQt4.QtCore import * import PyQt4.QtCore as QtCore import PyQt4.QtGui as QtGui import aes import base64 import electrum_doge as electrum from electrum_doge.plugins import BasePlugin, hook from electrum_doge.i18n import _ from electrum_doge_gui.qt import HelpButton, EnterButton class Plugin(BasePlugin): target_host = 'labelectrum.herokuapp.com' encode_password = None def fullname(self): return _('Label Sync') def description(self): return '%s\n\n%s%s%s' % (_("This plugin can sync your labels across multiple Electrum installs by using a remote database to save your data. Labels, transactions ids and addresses are encrypted before they are sent to the remote server. This code might increase the load of your wallet with a few microseconds as it will sync labels on each startup."), _("To get started visit"), " http://labelectrum.herokuapp.com/ ", _(" to sign up for an account.")) def version(self): return "0.2.1" def encode(self, message): encrypted = electrum.bitcoin.aes_encrypt_with_iv(self.encode_password, self.iv, message.encode('utf8')) encoded_message = base64.b64encode(encrypted) return encoded_message def decode(self, message): decoded_message = electrum.bitcoin.aes_decrypt_with_iv(self.encode_password, self.iv, base64.b64decode(message)).decode('utf8') return decoded_message @hook def init_qt(self, gui): self.window = gui.main_window if not self.auth_token(): # First run, throw plugin settings in your face self.load_wallet(self.window.wallet) if self.settings_dialog(): self.set_enabled(True) return True else: self.set_enabled(False) return False @hook def load_wallet(self, wallet): self.wallet = wallet mpk = self.wallet.<API key>() self.encode_password = hashlib.sha1(mpk).digest().encode('hex')[:32] self.iv = hashlib.sha256(self.encode_password).digest()[:16] self.wallet_id = hashlib.sha256(mpk).digest().encode('hex') addresses = [] for account in self.wallet.accounts.values(): for address in account.get_addresses(0): addresses.append(address) self.addresses = addresses if self.auth_token(): # If there is an auth token we can try to actually start syncing threading.Thread(target=self.do_full_pull).start() def auth_token(self): return self.config.get("<API key>") def is_available(self): return True def requires_settings(self): return True @hook def set_label(self, item,label, changed): if self.encode_password is None: return if not changed: return try: bundle = {"label": {"external_id": self.encode(item), "text": self.encode(label)}} params = json.dumps(bundle) connection = httplib.HTTPConnection(self.target_host) connection.request("POST", ("/api/wallets/%s/labels.json?auth_token=%s" % (self.wallet_id, self.auth_token())), params, {'Content-Type': 'application/json'}) response = connection.getresponse() if response.reason == httplib.responses[httplib.NOT_FOUND]: return response = json.loads(response.read()) except socket.gaierror as e: print_error('Error connecting to service: %s ' % e) return False def settings_widget(self, window): return EnterButton(_('Settings'), self.settings_dialog) def settings_dialog(self): def check_for_api_key(api_key): if api_key and len(api_key) > 12: self.config.set_key("<API key>", str(self.auth_token_edit.text())) self.upload.setEnabled(True) self.download.setEnabled(True) self.accept.setEnabled(True) else: self.upload.setEnabled(False) self.download.setEnabled(False) self.accept.setEnabled(False) d = QDialog() layout = QGridLayout(d) layout.addWidget(QLabel("API Key: "),0,0) self.auth_token_edit = QLineEdit(self.auth_token()) self.auth_token_edit.textChanged.connect(check_for_api_key) layout.addWidget(QLabel("Label sync options: "),2,0) layout.addWidget(self.auth_token_edit, 0,1,1,2) decrypt_key_text = QLineEdit(self.encode_password) decrypt_key_text.setReadOnly(True) layout.addWidget(decrypt_key_text, 1,1) layout.addWidget(QLabel("Decryption key: "),1,0) layout.addWidget(HelpButton("This key can be used on the LabElectrum website to decrypt your data in case you want to review it online."),1,2) self.upload = QPushButton("Force upload") self.upload.clicked.connect(self.full_push) layout.addWidget(self.upload, 2,1) self.download = QPushButton("Force download") self.download.clicked.connect(self.full_pull) layout.addWidget(self.download, 2,2) c = QPushButton(_("Cancel")) c.clicked.connect(d.reject) self.accept = QPushButton(_("Done")) self.accept.clicked.connect(d.accept) layout.addWidget(c,3,1) layout.addWidget(self.accept,3,2) check_for_api_key(self.auth_token()) self.window.labelsChanged.connect(self.done_processing) if d.exec_(): return True else: return False def done_processing(self): QMessageBox.information(None, _("Labels synchronised"), _("Your labels have been synchronised.")) def full_push(self): threading.Thread(target=self.do_full_push).start() def full_pull(self): threading.Thread(target=self.do_full_pull, args=([True])).start() def do_full_push(self): try: bundle = {"labels": {}} for key, value in self.wallet.labels.iteritems(): try: encoded_key = self.encode(key) except: print_error('cannot encode', repr(key)) continue try: encoded_value = self.encode(value) except: print_error('cannot encode', repr(value)) continue bundle["labels"][encoded_key] = encoded_value params = json.dumps(bundle) connection = httplib.HTTPConnection(self.target_host) connection.request("POST", ("/api/wallets/%s/labels/batch.json?auth_token=%s" % (self.wallet_id, self.auth_token())), params, {'Content-Type': 'application/json'}) response = connection.getresponse() if response.reason == httplib.responses[httplib.NOT_FOUND]: print_error('404 error' % e) return try: response = json.loads(response.read()) except ValueError as e: print_error('Error loading labelsync response: %s' % e) return False if "error" in response: print_error('Error loading labelsync response.') return False except socket.gaierror as e: print_error('Error connecting to service: %s ' % e) return False self.window.labelsChanged.emit() def do_full_pull(self, force = False): connection = httplib.HTTPConnection(self.target_host) connection.request("GET", ("/api/wallets/%s/labels.json?auth_token=%s" % (self.wallet_id, self.auth_token())),"", {'Content-Type': 'application/json'}) response = connection.getresponse() if response.status != 200: print_error("Cannot retrieve labels:", response.status, response.reason) return response = json.loads(response.read()) if "error" in response: raise BaseException(_("Could not sync labels: %s" % response["error"])) for label in response: try: key = self.decode(label["external_id"]) except: continue try: value = self.decode(label["text"]) except: continue try: json.dumps(key) json.dumps(value) except: print_error('error: no json', key) continue if force or not self.wallet.labels.get(key): self.wallet.labels[key] = value self.wallet.storage.put('labels', self.wallet.labels) print_error("received %d labels"%len(response)) self.window.labelsChanged.emit()
# To change this template file, choose Tools | Templates # and open the template in the editor. import unittest from context import src class NewTestCase(unittest.TestCase): def <API key>(self): assert src.rna2d.<API key>("....(((..[[...))).]]") == {0: None, 1: None, 2: None, 3: None, 4: 16, 5: 15, 6: 14, 7: None, 8: None, 9: None, 10: None, 11: None, 12: None, 13: None, 14: 6, 15: 5, 16: 4, 17: None, 18: None, 19: None} if __name__ == '__main__': unittest.main()
local <API key> = request('!.frontend.text.<API key>') return function(self, s) <API key>(s) end
#ifndef Func_quit_H #define Func_quit_H #include "Procedure.h" namespace RevLanguage { class Func_quit : public Procedure { public: Func_quit( void ); // Basic utility functions Func_quit* clone(void) const; //!< Clone object static const std::string& getClassType(void); //!< Get Rev type static const TypeSpec& getClassTypeSpec(void); //!< Get class type spec std::vector<std::string> <API key>(void) const; //!< Get aliases for the Rev name of the function std::string getFunctionName(void) const; //!< Get the primary name of the function in Rev const TypeSpec& getTypeSpec(void) const; //!< Get language type of the object // Func_quit functions const ArgumentRules& getArgumentRules(void) const; //!< Get argument rules const TypeSpec& getReturnType(void) const; //!< Get type of return val RevPtr<RevVariable> execute(void); //!< Execute function protected: std::vector<std::string> getHelpAuthor(void) const; //!< Get the author(s) of this function std::string getHelpDescription(void) const; //!< Get the description for this function std::string getHelpDetails(void) const; //!< Get the more detailed description of the function std::string getHelpExample(void) const; //!< Get an executable and instructive example std::vector<RevBayesCore::RbHelpReference> getHelpReferences(void) const; //!< Get some references/citations for this function std::vector<std::string> getHelpSeeAlso(void) const; //!< Get suggested other functions std::string getHelpTitle(void) const; //!< Get the title of this help entry }; } #endif
#ifndef <API key> #define <API key> #include "screen.hpp" #define SCREEN_WIDTH 80 #define SCREEN_HEIGHT 25 #define VIDEO_MEMORY 0xB8000 class HeadlessScreen : public Screen { private: uint32_t id; uint8_t *outputCurrent; uint32_t offset; uint32_t activeProcessId; uint8_t lock = 0; void normalize(); bool cursorVisible = true; void updateVisualCursor(); bool scrollAreaScreen = true; int scrollAreaStart = 0; int scrollAreaEnd = 0; public: HeadlessScreen(); Keyboard::Info readInput(); void clean(); void backspace(); void writeChar(char c); void moveCursor(int x, int y); int getCursorX(); int getCursorY(); int getWidth(); int getHeight(); void setScrollAreaScreen(); void setScrollArea(int start, int end); void scroll(int value); void setCursorVisible(bool visible); }; #endif
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package fr.enib.ihm.bookshop.view; import com.toedter.calendar.JDateChooser; import fr.enib.ihm.bookshop.domain.customer.Customer; import java.awt.Color; import java.text.SimpleDateFormat; import java.util.Date; import java.util.regex.Matcher; import java.util.regex.Pattern; import javax.swing.BorderFactory; import javax.swing.JTextField; /** * * @author yo8chapa */ public class JReadCustomerPanel extends javax.swing.JPanel { /** Creates new form JReadCustomerPanel */ public JReadCustomerPanel(Customer c) { initComponents(); <API key>(c); // -- Customer information jLabelId.setText("Id : " + c.getId()); jTextFirstName.setText(c.getFirstName()); jTextLastName.setText(c.getLastName()); SimpleDateFormat d = new SimpleDateFormat ("dd/MM/yyyy" ); if(c.getDateOfBirth()!=null){ String dateString = d.format(c.getDateOfBirth()); jTextBirthDate.setText(dateString); } jTextLogin.setText(c.getLogin()); jTextPassword.setText(c.getPassword()); jTextTelephone.setText(c.getTelephone()); jTextMail.setText(c.getEmail()); // -- Customer creditcard information jTextCardNumber.setText(c.getCreditCard().getCreditCardNumber()); jTextCardType.setText(c.getCreditCard().getCreditCardType()); <API key>.setText(c.getCreditCard().<API key>()); // -- Customer adress information jTextStreet.setText(c.getAddress().getStreet()); jTextStreetNumber.setText(String.valueOf(c.getAddress().getStreetNumber())); jTextCity.setText(c.getAddress().getCity()); jTextZcode.setText(c.getAddress().getZipcode()); jTextCountry.setText(c.getAddress().getCountry()); } /** This method is called from within the constructor to * initialize the form. * WARNING: Do NOT modify this code. The content of this method is * always regenerated by the Form Editor. */ @SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jLbLTitleNorth = new javax.swing.JLabel(); jPanelFooter = new javax.swing.JPanel(); jPanelForm = new javax.swing.JPanel(); jPanelCustomer = new javax.swing.JPanel(); jLabelFirstname = new javax.swing.JLabel(); jLabelLastName = new javax.swing.JLabel(); jTextFirstName = new javax.swing.JTextField(); jTextLastName = new javax.swing.JTextField(); jTextLogin = new javax.swing.JTextField(); jTextTelephone = new javax.swing.JTextField(); jTextMail = new javax.swing.JTextField(); jLabelLogin = new javax.swing.JLabel(); jLabelPassword = new javax.swing.JLabel(); jLabelTelephone = new javax.swing.JLabel(); jLabelMail = new javax.swing.JLabel(); jLabelDateBirth = new javax.swing.JLabel(); jTextPassword = new javax.swing.JPasswordField(); jLabelId = new javax.swing.JLabel(); jTextBirthDate = new javax.swing.JTextField(); <API key> = new javax.swing.JPanel(); jPanelCreditCard = new javax.swing.JPanel(); jLabelCardNumber = new javax.swing.JLabel(); jTextCardNumber = new javax.swing.JTextField(); jTextCardType = new javax.swing.JTextField(); jLabelCardType = new javax.swing.JLabel(); <API key> = new javax.swing.JLabel(); <API key> = new javax.swing.JTextField(); jPanelAdress = new javax.swing.JPanel(); jLabelStreet = new javax.swing.JLabel(); jTextStreet = new javax.swing.JTextField(); jLabelCity = new javax.swing.JLabel(); jTextCity = new javax.swing.JTextField(); jLabelZcode = new javax.swing.JLabel(); jTextZcode = new javax.swing.JTextField(); jLabelCountry = new javax.swing.JLabel(); jTextCountry = new javax.swing.JTextField(); jLabelStreetNumber = new javax.swing.JLabel(); jTextStreetNumber = new javax.swing.JTextField(); jPanelClose = new javax.swing.JPanel(); jButtonClose = new javax.swing.JButton(); setName("JMainPanel"); // NOI18N setOpaque(false); setLayout(new java.awt.BorderLayout()); jLbLTitleNorth.setFont(new java.awt.Font("DejaVu Sans", 1, 14)); jLbLTitleNorth.setText("Update customer"); jLbLTitleNorth.setBorder(javax.swing.BorderFactory.createEmptyBorder(10, 10, 10, 10)); add(jLbLTitleNorth, java.awt.BorderLayout.NORTH); jPanelFooter.setBorder(javax.swing.BorderFactory.createEmptyBorder(10, 10, 10, 10)); jPanelFooter.setOpaque(false); jPanelFooter.setLayout(new javax.swing.BoxLayout(jPanelFooter, javax.swing.BoxLayout.X_AXIS)); add(jPanelFooter, java.awt.BorderLayout.SOUTH); jPanelForm.setOpaque(false); jPanelCustomer.setBackground(new java.awt.Color(204, 204, 204)); jPanelCustomer.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Customer", javax.swing.border.TitledBorder.<API key>, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 11))); // NOI18N jLabelFirstname.setText("Firstname :"); jLabelLastName.setText("Lastname :"); jTextFirstName.setEditable(false); jTextLastName.setEditable(false); jTextLogin.setEditable(false); jTextTelephone.setEditable(false); jTextMail.setEditable(false); jLabelLogin.setText("Login :"); jLabelPassword.setText("Password :"); jLabelTelephone.setText("Telephone :"); jLabelMail.setText("E-mail :"); jLabelDateBirth.setText("Date of birth :"); jTextPassword.setEditable(false); jLabelId.setFont(new java.awt.Font("Tahoma", 1, 11)); jLabelId.setForeground(new java.awt.Color(0, 102, 204)); jLabelId.setText("id : "); jTextBirthDate.setEditable(false); javax.swing.GroupLayout <API key> = new javax.swing.GroupLayout(jPanelCustomer); jPanelCustomer.setLayout(<API key>); <API key>.setHorizontalGroup( <API key>.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(<API key>.<API key>() .addContainerGap() .addGroup(<API key>.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(<API key>.<API key>() .addGroup(<API key>.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabelFirstname) .addComponent(jLabelLastName) .addComponent(jLabelDateBirth) .addComponent(jLabelLogin) .addComponent(jLabelPassword) .addComponent(jLabelTelephone) .addComponent(jLabelMail)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(<API key>.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jTextTelephone, javax.swing.GroupLayout.DEFAULT_SIZE, 259, Short.MAX_VALUE) .addComponent(jTextMail, javax.swing.GroupLayout.DEFAULT_SIZE, 259, Short.MAX_VALUE) .addComponent(jTextLogin, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 259, Short.MAX_VALUE) .addComponent(jTextLastName, javax.swing.GroupLayout.DEFAULT_SIZE, 259, Short.MAX_VALUE) .addComponent(jTextFirstName, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 259, Short.MAX_VALUE) .addComponent(jTextPassword, javax.swing.GroupLayout.DEFAULT_SIZE, 259, Short.MAX_VALUE) .addComponent(jTextBirthDate, javax.swing.GroupLayout.DEFAULT_SIZE, 259, Short.MAX_VALUE))) .addComponent(jLabelId, javax.swing.GroupLayout.Alignment.TRAILING)) .addContainerGap()) ); <API key>.setVerticalGroup( <API key>.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(<API key>.<API key>() .addContainerGap() .addComponent(jLabelId) .addGap(8, 8, 8) .addGroup(<API key>.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jTextFirstName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabelFirstname)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(<API key>.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jTextLastName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabelLastName)) .addGap(12, 12, 12) .addGroup(<API key>.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabelDateBirth) .addComponent(jTextBirthDate, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(<API key>.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jTextLogin, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabelLogin)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(<API key>.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabelPassword) .addComponent(jTextPassword, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(<API key>.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jTextTelephone, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabelTelephone)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(<API key>.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jTextMail, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabelMail)) .addContainerGap(50, Short.MAX_VALUE)) ); <API key>.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Buy informations", javax.swing.border.TitledBorder.<API key>, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 11))); // NOI18N jPanelCreditCard.setBackground(new java.awt.Color(204, 204, 204)); jPanelCreditCard.setBorder(javax.swing.BorderFactory.createTitledBorder(null, " Credit card ", javax.swing.border.TitledBorder.<API key>, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 11))); // NOI18N jLabelCardNumber.setText("Card number :"); jTextCardNumber.setEditable(false); jTextCardType.setEditable(false); jLabelCardType.setText("Type :"); <API key>.setText("Date expiration :"); <API key>.setEditable(false); javax.swing.GroupLayout <API key> = new javax.swing.GroupLayout(jPanelCreditCard); jPanelCreditCard.setLayout(<API key>); <API key>.setHorizontalGroup( <API key>.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(<API key>.<API key>() .addContainerGap() .addGroup(<API key>.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(<API key>) .addGroup(<API key>.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addComponent(jLabelCardType, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelCardNumber, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(<API key>.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jTextCardNumber, javax.swing.GroupLayout.DEFAULT_SIZE, 233, Short.MAX_VALUE) .addComponent(jTextCardType, javax.swing.GroupLayout.DEFAULT_SIZE, 233, Short.MAX_VALUE) .addComponent(<API key>, javax.swing.GroupLayout.DEFAULT_SIZE, 233, Short.MAX_VALUE)) .addContainerGap()) ); <API key>.setVerticalGroup( <API key>.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(<API key>.<API key>() .addContainerGap() .addGroup(<API key>.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabelCardNumber) .addComponent(jTextCardNumber, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(<API key>.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jTextCardType, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabelCardType)) .addGap(12, 12, 12) .addGroup(<API key>.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(<API key>) .addComponent(<API key>, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); jPanelAdress.setBackground(new java.awt.Color(204, 204, 204)); jPanelAdress.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Adress", javax.swing.border.TitledBorder.<API key>, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 11))); // NOI18N jLabelStreet.setText("Street :"); jTextStreet.setEditable(false); jLabelCity.setText("City :"); jTextCity.setEditable(false); jLabelZcode.setText("Zip code :"); jTextZcode.setEditable(false); jLabelCountry.setText("Country"); jTextCountry.setEditable(false); jLabelStreetNumber.setText("Number :"); jTextStreetNumber.setEditable(false); javax.swing.GroupLayout jPanelAdressLayout = new javax.swing.GroupLayout(jPanelAdress); jPanelAdress.setLayout(jPanelAdressLayout); jPanelAdressLayout.setHorizontalGroup( jPanelAdressLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanelAdressLayout.<API key>() .addContainerGap() .addGroup(jPanelAdressLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabelStreet) .addComponent(jLabelCountry) .addComponent(jLabelCity)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanelAdressLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jTextCountry, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 151, Short.MAX_VALUE) .addComponent(jTextCity, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 151, Short.MAX_VALUE) .addComponent(jTextStreet, javax.swing.GroupLayout.DEFAULT_SIZE, 151, Short.MAX_VALUE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanelAdressLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabelZcode) .addComponent(jLabelStreetNumber)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanelAdressLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addComponent(jTextZcode) .addComponent(jTextStreetNumber, javax.swing.GroupLayout.DEFAULT_SIZE, 69, Short.MAX_VALUE)) .addContainerGap()) ); jPanelAdressLayout.setVerticalGroup( jPanelAdressLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanelAdressLayout.<API key>() .addContainerGap() .addGroup(jPanelAdressLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabelStreet) .addComponent(jTextStreet, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jTextStreetNumber, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabelStreetNumber)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanelAdressLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabelCity) .addComponent(jTextCity, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jTextZcode, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabelZcode)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanelAdressLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabelCountry) .addComponent(jTextCountry, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); javax.swing.GroupLayout <API key> = new javax.swing.GroupLayout(<API key>); <API key>.setLayout(<API key>); <API key>.setHorizontalGroup( <API key>.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(<API key>.<API key>() .addContainerGap() .addGroup(<API key>.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanelCreditCard, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jPanelAdress, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addContainerGap()) ); <API key>.setVerticalGroup( <API key>.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(<API key>.<API key>() .addContainerGap() .addComponent(jPanelAdress, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jPanelCreditCard, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(15, Short.MAX_VALUE)) ); jPanelClose.setOpaque(false); jPanelClose.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.RIGHT)); jButtonClose.setText("Close"); jButtonClose.setToolTipText("Close this panel"); jButtonClose.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { <API key>(evt); } }); jPanelClose.add(jButtonClose); javax.swing.GroupLayout jPanelFormLayout = new javax.swing.GroupLayout(jPanelForm); jPanelForm.setLayout(jPanelFormLayout); jPanelFormLayout.setHorizontalGroup( jPanelFormLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanelFormLayout.<API key>() .addContainerGap() .addGroup(jPanelFormLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanelFormLayout.<API key>() .addComponent(jPanelCustomer, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(<API key>, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addComponent(jPanelClose, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap()) ); jPanelFormLayout.setVerticalGroup( jPanelFormLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanelFormLayout.<API key>() .addContainerGap() .addGroup(jPanelFormLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jPanelCustomer, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(<API key>, javax.swing.GroupLayout.Alignment.TRAILING, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGap(18, 18, 18) .addComponent(jPanelClose, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); add(jPanelForm, java.awt.BorderLayout.CENTER); }// </editor-fold>//GEN-END:initComponents private void <API key>(java.awt.event.MouseEvent evt) {//GEN-FIRST:<API key> this.getParent().remove(this); // Close panel }//GEN-LAST:<API key> // -- Verifications private Boolean verifyCustomerData(){ // -- Le sous formulaire customer doit etre rempli Boolean retour = true; retour &= verifyField(jTextFirstName) & verifyField(jTextLastName); retour &= verifyField(jTextLogin) & verifyField(jTextPassword); retour &= verifyField(jTextMail); if(retour == true){ // -- Mail if (!isEmailAdress(jTextMail.getText())){ retour = false; jTextMail.setBorder(BorderFactory.createLineBorder( Color.red )); jTextMail.setText("Bad format - use username@host.xx"); } else jTextMail.setBorder(BorderFactory.createLineBorder( Color.black )); } return retour; } private Boolean verifyCustomerCard(){ Boolean retour = true; Date today = new Date(); if(!calendarExpCardDate.getDate().after(today)){ calendarExpCardDate.setBorder(BorderFactory.createLineBorder(Color.RED)); retour &= false; }else { calendarExpCardDate.setBorder(BorderFactory.createLineBorder(Color.GREEN)); } retour &= verifyField(jTextCardNumber); return retour; } private Boolean verifyField(JTextField name){ if(name.getText().isEmpty() == true){ name.setBorder(BorderFactory.createLineBorder(Color.RED)); return new Boolean(false); } else{ name.setBorder(BorderFactory.createLineBorder(Color.BLACK)); return new Boolean(true); } } public static boolean isEmailAdress(String email){ Pattern p = Pattern.compile(mailRegex); Matcher m = p.matcher(email.toUpperCase()); return m.matches(); } // Variables declaration - do not modify//GEN-BEGIN:variables private javax.swing.JButton jButtonClose; private javax.swing.JLabel <API key>; private javax.swing.JLabel jLabelCardNumber; private javax.swing.JLabel jLabelCardType; private javax.swing.JLabel jLabelCity; private javax.swing.JLabel jLabelCountry; private javax.swing.JLabel jLabelDateBirth; private javax.swing.JLabel jLabelFirstname; private javax.swing.JLabel jLabelId; private javax.swing.JLabel jLabelLastName; private javax.swing.JLabel jLabelLogin; private javax.swing.JLabel jLabelMail; private javax.swing.JLabel jLabelPassword; private javax.swing.JLabel jLabelStreet; private javax.swing.JLabel jLabelStreetNumber; private javax.swing.JLabel jLabelTelephone; private javax.swing.JLabel jLabelZcode; private javax.swing.JLabel jLbLTitleNorth; private javax.swing.JPanel jPanelAdress; private javax.swing.JPanel <API key>; private javax.swing.JPanel jPanelClose; private javax.swing.JPanel jPanelCreditCard; private javax.swing.JPanel jPanelCustomer; private javax.swing.JPanel jPanelFooter; private javax.swing.JPanel jPanelForm; private javax.swing.JTextField jTextBirthDate; private javax.swing.JTextField <API key>; private javax.swing.JTextField jTextCardNumber; private javax.swing.JTextField jTextCardType; private javax.swing.JTextField jTextCity; private javax.swing.JTextField jTextCountry; private javax.swing.JTextField jTextFirstName; private javax.swing.JTextField jTextLastName; private javax.swing.JTextField jTextLogin; private javax.swing.JTextField jTextMail; private javax.swing.JPasswordField jTextPassword; private javax.swing.JTextField jTextStreet; private javax.swing.JTextField jTextStreetNumber; private javax.swing.JTextField jTextTelephone; private javax.swing.JTextField jTextZcode; // End of variables declaration//GEN-END:variables private JDateChooser calendarBirthDate; private JDateChooser calendarExpCardDate; private static final String mailRegex = "^[A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[A-Z]{2,4}$"; private Customer customerToUpdated; public void <API key>(Customer customerToUpdated) { this.customerToUpdated = customerToUpdated; } }
# PropForth6 A concurrent processor vesrion of Forth, specifically for the Prop
<?php namespace Espo\Classes\TemplateHelpers; use Espo\Core\Htmlizer\Helper; use Espo\Core\Htmlizer\Helper\Data; use Espo\Core\Htmlizer\Helper\Result; class TdTag implements Helper { public function render(Data $data): Result { $align = strtolower($data->getOption('align') ?? 'left'); if (!in_array($align, ['left', 'right', 'center'])) { $align = 'left'; } $width = $data->getOption('width') ?? null; $attributesPart = "align=\"{$align}\""; if ($width) { $attributesPart .= " width=\"{$width}\""; } return Result::createSafeString( "<td>" . $data->getFunction()() . "</td>" ); } }
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2016.08.11 at 04:29:49 PM MSK package org.w3.ns.ttml_parameter; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.annotation.XmlID; import javax.xml.bind.annotation.XmlSchemaType; import javax.xml.bind.annotation.XmlType; import javax.xml.bind.annotation.XmlValue; import javax.xml.bind.annotation.adapters.<API key>; import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; import org.w3.ns.ttml_datatype.FeatureValue; @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "feature.eltype", propOrder = { "value" }) public class FeatureEltype { @XmlValue protected String value; @XmlAttribute(name = "value") protected FeatureValue featureValue; @XmlAttribute(name = "id", namespace = "http: @XmlJavaTypeAdapter(<API key>.class) @XmlID @XmlSchemaType(name = "ID") protected String id; /** * Gets the value of the value property. * * @return * possible object is * {@link String } * */ public String getValue() { return value; } /** * Sets the value of the value property. * * @param value * allowed object is * {@link String } * */ public void setValue(String value) { this.value = value; } /** * Gets the value of the featureValue property. * * @return * possible object is * {@link FeatureValue } * */ public FeatureValue getFeatureValue() { return featureValue; } /** * Sets the value of the featureValue property. * * @param value * allowed object is * {@link FeatureValue } * */ public void setFeatureValue(FeatureValue value) { this.featureValue = value; } /** * Gets the value of the id property. * * @return * possible object is * {@link String } * */ public String getId() { return id; } /** * Sets the value of the id property. * * @param value * allowed object is * {@link String } * */ public void setId(String value) { this.id = value; } }
package com.ocpsoft.socialpm.gwt.client.local.view.component; import javax.enterprise.context.Dependent; import javax.inject.Inject; import org.jboss.errai.ui.shared.api.annotations.DataField; import org.jboss.errai.ui.shared.api.annotations.Templated; import com.google.gwt.user.client.ui.Composite; import com.ocpsoft.socialpm.model.project.Project; @Dependent @Templated public class ProjectBlock extends Composite { private Project project; @Inject @DataField ProfileLink ownerLink; @Inject @DataField ProjectLink projectLink; @Inject @DataField ProjectLink assignmentsLink; public ProjectBlock setProject(Project project) { this.project = project; ownerLink.setProfile(project.getOwner()); projectLink.setProject(project); assignmentsLink.setProject(project); return this; } public Project getProject() { return project; } }
namespace Nintenlord.<API key> { partial class TileView { <summary> Required designer variable. </summary> private System.ComponentModel.IContainer components = null; <summary> Clean up any resources being used. </summary> <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> protected override void Dispose(bool disposing) { if (disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); } #region Component Designer generated code <summary> Required method for Designer support - do not modify the contents of this method with the code editor. </summary> private void InitializeComponent() { this.SuspendLayout(); // TileView this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Name = "TileView"; this.ResumeLayout(false); } #endregion } }
package com.roripantsu.common; import net.minecraft.client.resources.I18n; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; /** *For Mod localization. *@author ShenTeng Tu(RoriPantsu) */ @SideOnly(Side.CLIENT) public class ModI18n { /** * For GUI localization.Key format = gui.<b>guiScreenName</b>.<b>componentName</b> * @param guiName Name of Class extends {@link net.minecraft.client.gui.Gui} * @param componentName Name of the component * @param arg Arguments referenced by the format specifiers in localized string in lang file. */ public static String gui(String guiName,String componentName,Object... arg){ String key="gui."+guiName+"."+componentName; return I18n.format(key, arg); } }
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE TS><TS version="2.0" language="pl_PL" sourcelanguage=""> <context> <name>AboutDialog</name> <message> <location filename="../ffmulticonverter/about_dlg.py" line="40"/> <source>&amp;Close</source> <translation>&amp;Zamknij</translation> </message> <message> <location filename="../ffmulticonverter/about_dlg.py" line="53"/> <source>About FF Multi Converter</source> <translation>O programie</translation> </message> <message> <location filename="../ffmulticonverter/about_dlg.py" line="39"/> <source>C&amp;redits</source> <translation>&amp;Informacje o twórcach</translation> </message> </context> <context> <name>AddorEditPreset</name> <message> <location filename="../ffmulticonverter/presets_dlgs.py" line="386"/> <source>Preset name (one word, A-z, 0-9)</source> <translation>Nazwa (jedno słowo, A-z, 0-9)</translation> </message> <message> <location filename="../ffmulticonverter/presets_dlgs.py" line="388"/> <source>Preset label</source> <translation>Etykieta</translation> </message> <message> <location filename="../ffmulticonverter/presets_dlgs.py" line="390"/> <source>Preset command line parameters</source> <translation>Parametry polecenia</translation> </message> <message> <location filename="../ffmulticonverter/presets_dlgs.py" line="392"/> <source>Output file extension</source> <translation>Rozszerzenie pliku wyjściowego</translation> </message> <message> <location filename="../ffmulticonverter/presets_dlgs.py" line="418"/> <source>Add preset</source> <translation>Dodaj preset</translation> </message> <message> <location filename="../ffmulticonverter/presets_dlgs.py" line="479"/> <source>Error!</source> <translation>Błąd!</translation> </message> <message> <location filename="../ffmulticonverter/presets_dlgs.py" line="439"/> <source>Preset name can&apos;t be left blank.</source> <translation>Pole nazwy preset nie może być puste.</translation> </message> <message> <location filename="../ffmulticonverter/presets_dlgs.py" line="434"/> <source>Preset name must be one word and contain only letters and digits.</source> <translation type="obsolete">Nazwa preset musi być w formie jednego słowa i może zawierać tylko litery i cyfry.</translation> </message> <message> <location filename="../ffmulticonverter/presets_dlgs.py" line="458"/> <source>Preset label can&apos;t be left blank.</source> <translation>Pole etykiety preset nie może być puste.</translation> </message> <message> <location filename="../ffmulticonverter/presets_dlgs.py" line="465"/> <source>Command label can&apos;t be left blank.</source> <translation>Pole parametrów preset nie może być puste.</translation> </message> <message> <location filename="../ffmulticonverter/presets_dlgs.py" line="472"/> <source>Extension label can&apos;t be left blank.</source> <translation>Pole rozszerzenia pliku nie może być puste.</translation> </message> <message> <location filename="../ffmulticonverter/presets_dlgs.py" line="416"/> <source>Edit {0}</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ffmulticonverter/presets_dlgs.py" line="479"/> <source>Extension must be one word and must not start with a dot.</source> <translation>Rozszerzenie musi być w formie jednego słowa i nie może zaczynać się od kropki.</translation> </message> <message> <location filename="../ffmulticonverter/presets_dlgs.py" line="447"/> <source>Preset name must be one word, start with a letter and contain only letters, digits, underscores, hyphens, colons and periods. It cannot also start with xml.</source> <translation type="unfinished"></translation> </message> </context> <context> <name>AudioVideoTab</name> <message> <location filename="../ffmulticonverter/audiovideotab.py" line="62"/> <source>Convert to:</source> <translation>Konwertuj do:</translation> </message> <message> <location filename="../ffmulticonverter/audiovideotab.py" line="76"/> <source>Command:</source> <translation>Polcecenie:</translation> </message> <message> <location filename="../ffmulticonverter/audiovideotab.py" line="78"/> <source>Preset</source> <translation>Preset</translation> </message> <message> <location filename="../ffmulticonverter/audiovideotab.py" line="37"/> <source>Default</source> <translation>Domyślne</translation> </message> <message> <location filename="../ffmulticonverter/audiovideotab.py" line="84"/> <source>Video Size:</source> <translation>Wymiary wideo:</translation> </message> <message> <location filename="../ffmulticonverter/audiovideotab.py" line="85"/> <source>Aspect:</source> <translation>Proporcje:</translation> </message> <message> <location filename="../ffmulticonverter/audiovideotab.py" line="86"/> <source>Frame Rate (fps):</source> <translation>Klatek na sekundę:</translation> </message> <message> <location filename="../ffmulticonverter/audiovideotab.py" line="87"/> <source>Video Bitrate (kbps):</source> <translation>Jakość wideo (w kb/s):</translation> </message> <message> <location filename="../ffmulticonverter/audiovideotab.py" line="125"/> <source>Frequency (Hz):</source> <translation>Częstotliwość (Hz):</translation> </message> <message> <location filename="../ffmulticonverter/audiovideotab.py" line="127"/> <source>Audio Bitrate (kbps):</source> <translation>Jakość (w kb/s):</translation> </message> <message> <location filename="../ffmulticonverter/audiovideotab.py" line="280"/> <source>Error!</source> <translation>Błąd!</translation> </message> <message> <location filename="../ffmulticonverter/audiovideotab.py" line="299"/> <source>Neither ffmpeg nor avconv are installed. You will not be able to convert audio/video files until you install one of them.</source> <translation type="obsolete">Ani ffmpeg ani avconv nie są zainstalowane. Dopóki nie zainstalujesz jednego z nich, nie możesz konwertować plików audio/video.</translation> </message> <message> <location filename="../ffmulticonverter/audiovideotab.py" line="110"/> <source>Preserve aspect ratio</source> <translation>Zachowaj proporcję</translation> </message> <message> <location filename="../ffmulticonverter/audiovideotab.py" line="111"/> <source>Preserve video size</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ffmulticonverter/audiovideotab.py" line="126"/> <source>Audio Channels:</source> <translation>Kanały dźwięku:</translation> </message> <message> <location filename="../ffmulticonverter/audiovideotab.py" line="158"/> <source>Split file. Begin time</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ffmulticonverter/audiovideotab.py" line="160"/> <source>Duration</source> <translation>Długość</translation> </message> <message> <location filename="../ffmulticonverter/audiovideotab.py" line="166"/> <source>Embed subtitle:</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ffmulticonverter/audiovideotab.py" line="171"/> <source>Rotate:</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ffmulticonverter/audiovideotab.py" line="286"/> <source>Choose File</source> <translation>Wybierz pliki</translation> </message> <message> <location filename="../ffmulticonverter/audiovideotab.py" line="45"/> <source>None</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ffmulticonverter/audiovideotab.py" line="47"/> <source>clockwise</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ffmulticonverter/audiovideotab.py" line="53"/> <source>vertical flip</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ffmulticonverter/audiovideotab.py" line="49"/> <source>counter clockwise</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ffmulticonverter/audiovideotab.py" line="52"/> <source>horizontal flip</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ffmulticonverter/audiovideotab.py" line="128"/> <source>Threads:</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ffmulticonverter/audiovideotab.py" line="38"/> <source>Disable</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ffmulticonverter/audiovideotab.py" line="280"/> <source>FFmpeg is not installed!</source> <translation type="unfinished"></translation> </message> </context> <context> <name>CreditsDialog</name> <message> <location filename="../ffmulticonverter/about_dlg.py" line="71"/> <source>Written by</source> <translation>Napisany przez</translation> </message> <message> <location filename="../ffmulticonverter/about_dlg.py" line="72"/> <source>Translated by</source> <translation>Przetłumaczony przez</translation> </message> <message> <location filename="../ffmulticonverter/about_dlg.py" line="73"/> <source>&amp;Close</source> <translation>&amp;Zamknij</translation> </message> <message> <location filename="../ffmulticonverter/about_dlg.py" line="83"/> <source>Credits</source> <translation>Informacje o twórcach</translation> </message> </context> <context> <name>DocumentTab</name> <message> <location filename="../ffmulticonverter/documenttab.py" line="41"/> <source>Convert:</source> <translation type="obsolete">Konwertuj:</translation> </message> <message> <location filename="../ffmulticonverter/documenttab.py" line="62"/> <source>Unocov is not installed. You will not be able to convert document files until you install it.</source> <translation type="obsolete">Unocov nie jest zainstalowany. Dopóki go nie zainstalujesz, nie możesz konwertować dokumentów.</translation> </message> <message> <location filename="../ffmulticonverter/documenttab.py" line="52"/> <source>Error!</source> <translation>Błąd!</translation> </message> <message> <location filename="../ffmulticonverter/documenttab.py" line="85"/> <source>You can not make parallel document conversions.</source> <translation type="obsolete">Niestety nie możesz konwertować kilku dokumentów jednocześnie.</translation> </message> <message> <location filename="../ffmulticonverter/documenttab.py" line="70"/> <source>{0} is not {1}!</source> <translation type="obsolete">{0} nie równa się {1}!</translation> </message> <message> <location filename="../ffmulticonverter/documenttab.py" line="33"/> <source>Convert to:</source> <translation type="unfinished">Konwertuj do:</translation> </message> <message> <location filename="../ffmulticonverter/documenttab.py" line="52"/> <source>Unocov is not installed!</source> <translation type="unfinished"></translation> </message> </context> <context> <name>ImageTab</name> <message> <location filename="../ffmulticonverter/imagetab.py" line="37"/> <source>Convert to:</source> <translation>Konwertuj do:</translation> </message> <message> <location filename="../ffmulticonverter/imagetab.py" line="45"/> <source>Image Size:</source> <translation>Wymiary obrazka:</translation> </message> <message> <location filename="../ffmulticonverter/imagetab.py" line="109"/> <source>Error!</source> <translation>Błąd!</translation> </message> <message> <location filename="../ffmulticonverter/imagetab.py" line="109"/> <source>The size LineEdit may not be empty.</source> <translation>Wymiary obrazka nie mogą być puste.</translation> </message> <message> <location filename="../ffmulticonverter/imagetab.py" line="56"/> <source>Maintain aspect ratio</source> <translation>Zachowaj proporcję</translation> </message> <message> <location filename="../ffmulticonverter/imagetab.py" line="39"/> <source>Extra options:</source> <translation>Dodatkowe opcje:</translation> </message> <message> <location filename="../ffmulticonverter/imagetab.py" line="57"/> <source>Auto-crop</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ffmulticonverter/imagetab.py" line="61"/> <source>Rotate</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ffmulticonverter/imagetab.py" line="61"/> <source>degrees - clockwise</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ffmulticonverter/imagetab.py" line="102"/> <source>ImageMagick is not installed. You will not be able to convert image files until you install it.</source> <translation type="obsolete">ImageMagick nie jest zainstalowany. Dopóki go nie zainstalujesz, nie będziesz mógł konwertować plików graficznych.</translation> </message> <message> <location filename="../ffmulticonverter/imagetab.py" line="65"/> <source>Vertical flip</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ffmulticonverter/imagetab.py" line="66"/> <source>Horizontal flip</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ffmulticonverter/imagetab.py" line="105"/> <source>ImageMagick is not installed!</source> <translation type="unfinished"></translation> </message> </context> <context> <name>MainWindow</name> <message> <location filename="../ffmulticonverter/ffmulticonverter.py" line="69"/> <source>Output folder:</source> <translation>Folder docelowy:</translation> </message> <message> <location filename="../ffmulticonverter/ffmulticonverter.py" line="81"/> <source>Audio/Video</source> <translation>Audio/Video</translation> </message> <message> <location filename="../ffmulticonverter/ffmulticonverter.py" line="81"/> <source>Images</source> <translation>Obrazki</translation> </message> <message> <location filename="../ffmulticonverter/ffmulticonverter.py" line="82"/> <source>Documents</source> <translation>Dokumenty</translation> </message> <message> <location filename="../ffmulticonverter/ffmulticonverter.py" line="91"/> <source>Delete original</source> <translation>Usuń oryginalny plik</translation> </message> <message> <location filename="../ffmulticonverter/ffmulticonverter.py" line="92"/> <source>&amp;Convert</source> <translation>&amp;Konwertuj</translation> </message> <message> <location filename="../ffmulticonverter/ffmulticonverter.py" line="106"/> <source>Open</source> <translation>Otwórz</translation> </message> <message> <location filename="../ffmulticonverter/ffmulticonverter.py" line="106"/> <source>Open a file</source> <translation>Otwórz plik</translation> </message> <message> <location filename="../ffmulticonverter/ffmulticonverter.py" line="110"/> <source>Convert</source> <translation>Konwertuj</translation> </message> <message> <location filename="../ffmulticonverter/ffmulticonverter.py" line="110"/> <source>Convert files</source> <translation>Konwertuj pliki</translation> </message> <message> <location filename="../ffmulticonverter/ffmulticonverter.py" line="114"/> <source>Quit</source> <translation>Wyjdź</translation> </message> <message> <location filename="../ffmulticonverter/ffmulticonverter.py" line="118"/> <source>Edit Presets</source> <translation>Edytuj presets</translation> </message> <message> <location filename="../ffmulticonverter/ffmulticonverter.py" line="122"/> <source>Import</source> <translation>Importuj</translation> </message> <message> <location filename="../ffmulticonverter/ffmulticonverter.py" line="122"/> <source>Import presets</source> <translation>Importuj presets</translation> </message> <message> <location filename="../ffmulticonverter/ffmulticonverter.py" line="126"/> <source>Export</source> <translation>Exportuj</translation> </message> <message> <location filename="../ffmulticonverter/ffmulticonverter.py" line="126"/> <source>Export presets</source> <translation>Eksportuj presets</translation> </message> <message> <location filename="../ffmulticonverter/ffmulticonverter.py" line="130"/> <source>Reset</source> <translation>Resetuj</translation> </message> <message> <location filename="../ffmulticonverter/ffmulticonverter.py" line="130"/> <source>Reset presets</source> <translation>Resetuj preset</translation> </message> <message> <location filename="../ffmulticonverter/ffmulticonverter.py" line="62"/> <source>Clear</source> <translation>Wyczyść</translation> </message> <message> <location filename="../ffmulticonverter/ffmulticonverter.py" line="142"/> <source>Clear form</source> <translation>Wyczyść wszystkie pola</translation> </message> <message> <location filename="../ffmulticonverter/ffmulticonverter.py" line="146"/> <source>Preferences</source> <translation>Ustawienia</translation> </message> <message> <location filename="../ffmulticonverter/ffmulticonverter.py" line="170"/> <source>About</source> <translation>O programie...</translation> </message> <message> <location filename="../ffmulticonverter/ffmulticonverter.py" line="175"/> <source>File</source> <translation>Plik</translation> </message> <message> <location filename="../ffmulticonverter/ffmulticonverter.py" line="176"/> <source>Edit</source> <translation>Edycja</translation> </message> <message> <location filename="../ffmulticonverter/ffmulticonverter.py" line="177"/> <source>Presets</source> <translation>Presets</translation> </message> <message> <location filename="../ffmulticonverter/ffmulticonverter.py" line="178"/> <source>Help</source> <translation>Pomoc</translation> </message> <message> <location filename="../ffmulticonverter/ffmulticonverter.py" line="326"/> <source>All Files</source> <translation type="obsolete">Wszystkie pliki</translation> </message> <message> <location filename="../ffmulticonverter/ffmulticonverter.py" line="326"/> <source>Audio/Video Files</source> <translation type="obsolete">Pliki Audio/Video</translation> </message> <message> <location filename="../ffmulticonverter/ffmulticonverter.py" line="327"/> <source>Image Files</source> <translation type="obsolete">Pliki graficzne</translation> </message> <message> <location filename="../ffmulticonverter/ffmulticonverter.py" line="327"/> <source>Document Files</source> <translation type="obsolete">Dokumenty</translation> </message> <message> <location filename="../ffmulticonverter/ffmulticonverter.py" line="298"/> <source>Choose File</source> <translation>Wybierz pliki</translation> </message> <message> <location filename="../ffmulticonverter/ffmulticonverter.py" line="337"/> <source>Choose output destination</source> <translation>Wybierz lokalizację docelową</translation> </message> <message> <location filename="../ffmulticonverter/ffmulticonverter.py" line="375"/> <source>You must choose an output folder!</source> <translation>Wybierz folder docelowy!</translation> </message> <message> <location filename="../ffmulticonverter/ffmulticonverter.py" line="379"/> <source>Output folder does not exists!</source> <translation>Folder docelowy nie istnieje!</translation> </message> <message> <location filename="../ffmulticonverter/ffmulticonverter.py" line="385"/> <source>Error!</source> <translation>Błąd!</translation> </message> <message> <location filename="../ffmulticonverter/ffmulticonverter.py" line="444"/> <source>Convert among several file types to other extensions</source> <translation type="obsolete">Konwertuje rozmaite typy plików do innych rozszerzeń</translation> </message> <message> <location filename="../ffmulticonverter/ffmulticonverter.py" line="251"/> <source>Missing dependencies:</source> <translation>Brakujące zależności:</translation> </message> <message> <location filename="../ffmulticonverter/ffmulticonverter.py" line="60"/> <source>Add</source> <translation>Dodaj</translation> </message> <message> <location filename="../ffmulticonverter/ffmulticonverter.py" line="61"/> <source>Delete</source> <translation>Usuń</translation> </message> <message> <location filename="../ffmulticonverter/ffmulticonverter.py" line="142"/> <source>Clear All</source> <translation>Wyczyść wszystkie</translation> </message> <message> <location filename="../ffmulticonverter/ffmulticonverter.py" line="372"/> <source>You must add at least one file to convert!</source> <translation>Musisz dodać przynajmniej jeden plik do przekonwertowania!</translation> </message> <message> <location filename="../ffmulticonverter/ffmulticonverter.py" line="89"/> <source>Save each file in the same folder as input file</source> <translation>Zapisz pliki w tym samym katalogu co pliki wejściowe</translation> </message> <message> <location filename="../ffmulticonverter/ffmulticonverter.py" line="134"/> <source>Synchronize</source> <translation>Synchronizuj</translation> </message> <message> <location filename="../ffmulticonverter/ffmulticonverter.py" line="134"/> <source>Synchronize presets</source> <translation>Synchronizuj presets</translation> </message> <message> <location filename="../ffmulticonverter/ffmulticonverter.py" line="138"/> <source>Remove old</source> <translation>Usuń stare</translation> </message> <message> <location filename="../ffmulticonverter/ffmulticonverter.py" line="138"/> <source>Remove old presets</source> <translation>Usuń stare presets</translation> </message> <message> <location filename="../ffmulticonverter/ffmulticonverter.py" line="165"/> <source>documentation</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ffmulticonverter/ffmulticonverter.py" line="427"/> <source>Convert among several file types to other formats</source> <translation type="unfinished"></translation> </message> </context> <context> <name>Preferences</name> <message> <location filename="../ffmulticonverter/preferences_dlg.py" line="35"/> <source>Save files</source> <translation>Zapisz pliki</translation> </message> <message> <location filename="../ffmulticonverter/preferences_dlg.py" line="36"/> <source>Existing files:</source> <translation>Istniejące pliki:</translation> </message> <message> <location filename="../ffmulticonverter/preferences_dlg.py" line="37"/> <source>Add &apos;~&apos; prefix</source> <translation>Dodaj prefix &apos;~&apos;</translation> </message> <message> <location filename="../ffmulticonverter/preferences_dlg.py" line="38"/> <source>Overwrite</source> <translation>Nadpisz</translation> </message> <message> <location filename="../ffmulticonverter/preferences_dlg.py" line="42"/> <source>Default output destination:</source> <translation>Domyślny folder wyjściowy:</translation> </message> <message> <location filename="../ffmulticonverter/preferences_dlg.py" line="48"/> <source>Name files</source> <translation>Nazwy plików</translation> </message> <message> <location filename="../ffmulticonverter/preferences_dlg.py" line="49"/> <source>Prefix:</source> <translation>Prefiks:</translation> </message> <message> <location filename="../ffmulticonverter/preferences_dlg.py" line="50"/> <source>Suffix:</source> <translation>Sufiks:</translation> </message> <message> <location filename="../ffmulticonverter/preferences_dlg.py" line="73"/> <source>FFmpeg</source> <translation type="obsolete">FFmpeg</translation> </message> <message> <location filename="../ffmulticonverter/preferences_dlg.py" line="69"/> <source>Default command:</source> <translation>Domyślne polecenie:</translation> </message> <message> <location filename="../ffmulticonverter/preferences_dlg.py" line="76"/> <source>Use:</source> <translation type="obsolete">Użyj:</translation> </message> <message> <location filename="../ffmulticonverter/preferences_dlg.py" line="78"/> <source>avconv</source> <translation type="obsolete">avconv</translation> </message> <message> <location filename="../ffmulticonverter/preferences_dlg.py" line="136"/> <source>General</source> <translation>Główne</translation> </message> <message> <location filename="../ffmulticonverter/preferences_dlg.py" line="137"/> <source>Audio/Video</source> <translation>Audio/Video</translation> </message> <message> <location filename="../ffmulticonverter/preferences_dlg.py" line="156"/> <source>Preferences</source> <translation>Ustawienia</translation> </message> <message> <location filename="../ffmulticonverter/preferences_dlg.py" line="207"/> <source>Choose default output destination</source> <translation>Wybierz domyślny folder docelowy</translation> </message> <message> <location filename="../ffmulticonverter/preferences_dlg.py" line="72"/> <source>Video codecs</source> <translation>Kodeki wideo</translation> </message> <message> <location filename="../ffmulticonverter/preferences_dlg.py" line="75"/> <source>Audio codecs</source> <translation>Kodeki dźwięku</translation> </message> <message> <location filename="../ffmulticonverter/preferences_dlg.py" line="117"/> <source>Extra formats</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ffmulticonverter/preferences_dlg.py" line="88"/> <source>Default video codecs</source> <translation>Domyślne kodeki wideo</translation> </message> <message> <location filename="../ffmulticonverter/preferences_dlg.py" line="89"/> <source>Default audio codecs</source> <translation>Domyślne kodeki dźwięku</translation> </message> <message> <location filename="../ffmulticonverter/preferences_dlg.py" line="66"/> <source>Path to executable:</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ffmulticonverter/preferences_dlg.py" line="101"/> <source>Default options:</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ffmulticonverter/preferences_dlg.py" line="138"/> <source>Images</source> <translation type="unfinished">Obrazki</translation> </message> <message> <location filename="../ffmulticonverter/preferences_dlg.py" line="139"/> <source>Documents</source> <translation type="unfinished">Dokumenty</translation> </message> </context> <context> <name>Progress</name> <message> <location filename="../ffmulticonverter/progress.py" line="69"/> <source>In progress: </source> <translation>W toku:</translation> </message> <message> <location filename="../ffmulticonverter/progress.py" line="71"/> <source>Total:</source> <translation type="obsolete">W sumie:</translation> </message> <message> <location filename="../ffmulticonverter/progress.py" line="73"/> <source>Cancel</source> <translation>Anuluj</translation> </message> <message> <location filename="../ffmulticonverter/progress.py" line="75"/> <source>Details</source> <translation>Szczegóły</translation> </message> <message> <location filename="../ffmulticonverter/progress.py" line="106"/> <source>Conversion</source> <translation>Konwersja</translation> </message> <message> <location filename="../ffmulticonverter/progress.py" line="196"/> <source>Cancel Conversion</source> <translation>Zatrzymaj konwersję</translation> </message> <message> <location filename="../ffmulticonverter/progress.py" line="196"/> <source>Are you sure you want to cancel conversion?</source> <translation>Czy na pewno anulować konwersję?</translation> </message> <message> <location filename="../ffmulticonverter/progress.py" line="230"/> <source>In progress:</source> <translation>W toku:</translation> </message> <message> <location filename="../ffmulticonverter/progress.py" line="159"/> <source>Report</source> <translation>Raport</translation> </message> <message> <location filename="../ffmulticonverter/progress.py" line="164"/> <source>Close</source> <translation>Zamknij</translation> </message> <message> <location filename="../ffmulticonverter/progress.py" line="160"/> <source>Converted: {0}/{1}</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ffmulticonverter/progress.py" line="72"/> <source>Shutdown after conversion</source> <translation type="unfinished"></translation> </message> </context> <context> <name>ShowPresets</name> <message> <location filename="../ffmulticonverter/presets_dlgs.py" line="43"/> <source>Preset label</source> <translation>Etykieta preset</translation> </message> <message> <location filename="../ffmulticonverter/presets_dlgs.py" line="46"/> <source>Preset command line parameters</source> <translation>Parametry polecenia</translation> </message> <message> <location filename="../ffmulticonverter/presets_dlgs.py" line="49"/> <source>Output file extension</source> <translation>Rozszerzenie pliku wyjściowego</translation> </message> <message> <location filename="../ffmulticonverter/presets_dlgs.py" line="52"/> <source>Add</source> <translation>Dodaj</translation> </message> <message> <location filename="../ffmulticonverter/presets_dlgs.py" line="53"/> <source>Delete</source> <translation>Usuń</translation> </message> <message> <location filename="../ffmulticonverter/presets_dlgs.py" line="54"/> <source>Delete all</source> <translation>Usuń wszystko</translation> </message> <message> <location filename="../ffmulticonverter/presets_dlgs.py" line="55"/> <source>Edit</source> <translation>Edytuj</translation> </message> <message> <location filename="../ffmulticonverter/presets_dlgs.py" line="58"/> <source>OK</source> <translation>OK</translation> </message> <message> <location filename="../ffmulticonverter/presets_dlgs.py" line="95"/> <source>Edit Presets</source> <translation>Edytuj presets</translation> </message> <message> <location filename="../ffmulticonverter/presets_dlgs.py" line="281"/> <source>Delete Preset</source> <translation>Usuń preset</translation> </message> <message> <location filename="../ffmulticonverter/presets_dlgs.py" line="192"/> <source>Are you sure that you want to delete all presets?</source> <translation>Czy jesteś pewien że chcesz usunąć wszystkie presets?</translation> </message> <message> <location filename="../ffmulticonverter/presets_dlgs.py" line="249"/> <source>All current presets will be deleted. Are you sure that you want to continue?</source> <translation>Wszystkie bieżące presets zostaną usunięte. Czy jesteś pewien że chcesz to zrobić?</translation> </message> <message> <location filename="../ffmulticonverter/presets_dlgs.py" line="281"/> <source>Are you sure that you want to restore the default presets?</source> <translation>Czy jesteś pewien że chcesz ustawić domyślne presets?</translation> </message> <message> <location filename="../ffmulticonverter/presets_dlgs.py" line="257"/> <source>Succesful import!</source> <translation type="obsolete">Import zakończył się powodzeniem.</translation> </message> <message> <location filename="../ffmulticonverter/presets_dlgs.py" line="259"/> <source>Import failed!</source> <translation>Import nie powiódł się.</translation> </message> <message> <location filename="../ffmulticonverter/presets_dlgs.py" line="56"/> <source>Search</source> <translation>Wyszukaj</translation> </message> <message> <location filename="../ffmulticonverter/presets_dlgs.py" line="301"/> <source>Presets Synchronization</source> <translation>Synchronizacja zestawu presets</translation> </message> <message> <location filename="../ffmulticonverter/presets_dlgs.py" line="301"/> <source>Current presets and default presets will be merged. Are you sure that you want to continue?</source> <translation>Aktualny zestaw presets oraz te udostępniane domyślne zostaną połączone. Czy na pewno chcesz wykonać tą operację?</translation> </message> <message> <location filename="../ffmulticonverter/presets_dlgs.py" line="350"/> <source>Remove old presets</source> <translation>Usuń stare presets</translation> </message> <message> <location filename="../ffmulticonverter/presets_dlgs.py" line="178"/> <source>Are you sure that you want to delete the {0} preset?</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ffmulticonverter/presets_dlgs.py" line="267"/> <source>Export presets</source> <translation type="unfinished">Eksportuj presets</translation> </message> <message> <location filename="../ffmulticonverter/presets_dlgs.py" line="350"/> <source>All presets with an __OLD suffix will be deleted. Are you sure that you want to continue?</source> <translation>Wszystkie presets opatrzone prefiksem __OLD zostaną usunięte. Czy na pewno chcesz wykonać tą operację?</translation> </message> <message> <location filename="../ffmulticonverter/presets_dlgs.py" line="255"/> <source>Successful import!</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ffmulticonverter/presets_dlgs.py" line="288"/> <source>Default presets restored successfully.</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ffmulticonverter/presets_dlgs.py" line="344"/> <source>Synchronization completed. Your presets are up to date!</source> <translation type="unfinished"></translation> </message> <message> <location filename="../ffmulticonverter/presets_dlgs.py" line="365"/> <source>Old presets successfully removed.</source> <translation type="unfinished"></translation> </message> </context> <context> <name>Tab</name> <message> <location filename="../ffmulticonverter/audiovideotab.py" line="186"/> <source>More</source> <translation>Więcej</translation> </message> </context> </TS>
using DFM.Email; namespace DFM.MVC.Models { public class OpsCodeModel : BaseSiteModel { public Error.Status EmailSent { get; set; } } }
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="robots" content="noindex"> <title>File system/http/IMessage.php</title> <link rel="stylesheet" href="resources/style.css?331665766"> </head> <body> <div id="left"> <div id="menu"> <a href="index.html" title="Overview"><span>Overview</span></a> <div id="groups"> <h3>Namespaces</h3> <ul> <li> <a href="namespace-PHP.html"> PHP </a> </li> <li class="active"> <a href="namespace-system.html"> system<span></span> </a> <ul> <li> <a href="namespace-system.base.html"> base </a> </li> <li> <a href="namespace-system.cache.html"> cache </a> </li> <li> <a href="namespace-system.core.html"> core<span></span> </a> <ul> <li> <a href="namespace-system.core.exception.html"> exception </a> </li> </ul></li> <li> <a href="namespace-system.data.html"> data<span></span> </a> <ul> <li> <a href="namespace-system.data.provider.html"> provider<span></span> </a> <ul> <li> <a href="namespace-system.data.provider.paginator.html"> paginator </a> </li> <li> <a href="namespace-system.data.provider.sorter.html"> sorter </a> </li> </ul></li> <li> <a href="namespace-system.data.validation.html"> validation </a> </li> </ul></li> <li class="active"> <a href="namespace-system.http.html"> http<span></span> </a> <ul> <li> <a href="namespace-system.http.wrapper.html"> wrapper<span></span> </a> <ul> <li> <a href="namespace-system.http.wrapper.curl.html"> curl </a> </li> </ul></li></ul></li> <li> <a href="namespace-system.i18n.html"> i18n<span></span> </a> <ul> <li> <a href="namespace-system.i18n.dictionary.html"> dictionary </a> </li> </ul></li> <li> <a href="namespace-system.security.html"> security<span></span> </a> <ul> <li> <a href="namespace-system.security.cryptography.html"> cryptography </a> </li> </ul></li> <li> <a href="namespace-system.sql.html"> sql<span></span> </a> <ul> <li> <a href="namespace-system.sql.data.html"> data<span></span> </a> <ul> <li> <a href="namespace-system.sql.data.provider.html"> provider<span></span> </a> <ul> <li> <a href="namespace-system.sql.data.provider.paginator.html"> paginator </a> </li> <li> <a href="namespace-system.sql.data.provider.sorter.html"> sorter </a> </li> </ul></li></ul></li> <li> <a href="namespace-system.sql.driver.html"> driver<span></span> </a> <ul> <li> <a href="namespace-system.sql.driver.mysql.html"> mysql </a> </li> <li> <a href="namespace-system.sql.driver.pgsql.html"> pgsql </a> </li> </ul></li> <li> <a href="namespace-system.sql.schema.html"> schema </a> </li> </ul></li> <li> <a href="namespace-system.web.html"> web<span></span> </a> <ul> <li> <a href="namespace-system.web.asset.html"> asset </a> </li> <li> <a href="namespace-system.web.authentication.html"> authentication<span></span> </a> <ul> <li> <a href="namespace-system.web.authentication.oauth.html"> oauth<span></span> </a> <ul> <li> <a href="namespace-system.web.authentication.oauth.client.html"> client<span></span> </a> <ul> <li> <a href="namespace-system.web.authentication.oauth.client.component.html"> component </a> </li> <li> <a href="namespace-system.web.authentication.oauth.client.data.html"> data </a> </li> <li> <a href="namespace-system.web.authentication.oauth.client.flow.html"> flow </a> </li> <li> <a href="namespace-system.web.authentication.oauth.client.http.html"> http </a> </li> <li> <a href="namespace-system.web.authentication.oauth.client.provider.html"> provider </a> </li> <li> <a href="namespace-system.web.authentication.oauth.client.role.html"> role </a> </li> </ul></li> <li> <a href="namespace-system.web.authentication.oauth.server.html"> server<span></span> </a> <ul> <li> <a href="namespace-system.web.authentication.oauth.server.component.html"> component </a> </li> <li> <a href="namespace-system.web.authentication.oauth.server.context.html"> context </a> </li> <li> <a href="namespace-system.web.authentication.oauth.server.data.html"> data </a> </li> <li> <a href="namespace-system.web.authentication.oauth.server.exception.html"> exception </a> </li> <li> <a href="namespace-system.web.authentication.oauth.server.flow.html"> flow </a> </li> <li> <a href="namespace-system.web.authentication.oauth.server.role.html"> role </a> </li> </ul></li> <li> <a href="namespace-system.web.authentication.oauth.shared.html"> shared<span></span> </a> <ul> <li> <a href="namespace-system.web.authentication.oauth.shared.data.html"> data </a> </li> <li> <a href="namespace-system.web.authentication.oauth.shared.role.html"> role </a> </li> </ul></li></ul></li></ul></li> <li> <a href="namespace-system.web.exception.html"> exception </a> </li> <li> <a href="namespace-system.web.html.html"> html </a> </li> <li> <a href="namespace-system.web.navigation.html"> navigation </a> </li> <li> <a href="namespace-system.web.router.html"> router </a> </li> <li> <a href="namespace-system.web.session.html"> session </a> </li> <li> <a href="namespace-system.web.utility.html"> utility<span></span> </a> <ul> <li> <a href="namespace-system.web.utility.data.html"> data </a> </li> </ul></li> <li> <a href="namespace-system.web.widget.html"> widget<span></span> </a> <ul> <li> <a href="namespace-system.web.widget.data.html"> data<span></span> </a> <ul> <li> <a href="namespace-system.web.widget.data.grid.html"> grid<span></span> </a> <ul> <li> <a href="namespace-system.web.widget.data.grid.column.html"> column </a> </li> </ul></li></ul></li> <li> <a href="namespace-system.web.widget.navigation.html"> navigation </a> </li> </ul></li></ul></li></ul></li> <li> <a href="namespace-vendor.html"> vendor<span></span> </a> <ul> <li> <a href="namespace-vendor.bootstrap.html"> bootstrap </a> </li> <li> <a href="namespace-vendor.jquery.html"> jquery </a> </li> </ul></li> </ul> </div> <hr> <div id="elements"> <h3>Classes</h3> <ul> <li><a href="class-system.http.HttpComponent.html">HttpComponent</a></li> <li><a href="class-system.http.Message.html">Message</a></li> <li><a href="class-system.http.Request.html">Request</a></li> <li><a href="class-system.http.Response.html">Response</a></li> <li><a href="class-system.http.URI.html">URI</a></li> </ul> <h3>Interfaces</h3> <ul> <li class="active"><a href="class-system.http.IMessage.html">IMessage</a></li> <li><a href="class-system.http.IRequest.html">IRequest</a></li> <li><a href="class-system.http.IResponse.html">IResponse</a></li> </ul> </div> </div> </div> <div id="splitter"></div> <div id="right"> <div id="rightInner"> <form id="search"> <input type="hidden" name="cx" value=""> <input type="hidden" name="ie" value="UTF-8"> <input type="text" name="q" class="text" placeholder="Search"> </form> <div id="navigation"> <ul> <li> <a href="index.html" title="Overview"><span>Overview</span></a> </li> <li> <a href="namespace-system.http.html" title="Summary of system\http"><span>Namespace</span></a> </li> <li> <a href="class-system.http.IMessage.html" title="Summary of system\http\IMessage"><span>Class</span></a> </li> </ul> <ul> <li> <a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a> </li> </ul> <ul> </ul> </div> <pre><code><span id="1" class="l"><a class="l" href="#1"> 1: </a><span class="xlang">&lt;?php</span> </span><span id="2" class="l"><a class="l" href="#2"> 2: </a> </span><span id="3" class="l"><a class="l" href=" </span><span id="4" class="l"><a class="l" href="#4"> 4: </a><span class="php-comment">//</span> </span><span id="5" class="l"><a class="l" href=" </span><span id="6" class="l"><a class="l" href=" </span><span id="7" class="l"><a class="l" href="#7"> 7: </a><span class="php-comment">//</span> </span><span id="8" class="l"><a class="l" href="#8"> 8: </a><span class="php-comment">// This file is part of &quot;Lumina/PHP Framework&quot;, hereafter referred to as </span> </span><span id="9" class="l"><a class="l" href="#9"> 9: </a><span class="php-comment">// &quot;Lumina&quot;.</span> </span><span id="10" class="l"><a class="l" href="#10">10: </a><span class="php-comment">//</span> </span><span id="11" class="l"><a class="l" href="#11">11: </a><span class="php-comment">// Lumina is free software: you can redistribute it and/or modify it under the </span> </span><span id="12" class="l"><a class="l" href=" </span><span id="13" class="l"><a class="l" href=" </span><span id="14" class="l"><a class="l" href="#14">14: </a><span class="php-comment">// version.</span> </span><span id="15" class="l"><a class="l" href="#15">15: </a><span class="php-comment">//</span> </span><span id="16" class="l"><a class="l" href="#16">16: </a><span class="php-comment">// Lumina is distributed in the hope that it will be useful, but WITHOUT ANY</span> </span><span id="17" class="l"><a class="l" href=" </span><span id="18" class="l"><a class="l" href=" </span><span id="19" class="l"><a class="l" href="#19">19: </a><span class="php-comment">//</span> </span><span id="20" class="l"><a class="l" href=" </span><span id="21" class="l"><a class="l" href=" </span><span id="22" class="l"><a class="l" href="#22">22: </a><span class="php-comment">//</span> </span><span id="23" class="l"><a class="l" href=" </span><span id="24" class="l"><a class="l" href="#24">24: </a> </span><span id="25" class="l"><a class="l" href="#25">25: </a><span class="php-keyword1">namespace</span> <span class="php-keyword2">system</span>\http; </span><span id="26" class="l"><a class="l" href="#26">26: </a> </span><span id="27" class="l"><a class="l" href="#27">27: </a><span class="php-comment">/** </span></span><span id="28" class="l"><a class="l" href="#28">28: </a><span class="php-comment"> * Representation of an HTTP message. </span></span><span id="29" class="l"><a class="l" href="#29">29: </a><span class="php-comment"> * </span></span><span id="30" class="l"><a class="l" href="#30">30: </a><span class="php-comment"> * @author Igor Azevedo &lt;igor.azevedo@neticle.pt&gt; </span></span><span id="31" class="l"><a class="l" href="#31">31: </a><span class="php-comment"> */</span> </span><span id="32" class="l"><a class="l" href="#32">32: </a><span class="php-keyword1">interface</span> <a id="IMessage" href="#IMessage">IMessage</a> </span><span id="33" class="l"><a class="l" href="#33">33: </a>{ </span><span id="34" class="l"><a class="l" href="#34">34: </a> </span><span id="35" class="l"><a class="l" href="#35">35: </a> <span class="php-comment">/** </span></span><span id="36" class="l"><a class="l" href="#36">36: </a><span class="php-comment"> * Gets all set headers as an associative array paired as key =&gt; value. </span></span><span id="37" class="l"><a class="l" href="#37">37: </a><span class="php-comment"> * </span></span><span id="38" class="l"><a class="l" href="#38">38: </a><span class="php-comment"> * @return array </span></span><span id="39" class="l"><a class="l" href="#39">39: </a><span class="php-comment"> */</span> </span><span id="40" class="l"><a class="l" href="#40">40: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="_getHeaders" href="#_getHeaders">getHeaders</a> (); </span><span id="41" class="l"><a class="l" href="#41">41: </a> </span><span id="42" class="l"><a class="l" href="#42">42: </a> <span class="php-comment">/** </span></span><span id="43" class="l"><a class="l" href="#43">43: </a><span class="php-comment"> * Gets an header's value, given it's key. </span></span><span id="44" class="l"><a class="l" href="#44">44: </a><span class="php-comment"> * </span></span><span id="45" class="l"><a class="l" href="#45">45: </a><span class="php-comment"> * @param string $key </span></span><span id="46" class="l"><a class="l" href="#46">46: </a><span class="php-comment"> * The header's key (name). </span></span><span id="47" class="l"><a class="l" href="#47">47: </a><span class="php-comment"> * </span></span><span id="48" class="l"><a class="l" href="#48">48: </a><span class="php-comment"> * @return string|null </span></span><span id="49" class="l"><a class="l" href="#49">49: </a><span class="php-comment"> * The header's value, if any. </span></span><span id="50" class="l"><a class="l" href="#50">50: </a><span class="php-comment"> */</span> </span><span id="51" class="l"><a class="l" href="#51">51: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="_getHeader" href="#_getHeader">getHeader</a> (<span class="php-var">$key</span>); </span><span id="52" class="l"><a class="l" href="#52">52: </a> </span><span id="53" class="l"><a class="l" href="#53">53: </a> <span class="php-comment">/** </span></span><span id="54" class="l"><a class="l" href="#54">54: </a><span class="php-comment"> * Gets the message's body contents, if any. </span></span><span id="55" class="l"><a class="l" href="#55">55: </a><span class="php-comment"> * </span></span><span id="56" class="l"><a class="l" href="#56">56: </a><span class="php-comment"> * @return string|null </span></span><span id="57" class="l"><a class="l" href="#57">57: </a><span class="php-comment"> */</span> </span><span id="58" class="l"><a class="l" href="#58">58: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="_getBody" href="#_getBody">getBody</a> (); </span><span id="59" class="l"><a class="l" href="#59">59: </a> </span><span id="60" class="l"><a class="l" href="#60">60: </a> <span class="php-comment">/** </span></span><span id="61" class="l"><a class="l" href="#61">61: </a><span class="php-comment"> * Gets the length of the body contents. </span></span><span id="62" class="l"><a class="l" href="#62">62: </a><span class="php-comment"> * </span></span><span id="63" class="l"><a class="l" href="#63">63: </a><span class="php-comment"> * @return int </span></span><span id="64" class="l"><a class="l" href="#64">64: </a><span class="php-comment"> */</span> </span><span id="65" class="l"><a class="l" href="#65">65: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="_getLength" href="#_getLength">getLength</a> (); </span><span id="66" class="l"><a class="l" href="#66">66: </a> </span><span id="67" class="l"><a class="l" href="#67">67: </a>}</span></code></pre> <div id="footer"> API documentation generated by <a href="http://apigen.org">ApiGen</a> </div> </div> </div> <script src="resources/combined.js?721046668"></script> <script src="elementlist.js?867016506"></script> </body> </html>
<?PHP require_once("website.php"); $adminModuleUtils->checkAdminModule(MODULE_ELEARNING); $mlText = $languageUtils->getMlText(__FILE__); $panelUtils->setHeader($mlText[0], "$gElearningUrl/exercise/admin.php"); $strCommand = "<a href='$gElearningUrl/category/edit.php' $gJSNoStatus>" . "<img border='0' src='$gCommonImagesUrl/$gImageAdd' title='$mlText[1]'></a>"; $panelUtils->addLine($panelUtils->addCell("$mlText[5]", "nb"), $panelUtils->addCell("$mlText[6]", "nb"), $panelUtils->addCell($strCommand, "nbr")); $panelUtils->addLine(); $elearningCategories = $<API key>->selectAll(); $panelUtils->openList(); foreach ($elearningCategories as $category) { $elearningCategoryId = $category->getId(); $name = $category->getName(); $description = $category->getDescription(); $strCommand = "<a href='$gElearningUrl/category/edit.php?elearningCategoryId=$elearningCategoryId' $gJSNoStatus>" . "<img border='0' src='$gCommonImagesUrl/$gImageEdit' title='$mlText[2]'></a>" . " <a href='$gElearningUrl/category/delete.php?elearningCategoryId=$elearningCategoryId' $gJSNoStatus>" . "<img border='0' src='$gCommonImagesUrl/$gImageDelete' title='$mlText[3]'></a>"; $panelUtils->addLine($name, $description, $panelUtils->addCell($strCommand, "nbr")); } $panelUtils->closeList(); $str = $panelUtils->render(); printAdminPage($str); ?>
package org.jd.gui.api.feature; public interface PageChangeable { void <API key>(PageChangeListener listener); }
<?php namespace PhpPracticalTest\WebBundle\Tests\Controller; use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; class <API key> extends WebTestCase { public function testIndex() { $client = static::createClient(); $crawler = $client->request('GET', '/hello/Fabien'); $this->assertTrue($crawler->filter('html:contains("Hello Fabien")')->count() > 0); } }
!================================================================================================================================= ! Copyright (c) 2010-2016 Prof. Claus-Dieter Munz ! This file is part of FLEXI, a high-order accurate framework for numerically solving PDEs with discontinuous Galerkin methods. ! For more information see https: ! ! FLEXI is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License ! as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. ! ! FLEXI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty ! of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License v3.0 for more details. ! ! You should have received a copy of the GNU General Public License along with FLEXI. If not, see <http: !================================================================================================================================= #include "flexi.h" #include "eos.h" !================================================================================================================================== !> Soubroutines necessary for calculating Navier-Stokes equations !================================================================================================================================== MODULE MOD_Equation ! MODULES IMPLICIT NONE PRIVATE ! ! GLOBAL VARIABLES ! INTERFACE InitEquation MODULE PROCEDURE InitEquation END INTERFACE INTERFACE <API key> MODULE PROCEDURE <API key> END INTERFACE INTERFACE <API key> MODULE PROCEDURE <API key> END INTERFACE INTERFACE FinalizeEquation MODULE PROCEDURE FinalizeEquation END INTERFACE PUBLIC:: <API key>,InitEquation,FinalizeEquation PUBLIC:: <API key>,<API key> !================================================================================================================================== CONTAINS !================================================================================================================================== !> Define parameters !================================================================================================================================== SUBROUTINE <API key>() ! MODULES USE MOD_ReadInTools,ONLY: prms USE MOD_Riemann ,ONLY: <API key> #ifdef SPLIT_DG USE MOD_SplitFlux ,ONLY: <API key> #endif /*SPLIT_DG*/ #if EDDYVISCOSITY USE MOD_EddyVisc, ONLY: <API key> #endif IMPLICIT NONE !================================================================================================================================== CALL prms%SetSection("Equation") CALL prms%CreateIntOption( 'IniRefState', "Refstate required for initialization.") CALL prms%<API key>('RefState', "State(s) in primitive variables (density, velx, vely, velz, pressure).",& multiple=.TRUE.) CALL prms%CreateStringOption( 'BCStateFile', "File containing the reference solution on the boundary to be used as BC.") CALL <API key>() #ifdef SPLIT_DG CALL <API key>() #endif /*SPLIT_DG*/ #if EDDYVISCOSITY CALL <API key>() #endif /*EDDYVISCOSITY*/ END SUBROUTINE <API key> !================================================================================================================================== !> Set parameters needed by equation modules and initialize equations as well as boundary conditions and testcases !================================================================================================================================== SUBROUTINE InitEquation() ! MODULES USE MOD_Preproc USE MOD_Globals USE MOD_Equation_Vars USE MOD_Eos ,ONLY: InitEos,PrimToCons USE MOD_EOS_Vars ,ONLY: R USE MOD_Exactfunc ,ONLY: InitExactFunc USE MOD_ReadInTools ,ONLY: CountOption,GETREALARRAY,GETSTR USE MOD_TestCase ,ONLY: InitTestcase USE MOD_Riemann ,ONLY: InitRiemann USE MOD_GetBoundaryFlux, ONLY: InitBC USE MOD_CalcTimeStep ,ONLY: InitCalctimestep #if EDDYVISCOSITY USE MOD_EddyVisc ,ONLY: InitEddyVisc #endif #ifdef SPLIT_DG USE MOD_SplitFlux ,ONLY: InitSplitDG #endif /*SPLIT_DG*/ IMPLICIT NONE ! ! INPUT/OUTPUT VARIABLES ! ! LOCAL VARIABLES INTEGER :: i REAL :: UE(PP_2Var) !================================================================================================================================== IF(EquationInitIsDone)THEN CALL CollectiveStop(__STAMP__,& "InitEquation not ready to be called or already called.") END IF SWRITE(UNIT_stdOut,'(132("-"))') SWRITE(UNIT_stdOut,'(A)') ' INIT NAVIER-STOKES...' s43=4./3. s23=2./3. ! Always set docalcsource true, set false by calcsource itself on first run if not needed doCalcSource=.TRUE. ! Read in boundary parameters IniRefState = 0 CALL InitExactFunc() CALL InitEOS() ! Read Boundary information / RefStates / perform sanity check nRefState=CountOption('RefState') IF(IniRefState.GT.nRefState)THEN CALL CollectiveStop(__STAMP__,& 'ERROR: Ini not defined! (Ini,nRefState):',IniRefState,REAL(nRefState)) END IF IF(nRefState .GT. 0)THEN ALLOCATE(RefStatePrim(PP_nVarPrim,nRefState)) ALLOCATE(RefStateCons(PP_nVar ,nRefState)) DO i=1,nRefState RefStatePrim(1:5,i) = GETREALARRAY('RefState',5) #if PP_dim==2 IF(RefStatePrim(VEL3,i).NE.0.) THEN SWRITE(UNIT_stdOut,'(A)')' You are computing in 2D! RefStatePrim(4) will be set to zero!' RefStatePrim(VEL3,i)=0. END IF #endif ! TODO: ATTENTION only sRho and Pressure of UE filled!!! UE(EXT_SRHO) = 1./RefStatePrim(DENS,i) UE(EXT_PRES) = RefStatePrim(PRES,i) RefStatePrim(TEMP,i) = TEMPERATURE_HE(UE) CALL PrimToCons(RefStatePrim(:,i),RefStateCons(:,i)) END DO END IF ! boundary state filename if present BCStateFile=GETSTR('BCStateFile','nonexistingfile') ! Initialize Riemann solvers to be in volume and on BCs CALL InitRiemann() ! Initialize timestep calculation CALL InitCalctimestep() #if EDDYVISCOSITY ! Initialize eddyViscosity CALL InitEddyVisc() #endif #ifdef SPLIT_DG ! Initialize SplitDG CALL InitSplitDG() #endif /*SPLIT_DG*/ CALL InitBC() EquationInitIsDone=.TRUE. SWRITE(UNIT_stdOut,'(A)')' INIT NAVIER-STOKES DONE!' SWRITE(UNIT_stdOut,'(132("-"))') ! Initialize current testcase CALL InitTestcase() END SUBROUTINE InitEquation !================================================================================================================================== !> Converts conservative solution vector to primitive variables !> !> Two possibilities for sides if using non-Lobatto node sets: !> 1. Convert U_master/slave to prims (used): !> prims consistent to cons, but inconsistent to prim volume !> cheap and simple, no communication and mortars required. !> Using this version the primitive solution is no longer a polynomial. !> 2. Compute UPrim_master/slave from volume UPrim !> UPrim_master/slave consistent to UPrim, but inconsistent to U_master/slave !> more expensive, communication and mortars required. !> This version gives thermodynamically inconsistant states at sides. !> !> TODO: Provide switch for these two versions. !================================================================================================================================== SUBROUTINE <API key>(U_master,U_slave,UPrim_master,UPrim_slave) ! MODULES USE MOD_Preproc USE MOD_EOS, ONLY: ConsToPrim USE MOD_Mesh_Vars,ONLY: firstInnerSide,firstMPISide_YOUR,lastMPISide_YOUR,nSides IMPLICIT NONE ! ! INPUT/OUTPUT VARIABLES REAL,INTENT(IN) :: U_master( CONS,0:PP_N,0:PP_NZ,1:nSides) !< conservative solution on master sides REAL,INTENT(IN) :: U_slave( CONS,0:PP_N,0:PP_NZ,1:nSides) !< conservative solution on slave sides REAL,INTENT(OUT) :: UPrim_master(PRIM,0:PP_N,0:PP_NZ,1:nSides) !< primitive solution on master sides REAL,INTENT(OUT) :: UPrim_slave( PRIM,0:PP_N,0:PP_NZ,1:nSides) !< primitive solution on slave sides ! ! LOCAL VARIABLES INTEGER :: i,j,iSide !================================================================================================================================== DO iSide=1,nSides IF(iSide.GE.firstMPISide_YOUR.AND.iSide.LE.lastMPISide_YOUR) CYCLE DO j=0,PP_NZ; DO i=0,PP_N CALL ConsToPrim(UPrim_master(:,i,j,iSide),U_master(:,i,j,iSide)) END DO; END DO END DO DO iSide=firstInnerSide,lastMPISide_YOUR DO j=0,PP_NZ; DO i=0,PP_N CALL ConsToPrim(UPrim_slave(:,i,j,iSide),U_slave(:,i,j,iSide)) END DO; END DO END DO !! Version 2: Compute UPrim_master/slave from volume UPrim ! !#if USE_MPI !! Prolong to face for MPI sides - send direction !CALL StartReceiveMPIData(UPrim_slave,DataSizeSide,firstSlaveSide,lastSlaveSide,MPIRequest_U(:,SEND),SendID=2) ! Receive MINE !CALL ProlongToFaceCons(PP_N,UPrim,UPrim_master,UPrim_slave,L_Minus,L_Plus,doMPISides=.TRUE.) !CALL U_Mortar(UPrim_master,UPrim_slave,doMPISides=.TRUE.) !CALL StartSendMPIData( UPrim_slave,DataSizeSide,firstSlaveSide,lastSlaveSide,MPIRequest_U(:,RECV),SendID=2) ! Send YOUR !#endif /*USE_MPI*/ ! !CALL ProlongToFaceCons(PP_N,UPrim,UPrim_master,UPrim_slave,L_Minus,L_Plus,doMPISides=.FALSE.) !CALL U_Mortar(UPrim_master,UPrim_slave,doMPISides=.FALSE.) ! !#if USE_MPI !! Complete send / receive !CALL <API key>(2*nNbProcs,MPIRequest_U) !Send YOUR - receive MINE !#endif /*USE_MPI*/ END SUBROUTINE <API key> !================================================================================================================================== !> Converts primitive variables to conservative solution vector at surfaces. !> Routine requires mask so that conversion is only done on masked sides. !================================================================================================================================== SUBROUTINE <API key>(UPrim_master,UPrim_slave,U_master,U_slave, mask_master, mask_slave, mask_ref) ! MODULES USE MOD_Preproc USE MOD_EOS, ONLY: PrimToCons USE MOD_Mesh_Vars,ONLY: firstInnerSide,firstMPISide_YOUR,lastMPISide_YOUR,nSides IMPLICIT NONE ! ! INPUT/OUTPUT VARIABLES REAL,INTENT(IN) :: UPrim_master(PRIM,0:PP_N,0:PP_NZ,1:nSides) !< primitive solution on master sides REAL,INTENT(IN) :: UPrim_slave( PRIM,0:PP_N,0:PP_NZ,1:nSides) !< primitive solution on slave sides REAL,INTENT(OUT) :: U_master( CONS,0:PP_N,0:PP_NZ,1:nSides) !< conservative solution on master sides REAL,INTENT(OUT) :: U_slave( CONS,0:PP_N,0:PP_NZ,1:nSides) !< conservative solution on slave sides INTEGER,INTENT(IN) :: mask_master( 1:nSides) !< mask: only convert solution if mask(SideID) == mask_ref INTEGER,INTENT(IN) :: mask_slave ( 1:nSides) !< mask: only convert solution if mask(SideID) == mask_ref INTEGER,INTENT(IN) :: mask_ref !< reference value for mask comparison ! ! LOCAL VARIABLES INTEGER :: i,j,SideID !================================================================================================================================== DO SideID=1,nSides IF ((firstMPISide_YOUR.LE.SideID).AND.(SideID.LE.lastMPISide_YOUR)) CYCLE IF (mask_master(SideID).EQ.mask_ref) THEN DO j=0,PP_NZ; DO i=0,PP_N CALL PrimToCons(UPrim_master(:,i,j,SideID),U_master(:,i,j,SideID)) END DO; END DO END IF END DO DO SideID=firstInnerSide,lastMPISide_YOUR IF (mask_slave(SideID).EQ.mask_ref) THEN DO j=0,PP_NZ; DO i=0,PP_N CALL PrimToCons(UPrim_slave(:,i,j,SideID),U_slave(:,i,j,SideID)) END DO; END DO END IF END DO END SUBROUTINE !================================================================================================================================== !> Finalizes equation, calls finalize for testcase and Riemann !================================================================================================================================== SUBROUTINE FinalizeEquation() ! MODULES USE MOD_Equation_Vars USE MOD_TestCase ,ONLY: FinalizeTestcase USE MOD_Riemann ,ONLY: FinalizeRiemann USE MOD_CalcTimeStep ,ONLY: <API key> #if EDDYVISCOSITY USE MOD_EddyVisc ,ONLY: FinalizeEddyVisc #endif /*EDDYVISCOSITY*/ USE MOD_GetBoundaryFlux, ONLY: FinalizeBC IMPLICIT NONE !================================================================================================================================== CALL FinalizeTestcase() CALL FinalizeRiemann() CALL <API key>() #if EDDYVISCOSITY CALL FinalizeEddyVisc() #endif /*EDDYVISCOSITY*/ CALL FinalizeBC() SDEALLOCATE(RefStatePrim) SDEALLOCATE(RefStateCons) EquationInitIsDone = .FALSE. END SUBROUTINE FinalizeEquation END MODULE MOD_Equation