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
get fitted offer sets correspond to the cell.
public ArrayList<Offer> getFittedOffers(){ return this.FittedOffers; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setFittedOffers(ArrayList<Offer> fittedOffers) {\r\n\t\tFittedOffers = fittedOffers;\r\n\t}", "private Itemsets findFirstCandidateItemsets() {\n\t\t\tItemsets candidateItemsets = new Itemsets();\n\t\t\tItemset[] frequentItemsetsArr = frequentItemsets.keySet().toArray(new Itemset[frequentItemsets.size...
[ "0.5813328", "0.5781191", "0.57552063", "0.5473394", "0.53763056", "0.53480506", "0.5256472", "0.5167554", "0.5070444", "0.50490063", "0.5036968", "0.5009817", "0.5006667", "0.50029093", "0.49743143", "0.4959535", "0.49466175", "0.49264488", "0.4917286", "0.49068886", "0.4827...
0.65712696
0
Set fitted offer sets correspond to the cell.
public void setFittedOffers(ArrayList<Offer> fittedOffers) { FittedOffers = fittedOffers; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setNewFittedOffer(Offer offer){ \r\n\t\t//System.out.println(\"previous offer list size= \"+ this.FittedOffers.size());\r\n\t\tthis.FittedOffers.add(offer);\r\n\t\t//System.out.println(\"current offer list size= \"+ this.FittedOffers.size());\r\n\t}", "protected void setFitness(float fit)\t{\tfitness...
[ "0.66839755", "0.557719", "0.54072636", "0.52550983", "0.52358574", "0.52323294", "0.51758695", "0.51423615", "0.51348525", "0.51309615", "0.512561", "0.51227015", "0.51159424", "0.510742", "0.50502187", "0.504273", "0.5030391", "0.49905723", "0.49295568", "0.4926443", "0.492...
0.6997018
0
get gamma value correspond to the cell.
public double getNewGammaValue() { return newGammaValue; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getGamma() {\r\n return gamma;\r\n }", "public double getGamma()\n {\n return gamma;\n }", "double getGamma();", "public float getGamma() {\n\t\treturn gamma;\n\t}", "public double getGamma() {\n return this.gamma;\n }", "public float getGamma();", "public...
[ "0.7486513", "0.746863", "0.74467313", "0.7372736", "0.73695666", "0.7325164", "0.7167627", "0.6896949", "0.6153785", "0.6117676", "0.6053152", "0.59954304", "0.5920473", "0.5894195", "0.5863151", "0.5834414", "0.58051896", "0.58015835", "0.5769386", "0.572317", "0.5572998", ...
0.6691628
8
set gamma value correspond to the cell.
public void setNewGammaValue(double newGammaValue) { this.newGammaValue = newGammaValue; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setGamma(double value) {\r\n this.gamma = value;\r\n }", "public void setGamma(float gamma) {\n\t\tthis.gamma = gamma;\n\t}", "public void gammaCorrect(double gamma) {\n\n\t\tdouble inverseGamma = 1.0 / gamma;\n\t\tthis.r = Math.pow(r, inverseGamma);\n\t\tthis.g = Math.pow(g, inverseGamma...
[ "0.737139", "0.71274453", "0.6372475", "0.63341314", "0.6105878", "0.6015967", "0.59595793", "0.5874978", "0.5825455", "0.5816348", "0.5809665", "0.5744929", "0.5602882", "0.55379003", "0.5484628", "0.5434951", "0.5412393", "0.54106677", "0.54030496", "0.5382154", "0.53599787...
0.57976955
11
a list of object ID's, freq list of values of probabilities Create and fill the prefix array
public static int customizedRandom(int[] a, Map<String, Integer> expectedNumbers, List<String> neighbours) { int[] prefix = new int[a.length]; prefix[0] = expectedNumbers.getOrDefault(neighbours.get(0), 0); for (int i = 1; i < a.length; i++) { prefix[i] = expectedNumbers.get(neighbo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\r\n\t\tint arr[]={2, 3, 2, 4, 5, 12, 2, 3, 3, 3, 12};\r\n\t\tMap<Integer,Data> map = new HashMap<>();\r\n\t\tfor(int a :arr)\r\n\t\t{\r\n\t\t\tif(map.containsKey(a))\r\n\t\t\t{\r\n\t\t\t\tmap.get(a).incrementFrequency();\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tmap....
[ "0.5712382", "0.554581", "0.5333398", "0.5231929", "0.5200518", "0.511228", "0.51082164", "0.5097193", "0.50911933", "0.5042616", "0.5040465", "0.5038802", "0.5015918", "0.49888897", "0.4981277", "0.49779925", "0.49731678", "0.49700058", "0.49510115", "0.49385393", "0.4907710...
0.0
-1
Sets the current instantiation according to the truth value tv
public void setCurrentInst(boolean tv){ if (tv) currentInst = 1; else currentInst = 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected BooleanValue(Boolean bv) {\n boolValue = bv;\n }", "public HomeState(TV tv) {\n this.tv = tv;\n }", "@Test\n public void testSetHasTemperaturaVariation() {\n System.out.println(\"setHasTemperaturaVariation\");\n boolean value = true;\n Simulacao simulacao =...
[ "0.5793291", "0.5719404", "0.5681186", "0.5511774", "0.5392222", "0.5377241", "0.53283876", "0.5313905", "0.5287766", "0.52744085", "0.52606255", "0.52539325", "0.5248619", "0.52050024", "0.5194276", "0.51699984", "0.51579165", "0.51442826", "0.5136771", "0.5069587", "0.50609...
0.6934008
0
Resets the currentInst field to 1, i.e. node becomes uninstantiated
public void unset(){ currentInst = -1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void resetCurrentElement() {\r\n\t\tcurrentNode = firstNode;\r\n\t}", "public void setUnlabeledInstance(Instance inst){\n\t\tthis._unlabeledInstance = inst;\n\t}", "public static void resetInstance() {\n\t\tinstance = null;\n\t}", "public static void reset() {\n\t\tnodes.clear();\n\t\tid = 0;\n\t}", ...
[ "0.6452986", "0.6214252", "0.6196586", "0.6091187", "0.6055629", "0.6039774", "0.58175254", "0.5799593", "0.56620544", "0.56567585", "0.56453645", "0.5644426", "0.5491065", "0.54625577", "0.5461172", "0.54484344", "0.5437331", "0.5436554", "0.542177", "0.54129267", "0.5377943...
0.73378825
0
Stream.iterate(1, i > i + 3).limit(10)./ filter(i > i % 2 == 0). /forEach(i > System.out.println(i));
public static void main(String[] args) { List<De> d = new ArrayList<De>(); d.add(new De(1, "A", 10.2f)); d.add(new De(2, "B", 33.2f)); d.add(new De(3, "C", 55.2f)); d.add(new De(4, "D", 166.2f)); d.add(new De(5, "E", 18.2f)); d.forEach(k -> System.out.println(k.id)); Map<Integer, String> m = d.strea...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void streamIterate(){\n Stream.iterate(new int[]{0, 1},t -> new int[]{t[1], t[0]+t[1]})\n .limit(20)\n .forEach(t -> System.out.println(\"(\" + t[0] + \",\" + t[1] +\")\"));\n /*\n In Java 9, the iterate method was enhanced with support for a predicate.\n ...
[ "0.712569", "0.63256335", "0.6201333", "0.59979314", "0.59899855", "0.5971149", "0.5829756", "0.57908726", "0.5772725", "0.5751812", "0.5690259", "0.5682964", "0.5612929", "0.55413395", "0.5508597", "0.5477983", "0.54697573", "0.54657096", "0.5412092", "0.53878164", "0.536228...
0.0
-1
An interface for distribution components that need to do receiving from the transport.
public interface Receiving { /** * This method is called just after a message * has been received from some underlying transport * at a particular multicast address. */ public void received(ByteArrayInputStream bis, MetaData metaData) throws IOException, TypeException, ReflectiveOperationExc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface Transport {\n\n /**\n * This method returns id of the current transport\n * @return\n */\n String id();\n\n /**\n * This methos returns Id of the upstream node\n * @return\n */\n String getUpstreamId();\n\n /**\n * This method returns random\n *\n ...
[ "0.67622757", "0.6525154", "0.6406596", "0.6206432", "0.62032235", "0.61891246", "0.6118752", "0.6103629", "0.60776246", "0.6049744", "0.60372657", "0.60092854", "0.59488904", "0.59349793", "0.5911659", "0.58788097", "0.5856738", "0.58453405", "0.5840343", "0.5830381", "0.580...
0.5859566
16
This method is called just after a message has been received from some underlying transport at a particular multicast address.
public void received(ByteArrayInputStream bis, MetaData metaData) throws IOException, TypeException, ReflectiveOperationException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void afterReceive() {\n\t}", "public interface Receiving {\n /**\n * This method is called just after a message\n * has been received from some underlying transport\n * at a particular multicast address.\n */\n public void received(ByteArrayInputStream bis, MetaData metaData) throws ...
[ "0.663253", "0.6121733", "0.60380936", "0.60349625", "0.59711134", "0.5952973", "0.5923401", "0.5840867", "0.58398676", "0.5813876", "0.57510597", "0.57320106", "0.57271206", "0.57188123", "0.5714401", "0.5676671", "0.5654621", "0.5641843", "0.5621167", "0.5619451", "0.559783...
0.0
-1
This method is called just after there has been an error in received from some underlying transport. This passes the exception into the Receiving object.
public void error(Exception e);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void errorReceived(Exception ex) {\n }", "@Override\n public void errorReceived(Exception ex) {\n }", "protected void connectionException(Exception exception) {}", "@Override\n\tpublic void exceptionCaught(ChannelHandlerContext ctx, ExceptionEven...
[ "0.656245", "0.656245", "0.61022085", "0.60483176", "0.6036363", "0.59937525", "0.598778", "0.59371585", "0.59344816", "0.58820695", "0.5881265", "0.5840609", "0.58327484", "0.583207", "0.5815855", "0.5810523", "0.58063835", "0.5777069", "0.57477397", "0.5747606", "0.5740836"...
0.0
-1
This method is called just after there has been EOF in received from some underlying transport.
public void eof();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void onEndOfStream()\n {\n synchronized (f_aBuffSingleInbound)\n {\n synchronized (f_aBuffSingleOutbound)\n {\n if (f_engine.getSession().isValid())\n {\n try\n {\n ...
[ "0.6917042", "0.63855326", "0.6286682", "0.62280387", "0.61811274", "0.61321115", "0.6128363", "0.6078746", "0.6058497", "0.6058497", "0.6058497", "0.6058497", "0.6058497", "0.60556835", "0.6052678", "0.6040873", "0.60372317", "0.5987098", "0.59747", "0.5972712", "0.59634584"...
0.0
-1
Implementing the tree abstract methods:
public int getRowCount() { return(noOfRows); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface TreeNode{\r\n\t\r\n\t// enumerated node types\r\n\tpublic enum NodeType {\r\n\t\tMIN {\r\n\t\t\t@Override\r\n\t\t\tpublic NodeType opposite() {\r\n\t\t\t\treturn MAX;\r\n\t\t\t}\r\n\t\t}, MAX {\r\n\t\t\t@Override\r\n\t\t\tpublic NodeType opposite() {\r\n\t\t\t\treturn MIN;\r\n\t\t\t}\r\n\t\t};\r\n...
[ "0.71246016", "0.69755685", "0.69126046", "0.6894149", "0.67983925", "0.67967427", "0.6787167", "0.6768211", "0.67216516", "0.6711167", "0.6649634", "0.6531314", "0.65273875", "0.6472656", "0.64704", "0.6466673", "0.64291143", "0.6411431", "0.6408882", "0.64084053", "0.640527...
0.0
-1
get the name of the column
public String getColumnName(int c){ return (new Integer(c).toString()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getName(){\n\t\t\treturn columnName;\n\t\t}", "public String getName() {\n return columnName;\n }", "String getColumnName();", "@Override\n public String getName() {\n return columnInfo.getName();\n }", "public String getColumnName() {\r\n return dataBinder.getColumn...
[ "0.85398513", "0.8538655", "0.8449828", "0.8404668", "0.8389183", "0.8218375", "0.8217437", "0.81369084", "0.8104102", "0.804529", "0.80308336", "0.8013733", "0.8011592", "0.8011122", "0.8011122", "0.799943", "0.7998841", "0.79732615", "0.79732615", "0.7971566", "0.79484147",...
0.7520836
66
get the class of the object at column c
public Class getColumnClass(int c) { return this.getValueAt(0, c).getClass(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Class getColumnClass(int c) {\r\n return getValueAt(0, c).getClass();\r\n }", "public Class getColumnClass(int c) \n {\n return getValueAt(0, c).getClass();\n }", "public Class getColumnClass(int c) {\n return getValueAt(0, c).getClass();\n }", "public Cl...
[ "0.7620669", "0.75502497", "0.7519872", "0.7519872", "0.7519872", "0.7510439", "0.74983793", "0.7494649", "0.7494649", "0.74766004", "0.7466272", "0.74539405", "0.74071133", "0.7407072", "0.7381057", "0.73502105", "0.73483145", "0.7338023", "0.72800654", "0.7255836", "0.72558...
0.729418
18
update all observers in Observer list
@Override public void notifyObservers(){ for (Observer o : ol){ //iterate through GameCollection to avoid passing iterator to views Iterator iterator = gc.getIterator(); //if MapView, iterate through game list and provide new state information if (o instanceof MapView){ while(iterator.hasNext()...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void notifyObservers() {\n\t for(Observer o : observers){\r\n\t\t o.update();\r\n\t }\r\n\t}", "@Override\r\n\tpublic void notifyObservers() {\n\t\tfor(Observer o : list) {\r\n\t\t\t// Atualiza a informacao no observador\r\n\t\t\to.update(this, this);\r\n\t\t}\r\n\t}", "@Override\r\n\tpu...
[ "0.8631797", "0.8605111", "0.8547821", "0.852286", "0.845991", "0.8445165", "0.83526003", "0.8335992", "0.8280492", "0.828012", "0.82269543", "0.81668615", "0.7923918", "0.7874968", "0.7835659", "0.77681965", "0.7627907", "0.7529395", "0.75016147", "0.74700135", "0.745767", ...
0.66351813
55
add observers to Observer ArrayList ol
@Override public void addObserver(Observer o){ ol.add(o); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void addObserver(Observer o) {\n listeObservers.add(o);\n getListeMorceau();\n }", "public void addObservers(List<BiObserver<T, V>> l){\n biObserverList.addAll(l);\n }", "public void addObserver(Observer obs) {\n this.listObserver.add(obs);\n }", "@O...
[ "0.807924", "0.7831187", "0.7732314", "0.7726785", "0.7585369", "0.7537383", "0.7399286", "0.73887044", "0.73870015", "0.7375877", "0.7334917", "0.73144513", "0.73092186", "0.7297935", "0.72554356", "0.72082484", "0.71957165", "0.7160284", "0.7146016", "0.7143572", "0.7140953...
0.78826064
1
create an instance of GameWorld with user input
void createWorld(Scanner console){ Random r = new Random(); // System.out.println("Welcome to Sushi Time!"); //System.out.println("Number of fish: "); int fish = r.nextInt(40)+1; //System.out.println("Number of sharks: "); int shark = r.nextInt(10)+1; //create random int for creating random numb...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public GameWorld(){\r\n\t\t\r\n\t}", "public abstract World create(World world);", "private void createWorld() {\n world = new World();\n world.setEventDeliverySystem(new BasicEventDeliverySystem());\n //world.setSystem(new MovementSystem());\n world.setSystem(new ResetPositionSyste...
[ "0.7422492", "0.7308955", "0.7308167", "0.7140528", "0.68528557", "0.68058455", "0.67013186", "0.6616512", "0.6595882", "0.657232", "0.65693545", "0.6567727", "0.65607226", "0.65597534", "0.6526284", "0.6514749", "0.6497307", "0.6418462", "0.64043", "0.6395523", "0.63789755",...
0.61115587
43
print all objects in the GameObject ArrayList
void printObjects(){ Iterator iterator = gc.getIterator(); while(iterator.hasNext()){ GameObject g = iterator.getNext(); if (!(g instanceof Bar))System.out.println(g.toString()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void printObjectList(){\n\t\tfor (int i = 0; i < gameObjectsList.size(); i++){\n\t\t\tSystem.out.println(i + \", \" + gameObjectsList.get(i).getCategory() + \" : Type:\" + gameObjectsList.get(i).getObjecttype() + \" X:\" + gameObjectsList.get(i).getX() + \" Y:\" + gameObjectsList.get(i).getY());\n\t\t}\n\t}...
[ "0.824158", "0.72368497", "0.7061916", "0.6722768", "0.65281904", "0.6447576", "0.6438541", "0.6409196", "0.6404059", "0.6335005", "0.63188577", "0.62364155", "0.6223942", "0.6213919", "0.6202227", "0.6175218", "0.6160609", "0.6157406", "0.6148928", "0.61349475", "0.61305434"...
0.7831425
1
methods to find, grow and create baby fish from parent fish
Fish findFish(){ //step through GameCollection using iterator to find first instance of a fish Iterator iterator = gc.getIterator(); while(iterator.hasNext()){ GameObject g = iterator.getNext(); if (g instanceof Fish)return (Fish)g; } return nullFish; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public Animal newChild() {\n return new Fox(0);\n }", "public BGStem rule(BGStem stem) {\n\t\t\n\t\t// Get node coordinates\n\t\tArrayList <Double> node = new ArrayList<Double>();\n\t\tnode = branch(stem);\n\t\t\n\t\t// add different child stems according to the rule\n\t\tswitch(rule) {\...
[ "0.55157983", "0.53726935", "0.53544444", "0.5352998", "0.5326033", "0.52954614", "0.5249321", "0.52313364", "0.5217388", "0.52122283", "0.5169353", "0.51676553", "0.51648694", "0.51629686", "0.5158023", "0.5155939", "0.5146212", "0.51398903", "0.5128124", "0.51271844", "0.51...
0.5075192
24
for (GameObject g: world)if (g instanceof Seaweed)return (Seaweed)g;
GameObject findSeaweed(){ Iterator iterator = gc.getIterator(); while(iterator.hasNext()){ GameObject g = iterator.getNext(); if (g instanceof Seaweed)return g; } return nullSeaweed; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Fish findFish(){\r\n\t\t//step through GameCollection using iterator to find first instance of a fish\r\n\t\tIterator iterator = gc.getIterator();\r\n\t\twhile(iterator.hasNext()){\r\n\t\t\tGameObject g = iterator.getNext();\r\n\t\t\tif (g instanceof Fish)return (Fish)g;\r\n\t\t}\r\n\treturn nullFish;\r\n\t}", "...
[ "0.5864327", "0.5742805", "0.5730504", "0.57007116", "0.5684811", "0.5618274", "0.5604474", "0.55402386", "0.5538347", "0.5508373", "0.54507935", "0.5346618", "0.5277931", "0.5215871", "0.5214463", "0.5193803", "0.51866037", "0.5166855", "0.5132995", "0.5131617", "0.5129224",...
0.7843104
0
for(GameObject g: world)if (g instanceof Net)return (Net)g;
Net findNet(){ Iterator iterator = gc.getIterator(); while(iterator.hasNext()){ GameObject g = iterator.getNext(); if (g instanceof Net)return (Net)g; } return nullNet; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "GameObject getObject();", "public NetObject getObject();", "GameObject findSeaweed(){\n\t\tIterator iterator = gc.getIterator();\r\n\t\twhile(iterator.hasNext()){\r\n\t\t\tGameObject g = iterator.getNext();\r\n\t\t\tif (g instanceof Seaweed)return g;\r\n\t\t}\r\n\treturn nullSeaweed;\r\n\t}", "private IWorld...
[ "0.5891836", "0.5832082", "0.5727899", "0.56154317", "0.54934955", "0.54463375", "0.544479", "0.5443036", "0.5397901", "0.53918886", "0.5378255", "0.5293183", "0.52715975", "0.52568024", "0.5239583", "0.5234011", "0.5221522", "0.5208541", "0.5205438", "0.5203077", "0.51854634...
0.7944132
0
move net corresponding to use input
void moveNet(char c){ Net n = findNet(); n.move(c); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void fromInputToFirstLayer(Network net, Example example)\r\n\t{\r\n\t\tList<List<Neuron>> neurons = net.getNeurons();\r\n\t\tList<Double> input = example.getInput();\r\n\r\n\t\tfor (int i = 0; i < input.size(); i++)\r\n\t\t\tneurons.get(0).get(i+1).setOutput(input.get(i));\r\n\t}", "private Link mo...
[ "0.6138786", "0.6110796", "0.589485", "0.5830344", "0.561556", "0.5472939", "0.5471726", "0.5413569", "0.5346372", "0.52851313", "0.5255706", "0.5249238", "0.5207239", "0.5159754", "0.5117877", "0.50976527", "0.5087988", "0.5087395", "0.50872606", "0.5078094", "0.5044638", ...
0.6632133
0
accessors to GameCollection on behalf of Game
int checkElapsedTime(){ return gc.getElapsedTime(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "GameCollection getGameCollection(){\r\n\t\treturn gc;\r\n\t}", "public GameCollection() {\n\t\tcollection = new Vector();\n\t}", "protected Game getGame() {\n return game;\n }", "protected Game getGame(){\n\t\treturn game;\n\t}", "public Game getGame()\n {\n return game;\n }", "public Game...
[ "0.7945433", "0.7224376", "0.688955", "0.6820223", "0.6737752", "0.6658726", "0.6547583", "0.6525288", "0.6458508", "0.64536893", "0.64527583", "0.64527583", "0.64527583", "0.64527583", "0.6378933", "0.63470465", "0.6320449", "0.61936635", "0.6180375", "0.61520416", "0.614773...
0.0
-1
accessors to GameCollection for Command classes
GameCollection getGameCollection(){ return gc; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void getGameCommands(){\n\n }", "public interface GameCommand\r\n{\r\n void execute(Game game);\r\n}", "protected String getCommand() {\n\treturn \"GAME\";\n }", "public String getGameCommands(){return \"\";}", "public ArrayList<Command> getCommands(){\n\t\treturn commands;\n\t}", "Comma...
[ "0.73921955", "0.63453627", "0.61120075", "0.60539573", "0.60351557", "0.6033746", "0.5989299", "0.5933141", "0.5877661", "0.5826379", "0.57961214", "0.57860696", "0.5764927", "0.5732484", "0.5732484", "0.5726773", "0.57202613", "0.5680937", "0.567117", "0.56418496", "0.56256...
0.63071173
2
mutator in GameCollection for sound
void setSound(boolean b){ gc.setSound(b); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void makeSound() {\n\n }", "@Override\n public void makeSound() {\n\n }", "@Override\n public SoundClip getGameMusic(){\n return gameMusic;\n }", "void mute() {\n execute(\"player.muted = true\");\n }", "public abstract void makeSound();", "public voi...
[ "0.6527822", "0.6527822", "0.6384619", "0.6221397", "0.6163962", "0.6097734", "0.60428476", "0.60393786", "0.59953773", "0.59682107", "0.5946318", "0.59443426", "0.58503324", "0.58498573", "0.5849465", "0.5823229", "0.58232087", "0.58229", "0.58220214", "0.58170074", "0.58168...
0.5901591
12
TODO does elasticsearch need to be reset?
@Override public void resetStateOfSUT() { try { //FIXME: this fails due to locks on Neo4j. need way to reset it //deleteDir(new File(tmpFolder)); if(!Files.exists(Path.of(tmpFolder))) { Files.createDirectories(Path.of(tmpFolder)); } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Reindex() {}", "private Reindex() {}", "@Override\n protected boolean preserveIndicesUponCompletion() {\n return true;\n }", "@Override\n protected void beforeSearch() {\n index = 0;\n numberOfIterations = 0;\n pageCounter = 0;\n }", "private void ElasticInde...
[ "0.66996825", "0.66996825", "0.6528033", "0.651224", "0.6385051", "0.6217708", "0.61788034", "0.61761016", "0.6050151", "0.6044646", "0.59738356", "0.59663975", "0.5946358", "0.5922935", "0.59156483", "0.58926105", "0.58821726", "0.5859686", "0.5849652", "0.58351564", "0.5826...
0.0
-1
Data la Stringa Json degli Users li inserisce nell'ArrayList e li ordina per punteggio
public void setUsers(String s){ try { alUsers.clear(); JSONArray jsonArray = new JSONArray(s); for(int i=0; i<jsonArray.length(); i++){ JSONObject userObject = jsonArray.getJSONObject(i); String name = userObject.getString("playername"); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createUser(List<User> list) {\n\n Gson gson = new Gson();\n FileService writerService = new FileService();\n for (User user : list) {\n String userData = gson.toJson(user);\n writerService.writeToUserData(userData);\n }\n\n }", "@Override\n publ...
[ "0.6705138", "0.6667577", "0.6650098", "0.6623271", "0.6594406", "0.6361592", "0.62161815", "0.6207082", "0.6157628", "0.6032617", "0.6008519", "0.6004596", "0.5993431", "0.5976013", "0.59664947", "0.5922155", "0.5885486", "0.58788955", "0.586868", "0.5865561", "0.5854138", ...
0.6275392
6
Dato l'id di un personaggio ritorna l'oggetto character
public Character getCharacterWithId(int id){ for(Character c : alCharacter){ if(c.getId() == id){ return c; } } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getAoisId();", "public String getInoId();", "private String getIdioma()\n throws MareException\n {\n\t\tLong idioma = UtilidadesSession.getIdioma(this);\n\t\treturn idioma.toString();\n }", "public Long getPersonaId();", "public String getIdAeroporto()\n {\n return t...
[ "0.64699984", "0.63669807", "0.63347507", "0.61600035", "0.6159187", "0.61480325", "0.6147414", "0.612781", "0.611189", "0.6107877", "0.6097328", "0.6094751", "0.6091906", "0.60439736", "0.6017633", "0.6009675", "0.5996351", "0.59931123", "0.59789497", "0.5967988", "0.5965897...
0.0
-1
Dato il nome di un personaggio presente nella partita corrente, ritorna la sua posizione all'interno dell'arraylist
public int getCharaterPositionWithName(String s){ int i; for(i = 0; i<alCharacter.size(); i++){ String nameNextChar = alCharacter.get(i).getName(); if(s.equals(nameNextChar)){ break; } } return i; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic ArrayList<String> partecipantiListaElettorale(String nome) {\n\t\tDB db = getDB();\n\t\tMap<Integer, Lista> map = db.getTreeMap(\"liste\");\n\n\t\tSet<Integer> keys = map.keySet();\n\t\tfor (int key : keys) {\n\t\t\tif (map.get(key).getNomeLista().equals(nome)) {\n\t\t\t\treturn map.get(key).ge...
[ "0.6411344", "0.63429385", "0.62477887", "0.6134062", "0.607564", "0.6058372", "0.6039012", "0.5928794", "0.5923904", "0.5918272", "0.5894202", "0.58918065", "0.58901596", "0.5883548", "0.5790892", "0.5778573", "0.5771746", "0.5757112", "0.5754665", "0.57535166", "0.5752915",...
0.0
-1
Get and Set for position.
protected int getX() { return x; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPosition(Position pos);", "public void setPosition(Position p);", "public void setPosition(Integer position);", "void setPosition(Position p);", "public void PositionSet(int position);", "public void setPosition(int position);", "public abstract void setPosition(Position position);", "...
[ "0.77611667", "0.7712322", "0.7622496", "0.7617694", "0.75304157", "0.7524017", "0.7487678", "0.74725676", "0.74725676", "0.7419383", "0.7419383", "0.7369797", "0.7354257", "0.73302287", "0.726802", "0.7247141", "0.7247141", "0.7224129", "0.7211684", "0.7207877", "0.71658814"...
0.0
-1
Used to create a new checker of that checker's color.
abstract Checker newChecker(int x, int y);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "RGB getNewColor();", "void testColorChecker(Tester t) {\r\n initData();\r\n Cell topLeft = (Cell) this.game7.indexHelp(0, 0);\r\n Cell topRight = (Cell) this.game7.indexHelp(1, 0);\r\n Cell botLeft = (Cell) this.game7.indexHelp(0, 1);\r\n Cell botRight = (Cell) this.game7.indexHelp(1, 1);\r\n t...
[ "0.62894833", "0.6278806", "0.62390274", "0.60078263", "0.592103", "0.5895342", "0.5878715", "0.58585125", "0.58415323", "0.5837061", "0.58155614", "0.5803248", "0.57548136", "0.569008", "0.56606805", "0.5643441", "0.5609496", "0.56013757", "0.5543921", "0.55391216", "0.55027...
0.5786077
12
Will return a color defined by derived class.
abstract public String getColor();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract Color getColor();", "abstract Color getColor();", "public abstract BossColor getColor();", "abstract String getColor();", "@Override\n public String getColor() {\n return this.color.name();\n }", "@Override\n public ShapeColor getColor() {\n return new ShapeColor(this.r, ...
[ "0.7767951", "0.77630264", "0.70823675", "0.7019084", "0.6992399", "0.69753426", "0.6894162", "0.6894162", "0.6894162", "0.6894162", "0.6894162", "0.68890893", "0.6879362", "0.6879362", "0.6879362", "0.68737936", "0.68674976", "0.68584", "0.67943525", "0.6787476", "0.6773012"...
0.72276604
3
Abstract functions for use by the derived class as direction of the board varies.
abstract public void moveForward();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void easyMove(Board board) {\n\t\t\r\n\t}", "public abstract Move getMove(Board board);", "public abstract void buildMoveData(ChessBoard board);", "public abstract void move( char direction );", "public abstract void buildMoveData(HexagonalBoard board);", "public abstract int getDirection();", ...
[ "0.69885665", "0.6764499", "0.6683394", "0.66371405", "0.663649", "0.6624993", "0.65018916", "0.6458022", "0.6430861", "0.6430634", "0.63994163", "0.6389687", "0.6369846", "0.6365229", "0.635723", "0.635723", "0.635723", "0.635723", "0.635723", "0.635723", "0.635723", "0.63...
0.6272775
25
Ensure we're within the board.
public boolean isValid() { return (x >= 0 && x < Board.SIZE && y >= 0 && y < Board.SIZE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void checkRep() {\n assert(wall.p1().x() >= BOARD_MIN_BOUND && wall.p1().x() <= BOARD_MAX_BOUND) :\n \"x coordinate of p1 must be within in the board\";\n assert(wall.p2().x() >= BOARD_MIN_BOUND && wall.p2().x() <= BOARD_MAX_BOUND) :\n \"x coordinate of p2 must be with...
[ "0.7490428", "0.7372147", "0.72023433", "0.6804962", "0.6721428", "0.6703071", "0.6684151", "0.66794264", "0.66353476", "0.66327673", "0.6616616", "0.6579864", "0.65707195", "0.65360266", "0.65353906", "0.6453019", "0.64471334", "0.6441727", "0.64133257", "0.6395298", "0.6377...
0.6768546
4
Used to help with kings.
public boolean endOfBoard() { return (y == 0 || y == Board.SIZE - 1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private FlyWithWings(){\n\t\t\n\t}", "private void kk12() {\n\n\t}", "@Override\n protected void start() {\n System.out.println(\"Bike Specific Brake\");\n }", "@Override\n protected void brake() {\n System.out.println(\"Bike Specific Brake\");\n }", "void printParking();", "@Ov...
[ "0.61811656", "0.61472636", "0.5740804", "0.56825864", "0.5637156", "0.55588394", "0.5557547", "0.5505076", "0.54773766", "0.54638493", "0.54370487", "0.5436354", "0.5411514", "0.53416073", "0.5339527", "0.5330921", "0.5274987", "0.52593464", "0.52534354", "0.5235969", "0.522...
0.0
-1
Get all possible jump moves; second parameter to only allow chainable moves (used when double jumping).
public ArrayList<Move> getJumpMoves(Board curBoard, boolean onlyChainable) { return myType.getJumpMoves(curBoard, onlyChainable, this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public Map<Direction, List<Coordinate>> getPossibleMoves() {\n\n Map<Direction, List<Coordinate>> moves = new HashMap<>();\n\n Coordinate coordinate = this.getCoordinate();\n int row = coordinate.getRow();\n int col = coordinate.getCol();\n\n //Jumps\n List<...
[ "0.71677554", "0.7055636", "0.678712", "0.66032624", "0.65720993", "0.63490844", "0.6251342", "0.6146449", "0.6110943", "0.6026488", "0.5916114", "0.5895848", "0.57675815", "0.575854", "0.5749435", "0.57343656", "0.5733479", "0.5732532", "0.57058716", "0.5703099", "0.5692605"...
0.6532638
5
Get all possible regular moves; second parameter to only allow chainable moves (used when double jumping).
public ArrayList<Move> getRegularMoves(Board curBoard, boolean onlyChainable) { return myType.getRegularMoves(curBoard, onlyChainable, this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public List<Move> getPossibleMoves();", "public ArrayList<Cell> getPseudoLegalMoves() {\n\n Cell[][] board = Board.getBoard();\n ArrayList<Cell> moves = new ArrayList<Cell>();\n\n //Possible ways to move a knight\n int[][] possibleOffsets = {{-2,-1},{-2,1},{-1,-2},{-1,2},{1,-...
[ "0.71157384", "0.67832166", "0.67566746", "0.653827", "0.6455479", "0.63458335", "0.6307706", "0.6266227", "0.62627006", "0.6242111", "0.6211819", "0.6200217", "0.61959463", "0.6195052", "0.6130961", "0.6101517", "0.6078783", "0.6071811", "0.60663307", "0.60454726", "0.600549...
0.6812016
1
Created by HuangYanfei on 2018/11/8.
public interface CaptureImgService { String captureImg(HttpServletRequest re, String url, String size) throws IOException; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\r\n\tpu...
[ "0.6035497", "0.6011667", "0.5731827", "0.5731827", "0.56960946", "0.56871814", "0.56711954", "0.56466347", "0.5628532", "0.56116945", "0.5604931", "0.5599245", "0.55548716", "0.5550231", "0.5549911", "0.55456764", "0.5530675", "0.55154276", "0.55152076", "0.549629", "0.54884...
0.0
-1
Add a player in the list only if inclusion of new players is allowed.
public boolean addPlayer(Player player){ if(this.canAdd){ this.players.add(player); if(this.players.size() == 2) this.nextElem = 1; } return this.canAdd; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addPlayerToTheList(){\n \tif(!txtFieldPlayerName.getText().trim().isEmpty() && totPlayers <= maximumPlayersAllowed){\n\t\t\t\n \t\t//creates a new Player and adds the name that the user inputs from the textField\n\t\t\tplayer.add(new Player(txtFieldPlayerName.getText()));\n\t\t\n\t\t\tString play...
[ "0.7770727", "0.73560065", "0.71622", "0.7138201", "0.6948595", "0.69124067", "0.682152", "0.66753227", "0.66713953", "0.66440326", "0.66412574", "0.6588741", "0.6534106", "0.6513277", "0.6496004", "0.6480239", "0.6473668", "0.6469277", "0.6417994", "0.63870263", "0.6382772",...
0.6996374
4
Return the status of the players. This status is a formated string composed by manys "PlayerName : NumberOfCards".
public String getPlayersStatus(){ String pStatus = ""; Player player; for(int i = 0; i < this.players.size(); i++){ player = this.players.get(i); pStatus += "[" +player.getName() + ": "; pStatus += Integer.toString(player.numCards()) + "] "; } return pStatus; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getStateOfPlayer(PlayerController playerController)\n {\n // This function is used to print the state of the player\n String str = \"\";\n str += \"Player ID:\"+playerController.getPlayerId()+\" Points-> \"+playerController.getPoints()+\" Total_Fouls_Count-> \"+ playerController.get...
[ "0.6882873", "0.68353677", "0.6726423", "0.66162586", "0.6566254", "0.644157", "0.63953614", "0.63901156", "0.63800246", "0.6222866", "0.6167365", "0.6131135", "0.61190754", "0.60999197", "0.60813713", "0.60787874", "0.60787874", "0.60787874", "0.60787874", "0.60638267", "0.6...
0.87983686
0
Get the number of players in the list.
public int getNumPlayers(){ return this.players.size(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int numPlayers() {\n return playerList.size();\n }", "public int getNumOfPlayers() {\n\t\treturn playerList.size();\n\t}", "public int playersCount(){\r\n\t\treturn players.size();\r\n\t}", "public int countPlayers(){\n return players.size();\n }", "public int playerCount() {\n\t...
[ "0.86141336", "0.85799825", "0.8456984", "0.8339148", "0.83381724", "0.8203137", "0.8199928", "0.8113771", "0.8108145", "0.8065781", "0.8064929", "0.8009931", "0.80028087", "0.7949091", "0.7907273", "0.78597844", "0.77356696", "0.7666627", "0.7631512", "0.75637573", "0.751267...
0.8327622
5
Signal to stop allowing new players.
public void lockAdd(){ this.canAdd = false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void stop()\r\n {\r\n player.stop();\r\n }", "private void stop(){ player.stop();}", "private void stopPlayer() {\n if (player != null) {\n player.release();\n Toast.makeText(this, \"player released\", Toast.LENGTH_SHORT);\n player = null;\n }...
[ "0.67402667", "0.6676704", "0.64716476", "0.6407673", "0.63147146", "0.6261325", "0.62279296", "0.6224891", "0.61903703", "0.61869097", "0.6163601", "0.61468667", "0.6144082", "0.61337394", "0.6127538", "0.61185795", "0.6108939", "0.61006206", "0.6019409", "0.60084426", "0.60...
0.0
-1
Signal to allow new players.
public void unlockAdd(){ this.canAdd = true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public LogToPlayerSender listenForNewPlayers() {\n plugin.getServer().getPluginManager().registerEvents(this, plugin);\n return this;\n }", "void playerAdded();", "@Override\n public void addPlayer(Player player) {\n\n if(steadyPlayers.size()>0){\n PlayersMeetNotification....
[ "0.70369935", "0.662744", "0.65186536", "0.6472137", "0.6453359", "0.63944715", "0.63795847", "0.6349271", "0.6329147", "0.6243071", "0.6203206", "0.61971337", "0.61722374", "0.6171787", "0.6170893", "0.6150992", "0.6140672", "0.60931474", "0.6089065", "0.60676455", "0.606371...
0.0
-1
Get the direction of the rotation of the players.
public String getDirection(){ if(this.toRight) return "RIGHT"; else return "LEFT"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic float getRotation() {\n\t\treturn player.getRotation();\n\t}", "float getDir() {\n return degrees(_rotVector.heading());\n }", "public double getRotation();", "public double direction(){\n return Math.atan2(this.y, this.x);\n }", "public double getRotation() {\n ret...
[ "0.73938096", "0.7118182", "0.7050942", "0.7003758", "0.6904342", "0.6862393", "0.6708629", "0.66727406", "0.66672075", "0.6527108", "0.6525012", "0.6480309", "0.64655465", "0.6459238", "0.64549613", "0.64366215", "0.642884", "0.64076364", "0.63957244", "0.6364293", "0.634369...
0.6451512
15
Change the direction of the rotation.
public void changeDirection(){ this.toRight ^= true; if(this.toRight) this.nextElem = (this.currElem + 1) % players.size(); else this.nextElem = (this.currElem - 1 + players.size()) % players.size(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void rotate(int direction){\n\t\t//Gdx.app.debug(TAG, \"rotating, this.x: \" + this.x + \", this.y: \" + this.y);\n\t\tif (direction == 1 || direction == -1){\n\t\t\tthis.orientation = (this.orientation + (direction*-1) + 4) % 4;\n\t\t\t//this.orientation = (this.orientation + direction) % 4;\n\t\t} else{\...
[ "0.7271487", "0.7264928", "0.720397", "0.7196004", "0.70648915", "0.7060907", "0.6972969", "0.69238293", "0.6825363", "0.6816887", "0.6802218", "0.6788822", "0.67575395", "0.6749061", "0.6747064", "0.67199874", "0.67107654", "0.67009807", "0.6665397", "0.6642735", "0.6621297"...
0.6074332
96
Rotate only the next player.
public void rotateNextPlayer(){ if(this.toRight) this.nextElem = (this.nextElem + 1) % players.size(); else this.nextElem = (this.nextElem - 1 + players.size()) % players.size(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void rotateRight() {\n\t\tsetDirection((this.getDirection() + 1) % 4);\r\n\t}", "public void onRightPressed(){\n player.setRotation(player.getRotation()+3);\n\n }", "@Override\r\n\tpublic void rotateLeft() {\n\t\tsetDirection((this.getDirection() + 3) % 4);\r\n\t}", "public vo...
[ "0.6464505", "0.6463837", "0.6445111", "0.642041", "0.6355862", "0.6346115", "0.6338979", "0.63384455", "0.63319176", "0.62910515", "0.6290677", "0.617448", "0.6172643", "0.6171977", "0.61556995", "0.6145222", "0.6098877", "0.6076459", "0.60638237", "0.60275406", "0.6023026",...
0.8414127
0
Get the current player.
public Player getCurrent(){ Player p; try{ p = this.players.get(this.currElem); } catch(IndexOutOfBoundsException e){ System.out.println("There isn't any players."); p = null; } return p; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Player getCurrentPlayer() {\n return currentPlayer;\n }", "public Player getCurrentPlayer() {\n return currentPlayer;\n }", "public ServerPlayer getCurrentPlayer() {\r\n\t\treturn this.currentPlayer;\r\n\t}", "public String getCurrentPlayer() {\n\t\treturn _currentPlayer;\n\t}", ...
[ "0.87128574", "0.87128574", "0.8612241", "0.8484393", "0.84519434", "0.8431457", "0.839031", "0.8385846", "0.8365647", "0.83213437", "0.82913834", "0.8279891", "0.8279891", "0.82727456", "0.823958", "0.81004894", "0.80569327", "0.80235314", "0.8021336", "0.8007991", "0.800328...
0.6998593
82
Get the next player.
public Player getNext(){ return this.players.get(this.nextElem); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Player nextPlayer() {\n Player next = players.get(nextPlayerIdx++);\n nextPlayerIdx %= players.size(); \n \n return next;\n }", "public Player nextPlayer() {\n\t\temptyPlayer = currentPlayer;\n\t\tcurrentPlayer = nextPlayer;\n\t\tnextPlayer = emptyPlayer;\n\t\treturn (currentPlayer);\n\t}", ...
[ "0.8323868", "0.805763", "0.79955786", "0.79193264", "0.78220004", "0.77245957", "0.75913906", "0.74933416", "0.73304266", "0.72692275", "0.7214895", "0.70429444", "0.7040877", "0.6985156", "0.6908806", "0.68809336", "0.68809336", "0.6874829", "0.68184996", "0.6791025", "0.67...
0.8140471
1
Look for a player that have no more cards in the hand.
public Player lookForWinner(){ for(int i = 0; i < this.players.size(); i++){ if(this.players.get(i).numCards() == 0) return this.players.get(i); } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getCardsRemaining(int player) {\n return players[player].getHand().size();\n }", "public void giveOutCards() {\n boolean shared = false;\n while (!shared) {\n for (Player player : this.players) {\n if (this.cards.size() == 0) {\n shared = t...
[ "0.6721768", "0.6614659", "0.6590071", "0.65426123", "0.6477071", "0.6407566", "0.6403369", "0.6348852", "0.6309802", "0.6299674", "0.6245224", "0.6243368", "0.61879265", "0.61428875", "0.6127369", "0.6115902", "0.60952926", "0.60932404", "0.6020461", "0.6012704", "0.6010926"...
0.66986775
1
/ Insert your data first, then create your index.
@Override public void onCreate(SQLiteDatabase db) { Log.w(TAG, ">>> Start db creation"); db.execSQL(SQL_CREATE_PERMISSION); db.execSQL(SQL_CREATE_INVOKE); AssetManager assetManager = App.getContext().getAssets(); try { populateDbWithPermissions(db, assetManager); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addIndex(){\n\t\tdbCol=mdb.getCollection(\"genericCollection\");\n\t\tstart=Calendar.getInstance().getTimeInMillis();\n\t\tdbCol.ensureIndex(new BasicDBObject(\"RandomGeo\", \"2d\"));\n\t\tstop = Calendar.getInstance().getTimeInMillis() - start;\n\t\tSystem.out.println(\"Mongo Index Timer \"+Long.toStr...
[ "0.6680948", "0.6600687", "0.65943205", "0.6399496", "0.6356087", "0.6331194", "0.630589", "0.62900275", "0.62767565", "0.62604547", "0.6237", "0.6198802", "0.619454", "0.61490357", "0.6139183", "0.608043", "0.60373765", "0.60341674", "0.60255176", "0.60193545", "0.60042185",...
0.0
-1
Created by Administrator on 2017/7/13.
@Transactional public interface NoticeDao { //插入通知消息 public List<NoticeModel> findNoticeByUserId(String userId); public List<NoticeModel> findNoticeByUserIdNo(String userId); public List<NoticeModel> findNoticeByUserId(String userId, Integer pageNo, Integer pageSize); public void insert(NoticeModel...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Ov...
[ "0.6280893", "0.6138909", "0.58841705", "0.58840454", "0.5844398", "0.5830612", "0.5765251", "0.5747122", "0.5738348", "0.5728063", "0.57242966", "0.57242966", "0.57089293", "0.5700324", "0.568796", "0.5679885", "0.5679885", "0.5679513", "0.56715107", "0.5668574", "0.5655552"...
0.0
-1
ModelAndView mv = new ModelAndView("task/Task"); JSONArray jarr = getWeekStatistic();
@RequestMapping(value="savetask") public ModelAndView savetask(HttpServletResponse response, Integer taskid, String taskname,String tasktype,String taskcontent,String taskcomment){ Integer ref = saveTask(taskid,taskname,taskname,taskcontent,taskcomment); ref = ref+1; System.out.println(ta...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ModelAndView getTaskProgressDetails(HttpServletRequest request, HttpServletResponse response) {\n JSONObject jobj = new JSONObject();\n boolean issuccess = false;\n String msg = \"\";\n try {\n \n /*Get Task Progress Related Parameters*/\n Map<St...
[ "0.60028636", "0.57868016", "0.5651633", "0.5636404", "0.55499756", "0.55280274", "0.54931736", "0.54669815", "0.54450965", "0.53857344", "0.5372914", "0.535391", "0.5348399", "0.53179955", "0.52522737", "0.52444065", "0.5215396", "0.52049255", "0.5203458", "0.51985645", "0.5...
0.50309944
32
save the task info to DB
private Integer saveTask(Integer taskid,String taskname,String tasktype,String taskcontent, String taskcomment){ return 1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void saveTask(){\n \tZadatakApp app = (ZadatakApp)getApplicationContext();\n \t\n \tTask task = new Task();\n \ttask.set(Task.Attributes.Name, nameText);\n \ttask.set(Task.Attributes.Duedate, datePicker);\n \ttask.set(Task.Attributes.Hours, lengthText);\n \ttask.set(Task.Attributes.Pro...
[ "0.8149579", "0.76961726", "0.7504535", "0.7476573", "0.7357044", "0.7182301", "0.70263004", "0.69918275", "0.69566464", "0.69184804", "0.6831007", "0.671413", "0.67138547", "0.6562756", "0.655736", "0.6556667", "0.65242213", "0.65169966", "0.6503391", "0.64308584", "0.641921...
0.7179769
6
This solver is exhaustive, and should be used to solve sudokus. It will track multiple solutions and print them out.
@Override public boolean solve(Board board){ solve(board, 0); if(multiList.isEmpty()){ return true; } else{ return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void solveSingleSolution() {\n SPL M1 = this;\n\n int counter = 1;\n\n for(int i=0; i < this.NBrsEff; i++) {\n System.out.println(\"x\" + counter + \" = \" + M1.M[i][this.NKolEff-1]);\n this.Solusi += \"x\" + counter + \" = \" + M1.M[i][this.NKolEff-1];\n ...
[ "0.6695793", "0.66691065", "0.6469262", "0.64337355", "0.6370384", "0.62379277", "0.6158299", "0.6116611", "0.6043614", "0.5997823", "0.59885395", "0.598305", "0.5907599", "0.5893137", "0.58792037", "0.58729196", "0.586497", "0.5844744", "0.5829611", "0.57966644", "0.5796556"...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) throws InterruptedException { System.setProperty("webdriver.chrome.driver", "F:\\Software\\chromedriver\\chromedriver.exe"); WebDriver driver = new ChromeDriver(); driver.get("https://www.cleartrip.com/"); Thread.sleep(2000L); WebElement Adult = driver.findElement(By...
{ "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
Use GridBagLayout for dialog user choices
public DialogBoxGridBagLayout(JFrame aOwner) { super(aOwner, true/* modal */); Dimension tDim; _fileDir = "."; _panel = new JPanel(); getContentPane().add(_panel); // create _firstNameLabel and _firstNameComboBox createComponentsRow1(); // create _lastNameLabel an...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void buildDialogWindow(Ingredient aIng) {\n\t\t\n \t\tGridBagLayout layout = new GridBagLayout();\n GridBagConstraints lc = new GridBagConstraints();\n getContentPane().setLayout(layout);\n\n \n lc.anchor = GridBagConstraints.EAST;\n lc.insets = new Insets(5, 5, 5, 5);\n\n ...
[ "0.72592777", "0.71754557", "0.6853378", "0.66627735", "0.6602087", "0.65386575", "0.65142024", "0.6493085", "0.6488232", "0.6477106", "0.6459037", "0.6443627", "0.64147687", "0.64063454", "0.63669217", "0.63610154", "0.63501376", "0.6341643", "0.6328519", "0.632584", "0.6317...
0.70463437
2
Create the panel to hold the file text field/browse button combination.
JPanel createFilePane() { /* * Use a BoxLayout pane for the filename field and browse button. */ JPanel tFilePane = new JPanel(); tFilePane.setLayout(new BoxLayout(tFilePane, BoxLayout.LINE_AXIS)); tFilePane.add(_fileTextField); tFilePane.add(Box.createRigidArea(new Dimens...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public FilePanel() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "public FileReaderPanel()\r\n\t{\r\n\t\t// Set layout of this FileReaderPanel to BorderLayout.\r\n\t\tsetLayout(new BorderLayout());\r\n\t\t\r\n\t\t\r\n\t\t// Initialize load file sub-panel.\r\n\t\tJPanel loadFilePanel = new JPanel();\r\n\t\tloadFilePa...
[ "0.71765137", "0.71140504", "0.70294", "0.7007062", "0.682879", "0.67758423", "0.6649112", "0.6627506", "0.6562504", "0.65104634", "0.6491197", "0.6450527", "0.6447129", "0.63889277", "0.63786745", "0.63771915", "0.63547933", "0.63378584", "0.6334065", "0.63152647", "0.630122...
0.78413063
0
Create the ok and cancel button pane and its components.
JPanel createButtonPane() { // create the Ok button _okButton = new JButton("OK"); _okButton.addActionListener(this); _panel.add(_okButton); // create the Cancel button _cancelButton = new JButton("Cancel"); _cancelButton.addActionListener(this); _panel.add(_cancelBut...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createButtonComp() {\n GridData gd = new GridData(SWT.CENTER, SWT.DEFAULT, true, false);\n Composite okBtnComp = new Composite(shell, SWT.NONE);\n GridLayout okBtnCompLayout = new GridLayout(2, true);\n okBtnComp.setLayout(okBtnCompLayout);\n okBtnComp.setLayoutData(...
[ "0.74646294", "0.74280345", "0.73233294", "0.7206081", "0.71816146", "0.70963234", "0.6939852", "0.69265854", "0.6919402", "0.69190973", "0.6901791", "0.6828874", "0.68193734", "0.6801293", "0.67978084", "0.67920965", "0.6791196", "0.67900896", "0.67767537", "0.67753935", "0....
0.7781102
0
talvez criar um objeto para encapsular deliveryAddress, costumerName, costumerTelephone talvez criar um objeto para os dados da compra: encapsular orderTotalPrice, comment, date, description
public Order(String deliveryAddress, String customerName, double orderTotalPrice, String id, String description, String customerTelephone, String comment, String pharmacyId, Date date, String userToken) { this.deliveryAddress = deliveryAddress; this.customerName = customerName; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ServiceOrder(String carVIN, String serviceDesc, String serviceDate, String partsUsed, int techID, int dealershipID, double partsCost, double totalCost, double laborHours){\n serviceNumber++;\n this.serviceDate = serviceDate;\n this.carVIN = carVIN;\n this.serviceDesc = serviceDesc;\n ...
[ "0.6753157", "0.6514058", "0.6296654", "0.62355524", "0.61515653", "0.6011335", "0.6009176", "0.59862393", "0.5972224", "0.59567815", "0.59061235", "0.58913887", "0.5887139", "0.58687985", "0.58486634", "0.5815721", "0.5803898", "0.5803784", "0.5786369", "0.5766638", "0.57258...
0.6250711
3
Intentional: Reverse order for this demo
public int compare(ListNode o1, ListNode o2) { return o1.val-o2.val; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void FlipBook()\r\n\t\t{\r\n\t\t\t Collections.reverse(this);\r\n\t\t}", "void reverseTurnOrder() {\n turnOrder *= -1;\n }", "public void _reverse() {\n\n var prev = first;\n var current = first.next;\n last = first;\n last.next = null;\n while (current != null) {\...
[ "0.6943052", "0.68969387", "0.6564606", "0.65421724", "0.6513824", "0.64713055", "0.6468579", "0.63565874", "0.63565874", "0.6299703", "0.6227866", "0.61979365", "0.6166751", "0.6156179", "0.6156179", "0.6156179", "0.6139207", "0.6132773", "0.6073625", "0.60542756", "0.605340...
0.0
-1
Constructing game screen, creates world and sets camera.
public GameScreen(Cyra game, float difficulty) { super(game); float width = Gdx.graphics.getWidth()/45; float height = Gdx.graphics.getHeight()/45; ParallaxCamera cam = new ParallaxCamera(width, height); world = new World(game, level, difficulty, cam); render = new WorldRenderer(world, cam); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createWorld() {\n world = new World();\n world.setEventDeliverySystem(new BasicEventDeliverySystem());\n //world.setSystem(new MovementSystem());\n world.setSystem(new ResetPositionSystem());\n world.setSystem(new RenderingSystem(camera, Color.WHITE));\n\n Inp...
[ "0.76128536", "0.7235135", "0.71315", "0.69765204", "0.6964", "0.69638705", "0.68237406", "0.681198", "0.6784508", "0.6739683", "0.6692846", "0.6668073", "0.66468817", "0.66291517", "0.6626481", "0.6579421", "0.6520707", "0.6503499", "0.65008444", "0.6472235", "0.6471657", ...
0.63469887
31
The main game loop.
public void render(float delta) { super.render(delta); world.update(); render.render(); /*if (firstUpdate) { render.resetCamera(); firstUpdate = false; }*/ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mainLoop() {\r\n while (isRunning()) {\r\n update();\r\n }\r\n }", "public void run() {\n \twhile(true) {\n \t \tsetupGame();\n \tplayGame();\n \t}\n }", "public void run() \r\n {\r\n // get the instance of the graphics object\r\n Gr...
[ "0.8094568", "0.80341506", "0.77803767", "0.76638687", "0.76372105", "0.7628386", "0.76215106", "0.7618162", "0.75892144", "0.7513893", "0.749717", "0.74942654", "0.746959", "0.74414", "0.743943", "0.7425642", "0.7375211", "0.73727137", "0.7350845", "0.73390764", "0.73326045"...
0.0
-1
Creates new form student
public student() { this.setExtendedState(this.getExtendedState() | this.MAXIMIZED_BOTH); initComponents(); jLabel6.setVisible(false); jLabel7.setVisible(false); jLabel8.setVisible(false); jButton2.setVisible(false); jLabel9.setVisible(false); jCom...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@GetMapping(\"/students/new\")\r\n\tpublic String createStudentForm(Model model) {\n\t\tStudent student =new Student();\r\n\t\tmodel.addAttribute(\"student\",student);\r\n\t\treturn \"create_student\";\r\n\t}", "private void addStudent() {\n\t\t\n\t\tString lastName = sLastNameTF.getText();\n\t\tString firstName...
[ "0.78319263", "0.7713299", "0.73472047", "0.7306912", "0.7263642", "0.700614", "0.69753915", "0.69395006", "0.69366866", "0.6898295", "0.6813383", "0.67454416", "0.6726714", "0.6704676", "0.6672739", "0.66675335", "0.6654063", "0.662715", "0.6594643", "0.65931803", "0.6584493...
0.0
-1
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() { jLabel1 = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); jLabel3 = new javax.swing.JLabel(); jLabel4 = new java...
{ "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.7319037", "0.7290621", "0.7290621", "0.7290621", "0.7285163", "0.72480375", "0.72130316", "0.7207723", "0.7195822", "0.7189463", "0.7183591", "0.71580946", "0.7147075", "0.70924276", "0.70795405", "0.7056352", "0.6986753", "0.6976759", "0.6954958", "0.69533294", "0.6944831...
0.0
-1
GENFIRST:event_jComboBox2ActionPerformed TODO add your handling code here:
private void jComboBox2ActionPerformed(java.awt.event.ActionEvent evt) { if (jComboBox2.getSelectedItem() == "MCA") { jComboBox1.removeAllItems(); jComboBox3.removeAllItems(); jComboBox1.addItem("Computer"); jComboBox1.setSelectedItem...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void jComboBox2ActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void jComboBox3ActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void jComboBox1ActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void jComboBox1ActionPerformed(java.awt.event.Action...
[ "0.90401804", "0.8530146", "0.8526802", "0.8526802", "0.8526802", "0.8526802", "0.8526802", "0.8367324", "0.8348879", "0.777984", "0.76408595", "0.736682", "0.73080945", "0.7213133", "0.7162104", "0.7101403", "0.7101403", "0.7101403", "0.7101403", "0.7085022", "0.70813245", ...
0.7971046
9
Trying to find common SQLI inside the components found by art
static AnalysisResult analyseQueryComponents(ArrayList<String> components) { if (components != null && components.size() > 0) { for (int i = 0; i < components.size(); i++) { String component = components.get(i).toLowerCase(); for (String attack : commonAttacks) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testDatabaseProductNames() throws SQLException\r\n {\r\n assertEquals(\"org.datanucleus.store.rdbms.adapter.DerbyAdapter\", factory.getAdapterClass(pluginMgr, null, \"Apache Derby\", clr).getName());\r\n assertEquals(\"org.datanucleus.store.rdbms.adapter.DerbyAdapter\", factory.getAdap...
[ "0.56174743", "0.54451835", "0.54411376", "0.53191316", "0.52880174", "0.5277323", "0.52631354", "0.5199506", "0.5167365", "0.51556045", "0.5139158", "0.51117986", "0.5094115", "0.50807726", "0.5045481", "0.5037039", "0.50321394", "0.5027761", "0.50228673", "0.50206494", "0.5...
0.5269299
6
Maybem it's in the query itself for some reason
static AnalysisResult analyseQuery(String query) { for (String attack : commonAttacks) { attack = attack.toLowerCase(); if (trim(query.toLowerCase()).contains(trim(attack))) { return new AnalysisResult(true, null, attack, true); } } return new ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void montaQuery(Publicacao object, Query q) {\t\t\n\t}", "@Override\n\tpublic void queryData() {\n\t\t\n\t}", "@Override\n\tpublic boolean hasSubquery() {\n\t\treturn false;\n\t}", "public Query advancedQuery() \n {\n return null;\n }", "@Override\n public boolean hasNext() {\n return !que...
[ "0.6063703", "0.6012975", "0.59135514", "0.5838703", "0.5794445", "0.5764274", "0.5698426", "0.5559588", "0.55520684", "0.55089694", "0.5475483", "0.5459421", "0.5450045", "0.5448361", "0.54475105", "0.5439882", "0.5381812", "0.53791803", "0.53556585", "0.53429854", "0.533034...
0.0
-1
the default trim function doesn' t trim the space between quotes.
private static String trim(String s) { return s.replace(" ", ""); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public String trim(final String toTrim) {\n return replaceAll(toTrim, \"\\u00A0\", \" \").trim();\n }", "public static String trim(String s) {\r\n\t\treturn Escape.collapseWhitespace(Escape.forDoubleQuotedString(s, true).trim());\r\n\t}", "private String getTrimmedValue(String value) {...
[ "0.77473944", "0.74640507", "0.74259156", "0.7367864", "0.73251426", "0.7311775", "0.723495", "0.71266246", "0.6825747", "0.6806868", "0.6770706", "0.67530876", "0.6739688", "0.6733973", "0.6729306", "0.66742", "0.66167367", "0.66060024", "0.6601799", "0.65636486", "0.6538023...
0.76867616
1
What to use to separate the word from its frequency in the WORD_FREQUENCY file
public static void main(String...args) { try { List<String> wordList = getWordList(FEED_FILE); final File frequencyFile = new File(WORD_FREQUENCY); frequencyFile.createNewFile(); // If the file already exists, this will not overwrite it final HashMap<String, Long> dataMap = new HashMap<>(); // HashMap...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void getFrequency(){\r\n try {\r\n BufferedReader reader = new BufferedReader(new FileReader(IConfig.FREQUENCY_PATH));\r\n String line;\r\n while((line = reader.readLine()) != null){\r\n frequency.put(line.split(\" \")[0], (Double.parseDouble(line.spli...
[ "0.6660851", "0.6526449", "0.6487698", "0.6331058", "0.6266808", "0.6166304", "0.61340386", "0.60867524", "0.6007972", "0.59859776", "0.59797776", "0.59738183", "0.59529984", "0.59246594", "0.5910016", "0.58946484", "0.5877805", "0.5873582", "0.5870827", "0.5870083", "0.58426...
0.0
-1
Gets a list of lowercase, nonempty words from the text file it is being fed
private static List<String> getWordList(File feedFile) throws IOException { final List<String> words = new ArrayList<>(); final BufferedReader textReader = new BufferedReader(new FileReader(feedFile)); textReader.lines() .forEach(lines -> words.addAll(Arrays.asList(lines.split("[" + SPLIT_WORDS_AT_CHARS + "]...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static List<String> parseDocument(Path file) throws IOException {\n List<String> words = new ArrayList<>();\n try (BufferedReader br = Files.newBufferedReader(file)) {\n String line;\n while ((line = br.readLine()) != null) {\n char[] characters = line.trim...
[ "0.7495338", "0.7142414", "0.7085385", "0.7062436", "0.7045355", "0.70316905", "0.7025369", "0.7019679", "0.694021", "0.68274987", "0.6749561", "0.6745828", "0.6718432", "0.66928816", "0.66770667", "0.66683674", "0.66601205", "0.6644659", "0.66324514", "0.6623585", "0.6572355...
0.70924234
2
Reads in current data from the frequency file and fills the data map with it
private static void fillDataMapFromFrequencyFile(File frequencyFile, HashMap<String, Long> dataMap) throws IOException { final BufferedReader frequencyReader = new BufferedReader(new FileReader(frequencyFile)); List<String> lines = frequencyReader.lines() .collect(Collectors.toList()); frequencyReader.clos...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void read(){\n try(BufferedReader bufferedReader = new BufferedReader(new FileReader(getPath()));) {\n\n String frequencyString;\n\n String frequencyFileFormat = \"([a-z]\\\\s\\\\d+\\\\.\\\\d+)\";\n Pattern pattern = Pattern.compile(frequencyFileForm...
[ "0.72216356", "0.69194174", "0.65786225", "0.6272899", "0.5941606", "0.59061587", "0.58715606", "0.5848092", "0.5838667", "0.57036936", "0.5700632", "0.56923777", "0.56619036", "0.5660752", "0.56014425", "0.5570459", "0.5569305", "0.5559316", "0.55322933", "0.5499499", "0.546...
0.76735437
0
Add to values in the current data map using the provided text file
private static void feedMapWithWordList(List<String> wordList, HashMap<String, Long> dataMap) { for(int i = 0, size = wordList.size(); i < size; i++) { // Go through the list of words being fed - if a word already exists, add 1 to its frequency; otherwise, create a new key and give it a value of 1 final String w...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void fillDataMapFromFrequencyFile(File frequencyFile, HashMap<String, Long> dataMap) throws IOException {\n\n\t\tfinal BufferedReader frequencyReader = new BufferedReader(new FileReader(frequencyFile));\n\n\t\tList<String> lines = frequencyReader.lines()\n\t\t\t\t.collect(Collectors.toList());\n\n\t...
[ "0.65534186", "0.62322426", "0.62035537", "0.6174466", "0.6141494", "0.6078921", "0.6069393", "0.60394615", "0.5996834", "0.5928372", "0.58985895", "0.58978295", "0.58826035", "0.58667856", "0.58606917", "0.58316725", "0.58160055", "0.58130085", "0.57844275", "0.5757693", "0....
0.0
-1
Rewrite frequency file with the data map
private static void updateFrequencyFile(File frequencyFile, HashMap<String, Long> dataMap) throws IOException { final BufferedWriter frequencyWriter = new BufferedWriter(new FileWriter(frequencyFile)); for(Entry<String, Long> entry : dataMap.entrySet()) { // Write every entry to the frequency file frequencyWr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void fillDataMapFromFrequencyFile(File frequencyFile, HashMap<String, Long> dataMap) throws IOException {\n\n\t\tfinal BufferedReader frequencyReader = new BufferedReader(new FileReader(frequencyFile));\n\n\t\tList<String> lines = frequencyReader.lines()\n\t\t\t\t.collect(Collectors.toList());\n\n\t...
[ "0.6584115", "0.63383335", "0.63360125", "0.5928132", "0.5841916", "0.58104247", "0.5809916", "0.5747677", "0.5738897", "0.5732238", "0.5722358", "0.56811076", "0.5660628", "0.55207574", "0.551754", "0.55126804", "0.54972166", "0.54923236", "0.5473843", "0.5472662", "0.546212...
0.7765206
0
Returns a String representing an entry, using the frequency file delimiter
private static String generateStringFromEntry(Entry<String, Long> entry) { return entry.getKey() + WORD_FREQUENCY_DELIMITER + entry.getValue(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic String toString()\n\t{\n\t\tString sTr = this.str + \":\" + this.freq;\n\t\treturn sTr;\n\t}", "java.lang.String getFrequency();", "public String toString() {\n\t\treturn this.getData().toLowerCase() + \": \" + this.frequency;\n\t}", "java.lang.String getFrequencyOffset();", "private vo...
[ "0.5819448", "0.58183736", "0.58057886", "0.56343347", "0.55558723", "0.54657066", "0.5439878", "0.5430922", "0.5425091", "0.5398604", "0.5374728", "0.5315293", "0.5231597", "0.5207402", "0.52028483", "0.51441485", "0.5098753", "0.50922227", "0.5078941", "0.50530404", "0.5047...
0.66401076
0
Row is swiped from recycler view remove it from adapter
@Override public void onSwiped(RecyclerView.ViewHolder viewHolder, int direction) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onSwiped(RecyclerView.ViewHolder viewHolder, int swipeDir) {\n int position = viewHolder.getAdapterPosition();\n adapter.arrayList.remove(position);\n adapter.notifyDataSetChanged();\n\n }", "@Override\n public ...
[ "0.79451454", "0.7729708", "0.7472296", "0.7409784", "0.7388089", "0.714877", "0.70501405", "0.7029718", "0.69555146", "0.69389147", "0.6867484", "0.67230785", "0.6659221", "0.66400975", "0.6617995", "0.6596967", "0.658272", "0.6513041", "0.6513041", "0.6513041", "0.6513041",...
0.66885394
14
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.790433", "0.78052884", "0.7766116", "0.77269244", "0.7631314", "0.76214564", "0.75844425", "0.7530182", "0.748751", "0.7457498", "0.7457498", "0.7438209", "0.74215984", "0.74033666", "0.7391367", "0.7386547", "0.7378906", "0.73700386", "0.73624307", "0.73555857", "0.734534...
0.0
-1
Handle navigation view item clicks here.
@SuppressWarnings("StatementWithEmptyBody") @Override public boolean onNavigationItemSelected(MenuItem item) { int id = item.getItemId(); SharedPreferences sp = getSharedPreferences("dadosCompartilhados", Context.MODE_PRIVATE); SharedPreferences.Editor editor = sp.edit(); if (i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void onNavigationItemClicked(Element element);", "@Override\n public void onClick(View view) { listener.onItemClick(view, getPosition()); }", "void onDialogNavigationItemClicked(Element element);", "@Override\n public void onClick(View view) {\n itemInterface.OnItemClickedListener(tr...
[ "0.78824425", "0.72363925", "0.69870526", "0.69464594", "0.69168895", "0.69168895", "0.6884302", "0.68745536", "0.6868239", "0.6766278", "0.67426", "0.67219543", "0.67180467", "0.67139757", "0.66987735", "0.669814", "0.6680063", "0.66605985", "0.6660478", "0.6647546", "0.6642...
0.0
-1
This is the listener to the server event if server request errors it returns error
@Override public void onResponseRecieved(String reply) { if(!reply.equals("error")) { Context context = getApplicationContext(); CharSequence text = reply; int duration = Toast.LENGTH_LONG; Toast toast = Toast.makeText(context, text, duration); to...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void visitError(@NonNull ServerError error) {\n Log.d(\"Serv err\", error.toString());\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n try{\n ...
[ "0.7337239", "0.7260835", "0.7225681", "0.7174958", "0.713204", "0.7120899", "0.7120899", "0.7067733", "0.70275456", "0.70223224", "0.7016691", "0.70053667", "0.6987205", "0.6978398", "0.6978398", "0.6978398", "0.6978398", "0.69708645", "0.6969529", "0.6942234", "0.6925265", ...
0.0
-1
This method is only for development testing puposes
public void ToastPopper(String t){ Context context = getApplicationContext(); CharSequence text = t; int duration = Toast.LENGTH_LONG; Toast toast = Toast.makeText(context, text, duration); toast.show(); try { Thread.sleep(3000); } catch (InterruptedE...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Before\n\t public void setUp() {\n\t }", "private ProtomakEngineTestHelper() {\r\n\t}", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "@Before\n\tpublic void setUp() {\n\t}", "public void setUp() {\n\n\t}", "@Override\r\n\tpublic void setUp() {\n\t\t\r\n\t}", "@Override\n public void setUp(...
[ "0.660375", "0.6590373", "0.6501213", "0.64420545", "0.64290565", "0.64189", "0.638968", "0.6388786", "0.638838", "0.6383061", "0.63791233", "0.63581", "0.6351156", "0.6348096", "0.63449425", "0.63449425", "0.63449425", "0.63449425", "0.63449425", "0.6342892", "0.634209", "...
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_add_account, 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.79033595", "0.7804288", "0.7765498", "0.77259207", "0.76304305", "0.7621137", "0.75833404", "0.7529789", "0.7487063", "0.74565315", "0.74565315", "0.7437683", "0.7421245", "0.7402311", "0.7390894", "0.7386079", "0.737815", "0.7369255", "0.736113", "0.735479", "0.7344447", ...
0.0
-1
Todo ............................................................................................ /////////// Convert Date
@Override public void onWeekChange(List<Calendar> weekCalendars) { String firstDateString = weekCalendars.get(0).toString(); try { firstDateOfWeek = sdfLibraryDate.parse(firstDateString); } catch (ParseException e) { e.printStackTrace(); } assert first...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String ConvertDate(){\r\n//\t\tDate date=JavaUtils.getSystemDate();\r\n//\t DateFormat df = new SimpleDateFormat(\"yyyy/MM/dd\");\r\n\t String pattern = \"yyyy-MM-dd\";\r\n\t SimpleDateFormat simpleDateFormat = new SimpleDateFormat(pattern);\r\n\r\n\t String date = simpleDateFormat.format(new Da...
[ "0.7456802", "0.73293275", "0.7279352", "0.70076764", "0.6945127", "0.6933493", "0.6908316", "0.68740326", "0.6793049", "0.6773673", "0.6765756", "0.67615604", "0.6739989", "0.6663927", "0.66485167", "0.664726", "0.6634661", "0.66301644", "0.6619235", "0.66052026", "0.6558615...
0.0
-1
Recebe a string bidireccional com varios parametros e reencaminhaos para o servidor
public String comunicarServidor(String[][] parametros) { String xmlString = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"; xmlString += "<" + parametros[0][0] + " id=\"" + parametros[0][1] + "\">"; for (int i = 1; i < parametros.length; i++) { xmlString += "<" + parametros[i][0] + ">" + parametros[i][1] +...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setBloqueado(java.lang.String param){\n \n this.localBloqueado=param;\n \n\n }", "public static String getString(String metodo, RequestBody formBody) {\n\n try...
[ "0.5665593", "0.55325496", "0.5526016", "0.55059355", "0.5505056", "0.5438123", "0.5438123", "0.54241085", "0.5418485", "0.5382437", "0.5380206", "0.53775775", "0.53620505", "0.53207904", "0.5299354", "0.52312374", "0.5216036", "0.5214011", "0.52067816", "0.5204373", "0.51737...
0.51402694
23
Mostra a mensagem enviada pelo servidor fazendo parsing para se saber o que fazer a partir dai
public String[][] getMessageValues(String mensagemRecebida) { // Parsing da stringXML DocumentBuilderFactory docFactory = DocumentBuilderFactory .newInstance(); DocumentBuilder docBuilder; Document parserDoc = null; try { docBuilder = docFactory.newDocumentBuilder(); parserDoc = docBuilder.parse(new...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void logParsedMessage()\n {\n if (log.isInfoEnabled())\n {\n StringBuffer buf = new StringBuffer(\"Parsed EASMessage:\");\n buf.append(\"\\n OOB alert = \").append(isOutOfBandAlert());\n buf.append(\"\\n sequence_number = \...
[ "0.57142437", "0.56939775", "0.56721884", "0.5651368", "0.5595323", "0.5584123", "0.5555187", "0.5544699", "0.55339456", "0.55150086", "0.55129385", "0.54974484", "0.5480578", "0.54563534", "0.5451179", "0.5438714", "0.54283655", "0.5413592", "0.5413433", "0.53927845", "0.539...
0.0
-1
This is broken right now. The ip is set to a general ip, so anyone can access via ssh. It's unlikely there would be a problem since a user would still need to have a private key that is authorized, but this should be fixed.
private static void genSecGroup() { System.out.println("This Program will generate a security group"); System.out.println("with the name bitcrusher and ssh ability for"); System.out.println("your ip address."); try{ CreateSecurityGroupRequest secGrpRequest = new CreateSecurityGroupRequest("bitcrusher", "Ingr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setIp(String ip) {\n this.ip = ip;\n }", "public void setIp(String ip) {\n this.ip = ip;\n }", "public void setIp(String ip) {\n this.ip = ip;\n }", "public void setIp(String ip) {\n this.ip = ip;\n }", "public void setIp(java.lang.String ip) {\r\n ...
[ "0.5927023", "0.5847388", "0.5847388", "0.57884747", "0.56632775", "0.5643296", "0.5643296", "0.56396043", "0.56377", "0.5585568", "0.55596876", "0.55596876", "0.5494472", "0.5451939", "0.5445649", "0.5445649", "0.5445649", "0.5445649", "0.5445649", "0.5445649", "0.5445649", ...
0.49098584
91
Creates a new instance
private static void spawnInstance(){ String instanceType = null; String imageId = null; int numInstances = 0; Scanner in = new Scanner(System.in); System.out.println("Name of key to use?"); keyname = in.next(); System.out.println("Instance type? (use d for default: t2.micro)"); instanceType = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Instance createInstance();", "public void create(){}", "private Instantiation(){}", "Reproducible newInstance();", "public Instance() {\n }", "private Object createInstance() throws InstantiationException, IllegalAccessException {\n\t\treturn classType.newInstance();\n\t}", "public void create() {\n...
[ "0.80138785", "0.74958986", "0.71698487", "0.71112543", "0.710905", "0.7050398", "0.69675916", "0.6917698", "0.6898909", "0.6877", "0.687667", "0.67765003", "0.67765003", "0.67695117", "0.6755214", "0.67186517", "0.6710647", "0.670457", "0.6680712", "0.66512895", "0.66113096"...
0.0
-1
The genKey method creates a pem file in the directory that the program is executed in, and generates a key on amazon's servers.
private static void genKey(){ System.out.println("Name to use for key?"); Scanner in = new Scanner(System.in); keyname = in.next(); in.close(); CreateKeyPairRequest createKPReq = new CreateKeyPairRequest(); createKPReq.withKeyName(keyname); CreateKeyPairResult resultPair = null; try{ resultPair = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void keyPairGenerator() throws NoSuchAlgorithmException, IOException {\n KeyPairGenerator kpg = KeyPairGenerator.getInstance(\"RSA\");\n kpg.initialize(2048);\n KeyPair keyPair = kpg.generateKeyPair();\n\n //Get public and private keys\n Key publicKey = keyPair.get...
[ "0.6503651", "0.64754003", "0.6165851", "0.6136214", "0.60671693", "0.60601676", "0.59695494", "0.5961723", "0.59075874", "0.5827812", "0.5780505", "0.57747704", "0.576326", "0.5583632", "0.55324024", "0.55194384", "0.54958075", "0.5436486", "0.5434319", "0.541811", "0.541524...
0.7622708
0
The operations will create a default lattice which will map all variables to maybe null (since that was our default). Of course, "this" should never be null.
public TupleLatticeElement<Variable, NullLatticeElement> createEntryValue( MethodDeclaration method) { TupleLatticeElement<Variable, NullLatticeElement> def = ops.getDefault(); def.put(getAnalysisContext().getThisVariable(), NullLatticeElement.NOT_NULL); AnnotationSummary summary = annoDB.getSummaryForMetho...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ILatticeOperations<TupleLatticeElement<Variable, NullLatticeElement>> getLatticeOperations() {\n\t\treturn ops;\n\t}", "public void setupPlainVariables_xjal()\n/* 422: */ {\n/* 423:492 */ this.mapPanel = \n/* 424:493 */ new TileMapPanel(new TileImageProvider());\n/* 425: */ }", "publ...
[ "0.6000396", "0.5739307", "0.56967777", "0.5673797", "0.5671304", "0.5642977", "0.5604792", "0.5552224", "0.54537493", "0.5452962", "0.53554136", "0.5355264", "0.5334236", "0.5318598", "0.52849054", "0.5283431", "0.52782923", "0.52711123", "0.52635455", "0.5248407", "0.524681...
0.49063197
84
Just return our lattice ops.
public ILatticeOperations<TupleLatticeElement<Variable, NullLatticeElement>> getLatticeOperations() { return ops; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Operations operations();", "public LatticeMagInt getSimSystem(){return lattice;}", "@Override\n protected void generateTiles() {\n }", "public HOp[] ops()\r\n {\r\n if (!cache.initialized()) \r\n throw new IllegalStateException(Cache.NOT_INITIALIZED);\r\n\r\n return OPS;\r\n...
[ "0.55990756", "0.5340065", "0.52717364", "0.5266158", "0.52017623", "0.51398844", "0.49974844", "0.49965647", "0.4987596", "0.4894417", "0.4835219", "0.48338374", "0.4820835", "0.48186687", "0.48051155", "0.47916508", "0.4783254", "0.4782187", "0.4770944", "0.4766566", "0.476...
0.73221815
0
TextView textViewVersion; TextView rlid; ImageView imageViewIcon;
public MyViewHolder(final View itemView) { super(itemView); this.textView1 = (TextView) itemView.findViewById(R.id.textViewt1); c2=(CardView) itemView.findViewById(R.id.card_view2); this.cardfashlin = (LinearLayout) itemView.findViewById(R.id.lincardfarsh); this....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "TextView getIconTipsView();", "public RecyclerCardViewHolder(View itemView) {\n super(itemView);\n ivLsPicture = (ImageView) itemView.findViewById(R.id.ivLsPicture);\n tvTitle = (TextView) itemView.findViewById(R.id.tvTitle);\n // textView5 = (TextView) ...
[ "0.6689958", "0.6560777", "0.6335493", "0.62203217", "0.62100804", "0.6157828", "0.61487603", "0.6144179", "0.61397094", "0.6116416", "0.611216", "0.6098005", "0.6084275", "0.60718197", "0.60632926", "0.60560745", "0.60479224", "0.6042701", "0.6029553", "0.59816176", "0.59669...
0.0
-1
Constructor with ui instance as parameter
public GenreateReportView(WhatsUpUI ui) { this.ui = ui; user = (AdminVO) ui.getSession().getAttribute(StringConstants.USER); addComponent(buildLayout()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private UI()\n {\n this(null, null);\n }", "public Ui() { }", "public View(UI ui) {\n this.ui = ui;\n }", "public Ui() {\n }", "public void setMyUi(Object ui) {\n super.setMyUi(ui);\n try {\n init();\n } catch (Exception e) {e.printStackTrace();};\n ...
[ "0.7985927", "0.7912898", "0.78914565", "0.77997255", "0.7310941", "0.7310571", "0.7207982", "0.7085028", "0.70381004", "0.6991187", "0.69180584", "0.6871271", "0.6840524", "0.6766301", "0.6765666", "0.67313975", "0.6718433", "0.6706218", "0.6682807", "0.6664012", "0.6647799"...
0.0
-1
Builds the UI Components
private VerticalLayout buildLayout() { VerticalLayout content = new VerticalLayout(); content.setMargin(true); content.setSpacing(true); ComboBox feedbackMonth = new ComboBox(); feedbackMonth.setCaption(StringConstants.MONTH); feedbackMonth.addFocusListener( e->{ List<String> month...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void buildUI() {\n initComponents();\n\n FormLayout layout = new FormLayout(\"3dlu, pref:grow, 3dlu\",\n \"3dlu, pref, 3dlu, pref, 3dlu, fill:0:grow\");\n\n PanelBuilder builder = new PanelBuilder(layout);\n CellConstraints cc = new CellConstraints();\n\n // To...
[ "0.7932136", "0.78475475", "0.7497805", "0.7304477", "0.7155513", "0.71202374", "0.7071859", "0.6977375", "0.69622445", "0.6957242", "0.69528", "0.69147277", "0.69147277", "0.69147277", "0.69147277", "0.69147277", "0.69147277", "0.69147277", "0.69147277", "0.69147277", "0.691...
0.0
-1
Builds UI for popup conformation window
private Component buildConformationWindow(Window window, ComboBox feedbackMonth, TextArea emails) { VerticalLayout confirmationLayout = new VerticalLayout(); HorizontalLayout buttons = new HorizontalLayout(); Label msg = new Label(StringConstants.CONFORMATION_MSG); msg.setContentMode(ContentMode.HTML); Label...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createPopupWindow() {\r\n \t//\r\n }", "public CommonPopWindow build() {\n/* 65 */ if (this.mWidth != 0 && this.mHeight != 0) {\n/* 66 */ mPopupWindow = new PopupWindow(mContentView, this.mWidth, this.mHeight);\n/* */ } else {\n/* 68 */ mPopupWindow = new PopupWindow(...
[ "0.7720446", "0.68575513", "0.6826131", "0.678717", "0.66637427", "0.66403323", "0.6637264", "0.6618816", "0.65834635", "0.65719", "0.6511175", "0.64665616", "0.64508224", "0.6428722", "0.6411324", "0.6387212", "0.6351751", "0.6351393", "0.63223135", "0.63216776", "0.628127",...
0.6164606
33
Generate area wise sheets in report
private void generateAreaWiseSheets(ExcelReportGenerator excelReport, List<QualityVO> qualities, ComboBox feedbackMonth) { String employeeName; String feedbackType; String projectName; for (QualityVO quality : qualities) { excelReport.GenerateAreaSheet(quality.getQualityName()); List<QualityFeedbackVO>...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public final void testSinglePrintAreaWOSheet() throws Exception\n {\n Workbook workbook = _testDataProvider.createWorkbook();\n workbook.createSheet(\"Test Print Area\");\n String sheetName = workbook.getSheetName(0);\n\n String reference = \"$A$1:$B$1\";\n w...
[ "0.6023605", "0.58638006", "0.58476466", "0.58045673", "0.56728935", "0.5571959", "0.5564923", "0.5552492", "0.55499935", "0.55492043", "0.55367976", "0.5518488", "0.5508939", "0.55060536", "0.54989034", "0.5490495", "0.54612905", "0.54551303", "0.5428649", "0.54207486", "0.5...
0.7037707
0
TESTS OF CLASS PARTICIPATIONHISTORY Tested interaction with history and set Methods tested: Constructor() find where set getTotalPoints() TODO: getHistoryWithUnfinishedCompetitionFor() getHistoryFor() finish() getTotalTime() getTimeLeft()
@Before public void setUp() { start(fakeApplication(inMemoryDatabase(), fakeGlobal())); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n void testTitForTatWithHistoryCooperate() {\r\n TitForTat testStrat = new TitForTat();\r\n AlwaysCooperate testStrat2 = new AlwaysCooperate();\r\n ArrayList<Integer> payoffs = new ArrayList<>(Arrays.asList(3, 5, 0, 1));\r\n Game game = new Game(testStrat, testStrat2, 2, payoffs);\r\n game....
[ "0.6109846", "0.6007666", "0.59857196", "0.5942025", "0.56018424", "0.5528273", "0.5527146", "0.5506886", "0.54758483", "0.53866816", "0.53831947", "0.5362635", "0.53558564", "0.53548646", "0.53489953", "0.5347406", "0.5306092", "0.5293811", "0.5278225", "0.52727795", "0.5246...
0.0
-1
Created by mphilpot on 7/21/14.
public interface ServerTokenExchangeProvider extends Provider, ServerTokenExchange { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public final void mo51373a() {\n }", "private stendhal() {\n\t}", "@Overri...
[ "0.60094285", "0.5909956", "0.5840409", "0.5832438", "0.5808945", "0.5796211", "0.57704246", "0.57704246", "0.57197636", "0.5692283", "0.56908214", "0.568661", "0.56833327", "0.56725127", "0.5659702", "0.565554", "0.56527144", "0.5651716", "0.56219494", "0.5607976", "0.560256...
0.0
-1
check the number of land and save its position to the list
public static int find_land (int a [][], int x, int y){ int count_land = 0; for (int i = 0; i < x; i++){ for (int j = 0; j < y; j++){ if (a[i][j] > 0){ count_land ++; //x[i][j] = 0; check_island(i, j); } } } return count_land; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean land();", "void updateLandmarks() {\n\n\t\t\tregisterUpdateLandmarksTimer();\n\n\t\t\tint m = 2;\n\t\t\tfinal int expectedLandmarks = NumberOfLandmarks + m;\n\t\t\tIterator<Long> ier = pendingHSHLandmarks.keySet().iterator();\n\n\t\t\tSet<AddressIF> tmpList = new HashSet<AddressIF>(1);\n\t\t\tLong curRec...
[ "0.6004757", "0.59936935", "0.5867124", "0.5852231", "0.5817245", "0.5791753", "0.57073677", "0.5681514", "0.56463945", "0.55323267", "0.55078864", "0.5477868", "0.5475289", "0.5451235", "0.54403514", "0.54329705", "0.5423071", "0.54123527", "0.54065657", "0.53970534", "0.538...
0.5860463
3
Get cut image from local file
public TailoredImage getImageFile(String filepath) throws IOException { BufferedImage source = ImageIO.read(new File(filepath)); return doProcess(source); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Source(\"gr/grnet/pithos/resources/editcut.png\")\n ImageResource cut();", "java.lang.String getImage();", "public Label getPic(){\n //try {//getPic is only called if isPic is true, so side1 would contain picture path\n /*BufferedImage unsized = ImageIO.read(new File(side1));\n ...
[ "0.6379781", "0.5596498", "0.5562935", "0.55412805", "0.5483578", "0.5433312", "0.5329985", "0.5276958", "0.52605134", "0.525721", "0.5245465", "0.52314603", "0.52284825", "0.52167326", "0.5200902", "0.5178925", "0.51678723", "0.51678723", "0.5118505", "0.5106294", "0.5105183...
0.46712983
99
Get cut image from URL
public TailoredImage getImageUrl(String url) throws IOException { return doProcess(ImageIO.read(new URL(url))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Image getImage(String url) {\r\n\t\ttry {\r\n\t\t\treturn ImageIO.read(new URL(url));\r\n\t\t} catch (IOException e) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "private Bitmap getBitmap(String url){\n Bitmap result = null;\n try {\n InputStream in = new java.net.URL(url).openStrea...
[ "0.6119505", "0.607123", "0.60654265", "0.60158646", "0.5933971", "0.59324485", "0.5906078", "0.58886236", "0.5860853", "0.5844452", "0.5840461", "0.5831334", "0.5797567", "0.57789874", "0.5774434", "0.57676977", "0.57664746", "0.57551515", "0.57310927", "0.57293826", "0.5711...
0.5852888
9