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
TODO Autogenerated method stub
public static void main(String[] args) { try { int[] a = new int[2000000000]; } catch(Error er) { System.out.println(er); } }
{ "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
The i18n property name of the unit/upgrade/building.
public String getName() { return name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getName() {\r\n\t\treturn LocalizedTextManager.getDefault().getProperty(name());\r\n\t}", "public String getName() {\n return I18nUtil.getBundle().getString(\"CTL_I18nAction\");\n }", "public String getLocalizedName() {\n\t\treturn this.name().toUpperCase();\n\t}", "public String getN...
[ "0.68657994", "0.67341036", "0.651455", "0.644017", "0.64289063", "0.6426048", "0.63556904", "0.6234091", "0.6152162", "0.6121608", "0.60570836", "0.60476947", "0.60476947", "0.604701", "0.60440576", "0.60199654", "0.5962755", "0.59502906", "0.59402835", "0.592701", "0.591443...
0.0
-1
A Buildable A is the same as B if a) it is of the same subclass (runtime class) b) it has the same name
public boolean equals(Object obj) { if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final Buildable other = (Buildable) obj; if ((this.name == null) ? (other.name != null) : !this.name.equals(other.name)) { return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected boolean isMoreDerivedThan( Bootstrapper other )\n {\n return other.getClass().isAssignableFrom( getClass() );\n }", "@Override\n public abstract boolean isAssignableBy(TypeUsage other);", "public boolean assignableTo(Type other) throws LookupException;", "public abstract B copy()...
[ "0.5964755", "0.5729604", "0.56327504", "0.55312437", "0.54431546", "0.5425587", "0.538179", "0.5352401", "0.53522414", "0.5266153", "0.518868", "0.51824105", "0.5181416", "0.5178411", "0.5168664", "0.51620275", "0.51573694", "0.51336646", "0.51309896", "0.51274216", "0.51248...
0.0
-1
Mandatory. Map duty distribution and delegation responsibilities to a consumer
public EventMapper onCapture(final Consumer<Set<Duty>> consumer) { initConsumerDelegate(); ((ConsumerDelegate)getDepPlaceholder().getDelegate()).putConsumer(consumer, MappingEvent.capture); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface DistributorConnector {\n\n /**\n * Lets the factory know what the current demand of the distributor is.\n *\n * @param demandPerType the demand of the distributer by type\n */\n public void setDemand(Map<ClockType, Integer> demandPerType);\n\n /**\n * Registers a liste...
[ "0.5924813", "0.5699412", "0.53888917", "0.53877425", "0.5331349", "0.52798265", "0.5220689", "0.5196229", "0.51741594", "0.5134017", "0.513295", "0.51255697", "0.51235783", "0.51136065", "0.5098523", "0.50867414", "0.50817376", "0.5078879", "0.5078485", "0.5074795", "0.50514...
0.0
-1
Required optional. Map pallet assignation responsibilities to a consumer
public EventMapper onPalletCapture(final Consumer<Set<Pallet>> consumer) { initConsumerDelegate(); ((ConsumerDelegate)getDepPlaceholder().getDelegate()).putConsumerPallet(consumer, MappingEvent.capturePallet); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void commanderParMap(Map<Produit, Integer> mapOfProduits) {\n\r\n\t}", "public void interactWhenApproaching() {\r\n\t\t\r\n\t}", "public EventMapper onPalletRelease(final Consumer<Set<Pallet>> consumer) {\n\t\tinitConsumerDelegate();\n\t\t((ConsumerDelegate)getDepPlaceholder().getDelegate...
[ "0.56134236", "0.5339568", "0.5335697", "0.5212817", "0.5192542", "0.5171127", "0.51674616", "0.5124393", "0.5117934", "0.5116623", "0.51000094", "0.5099916", "0.50927", "0.50834924", "0.50633", "0.506131", "0.5056797", "0.5013905", "0.5010921", "0.500952", "0.49852785", "0...
0.54589283
1
Mandatory. Map duty release contract to a consumer
public EventMapper onRelease(final Consumer<Set<Duty>> consumer) { initConsumerDelegate(); ((ConsumerDelegate)getDepPlaceholder().getDelegate()).putConsumer(consumer, MappingEvent.release); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface DistributorConnector {\n\n /**\n * Lets the factory know what the current demand of the distributor is.\n *\n * @param demandPerType the demand of the distributer by type\n */\n public void setDemand(Map<ClockType, Integer> demandPerType);\n\n /**\n * Registers a liste...
[ "0.6271931", "0.62335235", "0.6019997", "0.56667656", "0.5627056", "0.56124634", "0.5488133", "0.54713976", "0.54450583", "0.536779", "0.5363666", "0.5359879", "0.5339226", "0.52139", "0.5185677", "0.5185315", "0.5164845", "0.51633817", "0.5150038", "0.513093", "0.5128543", ...
0.6716964
0
Required optional. Map pallet release contract to a consumer
public EventMapper onPalletRelease(final Consumer<Set<Pallet>> consumer) { initConsumerDelegate(); ((ConsumerDelegate)getDepPlaceholder().getDelegate()).putConsumerPallet(consumer, MappingEvent.releasePallet); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public EventMapper onRelease(final Consumer<Set<Duty>> consumer) {\n\t\tinitConsumerDelegate();\n\t\t((ConsumerDelegate)getDepPlaceholder().getDelegate()).putConsumer(consumer, MappingEvent.release);\n\t\treturn this;\n\t}", "public interface DistributorConnector {\n\n /**\n * Lets the factory know what t...
[ "0.63414407", "0.58435965", "0.57580334", "0.57041013", "0.5586668", "0.5567803", "0.5456579", "0.5413883", "0.53712445", "0.53287464", "0.5278651", "0.5179533", "0.5175901", "0.51754564", "0.5169487", "0.5135638", "0.5133242", "0.51244503", "0.5099474", "0.50081974", "0.4970...
0.69799405
0
Optional. Map an update on the duty's payload to a consumer
public EventMapper onUpdate(final Consumer<Duty> consumer) { initConsumerDelegate(); ((ConsumerDelegate)getDepPlaceholder().getDelegate()).setConsumerUpdate(consumer); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void updateConsumer(Consumer con) {\n\r\n\t}", "RequestSender onInform(Consumer<Message> consumer);", "public interface DataModelConsumer {\n\n /**\n * Consume the data model. The consumer shouldn't make any changes to it, as\n * other consumers could be using the model afterwa...
[ "0.6421956", "0.60227734", "0.5913004", "0.5882795", "0.5841567", "0.58356416", "0.5778682", "0.55195796", "0.5461023", "0.54509455", "0.53307563", "0.5324811", "0.53056324", "0.5246516", "0.52264595", "0.52227044", "0.52212334", "0.52139103", "0.51836133", "0.51733696", "0.5...
0.64217126
1
Optional. Map an update on the pallet's payload to a consumer
public EventMapper onPalletUpdate(final Consumer<Pallet> consumer) { initConsumerDelegate(); ((ConsumerDelegate)getDepPlaceholder().getDelegate()).setConsumerUpdatePallet(consumer); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void updateConsumer(Consumer con) {\n\r\n\t}", "RequestSender onInform(Consumer<Message> consumer);", "RequestSender onRefuse(Consumer<Message> consumer);", "@Override\n\tpublic void handleConsumeOk(String consumerTag) {\n\t\t\n\t}", "public EventMapper onPalletRelease(final Consumer<...
[ "0.60780466", "0.5780822", "0.5733657", "0.56199414", "0.5607447", "0.55772066", "0.55517", "0.5527077", "0.5476781", "0.54460436", "0.533165", "0.53282225", "0.5288654", "0.52582395", "0.52279997", "0.5223818", "0.52113897", "0.5170112", "0.51351553", "0.51146513", "0.511211...
0.69014865
0
Optional. Map duty object's transfer responsibilities to a receptionist consumer
public EventMapper onTransfer(final BiConsumer<Duty, Serializable> biconsumer) { initConsumerDelegate(); ((ConsumerDelegate)getDepPlaceholder().getDelegate()).setBiConsumerTransfer(biconsumer); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface Delivery {\n\n void postDelivery(PlusRequest<?> plusRequest, Response<?> response);\n}", "RequestSender onInform(Consumer<Message> consumer);", "public interface MovimentacaoChainHandler {\n\n void handleMovimentacao(Movimentacao movimentacao);\n}", "protected CommunicationsHandler(){}...
[ "0.565204", "0.5452077", "0.5429084", "0.5354828", "0.53445613", "0.5294804", "0.525865", "0.52586406", "0.52381945", "0.52285516", "0.5219641", "0.5214155", "0.52066576", "0.5198407", "0.51921237", "0.51879835", "0.51799506", "0.51699424", "0.5141236", "0.51346856", "0.50802...
0.5536155
1
Optional. Adds a custom balancer
public EventMapper onBalance(final Balancer balancer) { Validate.notNull(balancer); Balancer.Directory.addCustomBalancer(balancer); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic boolean hasLoadBalancerSupport() {\n\t\treturn false;\r\n\t}", "public void addBuddy(IAwarenessUser user) {\n\t\tgetBuddies().add(user);\n\t\tthis.createBuddyIcon(user);\n\t}", "public void addBoat(Boat b){\r\n boats.add(b);\r\n }", "public Builder setLoadBalancer(\n co...
[ "0.56708485", "0.562759", "0.53226256", "0.5269672", "0.5253811", "0.52448136", "0.5225676", "0.52211255", "0.52167404", "0.5176368", "0.5169182", "0.5147914", "0.5119277", "0.51104915", "0.50937927", "0.5065978", "0.5065583", "0.50628316", "0.50538737", "0.5002204", "0.49890...
0.6788402
0
Optional. Map minka's service start to a consumer
public EventMapper onActivation(final Runnable runnable) { initConsumerDelegate(); ((ConsumerDelegate)getDepPlaceholder().getDelegate()).putRunnable(MappingEvent.activation, runnable); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addStartListener(Consumer<JvmThread> consumer) {\n startListeners.add(consumer);\n }", "void externalProcessStarted(String command, String consumer);", "public Ice.AsyncResult begin_startService(String service, java.util.Map<String, String> __ctx, Callback_ServiceManager_startService __cb...
[ "0.6108471", "0.6056366", "0.59910804", "0.59655416", "0.58945346", "0.5886848", "0.5863084", "0.5797085", "0.5790363", "0.5734282", "0.5718397", "0.5717211", "0.5708058", "0.57060957", "0.570064", "0.5692145", "0.5684307", "0.565887", "0.5651309", "0.56278074", "0.56118286",...
0.0
-1
Optional. Map minka's service shutdown to a consumer.
public EventMapper onDeactivation(final Runnable runnable) { initConsumerDelegate(); ((ConsumerDelegate)getDepPlaceholder().getDelegate()).putRunnable(MappingEvent.deactivation, runnable); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "interface Consumer {\n /**\n * Consume a message.\n * \n * @param entry\n * A log entry converted to hash.\n */\n public void consume(Map<String, Object> entry);\n\n /**\n * Shutdown the consumer thread, waiting for it to finish.\n */\n public void shutdown();\n}"...
[ "0.65970707", "0.6507539", "0.60224414", "0.5734905", "0.5732636", "0.572916", "0.56985945", "0.5638364", "0.55921906", "0.55921906", "0.55921906", "0.5586224", "0.5531342", "0.5517819", "0.5506917", "0.5506537", "0.54836756", "0.5476273", "0.5462985", "0.54525036", "0.544642...
0.0
-1
Mandatory for pallets using a weightedbalancer to be actually distributed. Explicitly set current shard's capacity for a given Pallet. Weight value's measure is not validated by Minka against duty weight measure.
public EventMapper setCapacity(final Pallet pallet, final double weight) { initConsumerDelegate(); ((ConsumerDelegate)getDepPlaceholder().getDelegate()).putCapacity(pallet, weight); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setWeight(final double pWeight){this.aWeight = pWeight;}", "public void setWeight(double pounds) {\n if (pounds >= 80 && pounds <= 280)\n this.weight = pounds;\n }", "public void setpWeight(int pWeight) {\n this.pWeight = pWeight;\n }", "public void setCapacity(int ...
[ "0.62665033", "0.6082986", "0.6035973", "0.59427613", "0.588503", "0.5873244", "0.58373666", "0.582665", "0.58249986", "0.582287", "0.5819054", "0.5798533", "0.5795787", "0.57775956", "0.5768123", "0.5767553", "0.56946653", "0.56864625", "0.5686157", "0.56280106", "0.5625474"...
0.70960224
0
Tells the Server to release the bootstrapping process that fires leader and follower agents. Mandatory when mapping only required events like: duties::capture/release. Not required when mapping all events, which will release the bootstrap by itself.
public EventMapper done() { initConsumerDelegate(); ((ConsumerDelegate)getDepPlaceholder().getDelegate()).setExplicitlyReady(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void postBootSetup() {\n }", "public EventMapper onPalletRelease(final Consumer<Set<Pallet>> consumer) {\n\t\tinitConsumerDelegate();\n\t\t((ConsumerDelegate)getDepPlaceholder().getDelegate()).putConsumerPallet(consumer, MappingEvent.releasePallet);\n\t\treturn this;\n\t}", "pu...
[ "0.60370797", "0.5324785", "0.5153314", "0.5147544", "0.5147538", "0.5128502", "0.51260537", "0.5124746", "0.5051611", "0.5002657", "0.4993519", "0.49900705", "0.498848", "0.49796", "0.48926005", "0.48780498", "0.48621383", "0.4860568", "0.48457855", "0.48444062", "0.48290417...
0.0
-1
exclude the namespace imports and definitions, taking care of those elsewhere
public String readFileExcludeNamespace(final String filePath) throws IOException { final XQuery.Predicate<String> excludeNamespaceLine = new XQuery.Predicate<String>() { @Override boolean eval(final String line) { if (!line.contains("namespace")) { return true; } String str = line.replace(" ", ""); // using startsWith in case these words appear in the code elsewhere // e.g. strings, comments, xml tags return !(str.startsWith("modulenamespace") || str.startsWith("importmodulenamespace") || str.startsWith("declarenamespace")); } }; return readFile(filePath, excludeNamespaceLine); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static void ignore() {\n }", "private XIncluder() {}", "public void remDefinedInModule(){\n ((MvwDefinitionDMO) core).remDefinedInModule();\n }", "public void clear()\n {\n normalImports.clear();\n wildcardImports.clear();\n }", "public void importGraphUndirective() {\n ...
[ "0.63323003", "0.62314934", "0.6008611", "0.59806275", "0.58704376", "0.5817084", "0.5761653", "0.5752839", "0.570955", "0.5616154", "0.5575982", "0.55620974", "0.55525887", "0.5541127", "0.5540083", "0.5417441", "0.5332036", "0.5303911", "0.5282705", "0.52733356", "0.5262712...
0.5544405
13
Gets the value of the bonusAwarded property.
public double getBonusAwarded() { return bonusAwarded; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setBonusAwarded(double value) {\n this.bonusAwarded = value;\n }", "public java.lang.Integer getAward () {\n\t\treturn award;\n\t}", "public int getBonus() {\n\t\treturn bonus;\n\t}", "@Override\n\tpublic BonusInterface getBonus() {\n\t\treturn bonus;\n\t}", "public int getBonusMoney(...
[ "0.7189342", "0.70261604", "0.6880821", "0.65786815", "0.64730996", "0.6471048", "0.6470825", "0.6464037", "0.6434611", "0.6427276", "0.6403603", "0.6389521", "0.6353184", "0.6352098", "0.634794", "0.6288218", "0.6272559", "0.6249184", "0.62306815", "0.62214375", "0.6187376",...
0.82670313
0
Sets the value of the bonusAwarded property.
public void setBonusAwarded(double value) { this.bonusAwarded = value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getBonusAwarded() {\n return bonusAwarded;\n }", "public void setDiscountAwarded(double value) {\n this.discountAwarded = value;\n }", "public void setAward (java.lang.Integer award) {\n\t\tthis.award = award;\n\t}", "public synchronized void attributeReward(int reward) {\n ...
[ "0.66820145", "0.66467386", "0.65807694", "0.6580285", "0.6521594", "0.6315043", "0.6110546", "0.6038631", "0.60240316", "0.6005822", "0.58817124", "0.578412", "0.57101166", "0.5701424", "0.5679258", "0.5656165", "0.5553217", "0.55311877", "0.55192167", "0.55033857", "0.54906...
0.80903953
0
Gets the value of the discountAwarded property.
public double getDiscountAwarded() { return discountAwarded; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setDiscountAwarded(double value) {\n this.discountAwarded = value;\n }", "public double getBonusAwarded() {\n return bonusAwarded;\n }", "public java.lang.Integer getAward () {\n\t\treturn award;\n\t}", "public double getDiscountedAmt() {\n\t\t\treturn discountedAmt;\r\n\t\t}"...
[ "0.74287915", "0.720102", "0.6478244", "0.64147425", "0.6413798", "0.63921577", "0.63708216", "0.635931", "0.63301885", "0.63034314", "0.6255045", "0.62100613", "0.61481243", "0.6140662", "0.61160797", "0.60599136", "0.60250854", "0.5994084", "0.5901607", "0.58884233", "0.580...
0.8248119
0
Sets the value of the discountAwarded property.
public void setDiscountAwarded(double value) { this.discountAwarded = value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setBonusAwarded(double value) {\n this.bonusAwarded = value;\n }", "public double getDiscountAwarded() {\n return discountAwarded;\n }", "public void setAward (java.lang.Integer award) {\n\t\tthis.award = award;\n\t}", "public synchronized void attributeReward(int reward) {\n ...
[ "0.6855145", "0.6849902", "0.60852325", "0.6073895", "0.57727367", "0.5770046", "0.568689", "0.5602707", "0.558396", "0.556591", "0.5560585", "0.5551131", "0.548662", "0.5468516", "0.5465939", "0.53499764", "0.5330526", "0.53012085", "0.51290184", "0.5090893", "0.50801784", ...
0.82557416
0
Gets the value of the conversionRate property.
public double getConversionRate() { return conversionRate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getRate() {\r\n return Integer.parseInt(RATES[Rate]);\r\n }", "public Integer getRate() {\r\n return rate;\r\n }", "public Double getConversionValue() {\r\n return conversionValue;\r\n }", "public float getRate() {\n\t\treturn rate;\n\t}", "public void setConversionRate(d...
[ "0.7043299", "0.7026188", "0.7005636", "0.6917527", "0.6871059", "0.68352896", "0.68225026", "0.6798246", "0.67819804", "0.67491513", "0.67491513", "0.66975176", "0.6681482", "0.6609658", "0.66031533", "0.6527552", "0.6443786", "0.64147377", "0.6411468", "0.63642865", "0.6364...
0.84872234
0
Sets the value of the conversionRate property.
public void setConversionRate(double value) { this.conversionRate = value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized void setUsdConversionRate(Currency currency, BigDecimal rate) {\n usdConversionRateMap.put(currency, rate);\n }", "public void setRate(Integer rate) {\r\n this.rate = rate;\r\n }", "public void setRate(int rate) { this.rate = rate; }", "public void setRate(float rate) ...
[ "0.68594456", "0.66279805", "0.6531446", "0.6503812", "0.6455682", "0.6443444", "0.6401868", "0.63744664", "0.6240754", "0.60993826", "0.6069227", "0.6061244", "0.60292524", "0.6019701", "0.5924941", "0.59094536", "0.5847987", "0.5841176", "0.5841024", "0.5824032", "0.5804997...
0.80651975
0
Gets the value of the oldLoyaltyScale property.
public int getOldLoyaltyScale() { return oldLoyaltyScale; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getNewLoyaltyScale() {\n return newLoyaltyScale;\n }", "public void setOldLoyaltyScale(int value) {\n this.oldLoyaltyScale = value;\n }", "public void setNewLoyaltyScale(int value) {\n this.newLoyaltyScale = value;\n }", "public String getCurrentScale() {\n ret...
[ "0.82466954", "0.8221902", "0.734525", "0.6749215", "0.6527093", "0.6456007", "0.63700527", "0.6365262", "0.63199705", "0.6273474", "0.6273474", "0.6247217", "0.62398344", "0.62324786", "0.62319994", "0.62271667", "0.6226673", "0.6218223", "0.6212738", "0.61825687", "0.616790...
0.89263344
0
Sets the value of the oldLoyaltyScale property.
public void setOldLoyaltyScale(int value) { this.oldLoyaltyScale = value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setNewLoyaltyScale(int value) {\n this.newLoyaltyScale = value;\n }", "public int getOldLoyaltyScale() {\n return oldLoyaltyScale;\n }", "public int getNewLoyaltyScale() {\n return newLoyaltyScale;\n }", "public void setOldPrice(Money oldPrice) {\n\t\tif (oldPrice ==...
[ "0.7902694", "0.74899864", "0.7215144", "0.61454725", "0.6131452", "0.6101974", "0.58649105", "0.58496666", "0.5823518", "0.5803876", "0.57902133", "0.57153773", "0.5707951", "0.5698236", "0.5697748", "0.5665505", "0.5665179", "0.56464356", "0.56206894", "0.56098497", "0.5598...
0.88105875
0
Gets the value of the newLoyaltyScale property.
public int getNewLoyaltyScale() { return newLoyaltyScale; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getOldLoyaltyScale() {\n return oldLoyaltyScale;\n }", "public void setNewLoyaltyScale(int value) {\n this.newLoyaltyScale = value;\n }", "public void setOldLoyaltyScale(int value) {\n this.oldLoyaltyScale = value;\n }", "public String getCurrentScale() {\n ret...
[ "0.8479017", "0.80772203", "0.7710645", "0.6678086", "0.6604531", "0.63344806", "0.6331329", "0.63198715", "0.63155013", "0.63155013", "0.6306771", "0.629518", "0.62938607", "0.6276469", "0.62639344", "0.6260233", "0.62556857", "0.62116325", "0.6201393", "0.6196552", "0.61715...
0.8607207
0
Sets the value of the newLoyaltyScale property.
public void setNewLoyaltyScale(int value) { this.newLoyaltyScale = value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setOldLoyaltyScale(int value) {\n this.oldLoyaltyScale = value;\n }", "public int getNewLoyaltyScale() {\n return newLoyaltyScale;\n }", "public int getOldLoyaltyScale() {\n return oldLoyaltyScale;\n }", "public void setGlobalScale(float newScale) {\n scale(ne...
[ "0.8318336", "0.7547538", "0.70224804", "0.6369118", "0.6098569", "0.60595775", "0.5982766", "0.59477067", "0.59461105", "0.5945656", "0.5907373", "0.5907044", "0.5896521", "0.58373916", "0.582233", "0.5819745", "0.58114874", "0.5809969", "0.57994926", "0.57982635", "0.575295...
0.8655176
0
Assert property has specified value
public void assertValue(T value) { Requirements.notNull(value, "value"); Assert.assertEquals(getValue(), value, this + " value"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasValue(PropertyValue<?, ?> value);", "boolean hasProperty();", "boolean hasProperty();", "boolean hasProperty();", "boolean containsProperty(String name);", "boolean hasSetProperty();", "public void checkAssert(final Consumer<T> property);", "Object getPropertyexists();", "<T> boolean con...
[ "0.6896201", "0.674073", "0.674073", "0.674073", "0.66229343", "0.66039336", "0.6597842", "0.6575507", "0.6540855", "0.64439154", "0.6405773", "0.6378083", "0.6334482", "0.6328575", "0.6318928", "0.63108945", "0.6304612", "0.628304", "0.6251629", "0.62435055", "0.61996865", ...
0.56112754
84
Wait property has specified value
public void waitValue(TimeSpan timeout, final T value) { Requirements.notNull(timeout, "timeout"); Requirements.notNull(value, "value"); new Wait() { @Override public boolean until() { return value.equals(getValue()); } }.wait(TEST_EXPECTED_VALUE.getValue(this, value), timeout.toMilliseconds()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean mustWait() {\n return mustWait;\n }", "public boolean operationWaiting(){\n\t\tif (var2Set) return true; else return false;\n\t}", "boolean hasWaitTime();", "protected int getWait() \t\t\t\t{\treturn wait;\t\t}", "public boolean isBIsWait() {\n return bIsWait;\n }", "bo...
[ "0.69700515", "0.6915354", "0.6537824", "0.64871776", "0.6365594", "0.634979", "0.6293039", "0.6249649", "0.6169256", "0.6166861", "0.61498344", "0.6099731", "0.6066701", "0.60214406", "0.6021421", "0.5970987", "0.5951053", "0.59305686", "0.59275097", "0.5913248", "0.5894696"...
0.5901684
20
Wait property doesn't have specified value
public void waitNoValue(TimeSpan timeout, final T value) { Requirements.notNull(timeout, "timeout"); Requirements.notNull(value, "value"); new Wait() { @Override public boolean until() { return !value.equals(getValue()); } }.wait(TEST_UNEXPECTED_VALUE.getValue(this, value), timeout.toMilliseconds()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean mustWait() {\n return mustWait;\n }", "@Override\n public boolean waitToProceed() {\n return false;\n }", "protected int getWait() \t\t\t\t{\treturn wait;\t\t}", "public boolean operationWaiting(){\n\t\tif (var2Set) return true; else return false;\n\t}", "public boolea...
[ "0.7254081", "0.70297766", "0.6888103", "0.669744", "0.6547964", "0.65223736", "0.65188414", "0.6516369", "0.64984596", "0.6381118", "0.635784", "0.6357778", "0.6341742", "0.6341456", "0.63351595", "0.63123924", "0.6279598", "0.6254275", "0.62319016", "0.621772", "0.62142754"...
0.59723014
36
/ JADX INFO: super call moved to the top of the method (can break code semantics)
KMutableProperty2Impl$_setter$1(KMutableProperty2Impl kMutableProperty2Impl) { super(0); this.this$0 = kMutableProperty2Impl; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void method_6349() {\r\n super.method_6349();\r\n }", "public void method_1449() {\r\n super.method_1449();\r\n }", "public void method_1449() {\r\n super.method_1449();\r\n }", "public void method_1449() {\r\n super.method_1449();\r\n }", "protected void method_3848() {\...
[ "0.7415376", "0.7120564", "0.7120564", "0.7120564", "0.71153504", "0.70223135", "0.7006699", "0.6959695", "0.69354844", "0.68295795", "0.6789057", "0.6759874", "0.6727165", "0.6727165", "0.6680012", "0.6670413", "0.6636899", "0.66286534", "0.6619911", "0.6605483", "0.6603786"...
0.0
-1
TODO: Autogenerated Javadoc The Interface CountryService.
public interface CountryService { /** * Gets the Country by id. * * @param id the id * @return the country by id * @throws Exception */ public Country getById(Integer id) throws Exception; /** * Gets all the Countries. * * @return all the Countries * @throws Exception */ public List<Country> getAll() throws Exception; /** * Insert. * * @param name the name * @return the country * @throws TransactionException the transaction exception */ public Country insert(String name) throws TransactionException; /** * Update. * * @param country the country * @return Country country * @throws TransactionException the transaction exception */ public Country update(Country country) throws TransactionException; /** * Delete. * * @param country the country * @throws TransactionException the transaction exception */ public void delete(Country country) throws TransactionException; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface CountryService {\n\t\n\t/**\n\t * Gets the countries.\n\t *\n\t * @return the countries\n\t */\n\tpublic List<Country> getCountries();\n\t\n\t/**\n\t * Find by id.\n\t *\n\t * @param id the id\n\t * @return the country\n\t */\n\tpublic Country findById(Long id);\n\t\n\t/**\n\t * Find by name.\n\t ...
[ "0.784916", "0.7317964", "0.7177536", "0.7148425", "0.70781684", "0.70479226", "0.70281327", "0.70254683", "0.7013639", "0.70049626", "0.70049626", "0.70049626", "0.70049626", "0.70049626", "0.70049626", "0.69923306", "0.69632196", "0.6962165", "0.6946107", "0.69164056", "0.6...
0.7436085
1
Gets the Country by id.
public Country getById(Integer id) throws Exception;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public Country findOne(Integer id) {\n\n return countryRepository.findById(id).get();\n }", "@Override\n @Transactional\n public Country getCountry(long id) {\n Optional<Country> result = countryRepository.findById(id);\n Country country = null;\n if (result.is...
[ "0.80695206", "0.78367615", "0.7377091", "0.7371756", "0.73447317", "0.7073305", "0.7058668", "0.7020768", "0.69746816", "0.6964239", "0.6757445", "0.66647655", "0.65605015", "0.65192646", "0.64766926", "0.6416109", "0.6408302", "0.6397952", "0.6394955", "0.63821036", "0.6360...
0.8224409
0
Gets all the Countries.
public List<Country> getAll() throws Exception;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic List<String> findAllCountries() {\n\t\treturn theCountryRepository.findAllCountries();\n\t}", "@Override\n\tpublic List<Country> getCountries() {\n\t\tCountryRootObject countryRootObject = restTemplate.getForObject(urlForDatabaseCountries(), CountryRootObject.class);\n\n\t\treturn countryRoot...
[ "0.7794049", "0.773989", "0.73732823", "0.73251677", "0.7267525", "0.7219194", "0.7084281", "0.70362276", "0.7032681", "0.6961364", "0.6874716", "0.6835743", "0.6675571", "0.6658932", "0.66341555", "0.65624464", "0.6542122", "0.6537821", "0.6523227", "0.6457587", "0.64469457"...
0.7614647
2
TODO Autogenerated method stub
@Override public boolean isTokenValid(String token) { LoginToken loginToken = getLoginTokenByToken(token); if (loginToken != null) { Date createTime = loginToken.getCreateTime(); Date current = new Date(); System.out.println("过了:"+Math.abs(current.getTime() - createTime.getTime())); System.out.println("过了:"+Math.abs(current.getTime() - createTime.getTime()) / (1000 *60)); if (Math.abs(current.getTime() - createTime.getTime()) / (1000 * 60) >= 60) { loginToken.setStatus(Constant.LOGIN_TOKEN_STATUS_INVALID); loginTokenMapper.updateByPrimaryKey(loginToken); return false; } else { loginToken.setCreateTime(current); loginTokenMapper.updateByPrimaryKey(loginToken); return true; } }else { return false; } }
{ "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: android.support.v4.c.a.q
public interface C0193q { Drawable m1610a(); void m1611a(Drawable drawable); void setTint(int i); void setTintList(ColorStateList colorStateList); void setTintMode(Mode mode); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static com.google.android.gms.internal.zzpc zza(android.support.p000v4.app.FragmentActivity r3) {\n /*\n r0 = zzaoq;\n r0 = r0.get(r3);\n r0 = (java.lang.ref.WeakReference) r0;\n if (r0 == 0) goto L_0x0013;\n L_0x000a:\n r0 = r0.get();\n r0 = (com.google.a...
[ "0.59098464", "0.585226", "0.5803511", "0.580295", "0.5729694", "0.561756", "0.561217", "0.5603723", "0.553495", "0.55208534", "0.5516432", "0.5448219", "0.5446349", "0.54140234", "0.5386225", "0.53502005", "0.52966493", "0.52911633", "0.5278752", "0.5266429", "0.5256432", ...
0.0
-1
Method for Verified Lables under Client Tab ==================================================================================
public void goScriptBuilderTabValidation() throws InterruptedException { driver.findElement(scriptsTab).click(); Thread.sleep(10000); Assert.assertTrue(driver.findElement(goScriptBuilderScriptslabel).isDisplayed()); log.debug("Verified that 'Go Script Builder Scripts' label appeared on left side of under Script tab"); Assert.assertTrue(driver.findElement(goScriptBuilderScriptslabel).isEnabled()); log.debug("Verified that 'Go Script Builder Scripts' label enabled on left side of under Script tab"); Assert.assertEquals(driver.findElement(goScriptBuilderScriptslabel).getText().contains("Go Script Builder Scripts"), true); log.debug("Verified that 'Go Script Builder Scripts' Text validated on left side under Script Tab"); Assert.assertTrue(driver.findElement(goScriptBuilderScriptsCount).isDisplayed()); log.debug("Verified that 'Script count' dispalyed left side under Script tab"); Assert.assertTrue(driver.findElement(goScriptBuilderScriptsCount).isEnabled()); log.debug("Verified that 'Script count' enabled left side under Script tab"); Assert.assertTrue(driver.findElement(filterByNameGSB).isDisplayed()); log.debug("Verified that 'Filter by name' filed appeared on left side of under Script tab"); Assert.assertTrue(driver.findElement(filterByNameGSB).isEnabled()); log.debug("Verified that 'Filter by name' filed enabled on left side of under Script tab"); if (driver.findElements(pleaseSelectlabelGSB).isEmpty()) { log.debug("Verified that 'Please select a Call Master Script from the left. ' label appeared on under Go Script builder tab"); log.debug("Verified that 'Please select a Call Master Script from the left. ' label enabled under Go Script builder tab"); log.debug("Verified that 'Please select a Call Master Script from the left.' Text validated under Go Script Builder"); }else { log.debug("Verified that 'Please select a script ' label appeared on under Go Script builder tab"); log.debug("Verified that 'Please select a script ' label enabled under Go Script builder tab"); log.debug("Verified that 'Please select a script or' Text validated under Go Script Builder"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void printClientList() {\n uiService.underDevelopment();\n }", "public void showNewLoanTab(Client client) {\n loanTabModel.getNewLoanRequestPanel().setVisible(true);\n //this.revalidate();\n //this.repaint();\n }", "@Override\n\tpublic boolean estPleine() {\n\t\treturn ...
[ "0.5772033", "0.570928", "0.5264664", "0.5167911", "0.51282173", "0.5090385", "0.5038327", "0.50141215", "0.49903372", "0.49834663", "0.49376962", "0.49280724", "0.48934293", "0.4859709", "0.48561117", "0.48503628", "0.48432708", "0.48247084", "0.48160404", "0.4810047", "0.48...
0.0
-1
DiscriminativeLearner + DiscriminativeOracle + Samples
public static <T> T learnDD(DiscriminativeOracle oracle, DiscriminativeLearner<T> learner, Iterable<String> samples) { long time = System.currentTimeMillis(); for(String query : samples) { learner.update(query, oracle.query(query)); } T t = learner.getModel(); Log.info("LEARNDD TIME: " + (System.currentTimeMillis() - time)); return t; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract void initialize(List<Sample> samples, QueryGenerator queryGenerator);", "@Test\n public void testRun() {\n System.out.println(\"run\");\n FluorescenceImporter importer = null;\n try {\n FluorescenceFixture tf = new FluorescenceFixture();\n im...
[ "0.596132", "0.59104633", "0.58009225", "0.57836664", "0.5766458", "0.5729434", "0.57189023", "0.57059115", "0.5667132", "0.56449383", "0.5643181", "0.5631013", "0.5629635", "0.55468696", "0.5527917", "0.54962003", "0.5488519", "0.5479328", "0.5430268", "0.54282844", "0.54261...
0.6646067
0
object of the Book class
public static void main(String[] args) { Book book0 = new Book("Ulysses", "James Joyce", 732); Book book0copy2 = new Book("Ulysses", "James Joyce", 732); Book book1 = new Book("Ender's Game", "Orson S. Card", 324); Book book3; //just creates unassigned reference Book[] lotr = new Book[3]; lotr[0] = new Book("The Fellowship of the Ring", "J.R.R. Tolkien", 432); lotr[1] = new Book("The Two Towers", "J.R.R. Tolkien", 322); lotr[2] = new Book("The Return of the King", "J.R.R. Tolkien", 490); book0.ripOutPage(); System.out.print(book0); //calls toString() object method book1.setAuthor("Orson Scott Card"); for(Book b : lotr) { System.out.print(b); } if (book0.isLong()) { System.out.println(book0.getTitle() + " is a long book."); } else { System.out.println(book0.getTitle() + " is a short book."); } System.out.printf("The title of %s by %s is %d characters long.%n", book0.getTitle(), book0.getAuthor(), book0.getTitleLength()); System.out.println(book0.equals(book0copy2)); System.out.println(book0.equals(book1)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Book() {\n this.bookName = \"Five Point Someone\";\n this.bookAuthorName = \"Chetan Bhagat\";\n this.bookIsbnNumber = \"9788129104595\";\n\n }", "public Book() {}", "public Book getBook() {\n return book;\n }", "public Book() {\n }", "Book createBook();", "publ...
[ "0.7823456", "0.76295197", "0.76103544", "0.75605655", "0.75285685", "0.7524863", "0.7489922", "0.7374364", "0.73086405", "0.7178503", "0.71346146", "0.7086305", "0.702855", "0.69756716", "0.6952173", "0.6930344", "0.68683016", "0.6836962", "0.68356824", "0.68017465", "0.6793...
0.0
-1
Gamers in the server / Hashmap incase we want to convert to multiple arenas
public JoinListener (MainHG mainclass){ plugin = mainclass; mainclass.getServer().getPluginManager().registerEvents(this, mainclass); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static Map<String, String> m37368a(C12824g gVar) {\n HashMap hashMap = new HashMap();\n if (!TextUtils.isEmpty(gVar.f33943a)) {\n hashMap.put(\"email\", C6319n.m19597d(gVar.f33943a));\n }\n hashMap.put(\"type\", C6319n.m19597d(String.valueOf(gVar.f33945c)));\n ...
[ "0.5740712", "0.5517579", "0.54501086", "0.54227483", "0.5417205", "0.5381523", "0.533372", "0.5312509", "0.5301446", "0.5284516", "0.5252046", "0.5242357", "0.51642334", "0.5134536", "0.51221883", "0.5103933", "0.51003623", "0.50982475", "0.50971764", "0.5083324", "0.5074522...
0.0
-1
This event is run, once a user joins the server
@EventHandler public void OnPlayerJoin (PlayerJoinEvent e) throws SQLException{ Player p = e.getPlayer(); e.setJoinMessage(null); JoinedServer(p); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void memberJoined(ClusterEvent e) {}", "@SuppressWarnings(\"deprecation\")\n @EventHandler(ignoreCancelled = true, priority = EventPriority.HIGHEST)\n\tvoid onPlayerJoin(PlayerJoinEvent event)\n\t{\n\t\tPlayer player = event.getPlayer();\n\t\tUUID playerID = player.getUniqueId();\n\t\t\n\t\t//note logi...
[ "0.71785533", "0.71323377", "0.6913888", "0.68741554", "0.6821464", "0.6813538", "0.67813975", "0.66858596", "0.66690874", "0.66164476", "0.6607155", "0.6590162", "0.6571268", "0.6566966", "0.6526266", "0.64791125", "0.64421725", "0.6435432", "0.64122105", "0.63761777", "0.63...
0.6573773
12
return Math.sin(x)Math.PI; return 5;
public static double getFuncValue(double x){ return Math.sin(x); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static double f(double x){\n \treturn Math.sin(x);\r\n }", "public static double function(double x) {\n double val = (Math.sin(x * 1) * 0.4 + (Math.sin(x * 2) * 0.4)) + (Math.sin(x * 5) * 0.2);\n //return (Math.cos(x)*0.5)+0.5;\n //return (Math.cos(x*5)*0.5)+0.5;\n //if (val<0) ...
[ "0.80989355", "0.769157", "0.759997", "0.7360127", "0.7210822", "0.7205865", "0.7174051", "0.7057089", "0.6956423", "0.69304943", "0.67323446", "0.66263235", "0.6575415", "0.650517", "0.64938885", "0.6361703", "0.63544446", "0.6328546", "0.63118774", "0.6302476", "0.62841225"...
0.72814995
4
Returns number messages in current input stream. This call is nonblocking.
public int peekMessages() throws IOException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int numIncoming() {\r\n int result = incoming.size();\r\n return result;\r\n }", "public AsyncResult<Integer> requestNumberOfMessages() {\r\n ServiceDiscoveryManager serviceDiscoveryManager = xmppSession.getManager(ServiceDiscoveryManager.class);\r\n return serviceDiscoveryM...
[ "0.7035226", "0.691135", "0.68320656", "0.68320656", "0.68320656", "0.675446", "0.675446", "0.672587", "0.670427", "0.66167074", "0.6574153", "0.6547297", "0.64820176", "0.64820176", "0.646807", "0.6436135", "0.6424948", "0.6364689", "0.63488245", "0.63400394", "0.63400394", ...
0.67342407
7
Return one message from input stream. This call is blocking until at least 1 message exists.
public ITCMessage readMessage() throws IOException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public FermatMessage readNextMessage() {\n if(!pendingIncomingMessages.isEmpty()) {\n\n /*\n * Return the next message\n */\n return pendingIncomingMessages.iterator().next();\n\n }else {\n\n //TODO: CREATE A APPROPRIATE EXCEPTION\n ...
[ "0.6922474", "0.65259194", "0.6476038", "0.6401475", "0.63977575", "0.6282366", "0.6256769", "0.61086607", "0.6105827", "0.6101419", "0.5965035", "0.59532785", "0.5928513", "0.5894726", "0.5871433", "0.58484256", "0.5794656", "0.57521456", "0.57226413", "0.5710192", "0.568997...
0.5338512
46
Return messages from input stream. This call is blocking until at least 1 message exists. Number of messages returned may be less than requested.
public ITCMessage[] readMessages(int inNumberMessages) throws IOException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int peekMessages() throws IOException;", "ReadResponseMessage fetchAllMessages();", "public List<String> getResult()\n {\n while (!readComplete)\n {\n try\n {\n Thread.sleep(1000);\n }\n catch (InterruptedException ex)\n ...
[ "0.6320825", "0.62358606", "0.5985901", "0.59367394", "0.57705957", "0.5547784", "0.55423164", "0.5533033", "0.55101", "0.54956263", "0.5488847", "0.54818606", "0.5470032", "0.5469898", "0.54565275", "0.5453649", "0.54456323", "0.5438014", "0.54304403", "0.54120034", "0.54097...
0.6849316
0
Returns true if the stream is open.
public boolean isOpen();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isOpen()\r\n\t{\r\n\t return (fd != null);\r\n\t}", "public boolean isOpened()\n {\n \n boolean retVal = isOpened_0(nativeObj);\n \n return retVal;\n }", "boolean isOpened() throws Exception;", "public boolean isOpened() {\r\n return opened != null;...
[ "0.7955413", "0.78877723", "0.78105587", "0.7768604", "0.74590474", "0.7446673", "0.7398729", "0.7393008", "0.7384628", "0.73813695", "0.7377843", "0.73684233", "0.73559785", "0.73382604", "0.72087634", "0.70971483", "0.70460594", "0.7045904", "0.7045462", "0.703537", "0.7027...
0.65546495
46
Return messages from input stream. This call is blocking until at least 1 message exists. Number of messages returned may be less than requested. It is up to the caller to parse the byte array for individual messages. Only whole messages are returned in the byte stream.
public byte[] readBytes(int inNumberMessages) throws IOException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ITCMessage[] readMessages(int inNumberMessages) throws IOException;", "ReadResponseMessage fetchAllMessages();", "public byte[] readBytes(int inNumberMessages, long timeoutMs) throws IOException, TimeoutException;", "private common.messages.KVMessage receiveMessage() throws IOException {\r\n\t\t\r\n\t...
[ "0.7096089", "0.63669795", "0.60671085", "0.60451096", "0.5956101", "0.59490937", "0.58848166", "0.5803452", "0.57419926", "0.5715593", "0.56360763", "0.56277263", "0.55421513", "0.55282587", "0.5523958", "0.55233717", "0.55051184", "0.5457833", "0.5451947", "0.5446347", "0.5...
0.65506864
1
Return messages from input stream. This call is blocking until at least 1 message exists. Number of messages returned may be less than requested. It is up to the caller to parse the byte array for individual messages. Only whole messages are returned in the byte stream.
public byte[] readBytes(int inNumberMessages, int[] outNumberMessages) throws IOException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ITCMessage[] readMessages(int inNumberMessages) throws IOException;", "public byte[] readBytes(int inNumberMessages) throws IOException;", "ReadResponseMessage fetchAllMessages();", "public byte[] readBytes(int inNumberMessages, long timeoutMs) throws IOException, TimeoutException;", "private common...
[ "0.7095924", "0.6551664", "0.6367767", "0.6068183", "0.60471994", "0.5949116", "0.588721", "0.5804798", "0.5741641", "0.5715879", "0.563594", "0.5629948", "0.55423754", "0.5527419", "0.5526319", "0.552293", "0.5506361", "0.5457359", "0.5451465", "0.5446399", "0.54335934", "...
0.59569764
5
Return messages from input stream. This call is blocking until at least 1 message exists. Number of messages returned may be less than requested. It is up to the caller to parse the byte array for individual messages. Only whole messages are returned in the byte stream.
public byte[] readBytes(int inNumberMessages, long timeoutMs) throws IOException, TimeoutException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ITCMessage[] readMessages(int inNumberMessages) throws IOException;", "public byte[] readBytes(int inNumberMessages) throws IOException;", "ReadResponseMessage fetchAllMessages();", "private common.messages.KVMessage receiveMessage() throws IOException {\r\n\t\t\r\n\t\tint index = 0;\r\n\t\tbyte[] msg...
[ "0.7096194", "0.6551148", "0.63679063", "0.6045812", "0.59568304", "0.5949653", "0.58847594", "0.58037263", "0.5743045", "0.57156", "0.5636893", "0.56291896", "0.5542852", "0.55286634", "0.55265355", "0.5523987", "0.5505222", "0.5457825", "0.5451876", "0.5447284", "0.5434771"...
0.6067822
3
compare from date to date
public boolean dateCompartFromTo(String[] sdate, String[] edate) { SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd"); Date startdate = null; Date enddate = null; try { // 시작일 종료일 날짜 비교 for (int idx = 0; idx < sdate.length; idx++) { startdate = dateFormat.parse(sdate[idx]); enddate = dateFormat.parse(edate[idx]); if (startdate.compareTo(enddate) >= 0) { return false; } } } catch (ParseException e) { e.printStackTrace(); return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean checkTimePeriod(String from, String to) throws ParseException{\r\n\t\r\n\tDateFormat df = new SimpleDateFormat (\"yyyy-MM-dd\");\r\n boolean b = true;\r\n // Get Date 1\r\n Date d1 = df.parse(from);\r\n\r\n // Get Date 2\r\n Date d2 = df.parse(to);\r\n\r\n //String relati...
[ "0.732457", "0.69704664", "0.6828056", "0.67833066", "0.6781768", "0.6680812", "0.66069555", "0.66024923", "0.64779586", "0.64570844", "0.6432603", "0.64087284", "0.6378502", "0.6333235", "0.6330219", "0.6317426", "0.6317426", "0.6311401", "0.62914664", "0.6288995", "0.622489...
0.6712815
5
compare from date to current date
public boolean dateCompareCurr(String[] inputdate){ SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd"); Date comparedate = null; // 입력받은 날짜 try { Date curdate = dateFormat.parse(dateFormat.format(new Date())); // 현재날짜 for (int idx = 0; idx < inputdate.length; idx++) { comparedate = dateFormat.parse(inputdate[idx]); if(comparedate.compareTo(curdate) >= 0){ return false; } } } catch (Exception e) { return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean checkDate(){\n Calendar c = Calendar.getInstance();\n Date currentDate = new Date(c.get(Calendar.DAY_OF_MONTH),c.get(Calendar.MONTH)+1, c.get(Calendar.YEAR));\n return (isEqualOther(currentDate) || !isEarlyThanOther(currentDate));\n\n }", "public boolean checkCurrentDate()\...
[ "0.7451154", "0.67878145", "0.6631154", "0.6611286", "0.6504437", "0.6424516", "0.6416394", "0.6407835", "0.6344287", "0.63224787", "0.62654436", "0.6232655", "0.62124467", "0.6137893", "0.61363536", "0.61351603", "0.6115561", "0.6018039", "0.60068524", "0.5984196", "0.598107...
0.6202842
13
phone Number length check 3
public boolean phoneLengthThree(String chkstr){ chkstr = chkstr.trim().replaceAll(" ", ""); if(chkstr.length() != 3){ return false; }else{ return true; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean phoneLengthThreeOrFour(String chkstr){\r\n\t\tchkstr = chkstr.trim().replaceAll(\" \", \"\");\r\n\t\tif(chkstr.length() > 4 || chkstr.length() < 3){\r\n\t\t\treturn false;\r\n\t\t}else{\r\n\t\t\treturn true;\r\n\t\t}\r\n\t}", "private boolean isPhoneValid(String password) {\n return passwor...
[ "0.73499644", "0.73368925", "0.7170869", "0.69847244", "0.68850183", "0.68056583", "0.6693652", "0.6672511", "0.6671902", "0.6649908", "0.66456497", "0.661764", "0.6553653", "0.6548859", "0.6504745", "0.6487433", "0.6483806", "0.6430987", "0.64285904", "0.642634", "0.6409998"...
0.7512577
0
phone Number length check 3 or 4
public boolean phoneLengthThreeOrFour(String chkstr){ chkstr = chkstr.trim().replaceAll(" ", ""); if(chkstr.length() > 4 || chkstr.length() < 3){ return false; }else{ return true; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean phoneLengthThree(String chkstr){\r\n\t\tchkstr = chkstr.trim().replaceAll(\" \", \"\");\r\n\t\tif(chkstr.length() != 3){\r\n\t\t\treturn false;\r\n\t\t}else{\r\n\t\t\treturn true;\r\n\t\t}\r\n\t}", "private boolean isPhoneValid(String password) {\n return password.length() == 10;\r\n }",...
[ "0.76974577", "0.7291201", "0.71827394", "0.7056603", "0.68677956", "0.6798", "0.6758233", "0.6757438", "0.6732272", "0.67064816", "0.66550857", "0.66099733", "0.6603889", "0.6566235", "0.656452", "0.6545651", "0.64956015", "0.6490161", "0.64809257", "0.64651793", "0.64289665...
0.79793805
0
Move players between the bench and starting positions
public static void editLineup(League theLeague, Team theTeam, Scanner keyboard) { System.out.println(""); System.out.println("---Edit Lineup---"); System.out.println(""); theTeam.teamToStringNum(); System.out.println(""); System.out.println("Select a player to move from the bench to starting or vice versa:"); System.out.println("0 - Return to Team Menu"); System.out.println("1-" + theTeam.getRoster().size() + " - Select a player to be dropped"); int lineupChoice = Input.validInt(0, theTeam.getRoster().size(), keyboard); if (lineupChoice == 0) { return; } Player thePlayer = theTeam.getTeamPlayer(lineupChoice - 1); if (thePlayer.getIsStarting()) { thePlayer.setBench(); return; } String position = thePlayer.getPosition(); if (theTeam.starterCount(position) < theLeague.getPositionMax(position)) { thePlayer.setStarting(); } else { System.out.println(""); System.out.println("***You have the maximum number of starters at the " + position + " position***"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void movePlayer(String nomeArq, int px, int py) {\r\n if(Main.player1.Vez()) {\r\n if(nomeArq.equals(Main.PLAYER_LEFT)){\r\n \tMain.player1.MudaLado(true,false);\r\n }\r\n else {\r\n \tMain.player1.MudaLado(false,true);\r\n } ...
[ "0.71120185", "0.69663996", "0.6926742", "0.6721636", "0.672035", "0.66952544", "0.6604439", "0.65974826", "0.6574272", "0.65542907", "0.65391463", "0.65328056", "0.6521029", "0.6520189", "0.6499302", "0.64905804", "0.64624184", "0.6452921", "0.6447353", "0.6441017", "0.64321...
0.0
-1
Remove a player from the team and make the player a free agent.
public static void dropPlayer(League theLeague, Team theTeam, Scanner keyboard) { System.out.println(""); System.out.println("---Drop Player---"); System.out.println(""); theTeam.teamToStringNum(); System.out.println(""); System.out.println(" 0 - Return to Team Menu"); System.out.println("1-" + theTeam.getRoster().size() + " - Select a player to be dropped"); int dropChoice = Input.validInt(0, theTeam.getRoster().size(), keyboard); if (dropChoice == 0) { return; } Player thePlayer = theTeam.getTeamPlayer(dropChoice - 1); thePlayer.setFreeAgent(); theLeague.playerList().set(thePlayer.getId(), thePlayer); theTeam.getRoster().remove(thePlayer); System.out.println(""); System.out.println("***You have dropped " + thePlayer.playerToString() + "***"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void removePlayer(Player player) {\r\n players.remove(player);\r\n player.damage(Double.MAX_VALUE);\r\n }", "@Override\n public void removePlayer(Player player){\n this.steadyPlayers.remove(player);\n }", "public void cmdRemovePlayer(User teller, Player player) {\n b...
[ "0.7484834", "0.74713916", "0.7205928", "0.7007985", "0.69635195", "0.6954035", "0.68358517", "0.6831881", "0.6826355", "0.680677", "0.6759897", "0.6755648", "0.6732189", "0.6720624", "0.66948706", "0.6690055", "0.66833806", "0.6678064", "0.6667804", "0.66225153", "0.6551566"...
0.6248317
42
Add a free agent player to the team.
public static void addPlayer(League theLeague, Team theTeam, Scanner keyboard) { System.out.println(""); System.out.println("---Add Player---"); theTeam.teamToString(); System.out.println(""); System.out.println("--Top 20 Free Agents--"); theLeague.getFreeAgents(20); int playerChoice; do { do { System.out.println(""); System.out.println(" 0 - Filter Free Agents by Position"); System.out.println(" -1 - View All Free Agents"); System.out.println("1-" + theLeague.playerList().size() + " - Select a Player"); playerChoice = Input.validInt(-1, theLeague.playerList().size(), keyboard); if (playerChoice == -1) { theLeague.getFreeAgents(); } if (playerChoice == 0) { System.out.println(""); System.out.println("Which position would you like to view?"); System.out.println("1 - QB"); System.out.println("2 - WR"); System.out.println("3 - RB"); System.out.println("4 - TE"); switch (Input.validInt(1, 4, keyboard)) { case 1: System.out.println("\n--Top 20 Free Agent QBs--\n"); theLeague.getFreeAgents(20, "QB"); break; case 2: System.out.println("\n--Top 20 Free Agent WRs--\n"); theLeague.getFreeAgents(20, "WR"); break; case 3: System.out.println("\n--Top 20 Free Agent RBs--\n"); theLeague.getFreeAgents(20, "RB"); break; case 4: System.out.println("\n--Top 20 Free Agent TEs--\n"); theLeague.getFreeAgents(20, "TE"); break; default: break; } } } while (playerChoice < 1); if (theLeague.playerList().get(playerChoice - 1).getIsOwned()) { System.out.println(""); System.out.println(theLeague.playerList().get(playerChoice - 1).playerToString() + " is not available"); } } while (theLeague.playerList().get(playerChoice - 1).getIsOwned()); Player thePlayer = theLeague.playerList().get(playerChoice - 1); thePlayer.setIsOwned(); theTeam.getRoster().add(thePlayer); System.out.println(""); System.out.println("***" + theTeam.getManagerName() + " has added " + thePlayer.playerToString() + "***"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addPlayer(FootballPlayer aPlayer) {\n\t\tplayers.add(aPlayer);\n\t}", "public void addNewPlayer(Player p) {\n\t\t// if the player don't exists in the highscore list the player is added\n\t\tif(p.getType() == PlayerType.Agent) {\n\t\t\tif(highscore.get(p.getName()) == null) {\n\t\t\t\thighscore.put(p....
[ "0.66642284", "0.6649115", "0.65903527", "0.6516365", "0.6433667", "0.6424812", "0.6401259", "0.6393299", "0.6333211", "0.63322127", "0.63108635", "0.6308096", "0.62872064", "0.628306", "0.62703", "0.6268276", "0.62651044", "0.6211004", "0.61498505", "0.6116625", "0.60838836"...
0.65358585
3
Send a message to another team offering to trade players.
public static void proposeTrade(League theLeague, Team theTeam, Scanner keyboard) { System.out.println(""); System.out.println("---Propose Trade---"); for (int x = 0; x < theLeague.getNumTeams(); x++) { if (!theLeague.getTeam(x).equals(theTeam)) { System.out.println(""); System.out.println("Team number: " + (x + 1)); theLeague.getTeam(x).teamManNameToString(); } } System.out.println(""); System.out.println("Select a team to view:"); int otherTeamChoice; do { otherTeamChoice = Input.validInt(1, theLeague.getNumTeams(), keyboard) - 1; } while (otherTeamChoice == theLeague.getTeamList().indexOf(theTeam)); Team otherTeam = theLeague.getTeam(otherTeamChoice); System.out.println(""); System.out.println("---Propose Trade---"); System.out.println(""); otherTeam.teamToString(); System.out.println(""); System.out.println("Would you like to propose a trade to this team?"); System.out.println("1 - Yes"); System.out.println("2 - No, Return to Team Menu"); if (Input.validInt(1, 2, keyboard) == 1) { System.out.println(""); System.out.println("Enter your trade offer (max 64 characters):"); System.out.println("0 - Return to Team Menu"); String proposal = Input.validString(32, keyboard); if (proposal.equals("0")) { return; } otherTeam.setProposedTrade(theTeam.getManagerName() + ": " + proposal); System.out.println(""); System.out.println("***You have proposed a trade:***"); System.out.println("To " + otherTeam.getManagerName() + ": " + proposal); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void sendJoiningPlayer() {\r\n Player p = nui.getPlayerOne();\r\n XferJoinPlayer xfer = new XferJoinPlayer(p);\r\n nui.notifyJoinConnected();\r\n networkPlayer.sendOutput(xfer);\r\n }", "public synchronized void sendPrivateMessageToPlayer(Player player, String message) {\n Sla...
[ "0.6433061", "0.6226637", "0.6100585", "0.609819", "0.597259", "0.5871757", "0.58389574", "0.57888126", "0.57832515", "0.5767773", "0.57337534", "0.5715345", "0.57113075", "0.57102245", "0.5683788", "0.5678401", "0.5655205", "0.5651827", "0.56398743", "0.5625781", "0.56192386...
0.62161183
2
Respond to a trade that has been offered by another manager.
public static void reviewTrade(League theLeague, Team theTeam, Scanner keyboard) { System.out.println(""); System.out.println("---Review Proposed Trade---"); System.out.println(theTeam.getProposedTrade()); System.out.println(""); System.out.println("Would you like to accept this trade?"); System.out.println("1 - Accept"); System.out.println("2 - Reject"); System.out.println("0 - Return to Team Menu"); switch (Input.validInt(0, 2, keyboard)) { case 1: theLeague.setPendingTrade("Accepted by " + theTeam.getManagerName() + " --- " + theTeam.getProposedTrade()); theTeam.setProposedTrade(""); System.out.println(""); System.out.println("***Trade Accepted - The Commissioner Must Process It.***"); break; case 2: theTeam.setProposedTrade(""); System.out.println(""); System.out.println("***Trade Rejected***"); break; case 0: break; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void respondToTrade(long tradeItemId, boolean response);", "@Override\r\n\tpublic void sendTradeOffer(TradeOffer offer) {\n\t\t\r\n\t}", "@Override\n protected void acceptTrade(Territory offerer, double demand, int typeDemand, double offer, int typeOffer){\n // An example for accepting a trade propos...
[ "0.6371902", "0.61862385", "0.60838675", "0.60825634", "0.5989605", "0.5759881", "0.5644717", "0.56406915", "0.5629104", "0.56280166", "0.55955064", "0.5595173", "0.5594075", "0.5593241", "0.55447936", "0.5508816", "0.54788315", "0.53746086", "0.53663296", "0.53373015", "0.53...
0.0
-1
Change the name of the team.
public static void editTeamName(League theLeague, Team theTeam, Scanner keyboard) { System.out.println(""); System.out.println("---Edit Team Name---"); System.out.println("Enter your new team name: (max 32 characters)"); System.out.println("0 - Return to Team Menu"); String teamName; do { teamName = Input.validString(32, keyboard); if (teamName.equals("0")) { return; } for (int y = 0; y < theLeague.getNumTeams(); y++) { if (teamName.equalsIgnoreCase(theLeague.getTeam(y).getTeamName())) { System.out.println("That team name is already being used."); teamName = ""; } } } while (teamName.isEmpty()); theTeam.setTeamName(teamName); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTeamName(String name) {\n\t\tteamName = name;\n\t}", "public void setName(String name){\n\t\tthis.tournamentName = name;\n\t}", "public void setTeamName(String teamName) {\r\n this.teamName = teamName;\r\n }", "public void setName(String newname)\n {\n name = newname;\n ...
[ "0.79217255", "0.7779549", "0.75734437", "0.7567474", "0.7455916", "0.73128444", "0.73089004", "0.7289535", "0.72331756", "0.7230683", "0.7229192", "0.7215933", "0.72099406", "0.72004396", "0.71909475", "0.7183035", "0.7153083", "0.713312", "0.7128176", "0.7123449", "0.709103...
0.72978747
7
Only available to the commissioner edit scores, edit standings, remove accepted trades after they are processed.
public static void commissionerTools(League theLeague, Scanner keyboard) { System.out.println(""); System.out.println("---Commissioner Tools---"); System.out.println("1 - Edit Scores"); System.out.println("2 - Edit Standings"); System.out.println("3 - Review Accepted Trade"); System.out.println("0 - Return to Team Menu"); switch (Input.validInt(0, 3, keyboard)) { case 1: editScores(theLeague, keyboard); break; case 2: editStandings(theLeague, keyboard); break; case 3: if (theLeague.getPendingTrade().isEmpty()) { System.out.println(""); System.out.println("--There are no accepted trades pending--"); break; } reviewAcceptedTrade(theLeague, keyboard); break; case 0: break; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void botTrading(){\n if(game.isCardPositive(game.getHighestSharePriceStock())){\n int numShares = player.getFunds()/(game.getHighestSharePriceStock().getSharePrice()+3);\n player.getShares().set(game.getIndex(game.getHighestSharePriceStock()), player.getShares().get(game.getInd...
[ "0.54095787", "0.5384556", "0.53549767", "0.5335878", "0.53224665", "0.5320045", "0.53017867", "0.52994543", "0.528312", "0.5237709", "0.5223508", "0.51906097", "0.51902926", "0.5186942", "0.5179565", "0.51370144", "0.5126772", "0.5126556", "0.51067144", "0.5104529", "0.51044...
0.5885162
0
Only available to the commissioner edit this week's scores, for all managers to see.
public static void editScores(League theLeague, Scanner keyboard) { System.out.println(""); System.out.println("---Edit Scores---"); for (int x = 0; x < theLeague.getNumTeams(); x++) { System.out.println(""); theLeague.getTeam(x).teamManNameToString(); System.out.println("Current score: " + theLeague.getTeam(x).getScore()); System.out.println(""); System.out.println("Enter a score for " + theLeague.getTeam(x).getTeamName() + ": (max 512)"); System.out.println("0 - Return to Team Menu"); int newScore = Input.validInt(0, 512, keyboard); if (newScore == 0) { return; } theLeague.getTeam(x).setScore(newScore); } System.out.println(""); System.out.println("***Scores Updated***"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static private void calculateMissionScore() {\n\n HashMap<String, Boolean> missionStatus = allMissions.missionStatus;\n\n for (String i : missionStatus.keySet()) {\n\n if (missionStatus.get(i) == true) {\n score.addToPoints(250);\n }\n }\n }", "public ...
[ "0.54664934", "0.53647953", "0.5267019", "0.5263257", "0.5140898", "0.5093612", "0.5081493", "0.50227416", "0.5011235", "0.4991093", "0.49336582", "0.49315292", "0.49196076", "0.48964", "0.48797166", "0.48763612", "0.48654824", "0.48553005", "0.4852152", "0.48445067", "0.4842...
0.4772508
37
Only available to the commissioner edit the seasonlong record for each team.
public static void editStandings(League theLeague, Scanner keyboard) { System.out.println(""); System.out.println("---Edit Standings---"); for (int x = 0; x < theLeague.getNumTeams(); x++) { System.out.println(""); theLeague.getTeam(x).teamManNameToString(); System.out.println("Current record: " + theLeague.getTeam(x).getRecord()); System.out.println(""); System.out.println("Enter a new record: (max 32 characters)"); System.out.println("0 - Return to Team Menu"); String newRecord = Input.validString(32, keyboard); if (newRecord.equals("0")) { return; } theLeague.getTeam(x).setRecord(newRecord); } System.out.println(""); System.out.println("***Standings Updated***"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getSeasonId() {\n return seasonId;\n }", "public void setSeasonId(int value) {\n this.seasonId = value;\n }", "public List<Team> getAllTeamsBySeason(Season s) { \r\n\t\t\tif(teamsBySeason==null)\t{\r\n\t\t\t\tteamsBySeason=dao.listTeamsforSeason(s); //LIST\t\t\r\n\t\t\tfor(Team ...
[ "0.55795103", "0.5524678", "0.53286463", "0.52891016", "0.51674867", "0.51602495", "0.51425004", "0.5141974", "0.5083585", "0.5074465", "0.49852914", "0.49434686", "0.49419254", "0.494105", "0.4933726", "0.49332783", "0.49226385", "0.49218953", "0.48824418", "0.48714834", "0....
0.55428934
1
Only available to the commissioner once the accepted trade has been processed, the message alerting the league to the trade can be removed.
public static void reviewAcceptedTrade(League theLeague, Scanner keyboard) { System.out.println(""); System.out.println("---Accepted Trade---"); System.out.println(""); System.out.println(theLeague.getPendingTrade()); System.out.println(""); System.out.println("-Has this trade been processed?-"); System.out.println("1 - Yes"); System.out.println("2 - No"); if (Input.validInt(1, 2, keyboard) == 1) { theLeague.setPendingTrade(""); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void clientCompanyLeve(Messages.MarketClientCompanyQuit msg) {\n isLeaving = true;\n }", "@Override\r\n public void cancelMsg() {\n System.out.println(\"Transaction has been cancelled for gas pump #1..\");\r\n }", "public void youWinByAbandonment() {\n try {\n ...
[ "0.6181393", "0.59807223", "0.5922549", "0.5896026", "0.58858955", "0.57802194", "0.5756216", "0.5729689", "0.572515", "0.5722859", "0.5648517", "0.56380254", "0.5637907", "0.563744", "0.5588254", "0.55873066", "0.54962283", "0.54945326", "0.5493819", "0.5493647", "0.547292",...
0.51852167
58
MENENTUKAN BERAT BADAN IDEAL/TIDAK membuat variabel dan Scanner
public static void main(String[] args) { int beratbadan; String nama; Scanner scan = new Scanner(System.in); // mengambil input System.out.print("Nama: "); nama = scan.nextLine(); System.out.print("Berat Badan: "); beratbadan = scan.nextInt(); // cek apakah dia ideal atau tidak if( beratbadan <= 50 ) { System.out.println("Selamat " + nama + ", berat badan anda ideal!"); } else { System.out.println("Maaf " + nama + ", berat badan anda overdose"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void scan() {\n\t\tt = la;\n\t\tla = Scanner.next();\n\t\tla.toString();\n\t\tsym = la.kind;\n\t}", "@Override\n public void input() {\n super.input();\n Scanner sc = new Scanner(System.in);\n System.out.printf(\"Nhập số trang sách giáo khoa: \");\n amountPage = Inte...
[ "0.67532706", "0.62940335", "0.6255553", "0.6237162", "0.6154829", "0.61069465", "0.5987098", "0.59516346", "0.59317094", "0.5929547", "0.591936", "0.58282775", "0.57805276", "0.57680535", "0.57584214", "0.57570785", "0.5755642", "0.5745553", "0.5729279", "0.5716085", "0.5710...
0.5451149
64
Creates new form BulbPanel
public BulbPanel(final TradfriLightBulbPacket bulb) { this.bulb = bulb; bulb.addListener(this); initComponents(); updatePanelContent(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JComponent createBottomPanel() {\n\t\tJButton[] buttons = new JButton[0];\n\t/*\tbuttons[0] = new JButton(\"Save\");\n\t\tbuttons[0].setActionCommand(\"0\");\n\t\tbuttons[1] = new JButton(\"Cancel\");\n\t\tbuttons[1].setActionCommand(\"1\");*/\n\t\tActionHandler actHand = new ActionHandler();\n\t//\tfields[...
[ "0.6881537", "0.68772125", "0.6737818", "0.6632987", "0.66253966", "0.6496407", "0.6399921", "0.6351036", "0.6349978", "0.634981", "0.63331926", "0.63331926", "0.6324923", "0.63164353", "0.6307471", "0.6295564", "0.6270902", "0.6267749", "0.62665606", "0.6244809", "0.62247145...
0.6098276
41
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { buttonGroupTemperature = new javax.swing.ButtonGroup(); jToggleButton1 = new javax.swing.JToggleButton(); jLabel1 = new javax.swing.JLabel(); jSlider1 = new javax.swing.JSlider(); jTextFieldName = new javax.swing.JTextField(); jRadioCold = new javax.swing.JRadioButton(); jRadioNormal = new javax.swing.JRadioButton(); jRadioWarm = new javax.swing.JRadioButton(); jLabel2 = new javax.swing.JLabel(); jLabelDates = new javax.swing.JLabel(); jButton1 = new javax.swing.JButton(); jButton2 = new javax.swing.JButton(); jButton3 = new javax.swing.JButton(); setMaximumSize(new java.awt.Dimension(32767, 89)); setMinimumSize(new java.awt.Dimension(0, 89)); jToggleButton1.setText("On / Off"); jToggleButton1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jToggleButton1ActionPerformed(evt); } }); jLabel1.setText("Intensity :"); jSlider1.setMaximum(255); jSlider1.setMinimum(1); jSlider1.addChangeListener(new javax.swing.event.ChangeListener() { public void stateChanged(javax.swing.event.ChangeEvent evt) { jSlider1StateChanged(evt); } }); jTextFieldName.setEditable(false); jTextFieldName.setText("[Not Connected]"); buttonGroupTemperature.add(jRadioCold); jRadioCold.setText("Cold"); jRadioCold.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jRadioColdActionPerformed(evt); } }); buttonGroupTemperature.add(jRadioNormal); jRadioNormal.setText("Normal"); jRadioNormal.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jRadioNormalActionPerformed(evt); } }); buttonGroupTemperature.add(jRadioWarm); jRadioWarm.setText("Warm"); jRadioWarm.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jRadioWarmActionPerformed(evt); } }); jLabel2.setText("Name :"); jLabelDates.setFont(new java.awt.Font("Dialog", 0, 10)); // NOI18N jLabelDates.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); jLabelDates.setText("Installed: Unknown - Last seen: Unknown - Firmware: Unknown"); jButton1.setFont(new java.awt.Font("Dialog", 1, 10)); // NOI18N jButton1.setText("GET"); jButton1.setMaximumSize(new java.awt.Dimension(56, 18)); jButton1.setMinimumSize(new java.awt.Dimension(56, 18)); jButton1.setPreferredSize(new java.awt.Dimension(56, 18)); jButton1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton1ActionPerformed(evt); } }); jButton2.setFont(new java.awt.Font("Dialog", 1, 10)); // NOI18N jButton2.setText("SET"); jButton2.setMaximumSize(new java.awt.Dimension(56, 18)); jButton2.setMinimumSize(new java.awt.Dimension(56, 18)); jButton2.setPreferredSize(new java.awt.Dimension(56, 18)); jButton2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton2ActionPerformed(evt); } }); jButton3.setText("Color"); jButton3.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton3ActionPerformed(evt); } }); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addContainerGap() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel1) .addComponent(jLabel2)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jSlider1, javax.swing.GroupLayout.DEFAULT_SIZE, 514, Short.MAX_VALUE) .addGroup(layout.createSequentialGroup() .addComponent(jTextFieldName) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jButton3) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jRadioWarm) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jRadioNormal) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jRadioCold)))) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabelDates, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jToggleButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 123, javax.swing.GroupLayout.PREFERRED_SIZE)) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jToggleButton1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addGap(11, 11, 11) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jRadioCold) .addComponent(jRadioNormal) .addComponent(jRadioWarm) .addComponent(jTextFieldName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jButton3))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jSlider1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel1)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabelDates) .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap()) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n ...
[ "0.73191476", "0.72906625", "0.72906625", "0.72906625", "0.72860986", "0.7248112", "0.7213479", "0.72078276", "0.7195841", "0.71899796", "0.71840525", "0.7158498", "0.71477973", "0.7092748", "0.70800966", "0.70558053", "0.69871384", "0.69773406", "0.69548076", "0.69533914", "...
0.0
-1
End of variables declaration//GENEND:variables
protected void updatePanelContent() { updating = true; jTextFieldName.setText(bulb.getName()); jTextFieldName.setToolTipText(bulb.getType()); jSlider1.setValue(bulb.getIntensity()); jToggleButton1.setSelected(bulb.isOn()); if (bulb.getColor() != null) { jRadioCold.setEnabled(true); jRadioNormal.setEnabled(true); jRadioWarm.setEnabled(true); switch(bulb.getColor()) { case TradfriConstants.COLOR_NORMAL: jRadioNormal.setSelected(true); break; case TradfriConstants.COLOR_WARM: jRadioWarm.setSelected(true); break; case TradfriConstants.COLOR_COLD: jRadioCold.setSelected(true); break; } } else { jRadioCold.setEnabled(false); jRadioNormal.setEnabled(false); jRadioWarm.setEnabled(false); } if (bulb.isOnline()) { jToggleButton1.setEnabled(true); jRadioCold.setEnabled(true); jRadioNormal.setEnabled(true); jRadioWarm.setEnabled(true); jSlider1.setEnabled(true); jLabelDates.setText("Installed: "+bulb.getDateInstalled()+" - Last seen: "+bulb.getDateLastSeen()+" - Firmware: " + bulb.getFirmware() + " [online]"); } else { jToggleButton1.setEnabled(false); jRadioCold.setEnabled(false); jRadioNormal.setEnabled(false); jRadioWarm.setEnabled(false); jSlider1.setEnabled(false); jLabelDates.setText("Installed: "+bulb.getDateInstalled()+" - Last seen: "+bulb.getDateLastSeen()+" - Firmware: " + bulb.getFirmware() + " [offline]"); } updating = false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void lavar() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "public void mo38117a() {\n }", "@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}", "private void assignment() {\n\n\t\t\t}", "private void kk12() {\n\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\n pu...
[ "0.6359434", "0.6280371", "0.61868024", "0.6094568", "0.60925734", "0.6071678", "0.6052686", "0.60522056", "0.6003249", "0.59887564", "0.59705925", "0.59680873", "0.5967989", "0.5965816", "0.5962006", "0.5942372", "0.5909877", "0.5896588", "0.5891321", "0.5882983", "0.5881482...
0.0
-1
create operation request and response objects
@Test public void testSetExpressCheckout() { SetExpressCheckoutReq setExpressCheckoutReq = new SetExpressCheckoutReq(); SetExpressCheckoutRequestType setExpressCheckoutRequest = new SetExpressCheckoutRequestType(); setExpressCheckoutReq.setSetExpressCheckoutRequest(setExpressCheckoutRequest); SetExpressCheckoutResponseType setExpressCheckoutRes = new SetExpressCheckoutResponseType(); when(paypalAPIAAInterfaceMock.setExpressCheckout(setExpressCheckoutReq, headers)).thenReturn(setExpressCheckoutRes); SetExpressCheckoutResponseType response = paypalPaymentService.setExpressCheckout(setExpressCheckoutRequest); assertNotNull("Response should not be null", response); assertEquals("Response objects must be equels", response, setExpressCheckoutRes); verify(paypalAPIAAInterfaceMock, times(1)).setExpressCheckout(setExpressCheckoutReq, headers); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Request _request(String operation);", "public abstract Response create(Request request, Response response);", "Request _create_request(Context ctx,\n String operation,\n NVList arg_list,\n NamedValue result,\n ExceptionList exclist,\n ContextList ctxlist);", "void createRequest(EnumO...
[ "0.7150394", "0.67850214", "0.66917545", "0.66629815", "0.6661073", "0.6661073", "0.664371", "0.65489906", "0.64119714", "0.64087063", "0.6327559", "0.6325269", "0.6079734", "0.59886605", "0.5900638", "0.5884295", "0.58734035", "0.58254", "0.58018017", "0.5798786", "0.57549",...
0.0
-1
TODO Autogenerated method stub
private static Material FabricBlockSettings(Material stone) { return null; }
{ "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
Register block entities here
public static void registerBlockEntities() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void registerBlock(Block b)\n\t{\n\t}", "private static void registerBlocks() {\n for(Block block : modBlocks) {\n ForgeRegistries.BLOCKS.register(block);\n\n ItemBlock itemBlock = new ItemBlock(block);\n itemBlock.setRegistryName(block.getRegistryName());\n...
[ "0.70680845", "0.6993013", "0.68081784", "0.6649638", "0.66282123", "0.6336847", "0.63133633", "0.62097025", "0.6184016", "0.6119668", "0.6114742", "0.60889035", "0.6049115", "0.6042947", "0.5976847", "0.5917639", "0.58909535", "0.58802944", "0.586145", "0.58533615", "0.58354...
0.8634812
0
TODO Autogenerated method stub
public static void main(String[] args) throws NumberFormatException, IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringBuilder sb = new StringBuilder(); int N = Integer.parseInt(br.readLine()); PriorityQueue<Integer> q = new PriorityQueue<Integer>(); for(int i=0; i<N; i++) { int n = Integer.parseInt(br.readLine()); q.add(n); } for(int i=0; i<N; i++) { sb.append(q.poll() + "\n"); } System.out.println(sb.toString()); }
{ "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
Sort according the scoring function
private void sortAndSetExplanations(IExplanationSet explanationSet){ List<IBasicExplanation> explanationList = explanationSet.getExplanations(); Collections.sort(explanationList, RankerFactory.getScoreTotalOrderComparator(scoringFunction)); for (IBasicExplanation explanation : explanationList) put(explanation); setMinMax(explanationList); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void sort() {\n ScoreComparator comparator = new ScoreComparator();\n Collections.sort(scores, comparator);\n }", "public void sortScoresDescendently(){\n this.langsScores.sort((LangScoreBankUnit o1, LangScoreBankUnit o2) -> {\n return Double.compare(o2.getScore(),o1.getScore())...
[ "0.8049312", "0.73382276", "0.7043005", "0.69160736", "0.69152015", "0.68912464", "0.68349063", "0.67741853", "0.669307", "0.66697955", "0.66657513", "0.66657513", "0.6663784", "0.66012913", "0.6593352", "0.65764886", "0.6552877", "0.6518307", "0.65023774", "0.64861083", "0.6...
0.0
-1
Set MinSE and MaxSE according to the explanation list for the error
private void setMinMax(List<IBasicExplanation> explanationList){ minSE = scoringFunction.getScore(explanationList.get(0)); maxSE = scoringFunction.getScore(explanationList.get(explanationList.size() - 1)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setSilicateMinError (float silicateMin, Exception e, int error) {\n this.silicateMin = silicateMin;\n silicateMinErrorMessage = e.toString();\n silicateMinError = error;\n }", "public double[] getConfigMse()\r\n\t{\r\n\t\tint i;\r\n\t\tdouble[] avg_error; \r\n\t\t\r\n\t\tavg_...
[ "0.6138321", "0.60929644", "0.60873723", "0.6045027", "0.59777343", "0.58708346", "0.5811689", "0.5770089", "0.5760638", "0.57200444", "0.57126856", "0.5670644", "0.5666572", "0.5614765", "0.55447197", "0.55110204", "0.5494909", "0.5430493", "0.53925306", "0.5384776", "0.5366...
0.69601464
0
/ Add all possible sets from one error to a set, remove the original set from the list and add the extended sets to the list.
private void expandAndInsert(RankedListElement currentExplanation) { boolean disOverlap = currentExplanation.extensionWithoutOverlap(); sortedSets.remove(currentExplanation); for (int i = 0; i < errorExpl.get(currentExplanation.firstUnset).size(); i++) { RankedListElement newOne = new RankedListElement(currentExplanation, i); if (log.isDebugEnabled()) { log.debug("Was included? : " + sortedSets.contains(newOne) + "\n" + newOne); } if ((!disOverlap || !newOne.lastAdditionHasOverlap()) && !sortedSets.contains(newOne)) sortedSets.add(newOne); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addAll(SelectionSet newSet)\n {\n elements.addAll(newSet.elements);\n }", "void addEmergingSymbols(Set<Integer> acc);", "public Set(Set original) throws SetException {\n\t\tthis();\n\t\taddItems(original);\n\t}", "private ISet<S> expand(ISet<S> set) {\n\t\t\tISet<S> expanded = ISets....
[ "0.60289675", "0.59322125", "0.5930343", "0.59129065", "0.5825527", "0.58194494", "0.57804525", "0.56627274", "0.5615958", "0.5603413", "0.55827516", "0.55137825", "0.5470152", "0.54523504", "0.5443907", "0.54343873", "0.54145813", "0.5413694", "0.54049623", "0.53545654", "0....
0.51927847
30
Keep confirmed explanations in a field
@Override public void confirmExplanation(IBasicExplanation correctExpl) { confirmedExplanations.add(correctExpl); // Keep confirmed errors in another field IMarkerSet correctMarkers = correctExpl.getRealExplains(); confirmedMarkers.addAll(correctMarkers); //TODO 4) adapt ExplanationCollection //TODO 5) wipe internal data structures of the ranker /* errors.removeAll(correctMarkers); errorList.removeAll(correctMarkers); removeMarkersFromOneErrorList(correctMarkers); */ // Call initialize to restart the ranker initializeListsAndSets(); initializeCollection(explCollection); //TODO 7) merge confirmed explanations for scoring }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setConfirmed(String value);", "private void clearFormatedText() {\n \n formatedText_ = getDefaultInstance().getFormatedText();\n }", "@Test//ExSkip\n public void fieldAsk() throws Exception {\n Document doc = new Document();\n DocumentBuilder builder = new DocumentBuilder(doc);\n\n...
[ "0.5337342", "0.51845425", "0.51777864", "0.5124804", "0.5102222", "0.50415355", "0.50310874", "0.5029375", "0.50285894", "0.4985992", "0.49663505", "0.4963524", "0.4960254", "0.4959721", "0.4956323", "0.4943903", "0.49356443", "0.49270916", "0.49224055", "0.49187705", "0.491...
0.5439164
0
Set Object Reference for EventDay and Itinerary
public static void Ref_EventDay_Itinerary(IDMap map, ArrayList<EventDay> EDlist, ArrayList<Itinerary> PLlist) { while (map.hasNext()) { Pair mapping = map.NextPair(); if (mapping.notNull()) { EDlist.get(mapping.First()).setItinerary(PLlist.get(mapping.Second())); } } map.Reset(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public OrgDay(OrgDay another) {\n this.events = new LinkedList<>();\n for (OrgEvent event : another.events) {\n this.events.add(new OrgEvent(event));\n }\n }", "public OrgDay() {\n events = new LinkedList<>();\n }", "public void setDay(Date day) {\r\n this.da...
[ "0.6336505", "0.6136189", "0.5801332", "0.5801332", "0.5801332", "0.5801332", "0.5801332", "0.57732826", "0.5770708", "0.57707053", "0.56927174", "0.56173664", "0.5599568", "0.5586023", "0.5528802", "0.55125827", "0.5426053", "0.542361", "0.542361", "0.54108065", "0.5385823",...
0.56880015
11
Set Object Reference for EventDay and Event
public static void Ref_EventDay_Event(IDMap map, ArrayList<EventDay> EDlist, ArrayList<Event> Elist) { while (map.hasNext()) { Pair mapping = map.NextPair(); if (mapping.notNull()) { EDlist.get(mapping.First()).setEvent(Elist.get(mapping.Second())); } } map.Reset(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void assignEventDates(EventDates val) {\n eventDates = val;\n }", "public OrgDay(OrgDay another) {\n this.events = new LinkedList<>();\n for (OrgEvent event : another.events) {\n this.events.add(new OrgEvent(event));\n }\n }", "public OrgDay() {\n events = n...
[ "0.6585613", "0.63541114", "0.6131506", "0.5955297", "0.591543", "0.5878746", "0.5736775", "0.5697199", "0.5697199", "0.5697199", "0.5697199", "0.5697199", "0.5672226", "0.5634886", "0.55935985", "0.55670345", "0.5566509", "0.55056095", "0.54803747", "0.5471402", "0.5451501",...
0.5816244
6
Set Object Reference for EventDay and VenueBooking
public static void Ref_EventDay_VenueBooking(IDMap map, ArrayList<EventDay> EDlist, ArrayList<VenueBooking> VBlist) { while (map.hasNext()) { Pair mapping = map.NextPair(); if (mapping.notNull()) { EDlist.get(mapping.First()).tagVenueBooking(VBlist.get(mapping.Second())); } } map.Reset(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void assignEventDates(EventDates val) {\n eventDates = val;\n }", "abstract public void setServiceAppointment(Date serviceAppointment);", "public OrgDay(OrgDay another) {\n this.events = new LinkedList<>();\n for (OrgEvent event : another.events) {\n this.events.add(new OrgE...
[ "0.5864783", "0.5736453", "0.5736443", "0.5532311", "0.54758745", "0.5400639", "0.5338771", "0.52688193", "0.5249677", "0.5216521", "0.5203414", "0.5200378", "0.5200378", "0.5200378", "0.5200378", "0.5200378", "0.51906055", "0.51903987", "0.5186375", "0.5158895", "0.51224464"...
0.54034877
5
public List list(); public List findBy();
public GradeBean findBySeq(int input4);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<T> findAll();", "List<T> findAll();", "List<T> findAll();", "List<T> findAll() ;", "public List<E> findAll() ;", "public List<E> findAll();", "List<E> findAll();", "List<E> findAll();", "List<E> findAll();", "public java.util.List<Todo> findAll();", "public List<Service> findAll();", "pu...
[ "0.82548034", "0.82548034", "0.82548034", "0.82025987", "0.81744033", "0.8125711", "0.7917635", "0.7917635", "0.7917635", "0.7840658", "0.78375566", "0.7774892", "0.768137", "0.7594827", "0.75810117", "0.75810117", "0.7528228", "0.7478003", "0.7465489", "0.7465363", "0.746357...
0.0
-1
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu_route_detail, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {...
[ "0.7246102", "0.7201358", "0.7194834", "0.7176498", "0.71066517", "0.7039537", "0.7037961", "0.70112145", "0.70094734", "0.69807225", "0.6944953", "0.69389373", "0.6933199", "0.6916928", "0.6916928", "0.6891486", "0.68831646", "0.68754137", "0.68745375", "0.68621665", "0.6862...
0.0
-1
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); //noinspection SimplifiableIfStatement if (id == R.id.action_settings) { return true; } return super.onOptionsItemSelected(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n ...
[ "0.79039484", "0.78061193", "0.7765948", "0.772676", "0.76312095", "0.76217103", "0.75842994", "0.7530533", "0.748778", "0.7458179", "0.7458179", "0.7438179", "0.74213266", "0.7402824", "0.7391232", "0.73864055", "0.7378979", "0.73700106", "0.7362941", "0.73555434", "0.734530...
0.0
-1
TODO process /refine processReuqest of get a new object from other service
@Override public ResponseEntity<Object> generateMessage(Map<String, Object> processedRequest, String url) { JSONObject response = new JSONObject(); response = new JSONObject(); response.put("FName", "FirtName"); response.put("LName", "Second Nmae"); ResponseEntity<Object> validationResponse = new ResponseEntity<Object>(response, HttpStatus.OK); return validationResponse; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ResultVO readService(Object object);", "protected BusinessObject getNewBusinessObjInstance()\n {\n return BUSINESS_OBJ ;\n }", "public interface ObjectInfoService {\n\n ObjectInfo getSubObjectInfo(SubObjectInfoPo subObjectInfoPo);\n\n int fixObject(SubObjectInfoPo objectInfoPo);\n}", ...
[ "0.59131736", "0.5740102", "0.57055134", "0.5705335", "0.55950254", "0.5584406", "0.5574536", "0.55426043", "0.5530257", "0.5493357", "0.5481325", "0.5475056", "0.543069", "0.5410446", "0.54010737", "0.5379192", "0.53567916", "0.535397", "0.5333236", "0.5331284", "0.5329949",...
0.0
-1
Here create the HashMap and go through the word letters, count them if the letter is not already counted
private HashMap<Character, Integer> countAllLetters(String word) { WordToolbox otherWord = new WordToolbox(word.toLowerCase()); HashMap<Character, Integer> mapOfWord = new HashMap<>(); for (int i = 0; i < word.length(); i++) { mapOfWord.put(word.toLowerCase().charAt(i), otherWord.countHowMany(word.toLowerCase().charAt(i))); } return mapOfWord; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\t\t\r\n\t\tScanner info = new Scanner(System.in);\r\n\t\t\r\n\t\tSystem.out.println(\"Enter the phrase:\");\r\n\t\tString sentence = info.nextLine();\r\n\t\t\r\n\t\tsentence = sentence.trim().toUpperCase();\r\n\t\t\r\n\t\tfor (int i = 0; i < sentence.length(); i++) {\r\n\...
[ "0.7561892", "0.75055605", "0.73935217", "0.731312", "0.72560513", "0.72281796", "0.70620346", "0.704621", "0.6995493", "0.69933885", "0.69471055", "0.69167846", "0.6878205", "0.68456197", "0.68102", "0.68005294", "0.6795247", "0.6779665", "0.6777981", "0.6758456", "0.675245"...
0.8094241
0
defined by IBolt. Analogous to open() in ISpout. Prepare resources such as database connections during bolt initializations. here saves a reference to the OutputCollector object
public void prepare(Map config, TopologyContext context, OutputCollector collector){ this.collector = collector; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void open(Map arg0, TopologyContext arg1, SpoutOutputCollector outputCollector) {\n\t\t\n\t\tthis.collector = outputCollector;\n\t}", "@Override\n public void open(Map conf, TopologyContext topologyContext, SpoutOutputCollector collector) {\n this.collector = collector;\n }", "public void o...
[ "0.6724318", "0.65638936", "0.64631015", "0.61341685", "0.605392", "0.6043444", "0.60312134", "0.5886263", "0.58584577", "0.57273537", "0.5679687", "0.56356937", "0.56174004", "0.5523422", "0.5474054", "0.5462751", "0.5418631", "0.54124135", "0.540123", "0.5312726", "0.529678...
0.5698265
10
defined by IBolt. called every time the bolt receives a tuple from a stream to which it subscribes here looks up the value of "sentence" field of incoming tuple as a string, splits the value into individual words emits a new tuple
public void execute(Tuple tuple){ String sentence = tuple.getStringByField("sentence"); String[] words = sentence.split(" "); for(String word: words){ this.collector.emit(new Values(word)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic final void execute(final Tuple input, final BasicOutputCollector collector) {\n\t\tfinal String sentence = (String) input.getValueByField(\"sentence\");\n\t\tfor (final String word : sentence.split(\" \")) {\n\t\t\tcollector.emit(new Values(word));\n\t\t}\n\t}", "public void execute(Tuple inp...
[ "0.6990247", "0.6366095", "0.629179", "0.6111097", "0.6048461", "0.6034504", "0.6006213", "0.58862966", "0.5868394", "0.5746152", "0.569477", "0.56553286", "0.54842037", "0.5406658", "0.53844064", "0.5358011", "0.5283616", "0.5265065", "0.5253782", "0.5223647", "0.5200936", ...
0.7316992
0
declares a single stream of tuples, each containing one field "word"
public void declareOutputFields(OutputFieldsDeclarer declarer){ declarer.declare(new Fields("word")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void flatMap(String value, Collector<Tuple2<String, Integer>> out) {\n String[] tokens = value.toLowerCase().split(\"\\\\W+\");\n\n // emit the pairs\n for (String token : tokens) {\n if (token.length() > 0) {\n out.collec...
[ "0.5855785", "0.58221555", "0.5798775", "0.5615899", "0.5610196", "0.5609769", "0.5550674", "0.5440389", "0.54083186", "0.5350089", "0.5242768", "0.5224613", "0.5163296", "0.51232076", "0.5087295", "0.5055948", "0.50507426", "0.5049588", "0.5018507", "0.5016049", "0.501403", ...
0.0
-1
The Factory for the model. It provides a create method for each nonabstract class of the model.
public interface QIntegratedLanguageEsamFactory extends EFactory { /** * The singleton instance of the factory. * <!-- begin-user-doc --> <!-- * end-user-doc --> * @generated */ QIntegratedLanguageEsamFactory eINSTANCE = org.smeup.sys.il.esam.impl.IntegratedLanguageEsamFactoryImpl.init(); /** * Returns a new object of class '<em>Data Set Term</em>'. <!-- * begin-user-doc --> <!-- end-user-doc --> * * @return a new object of class '<em>Data Set Term</em>'. * @generated */ QDataSetTerm createDataSetTerm(); /** * Returns a new object of class '<em>Display Term</em>'. <!-- * begin-user-doc --> <!-- end-user-doc --> * * @return a new object of class '<em>Display Term</em>'. * @generated */ QDisplayTerm createDisplayTerm(); /** * Returns a new object of class '<em>Key List Term</em>'. <!-- * begin-user-doc --> <!-- end-user-doc --> * * @return a new object of class '<em>Key List Term</em>'. * @generated */ QKeyListTerm createKeyListTerm(); /** * Returns a new object of class '<em>Print Term</em>'. * <!-- begin-user-doc * --> <!-- end-user-doc --> * @return a new object of class '<em>Print Term</em>'. * @generated */ QPrintTerm createPrintTerm(); /** * Returns the package supported by this factory. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the package supported by this factory. * @generated */ QIntegratedLanguageEsamPackage getIntegratedLanguageEsamPackage(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "TestModelFactory getTestModelFactory();", "public UsermodelFactoryImpl() {\r\n\t\tsuper();\r\n\t}", "public SqliteModelFactoryImp...
[ "0.71565163", "0.71565163", "0.71565163", "0.71565163", "0.71565163", "0.71565163", "0.71565163", "0.70742077", "0.7051943", "0.6983852", "0.69748455", "0.6965496", "0.69568366", "0.69481784", "0.6860293", "0.6811446", "0.6807123", "0.6756206", "0.6694741", "0.6656823", "0.66...
0.0
-1
Returns a new object of class 'Data Set Term'.
QDataSetTerm createDataSetTerm();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public TermData(String term)\n\t{\n\t\tthis.term = term;\n\t}", "GeneralTerm createGeneralTerm();", "TermNode() {\n this.fac = new FacNode();\n this.term = null;\n this.selection = 1;\n }", "SingleTerm(Term t)\n {\n term = t;\n }", "public Terms() {}", "public Object ...
[ "0.71153146", "0.67485887", "0.63501185", "0.63425463", "0.6321637", "0.61981595", "0.61591715", "0.6132942", "0.60764295", "0.60320634", "0.5997613", "0.58961976", "0.5753505", "0.5743068", "0.5743048", "0.5713974", "0.56812054", "0.56677794", "0.56181115", "0.56161296", "0....
0.8028396
0
Returns a new object of class 'Display Term'.
QDisplayTerm createDisplayTerm();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "TermNode() {\n this.fac = new FacNode();\n this.term = null;\n this.selection = 1;\n }", "Term getTerm();", "QPrintTerm createPrintTerm();", "GeneralTerm createGeneralTerm();", "public JPanel_Terminal() {\n // initialize components\n initComponents();\n\n // ini...
[ "0.6307475", "0.6167432", "0.60646784", "0.6019628", "0.59768116", "0.59768075", "0.5816257", "0.5806959", "0.5763572", "0.57441014", "0.5648876", "0.56038946", "0.55772114", "0.55393445", "0.55050975", "0.54547393", "0.5444184", "0.5431673", "0.5392892", "0.5366448", "0.5356...
0.79128414
0
Returns a new object of class 'Key List Term'.
QKeyListTerm createKeyListTerm();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public VocabularyTerms() {}", "public Terms() {}", "public int getTermIndex() {return termIndex;}", "public WordList() {\t\t//Default constructor\n\t}", "@Override Iterator<K> newKeyIterator() {\n return new KeyIterator();\n }", "QuoteTerm createQuoteTerm();", "public KeyedEntry() { }", "Te...
[ "0.59051466", "0.5727152", "0.5713038", "0.57067657", "0.5690142", "0.5681613", "0.5625833", "0.5588207", "0.5568956", "0.5552557", "0.55290663", "0.55125004", "0.551024", "0.5498221", "0.54941046", "0.5485333", "0.5442302", "0.5437882", "0.5426523", "0.5404651", "0.5386869",...
0.81259733
0
Returns a new object of class 'Print Term'.
QPrintTerm createPrintTerm();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Term getTerm();", "public void printTerm(){\n\n // print fac node\n this.fac.printFac();\n\n // check selection\n if (this.selection == 2) {\n\n // print \"*\"\n System.out.print(\" * \");\n\n // print term node\n this.term.printTerm();\n\n ...
[ "0.6874568", "0.6743621", "0.6604915", "0.658665", "0.63538057", "0.6345391", "0.6246886", "0.62424", "0.6004902", "0.59785444", "0.59393764", "0.59250736", "0.59091973", "0.5860749", "0.57582", "0.5731601", "0.5704494", "0.5701745", "0.5663127", "0.56046844", "0.55760247", ...
0.8066319
0
Returns the package supported by this factory.
QIntegratedLanguageEsamPackage getIntegratedLanguageEsamPackage();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "PackageType getRequiredPackage();", "public PackageNode getPackage();", "java.lang.String getPackage();", "public String getPackageName();", "public String getPackageName() {\n return pkg;\n }", "String getPackageName();", "public DsByteString getPackage() {\n return m_strPackage;\n }", ...
[ "0.7031596", "0.6824025", "0.6818806", "0.6752645", "0.67181015", "0.6704875", "0.6698022", "0.6678774", "0.6635858", "0.6556546", "0.65183675", "0.6501405", "0.6496429", "0.6481852", "0.6376274", "0.63505894", "0.6338929", "0.63388515", "0.6327788", "0.6314242", "0.63126606"...
0.0
-1
/ private final RobotDrive leftDrive; private final RobotDrive rightDrive;
public DriveTrain(SpeedController left, SpeedController right){ this.left = left; this.right = right; this.drive = new RobotDrive(left,right); /* this.leftDrive=new RobotDrive(left,right); this.rightDrive=new RobotDrive(right); */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Drive(double left, double right) {\n requires(Robot.drivetrain);\n this.left = left;\n this.right = right;\n }", "public void operatorDrive() {\n\n changeMode();\n checkForGearShift();\n\n if (Robot.rightJoystick.getRawButton(1)) {\n currentMode = DriveMode.AUTO;\...
[ "0.7451082", "0.7276013", "0.71321523", "0.70950025", "0.7070991", "0.6972703", "0.68442947", "0.68406403", "0.68351734", "0.68062013", "0.6799169", "0.6778865", "0.6778325", "0.67452973", "0.67306894", "0.672972", "0.6644037", "0.66419655", "0.66211975", "0.65890104", "0.654...
0.7374339
1
Guarda a lista de tags de uma Question
public void setTags(ArrayList<String> tags){ for(String s : tags){ this.tags.add(s); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void answerQuestion(){\n for (int i = 0; i < questionList.size(); i++){\r\n if (questionList.get(i).question.startsWith(\"How\")){\r\n howQuestions.add(new Question(questionList.get(i).id, questionList.get(i).question, questionList.get(i).answer));\r\n }\r\n ...
[ "0.6495538", "0.6424361", "0.6075527", "0.6044052", "0.58758104", "0.5857557", "0.583225", "0.581891", "0.5770864", "0.5770833", "0.57678217", "0.5651143", "0.56441164", "0.56214684", "0.5621341", "0.5576274", "0.5557193", "0.5557193", "0.5540575", "0.5468091", "0.5424398", ...
0.5546648
18
when the mouse is dragged
public void mouseDragged( MouseEvent e ){ int xValue, yValue;// comments similar to mousePressed method Coordinate currentMousePosition; xValue = e.getX(); yValue = e.getY(); currentMousePosition = new Coordinate(xValue, yValue); mousePositionOnBoard(currentMousePosition); repaint(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mouseDragged(MouseEvent e){}", "public void mouseDragged (MouseEvent e) {}", "public void mouseDragged(MouseEvent e) {}", "@Override\n public void mouseDragged(MouseEvent arg0) {\n \n }", "@Override\n\t\tpublic void mouseDragged(MouseEvent e) {\n\t\t\t\n\t\t}", "@Override\n\t\tpu...
[ "0.85525215", "0.85316926", "0.84909916", "0.8364913", "0.83335316", "0.83335316", "0.83335316", "0.8322351", "0.83208096", "0.83141875", "0.8297913", "0.828961", "0.82835186", "0.82835186", "0.8273485", "0.82516426", "0.82436067", "0.82348144", "0.8230377", "0.8230377", "0.8...
0.0
-1
List of ServerThread objects
public synchronized List<ServerThread> getConnectionArray() { return connectionArray; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract List<? extends AbstractSctlThreadEntry> getThreads();", "protected final List<NulsThread> getThreadList(){\n return ModuleManager.getInstance().getThreadsByModule(this.moduleName);\n }", "public Collection getThreads();", "public void listThreads() {\n\t\tthis.toSlave.println(Master...
[ "0.74566984", "0.7203451", "0.7047548", "0.68805045", "0.66225934", "0.6572681", "0.6229919", "0.61184543", "0.61164623", "0.6090426", "0.60738254", "0.60538566", "0.6008747", "0.5947868", "0.594162", "0.5896701", "0.58616406", "0.5859545", "0.5839476", "0.58077645", "0.58010...
0.6114377
9
Sets the array of ServerThread objects to be handled
public synchronized void setConnectionArray(List<ServerThread> connectionArray) { this.connectionArray = connectionArray; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized void setThreads(int threads)\n/* */ {\n/* 122 */ if (threads <= 0) {\n/* 123 */ return;\n/* */ }\n/* */ \n/* 126 */ this.threads = threads;\n/* */ \n/* */ \n/* 129 */ if (this.helpers == null) {\n/* 130 */ this.helpers = new Neighborhood...
[ "0.6264929", "0.6189126", "0.592824", "0.5880434", "0.5818563", "0.5805441", "0.56502306", "0.5586225", "0.55836385", "0.5576299", "0.5569041", "0.5504575", "0.5451068", "0.5449122", "0.543981", "0.5430214", "0.542634", "0.54156876", "0.53792524", "0.53779733", "0.5363673", ...
0.66787064
0
Adds a ServerThread to the ConnectionArray and removes null
public synchronized void add(ServerThread st){ connectionArray.removeAll(Collections.singleton(null)); connectionArray.add(st); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addServerToServerArray(Server server){\n serverArray[cntServer] = server;\n cntServer++;\n }", "public synchronized void setConnectionArray(List<ServerThread> connectionArray) {\r\n this.connectionArray = connectionArray;\r\n }", "private void addThread(SSLSocket socket)\...
[ "0.62562084", "0.60296375", "0.5748301", "0.5605969", "0.5323635", "0.5289792", "0.5238109", "0.5192658", "0.51432633", "0.5066901", "0.50233155", "0.49713764", "0.4930695", "0.48880768", "0.485809", "0.48448306", "0.48381636", "0.4792382", "0.47702187", "0.47440287", "0.4691...
0.79962754
0
Nombre de colonnes du tableau
public int getColumnCount() { return columns.length ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getNombreColonnesPlateau();", "int nbColonnes();", "@Override\n\tpublic int getColumnCount()\n\t{\n\t\treturn nomColonnes.length;\n\t}", "public int obtenirColonne() {\n return this.colonne;\n }", "@Override\n public String toString() {\n return String.format(\"[%d] [%d]\", dameFila...
[ "0.77445114", "0.7040732", "0.6728473", "0.67056006", "0.6471482", "0.6469703", "0.6370961", "0.63592225", "0.6301334", "0.6269025", "0.61842984", "0.6168875", "0.6132982", "0.6117579", "0.6115966", "0.6083114", "0.606523", "0.60218585", "0.5986349", "0.5977683", "0.59572285"...
0.0
-1
Nombre de lignes du tableau
public int getRowCount() { return noeuds.size(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public String toString() {\n return String.format(\"[%d] [%d]\", dameFila(), dameColumna());\n }", "public String getNomTable();", "@Override\n\tpublic ArrayList<String> getName() {\n\t\tArrayList<String> l = new ArrayList<String>();\n\t\tl.addAll(leftTable.getName());\n\t\tl.addAll(ri...
[ "0.6808356", "0.67371637", "0.6567807", "0.6557085", "0.65090954", "0.6442827", "0.63282", "0.6271294", "0.6234976", "0.61187124", "0.6115192", "0.6099697", "0.605432", "0.60331655", "0.60279405", "0.601503", "0.6008349", "0.5966617", "0.5957476", "0.59559965", "0.5947982", ...
0.0
-1
L'objet qui doit "render" pour chaque cellule
public Object getValueAt(int row, int col) { Noeud noeud = noeuds.get(row); //voici les cellules pour chaque colonne return switch (col) { case 0 -> noeud.getNomDuFichier(); case 1 -> noeud.getMot(); case 2 -> noeud.getFrequence(); default -> null; }; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void render(){}", "private void renderObjetos()\n {\n for (int i=0;i<NCONSUMIBLES;i++)\n {\n //EDIT:Ruta de Inventario\n Consumible consumible=(Consumible)VenganzaBelial.atributoGestion.getInv().getItems().get(i);\n if(eleccionJugador==i)\n {...
[ "0.7029481", "0.6882764", "0.67110205", "0.6581751", "0.6546843", "0.6526427", "0.65091985", "0.6506352", "0.6452597", "0.63733953", "0.6302279", "0.62843275", "0.62843275", "0.6256608", "0.62562925", "0.6238521", "0.61606413", "0.61308473", "0.6100115", "0.60914063", "0.6051...
0.0
-1