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
Returns the last element of the list.
public static <T> T getLast(List<T> list) { return list != null && !list.isEmpty() ? list.get(list.size() - 1) : null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Object last() {\r\n\t\treturn elements.get(size() - 1);\r\n\t}", "private static <T> T lastItemOfList(List<T> list) {\n if (list == null || list.size() == 0) {\n return null;\n }\n return list.get(list.size() - 1);\n }", "public static <T> T last(ArrayList<T> lst) {\n return lst.ge...
[ "0.8351008", "0.8338945", "0.8280607", "0.8210567", "0.8155708", "0.8150844", "0.8134895", "0.8122311", "0.8061388", "0.802911", "0.80269057", "0.7990038", "0.7941174", "0.7854143", "0.7807504", "0.78014785", "0.7710757", "0.7686974", "0.7600933", "0.75999326", "0.75820166", ...
0.811969
8
Returns the first element of the Iterable.
public static <T> T getFirstElement(final Iterable<T> elements) { return elements.iterator().next(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Object firstElement();", "public T first() throws EmptyCollectionException;", "public T first() throws EmptyCollectionException;", "public E getFirst() {\r\n\t\t// element checks to see if the list is empty\r\n\t\treturn element();\r\n\t}", "@Nullable\n public T firstOrNull() {\n return Qu...
[ "0.7863074", "0.76364136", "0.76364136", "0.763133", "0.75577635", "0.75096047", "0.7498766", "0.7478689", "0.7468397", "0.7402051", "0.73477036", "0.7328341", "0.723999", "0.7223057", "0.72031945", "0.7183019", "0.718187", "0.7179463", "0.7179463", "0.7178346", "0.71737725",...
0.76889133
1
Returns the last element of the Iterable.
public static <T> T getLastElement(final Iterable<T> elements) { T lastElement = null; for (T element : elements) { lastElement = element; } return lastElement; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Object lastElement();", "public Object last() {\r\n\t\treturn elements.get(size() - 1);\r\n\t}", "public TypeHere getLast() {\n return items[size - 1];\n }", "public T last() throws EmptyCollectionException;", "E last() throws NoSuchElementException;", "public Item getLast() {\n r...
[ "0.8384206", "0.8280156", "0.80814844", "0.807962", "0.80674726", "0.7950153", "0.78099877", "0.7808023", "0.7794341", "0.77796066", "0.7772683", "0.7740538", "0.7688748", "0.7671017", "0.7557279", "0.7511956", "0.7482946", "0.74517614", "0.7443809", "0.74341977", "0.7415934"...
0.7408098
22
Instantiates a new context.
public Context(){ try { socket = new Socket("localhost", 9876); model = new SimpleCalculationModel(); theInputWindow = new SimpleCalculatorWindow(); currentInput = ""; } catch (UnknownHostException e) { } catch (IOException e) { System.out.println("The server local host port 9876 does not exis...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Context createContext();", "Context createContext();", "public Context() {\n }", "private static Context prepareContext() {\r\n\r\n Context context = new Context();\r\n\r\n ContextProperties properties = new ContextProperties();\r\n\r\n // Context requires a name\r\n proper...
[ "0.80732894", "0.80732894", "0.7789039", "0.74511963", "0.7443131", "0.6976631", "0.6976631", "0.69761163", "0.6923575", "0.6831927", "0.6827626", "0.67362463", "0.67354494", "0.67206866", "0.6684668", "0.6575766", "0.6508439", "0.6498806", "0.6437751", "0.64250374", "0.64212...
0.6051038
38
Gets the input window.
public SimpleCalculatorWindow getInputWindow(){ return this.theInputWindow; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Window getWindow() { return window; }", "public Window getWindow() {\r\n return window;\r\n }", "public static Window getWindow() {\r\n\t\treturn window;\r\n\t}", "public JDialog getWindow() {\n\t\treturn window;\n\t}", "public Window getWindow() {\n return window;\n }", "publi...
[ "0.71597266", "0.709166", "0.7089608", "0.70365644", "0.7030123", "0.6949983", "0.68854845", "0.6833633", "0.6790331", "0.6753583", "0.67535", "0.6548267", "0.64709264", "0.63985014", "0.63528746", "0.63464075", "0.6316636", "0.63087", "0.6286448", "0.6228641", "0.6211506", ...
0.85458153
0
Gets the currrent input.
public String getCurrrentInput(){ return this.currentInput; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Input getInput() {\r\n return localInput;\r\n }", "public double getCurrentInput()\n {\n return pidInput.get();\n }", "public static Input getInput() {\r\n return input;\r\n }", "public Input getInput() {\n return this.input;\n }", "public String getInput...
[ "0.7922147", "0.74323714", "0.7416696", "0.73733664", "0.7317359", "0.7171352", "0.7163609", "0.7003006", "0.6972783", "0.672402", "0.66881865", "0.66564333", "0.66502696", "0.6630337", "0.6613007", "0.65719444", "0.65421796", "0.65155816", "0.6503228", "0.64997506", "0.64762...
0.82499206
0
Sets the current input.
public void setCurrentInput(String currentInput){ this.currentInput = currentInput; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setInput(Input input) {\n this.input = input;\n }", "@Override\n\tpublic void setInput(Input arg0) {\n\t\t\n\t}", "@Override\n\tpublic void setInput(Input arg0) {\n\n\t}", "public void setInput(Input param) {\r\n localInputTracker = param != null;\r\n\r\n this.loca...
[ "0.81493086", "0.8090752", "0.8016972", "0.77317184", "0.7658585", "0.7651513", "0.7344928", "0.72376716", "0.71596247", "0.71165514", "0.70604306", "0.6831007", "0.66586787", "0.6646986", "0.6641314", "0.6617823", "0.6610387", "0.6596673", "0.6592565", "0.65198714", "0.64762...
0.79146683
3
Enforces noninstantiation of static class.
private UniqueChromosomeReconstructor() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testStaticMethodStaticClassNotKept() throws Exception {\n Class<?> mainClass = MainCallStaticMethod.class;\n runTest(\n mainClass,\n ImmutableList.of(mainClass, StaticMethod.class),\n keepMainProguardConfiguration(mainClass),\n this::checkOnlyMainPresent);\n ...
[ "0.6746125", "0.67210877", "0.6602039", "0.6512519", "0.64833003", "0.6476657", "0.64425844", "0.64097995", "0.632103", "0.6229245", "0.62159675", "0.6203213", "0.61762345", "0.61084867", "0.61036247", "0.60798275", "0.60756594", "0.6000405", "0.6000097", "0.59643924", "0.595...
0.0
-1
Reconstructs the chromosome represented by the provided sequences.
public static String reconstructChromosome(Set<String> sequences) { SequenceGraph graph = generateSequenceGraph(sequences); SequenceGraph.Node root = graph.getRoot(); // Ensure graph was well-formed if (graph == null || root == null || graph.getTerminalNode() == null) { return null; } return reconstruc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Chromosome from(List<Chromosome> population);", "public static void main(String[] args) {\n\t\t// Parse command-line arguments\n\t\tif (args.length < 1 || args.length > 2 || Arrays.asList(args).contains(\"-h\")) {\n\t\t\tprintUsage();\n\t\t\treturn;\n\t\t}\n\n\t\t// Parse file\n\t\tString filename = args[args.le...
[ "0.5623811", "0.51750565", "0.51647717", "0.51267505", "0.50899655", "0.50341964", "0.4970092", "0.48969543", "0.48217207", "0.47895235", "0.47849917", "0.47596928", "0.4756935", "0.4751205", "0.4725312", "0.47251263", "0.47044894", "0.46913332", "0.4689937", "0.46771008", "0...
0.7317173
0
Gets the index at which one sequence overlaps another by more than half the sequence lengths.
private static int getSequenceOverlapIndex(String base, String toOverlay) { if (toOverlay.length() <= base.length() / 2) { return -1; } // Start with the first half of the overlaying sequence StringBuilder suffix = new StringBuilder(); suffix.append(toOverlay.substring(0, base.length() / 2 + 1)); // Pu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static boolean areOverlapping( int ix0, int ix1, int len )\n {\n if( ix0<ix1 ){\n return ix0+len>ix1;\n }\n else {\n return ix1+len>ix0;\n }\n }", "public int getOverlapLen() { return overlapLen; }", "private boolean overlapsWith(int offse...
[ "0.64288825", "0.59632456", "0.58040124", "0.5778527", "0.5703507", "0.5541701", "0.5475596", "0.5443918", "0.54011893", "0.53937405", "0.53697324", "0.5347783", "0.5307919", "0.53037673", "0.52925324", "0.5275609", "0.5254763", "0.5237972", "0.5235693", "0.5219914", "0.51942...
0.6266459
1
Generates a SequenceGraph from the given sequences. This method will construct a graph given by the provided sequences, including the edges between any two overlapping sequences.
private static SequenceGraph generateSequenceGraph(Set<String> sequences) { if (sequences == null) { return null; } SequenceGraph graph = new SequenceGraph(); // Pairwise check all sequences for overlapping relationships for (String firstSequence : sequences) { graph.addSequence(firstSequence); fo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addSequencesToGraphs(){\r\n\t\t\r\n\t\t\r\n\t\tgraphSingleOutput.addSequence(\"Firm\"+firmList.get(firmList.size()-1).firmID, new SetSingleOutput(firmList.get(firmList.size()-1).firmID));\r\n\t\t\r\n\t\tgraphSinglePrice.addSequence(\"Firm\"+firmList.get(firmList.size()-1).firmID, new SetSinglePrice(fir...
[ "0.55117226", "0.50378597", "0.48497587", "0.47531998", "0.47485945", "0.47109088", "0.47068286", "0.46466464", "0.45903006", "0.45885423", "0.45761603", "0.45733878", "0.45598218", "0.45412585", "0.45402023", "0.45368725", "0.45345825", "0.4453181", "0.44531676", "0.44489747",...
0.87122154
0
Given a SequenceGraph, reconstructs the chromosome encoded by the graph's Nodes.
private static String reconstructChromosomeFromGraph(SequenceGraph graph) { // Get Hamiltonian path through graph LinkedList<SequenceGraph.Node> path = findHamiltonianPath(graph); if (path == null) { return null; } // Walk path and rebuild chromosome string StringBuilder chromosome = new StringBuilder()...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String reconstructChromosome(Set<String> sequences) {\n\t\tSequenceGraph graph = generateSequenceGraph(sequences);\n\t\tSequenceGraph.Node root = graph.getRoot();\n\n\t\t// Ensure graph was well-formed\n\t\tif (graph == null || root == null || graph.getTerminalNode() == null) {\n\t\t\treturn null;\n\...
[ "0.5936945", "0.5223636", "0.51043236", "0.49997503", "0.4989403", "0.49228117", "0.49126264", "0.4910492", "0.49078214", "0.48489085", "0.48299542", "0.4746266", "0.47269154", "0.47033367", "0.47016907", "0.4700316", "0.4699922", "0.46901867", "0.46865827", "0.4680125", "0.4...
0.730342
0
Determines the Hamiltonian path through a sequence graph.
private static LinkedList<SequenceGraph.Node> findHamiltonianPath(SequenceGraph graph) { SequenceGraph.Node root = graph.getRoot(); HashSet<SequenceGraph.Node> visitedSet = new HashSet<>(); LinkedList<SequenceGraph.Node> path = new LinkedList<>(); if (root == null || !findHamiltonianPath(graph, root, visitedSe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.util.List<Integer> getHamiltonianPath(V vertex);", "private static boolean findHamiltonianPath(SequenceGraph graph,\n\t SequenceGraph.Node current,\n\t Set<SequenceGraph.Node> visited,\n\t ...
[ "0.70857537", "0.6626242", "0.63250196", "0.6083141", "0.59500855", "0.5949889", "0.5843256", "0.57097495", "0.56888634", "0.5656243", "0.5568157", "0.5484522", "0.5470568", "0.54503304", "0.5439394", "0.5415543", "0.5371978", "0.53568006", "0.53167886", "0.53032684", "0.5297...
0.78716844
0
Determines the Hamiltonian path through a sequence graph. If such a path was found, it would be represented in the provided path list. This method is used as a helper.
private static boolean findHamiltonianPath(SequenceGraph graph, SequenceGraph.Node current, Set<SequenceGraph.Node> visited, LinkedList<SequenceGraph.Node> path) { if (visited.contains(c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static LinkedList<SequenceGraph.Node> findHamiltonianPath(SequenceGraph graph) {\n\t\tSequenceGraph.Node root = graph.getRoot();\n\t\tHashSet<SequenceGraph.Node> visitedSet = new HashSet<>();\n\t\tLinkedList<SequenceGraph.Node> path = new LinkedList<>();\n\n\t\tif (root == null || !findHamiltonianPath(grap...
[ "0.7478071", "0.6525322", "0.6484858", "0.5930835", "0.59258765", "0.57219505", "0.5627768", "0.56180865", "0.5580574", "0.5550367", "0.5545391", "0.54539734", "0.54264605", "0.54244", "0.5376704", "0.53700805", "0.5358291", "0.5284649", "0.52683043", "0.52609587", "0.5244166...
0.6853388
1
Prints the commandline usage instructions for this class to standard out.
private static void printUsage() { System.out.println("Usage: java UniqueUniqueChromosomeReconstructor [-h] input_file"); System.out.println(" -h: Print usage information"); System.out.println(" input_file: File containing input sequence data"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void displayUsage() {\r\n System.err.println(\"\\nUSAGE: java -classpath ... \" + \"DiscourseImportTool\");\r\n System.err.println(\"Option descriptions:\");\r\n System.err.println(\"\\t-h\\t usage info\");\r\n System.err.println(\"\\t-e, email\\t send email if major failure\");...
[ "0.78726596", "0.7701412", "0.7632004", "0.7588013", "0.75597143", "0.75560623", "0.7425069", "0.7389762", "0.73535085", "0.72694147", "0.7227451", "0.7175207", "0.7167752", "0.71558195", "0.71194345", "0.7093986", "0.70873183", "0.708154", "0.70532376", "0.70272976", "0.7017...
0.7806028
1
Takes a data file as a command line argument and attempts to reconstruct the chromosome encoded by the segments of that file. The result of the attempt is printed to standard out.
public static void main(String[] args) { // Parse command-line arguments if (args.length < 1 || args.length > 2 || Arrays.asList(args).contains("-h")) { printUsage(); return; } // Parse file String filename = args[args.length - 1]; HashSet<String> sequences = FastaFileReader.parseFastaFile(filename);...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) throws IOException {\n\t\tString MUMmerFile = args[0];\n\t\tString ErrorFreeEPGAcontigFile = args[1];\n\t\tString SPAdescontigFile = args[2];\n\t\tString DataName = args[3];\n\t\tString FinalEPGAcontigPath = args[4];\n\t\t//Alignment.\n\t\tint SizeOfMUMmerFile = CommonClass.g...
[ "0.5469781", "0.5417882", "0.54047513", "0.52500546", "0.5159353", "0.51509875", "0.51486313", "0.50818", "0.5026934", "0.50075907", "0.49993366", "0.4995778", "0.499295", "0.49150974", "0.49112195", "0.49095365", "0.49049494", "0.49024594", "0.48668444", "0.48492578", "0.483...
0.6176946
0
TODO Autogenerated method stub
@Override public int describeContents() { return 0; }
{ "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
TODO Autogenerated method stub
@Override public void writeToParcel(Parcel dest, int flags) { dest.writeInt(Id); dest.writeString(Name); dest.writeFloat(Mark); dest.writeString(Type); dest.writeParcelable(Image, flags); dest.writeString(City); dest.writeDouble(Latitude); dest.writeDouble(Longitude); }
{ "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
TODO Autogenerated method stub
@Override public int compareTo(TouringPlace another) { return 0; }
{ "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
write you code here
public static int longestConsecutive(int[] num) { Arrays.sort(num); int len=num.length; if(len<=0) return 0; int count=1; int max=1; for(int i=1;i<len;i++){ if(num[i]-num[i-1]==1){ count++; } else{ count=1; } if(count>max){ max=count; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void generateCode()\n {\n \n }", "public void logic(){\r\n\r\n\t}", "public void genCode(CodeFile code) {\n\t\t\n\t}", "private static void cajas() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "CD withCode();", "public void gan...
[ "0.64156544", "0.61896", "0.6031118", "0.60109067", "0.59593844", "0.59297514", "0.5832755", "0.5828144", "0.5822204", "0.58167315", "0.58164877", "0.580399", "0.57964724", "0.57910484", "0.5786943", "0.5770641", "0.5762687", "0.5758873", "0.57435006", "0.57415676", "0.572842...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { int[] num={100, 4, 200, 1, 3, 2}; System.out.println(longestConsecutive(num)); }
{ "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
funcion para filtrar todos los articulos segun criterio
public static void generalFilter(){ try { String choice = home_RegisterUser.comboFilter.getSelectedItem().toString(); ResultSet rs = null; singleton.dtm = new DefaultTableModel(); singleton.dtm.setColumnIdentifiers(general); home_Re...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<PedidoIndividual> filtrar(PedidoIndividual filtro);", "@Override\r\n\tprotected List<Producto> filtrar(Comercio comercio) {\r\n\t\tList<Producto> resultado= new ArrayList<Producto>();\r\n\t\tfor(Producto pAct:comercio.getProductos()){\r\n\t\t\tif(pAct.presentacionesSuperanStockCritico())\r\n\t\t\t\tr...
[ "0.682958", "0.6192021", "0.6174383", "0.610654", "0.6035565", "0.6020833", "0.599077", "0.5935936", "0.5933729", "0.5845057", "0.58011425", "0.5787009", "0.57522976", "0.5686655", "0.563708", "0.5630462", "0.56275487", "0.5612667", "0.56065357", "0.558792", "0.5587557", "0...
0.0
-1
funcion para filtrar ram segun criterio
public static void ramFilter(){ try { String choice = home_RegisterUser.comboFilter.getSelectedItem().toString(); ResultSet rs = null; singleton.dtm = new DefaultTableModel(); singleton.dtm.setColumnIdentifiers(ram); home_RegisterUser.table.setMo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void filter();", "public List<PedidoIndividual> filtrar(PedidoIndividual filtro);", "public static void filter() throws IOException {\n\t\tHashSet<String> wikimid = new HashSet<String>();\r\n\t\t{\r\n\t\t\tDelimitedReader dr = new DelimitedReader(Main.file_midWidTypeNameAlias);\r\n\t\t\tString[...
[ "0.5556369", "0.55193305", "0.5390826", "0.53131455", "0.5291039", "0.526479", "0.52525085", "0.52259237", "0.5208725", "0.5183647", "0.51753455", "0.51478446", "0.5147163", "0.5146025", "0.5079668", "0.50560313", "0.50384694", "0.5033054", "0.50222445", "0.50082874", "0.4985...
0.47224686
46
funcion para filtrar monitores segun criterio
public static void displayFilter(){ try { String choice = home_RegisterUser.comboFilter.getSelectedItem().toString(); ResultSet rs = null; singleton.dtm = new DefaultTableModel(); singleton.dtm.setColumnIdentifiers(displays); home_R...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<PedidoIndividual> filtrar(PedidoIndividual filtro);", "public static void main(String[] args) {\n System.out.println(\"hola la concha de tu madre\");\n Persona persona1 = new Persona(\"allan\",28,19040012);\n Persona persona2 = new Persona(\"federico\", 14,40794525);\n Pe...
[ "0.6591453", "0.61428857", "0.6068152", "0.5937363", "0.5886655", "0.5859617", "0.58050036", "0.5799766", "0.5759728", "0.56308043", "0.56226796", "0.55683327", "0.54220784", "0.5401881", "0.53908753", "0.5377472", "0.53748316", "0.53364086", "0.5281026", "0.5280183", "0.5251...
0.0
-1
funcion para filtrar placas base segun criterio
public static void mbFilter(){ try { String choice = home_RegisterUser.comboFilter.getSelectedItem().toString(); ResultSet rs = null; singleton.dtm = new DefaultTableModel(); singleton.dtm.setColumnIdentifiers(mb); home_RegisterUser...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<PedidoIndividual> filtrar(PedidoIndividual filtro);", "Collection<GestionPrecioDTO> findCampaniasFiltros (GestionPrecioDTO gestionPrecio,String estadoCobro);", "public static void main(String[] args) {\n ArrayList<Pessoa> pessoas = new ArrayList<>();\n Scanner s = new Scanner(System.i...
[ "0.6410031", "0.6251388", "0.62434274", "0.6035271", "0.6019223", "0.5985065", "0.5916474", "0.5902014", "0.5875745", "0.58064795", "0.5802423", "0.57818156", "0.5769193", "0.5705384", "0.5691582", "0.56902134", "0.56598437", "0.56416965", "0.563961", "0.56384206", "0.5616771...
0.0
-1
funcion para filtrar discos duros segun criterio
public static void hddFilter(){ try { String choice = home_RegisterUser.comboFilter.getSelectedItem().toString(); ResultSet rs = null; singleton.dtm = new DefaultTableModel(); singleton.dtm.setColumnIdentifiers(hdd); home_RegisterUs...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n System.out.println(\"hola la concha de tu madre\");\n Persona persona1 = new Persona(\"allan\",28,19040012);\n Persona persona2 = new Persona(\"federico\", 14,40794525);\n Persona persona3 = new Persona(\"pablito\", 66,56654456);\n\n Li...
[ "0.5813804", "0.5759619", "0.5672168", "0.552464", "0.55121636", "0.5508947", "0.5501727", "0.54776925", "0.5470713", "0.54640955", "0.5395454", "0.5379654", "0.5372073", "0.532223", "0.52664745", "0.52397746", "0.5211334", "0.51556367", "0.515267", "0.5144615", "0.5117019", ...
0.0
-1
funcion para filtrar procesadores segun criterio
public static void procFilter(){ try { String choice = home_RegisterUser.comboFilter.getSelectedItem().toString(); ResultSet rs = null; singleton.dtm = new DefaultTableModel(); singleton.dtm.setColumnIdentifiers(proc); home_RegisterU...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<PedidoIndividual> filtrar(PedidoIndividual filtro);", "public static void main(String[] args) {\n ArrayList<Pessoa> pessoas = new ArrayList<>();\n Scanner s = new Scanner(System.in);\n char sin;\n \n //Identifica como o filtro deve ser realizado\n System.out....
[ "0.67263013", "0.605241", "0.6019902", "0.59483993", "0.586119", "0.58499736", "0.57282263", "0.5700649", "0.56838906", "0.5668188", "0.55928695", "0.55875224", "0.55844635", "0.5521363", "0.5465581", "0.5433324", "0.54315674", "0.54115516", "0.54009134", "0.5391148", "0.5387...
0.0
-1
funcion para filtrar impresoras segun criterio
public static void printerFilter(){ try { String choice = home_RegisterUser.comboFilter.getSelectedItem().toString(); ResultSet rs = null; singleton.dtm = new DefaultTableModel(); singleton.dtm.setColumnIdentifiers(printers); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void metodoSkip() {\n List<Dish> dishes = menu.stream()\n .filter(d -> d.getCalories() > 300)\n .skip(2)\n .collect(toList());\n\n List<Dish> dishes1 =\n menu.stream()\n .filter(dish -> dish.getType() == (Dish.T...
[ "0.5480455", "0.54534227", "0.54363304", "0.5284321", "0.5190687", "0.51718295", "0.51166105", "0.51128894", "0.51029277", "0.50622934", "0.5021487", "0.4987157", "0.4970908", "0.49504632", "0.49479115", "0.49021825", "0.48730242", "0.48428994", "0.4842046", "0.48160398", "0....
0.0
-1
funcion para montar la tabla RAM
public static Object[] getArrayDeObjectosRam(int codigo,String nombre,String fabricante,float precio, String stock, String tipo, int capacidad, int velocidad) { Object[] v = new Object[8]; v[0] = codigo; v[1] = nombre; v[2] = fabricante; v[3] = prec...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void createTable() {\n table = (MapEntry<K, V>[]) new MapEntry[capacity]; // safe cast\n }", "@SuppressWarnings(\"unchecked\")\n private void createTable() {\n table = (LinkedList<Item<V>>[])new LinkedList[capacity];\n for(int i = 0; i < table.length; i++) {\n tabl...
[ "0.6431722", "0.59743", "0.59675956", "0.5895045", "0.58746666", "0.5785651", "0.57849544", "0.57771915", "0.57460606", "0.5733915", "0.5690555", "0.56812006", "0.5653941", "0.56192213", "0.55935115", "0.5524186", "0.55232245", "0.5522921", "0.5507392", "0.5437374", "0.542852...
0.0
-1
buscar todos los articulos
public static void searchAll(){ try { singleton.dtm = new DefaultTableModel(); singleton.dtm.setColumnIdentifiers(general); home_RegisterUser.table.setModel(singleton.dtm); Statement stmt = singleton.conn.createStatement(); ResultS...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public List<Assunto> buscarTodas() {\r\n EntityManager em = PersistenceUtil.getEntityManager();\r\n Query query = em.createQuery(\"FROM Assunto As a\");\r\n return query.getResultList();\r\n }", "public void marcarTodos() {\r\n\t\tfor (int i = 0; i < listaPlantaCargoDto.s...
[ "0.63545525", "0.6325721", "0.6313418", "0.6312023", "0.61969846", "0.6179251", "0.617154", "0.6148097", "0.61223984", "0.6119284", "0.61132973", "0.6105809", "0.6068318", "0.60593796", "0.60382706", "0.6028836", "0.59936434", "0.5986672", "0.59709615", "0.5963296", "0.595457...
0.0
-1
funcion para montar la tabla
public static Object[] getArrayDeObjectos(int codigo,String nombre,String fabricante,float precio, String stock) { Object[] v = new Object[6]; try { Statement stmt = singleton.conn.createStatement(); ResultSet rs = stmt.executeQuery("SELECT c.nombre FROM articul...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "TableFull createTableFull();", "public static int[][] computeTable() {\n\t\tint [][] ret = new int[10][10];\n\t\tfor (int m = 0; m < 10; m++) {\n\t\t\tfor (int n = 0; n < 10; n++) {\n\t\t\t\tret[m][n] = m*n;\n\t\t\t}\n\t\t}\n\t\treturn ret;\n\t}", "Table createTable();", "UnpivotTable createUnpivotTable();",...
[ "0.63654774", "0.63563967", "0.6326971", "0.6282967", "0.6207154", "0.60217196", "0.5978426", "0.59705704", "0.59186095", "0.59173703", "0.5912076", "0.5911417", "0.58631355", "0.5857946", "0.5857", "0.5770256", "0.5759211", "0.5741146", "0.57320356", "0.5694413", "0.56070155...
0.0
-1
resetear la tabla de ram
public static void resetTableRam(){ singleton.dtm = new DefaultTableModel(); singleton.dtm.setColumnIdentifiers(ram); home_RegisterUser.table.setModel(singleton.dtm); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void resetTable() {\n tableModel.resetDefault();\n updateSummaryTable();\n }", "public void resetTable() {\n\t\tif (table != null) {\n\t\t\ttable.removeAll();\n\t\t}\n\t}", "public void clearTable(){\n\t\tloaderImage.loadingStart();\n\t\tfullBackup.clear();\n\t\tlist.clear();\n\t...
[ "0.78647894", "0.7826577", "0.73946655", "0.72500145", "0.72040856", "0.7129407", "0.71218824", "0.70880455", "0.70609576", "0.7050934", "0.70472795", "0.7030594", "0.69976443", "0.69866854", "0.69692147", "0.69267577", "0.6920086", "0.6899189", "0.68977743", "0.68289757", "0...
0.8359806
0
buscar ram segun los checkbox activados
public static void searchRamBy(){ try { if(singleton.ram == 0){ resetTableRam(); } ResultSet rs = null; ResultSet rs1 = null; ResultSet rs2 = null; Statement stmt = singleton.conn.create...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void habilitaCampos() {\n for(java.util.ArrayList<JCheckBox> hijosAux: hijos)\n for(JCheckBox hijo: hijosAux)\n if(!hijo.isSelected())\n hijo.setSelected(true);\n \n }", "private ArrayList<String> getCheckboxes() {\n ArrayList<Check...
[ "0.7345283", "0.7129116", "0.67300594", "0.67207", "0.6688254", "0.66501516", "0.6639173", "0.66128737", "0.6580863", "0.64876926", "0.6403543", "0.6374294", "0.63592863", "0.63208747", "0.6306658", "0.6292777", "0.6291852", "0.6183624", "0.6160545", "0.6137498", "0.6131562",...
0.5856333
46
eliminar la ram cuando se deselecciona un checkbox
public static void deleteRam(String value){ try { if(singleton.ram == 0){ resetTableRam(); } ResultSet rs = null; Statement stmt = singleton.conn.createStatement(); for( int i=0; i<home_RegisterUser....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void removeSelectedCheckBox( CheckBox cb ){\r\n\t\tselectedCheckBoxes.remove( cb );\r\n\t}", "public void deselect() {\n\t\tfor (int row = 0; row < field.getRowCount(); row++) {\n\t\t\tCheckBox cb = (CheckBox) field.getWidget(row, 3);\n\t\t\tcb.setValue(false);\n\t\t}\n\t}", "public void desmarcarTod...
[ "0.71191454", "0.7105139", "0.6894428", "0.68326384", "0.66244644", "0.64576423", "0.6443598", "0.6429231", "0.63433725", "0.6339347", "0.6293868", "0.62837434", "0.6162357", "0.6117703", "0.6072635", "0.6069561", "0.6059332", "0.60415465", "0.6033475", "0.60215765", "0.60001...
0.66563094
4
funcion para montar la tabla de monitores
public static Object[] getArrayDeObjectosMon(int codigo,String nombre,String fabricante,float precio, String stock, int tam, String resolucion){ Object[] v = new Object[7]; v[0] = codigo; v[1] = nombre; v[2] = fabricante; v[3] = precio; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int[][] computeTable() {\n\t\tint [][] ret = new int[10][10];\n\t\tfor (int m = 0; m < 10; m++) {\n\t\t\tfor (int n = 0; n < 10; n++) {\n\t\t\t\tret[m][n] = m*n;\n\t\t\t}\n\t\t}\n\t\treturn ret;\n\t}", "UnpivotTable createUnpivotTable();", "private void MontarTabela(String where) {\n \n ...
[ "0.6464977", "0.62170345", "0.61708194", "0.60797876", "0.599272", "0.59075314", "0.57910293", "0.5776873", "0.57114154", "0.5687612", "0.56486773", "0.5598161", "0.55898106", "0.55724543", "0.5552724", "0.5548118", "0.55416626", "0.5537681", "0.5529729", "0.55054", "0.547939...
0.0
-1
funcion para buscar monitores
public static void searchDisplays(){ try { singleton.dtm = new DefaultTableModel(); singleton.dtm.setColumnIdentifiers(displays); home_RegisterUser.table.setModel(singleton.dtm); Statement stmt = singleton.conn.createS...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Cuenta> buscarCuentasList(Map filtro);", "List<Oficios> buscarActivas();", "private void buscar(final String filtro) {\n refAnimales.addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n ...
[ "0.6886668", "0.6448402", "0.6420951", "0.6342578", "0.6158353", "0.6152562", "0.6098052", "0.6074516", "0.6040828", "0.592543", "0.5905322", "0.5874906", "0.58643436", "0.5823043", "0.5816018", "0.5811674", "0.5794953", "0.579203", "0.5761621", "0.57298356", "0.5721568", "...
0.0
-1
funcion para montar tabla procesadores
public static Object[] getArrayDeObjectosProc(int codigo,String nombre,String fabricante,float precio, String stock, int vel, String tipo, int nucleos,String caract){ Object[] v = new Object[9]; v[0] = codigo; v[1] = nombre; v[2] = fabricante; v[3] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void doCreateTable();", "private void MontarTabela(String where) {\n \n int linha = 0;\n int coluna = 0;\n \n String offset = String.valueOf(getPaginacao());\n \n while(linha < 10){\n while(coluna < 7){\n tbConFin.getModel().setVal...
[ "0.61944824", "0.61686647", "0.60879177", "0.6079759", "0.6074979", "0.5999602", "0.59897715", "0.5947943", "0.5900796", "0.5869924", "0.58403444", "0.5807284", "0.58062625", "0.56929016", "0.5677854", "0.5647488", "0.56277984", "0.56035984", "0.55982924", "0.5597197", "0.559...
0.0
-1
funcion para montar la tabla de placas base
public static Object[] getArrayDeObjectosPB(int codigo,String nombre,String fabricante,float precio, String stock, String tipo, String caract){ Object[] v = new Object[7]; v[0] = codigo; v[1] = nombre; v[2] = fabricante; v[3] = precio; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "TableFull createTableFull();", "public void crearTabla() {\n\t\tthis.tabla= new String[palabras.length+1][4];\t\n\t}", "public TranspositionTable() {\n\t\tmap = new HashMap<Long, Transposition>(1000000);\n\t\t//purgatory = new HashSet<Long>();\n\t}", "public void prepareTable() {\n \tthis.table = new Tape...
[ "0.64473134", "0.63924676", "0.6358256", "0.6313644", "0.6167236", "0.61426145", "0.6079802", "0.6052506", "0.6020118", "0.5988435", "0.58836305", "0.58789647", "0.5865771", "0.5761902", "0.5755864", "0.5752624", "0.57331145", "0.57298815", "0.572439", "0.57085043", "0.566271...
0.0
-1
funcion para montar tabla discos duros
public static Object[] getArrayDeObjectosHDD(int codigo,String nombre,String fabricante,float precio, String stock, int capacidad,int rpm,String tipo){ Object[] v = new Object[8]; v[0] = codigo; v[1] = nombre; v[2] = fabricante; v[3] = precio; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int[][] computeTable() {\n\t\tint [][] ret = new int[10][10];\n\t\tfor (int m = 0; m < 10; m++) {\n\t\t\tfor (int n = 0; n < 10; n++) {\n\t\t\t\tret[m][n] = m*n;\n\t\t\t}\n\t\t}\n\t\treturn ret;\n\t}", "private void MontarTabela(String where) {\n \n int linha = 0;\n int coluna ...
[ "0.61476684", "0.6076738", "0.59475124", "0.5896311", "0.57882637", "0.56785065", "0.56712157", "0.5643949", "0.56407684", "0.5638547", "0.5625487", "0.56237215", "0.5608558", "0.5532243", "0.54823285", "0.54087734", "0.5380688", "0.53796345", "0.53779703", "0.53777945", "0.5...
0.0
-1
funcion para buscar discos duros
public static void searchHdd(){ try { singleton.dtm = new DefaultTableModel(); singleton.dtm.setColumnIdentifiers(hdd); home_RegisterUser.table.setModel(singleton.dtm); Statement stmt = singleton.conn.createStatement(); R...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void solicitarRutinasPorDia() {\n eliminarTodasRutinas();\n\n }", "public List<DadosDiariosVO> validaSelecionaAcumuladoDadosDiarios(String ano) {\n\n\t\tList<DadosDiariosVO> listaDadosDiarios = validaSelecionaDetalhesDadosDiarios(ano);\n\n\t\tList<DadosDiariosVO> listaFiltradaDadosDiarios = new ...
[ "0.5971438", "0.5929132", "0.5592203", "0.555622", "0.55544454", "0.55533063", "0.5539758", "0.55202985", "0.55111164", "0.54907316", "0.54279554", "0.5422899", "0.5401198", "0.53383845", "0.5328229", "0.53031516", "0.5287712", "0.5283799", "0.52581936", "0.524596", "0.522947...
0.0
-1
funcion para montar la tabla de impresoras
public static Object[] getArrayDeObjectosPrinter(int codigo,String nombre,String fabricante,float precio, String stock, String tipo, String color,int ppm){ Object[] v = new Object[8]; v[0] = codigo; v[1] = nombre; v[2] = fabricante; v[3] = precio; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "UnpivotTable createUnpivotTable();", "public static int[][] computeTable() {\n\t\tint [][] ret = new int[10][10];\n\t\tfor (int m = 0; m < 10; m++) {\n\t\t\tfor (int n = 0; n < 10; n++) {\n\t\t\t\tret[m][n] = m*n;\n\t\t\t}\n\t\t}\n\t\treturn ret;\n\t}", "private void MontarTabela(String where) {\n \n ...
[ "0.6317469", "0.5972992", "0.5692779", "0.5687285", "0.56200767", "0.55912405", "0.55360836", "0.55282176", "0.55135083", "0.5500108", "0.54441476", "0.54349786", "0.5419681", "0.54153085", "0.5369295", "0.53333795", "0.5299001", "0.5290222", "0.5268139", "0.52416354", "0.523...
0.0
-1
funcion para buscar impresoras
public static void searchPrinter(){ try { singleton.dtm = new DefaultTableModel(); singleton.dtm.setColumnIdentifiers(printers); home_RegisterUser.table.setModel(singleton.dtm); Statement stmt = singleton.conn.createStatement(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void CobrarImpuestosReducidos(){\n\t\tif(sueldoBruto>=BASE_MINIMA_IMPUESTOS && sueldoBruto<IMPUESTO_SUP){\n\t\t\tsueldoNeto=sueldoBruto-(sueldoBruto*PAGA_IMPUESTOS_MIN);\n\t\t\ttipoImpuesto=\"Ha pagado el 20% de impuestos\";\n\t\t}\n\t}", "public void NopagaImpuestos(){\n\t\tif(sueldoBruto<BASE_MINIMA_IMP...
[ "0.6068737", "0.5768202", "0.56073403", "0.5522948", "0.54887915", "0.5395178", "0.53444284", "0.5261789", "0.5249099", "0.52303565", "0.5171511", "0.5124892", "0.51213306", "0.5100449", "0.51003766", "0.5085827", "0.50763327", "0.5064964", "0.50499517", "0.5006525", "0.49920...
0.0
-1
Creates a new feed instance.
public abstract void createFeed(final ServerBaseFeed feed, final GDataAccount account) throws ServiceException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected Feed newFeed() {\n\t\treturn new Feed(this.feedType);\n\t}", "public injective.ocr.v1beta1.Tx.MsgCreateFeedResponse createFeed(injective.ocr.v1beta1.Tx.MsgCreateFeed request) {\n return blockingUnaryCall(\n getChannel(), getCreateFeedMethod(), getCallOptions(), request);\n ...
[ "0.7514875", "0.63306755", "0.63145715", "0.6149929", "0.6100376", "0.6093347", "0.60539037", "0.599521", "0.5778608", "0.5757683", "0.57110536", "0.5643299", "0.56030536", "0.56030536", "0.56030536", "0.56030536", "0.5602927", "0.5596478", "0.55637217", "0.55293435", "0.5521...
0.5498545
23
Updates the given feed
public abstract void updateFeed(final ServerBaseFeed feed, final GDataAccount account) throws ServiceException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public com.google.common.util.concurrent.ListenableFuture<injective.ocr.v1beta1.Tx.MsgUpdateFeedResponse> updateFeed(\n injective.ocr.v1beta1.Tx.MsgUpdateFeed request) {\n return futureUnaryCall(\n getChannel().newCall(getUpdateFeedMethod(), getCallOptions()), request);\n }", "public inje...
[ "0.72259074", "0.71087164", "0.6936475", "0.676487", "0.6701749", "0.6699952", "0.6628829", "0.6383462", "0.6311183", "0.62969553", "0.6164906", "0.6130007", "0.60868883", "0.6081791", "0.605813", "0.6005651", "0.5918097", "0.59142053", "0.59113073", "0.5835585", "0.5812544",...
0.68488616
3
Deletes the given feed and all containing entries from the storage. The feed will not be accessable anymore.
public abstract void deleteFeed(final ServerBaseFeed feed) throws ServiceException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void removeFeeds(GoogleAdsClient googleAdsClient, long customerId, List<Feed> feeds) {\n List<FeedOperation> removeOperations =\n feeds.stream()\n .map(f -> FeedOperation.newBuilder().setRemove(f.getResourceName()).build())\n .collect(Collectors.toList());\n try (FeedServ...
[ "0.59647685", "0.59461445", "0.5860372", "0.57807666", "0.5700372", "0.56623036", "0.5623984", "0.55318445", "0.54907656", "0.5472427", "0.541947", "0.5395961", "0.53717107", "0.536059", "0.5350999", "0.5349167", "0.53394306", "0.5296632", "0.5283907", "0.5272931", "0.5271387...
0.6823821
0
Creates a new account accout.
public abstract void createAccount(final GDataAccount account) throws ServiceException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Account create();", "public void createUserAccount(UserAccount account);", "public void createAccount() {\n\t\tSystem.out.print(\"Enter Name: \");\n\t\tString name = nameCheck(sc.next());\n\t\tSystem.out.print(\"Enter Mobile No.: \");\n\t\tlong mobNo = mobCheck(sc.nextLong());\n\t\tlong accNo = mobNo - 1234;\n...
[ "0.754496", "0.70563704", "0.7049417", "0.7006172", "0.69449174", "0.69412", "0.69408023", "0.68655604", "0.68632066", "0.6794583", "0.67911345", "0.66698956", "0.6655145", "0.6639222", "0.6628926", "0.65996015", "0.6520355", "0.65098554", "0.6479064", "0.64269626", "0.640791...
0.6573962
16
Deletes the given account from the storage. it will also delete all accociated feeds.
public abstract void deleteAccount(final GDataAccount account) throws ServiceException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean delete(Account account);", "@Override\r\n\tpublic void delete(TAdAddress account) {\n\r\n\t}", "@Override\n\tpublic void delete(Long accountID) {\n\t\tlog.debug(\"Request to delete Accounts : {}\", accountID);\n\t\taccountsRepository.deleteById(accountID);\n\t}", "public void delete(String account) {...
[ "0.696311", "0.664361", "0.6588155", "0.651385", "0.6499489", "0.6479712", "0.6479171", "0.6427579", "0.62793547", "0.6238996", "0.61904275", "0.61894625", "0.61876", "0.6101323", "0.6091675", "0.60908204", "0.603661", "0.60109174", "0.589332", "0.5888895", "0.5881221", "0....
0.6983977
0
Updates the given account if the account already exists.
public abstract void updateAccount(final GDataAccount account) throws ServiceException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void updateAccount(Account account);", "public void updateAccount(Account account)\n\t {\n\t\t if(!accountExists(account)) addAccount(account);\n\t\t \n\t\t ContentValues values = new ContentValues();\n\t\t values.put(DatabaseContract.AccountContract.COLUMN_NAME_USERNAME, account.getUsername());\n\t\t valu...
[ "0.7911065", "0.748913", "0.74844605", "0.7472842", "0.7324219", "0.7323003", "0.73209614", "0.72731054", "0.7158506", "0.71332586", "0.71110696", "0.70588547", "0.70530266", "0.70018166", "0.6982924", "0.68376935", "0.68327177", "0.6769457", "0.67494136", "0.67446715", "0.67...
0.7396239
4
Returns the account for the given account name or null if the account does not exist
public abstract GDataAccount getAccount(String account) throws ServiceException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final AfAccount getAccount(String accountName) {\n return _accounts.get(accountName);\n }", "public Account getAccount(String name) {\n\t\tPlayer p = Bukkit.getPlayer(name);\n\t\tif (p == null)\n\t\t\treturn null;\n\t\treturn getAccount(p);\n\t}", "@Override\r\n\tpublic Account findByName(Stri...
[ "0.7736561", "0.7733792", "0.7584609", "0.7554803", "0.7455146", "0.7387797", "0.71478134", "0.70138794", "0.70090705", "0.6971815", "0.69136304", "0.6899849", "0.68592143", "0.68038124", "0.67725915", "0.6761891", "0.67314315", "0.6687789", "0.6677524", "0.6642156", "0.66174...
0.65132034
27
Returns the account associated with the feed for the given feed id
public abstract GDataAccount getFeedOwningAccount(String feedId) throws ServiceException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Response retrieveAccountFeed(AccountFeed feed) throws Exception {\n\t\treturn retrieveAccountFeed(feed, 1);\n\t}", "Account getAccount(int id);", "public Account getAccount(Integer id) {\n if (!accounts.containsKey(id)) {\n throw new NotFoundException(\"Not found\");\n }\n\n ...
[ "0.68698907", "0.668879", "0.6567243", "0.65072495", "0.64141434", "0.6369049", "0.63238275", "0.6138176", "0.6117849", "0.61068815", "0.6103168", "0.59637", "0.59506637", "0.5857302", "0.58337945", "0.58271736", "0.5798271", "0.5729235", "0.5687033", "0.5670107", "0.5646874"...
0.78980166
0
A B D 1.0
@Override protected void map(Text key, Text value, Context context) throws IOException, InterruptedException { int runCount = context.getConfiguration().getInt("runCount", 1); String page = key.toString(); Node node = null; if (runCount == 1) { node = Node.formatNode("1...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int bresA(int a, int b, int d) { //A as in Axis\n int add = 0;\n err += b;\n if(2*err >= a) {\n add = d;\n err -= a;\n }\n return add;\n }", "public static void main(String[] args) {\n byte u = 65;\n double d = 45.86865676d;\n ...
[ "0.5441647", "0.53840125", "0.53301334", "0.528975", "0.5233182", "0.5232301", "0.5229258", "0.5171444", "0.5170266", "0.51485085", "0.5143218", "0.51298136", "0.5126468", "0.5108081", "0.5088305", "0.5076336", "0.5071376", "0.5062573", "0.5061482", "0.50416315", "0.5036086",...
0.0
-1
private int numSubjects=3; Launch the application.
public static void main(String[] args) { EventQueue.invokeLater(new Runnable() { public void run() { try { Cliente window = new Cliente(); window.frame.setVisible(true); } catch (Exception e) { e.printStackTrace(); } } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\nlinktext oo=new linktext();\noo.launch();\n\t}", "public static void main(String[] args) {\n new DisplayManager(new AppointmentMgr()).StartProg(true);\n //AppointmentMgr.makeAppt = new makeAppt(AppointmentMgr);\n //myMgr.screen2 = new Screen2(myMgr);...
[ "0.5847481", "0.57861173", "0.5744648", "0.5739647", "0.5737004", "0.5591063", "0.5569566", "0.5557083", "0.55327374", "0.55327374", "0.55327374", "0.5525287", "0.55231684", "0.5502329", "0.548522", "0.54569733", "0.5455708", "0.544776", "0.5439013", "0.54290015", "0.54233867...
0.0
-1
Initialize the contents of the frame.
private void initialize() { frame = new JFrame(); frame.setBounds(100, 100, 650, 410); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.getContentPane().setLayout(null); /*JButton btnStatusView = new JButton("Status view"); btnStatusView.setBounds(520, 335, 100, 25); btnStatusView.addActionLis...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BreukFrame() {\n super();\n initialize();\n }", "public MainFrame() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "private void initialize() {\n\t\tthis.setSize(211, 449);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setTitle(\"JFrame\");\n\t}", "public SiscobanFrame() {\r\n\t\tsuper();\r...
[ "0.77704835", "0.75652915", "0.7442664", "0.7369101", "0.7366378", "0.7358479", "0.73146075", "0.73096764", "0.72987294", "0.72978777", "0.7278321", "0.72729623", "0.7269468", "0.7269468", "0.7215727", "0.7180792", "0.71682984", "0.7140954", "0.7140953", "0.7126852", "0.71079...
0.0
-1
String ipCliente; int porta;
@SuppressWarnings("unchecked") public void run() { Socket cliente = null; ArrayList<Data> dataReceived; long initialTime = System.currentTimeMillis(); while(!observer.isClosed()) { try { System.out.println("esperando atualizacao do Subject: "); cliente = observ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String getIPCliente(){//192.168, 172.16. o 10.0.\n\t\tString ipAddress=\"\";\n\t\ttry{\n\t\t\tHttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();\n\t\t\tipAddress = request.getHeader(\"X-FORWARDED-FOR\");\n\t\t\tif ( ipAddress == null...
[ "0.65590346", "0.64783615", "0.60446113", "0.6008144", "0.5999757", "0.5997147", "0.598277", "0.59798485", "0.59798485", "0.59798485", "0.58288115", "0.582547", "0.582547", "0.5817328", "0.58116496", "0.58081025", "0.57963866", "0.57963866", "0.5776481", "0.5770895", "0.57677...
0.0
-1
Creates and initializes the action with a duration, a "from" percentage and a "to" percentage
public static CCProgressFromTo action(float t, float fromPercentage, float toPercentage) { return new CCProgressFromTo(t, fromPercentage, toPercentage); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected CCProgressFromTo(float t, float fromPercentage, float toPercentage) {\n super(t);\n to_ = toPercentage;\n from_ = fromPercentage;\n }", "Duration(Integer duration){\n\t\t_minimum = duration;\n\t\t_maximum = duration;\n\t\t_range = new Range(_minimum, _maximum);\n\t}", "public ...
[ "0.6700054", "0.5720158", "0.55556804", "0.55074334", "0.5478362", "0.54522794", "0.54353696", "0.54119635", "0.53766054", "0.5337255", "0.5328625", "0.5328625", "0.5328625", "0.5326405", "0.53206295", "0.53135747", "0.5295781", "0.5280315", "0.5238959", "0.5208836", "0.52040...
0.695103
0
Initializes the action with a duration, a "from" percentage and a "to" percentage
protected CCProgressFromTo(float t, float fromPercentage, float toPercentage) { super(t); to_ = toPercentage; from_ = fromPercentage; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static CCProgressFromTo action(float t, float fromPercentage, float toPercentage) {\n return new CCProgressFromTo(t, fromPercentage, toPercentage);\n }", "protected void initialize() {\n \t\n \tstart_time = System.currentTimeMillis();\n \t\n \tgoal = start_time + duration;\n }", ...
[ "0.6554804", "0.6034631", "0.5948986", "0.5800915", "0.5586843", "0.5546638", "0.5467377", "0.54585785", "0.538933", "0.538565", "0.5364355", "0.5362283", "0.5361794", "0.53568554", "0.53389716", "0.53337896", "0.5288939", "0.5250672", "0.5227132", "0.52217704", "0.520693", ...
0.67900395
0
check if all permissions are granted or not
@Override public void onPermissionsChecked(MultiplePermissionsReport report) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isAllGranted(){\n //PackageManager.PERMISSION_GRANTED\n return false;\n }", "private boolean permisos() {\n for(String permission : PERMISSION_REQUIRED) {\n if(ContextCompat.checkSelfPermission(getContext(), permission) != PackageManager.PERMISSION_GRANTED) {\n ...
[ "0.8169311", "0.8125499", "0.81150603", "0.7713152", "0.76648474", "0.765947", "0.76414806", "0.7621992", "0.7570569", "0.752531", "0.74378425", "0.74172866", "0.7339728", "0.7311665", "0.7245698", "0.7236132", "0.72263944", "0.72068316", "0.716597", "0.71642715", "0.71567565...
0.0
-1
TODO Autogenerated method stub
public static void saveFavourite(Long idRes, Long idUser) { ArrayList<Favourite> allFav=loadFavourite(); int size=allFav.size()-1; Favourite last=allFav.get(size); Long idLast=last.getIdF(); Favourite save=new Favourite(idLast+1,idUser,idRes); allFav.add(save); saveToFile(allFav); }
{ "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
TODO Autogenerated method stub
private static void saveToFile(ArrayList<Favourite> allFav) { BufferedWriter writer=null; try { writer=new BufferedWriter(new FileWriter(Constants.KEY_FAV_FILE)); String save=""; for(Favourite f:allFav) { save+=fileFormat(f); } writer.write(save); }catch(Exception e) { e.printStackTrac...
{ "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
TODO Autogenerated method stub
private static String fileFormat(Favourite f) { return f.getIdF()+Constants.KEY_DB_SEPARATOR+ f.getUserId()+Constants.KEY_DB_SEPARATOR +f.getIdRes() + Constants.KEY_DB_SEPARATOR+ "\n"; }
{ "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
TODO Autogenerated method stub
public static ArrayList<Restaurant> getFav(Long idUser) { ArrayList<Favourite> allFav=loadFavourite(); ArrayList<Restaurant> allRes=RestaurantDao.loadRestaurants(); ArrayList<Restaurant> returnFavRes=new ArrayList<>(); for(Favourite f:allFav) { if(f.getUserId().equals(idUser)) { for(Restaurant r:allRes) ...
{ "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
TODO Autogenerated method stub
public static boolean proveriOmiljeno(Long idRes, Long idUser) { ArrayList<Favourite> allFav=loadFavourite(); for(Favourite f:allFav) { if(f.getUserId().equals(idUser) && f.getIdRes().equals(idRes)) { //znaci vec postoji return true; } } //ne postoji sve ok return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
================================================ Helper Methods ==================================================
private void render(Element element) { main.clear(); Widget content = createElementWidget(element); main.add(content); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Util() { }", "private stendhal() {\n\t}", "protected boolean func_70814_o() { return true; }", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private...
[ "0.5771076", "0.5638089", "0.5615599", "0.55839777", "0.55839777", "0.553754", "0.553754", "0.553754", "0.553754", "0.54715514", "0.5464958", "0.5353886", "0.53478956", "0.5319375", "0.5312653", "0.5293183", "0.52814114", "0.5277889", "0.52770257", "0.5270293", "0.5263539", ...
0.0
-1
Task86 Create an array that holds 12 months names user should be able to enter month index and output should be: "The month name is "
public static void main(String[] args) { Scanner sc = new Scanner(System.in); String [] myArray = new String[12]; myArray[0]= "January"; myArray[1]= "February"; myArray[2]= "March"; myArray[3]= "April"; myArray[4]= "May"; myArray[5]= "June"; myArray[6]= "July"; myArray[7]= "August"; myArray[...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) throws IOException {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n String s = reader.readLine();\n ArrayList<String> months = new ArrayList<>(Arrays.asList(\"January\",\n \"February\",\n \"...
[ "0.67335945", "0.6679127", "0.6639797", "0.6430399", "0.6401851", "0.6321367", "0.62832904", "0.62768203", "0.6256787", "0.6251126", "0.6241423", "0.6222022", "0.6194689", "0.6148315", "0.61425877", "0.6088215", "0.60802543", "0.60446465", "0.60231113", "0.6006417", "0.598301...
0.7717315
0
packet type id 0xB8 format:cd
@Override protected void readImpl() { _recipeId = readD(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getPacketType();", "public byte getPacketType() {\n return this.btPacketType;\n }", "@Override\n public int getType() {\n return 0x1c;\n }", "private String parseRDataAType(ByteBuffer response) {\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < 3; i++) {\n ...
[ "0.6730249", "0.6334055", "0.6231637", "0.6171003", "0.6127449", "0.61072916", "0.6061121", "0.60589916", "0.6007838", "0.5998442", "0.5980802", "0.59272736", "0.59176123", "0.5832121", "0.58033", "0.5762233", "0.5759038", "0.57458615", "0.5737251", "0.57230955", "0.5712526",...
0.0
-1
Cols, rows instead of row cols because intended to work with xSize and ySize dimensions.
@Override public int getRows(final IScope scope) { return numRows; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getSize() {\n return rows * cols;\n }", "int[] shape(){\n int[] dimensions = new int[2];\n dimensions[0] = this.rows;\n dimensions[1] = this.cols;\n return dimensions;\n }", "Dimension[] getSizes();", "public int getxlength(){ \n return numcol...
[ "0.64886975", "0.62115526", "0.62055016", "0.62049043", "0.60893834", "0.60813105", "0.6079383", "0.6072117", "0.6019119", "0.6019119", "0.59097826", "0.5907883", "0.5903375", "0.5893969", "0.58713204", "0.58712626", "0.5806461", "0.5765573", "0.5756603", "0.574646", "0.57391...
0.0
-1
Instantiates a new gama matrix.
protected GamaMatrix(final IScope scope, final List objects, final ILocation preferredSize, final IType contentsType) { if ( preferredSize != null ) { numRows = (int) preferredSize.getY(); numCols = (int) preferredSize.getX(); } else if ( objects == null || objects.isEmpty() ) { numRows = 1; numCo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Graph instantiateAdjacencyMatrixGraph() {\r\n\t\treturn new AdjacencyMatrixGraph();\r\n\t}", "public Matrix() {\n matrix = new double[DEFAULT_SIZE][DEFAULT_SIZE];\n }", "Matrix(){\n matrixVar = new double[1][1];\n rows = 1;\n columns = 1;\n }", "public MMAge(){...
[ "0.62989646", "0.6044941", "0.59628886", "0.59606856", "0.5942826", "0.58629495", "0.58487654", "0.5825134", "0.5709366", "0.5674668", "0.5572053", "0.5470965", "0.54211414", "0.5417334", "0.5341973", "0.53403467", "0.5311216", "0.5294105", "0.52873707", "0.52618086", "0.5246...
0.49924204
40
Take two matrices (with the same number of columns) and create a big matrix putting the second matrix under the first matrix
@Override @operator(value = IKeyword.APPEND_VERTICALLY, content_type = ITypeProvider.BOTH, category = { IOperatorCategory.MATRIX }) public IMatrix opAppendVertically(final IScope scope, final IMatrix b) { if ( this instanceof GamaIntMatrix && b instanceof GamaIntMatrix ) { return ((GamaIntMatrix) this) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Matrix(Matrix first, Matrix second) {\n if (first.getColumns() == second.getRows()) {\n this.rows = first.getRows();\n this.columns = second.getColumns();\n matrix = new int[first.getRows()][second.getColumns()];\n for (int col = 0; col < this.getColumns(); col++)...
[ "0.6843255", "0.60873026", "0.60655344", "0.58982074", "0.5873908", "0.57503015", "0.56901854", "0.5652834", "0.56372374", "0.5619991", "0.55931354", "0.55647266", "0.5558136", "0.55200505", "0.5450203", "0.54389536", "0.5438443", "0.54272866", "0.54150474", "0.5410853", "0.5...
0.4913172
88
Take two matrices (with the same number of rows) and create a big matrix putting the second matrix on the right side of the first matrix
@Override @operator(value = IKeyword.APPEND_HORIZONTALLY, content_type = ITypeProvider.BOTH, category = { IOperatorCategory.MATRIX }) public IMatrix opAppendHorizontally(final IScope scope, final IMatrix b) { if ( this instanceof GamaIntMatrix && b instanceof GamaIntMatrix ) { return ((GamaIntMatrix) this)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Matrix(Matrix first, Matrix second) {\n if (first.getColumns() == second.getRows()) {\n this.rows = first.getRows();\n this.columns = second.getColumns();\n matrix = new int[first.getRows()][second.getColumns()];\n for (int col = 0; col < this.getColumns(); col++)...
[ "0.6391155", "0.6221204", "0.59993684", "0.5994331", "0.58758974", "0.57826334", "0.56702954", "0.5486472", "0.5473188", "0.5457926", "0.5442806", "0.5442158", "0.5434422", "0.5426871", "0.542666", "0.5426145", "0.5390345", "0.5337386", "0.5264546", "0.5250033", "0.5241181", ...
0.5516284
7
09/01/14:Trying to keep the interface simple. Three methods for add and put operations: The simple method, that simply contains the object to add
@Override public void addValue(final IScope scope, final T value) {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void Add(Object obj );", "public void add();", "public void add(Object o);", "public void add (T obj);", "@Override\n <T> void add(T object);", "int add(T objectToCreate);", "boolean add(Object obj);", "boolean add(Object obj);", "@Override\n\tpublic void add(Object o) {\n\t}", "public void ad...
[ "0.7392599", "0.73489875", "0.72863615", "0.72646886", "0.72633916", "0.7195354", "0.7143594", "0.7143594", "0.7122242", "0.7103392", "0.7094853", "0.7088139", "0.70726204", "0.7069864", "0.70538014", "0.7049309", "0.7025951", "0.70070183", "0.70069665", "0.68478787", "0.6811...
0.0
-1
The same but with an index (this index represents the old notion of parameter where it is needed.
@Override public void addValueAtIndex(final IScope scope, final Object index, final T value) {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Function getParameter(int index) throws IndexOutOfBoundsException;", "protected final Expression param(int idx) {\r\n return (Expression)m_params.get(idx);\r\n }", "public <P extends Parameter> P parameter(Class<P> kind, int index);", "public Function setParameter(int index, Function var) th...
[ "0.73169816", "0.7060479", "0.6802014", "0.6657896", "0.6492614", "0.64840466", "0.6469727", "0.64642036", "0.64144206", "0.6408326", "0.6319979", "0.6285629", "0.62563443", "0.6212263", "0.6212138", "0.62092537", "0.6198489", "0.61891496", "0.61833984", "0.6177024", "0.61765...
0.0
-1
set, that takes a mandatory index (also replaces the parameter)
@Override public void setValueAtIndex(final IScope scope, final Object index, final T value) { ILocation p = buildIndex(scope, index); set(scope, (int) p.getX(), (int) p.getY(), value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void set(int idx, int val);", "public void set(long index);", "void setIdx(int i);", "void set(int index, T data);", "public abstract <T> void set(int index, T value);", "void set(int index, Object element);", "public abstract E set(int index, E e);", "public void setIndex(int index)\n/* */ {\n/...
[ "0.79862", "0.7941748", "0.77719796", "0.77078456", "0.7705392", "0.7484591", "0.7385217", "0.73258704", "0.7256725", "0.7240162", "0.7236526", "0.7171675", "0.7156143", "0.7105729", "0.7051972", "0.70294845", "0.7002325", "0.6992355", "0.69867146", "0.696147", "0.6945566", ...
0.0
-1
Then, methods for "all" operations Adds the values if possible, without replacing existing ones
@Override public void addValues(final IScope scope, final IContainer values) {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static final void addAll(ContainerValue cont, List<Value> result) {\r\n for (int i = 0; i < cont.getElementSize(); i++) {\r\n result.add(cont.getElement(i));\r\n }\r\n }", "public void addAll(Object... values) {\n verifyModifiable();\n\n if (values.length == 1 && values[0] insta...
[ "0.613122", "0.60620683", "0.5966491", "0.5959623", "0.5886196", "0.5877714", "0.5852269", "0.5782533", "0.5757193", "0.5742215", "0.5703858", "0.5661128", "0.56211466", "0.5609993", "0.5599332", "0.55810994", "0.5569346", "0.55605", "0.5559544", "0.5548219", "0.5517452", "...
0.576531
8
Adds this value to all slots (if this operation is available), otherwise replaces the values with this one
@Override public void setAllValues(final IScope scope, final T value) { _putAll(scope, value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void add(@NotNull T value) {\n\t\tObject priorValue;\n\t\tboolean replaced;\n\t\tdo {\n\t\t\tpriorValue = this.value.get();\n\t\t\tObject newValue = combine(priorValue, value);\n\t\t\treplaced = this.value.compareAndSet(priorValue, newValue);\n\t\t} while (!replaced);\n\t}", "public final void add()...
[ "0.5930909", "0.5908895", "0.5775741", "0.57710576", "0.57326615", "0.5630328", "0.5627094", "0.5545067", "0.54799783", "0.547965", "0.5469964", "0.546175", "0.54418766", "0.5375381", "0.53522855", "0.5340413", "0.5296531", "0.52959836", "0.52928305", "0.52855396", "0.5284562...
0.0
-1
PRIVATE METHODS INTENDED TO ALLOW MATRICES TO IMPLEMENT GAML OPERATORS POLYMORPHISM IS NOT REALLY SUPPORTED BY THE GAML COMPILER AND IS TAKEN IN CHARGE BY JAVA THROUGH THIS TRICK.
protected abstract IList _listValue(IScope scope, IType contentsType, boolean cast);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface PerlTokenSets extends PerlElementTypes, MooseElementTypes {\n TokenSet OPERATORS_TOKENSET = TokenSet.create(\n OPERATOR_CMP_NUMERIC,\n OPERATOR_LT_NUMERIC,\n OPERATOR_GT_NUMERIC,\n\n OPERATOR_CMP_STR,\n OPERATOR_LE_STR,\n OPERATOR_GE_STR,\n OPERATOR_EQ_STR,\n OPERATOR_NE_S...
[ "0.55791694", "0.5502811", "0.5475851", "0.54150045", "0.5403951", "0.5400073", "0.5330183", "0.53090936", "0.5270987", "0.52704984", "0.524887", "0.52248114", "0.52248114", "0.52248114", "0.5214913", "0.5208443", "0.5194249", "0.51762956", "0.5175275", "0.5135848", "0.513180...
0.0
-1
An initialization function that's called the first time this object is updated IMPORTANT: do NOT try to replicate this behavior with a constructor it WON'T work
public void OnStart(){ //create the random space background and put its priority behind everything else switch ((int) (Math.random() * 3)){ case 0: background = new Background(R.drawable.spaceback_med,new Point(0,0),-1); break; case 1: background = new Background(R.drawable.spaceback_asteroids,new...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void init() {\n \n }", "private void init() {\n }", "@objid (\"4bb3363c-38e1-48f1-9894-6dceea1f8d66\")\n public void init() {\n }", "private void init() {\n }", "private void init() {\n }", "private void init() {\n }", "private void init() {\n }", "public v...
[ "0.7689059", "0.7561372", "0.75411254", "0.7536998", "0.7536998", "0.7536998", "0.7536998", "0.751972", "0.7511459", "0.74893457", "0.74893457", "0.74793583", "0.74793583", "0.74520594", "0.7442996", "0.74327576", "0.7412111", "0.7396469", "0.73919046", "0.73917377", "0.73789...
0.0
-1
wraps a game object around to the other side of the screen if it goes past the edge of the background
public void ScreenWrap(GameObject o){ if (o.pos.x > (background.pos.x + background.GetWidth()/2)){ o.pos.x -= background.GetWidth(); } else if (o.pos.x < (background.pos.x - background.GetWidth()/2)){ o.pos.x += background.GetWidth(); } if (o.pos.y > (background.pos.y + background.GetHeight()/2)){ o....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void bounceOffEdge()\n {\n int margin = 2;\n\n if (getX() <= margin || getX() >= getWorld().getWidth() - margin) //left or right side\n {\n turn(180);\n }\n if (getY() <= margin || getY() >= getWorld().getHeight() - margin) //top or bottom side\n {\...
[ "0.67261", "0.6533931", "0.6361734", "0.6269124", "0.6051041", "0.60487384", "0.60368294", "0.60049456", "0.59404093", "0.5935025", "0.59075105", "0.59075105", "0.59015745", "0.581371", "0.57942057", "0.57840866", "0.57389355", "0.57078636", "0.56950635", "0.56881213", "0.568...
0.7668625
0
TODO: Warning this method won't work in the case the id fields are not set
@Override public boolean equals(Object object) { if (!(object instanceof APerson)) { return false; } APerson other = (APerson) object; if ((this.personId == null && other.personId != null) || (this.personId != null && !this.personId.equals(other.personId))) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setId(Integer id) { this.id = id; }", "private Integer getId() { return this.id; }", "public void setId(int id){ this.id = id; }", "public void setId(Long id) {this.id = id;}", "public void setId(Long id) {this.id = id;}", "public void setID(String idIn) {this.id = idIn;}", "public void se...
[ "0.6895531", "0.683832", "0.6704498", "0.6640818", "0.6640818", "0.6591583", "0.65777755", "0.65777755", "0.6574026", "0.6574026", "0.6574026", "0.6574026", "0.6574026", "0.6574026", "0.6561151", "0.6561151", "0.65438837", "0.6523999", "0.6515456", "0.64872324", "0.6476735", ...
0.0
-1
/ TODO 1. client moves through the world and sends input updates 2. ...client side prediction, server reconciliation, entity interpolation
@Override public void create() { setScreen(new ServerScreen( new RemoteGame(), new SocketIoGameServer(HOST, PORT) )); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void update(Env world) throws Exception;", "@Override\n\tpublic void updateAction(Client input) {\n\t\t\n\t}", "private void sendData() {\n final ByteBuf data = Unpooled.buffer();\n data.writeShort(input);\n data.writeShort(output);\n getCasing().sendData(getFace(), data, DATA_TYPE_...
[ "0.5880389", "0.58562446", "0.582476", "0.57921094", "0.56622803", "0.5640678", "0.5639222", "0.5627282", "0.5617336", "0.5593108", "0.55710495", "0.55630875", "0.5561314", "0.55500925", "0.5545312", "0.55208164", "0.5506024", "0.5484187", "0.5481788", "0.54632145", "0.546321...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { int n=5; for(int i=n-1;i>=0;i--) { for(int space=0;space<n-1-i;space++) { System.out.print(" "); } for(int j=0;j<=i*2;j++) { System.out.print("* "); } System.out.println(); } }
{ "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
/ Stats loader uses this method to read in a text file and fill the player with game stats from the file.
public static void loadGameStats(Player player) throws FileNotFoundException { gameStatsReader = new BufferedReader(new FileReader("src/main/resources/stats/gamestats.txt")); try { player.getGameStats().setAttacks(Integer.parseInt(gameStatsReader.readLine())); player.getGameStats...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Roster(String fileName){\n players = new ArrayList<>();\n try {\n Scanner input = new Scanner(new File(fileName));\n\n // Loop will cycle through all the \"words\" in the text file\n while (input.hasNext()){\n // Concatenates the first and last n...
[ "0.6844713", "0.680313", "0.6641781", "0.6600398", "0.65454966", "0.6418691", "0.62752914", "0.6235763", "0.6234162", "0.62233675", "0.6212671", "0.6167966", "0.61246186", "0.60873055", "0.60678864", "0.60433096", "0.60142154", "0.5959091", "0.5956628", "0.59562373", "0.59526...
0.7686642
0
/ Stats loader uses this method to read in a text file and fill the player with historical stats from the file.
public static void loadHistoricalStats(Player player) throws FileNotFoundException { historicalStatsReader = new BufferedReader(new FileReader("src/main/resources/stats/historicalstats.txt")); try { player.getHistoricalStats().setWins(Integer.parseInt(historicalStatsReader.readLine())); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void loadGameStats(Player player) throws FileNotFoundException {\n gameStatsReader = new BufferedReader(new FileReader(\"src/main/resources/stats/gamestats.txt\"));\n try {\n player.getGameStats().setAttacks(Integer.parseInt(gameStatsReader.readLine()));\n player.g...
[ "0.6884615", "0.6512306", "0.6459638", "0.63284814", "0.6323801", "0.62235343", "0.62091863", "0.61767477", "0.6157433", "0.6087119", "0.6062763", "0.60550773", "0.60417074", "0.60366064", "0.60227424", "0.5974762", "0.59239376", "0.5882416", "0.58715045", "0.5828923", "0.580...
0.7378188
0
TODO Autogenerated method stub
@Override public StudentDao createDao() { return new SqliteStudentDaoImpl(); }
{ "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
TODO Autogenerated method stub
@Override public ProfessorDao GetProfessorInstance() throws Exception { return new SqliteProfessorDaoImpl(); }
{ "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
TODO Autogenerated method stub
@Override public CourseDao GetCourseInstance() throws Exception { return new SqliteCourseDaoImpl(); }
{ "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
TODO Autogenerated method stub
@Override public SectionDao GetSectionInstance() throws Exception { return new SqliteSectionDaoImpl(); }
{ "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
TODO Autogenerated method stub
@Override public TranscriptDao GetTranscriptInstance() throws Exception { return new SqliteTranscriptDaoImpl(); }
{ "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
TODO Autogenerated method stub
@Override public StudentDao GetStudentInstance() throws Exception { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
Called when an activity you launched exits, giving you the requestCode you started it with, the resultCode it returned, and any additional data from it.
public boolean onActivityResult (int requestCode, int resultCode, Intent data) { return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t\tif (resultCode == RESULT_OK)\n\t\t\tfinish();\n\t}", "@Override\r\n\tprotected void onActivityResult(int arg0, int arg1, Intent arg2) {\n\t\tsuper.onActivityResult(arg0...
[ "0.7059097", "0.7014661", "0.7001192", "0.6942234", "0.6867953", "0.68408567", "0.68226975", "0.6765836", "0.6620847", "0.65384156", "0.64907897", "0.64850837", "0.64803696", "0.6478071", "0.6456862", "0.64189416", "0.64039665", "0.635732", "0.63038516", "0.62816805", "0.6262...
0.5676015
70
Called when the activity is starting.
public static boolean isSupported() { Log.v("trace", "Checking Vibrator is supported " + mVibrator.hasVibrator() ); return mVibrator != null && mVibrator.hasVibrator(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onStart() {\n super.onStart();\n ApplicationStateMonitor.getInstance().activityStarted();\n }", "@Override\n protected void onStart() {\n Log.i(\"G53MDP\", \"Main onStart\");\n super.onStart();\n }", "@Override\n\tpublic void onActivityCreated(Bundle savedInstan...
[ "0.7856287", "0.7595091", "0.74375784", "0.7414778", "0.7401313", "0.7368391", "0.7357083", "0.73379415", "0.73102945", "0.7308861", "0.7306268", "0.73038995", "0.72685975", "0.72662055", "0.7261559", "0.7261559", "0.7261559", "0.7261559", "0.7261559", "0.72534186", "0.725137...
0.0
-1
Perform any final cleanup before an activity is destroyed.
public void onDestroy () { mVibrator = null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tActivityCollector.removeActivity(this);\n\t}", "public void destroy() {\n Logger.d(TAG, \"onDestroy() entry\");\n if (mActivity != null) {\n mActivity = null;\n }\n if (mListener != null) {\n ...
[ "0.80065376", "0.7805141", "0.76790583", "0.75295997", "0.75092244", "0.74999094", "0.74622047", "0.7397539", "0.7375633", "0.73408604", "0.7334994", "0.730955", "0.72318333", "0.7181555", "0.71706724", "0.71700835", "0.71479595", "0.7130592", "0.7129891", "0.71252584", "0.70...
0.0
-1
Called as part of the activity lifecycle when an activity is going into the background, but has not (yet) been killed.
public void onPause () { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@OnLifecycleEvent(Lifecycle.Event.ON_STOP)\n public void onMoveToBackground() {\n Log.i(\"AppLifecycleListener\", \"Background\");\n\n }", "@Override\n\tprotected void onResume() {\n\t\tisbackground=0;\n\t\tsuper.onResume();\n\t\t\n\t}", "@Override\n protected void onDestroy() {\n\tsuper.onDestro...
[ "0.75210017", "0.7228955", "0.6951649", "0.6834365", "0.67265034", "0.67235214", "0.6644428", "0.65790874", "0.65431905", "0.653651", "0.65305173", "0.6530021", "0.6528791", "0.6514897", "0.6512688", "0.64838326", "0.64818436", "0.64818436", "0.64748204", "0.6468856", "0.6468...
0.0
-1
Called when the activity is no longer visible to the user, because another activity has been resumed and is covering this one.
public void onStop () { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onPause() {\n super.onPause();\n overridePendingTransition(0, 0);\n ChatActivityEnterView chatActivityEnterView2 = this.chatActivityEnterView;\n if (chatActivityEnterView2 != null) {\n chatActivityEnterView2.hidePopup(false);\n this.chatActivityEnterVie...
[ "0.69678295", "0.6870594", "0.6721358", "0.6480249", "0.64399433", "0.6417284", "0.6417284", "0.63794273", "0.6316786", "0.6312291", "0.6311574", "0.63103765", "0.6291398", "0.6285313", "0.6245098", "0.6243485", "0.6219601", "0.6210012", "0.6208916", "0.6202729", "0.6198916",...
0.0
-1
Returns raw x location of shape. Developers should use the more common getX, which presents positive x.
public double x() { return _x; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final double getX() { return location.getX(); }", "public int getX(){\n\t\treturn this.x_location;\n\t}", "public int getX() {\n if (this.coordinates == null)\n return -1;\n return this.coordinates.x();\n }", "public float getX() { return xCoordinate;}", "@Override\n\tpublic double getXL...
[ "0.777952", "0.7691273", "0.76087546", "0.7581098", "0.75256073", "0.7466172", "0.74460757", "0.7430382", "0.7422378", "0.7409986", "0.740527", "0.7387618", "0.7378848", "0.73635995", "0.7362062", "0.73489666", "0.734539", "0.7328015", "0.7304918", "0.7291397", "0.72865224", ...
0.0
-1
Returns raw y location of shape. Developers should use the more common getY, which presents positive y.
public double y() { return _y; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final double getY() { return location.getY(); }", "@Override\n\tpublic double getYLoc() {\n\t\treturn y;\n\t}", "public int getY() {\n if (this.coordinates == null)\n return -1;\n return this.coordinates.y();\n }", "public double getY();", "public int getLocationY() {\r\n\t\treturn y;\r\...
[ "0.8076583", "0.8021774", "0.7977714", "0.79548717", "0.7893715", "0.7881901", "0.78502434", "0.7790213", "0.77886915", "0.7771408", "0.77672184", "0.7762911", "0.77588946", "0.7729994", "0.7727472", "0.77241296", "0.77241296", "0.77241296", "0.7723645", "0.7723645", "0.77236...
0.0
-1
Returns raw width of shape. Developers should use the more common getWidth, which presents positive width.
public double width() { return _width; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getWidth() {\n\t\tdouble width = Math.round(sideLength + (2 * sideLength * \n\t\t\t\tMath.sin(Math.PI / 4)));\n\t\treturn width;\n\t}", "public int getWidth() {\n return (int) Math.round(width);\n }", "public double getWidth() {\n\t\t\treturn width.get();\n\t\t}", "@java.lang.Override...
[ "0.7647533", "0.75752825", "0.75739217", "0.75373644", "0.75353146", "0.7531721", "0.75274277", "0.75274277", "0.75156915", "0.75057733", "0.74874294", "0.74874294", "0.74858165", "0.7469194", "0.74471503", "0.74415094", "0.74391645", "0.74366724", "0.74168694", "0.74168694", ...
0.0
-1
Returns raw height of shape. Developers should use the more common getHeight, which presents positive height.
public double height() { return _height; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getHeight() {\n\t\tdouble height = Math.round(sideLength + (2 * sideLength * \n\t\t\t\tMath.sin(Math.PI / 4)));\n\t\treturn height;\n\t}", "public double getHeight();", "public double getHeight();", "long getHeight();", "@Override\n public int getHeight() {\n colorSpaceType.assertNu...
[ "0.75340575", "0.7519508", "0.7519508", "0.7469007", "0.74176174", "0.74138314", "0.74089324", "0.73996913", "0.73913985", "0.73913985", "0.73913985", "0.73913985", "0.73913985", "0.73913985", "0.7386847", "0.7380696", "0.7373617", "0.7362558", "0.73556864", "0.73437655", "0....
0.0
-1
Returns raw x, y, width and height of shape as rect (preserves possible negative sizes).
public RMRect bounds() { return new RMRect(x(), y(), width(), height()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "org.chromium.components.paint_preview.common.proto.PaintPreview.RectProto getRect();", "public Rectangle get_rect() {\n\t\treturn new Rectangle(\n\t\t\t\torigin_x+component_x, \n\t\t\t\torigin_y+component_y-component_height+3, \n\t\t\t\tcomponent_width, \n\t\t\t\tcomponent_height\n\t\t\t);\n\t}", "public Recta...
[ "0.70105827", "0.68176526", "0.6762807", "0.67110056", "0.6658813", "0.66377467", "0.6624221", "0.6584775", "0.65550834", "0.6519118", "0.6458183", "0.64527565", "0.6449264", "0.6425489", "0.64139754", "0.6395922", "0.63661724", "0.6365648", "0.6349203", "0.63364565", "0.6334...
0.64403814
13
Returns the X location of the shape.
public double getX() { return _width<0? _x + _width : _x; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getX(){\n\t\treturn this.x_location;\n\t}", "@Override\n\tpublic double getXLoc() {\n\t\tdouble side = Math.sqrt(getMySize())/2;\n\t\treturn x+side;\n\t}", "public double getLocationX() {\r\n\t\treturn location.getX();\r\n\t}", "public int getX() {\r\n\t\treturn xcoord;\r\n\t}", "public int getX...
[ "0.7653112", "0.75406575", "0.74331754", "0.7429229", "0.7396233", "0.739231", "0.7356061", "0.73532534", "0.7352253", "0.73349154", "0.7330425", "0.7300253", "0.7286904", "0.7285807", "0.7285539", "0.7285539", "0.7284769", "0.72797924", "0.7265948", "0.7261385", "0.7261385",...
0.0
-1
Sets the X location of the shape.
public void setX(double aValue) { if(_x==aValue) return; // If value already set, just return repaint(); // Register repaint firePropertyChange("X", _x, _x = aValue, -1); // Set value and fire PropertyChange if(_parent!=null) _parent.setNeedsLayout(true); // Rather bogus }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setXLoc(int xLoc){\n myRectangle.setX(xLoc);\n }", "public void setX(int xpos) {\r\n this.xpos = xpos;\r\n }", "@Override\n\tpublic void setX(int x) {\n\t\txPos = x;\n\t}", "public void setX( int x ) {\n\t\t//not checking if x is valid because that depends on the coordinate system\n...
[ "0.7668827", "0.7240336", "0.7233981", "0.7172418", "0.71412927", "0.7129746", "0.7092523", "0.7090659", "0.6988786", "0.6920086", "0.6901924", "0.6877906", "0.6874156", "0.68566126", "0.68290144", "0.6812985", "0.6804777", "0.6801593", "0.6795846", "0.67952555", "0.6751865",...
0.0
-1