query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Created by 10840 on 2015/12/26.
public interface MainModelInterface { void createTable(SQLiteDatabase db, String tableName); void saveIdAndPassword(SQLiteDatabase db, String tableName, String id, String password); UserBean getUserBean(SQLiteDatabase db, String tableName); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "public void...
[ "0.6026789", "0.6009822", "0.59813297", "0.5980576", "0.5941108", "0.5941108", "0.59046096", "0.5876756", "0.5846627", "0.584304", "0.5834488", "0.5833747", "0.5824985", "0.5786448", "0.57847476", "0.57707787", "0.57198036", "0.5718928", "0.571683", "0.571683", "0.5692892", ...
0.0
-1
Created by Zy2ba on 29.05.2015.
public interface ZachetManager extends ActivityManager<Zachet> { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "private stendhal() {\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "public final voi...
[ "0.5939892", "0.591244", "0.58794475", "0.5815226", "0.5814116", "0.5814116", "0.57864714", "0.5784705", "0.57543117", "0.5705836", "0.56846505", "0.56846404", "0.56837136", "0.5671003", "0.56663895", "0.5658932", "0.56477296", "0.5616611", "0.5615358", "0.56123656", "0.56046...
0.0
-1
Get the total weight count for signal samples
public double getTotalSignalCount(){ double total=0; for(Sample s: signalSamples) total += s.getHitCount(); return total; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private double weight(){\n return ((double) (m_PositiveCount + m_NegativeCount)) / ((double) m_PositiveCount);\n }", "public int getWeightSize() {\r\n\t\treturn weigths.length;\r\n\t}", "public double getTotalWeight() {\n return this.totalWeight;\n }", "default double totalWeight() ...
[ "0.7230713", "0.70000875", "0.69001424", "0.6783033", "0.67725885", "0.6748733", "0.67156255", "0.6711236", "0.6710855", "0.67107904", "0.6672794", "0.6632836", "0.6588245", "0.65660286", "0.6476922", "0.64409995", "0.6397857", "0.63643414", "0.63630784", "0.6348227", "0.6345...
0.779782
0
Get the total weight count for the estimated background components in signal samples
public double getTotalSignalEstBackCount(){ double total=0; for(ControlledExperiment r : replicates){ total+=r.getNoiseCount(); } return total; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getWeightSize() {\r\n\t\treturn weigths.length;\r\n\t}", "private double weight(){\n return ((double) (m_PositiveCount + m_NegativeCount)) / ((double) m_PositiveCount);\n }", "public double getTotalSignalCount(){\n\t\tdouble total=0;\n\t\tfor(Sample s: signalSamples)\n\t\t\ttotal += s.getHit...
[ "0.6557438", "0.654402", "0.65068334", "0.63390344", "0.6336399", "0.63318294", "0.62928563", "0.62695473", "0.6257767", "0.62197536", "0.6186019", "0.6180295", "0.61661345", "0.61661345", "0.61267924", "0.61206526", "0.60937184", "0.60831887", "0.60776734", "0.60763025", "0....
0.6786045
0
Get the total weight count for signal samples
public double getTotalControlCount(){ double total=0; for(Sample s: controlSamples) total += s.getHitCount(); return total; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getTotalSignalCount(){\n\t\tdouble total=0;\n\t\tfor(Sample s: signalSamples)\n\t\t\ttotal += s.getHitCount();\n\t\treturn total;\n\t}", "private double weight(){\n return ((double) (m_PositiveCount + m_NegativeCount)) / ((double) m_PositiveCount);\n }", "public int getWeightSize() {\r\n\...
[ "0.779782", "0.7230713", "0.70000875", "0.69001424", "0.6783033", "0.67725885", "0.6748733", "0.67156255", "0.6711236", "0.6710855", "0.67107904", "0.6672794", "0.6632836", "0.6588245", "0.65660286", "0.6476922", "0.64409995", "0.6397857", "0.63643414", "0.63630784", "0.63482...
0.6247929
34
Get the fraction of reads from all replicates in signal
public double getSigProp(){ double s=0, n=0; for(ControlledExperiment rep : replicates){ s+=rep.getSigCount(); n+=rep.getNoiseCount(); }return(s/(s+n)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getTotalSignalEstBackCount(){\n\t\tdouble total=0;\n\t\tfor(ControlledExperiment r : replicates){\n\t\t\ttotal+=r.getNoiseCount();\n\t\t}\n\t\treturn total;\n\t}", "private float getSequenceRatio(String sequence, ICluster cluster) {\n for (SequenceCount sequenceCount : cluster.getSequenceCou...
[ "0.6244349", "0.5752886", "0.5609438", "0.5526405", "0.54586166", "0.54269946", "0.54060274", "0.54048276", "0.5339278", "0.532381", "0.5321732", "0.5297458", "0.52671146", "0.5264848", "0.5259971", "0.52421147", "0.5226145", "0.52237314", "0.521567", "0.51739806", "0.5130288...
0.58958054
1
Get the maximum model width
public int getMaxModelRange(){ int max=0; for(ControlledExperiment ce : replicates) if(ce.getBindingModel().getInfluenceRange()>max) max = ce.getBindingModel().getInfluenceRange(); return max; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getMaxWidth() {\n return Integer.MAX_VALUE;\n }", "public float getMaxWidth() {\n Object value = library.getObject(entries, MAX_WIDTH);\n if (value instanceof Number) {\n return ((Number) value).floatValue();\n }\n return 0.0f;\n }", "public final ...
[ "0.7924507", "0.763673", "0.74332565", "0.7334278", "0.71730644", "0.70566094", "0.70565206", "0.6818257", "0.6807622", "0.67914665", "0.67382467", "0.6659701", "0.6633146", "0.6632011", "0.66115236", "0.6600616", "0.659456", "0.65735775", "0.6522134", "0.65201306", "0.650551...
0.6356408
30
Print the replicate counts at events
public void printReplicateCounts(String outRoot){ try{ String outName = outRoot+"."+name+".repcounts"; FileWriter fw = new FileWriter(outName); fw.write(BindingEvent.repCountHeadString()+"\n"); for(BindingEvent e : events){ fw.write(e.getRepCountString()+"\n"); } fw.close(); } catch (IOExc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void printCount(int[] count) {\n \n System.out.println(\"Array Play\");\n for (int i = 0; i < count.length; i++) {\n \n System.out.println(\n (i + 1) + \" was rolled \" + count[i] + \" times.\\n\");\n }\n }", "public void printStatisti...
[ "0.5878349", "0.5860578", "0.58537424", "0.5791205", "0.5657891", "0.5564603", "0.554674", "0.5535329", "0.5529471", "0.5522607", "0.548043", "0.54785395", "0.54558045", "0.544727", "0.54282093", "0.54247314", "0.53843737", "0.53555197", "0.53503454", "0.53438973", "0.5337493...
0.71209943
0
Initializes all (NLS) fields of the given class
public static final void initialize(Class<?> clazz) { Field[] fields = clazz.getDeclaredFields(); Map<String, Field> nlsFields = new Hashtable<String, Field>(); // Detect NLS fields (public String fields) for (Field field : fields) { if (isNLSField(field)) { nlsFields.put(field.g...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected void initializeFields() {\n\n\t}", "private void initialize()\n {\n aggregatedFields = new Fields(fieldToAggregator.keySet());\n }", "private void initFields() {\n\n tipPercent = 0.0;\n noPersons = 1;\n totalPay = 0.0;\n totalTip = 0.0;\n totalPerP...
[ "0.66362727", "0.6463851", "0.6460104", "0.6379969", "0.6335678", "0.62231", "0.6078763", "0.594532", "0.5873324", "0.5843223", "0.58303916", "0.5825918", "0.58238554", "0.5785395", "0.57706654", "0.5769714", "0.5750104", "0.5736144", "0.57062316", "0.5705719", "0.570373", ...
0.71532
0
Applies all values located within a properties file, so the fields will get translated values.
@SuppressWarnings("unchecked") private static final void applyProperties(Properties messages, Class<?> clazz, Map<String, Field> fields) { for (Map.Entry<String, Field> entry : fields.entrySet()) { String key = entry.getKey(); Field field = entry.getValue(); String value = null; if (...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setupPropertiesPostDeserialization() {\n initLayout();\n List<NamedThing> properties = getProperties();\n for (NamedThing prop : properties) {\n if (prop instanceof Properties) {\n ((Properties) prop).setupPropertiesPostDeserialization();\n } else {\n ...
[ "0.6065278", "0.6063569", "0.60305536", "0.6013456", "0.59936565", "0.5746558", "0.57210076", "0.5700878", "0.57004535", "0.5685501", "0.56708634", "0.5651446", "0.56288296", "0.56027347", "0.5556863", "0.5509454", "0.5507357", "0.5506507", "0.5500237", "0.54968464", "0.54925...
0.6092805
0
Converts the given String value to an object that can be set to the given field
private static final Object getFieldValue(Field field, String value) { if (String.class == field.getType()) { // for fields of type String return value as-is return value; } else { // in all other cases try to construct an object using it's class single-arg constructor return newOb...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tprotected Object stringToValue(String valueString) throws ParseException {\r\n\t\ttry {\r\n\t\t\treturn PersistentBean.findOrCreate(beanClass, valueString);\r\n\t\t} catch (Exception e) {\r\n\t\t\tthrow new ParseException(e.getMessage(), 0);\r\n\t\t}\r\n\t}", "private static Object makeValue(Strin...
[ "0.65259737", "0.64361966", "0.6392772", "0.6355866", "0.61398774", "0.61234623", "0.6118285", "0.61090344", "0.60992587", "0.6063202", "0.60105675", "0.6008586", "0.60059756", "0.6001763", "0.59781563", "0.5962194", "0.59469664", "0.5856743", "0.5832075", "0.57986367", "0.57...
0.75881875
0
Instantiates a new object of the given type with the given message The type must have a (declared) constructor that takes a single string parameter
private static final Object newObjectFromString(Class<?> type, String message) { Constructor<?> constructor; try { constructor = type.getDeclaredConstructor(String.class); constructor.setAccessible(true); } catch (Exception ex) { throw new RuntimeException(String.format(MSG_MISSINGCO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Message(String type, Object message) {\n\t\tthis.type = type;\n\t\tthis.message = message;\n\t}", "public <T extends org.ros.internal.message.Message> T buildMessage(String typeString) {\n return messageFactory.newFromType(typeString);\n }", "public Message newMessage(String type, String addr) {\n\t...
[ "0.7697294", "0.7384831", "0.7124312", "0.70689195", "0.69183207", "0.68989724", "0.6890423", "0.6849094", "0.68278015", "0.676891", "0.6737052", "0.67339844", "0.67035896", "0.6679399", "0.6678752", "0.6677471", "0.66690147", "0.6597369", "0.65867573", "0.65867573", "0.65855...
0.8380341
0
Checks if the given field is an "NLS field". A NLS field must be public static and not final.
private static final boolean isNLSField(Field field) { int modifier = field.getModifiers(); String problem = null; // check if modifiers are correct if (!Modifier.isStatic(modifier)) { problem = "not static"; } else if (Modifier.isFinal(modifier)) { problem = "final"; } e...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean isFixedField(final String code) {\n return Global.FIXED_FIELDS.contains(code);\n }", "public static boolean isValidField(int whichField) {\r\n\t\tboolean valid = false;\r\n\t\ttry {\r\n\t\t\tDataDictionary dictionary = CurrentFIXDataDictionary\r\n\t\t\t\t\t.getCurrentFIXDataDictionary()...
[ "0.6027546", "0.58527404", "0.5777854", "0.55922973", "0.54688966", "0.5433169", "0.5432952", "0.5397106", "0.53572273", "0.535342", "0.53517896", "0.5337468", "0.53046465", "0.5303826", "0.5303087", "0.5297618", "0.5280643", "0.52623737", "0.5254701", "0.5244146", "0.5238103...
0.8627732
0
Build an array of property files to search. The returned array contains the property fields in order from most specific to most generic. So, in the FR_fr locale, it will return file_fr_FR.properties, then file_fr.properties, and finally file.properties.
private static final String[] buildVariants(String root) { if (nlSuffixes == null) { // build list of suffixes for loading resource bundles String nl = Locale.getDefault().toString(); ArrayList<String> result = new ArrayList<String>(4); int lastSeparator; while (true) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void loadPropertyFiles() {\n if ( _sax_panel != null ) {\n _property_files = ( ( SAXTreeModel ) _sax_panel.getModel() ).getPropertyFiles();\n if ( _property_files == null )\n return ;\n HashMap filelist = new HashMap();\n ArrayList resolved ...
[ "0.6304972", "0.5855405", "0.5757471", "0.55797505", "0.54690534", "0.5333287", "0.53157914", "0.5314347", "0.5302906", "0.5297543", "0.5273795", "0.526607", "0.52509356", "0.5222292", "0.5204124", "0.52040684", "0.5173221", "0.51557535", "0.51274335", "0.51240504", "0.509797...
0.457206
96
Load all (existing) properties files, that are specified in variants. Properties files listed in variants, that are not existing, are ignored
private static final void loadProperties(Properties messages, String[] variants) { for (String variant : variants) { InputStream is = null; try { is = Thread.currentThread().getContextClassLoader().getResourceAsStream(variant); if (is != null) { messages.load(is); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void loadProperties(final String[] filenames, final Properties props,\n final Properties logProps) {\n\n for(String filename : filenames) {\n\n File f = new File(filename);\n\n if(!f.exists()) {\n System.err.println(\"Start-up erro...
[ "0.6460107", "0.6381417", "0.6207326", "0.61426866", "0.6135131", "0.6116478", "0.6104548", "0.6031824", "0.5959479", "0.59037185", "0.58934844", "0.5873892", "0.5865385", "0.5825572", "0.5817445", "0.57852364", "0.57715046", "0.5766124", "0.57538205", "0.5747367", "0.5726561...
0.75746167
0
Inserts payment details into database.
public boolean insertPaymentDetails(Payment payment) throws ApplicationException { Transaction transaction = null; Session session = null; try { session = getSession(); session.flush(); transaction = session.beginTransaction(); System.out.println(payment); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int insert(Payment record);", "void insert(PaymentTrade record);", "int insert(PurchasePayment record);", "int insert(BusinessRepayment record);", "void insertCustomerDDPay(CustomerDDPay cddp);", "void insert(IrpSignInfo record) throws SQLException;", "public void insert(PaymentSummary object)\n t...
[ "0.7183719", "0.71617275", "0.71064353", "0.6930649", "0.68803203", "0.6864145", "0.6633516", "0.6625772", "0.6563608", "0.6426866", "0.6407366", "0.6386649", "0.63450795", "0.63225734", "0.6306047", "0.63039356", "0.62708914", "0.6245052", "0.62404644", "0.6185782", "0.61857...
0.67069304
6
Retrieves the payment list present in the database.
@SuppressWarnings("unchecked") public List<Payment> retrievePaymentDetails() throws ApplicationException { Session session = null; try { session = getSession(); return session.createQuery("FROM PurchaseOrder").list(); } catch (HibernateException e) { throw new Applicati...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Payment> findAll(){\n\t\treturn paymentRepository.findAll();\n\t}", "public ArrayList<Payment> getPaymentList(){\n\t\tSession session = HibernateUtils.getSessionFactory().openSession();\n\t\tArrayList<Payment> list = new ArrayList<Payment>();\n\t\ttry{\n\t\t\tCriteria cr = session.createCriteria(TblP...
[ "0.7888441", "0.7815711", "0.7377046", "0.7320367", "0.7224912", "0.7093689", "0.70189285", "0.68225646", "0.6761068", "0.6711848", "0.6684321", "0.66771847", "0.65771043", "0.6537952", "0.65320486", "0.6524977", "0.650039", "0.6474008", "0.64652216", "0.6429516", "0.64254886...
0.69239974
7
Given numBottles full water bottles, you can exchange numExchange empty water bottles for one full water bottle. The operation of drinking a full water bottle turns it into an empty bottle. Return the maximum number of water bottles you can drink. Example 1: Input: numBottles = 9, numExchange = 3 Output: 13 Explanation...
public static int numWaterBottles(int numBottles, int numExchange) { if(numExchange > numBottles) { return numBottles; } if(numExchange == numBottles) { return numBottles + 1; } int result = 0; int newBottles = numBottles; while(newBottles...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int numWaterBottles(int numBottles, int numExchange) {\n int num = numBottles;\n\n // Step2 - Create var to store remainders and leftOvers\n int remainder = numBottles;\n int leftOver;\n\n // Step3 - Continue dividing until the remains is smaller than the numExchang...
[ "0.68451107", "0.59404016", "0.5684633", "0.5575629", "0.54719126", "0.53924096", "0.5391419", "0.53637683", "0.53313273", "0.5252455", "0.51889443", "0.51889443", "0.51812726", "0.5146177", "0.5119206", "0.51166666", "0.5100547", "0.5094203", "0.5064957", "0.506301", "0.5061...
0.6874078
0
bidirectional manytoone association to TypeSalle
@ManyToOne @JoinColumn(name="TYPESALLE") public TypeSalle getTypesalle() { return this.typesalle; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@NotNull(message = \"{NotNull.gov.nih.nci.calims2.domain.administration.customerservice.BillingInformation.type}\")\n \n @ManyToOne(fetch = FetchType.LAZY)\n@JoinColumn(name = \"TYPE_FK\")\n@org.hibernate.annotations.ForeignKey(name = \"BILLINTYPE_FK\")\n\n public gov.nih.nci.calims2.domain.com...
[ "0.62731326", "0.5651787", "0.56326836", "0.56168115", "0.5538171", "0.5461078", "0.54511416", "0.5431151", "0.53525275", "0.5329657", "0.5287304", "0.5282652", "0.5258562", "0.52318007", "0.52035964", "0.5200217", "0.51929474", "0.51661855", "0.516364", "0.51545805", "0.5154...
0.66648567
0
bidirectional manytoone association to Deroulersalleevaluation
@OneToMany(mappedBy="salle") public List<Programmation> getProgrammations() { return programmations; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Optional\n Association<GebaeudeArtStaBuComposite> gebaeudeArtStaBu();", "public EvaluationsDegree findByPrimaryKey(int evaluationsDegreeId) throws EvaluationsDegreeDaoException;", "public EvaluationsDegree findByPrimaryKey(EvaluationsDegreePk pk) throws EvaluationsDegreeDaoException;", "@Override\r\n\tpu...
[ "0.551094", "0.52352756", "0.5162725", "0.51181614", "0.49532744", "0.49258167", "0.48894212", "0.4868181", "0.48670626", "0.48647434", "0.48559427", "0.48366106", "0.4799919", "0.47464573", "0.47223288", "0.46958846", "0.46936226", "0.46752557", "0.46734372", "0.4671107", "0...
0.42900577
71
Use Xmx512m VM arg to increase memory
public static void main(String[] args) throws Exception { SpeechInput input = new SpeechInput(); input.afterPropertiesSet(); RuleGrammar ruleGrammar = input.getGrammar().getRuleGrammar(); System.out.println("Adding import"); Recognizer recognizer = ruleGrammar.getRecognizer(); System.out.println("...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\n printMemory();\n\n byte[] buf1 = new byte[1*1024*1024];\n printMemory(\"分配1M内存\");\n\n byte[] buf2 = new byte[4*1024*1024];\n printMemory(\"分配4M内存\");\n }", "private void setMemorySize() { }", "public static void main(String[] a...
[ "0.6354841", "0.63430566", "0.5927715", "0.5858232", "0.58402675", "0.58399945", "0.57233423", "0.56295574", "0.5599804", "0.55611223", "0.55212253", "0.5518723", "0.55015415", "0.547642", "0.5461916", "0.5452682", "0.5450836", "0.54474837", "0.5339235", "0.53284365", "0.5316...
0.0
-1
TODO Autogenerated method stub
@Override public void run() { while(true) { Cliente c = criaCliente(); ArrayList<Integer> t = new ArrayList<Integer>(); t = geraTempoServicos(c.getServicosSolicitados().size()); // Atribui o tempo aos serviços da forma especificada na descrição do projeto // Obs: getServico() da classe serviço não...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
/ renamed from: c
private C25673a<Aweme, Object> m106813c() { return new C25673a<Aweme, Object>() { /* renamed from: a */ List<Aweme> f86095a; public final boolean checkParams(Object... objArr) { return false; } public final List getItems() { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo5289a(C5102c c5102c);", "public static void c0() {\n\t}", "void mo57278c();", "private static void cajas() {\n\t\t\n\t}", "void mo5290b(C5102c c5102c);", "void mo80457c();", "void mo12638c();", "void mo28717a(zzc zzc);", "void mo21072c();", "@Override\n\tpublic void ccc() {\n\t\t\n\t}", ...
[ "0.64592767", "0.644052", "0.6431582", "0.6418656", "0.64118475", "0.6397491", "0.6250796", "0.62470585", "0.6244832", "0.6232792", "0.618864", "0.61662376", "0.6152657", "0.61496663", "0.6138441", "0.6137171", "0.6131197", "0.6103783", "0.60983956", "0.6077118", "0.6061723",...
0.0
-1
/ renamed from: a
public final void mo84807a(boolean z) { this.f86088h.mo103181a(z, this.f86092l); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
/ renamed from: a
public final C23360e mo84805a(int i) { if (!C6307b.m19566a((Collection<T>) this.f86083b) && i < this.f86083b.size()) { return (C23360e) this.f86083b.get(i); } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
/ renamed from: b
private int m106810b(String str) { for (int i = 0; i < this.f86083b.size(); i++) { C23360e eVar = (C23360e) this.f86083b.get(i); if ((eVar instanceof StoryFeedItemViewModel) && str.equals(((StoryFeedItemViewModel) eVar).mo84780g())) { return i; } } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo2508a(bxb bxb);", "@Override\n public void func_104112_b() {\n \n }", "@Override\n public void b() {\n }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "@Override\n\tpublic void b2() {\n\t\t\n\t}", "v...
[ "0.64569855", "0.6283282", "0.62531567", "0.6252121", "0.6245442", "0.621636", "0.619463", "0.6194139", "0.6165022", "0.6141199", "0.6100174", "0.60973275", "0.607799", "0.6002063", "0.5998536", "0.5973506", "0.5973506", "0.59066874", "0.59057605", "0.5892315", "0.5887388", ...
0.0
-1
/ renamed from: a
private void m106809a(C42006a aVar) { this.f86085d = aVar.f109120d; if (!aVar.f109117a) { this.f86083b.clear(); this.f86083b.add(this.f86090j); } else if (this.f86089i != null) { this.f86089i.mo61169c(); } for (int i = aVar.f109118b; i < this.f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
/ renamed from: b
private List<Aweme> m106812b(boolean z) { ArrayList arrayList = new ArrayList(); for (int i = 0; i < this.f86088h.mo103182b(); i++) { String a = this.f86088h.mo103178a(i); Story story = this.f86088h.mo103177a(a).f109095a; if (story.isFollowing() && (z || !story.isRead...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo2508a(bxb bxb);", "@Override\n public void func_104112_b() {\n \n }", "@Override\n public void b() {\n }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "@Override\n\tpublic void b2() {\n\t\t\n\t}", "v...
[ "0.64558864", "0.6283203", "0.6252635", "0.6250949", "0.6244743", "0.6216273", "0.6194491", "0.6193556", "0.61641675", "0.6140157", "0.60993093", "0.60974354", "0.6077849", "0.6001867", "0.5997364", "0.59737104", "0.59737104", "0.5905105", "0.5904295", "0.58908087", "0.588663...
0.0
-1
/ renamed from: a
public final int mo84803a(String str) { int i = 0; for (int i2 = 0; i2 < this.f86088h.mo103182b(); i2++) { String a = this.f86088h.mo103178a(i2); if (this.f86088h.mo103177a(a).f109095a.isFollowing()) { i++; if (C23472a.m77066a(str, a)) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
/ renamed from: a
public final C1262a mo84804a(Context context) { if (this.f86089i == null) { HashMap hashMap = new HashMap(); if (this.f86091k != null) { hashMap.put(StoryFeedItemViewModel.class, this.f86091k); } else { hashMap.put(StoryFeedItemViewModel.class,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.6249669", "0.6242452", "0.61399835", "0.6117525", "0.61137056", "0.6089649", "0.6046804", "0.6024678", "0.6020427", "0.5975322", "0.59474325", "0.5912173", "0.5883731", "0.58788097", "0.58703065", "0.58670723", "0.5864566", "0.58566767", "0.5830755", "0.58286554", "0.58273...
0.0
-1
/ renamed from: b
public final C23360e mo61168b() { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo2508a(bxb bxb);", "@Override\n public void func_104112_b() {\n \n }", "@Override\n public void b() {\n }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "@Override\n\tpublic void b2() {\n\t\t\n\t}", "v...
[ "0.64558864", "0.6283203", "0.6252635", "0.6250949", "0.6244743", "0.6216273", "0.6194491", "0.6193556", "0.61641675", "0.6140157", "0.60993093", "0.60974354", "0.6077849", "0.6001867", "0.5997364", "0.59737104", "0.59737104", "0.5905105", "0.5904295", "0.58908087", "0.588663...
0.0
-1
/ renamed from: g
public final void mo61177g() { C6726a.m20843a(new Runnable() { public final void run() { C33086b.this.mo84807a(true); } }, VETransitionFilterParam.TransitionDuration_DEFAULT); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void g() {\n }", "public void gored() {\n\t\t\n\t}", "public boolean g()\r\n/* 94: */ {\r\n/* 95:94 */ return this.g;\r\n/* 96: */ }", "public int g()\r\n/* 173: */ {\r\n/* 174:198 */ return 0;\r\n/* 175: */ }", "public void stg() {\n\n\t}", "public xm n()\r\n/* 274: ...
[ "0.678414", "0.67709124", "0.6522526", "0.64709187", "0.6450875", "0.62853396", "0.6246107", "0.6244691", "0.6212993", "0.61974055", "0.61380696", "0.6138033", "0.6105423", "0.6057178", "0.60355175", "0.60195917", "0.59741", "0.596904", "0.59063077", "0.58127505", "0.58101356...
0.0
-1
/ renamed from: a
private static String m106807a(List<Aweme> list, String str) { for (Aweme aweme : list) { if (C23472a.m77066a(aweme.getAuthor().getUid(), str)) { return aweme.getAid(); } } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
/ renamed from: b
private static int m106811b(List<Aweme> list, String str) { if (list == null) { return 0; } for (Aweme aweme : list) { if (aweme != null && aweme.getAuthor() != null && C23472a.m77066a(aweme.getAuthor().getUid(), str)) { return aweme.getEnterpriseType(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo2508a(bxb bxb);", "@Override\n public void func_104112_b() {\n \n }", "@Override\n public void b() {\n }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "@Override\n\tpublic void b2() {\n\t\t\n\t}", "v...
[ "0.64569855", "0.6283282", "0.62531567", "0.6252121", "0.6245442", "0.621636", "0.619463", "0.6194139", "0.6165022", "0.6141199", "0.6100174", "0.60973275", "0.607799", "0.6002063", "0.5998536", "0.5973506", "0.5973506", "0.59066874", "0.59057605", "0.5892315", "0.5887388", ...
0.0
-1
/ access modifiers changed from: private / renamed from: a
public void mo60641a(C23343a aVar, C42005d dVar) { if (this.f86088h == aVar) { int i = dVar.f109115a; if (i != 1) { if (i != 9999) { switch (i) { case 4: String str = (String) dVar.f109116b; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "@Override\n\tpublic void a() {\n\t\t\n\t}", "protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14:...
[ "0.74785364", "0.71833557", "0.7064376", "0.6998475", "0.6954053", "0.6850509", "0.6672314", "0.6663406", "0.66521597", "0.66148806", "0.6613876", "0.6557931", "0.65128875", "0.6500369", "0.6500369", "0.6463267", "0.6373497", "0.636334", "0.63582826", "0.6355706", "0.6351771"...
0.0
-1
/ renamed from: a
public final void mo84806a(Context context, String str) { try { List b = m106812b(this.f86088h.mo103177a(str).f109095a.isRead()); C25673a c = m106813c(); c.setItems(b); C28503s.m93679a(c); String a = m106807a(b, str); int b2 = m106811b(b, s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
, productDesc, productPrice; public ImageView imageView;
public ViewHolder(View itemView) { super(itemView); this.productName = itemView.findViewById(R.id.productName); // this.productDesc = itemView.findViewById(R.id.productDesc); // this.productPrice = itemView.findViewById(R.id.productPrice); // this.imageView = ite...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void bindView(View view, final Context context, Cursor cursor) {\n TextView nameView = (TextView) view.findViewById(R.id.product_name_text_view);\n TextView priceView = (TextView) view.findViewById(R.id.product_price_text_view);\n final TextView quantityView = (TextView) ...
[ "0.67497575", "0.6521468", "0.65079665", "0.64635444", "0.64494306", "0.6343974", "0.629421", "0.6207193", "0.61736053", "0.6171802", "0.6130451", "0.61231196", "0.6097414", "0.60869473", "0.6086221", "0.60840315", "0.6078502", "0.6068944", "0.6050746", "0.6039688", "0.603378...
0.6036332
20
method makeMap() helps in creating a Map object referencing to the HashingMap class
@Override public Map makeMap() { Map<Integer,String> testMap = new HashingMap<>(); return testMap; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static <K, V> Map<K, V> newHashMap() {\n return new HashMap<K, V>();\n }", "MAP createMAP();", "public abstract void createMap();", "public static MapObject createMapObject(){\n\t\treturn new MapObject();\n\t}", "public Hashtable<String,Stock> createMap(){\n\tHashtable table = new Hashtab...
[ "0.74760264", "0.7475621", "0.7327848", "0.72901577", "0.722688", "0.6970792", "0.6911501", "0.68672895", "0.6756639", "0.67290026", "0.6722571", "0.66683626", "0.66190875", "0.6618947", "0.6553283", "0.65307057", "0.651832", "0.6449706", "0.6425415", "0.64208484", "0.6419693...
0.8474504
0
Genera l'eccezione con un messagio di errore associato
public ConnectionException(String pMessage) { super(pMessage); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getErrmsg();", "public String getMessage() {\n return super.getMessage()+\"\\n error code=\"+error_code+\" error value=\"+error_value; //$NON-NLS-1$ //$NON-NLS-2$\n }", "@Override\n\tpublic String getMessage() {\n\t\treturn \"ATTENZIONE: nel progetto Eccezioni Java si è verificato un erro...
[ "0.7212283", "0.71063703", "0.7053021", "0.7006146", "0.7005888", "0.69925964", "0.69464", "0.6941984", "0.6941984", "0.6941984", "0.69229066", "0.68837434", "0.6873936", "0.6873936", "0.6873936", "0.6873936", "0.6841662", "0.68409806", "0.67917925", "0.6734105", "0.6734105",...
0.0
-1
Constructor It calls two methods initComponent() createEvent()
public Bebawy_Hotels() { initComponent(); createEvent(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected ICEvent() {}", "public Event() {\r\n\r\n\t}", "public Event() {\n }", "public Event() {\n }", "@Override\r\n\tprotected void initEvents() {\n\t\t\r\n\t}", "public Event() {\n\t}", "@Override\r\n\tpublic void initEvent() {\n\r\n\t}", "public AddEvent() {\n initComponents...
[ "0.7302567", "0.7270382", "0.7241496", "0.7241496", "0.718616", "0.7150446", "0.7103924", "0.7013016", "0.6988138", "0.697761", "0.6939472", "0.6926153", "0.69238585", "0.6917816", "0.6917765", "0.6917765", "0.68971545", "0.6888452", "0.68675965", "0.68149894", "0.68078697", ...
0.6174186
68
initComponent method in this method all the code of defining variables is coded all the layouts, and all the components are in the initComponent
private void initComponent() { // Setting the frame bounds setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); setBounds(100, 100, 579, 366); // adding the content pane // and setting the empty border contentPane = new JPanel(); contentPane.setBorder(new EmptyBorder(5, 5, 5, 5)); setContentPane(contentPa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initComponent() {\n\t\taddGrid();\n\t\taddToolBars();\n\t}", "private void initComponents() {\n\t\t\n\t}", "private void initComponents() {\n\t\t\n\t}", "private void initcomponent() {\n\r\n\t}", "private void initComponents()\n {\n //LAYOUT\n initLayoutComponents();\n ...
[ "0.81117636", "0.806043", "0.806043", "0.8029072", "0.8024472", "0.79412985", "0.7616335", "0.7483393", "0.7412917", "0.7410375", "0.7301828", "0.7278694", "0.7278261", "0.7256253", "0.7169677", "0.7165001", "0.7165001", "0.7151525", "0.712748", "0.71274126", "0.71229506", ...
0.0
-1
//////////////////////////////////////// //////////////////////////////////////// //////////////////////////////////////// ////////////CREATE EVENTS/////////////// //////////////////////////////////////// //////////////////////////////////////// ////////////////////////////////////////
private void createEvent() { // When the user clicks on the add button btnAdd.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { ////////////////////////////////// ////////////////////////////////// //Adding Info To Reservation.txt// ///////////////////...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createEvents() {\n\t}", "BasicEvents createBasicEvents();", "Event createEvent();", "Event createEvent();", "private void createEvents()\r\n\t{\r\n\t\teventsCount.add(new Event(RequestMethod.PUT, 0));\r\n\t\teventsCount.add(new Event(RequestMethod.GET, 0));\r\n\t\teventsCount.add(new Event(Req...
[ "0.84068066", "0.7618843", "0.72193736", "0.72193736", "0.72122425", "0.7198253", "0.7108609", "0.7079604", "0.70561117", "0.70500255", "0.6965316", "0.69364583", "0.6874804", "0.68366987", "0.67959374", "0.67610556", "0.6758045", "0.66980463", "0.65975595", "0.65975595", "0....
0.0
-1
//////////////////////////////// //////////////////////////////// Adding Info To Reservation.txt// //////////////////////////////// //////////////////////////////// First i surround the whole with with try.. catch block First in the try block i get the values of the checkin and checkout info i save them in strings then...
public void actionPerformed(ActionEvent e) { try { Object HotelID = cbHotelsOptions.getSelectedItem(); Hotel hotel; hotel = (Hotel) HotelID; long id = hotel.getUniqueId(); // System.out.println(id); String inmonth = txtInMonth.getText(); int inMonth = Integer.valueOf(inmon...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void writeInfoTofile() throws IOException\n\t{\n\t\tFileWriter fstream = new FileWriter(\"booking.txt\",true);\n BufferedWriter out = new BufferedWriter(fstream); //buffer class name out\n out.append(\"name : \"+this.customer_name);\n out.newLine();\n out.append(hotelInf...
[ "0.6610412", "0.5928704", "0.589798", "0.5877241", "0.56991476", "0.56853765", "0.5684803", "0.5671392", "0.5667729", "0.56617564", "0.56078523", "0.55344814", "0.5532849", "0.5510544", "0.549679", "0.5453628", "0.544071", "0.54121584", "0.5402311", "0.5389403", "0.5346412", ...
0.5435421
17
first i save selected hotel in a hotel object then i get reservations for the selected hotel then i make all the labels and text fields visible
public void actionPerformed(ActionEvent e) { Hotel selectedHotel = (Hotel)cbHotelsOptions.getSelectedItem(); JOptionPane.showMessageDialog(null, "You selected the " + selectedHotel.getHotelName()); selectedHotel.getReservations(); lblCheckIn.setVisible(true); lblInMonth.setVisible(true); txt...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void actionPerformed(ActionEvent e) \n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tObject HotelID = cbHotelsOptions.getSelectedItem();\n\t\t\t\t\tHotel hotel;\n\t\t\t\t\thotel = (Hotel) HotelID;\n\t\t\t\t\tlong id = hotel.getUniqueId();\n\t\t\t\t\t//\tSystem.out.println(id);\n\t\t\t\t\tString inmonth = txtInM...
[ "0.69688225", "0.66132003", "0.64528245", "0.642079", "0.6182113", "0.6118532", "0.6118532", "0.60612804", "0.6039803", "0.5964708", "0.582993", "0.58268607", "0.57791376", "0.576258", "0.5728961", "0.5712969", "0.57126296", "0.56795776", "0.567497", "0.5668835", "0.5651419",...
0.6835552
1
Read in hotels and reservations from files ///////////////////////////// ///////////////////////////// Reading Info From Hotel.txt// ///////////////////////////// ///////////////////////////// First i surround everything is a try.. catch blocks then in the try block i declare the file input stream then a scanner then i...
private void initHotelsAndReservations() { try { FileInputStream fis = new FileInputStream("Hotels.txt"); Scanner fs = new Scanner(fis); while(fs.hasNextLine()) { Scanner is = new Scanner(fs.nextLine()); is.useDelimiter(","); int id = Integer.parseInt(is.next().trim()); String name = i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void readFile() throws IOException {\r\n File file = new File(\"employee_list.txt\"); //Declaration and initialization of file object\r\n Scanner textFile = new Scanner(file); //Creates Scanner object and parse in the file\r\n\r\n ...
[ "0.7026311", "0.6635398", "0.65339583", "0.6498729", "0.64491934", "0.63483876", "0.6342134", "0.6335108", "0.63272756", "0.6299369", "0.62832147", "0.62414336", "0.62261766", "0.6208646", "0.6191184", "0.6151695", "0.6132338", "0.6106547", "0.61042607", "0.60937184", "0.6076...
0.6959296
1
Get whether this button is pressed
@Override public boolean get() { return this.joystick.getPOV() == this.angle; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static boolean isButtonPressed() {\n return button.isPressed();\n }", "public boolean isPressed() {\n\t\treturn get();\n\t}", "public boolean isButtonPressed(int playerNum) {\r\n return button.pressed;\r\n }", "public boolean getButtonPressed(Button button) {\n return getBut...
[ "0.83150715", "0.8298217", "0.78876257", "0.78834563", "0.78819346", "0.76897085", "0.7584066", "0.75697005", "0.7499335", "0.74981683", "0.7427523", "0.7425547", "0.7270631", "0.72540694", "0.72506434", "0.72439355", "0.72385067", "0.7227129", "0.7201596", "0.71975756", "0.7...
0.0
-1
Parse the table name which can he the following form: tableName: just take it as it is tableName(col1,col2...): column names are stored in the columns collection
static public final String getTableName(String tableParam, Collection<String> columns) { Pattern p = Pattern.compile("(.*)\\((.*)\\)"); Matcher m = p.matcher(tableParam); if( m.find() && m.groupCount() == 2 ) { String[] cols = m.group(2).split("[,;\\s]"); if( columns != null) { for( String c: cols ) co...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String extractTableName() {\n\t\treturn fromElement.getQueryable().getTableName();\n\t}", "String tableName2Name(String name);", "public abstract String [] getColumnNames(String tableName);", "private static String parseTname(String sql) {\r\n\t\tString ret = \"\";\r\n\t\t// String[] ret = str.split(...
[ "0.691299", "0.6721295", "0.66231185", "0.64934355", "0.6406622", "0.636443", "0.6343525", "0.62547123", "0.6212013", "0.6185904", "0.6160776", "0.6149219", "0.61306363", "0.6055343", "0.6001065", "0.59726304", "0.59726304", "0.59682614", "0.5967546", "0.5967546", "0.5967546"...
0.67876863
1
devuelve la cantidad de elementos en la lista
public int getCantidad() { return cantidad; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Long getNumberOfElement();", "public int getNumberOfElements();", "public Long getElementCount();", "public int size() {\n return elements.size();\n }", "public int size() {\n int counter = 1;\n Lista iter = new Lista(this);\n while (iter.next != null) {\n iter = iter.ne...
[ "0.7292925", "0.7260101", "0.7042937", "0.7000772", "0.69847304", "0.6965977", "0.69372106", "0.691021", "0.6899657", "0.6897895", "0.68674546", "0.6838985", "0.68330723", "0.68230325", "0.68200326", "0.6818791", "0.6798364", "0.6766697", "0.67451346", "0.6709435", "0.6694733...
0.0
-1
regresa el dato del primer elemento
public E primero() { if(estaVacia()) { return null; } return primero.getDato(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int eleminardelInicio(){\n int elemento=inicio.dato;\n if(inicio==fin){\n inicio=fin=null;\n }else{\n inicio=inicio.siguiente;\n inicio.anterior=null; \n }\n return elemento;\n }", "public int eliminardelInicio(){\n int elemento = inic...
[ "0.65881264", "0.6323082", "0.6130719", "0.6012609", "0.596589", "0.5935445", "0.5935445", "0.5923636", "0.5899738", "0.58601075", "0.57839686", "0.5750136", "0.57408625", "0.5729014", "0.5718516", "0.5718009", "0.57133776", "0.5700739", "0.56932247", "0.56758267", "0.5646683...
0.0
-1
inserta al inicio de la lista
public void insertarInicio(E dato) { primero=new Nodo<E>(dato,primero); if (estaVacia()) { ultimo=primero; } cantidad++; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void insertar() {\n\t\t\n\t}", "public void insertar(Trabajo t){\r\n\t\tif(!estaLlena()){\r\n\t\t\tultimo = siguiente(ultimo);\r\n\t\t\telementos[ultimo] = t;\r\n\t\t}\r\n\t}", "public void insert(List<T> entity) throws NoSQLException;", "private void insertar(ArrayList<Estado> hijos) {\r...
[ "0.73231316", "0.6988118", "0.69602704", "0.6902788", "0.6752543", "0.6743956", "0.67059076", "0.66921103", "0.6674249", "0.666139", "0.66418624", "0.6638714", "0.65998554", "0.65984446", "0.6584536", "0.6560325", "0.6556003", "0.65505147", "0.65142065", "0.6509174", "0.64951...
0.6522219
18
regresa el ultimo elemento
public E ultimo() { if(estaVacia()) { return null; } return ultimo.getDato(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void actualizarValor() {\n\t\tif (valor!=null && valor < getCantElementos()-1){\n\t\t\tvalor++;\n\t\t}\n\t\telse {\n\t\t\tvalor = 0;\n\t\t}\t\t\n\t}", "public void inserirFinal(int elemento) {\n No novo = new No(elemento, null);\n No temp = ini;\n\n if (eVazia()) {\n ini = ...
[ "0.6802893", "0.67358255", "0.6732503", "0.6511731", "0.6463458", "0.6457903", "0.6311506", "0.62621903", "0.6257364", "0.61585563", "0.60913295", "0.6076582", "0.6038607", "0.60301554", "0.60064197", "0.59769857", "0.5974213", "0.5961702", "0.5898435", "0.58744866", "0.58592...
0.5974955
16
find all "real" minigames
@Override protected void onCreate(final Bundle pSavedInstanceState) { for (MinigameIdentifier id : MinigameIdentifier.values()) { if (id != MinigameIdentifier.POINTS && id != MinigameIdentifier.RANDOM_MINIGAME) mMinigames.add(id); } super.onCreate(pSavedInstanceSt...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "PersonFinder whereNameStartsWith(String prefix);", "private String shortPrefix(String name) {\r\n StringBuilder b = new StringBuilder();\r\n String[] splits = name.split(\"_\");\r\n for (int i = 0; i < splits.length; ++i) {\r\n if (splits[i].length() > 0) {\r\n b.append(splits[i].charAt(0));...
[ "0.5538939", "0.53674334", "0.5355112", "0.532589", "0.5188138", "0.5180593", "0.5177712", "0.51666015", "0.51629", "0.51573676", "0.513258", "0.50945973", "0.506409", "0.503693", "0.5008781", "0.50073147", "0.49860016", "0.49752945", "0.4970524", "0.49697784", "0.49525857", ...
0.0
-1
DO THE UPDATE NOW//
private void updateUserInfo(final String username, String em, String status) { FirebaseDatabase.getInstance().getReference().child("Users").addListenerForSingleValueEvent(new ValueEventListener() { @Override public void onDataChange(DataSnapshot dataSnapshot) { Log.d(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void doUpdate(long now) {\n eyeCandy.update();\n }", "public void update() {}", "public void update(){}", "public void update(){}", "public void update() {\n\t\t\n\t}", "public void update() {\n\t}", "public void update() {\n\t}", "public void update() {\n\t}", ...
[ "0.7462956", "0.74536484", "0.7428581", "0.7428581", "0.7382799", "0.73813915", "0.73813915", "0.73813915", "0.73813915", "0.73164755", "0.730834", "0.72798634", "0.7268808", "0.72126216", "0.72126216", "0.71972764", "0.71972764", "0.71972764", "0.71972764", "0.71972764", "0....
0.0
-1
verifiy all the permissions passed to the array
public void verifyPermissions(String[] permissions) { Log.d(TAG, "verifyPermissions: verifying permissions."); ActivityCompat.requestPermissions( EditProfileActivity.this, permissions, VERIFY_PERMISSIONS_REQUEST ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPermissions(boolean [] permissions)\n\t{\n\t\tthis.permissions = permissions;\n\t}", "private boolean checkPermissionsArray(String[] permissions)\n {\n Log.d(TAG,\"checkPErmissionsArray\");\n for(int i=0;i<permissions.length;i++)\n {\n String check=permissions[i]...
[ "0.6910693", "0.67951703", "0.6688689", "0.66479063", "0.6623621", "0.6584666", "0.6577468", "0.6559019", "0.6556607", "0.6527759", "0.6417462", "0.64075637", "0.6370197", "0.6335982", "0.6335068", "0.63173735", "0.63173366", "0.63152784", "0.6304896", "0.6271961", "0.626656"...
0.63365114
13
Check an array of permissions
public boolean checkPermissionsArray(String[] permissions) { Log.d(TAG, "checkPermissionsArray: checking permissions array."); for (int i = 0; i < permissions.length; i++) { String check = permissions[i]; if (!checkPermissions(check)) { return false; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean checkPermissionsArray(String[] permissions)\n {\n Log.d(TAG,\"checkPErmissionsArray\");\n for(int i=0;i<permissions.length;i++)\n {\n String check=permissions[i];\n if(checkPermissions(check))\n {\n return false;\n }...
[ "0.82088804", "0.7044827", "0.6961034", "0.69425094", "0.685435", "0.6836897", "0.67645276", "0.6738829", "0.6731678", "0.66898316", "0.6668582", "0.6518037", "0.647985", "0.64737076", "0.64636916", "0.64478743", "0.64376515", "0.6397534", "0.63816166", "0.63698065", "0.63607...
0.7736363
1
Check a single permission is it has been verified
public boolean checkPermissions(String permission) { Log.d(TAG, "checkPermissions: checking permission: " + permission); int permissionRequest = ActivityCompat.checkSelfPermission(EditProfileActivity.this, permission); if (permissionRequest != PackageManager.PERMISSION_GRANTED) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean checkPermission(Permission permission);", "boolean isHasPermissions();", "public boolean isPermissionGranted(String permission){\n return true;\n// else\n// return false;\n }", "@Override\n public void checkPermission(Permission perm) {\n }", ...
[ "0.79022455", "0.73057586", "0.7290214", "0.706133", "0.702799", "0.6986702", "0.6958502", "0.6918161", "0.68947643", "0.6858026", "0.6824473", "0.6762124", "0.6704156", "0.66583544", "0.66360515", "0.6620569", "0.66169155", "0.6596287", "0.65823454", "0.65821314", "0.6560392...
0.6762392
11
Constructor de la clase, construye la interfaz de eleccion de reportes y llama al constructor del reporte apropiado
public CuentasxCobrar_Reportes() { verBtn.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { dispose(); if(fechaRBtn.isSelected()) new CuentasxCobrar_Reportes_Fecha(); else if(clienteRBtn.isSelected()) new CuentasxCobrar_Reportes_Cliente(); els...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Report() {\r\n }", "public Report() {\n\t\tsuper();\n\t}", "protected Report()\n {\n super();\n }", "public Report(Employee employee, int numberOfReports){\n this.employee=employee;\n this.numberOfReports=numberOfReports;\n }", "public FormFieldsReport() {}", "publ...
[ "0.7786069", "0.76947784", "0.76208216", "0.72598374", "0.70339", "0.6988939", "0.6910483", "0.67222464", "0.6716339", "0.6611975", "0.6598246", "0.6593745", "0.6577188", "0.6536183", "0.6536183", "0.6536183", "0.6491261", "0.6459158", "0.64535904", "0.63462377", "0.6300543",...
0.0
-1
Metodo que ejecuta el comando de generar reportes
public void ejecutarComando() { setVisible(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public GenerateReport() {\n initComponents();\n displayLogs();\n }", "public static void main(String[] args) {\n \t\tSystem.out.println(I18n.tr(\"StatCvs-XML - CVS statistics generation\")+\"\\n\");\n \t\tSystem.setProperty(\"java.awt.headless\", \"true\");\n \t\t\n\t\tif (args.length == 0) {\n\...
[ "0.65565366", "0.6456988", "0.64524806", "0.6417472", "0.6413467", "0.6360076", "0.6359576", "0.6356748", "0.6303903", "0.62449193", "0.62433857", "0.6228382", "0.6213253", "0.61986023", "0.6186087", "0.61757827", "0.61691016", "0.616094", "0.6156977", "0.6148381", "0.6136220...
0.0
-1
Listener de teclado para el dialogo de peticion de datos.
public void keyReleased(KeyEvent e) { if(e.getKeyCode() == KeyEvent.VK_ENTER) verBtn.doClick(); if(e.getKeyCode() == KeyEvent.VK_ESCAPE) cancelarBtn.doClick(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tgetControleur(). ConsultOuvrage() ;}", "private Listener btn_Ok_Clicked() {\n\t\treturn new Listener() {\r\n\t\t\tpublic void handleEvent(Event event) {\r\n\t\t\t\t\r\n\t\t\t\ttry {\r\n\t\t\t\t\tcon = DriverManager.getConnection(conn1.url,\r\...
[ "0.6630366", "0.66223276", "0.6619035", "0.65989137", "0.6514691", "0.6481565", "0.64494586", "0.6435021", "0.6426256", "0.6414417", "0.6414398", "0.64100057", "0.6400158", "0.6328824", "0.63027287", "0.6298866", "0.62652606", "0.6244133", "0.62183225", "0.62161887", "0.62013...
0.0
-1
Check if all prerequisites are fulfilled.
void checkPrerequisite() throws ActionNotPossibleException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean hasRequirements() {\n \t\tif (checkHasRequirements) {\n \t\t\thasRequirements = pullRequired(requiredInput, false);\n \t\t\tcheckHasRequirements = false;\n \t\t}\n \t\treturn hasRequirements;\n \t}", "private boolean checkDependenciesSatisfied() {\n\t\tLOGGER.trace(\"CheckDependenciesSatisfied: S...
[ "0.6809062", "0.65550584", "0.63160914", "0.62203354", "0.60305786", "0.5961922", "0.5934144", "0.5889807", "0.58525443", "0.5818996", "0.5808738", "0.57612115", "0.57538533", "0.5737294", "0.5724223", "0.5679192", "0.5670942", "0.5634038", "0.5625655", "0.5624587", "0.560278...
0.57969767
11
Method to set the listeners of the activity
private void setListeners() { btnSearch.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { searchAddress(); } }); lvResult.setOnItemClickListener(new AdapterView.OnItemClickListener() { @Overrid...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setListeners() {\n backButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n finish();\n }\n });\n\n settingButton.setOnClickListener(new View.OnClickListener() {\n @Override\n...
[ "0.74341947", "0.72677815", "0.71222794", "0.71123666", "0.6969749", "0.6965489", "0.69500357", "0.6869468", "0.68633735", "0.68233013", "0.67957354", "0.6710908", "0.6692692", "0.66628563", "0.6654772", "0.6621479", "0.6621092", "0.660712", "0.6596057", "0.658333", "0.656037...
0.63089633
43
Performs the process to search the address
private void searchAddress() { CommomUtils.hideKeyboard(MainActivity.this, etAddress); //Check if the address was informed if (etAddress.getText().toString().equals("")) { Toast.makeText(MainActivity.this, R.string.activity_main_search_address_validation, Toast.LENGTH_SHORT).show();...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void searchmap() {\n String location = \"475 Dien bien phu\";\n //lcSearch;\n\n if (location != null && !location.equals(\"\")) {\n List<Address> lstAddress = null;\n try {\n lstAddress = geocoder.getFromLocationName(location, 1);\n S...
[ "0.6757583", "0.65085715", "0.6408824", "0.6381459", "0.63692534", "0.63632625", "0.62478244", "0.62133366", "0.61847705", "0.61847705", "0.6164676", "0.6152877", "0.6148092", "0.61455613", "0.6108017", "0.61073965", "0.61070144", "0.6090634", "0.6090338", "0.60896915", "0.60...
0.7688427
0
Show the result in the listview
private void loadResult() { lvResult.setVisibility(View.VISIBLE); lvResult.setAdapter(new AddressAdapter(MainActivity.this, geocodingResult.getResults())); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void showResults(String query) {\n\t\t//For prototype will replace with db operations\n\t\tString[] str = { \"Artowrk1\", \"Some other piece\", \"This art\", \"Mona Lisa\" };\n\t\tArrayAdapter<String> aa = new ArrayAdapter<String>(this,android.R.layout.simple_dropdown_item_1line, str);\n\t\tmListView.setAda...
[ "0.7473248", "0.7125226", "0.7104683", "0.70207363", "0.69996053", "0.6828335", "0.68117833", "0.6806544", "0.6756168", "0.6605633", "0.66053873", "0.6600012", "0.6595526", "0.6587276", "0.65761083", "0.6567924", "0.6526396", "0.65113586", "0.6502395", "0.6497361", "0.6494034...
0.7442268
1
Show a progress while searching
private void showProgress() { if (dialogProgress == null) { dialogProgress = new Dialog(this); dialogProgress.requestWindowFeature(Window.FEATURE_NO_TITLE); dialogProgress.setContentView(R.layout.custom_progress); dialogProgress.setCancelable(false); } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override public void searchStarted() {\n progressBar.setVisibility(View.VISIBLE);\n }", "private void goSearch() {\n\t\tThread t = new Thread(this);\n\t\tt.start();\n\t}", "public void showProgress() {\n img_left_action.setVisibility(View.GONE);\n search_progress.setAlpha(0.0f);\n sea...
[ "0.76943785", "0.71346265", "0.68252414", "0.67991894", "0.6580276", "0.63790697", "0.6315713", "0.6285827", "0.6241327", "0.6230253", "0.6203739", "0.6178385", "0.61700416", "0.61483216", "0.6128251", "0.61119115", "0.6109877", "0.60556424", "0.6049437", "0.6047641", "0.6019...
0.0
-1
Hide the progress after the searching
private void hideProgress() { if (dialogProgress != null) { dialogProgress.dismiss(); dialogProgress = null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override public void searchStarted() {\n progressBar.setVisibility(View.VISIBLE);\n }", "public void showProgress() {\n img_left_action.setVisibility(View.GONE);\n search_progress.setAlpha(0.0f);\n search_progress.setVisibility(View.VISIBLE);\n ObjectAnimator.ofFloat(search_progr...
[ "0.7996456", "0.7502119", "0.7488516", "0.73468417", "0.7044022", "0.70332825", "0.68130106", "0.6753922", "0.6746259", "0.6666178", "0.6637271", "0.6597214", "0.6583345", "0.64773643", "0.6449378", "0.64478177", "0.6435588", "0.6418269", "0.6406049", "0.640579", "0.64002496"...
0.6377609
22
region Set the servlet container Set the servlet container
@Bean public ServletWebServerFactory servletContainer() { TomcatServletWebServerFactory tomcatServer = new TomcatServletWebServerFactory() { @Override protected void postProcessContext(Context context) { SecurityConstraint securityConstraint = new SecurityConstraint()...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setContainer(RuntimeContainer container)\n {\n this.container = container;\n }", "void setServletContext(ServletContext servletContext);", "void setServletContext(ServletContext servletContext);", "@Override\n\tpublic void setServletContext(ServletContext servletContext) {\n\tthis.se...
[ "0.6588855", "0.6428926", "0.6428926", "0.6273586", "0.62253106", "0.62253106", "0.6185771", "0.6167904", "0.61421543", "0.6112659", "0.6038733", "0.6024684", "0.5937306", "0.5922956", "0.587062", "0.5837805", "0.58122975", "0.5811973", "0.5811738", "0.5790565", "0.577224", ...
0.5352041
30
endregion region Set rest template bean Set the rest template bean (including the security configuration)
@Bean public RestTemplate restTemplate() throws KeyStoreException, NoSuchAlgorithmException, KeyManagementException { TrustStrategy acceptingTrustStrategy = (X509Certificate[] chain, String authType) -> true; SSLContext sslContext = org.apache.http.ssl.SSLContexts.custom() ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Autowired\n\tpublic void setRestTemplate(RestTemplateBuilder restTemplateBuilder) {\n\t\tthis.restTemplate = restTemplateBuilder.build();\n\t}", "@Bean(name = \"testRestTemplateRoleAdmin\")\n public TestRestTemplate testRestTemplateRoleAdminCreator(@Value(\"${local.server.port}\") int port) {\n RestTemp...
[ "0.6081335", "0.59227717", "0.5913412", "0.5674588", "0.5648726", "0.56006855", "0.5556048", "0.5546472", "0.5439743", "0.5426086", "0.53401923", "0.53375244", "0.5301333", "0.5242525", "0.52030116", "0.52022237", "0.5200962", "0.516031", "0.5149476", "0.5149476", "0.5101323"...
0.46816334
35
TODO Autogenerated method stub
@Override public PageBean<Books> findByPage(Integer page) { if(page == null || page < 1){ throw new RuntimeException("页码数据有误"); } PageBean<Books> pageBean = new PageBean<>(); pageBean.setCurrentPage(page); //获取所有的记录数 int count = 0; try { count = bookDao.count(); pageBean.se...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
Get all the preferences.
Page<Preferences> findAll(Pageable pageable);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Collection<String> getPreferences(){\n\t\treturn preferences;\n\t}", "public Map<String, ?> getAll() {\r\n SharedPreferences sharedPreferences = ctx.getSharedPreferences(SHARED_PREF_NAME, Context.MODE_PRIVATE);\r\n return sharedPreferences.getAll();\r\n }", "@Override\n\tpublic L...
[ "0.77913964", "0.7621119", "0.738161", "0.71872705", "0.7157838", "0.6883627", "0.6863696", "0.67988545", "0.6579498", "0.65533787", "0.6534928", "0.6470365", "0.6288211", "0.6284131", "0.623002", "0.6209984", "0.61946917", "0.6021173", "0.600977", "0.600977", "0.59580773", ...
0.6129432
17
Get the "id" preferences.
Optional<Preferences> findOne(Long id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Api(1.0)\n @Nullable\n public String getPreferenceId() {\n return mPreferencesId;\n }", "protected String getID(){\n sharedPref = getSharedPreferences(AppCSTR.PREF_NAME, Context.MODE_PRIVATE);\n //Log.d(\"ID\", sharedPref.getString(\"id\", null));\n return sharedPref.getStri...
[ "0.74180764", "0.7075847", "0.67759025", "0.67759025", "0.67759025", "0.67759025", "0.67759025", "0.67759025", "0.67759025", "0.67759025", "0.67759025", "0.67759025", "0.67759025", "0.67759025", "0.67759025", "0.67759025", "0.67759025", "0.67759025", "0.67759025", "0.67759025",...
0.0
-1
Delete the "id" preferences.
void delete(Long id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void deleteTrackerPrefs(final Integer id);", "@Override\n\tpublic void delete(int id) {\n\t\tsettingDao.delete(id);\n\t}", "public int deleteByPrimaryKey(Integer preferenceid) throws SQLException\n {\n Connection c = null;\n PreparedStatement ps = null;\n try\n {\n c =...
[ "0.77413106", "0.7113058", "0.68274635", "0.6709477", "0.6709477", "0.6709477", "0.6709477", "0.6709477", "0.6668225", "0.6665157", "0.6624299", "0.66229475", "0.6615844", "0.6597843", "0.6583236", "0.65749484", "0.65635335", "0.65560067", "0.65560067", "0.65560067", "0.65560...
0.0
-1
Search for the preferences corresponding to the query.
Page<Preferences> search(String query, Pageable pageable);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void searchforResults() {\n\n List<String> queryList = new SavePreferences(this).getStringSetPref();\n if(queryList != null && queryList.size() > 0){\n Log.i(TAG, \"Searching for results \" + queryList.get(0));\n Intent searchIntent = new Intent(Intent.ACTION_WEB_SEARCH)...
[ "0.65603244", "0.5939767", "0.5750393", "0.5487335", "0.54243886", "0.5415432", "0.53740305", "0.5351932", "0.5351033", "0.5240702", "0.5217915", "0.5168456", "0.51129663", "0.50824016", "0.50793046", "0.50607574", "0.5031407", "0.5005697", "0.49990144", "0.49691665", "0.4957...
0.7218883
0
Created by Debasis on 14/01/17.
public interface ProfileDisplayer { void display(User user); void updateProfileImage(Bitmap bitmap); void attach(ProfileActionListener profileActionListener); void detach(ProfileActionListener profileActionListener); interface ProfileActionListener { void onUpPressed(); void o...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void mo51373a() {\n }", "@Override\n public void func_104112_b() {\n \n }", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "protected boolean func_70814_o() { return true; }", "private void m50366E() {\n }", ...
[ "0.57634956", "0.57548624", "0.57034534", "0.56654227", "0.5637479", "0.5573661", "0.5561626", "0.55613893", "0.55582494", "0.5553565", "0.5553565", "0.55111384", "0.54987484", "0.54762954", "0.5448062", "0.54408205", "0.54315674", "0.541304", "0.5410556", "0.540894", "0.5402...
0.0
-1
get the distance between two data objects
private double getDistance(DataObject o1, DataObject o2) { double distance = 0.0; distance = (o1.getYear() - o2.getYear()) * (o1.getYear() - o2.getYear()) + (o1.getRatio1() - o2.getRatio1()) * (o1.getRatio1() - o2.getRatio1()) + (o1.getRatio2() - o2.getRatio2()) * (o1.getRatio2() - o2.getRatio2(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getDistance(){\r\n\t\treturn Math.sqrt(\r\n\t\t\t\t(\r\n\t\t\t\t\tMath.pow(\r\n\t\t\t\t\t\tthis.getFirstObject().getCenterX()\r\n\t\t\t\t\t\t- this.getSecondObject().getCenterX()\r\n\t\t\t\t\t, 2 )\r\n\t )\r\n\t\t\t\t+ (\r\n\t\t\t\t\tMath.pow(\r\n\t\t\t\t\t\tthis.getFirstObject().getCenter...
[ "0.7621739", "0.7593251", "0.74621606", "0.7343428", "0.7325041", "0.72842383", "0.7281032", "0.7255939", "0.7185778", "0.7171735", "0.7141964", "0.70435715", "0.70344627", "0.69651043", "0.6934565", "0.69293207", "0.6913992", "0.69083387", "0.6906743", "0.6893935", "0.688044...
0.74593663
3
get the nearest center data object
private int getNearestCenterIndex(DataObject obj, ArrayList<DataObject> centers) { int centerIndex = 0; double minDistance = Double.MAX_VALUE; double distance = 0.0; for (int i = 0; i < centers.size(); i++) { DataObject dataObject = centers.get(i); distance = getDistance(obj, dataObject); if (distan...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Point getClosest(){\n\t\t\tdouble distance;\n\t\t\tdouble distanceMax = 0.0;\n\t\t\tPoint centroid = centroid();\n\t\t\tPoint furthermost = new Point();\n\t\t\tfor(Point p : clusterPointsList){\n\t\t\t\tdistance = p.dist(centroid);\t\t\t\n\t\t\t\tif(distance > distanceMax){\n\t\t\t\t\tdistanceMax = distance...
[ "0.6924607", "0.6561299", "0.6522748", "0.6448308", "0.6399513", "0.6327098", "0.62677115", "0.6137536", "0.6120953", "0.6058516", "0.6005595", "0.5987033", "0.5950274", "0.5944939", "0.5943339", "0.5922134", "0.5921526", "0.58993894", "0.5881143", "0.58643174", "0.5859239", ...
0.6809678
1
get the error square
private double getErrorSquare(DataObject o1, DataObject o2) { return getDistance(o1, o2); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getMeanSquareError() {\n if (n < 3) {\n return Double.NaN;\n }\n return getSumSquaredErrors() / (n - 2);\n }", "public float classError() { return _errors / (float) _rows; }", "public double getSlopeStdErr() {\n return Math.sqrt(getMeanSquareError() / sum...
[ "0.7024169", "0.6775934", "0.6649694", "0.6486085", "0.640426", "0.6391464", "0.63792413", "0.6340797", "0.6243825", "0.6173155", "0.6160221", "0.61551476", "0.6086425", "0.6086425", "0.6086425", "0.6072277", "0.6060627", "0.60507363", "0.60493404", "0.59919846", "0.59854007"...
0.69003797
1
cluster all data objects
private void cluster() { int index = 0; for (DataObject obj : objects) { index = getNearestCenterIndex(obj, centers); clusters.get(index).add(obj); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void clustering() {\n \tclustering(clArgs.clusteringInFile, clArgs.clusteringOutDir,\n \t\t\tclArgs.clusteringOpticsXi, clArgs.clusteringOpticsMinPts);\n }", "private void process() {\n\n Cluster current=_clusters.get(0);\n while (!current.isValid()) {\n KMeans km...
[ "0.64521503", "0.6267353", "0.62411255", "0.6219375", "0.62051135", "0.61882204", "0.61576605", "0.61226475", "0.602637", "0.5998116", "0.5945764", "0.58836955", "0.5825458", "0.57449454", "0.5742378", "0.57139635", "0.5712104", "0.56963146", "0.5691176", "0.5683194", "0.5623...
0.7799995
0
/System.out.println(""); System.out.println("my getMaxJobsPerAcquisition"); System.out.println("");
@Override public int getMaxJobsPerAcquisition() { return myMaxJobsPerAcquisition; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void execute(){\n readFromConsole();\n getMaxValue();\n }", "private String jobs() {\r\n\t\tint[] j=tile.getJobs();\r\n\t\tString out = \"Jobs Are: \";\r\n\t\tfor(int i=0; i<j.length;i++) {\r\n\t\t\tout=out.concat(i+\": \"+(j[i])+\" || \");\r\n\t\t}\r\n\t\treturn out;\r\n\t}", "long co...
[ "0.6418852", "0.6411804", "0.62887084", "0.62174624", "0.60787153", "0.60787153", "0.60787153", "0.593894", "0.58808064", "0.5846207", "0.58375394", "0.5816564", "0.58122164", "0.5794204", "0.57922655", "0.5787413", "0.5774488", "0.57735234", "0.57724726", "0.5756108", "0.575...
0.6342389
2
Constructor that takes the adapter and the layout manager of the recycler view
public RecyclerViewFooterScrollView(AbstractHeaderFooterAdapter adapter, LinearLayoutManager layoutManager) { this.adapter = adapter; this.layoutManager = layoutManager; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initRecyclerview() {\n RecyclerView.LayoutManager layoutManager = new LinearLayoutManager(this);\n recyclerView.setLayoutManager(layoutManager);\n\n mAdapter = new MovieAdapter(this);\n recyclerView.setAdapter(mAdapter);\n }", "public void initRecyclerView() {\n\r\n\r\...
[ "0.69531643", "0.69070935", "0.6680977", "0.66412467", "0.66291183", "0.66219205", "0.6595954", "0.6587666", "0.65679073", "0.6556782", "0.6554935", "0.6551525", "0.64859724", "0.64771235", "0.64633036", "0.64462817", "0.6442051", "0.644189", "0.6424649", "0.64144826", "0.639...
0.59185356
85
Setter for the loading field, that determines if the list is loading or not
public void setLoading(boolean loading) { this.loading = loading; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setLoading(boolean isLoading);", "@Override\n public Boolean isLoading() {\n return loadingInProgress;\n }", "@Override\n\tpublic boolean isLoad() {\n\t\treturn false;\n\t}", "public void setLoading(boolean z) {\n this.mLoading = z;\n }", "public ...
[ "0.7413244", "0.68667257", "0.68517745", "0.6833566", "0.679869", "0.6791551", "0.66951424", "0.6516554", "0.6448082", "0.6432226", "0.6347532", "0.6309914", "0.62312037", "0.6180036", "0.61585397", "0.6112874", "0.60927284", "0.60843205", "0.60469973", "0.5973003", "0.597004...
0.7175703
1
Setter for the limit_reached field, which determines if the limit of the list is reached or not
public void setLimit_reached(boolean limit_reached) { this.limit_reached = limit_reached; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean limitHit() {\r\n return (count >= maxCount);\r\n }", "public void setLimit(float value) {\n this.limit = value;\n }", "void setLimit(int limit);", "public boolean getIsLimited() {\n return isLimited_;\n }", "public void setLimit(int limit) {\n\tLimit = limit;\n ...
[ "0.6730599", "0.6712181", "0.6516818", "0.6515773", "0.65153134", "0.6510714", "0.64294404", "0.6366313", "0.6331535", "0.6320678", "0.63200563", "0.62836564", "0.6225157", "0.62157506", "0.6214339", "0.6209402", "0.61898464", "0.61898464", "0.61823523", "0.617775", "0.615887...
0.84428585
0
Setter for the previousTotal field, that keeps track of the last total of elements
public void setPreviousTotal(int previousTotal) { this.previousTotal = previousTotal; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getPrevCount()\n {\n\n return this.prevCount;\n }", "public void incrementTotal() {\n\t\t\ttotal++;\n\t\t}", "public void setTotal(int total) {\n this.total = total;\n }", "public void setPrevCount(double n)\n {\n\n this.prevCount = n;\n }", "public void de...
[ "0.62883145", "0.6074719", "0.5997164", "0.5988434", "0.596883", "0.5931432", "0.5931323", "0.5917033", "0.58970934", "0.5895638", "0.5886437", "0.58796287", "0.58792603", "0.585945", "0.58497065", "0.5833545", "0.5833545", "0.5833545", "0.5803168", "0.58027434", "0.57766795"...
0.83718014
0
Abstract method that has to be implemented to determine the actions to do when the list is scrolled until the end
public abstract void load();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override // the bottom of the list\n public void onScrollStateChanged(AbsListView absListView, int scrollState) {\n int threshold = 1; // initializing the list view threshold\n int count = getCount(); // and the number of current items ...
[ "0.67504996", "0.6728253", "0.66039133", "0.65820134", "0.6569651", "0.6569651", "0.6569651", "0.6569651", "0.65191466", "0.650811", "0.64822304", "0.64797133", "0.6467475", "0.6467475", "0.6459164", "0.64503145", "0.6433267", "0.6417885", "0.63718855", "0.6333201", "0.633311...
0.0
-1
Created by KOTO on 11/07/2017.
public interface PokemonService { @GET("pokemon/?limit=151") Call<ListResponse> listPokemon(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "public final void mo51373a() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\tpubl...
[ "0.60011435", "0.58071864", "0.57994956", "0.5789362", "0.57517946", "0.5692804", "0.5677208", "0.5677208", "0.56616956", "0.5641277", "0.55978984", "0.5581048", "0.55753756", "0.55587286", "0.55393654", "0.5532729", "0.5532729", "0.5532729", "0.5532729", "0.5532729", "0.5529...
0.0
-1
This Constructor recieves the modifications in String Format and will transform them into different objects.
public ModificationList(ArrayList aFModStringArrayList, ArrayList aVModStringArrayList) { generateVModVector(aVModStringArrayList); generateFModVector(aFModStringArrayList); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Format()\n {\n super();\n }", "public abstract void fromString(String s, String context);", "private Formats() {\n }", "private ARXDate(final String formatString) {\r\n if (formatString == null || formatString.equals(\"Default\")) {\r\n this.string...
[ "0.6171454", "0.6159375", "0.58315325", "0.5830682", "0.57633525", "0.57513195", "0.5748675", "0.57463205", "0.5721905", "0.5708671", "0.5684956", "0.5680722", "0.56785387", "0.5617688", "0.5600071", "0.55945295", "0.5516166", "0.55110824", "0.547821", "0.5474212", "0.5465672...
0.0
-1
This Constructor receives the modifications in String Format and will transform them into different objects.
public ModificationList(ArrayList aFModStringArrayList, ArrayList aVModStringArrayList, String aFixedModifications_ParameterSection) { generateVModVector(aVModStringArrayList); if (aFixedModifications_ParameterSection != null) { generateFModVector(aFixedModifications_ParameterSection); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void fromString(String s, String context);", "private Format()\n {\n super();\n }", "private ARXDate(final String formatString) {\r\n if (formatString == null || formatString.equals(\"Default\")) {\r\n this.string = \"dd.MM.yyyy\";\r\n ...
[ "0.6100933", "0.6063526", "0.5779326", "0.5772099", "0.57404065", "0.5727314", "0.56851804", "0.5665566", "0.5608826", "0.5558007", "0.55440176", "0.5536855", "0.5520557", "0.5520522", "0.5469254", "0.5462495", "0.54539144", "0.54425716", "0.54422545", "0.5432972", "0.5418732...
0.0
-1
Create a Vector containing all the variable modification instances.
private void generateVModVector(ArrayList aVModStringArrayList) { StringTokenizer st = null; String lStringV = null; // Run every element in the aVModStringArrayList trough a for loop. // Create a VariableModification instance at the end of each loop. // Put the instance into the...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Vector getVariableModifications() {\n return iVariableModifications;\n }", "public ImmutableList<Variable> getVariables() {\n return ImmutableList.copyOf(members);\n }", "public Vector freeVars() {\r\n\t\tVector v = new Vector(2, 2);\r\n\t\tVector temp = ((SimpleNode) jjtGetChild(0)).freeV...
[ "0.7182727", "0.63134015", "0.61732507", "0.61519516", "0.5964564", "0.5962124", "0.59618956", "0.59567314", "0.59126073", "0.5867643", "0.5834599", "0.5756596", "0.56916475", "0.567753", "0.56731063", "0.5670798", "0.561194", "0.5611228", "0.5573587", "0.55066234", "0.550295...
0.68140054
1
Create a Vector containing all the variable modification instances.
private void generateFModVector(ArrayList aFModStringArrayList) { StringTokenizer st = null; String lStringF = null; // Run every element in the aFModStringArrayList trough a for loop. // Create a FixedModification instance at the end of each loop. // Put the instance into the ve...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Vector getVariableModifications() {\n return iVariableModifications;\n }", "private void generateVModVector(ArrayList aVModStringArrayList) {\n StringTokenizer st = null;\n String lStringV = null;\n // Run every element in the aVModStringArrayList trough a for loop.\n ...
[ "0.7182727", "0.68140054", "0.63134015", "0.61732507", "0.5964564", "0.5962124", "0.59618956", "0.59567314", "0.59126073", "0.5867643", "0.5834599", "0.5756596", "0.56916475", "0.567753", "0.56731063", "0.5670798", "0.561194", "0.5611228", "0.5573587", "0.55066234", "0.550295...
0.61519516
4
Create a vector with fixed modifications, mind they will only contain the modification type and location!
private void generateFModVector(String aFixedModifications_ParameterSection) { //Acetyl (K),Carbamidomethyl (C) FixedModification lF; ArrayList lFixedMods = new ArrayList(); StringTokenizer st = new StringTokenizer(aFixedModifications_ParameterSection, ","); while (st.hasMoreToke...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract ImmutableVector getImmutableVector();", "private void generateFModVector(ArrayList aFModStringArrayList) {\n StringTokenizer st = null;\n String lStringF = null;\n // Run every element in the aFModStringArrayList trough a for loop.\n // Create a FixedModification insta...
[ "0.6180277", "0.5851003", "0.58347964", "0.57454205", "0.57330453", "0.5666968", "0.5666968", "0.56578606", "0.5596749", "0.55446124", "0.5420352", "0.54194176", "0.5382405", "0.53565013", "0.533994", "0.53296316", "0.53074837", "0.52907133", "0.5260661", "0.5255542", "0.5254...
0.604325
1
Returns this Vector holds the different FixedModificatins used in this Mascot search.
public Vector getFixedModifications() { return iFixedModifications; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void generateFModVector(String aFixedModifications_ParameterSection) {\n //Acetyl (K),Carbamidomethyl (C)\n FixedModification lF;\n ArrayList lFixedMods = new ArrayList();\n StringTokenizer st = new StringTokenizer(aFixedModifications_ParameterSection, \",\");\n while (st...
[ "0.6024753", "0.568631", "0.53441584", "0.5043465", "0.4986201", "0.49721226", "0.49459836", "0.48837686", "0.48207754", "0.48106852", "0.48091727", "0.47886553", "0.47859734", "0.47660047", "0.4737418", "0.4726891", "0.47180185", "0.4690383", "0.4684444", "0.46680468", "0.46...
0.6748959
0
Returns this Vector holds the different Variable Modificatins used in this Mascot search.
public Vector getVariableModifications() { return iVariableModifications; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void generateVModVector(ArrayList aVModStringArrayList) {\n StringTokenizer st = null;\n String lStringV = null;\n // Run every element in the aVModStringArrayList trough a for loop.\n // Create a VariableModification instance at the end of each loop.\n // Put the instanc...
[ "0.57714474", "0.55467516", "0.54901505", "0.5475169", "0.54382724", "0.5412275", "0.5399996", "0.53702337", "0.5343639", "0.5310237", "0.5297461", "0.5290033", "0.52865654", "0.52522016", "0.5238319", "0.52380836", "0.5234567", "0.523358", "0.5222652", "0.5208536", "0.520685...
0.7112168
0
method Use the static TestModificationConversion instance HashMap.
private String getShortType(String aKey) { if (iConnection == null){ return ModificationConversion.getShortType(aKey); } else { return ModificationConversion.getShortType(aKey,iConnection); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testMaps() throws Exception {\n\t\ttestWith(TestClassMap.getInstance());\n\t}", "@Test\n public void test25() throws Throwable {\n\t\tfr.inria.diversify.sosie.logger.LogWriter.writeTestStart(1346,\"org.apache.commons.collections4.IteratorUtilsEvoSuiteTest.test25\");\n HashMap<StringT...
[ "0.5616531", "0.555729", "0.5535305", "0.55067605", "0.54657704", "0.5457851", "0.54519886", "0.5442393", "0.5441529", "0.5389631", "0.5384079", "0.53666526", "0.5364296", "0.5352717", "0.5349597", "0.5347334", "0.53450924", "0.53147846", "0.5311366", "0.5293504", "0.5292057"...
0.0
-1
Method Parse the name string of a variable modidication into type of modifiction(ex: 'Acetyl') and the location(ex:'Nterm')
private String[] parseVariableModName(String aName) { String[] lNameArray = new String[2]; int lBeginIndex = aName.lastIndexOf('('); if (lBeginIndex > 0) { int lEndIndex = aName.lastIndexOf(')'); lNameArray[0] = aName.substring(0, (lBeginIndex)); lNameArray[1]...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String parseFixedModName(String aName) {\n aName = aName.trim(); //Cut of the leading whitespace.\n int lEndIndex = aName.lastIndexOf('(') - 1; //Find the last ')' bracket; minus 1 is the end of the Mod type.\n if (lEndIndex >= 0) {\n aN...
[ "0.6320923", "0.613204", "0.56023055", "0.55834585", "0.5572832", "0.54678476", "0.5401953", "0.5351047", "0.53461134", "0.53260905", "0.5296942", "0.5278516", "0.52759784", "0.52759784", "0.52759784", "0.5272788", "0.52700263", "0.5269821", "0.5252848", "0.524913", "0.521757...
0.72643274
0
Method Parse the name string of a fixed modidication into type of modifiction(ex: 'Acetyl_heavy').
private String parseFixedModName(String aName) { aName = aName.trim(); //Cut of the leading whitespace. int lEndIndex = aName.lastIndexOf('(') - 1; //Find the last ')' bracket; minus 1 is the end of the Mod type. if (lEndIndex >= 0) { aName = aNa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static UpdateModuleType nameOf(String name) {\n if (name == null) { return null; }\n try { return valueOf(name); } catch (RuntimeException ignored) { return null; }\n }", "public static Material getType(String name) {\n Material material = null;\n name = name.toU...
[ "0.58767325", "0.5714474", "0.55769", "0.55346894", "0.55269146", "0.54806745", "0.54481584", "0.5409228", "0.53430754", "0.53039575", "0.5224738", "0.5181769", "0.51524943", "0.5133931", "0.51181656", "0.51135963", "0.5089333", "0.5074097", "0.50339895", "0.5029286", "0.5020...
0.7062317
0
Calculates the records of a set of players based on their performance in a set of matches.
public List<Record> calculateRecords(List<Match> matches) { if (matches == null || matches.size() == 0) { throw new IllegalArgumentException("At least one match must be provided."); } HashMap<Player, Record> recordsList = new HashMap<>(); for (Match match : matches) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void doMatchesStats(int week){\r\n \r\n \r\n List<FantasyMatch> fMatches = fmatchBean.findByWeek(week);\r\n for(int i = 0; i < fMatches.size(); i++){\r\n FantasyMatch fm = fMatches.get(i);\r\n FantasyTeam team1 = fm.getTeam1();\r\n FantasyTeam te...
[ "0.6428988", "0.61927503", "0.5849473", "0.5822513", "0.5789431", "0.5706488", "0.5639072", "0.5625926", "0.5543584", "0.5527004", "0.54861194", "0.54275167", "0.5375946", "0.53518665", "0.5332595", "0.5329301", "0.5323506", "0.5279556", "0.5275133", "0.52726847", "0.524905",...
0.77571994
0
Helper method to get an existing player from the map, if they exist, or add a new one.
private static Record getOrAddRecord(HashMap<Player, Record> recordHashMap, Player player) { if (recordHashMap.containsKey(player)) { return recordHashMap.get(player); } else { Record record = new Record().setPlayer(player); recordHashMap.put(player, record); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Player addNewPlayer(String username) {\n if (!playerExists(username)) {\n Player p = new Player(username);\n System.out.println(\"Agregado jugador \" + username);\n players.add(p);\n return p;\n }\n return null;\n }", "public boolean loadPlayer(P player){\n\n //Is the...
[ "0.66975904", "0.6633124", "0.6562783", "0.64440525", "0.63626873", "0.6349937", "0.6346789", "0.6300486", "0.6264664", "0.62005806", "0.61923975", "0.61915636", "0.6146383", "0.6127289", "0.61013937", "0.6090526", "0.6085732", "0.607596", "0.60272986", "0.60167414", "0.60003...
0.6307941
7
Calculates the ranking list by applying the ranking types provided, in order. If any players are tied according to all provided ranking types, they may be returned in an arbitrary order.
public List<Record> calculateRankings(List<Record> records, List<RankingType> rankingTypes) { if (records == null || records.size() == 0) { throw new IllegalArgumentException("At least one record much be provided."); } if (rankingTypes == null || rankingTypes.size() == 0) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ArrayList<String> getRankedBrands(String type){\n\t\tArrayList<String> rank = new ArrayList<String>();\n\t\tHashtable<String, BrandsData> brands = this.getPromoPerBrand();\n\t\tArrayList<BrandsData> temp = new ArrayList<BrandsData>(brands.values());\n\t\tCollections.sort(temp, new Comparator<BrandsData>() {...
[ "0.59487283", "0.59468764", "0.58452696", "0.57657266", "0.55873233", "0.5583242", "0.5533759", "0.5525222", "0.551933", "0.55150723", "0.5500418", "0.5472708", "0.5462471", "0.5433949", "0.5424737", "0.54246", "0.5424587", "0.5411512", "0.5331747", "0.53002846", "0.5287875",...
0.67971426
0
Sorts within each bucket of tied players, and then flattens the twolevel hierarchy of tied buckets into a single level list of tied buckets.
private List<List<Record>> sortEachBucketAndFlatten(List<List<Record>> tiedGroups, RankingType rankingType) { return tiedGroups.stream() .map(tiedGroup -> sortRecordsBy(tiedGroup, rankingType)) .flatMap(List::stream) .collect(Collectors.toList()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void multipleSortOfFinalPlayerList() {\n\n sortedFinalPlayerList = new ArrayList<>();\n\n Comparator<Player> byLastName = (e1, e2) -> e1\n .getLastName().compareTo(e2.getLastName());\n\n Comparator<Player> byFirstName = (e1, e2) -> e1\n .getFirstNam...
[ "0.55542094", "0.5468759", "0.53461176", "0.5296241", "0.5294194", "0.528165", "0.52463233", "0.51956636", "0.5156441", "0.51129854", "0.5086798", "0.5084288", "0.50456554", "0.5027344", "0.5006756", "0.49722087", "0.4966878", "0.49339408", "0.49145517", "0.4883753", "0.48764...
0.6763508
0
Sorts the provided records by a single criterion. The outer list returned represents the ordered groups, while the inner lists contain records which are still tied.
private List<List<Record>> sortRecordsBy(List<Record> unsortedRecords, RankingType rankingType) { Comparator<Long> comparator = rankingType.isDescending() ? Comparator.reverseOrder() : Comparator.naturalOrder(); SortedMap<Long, List<Record>> scoreGroups = new TreeMap<>(co...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void testSortCriteria() throws Exception\n {\n Vector vect = new Vector();\n final long modifier = 100;\n long sdArr[][] = { { 0, 10 }, { 0, 12 }, { 0, 8 }, { -5, 20 }, { -5, 13 }, { -5, 15 }, { -5, -7 }, { 2, 10 },\n { 2, 8 }, { 2, 2 }, { 12, 14 }, { -5, 5 }, { ...
[ "0.61678773", "0.59946024", "0.59759456", "0.5804377", "0.5775138", "0.56097025", "0.56060517", "0.5592121", "0.55805755", "0.5352402", "0.5208859", "0.5134671", "0.5098758", "0.508961", "0.50869423", "0.5076839", "0.50485986", "0.50484437", "0.5027092", "0.49988192", "0.4993...
0.69483036
0
access to the images and the model.
public BackgroundMean(SnakeModel m, SnakeImages i, SnakeFrame panel){ model = m; images = i; frame = panel; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void findImages() {\n \t\tthis.mNoteItemModel.findImages(this.mNoteItemModel.getContent());\n \t}", "Images getImages(){\n return images;\n }", "private void initializeImageModels() {\n for(ImageModel model : GalleryFragment.listImageModel){\n imgList.add(model.getImagePath()...
[ "0.6809884", "0.6594655", "0.6502384", "0.6436696", "0.6327617", "0.6327617", "0.6327617", "0.62756246", "0.6222094", "0.6082018", "0.6067987", "0.60344535", "0.6027652", "0.60272306", "0.6025704", "0.6025704", "0.6010875", "0.5994334", "0.5979527", "0.597513", "0.5975013", ...
0.0
-1