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
Selected email action property key getter
public String propKey() { return propKey; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "KeycloakEmailActions(String propKey){\n this.propKey = propKey;\n }", "private static String getActionFromMessageAttributes(MessageInfo msgInfo) {\n String action = null;\n if (msgInfo != null\n && msgInfo.getExtensionAttributes() != null) {\n String attr = getAction...
[ "0.6961035", "0.60444456", "0.592021", "0.5803177", "0.57864136", "0.57488585", "0.5748087", "0.57066715", "0.5674685", "0.5674685", "0.5674685", "0.5669863", "0.5665225", "0.56619614", "0.5640194", "0.5638496", "0.56372166", "0.5604909", "0.5594781", "0.5594781", "0.5594781"...
0.5353194
51
Created with IntelliJ IDEA. User: krld Date: 02.06.13 Time: 2:35 To change this template use File | Settings | File Templates.
public interface HealingObject {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "private Solution() {\n /**.\n * { constructor }\n */\n }", "public void mo38117a() {\n }", "@Override\n public void perish() {\n \n }", "public static void generateCode()\n {\n \n }", "@SuppressWarnings(\"unused\")\n\...
[ "0.61253095", "0.5937533", "0.5814236", "0.5777509", "0.5769327", "0.575607", "0.5753231", "0.5732642", "0.5702841", "0.569954", "0.56908524", "0.5686909", "0.5653694", "0.5642391", "0.5642356", "0.5642356", "0.56398493", "0.56348836", "0.56285775", "0.56161135", "0.56161135"...
0.0
-1
/ Picasso.with(context.getApplicationContext()) .load(" + list_data.get(position).get("gambar")) .error(R.drawable.no_available) .into(holder.imghape);
@Override public void onBindViewHolder(AdapterList.ViewHolder holder, final int position) { Glide.with(context) .load("http://192.168.43.228/app_blogvolley/img/" + list_data.get(position).get("gambar")) .crossFade() .placeholder(R.drawable.no_available) .into(holder.imghape); // holder.txthape.setText(list_data.get(position).get("merk")); holder.imghape.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { Glide.with(context) .load("http://192.168.43.228/app_blogvolley/img/" + list_data.get(position).get("gambar")) .crossFade() .placeholder(R.drawable.no_available) .into(imgViewOne); txtArab.setText((CharSequence) list_data.get(position).get("tipe")); txtIndo.setText(list_data.get(position).get("merk")); } }); HashMap<String, String> data = list_data.get(position); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onError() {\n Picasso.with(getActivity())\n .load(f.getItemImage())\n .error(R.drawable.placeholder)\n .into(foodItemHolder.imageView, n...
[ "0.78298986", "0.77967817", "0.7662325", "0.7510545", "0.74369144", "0.7385181", "0.73502016", "0.7308323", "0.7223534", "0.7186828", "0.717606", "0.7053643", "0.70144564", "0.6952183", "0.695063", "0.69313085", "0.69256985", "0.6883178", "0.68197626", "0.67332906", "0.663901...
0.68477
18
// Kalo dibawah ini error, atur sendiri ya. Yg penting ImageSwitcher sudah didapatkan Glide.with(context) .load(" + list_data.get(getAdapterPosition()).get("gambar")) .crossFade() .placeholder(R.drawable.no_available) .into((ImageView)imageSwitcher.getCurrentView());
@Override public void onClick(View view) { Toast.makeText(context, "satu" +list_data.get(getAdapterPosition()), Toast.LENGTH_SHORT).show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void UpdateUI(Context context, int position, Advert data) {\n\n Glide\n .with(context)\n .load(data.img_path)\n .centerCrop()\n .placeholder(R.mipmap.jiazai)\n .error(R.mipmap.jiazai)\n// .overrid...
[ "0.71543235", "0.69381297", "0.6870345", "0.6796716", "0.67793894", "0.67477757", "0.6721078", "0.6704079", "0.6680156", "0.6629348", "0.66270274", "0.6621318", "0.660487", "0.66034466", "0.65857255", "0.6559513", "0.6546895", "0.6538267", "0.6534504", "0.65075445", "0.649616...
0.0
-1
Constructor for the SinglyLinkedList object Generates an empty list.
public CircleQueueAL() { firstObject = null; lastObject = null; currentObject = null; //AL = null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SinglyLinkedList() {\n this.len = 0;\n }", "public SinglyLinkedList() {\n this.head = null;\n this.tail = null;\n this.size = 0;\n }", "public SinglyLinkedList()\n {\n first = null; \n last = null;\n }", "public MySinglyLinkedList() { }", "public SLList()\n {...
[ "0.84980595", "0.84145796", "0.8279688", "0.82479495", "0.81488067", "0.8130302", "0.8127145", "0.81233776", "0.8026222", "0.77880365", "0.77298003", "0.76823545", "0.7670814", "0.76658016", "0.76500905", "0.7630489", "0.7617229", "0.76161253", "0.7602925", "0.7600659", "0.75...
0.0
-1
Returns the head opaqueObject.
public Object getFirstObject() { currentObject = firstObject; if (firstObject == null) return null; else return AL.get(0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Atom getHead ()\r\n\t{\r\n\t\treturn _head.get(0);\r\n\t}", "@Override\n\tpublic Head getHead() {\n\t\treturn head;\n\t}", "public HeadComponent getHead() {\n\t\treturn (HeadComponent) snake.getLast();\n\t}", "public String getHead() {\n return _head;\n }", "public T getHead() {\n r...
[ "0.6835525", "0.67586213", "0.6734701", "0.66975826", "0.6651281", "0.6618726", "0.660456", "0.6564987", "0.65221584", "0.65138584", "0.6513346", "0.6513271", "0.64662695", "0.644924", "0.6442057", "0.6434969", "0.6410643", "0.6410643", "0.63924766", "0.6386008", "0.63724095"...
0.64577645
13
Returns the tail opaqueObjects.
public Object getLastObject() { currentObject = lastObject; if (lastObject == null) return null; else return AL.get(AL.size()-1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private List<? extends Object> getTail(List<? extends Object> trace) {\r\n\t\tList<Object> tail = new ArrayList<Object>(trace.size() - 1);\r\n\t\tfor (int i = 1; i < trace.size(); i++) {\r\n\t\t\ttail.add(trace.get(i));\r\n\t\t}\r\n\t\treturn tail;\r\n\t}", "List<SoftObjectReference> getObjects();", "public T ...
[ "0.6164622", "0.56639045", "0.5557608", "0.5548801", "0.54501224", "0.5358168", "0.5343559", "0.5330779", "0.53244984", "0.53120106", "0.52719945", "0.526844", "0.52676404", "0.5255586", "0.52361614", "0.52347755", "0.5231317", "0.5231317", "0.51880324", "0.51822144", "0.5140...
0.5005031
32
Returns the current Object
public Object getObject() { if (currentObject == null) return null; else return AL.indexOf(currentObject); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Object getCurrentObject()\r\n\t{\r\n\t\tif (newState != null)\r\n\t\t{\r\n\t\t\t// Not applied yet\r\n\t\t\treturn newState.unmodifiedObject;\r\n\t\t}\r\n\r\n\t\treturn propertyBrowser.getObject();\r\n\t}", "public Object getObject() {\n\t\treturn object;\n\t}", "public Object getObject() {\r\n\t\tretur...
[ "0.80635995", "0.7965815", "0.7945501", "0.79298234", "0.7802272", "0.7760017", "0.7727503", "0.7661758", "0.75406766", "0.75365204", "0.75078917", "0.7486838", "0.73577917", "0.72897816", "0.72860485", "0.72726786", "0.71589965", "0.7081528", "0.7012463", "0.6994729", "0.695...
0.73930246
12
Advances the current node.
public void setNext() { int currentIndex = AL.indexOf(currentObject); currentObject = AL.get(currentIndex +1); // never let currentNode be null, wrap to head if (currentObject == null) currentObject = firstObject; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void advance() {\n if (isCurrent()) {\n prev = cursor;\n cursor = cursor.getNext();\n } else {\n throw new IllegalStateException(\"There is no current element.\");\n }\n }", "public void advance( )\r\n {\r\n\t if(isCurrent() != tr...
[ "0.76406115", "0.75971025", "0.69890743", "0.69874185", "0.6918388", "0.6916844", "0.69087857", "0.6816981", "0.67673683", "0.67136526", "0.670254", "0.6605736", "0.65982836", "0.65198344", "0.65071243", "0.65037125", "0.6443744", "0.6410289", "0.6394807", "0.6362513", "0.632...
0.66647017
11
Reverses the current node.
public void setPrevious() { int currentIndex = AL.indexOf(currentObject); currentObject = AL.get(currentIndex -1); // never let currentNode be null, wrap to head if (currentObject == null) currentObject = lastObject; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void reverse() {\n\t\tif(isEmpty()) {\n\t\t\treturn;\n\t\t}\n\t\tNodo <T> pri_n= fin;\n\t\t\n\t\tint cont= tamanio-1;\n\t\tNodo<T> nodo_act= pri_n;\n\t\twhile(cont >0) {\n\t\t\tNodo <T> aux= getNode(cont-1);\n\t\t\tnodo_act.setSiguiente(aux);\n\t\t\tnodo_act= aux;\n\t\t\tcont--;\n\t\t}\n\t\tinicio = pri_n;\...
[ "0.7766411", "0.771714", "0.76604855", "0.7351276", "0.7113172", "0.70854974", "0.7076795", "0.7011", "0.7007917", "0.69581044", "0.6944743", "0.69153255", "0.6907684", "0.68996906", "0.6897634", "0.68973553", "0.6893921", "0.68834454", "0.6826757", "0.68186146", "0.68172073"...
0.0
-1
Add a new object at the end of the Queue,
public void add(Generics o) { // add new object to end of Queue // set opaqueObject // build previous link of tail (as current) AL.add(o); lastObject = AL.get(AL.size()-1); // build next link of current (as tail) if (currentObject != null) { int currentIndex = AL.indexOf(currentObject); AL.set(currentIndex+1,lastObject); } // after links are established current eq tail currentObject = lastObject; // head eq tail on 1st element only if (firstObject == null) { firstObject = lastObject; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void enqueue(Object object) {\n queue.addLast(object);\n }", "@Override\n\tpublic void addToQueue() {\n\t}", "public void add(Object o) {\n Logger.log(\"DEBUG\", \"Data to add to queue: \" + o.toString());\n while(isLocked()) {\n try {\n Thread.slee...
[ "0.7745163", "0.7596001", "0.7406207", "0.73967177", "0.7245161", "0.7214311", "0.71743625", "0.7167634", "0.7152961", "0.71288216", "0.710302", "0.7014083", "0.69971156", "0.6973306", "0.6961416", "0.68611234", "0.684757", "0.68219703", "0.67677057", "0.6759218", "0.671253",...
0.7181741
6
Delete an object from the front of the Queue,
public Object delete() { Generics opaqueObject = null; if (firstObject != null) { opaqueObject = AL.get(0); //firstObject = firstObject.getNext(); firstObject = AL.get(1); if (firstObject == null) lastObject = firstObject; else AL.set(AL.indexOf(lastObject),null); //headNode.setPrevNode(null); } return opaqueObject; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic E deQueue() {\n\t\treturn list.removeFirst();\n\t}", "Object dequeue();", "Object dequeue();", "public void dequeue()\n\t{\n\t\tq.removeFirst();\n\t}", "public Object dequeue()\n {\n return queue.removeFirst();\n }", "public void remove() {\n\t\tprocess temp = queue.remov...
[ "0.7310677", "0.72592235", "0.72592235", "0.725608", "0.7127363", "0.7068137", "0.70489174", "0.7032634", "0.7004653", "0.69191766", "0.6899942", "0.6876566", "0.684599", "0.68375444", "0.68276787", "0.68110955", "0.68110955", "0.68110955", "0.68057215", "0.6799894", "0.67653...
0.63929963
59
These alternative toString methods are used for proper display in UI. These are NOT used in logic of selection sort.
public String toString2() { String queueToString = ""; int i =1; for(Generics object: AL) { queueToString += i + ". "; //queueToString+= StateStatistics.KeyType.name; queueToString += object.getName() + ": " + object.toString(); queueToString += "\n "; i++; } //queueToString += "]"; return queueToString; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override String toString();", "@Override\r\n String toString();", "@Override\n\tString toString();", "@Override public String toString();", "@Override\n String toString();", "@Override\n String toString();", "public String toString() ;", "@Override\n\tpublic abstract String toString();", ...
[ "0.73630106", "0.72844416", "0.72125685", "0.7199775", "0.71956074", "0.71956074", "0.71700764", "0.71404964", "0.71326005", "0.71200544", "0.71200544", "0.71200544", "0.71200544", "0.71200544", "0.71200544", "0.71200544", "0.71066236", "0.7105526", "0.70429945", "0.70016307", ...
0.0
-1
Performs insertion sort based off of the contents of object insertionSort for String fields ACTUALLY SELECTION SORT
public void insertionStringSort() { for(int j=1; j<AL.size(); j++) { Generics temp = AL.get(j); int possibleIndex = j; while(possibleIndex>0 && AL.get(possibleIndex - 1).toString().compareTo(temp.toString())>0) { AL.set(possibleIndex, AL.get(possibleIndex -1)); possibleIndex--; } AL.set(possibleIndex, temp); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic String sort() {\n\t\tString s=\"Insertionsort Function\";\n\t\treturn s;\n\t}", "@Override\r\n\tpublic void editSort() {\n\t\t\r\n\t}", "public String doSort();", "public void insertionNumberSort()\n {\n\t for(int j=1; j<AL.size(); j++)\n\t {\n\t\t Generics temp = AL.get(j);\n\t\t in...
[ "0.6497562", "0.6182378", "0.61671203", "0.61148167", "0.60599405", "0.5999183", "0.59721816", "0.5970539", "0.5960917", "0.58602077", "0.5822527", "0.5777312", "0.577671", "0.5764016", "0.57507277", "0.57372576", "0.57353854", "0.57340574", "0.5731756", "0.5715124", "0.56671...
0.7141682
0
insertionSort for Number fields ACTUALLY SELECTION SORT
public void insertionNumberSort() { for(int j=1; j<AL.size(); j++) { Generics temp = AL.get(j); int possibleIndex = j; while(possibleIndex>0 && Integer.parseInt(AL.get(possibleIndex - 1).toString()) < Integer.parseInt(temp.toString())) { AL.set(possibleIndex, AL.get(possibleIndex -1)); possibleIndex--; } AL.set(possibleIndex, temp); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void insertionNumberSortDouble()\n {\n\t for(int j=1; j<AL.size(); j++)\n\t {\n\t\t Generics temp = AL.get(j);\n\t\t int possibleIndex = j;\n\t\t \n\t\t while(possibleIndex>0 && Double.parseDouble(AL.get(possibleIndex - 1).toString()) < Double.parseDouble(temp.toString()))\n\t\t {\n\t\t\t AL.set(po...
[ "0.65996754", "0.65034467", "0.6420274", "0.6303457", "0.6295863", "0.62949395", "0.61443883", "0.61251104", "0.60750645", "0.6065891", "0.60385597", "0.60274696", "0.59668356", "0.5955714", "0.5928393", "0.5838976", "0.58064896", "0.57323486", "0.5718349", "0.57163584", "0.5...
0.7190683
0
insertionSort for double numbers (percent positive) ACTUALLY SELECTION SORT
public void insertionNumberSortDouble() { for(int j=1; j<AL.size(); j++) { Generics temp = AL.get(j); int possibleIndex = j; while(possibleIndex>0 && Double.parseDouble(AL.get(possibleIndex - 1).toString()) < Double.parseDouble(temp.toString())) { AL.set(possibleIndex, AL.get(possibleIndex -1)); possibleIndex--; } AL.set(possibleIndex, temp); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void insertionSort() {\n\t\tfor (int i = 1; i < numberOfElements; i++) {\n\t\t\tint temp = arr[i];\n\t\t\tint j = i;\n\t\t\t\n\t\t\twhile (j > 0) {\n\t\t\t\tif (arr[j - 1] <= temp) {\n\t\t\t\t\tnumberOfComparisons++;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tnumberOfComparisons++;\n\t\t\t\tarr[j] = arr[j - 1];\...
[ "0.68727756", "0.6848691", "0.6739408", "0.66747785", "0.6624396", "0.6537201", "0.65122205", "0.6500323", "0.6447875", "0.6440671", "0.6416147", "0.641209", "0.6368983", "0.6363203", "0.63428825", "0.63206136", "0.6279739", "0.6266643", "0.62518764", "0.6251459", "0.6247856"...
0.7607804
0
1:unknown 0:equal 1: difference
public boolean isDirectory() { return true ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tpublic void testDifference() {\n\t\tnum1 = 12;\r\n\t\tnum2 = 3;\r\n\t\tresult = calculate.difference(num1, num2); //stores the difference between two int into result\r\n\t\texpected = 9;\r\n\t\t\r\n\t\tassertEquals(expected,result);\t//compares the expected to the actual result, if they dont match a fai...
[ "0.622267", "0.6072794", "0.6058826", "0.59871894", "0.5981172", "0.598101", "0.5979655", "0.5950938", "0.5935061", "0.5890908", "0.58320326", "0.5830187", "0.58143353", "0.5790137", "0.57799995", "0.57756716", "0.5763564", "0.5755859", "0.57360375", "0.5735967", "0.5734772",...
0.0
-1
Ordnet Knoten einem freien Knoten einer Frau zu
private DefaultWeightedEdge matchMW(Vertex m, Vertex not) { // get neighbors of v DefaultWeightedEdge e = null; Set<Vertex> neigh = GraphStuff.getNeighbors(g, m); neigh.remove(not); // diesen Knoten nicht beachten for(Vertex w : neigh){ // suche neues Match fuer m, das noch nicht gematched ist if(unmatchedW.contains(w)){// Gefundener Knoten ist noch nicht gematched matched.add(w); matched.add(m); unmatchedW.remove(w); unmatchedM.remove(m); e = g.getEdge(w, m); return e; } } return e; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void kapazitaetPruefen(){\n\t\tList<OeffentlichesVerkehrsmittel> loev = new ArrayList<OeffentlichesVerkehrsmittel>();\n\t\t\n\t\tLinienBus b1 = new LinienBus();\n\t\tFaehrschiff f1 = new Faehrschiff();\n\t\tLinienBus b2 = new LinienBus();\t\n\t\t\n\t\tloev.add(b1);\n\t\tloev.add(b2);\n\t\tloev.add(...
[ "0.6794604", "0.6644053", "0.6213692", "0.618679", "0.6186021", "0.61796147", "0.611333", "0.608935", "0.59885144", "0.59311414", "0.5875799", "0.5839711", "0.5837966", "0.58296657", "0.5801146", "0.5759897", "0.5755353", "0.5747492", "0.57472503", "0.57288885", "0.5719086", ...
0.0
-1
Ordnet Knoten einem freien Knoten aus der Frauen Menge zu
private DefaultWeightedEdge matchWM(Vertex w, Vertex not) { // get neighbors of v Set<Vertex> neigh = GraphStuff.getNeighbors(g, w); DefaultWeightedEdge e = null; neigh.remove(not); // diesen Knoten nicht beachten for(Vertex m : neigh){ // suche neues Match fuer w, das noch nicht gematched ist if(unmatchedM.contains(m)){// Gefundener Knoten ist noch nicht gematched matched.add(m); matched.add(w); unmatchedM.remove(m); unmatchedW.remove(w); e = g.getEdge(w, m); // maxMatch.add(e); return e; } } return e; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void kapazitaetPruefen(){\n\t\tList<OeffentlichesVerkehrsmittel> loev = new ArrayList<OeffentlichesVerkehrsmittel>();\n\t\t\n\t\tLinienBus b1 = new LinienBus();\n\t\tFaehrschiff f1 = new Faehrschiff();\n\t\tLinienBus b2 = new LinienBus();\t\n\t\t\n\t\tloev.add(b1);\n\t\tloev.add(b2);\n\t\tloev.add(...
[ "0.67687", "0.67653877", "0.6374257", "0.6207193", "0.60876393", "0.6020679", "0.6004756", "0.5943392", "0.5932902", "0.5900578", "0.5894206", "0.5841082", "0.5785538", "0.5773378", "0.5773053", "0.5761733", "0.5747706", "0.5743617", "0.5741654", "0.5737556", "0.57233673", ...
0.0
-1
Encodes a tree to a single string.
public String serialize(TreeNode root) { if(root==null) return "#"; return String.valueOf(root.val)+"|"+serialize(root.left)+"|"+serialize(root.right); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void encodeTree(){\n StringBuilder builder = new StringBuilder();\n encodeTreeHelper(root,builder);\n }", "public TreeNode encode(Node root) {\n return en(root);\n }", "public String toTreeString() {\n return toTreeString(overallRoot);\n }", "public String tree2Str(Tree...
[ "0.79797685", "0.7266544", "0.6766947", "0.67098355", "0.65929043", "0.6520053", "0.651422", "0.6502086", "0.6480438", "0.6466228", "0.6452631", "0.6446793", "0.6446198", "0.64218706", "0.6407569", "0.64030504", "0.64030504", "0.64030504", "0.6394578", "0.6385417", "0.6381468...
0.6310683
29
Decodes your encoded data to tree.
public TreeNode deserialize(String data) { if(data.charAt(start)=='#'){ start++; return null; } int end=start; while(end==data.length() || data.charAt(end)!='|'){ end++; } String num=data.substring(start,end); TreeNode node=new TreeNode(Integer.valueOf(num)); start=end; start++; node.left=deserialize(data); start++;node.right=deserialize(data); return node; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public TreeNode deserialize(String data) {\n byte[] bytes = Base64.getDecoder().decode(data);\n IntBuffer intBuf = ByteBuffer.wrap(bytes)\n .order(ByteOrder.BIG_ENDIAN).asIntBuffer();\n int[] nums = new int[intBuf.remaining()];\n intBuf.get(nums);\n //for (int i = 0; i...
[ "0.6894664", "0.6808548", "0.650279", "0.64891165", "0.64851105", "0.6415433", "0.6362339", "0.63083476", "0.6284537", "0.622987", "0.6213446", "0.6161982", "0.6147146", "0.6140804", "0.6133282", "0.6078927", "0.6073399", "0.6069482", "0.6064389", "0.60632867", "0.6053727", ...
0.596683
27
Inflate the layout for this fragment creating song List
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view=inflater.inflate(R.layout.fragment_songs, container, false); recView=view.findViewById(R.id.recycleId); recView.setHasFixedSize(true); if(myMusic.size() >1){ musicAdapter=new MusicAdapter(getContext(),myMusic); recView.setAdapter(musicAdapter); recView.setLayoutManager(new LinearLayoutManager(getContext(),RecyclerView.VERTICAL,false)); } return view; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_music_list, container, false);\n mSongArrayList = SongLab.getInstance().getSongList(getActivity());\n\n\n ...
[ "0.7363289", "0.7171629", "0.708547", "0.70428747", "0.6976526", "0.69342077", "0.69341797", "0.6930958", "0.68979514", "0.6823398", "0.68028504", "0.67622066", "0.6750868", "0.6750861", "0.67230684", "0.66829646", "0.6647008", "0.664586", "0.66448325", "0.6637669", "0.662499...
0.6624446
21
Original project directory getter. Used for testing constructor
public File getSourceDir() { return srcDir; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public FileObject getProjectDirectory() {\n return helper.getProjectDirectory();\n }", "public File getProjectDir() {\r\n\t\treturn projectDir;\r\n\t}", "public String getProjectDir() {\n return (String) data[GENERAL_PROJECT_DIR][PROP_VAL_VALUE];\n }", "default Optional<Path> getProjectDir() {\...
[ "0.7641468", "0.7246311", "0.71385497", "0.703971", "0.7016812", "0.7001328", "0.68955225", "0.6888083", "0.68247676", "0.68226063", "0.6778058", "0.6763417", "0.67594874", "0.67095137", "0.66968775", "0.66231406", "0.65661055", "0.6556986", "0.65047306", "0.65043503", "0.649...
0.64226717
23
Prune unselected features in symbol table and put the result in destination project
public void pruneFeatures(SymbolTable sbTable, String dstProject, FileFilter filter) { final File dstDir = ProcessorUtils.getProjectSrcDir(dstProject); if (filter == null) { ProcessorUtils.relocate(srcDir, dstDir, ProcessorUtils.FileFilter.DEFAULT); } else { ProcessorUtils.relocate(srcDir, dstDir, filter); } final List<String> selectedFeatures = CoreUtils.extractSelectedFeatures(sbTable); for (final File srcFile : getSrcFiles(dstDir, new LinkedList<File>())) { pruneSrcFile(srcFile, selectedFeatures); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void clearFeatures();", "public void clearFeatures() {\n localFeatureVector.clear();\n }", "void removePlanFeature(int i);", "void clearTypedFeatures();", "void prune() {\n\n }", "public void removeFeatures(Feature[] features) {\n //TODO: remove the features\n }", "void removeFeature...
[ "0.65184927", "0.6066477", "0.60146374", "0.5936398", "0.59253985", "0.57816756", "0.5661847", "0.5661847", "0.5614461", "0.5594234", "0.55713564", "0.54145473", "0.540688", "0.5371271", "0.5325036", "0.5294729", "0.527759", "0.52702665", "0.52336335", "0.5203022", "0.5195833...
0.7169239
0
Returns the value of the 'View Class' attribute.
String getViewClass();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final String getClassAttribute() {\n return getAttributeValue(\"class\");\n }", "String getViewType();", "public String getCls() {\n\t\tif (null != this.cls) {\n\t\t\treturn this.cls;\n\t\t}\n\t\tValueExpression _ve = getValueExpression(\"cls\");\n\t\tif (_ve != null) {\n\t\t\treturn (String) ...
[ "0.6598516", "0.6143557", "0.6067247", "0.60311514", "0.59979236", "0.5956064", "0.5956064", "0.59261256", "0.59104425", "0.5830111", "0.58150995", "0.5775211", "0.57303905", "0.57299453", "0.5720644", "0.5670403", "0.56384933", "0.5635882", "0.5625508", "0.56224126", "0.5615...
0.7330243
0
Returns the value of the 'Icon' attribute.
String getIcon();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getIcon() {\n return icon;\n }", "public String getIcon() {\n return icon;\n }", "public String getIcon() {\n return icon;\n }", "public String getIcon() {\n return icon;\n }", "public String getIcon() {\n\t\treturn \"icon\";\n\t}", "public java.lang....
[ "0.8558334", "0.8558334", "0.8558334", "0.8558334", "0.8426698", "0.82105166", "0.82105166", "0.81963956", "0.81963956", "0.81904125", "0.81500626", "0.8116179", "0.8072512", "0.8072512", "0.80397373", "0.80397373", "0.80392313", "0.7984652", "0.7984652", "0.7948778", "0.7946...
0.78926545
23
Returns the value of the 'Is Closable' attribute. The default value is "true".
boolean isIsClosable();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean canClose(){\n return true;\n }", "boolean isCloseRequested()\r\n\t{\r\n\t\treturn this.closeRequested;\r\n\t}", "public boolean getClose()\n\t{\n\t\treturn getBooleanIOValue(\"Close\", true);\n\t}", "public Boolean getCloseAs() {\n\t\treturn closeAs;\n\t}", "public boolean isClose...
[ "0.68344325", "0.66525567", "0.6540395", "0.64988077", "0.6386113", "0.63627106", "0.63417935", "0.6206648", "0.619169", "0.61769646", "0.61769646", "0.617086", "0.61693984", "0.6114915", "0.60813767", "0.60519886", "0.5933409", "0.59197605", "0.5840355", "0.577504", "0.57312...
0.7690931
0
Returns the value of the 'Registrate Change Listener' attribute. The default value is "false".
boolean isRegistrateChangeListener();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@ZAttr(id=586)\n public String getPasswordChangeListener() {\n return getAttr(Provisioning.A_zimbraPasswordChangeListener, null);\n }", "@XmlTransient\n\tpublic boolean isSelfRegistrationEnabled() {\n\t\treturn (org.skyve.impl.util.UtilImpl.ACCOUNT_ALLOW_SELF_REGISTRATION);\n\t}", "public String g...
[ "0.6473553", "0.60320854", "0.59930414", "0.5819825", "0.5782284", "0.5720278", "0.57058924", "0.5673666", "0.5669226", "0.5668843", "0.563504", "0.561834", "0.5565694", "0.55648327", "0.5559522", "0.5556005", "0.55406016", "0.55347174", "0.55041575", "0.54767275", "0.5448728...
0.7492144
0
Camilo Barrios Uva 417 Simple Division
public static void main(String[] args) throws IOException { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); BufferedWriter out = new BufferedWriter(new OutputStreamWriter(System.out)); String linea = in.readLine(); while (!linea.equals("0")) { StringTokenizer stk = new StringTokenizer(linea); long[] entrada = new long[stk.countTokens() -1]; long menor = Integer.MAX_VALUE; for (int i = 0; i < entrada.length; i++) { entrada[i] = Integer.parseInt(stk.nextToken()); menor = Long.min(menor, entrada[i]); } for (int i = 0; i < entrada.length; i++) { entrada[i] -= menor; } // out.write("Menor: "+menor+"\n"); // out.write("Arreglo de Diferencias: "+Arrays.toString(entrada)+"\n"); long MCD = 0; for (int i = 0; i < entrada.length; i++) { MCD = GCD(MCD, entrada[i]); } out.write(MCD+"\n"); linea = in.readLine(); } in.close(); out.close(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract String division();", "public void ex() {\n int inches = 86; \n int pie = 12; //1 pie = 12 inches \n //Operaciones para obtener la cantidad de pies e inches\n int cant = inches / pie; \n int res = inches % pie;\n //Muestra de resultados\n System.out...
[ "0.6965072", "0.68925536", "0.64479303", "0.6363462", "0.63547504", "0.6330136", "0.6318002", "0.6282692", "0.6257503", "0.6190331", "0.6179337", "0.61320883", "0.6131559", "0.61258227", "0.6096651", "0.60897875", "0.6080447", "0.60745376", "0.6017677", "0.59989595", "0.59798...
0.0
-1
A SMIL par time container.
public ParContainer(String id, TimeContainer parentContainer, SmilFile file) { super(id, parentContainer, file); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public TimeBlock() {\n name = \"To be assigned\";\n startingTime = \"00:00\";\n endingTime = \"00:00\";\n duration = 0;\n }", "public Times() {\n\t\ttimes = new ArrayList<Time>();\n\t}", "public interface TimeModel {\n TimeContainer getTime();\n}", "public PulseTransitTime()...
[ "0.614578", "0.584416", "0.5742009", "0.5606461", "0.5604546", "0.5602814", "0.54586875", "0.5441599", "0.54343784", "0.5430555", "0.54115754", "0.540331", "0.5402962", "0.53988266", "0.5387547", "0.5372154", "0.53690153", "0.5368343", "0.535958", "0.53376406", "0.5330107", ...
0.53202516
22
Quarkus classes should be last
@Override public int compareTo(Name other) { int result = Boolean.compare(isQuarkusClassName(), other.isQuarkusClassName()); if (result != 0) { return result; } return name.compareTo(other.name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Object getClass_();", "Object getClass_();", "@Override\n\tpublic void afterClassSetup() {\n\t\t\n\t}", "private void addRestResourceClasses(Set<Class<?>> resources) {\n resources.add(com.compguide.web.Persistence.WebService.ActiveIngredientFacadeREST.class);\n resources.add(com.compguide.web.P...
[ "0.5582786", "0.5582786", "0.5520616", "0.5491187", "0.54532695", "0.54452145", "0.54067534", "0.5346549", "0.53290117", "0.526613", "0.52609336", "0.52518606", "0.52305883", "0.52302074", "0.5224581", "0.51923114", "0.51757205", "0.51753217", "0.5174032", "0.51446015", "0.51...
0.0
-1
This form encapsulates the fields that are used in the execution of the finSession method, which is located on the es.pode.presentacion.visualizador.VisualizadorController controller.
public interface FinSessionForm { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public frm_tutor_subida_prueba() {\n }", "public void addSessionWindow(ControllerAdmin controllerAdmin) throws SQLException, ClassNotFoundException {\n JFrame addFrame = new JFrame();\n\n JButton jButtonCanceled = new JButton(\"Annuler\");\n jButtonCanceled.setBounds(380, 290, 100, 28);\n...
[ "0.58752763", "0.5872352", "0.5833188", "0.57202345", "0.5710978", "0.5676244", "0.56580496", "0.5651846", "0.5640933", "0.5638422", "0.5619439", "0.5613907", "0.5611946", "0.56040287", "0.5563077", "0.55617285", "0.5545615", "0.55329764", "0.55317277", "0.5517213", "0.550744...
0.59222376
0
Returns the character located at the point supplied. If value is 'q' then a 'qu' is returned.
public String getValueAt(Point point){ Preconditions.checkNotNull(point, "point must not be null"); Preconditions.checkArgument(point.getX() < width && point.getX() >= 0, String.format("point.x must be between 0 and %s", Integer.toString(width))); Preconditions.checkArgument(point.getY() < width && point.getY() >= 0, String.format("point.y must be between 0 and %s", Integer.toString(height))); char value = characters[point.getY()][point.getX()]; switch (value){ case 'q': return "qu"; default: return String.valueOf(value); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public char charAt(int charOffset);", "public char charAt(int index);", "public char at(int pos) {\r\n return fCharBuffer.at(pos);\r\n }", "public char charAt(int pos) {\n return content.charAt(pos);\n }", "public final char yycharat(int pos) {\r\n return zzBuffer[zzStartRead+pos];\r\n }"...
[ "0.6481372", "0.63977945", "0.60904646", "0.6018946", "0.595809", "0.595809", "0.595809", "0.595809", "0.595809", "0.5955588", "0.5955588", "0.5955588", "0.5955588", "0.5955588", "0.5955588", "0.5955588", "0.5955588", "0.5929456", "0.5929456", "0.5929456", "0.5929456", "0.5...
0.6747653
0
Return valid adjacent points to the point supplied.
public Collection<Point> getAdjacency(Point point){ Preconditions.checkNotNull(point, "point must not be null"); Collection <Point> results = new ArrayList<>(); for(int i = -1; i < 2; i++){ for(int j = -1; j < 2; j++){ int new_x = point.getX() + i; int new_y = point.getY() + j; if(new_x >= 0 && new_y >= 0 && (i != 0 || j != 0) && new_x < width && new_y < height){ results.add(new Point(new_x, new_y)); } } } return results; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Point> getPossibleNeighbours() {\n List<Point> points = new ArrayList<>();\n int x = point.getX();\n int y = point.getY();\n Arrays.asList(x - 1, x, x + 1).forEach(i -> {\n Arrays.asList(y - 1, y, y + 1).forEach(j -> {\n points.add(new Point(i, j));...
[ "0.68308616", "0.67240596", "0.62463343", "0.61869365", "0.60170954", "0.59808975", "0.58964676", "0.58786225", "0.58403796", "0.5838501", "0.57988137", "0.5790638", "0.5726894", "0.5712812", "0.5690356", "0.5677827", "0.56602776", "0.5651871", "0.5635812", "0.5609881", "0.56...
0.6234522
3
Returns all points that exit on the board.
public Collection <Point> getAllPoints(){ Collection <Point> points = new ArrayList<>(); for(int i = 0; i < width; i++){ for(int j = 0; j < height; j++){ points.add(new Point(i, j)); } } return points; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Point> getPossibleNeighbours() {\n List<Point> points = new ArrayList<>();\n int x = point.getX();\n int y = point.getY();\n Arrays.asList(x - 1, x, x + 1).forEach(i -> {\n Arrays.asList(y - 1, y, y + 1).forEach(j -> {\n points.add(new Point(i, j));...
[ "0.63785005", "0.5971401", "0.5882214", "0.5863915", "0.5863001", "0.58169997", "0.5815108", "0.57976353", "0.57911706", "0.57555556", "0.5737", "0.57132316", "0.5690398", "0.5677486", "0.56772214", "0.5657358", "0.5653296", "0.55873877", "0.5577588", "0.55664057", "0.555293"...
0.538842
37
TODO Autogenerated method stub
public static void main(String[] args) { BlockingQueue<StateEvent> EventQueue = new LinkedBlockingQueue<StateEvent>(); State stateTest = new State(EventQueue); StateListenerT listener = new StateListenerT(); stateTest.addListener(listener); Thread a = new Thread(new Runnable() { @Override public void run() { // TODO Auto-generated method stub for(int i=0; i<5; i++) { try { Thread.sleep(1000); } catch (InterruptedException e) { // TODO Auto-generated catch block e.printStackTrace(); } stateTest.open();} } }); Thread b = new Thread(new Runnable() { @Override public void run() { // TODO Auto-generated method stub for(int i=0; i<5; i++) { try { Thread.sleep(1000); } catch (InterruptedException e) { // TODO Auto-generated catch block e.printStackTrace(); } stateTest.open();} } }); a.start(); b.start(); while(true) { try { StateEvent E = EventQueue.take(); stateTest.notifyListeners(E); } catch (InterruptedException e) { // TODO Auto-generated catch block e.printStackTrace(); } } }
{ "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 run() { for(int i=0; i<5; i++) { try { Thread.sleep(1000); } catch (InterruptedException e) { // TODO Auto-generated catch block e.printStackTrace(); } stateTest.open();} }
{ "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 run() { for(int i=0; i<5; i++) { try { Thread.sleep(1000); } catch (InterruptedException e) { // TODO Auto-generated catch block e.printStackTrace(); } stateTest.open();} }
{ "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 handleEvent(StateEvent stateNow) { System.out.println(stateNow.getState()); System.out.println(Thread.currentThread().getName()); System.out.println(stateNow.source); }
{ "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 handleEvent(StateEventT stateNow) { System.out.println(stateNow.getState()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
The replacement for JavaPlugin's onEnable method.
public abstract void wgb_onEnable();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract void onPluginEnable();", "public void onEnable() {\n }", "public abstract void onEnable();", "@Override\n\tpublic void onEnable() {\n\t}", "default void onEnable() {}", "@Override\n public void onEnable() {\n }", "@Override\r\n public void onEnable() {\n \r\n }"...
[ "0.8486622", "0.8228197", "0.8111748", "0.8023545", "0.7967585", "0.79350305", "0.7843794", "0.7842992", "0.78243345", "0.7774868", "0.74297214", "0.7428755", "0.74114186", "0.74114186", "0.7384995", "0.73498994", "0.73145944", "0.73145944", "0.73145944", "0.73145944", "0.731...
0.6847407
73
The replacement for JavaPlugin's onDisable method.
public abstract void wgb_onDisable();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void onDisable();", "public void onDisable() {\n }", "public void onDisable() {\n }", "public void onDisable() {\r\n }", "public void onDisable() {\n }", "public void onDisable()\n {\n }", "default void onDisable() {}", "@Override\n public void onDisable() {\n \t...
[ "0.8669029", "0.8630689", "0.8630689", "0.86074686", "0.8605182", "0.8583278", "0.85363936", "0.84734887", "0.8439167", "0.8424669", "0.83972585", "0.8395887", "0.80846643", "0.795178", "0.784099", "0.78240675", "0.7717631", "0.76808137", "0.76684356", "0.7662171", "0.7584016...
0.743453
70
Registers a config for this plugin. This SHOULD NOT be called manually!
public void _registerConfig(Config config) { allConfigs.add(config); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void registerConfigurationEntry(String key, Object entry);", "@Override\r\n\tpublic void configPlugin(Plugins me) {\n\r\n\t}", "protected void additionalConfig(ConfigType config){}", "private void configInit() {\r\n\t\tconfig = pluginInstance.getConfiguration();\r\n\t\tif (!new File(pluginInstance.get...
[ "0.6267325", "0.5990046", "0.585756", "0.5856387", "0.5834634", "0.57664436", "0.5699866", "0.568028", "0.5663979", "0.56141394", "0.56135607", "0.55907243", "0.5572632", "0.55331945", "0.55293083", "0.5496764", "0.5495784", "0.5455368", "0.5433981", "0.54311746", "0.54270375...
0.70187485
0
Created by Administrator on 2017/8/2.
public interface BusinessService extends BaseService<Business, String>{ public Pager getBusinessLIst(Integer pageNumber , Integer pageSize , String searchBy , String searchText); BusinessVO getFromBusiness(String id); List<CustomerVO> findCustomerAll(); List<UserVV> findUserAll(); List<ContactsVO> findContactsAll(); List<BusinessStatusVO> findBusinessStatusAll(); List<DictVO> findBusinessTypeAll(); List<DictVO> findBusinessOriginAll(); Business fromBusinessVO(BusinessVO businessVO); public void saveBusiness(Business business); public void updateBusiness(Business business); public List<BusinessVO> getAllId(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n public void perish() {\n \n }", "@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\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Ov...
[ "0.62519157", "0.6137008", "0.58818513", "0.58676946", "0.58562696", "0.58360934", "0.5808", "0.5802984", "0.57963735", "0.5755429", "0.5747811", "0.5747811", "0.57467353", "0.5727984", "0.5715389", "0.5709805", "0.5709805", "0.5691527", "0.5689426", "0.5674466", "0.56539124"...
0.0
-1
Given an array of ints, return the number of 9's in the array.
public static int arrayCount9(int[] nums){ if(nums.length==0){ return 0; } else{ int count=0; for (int i=0;i<nums.length;i++){ if(nums[i]==9){ count++; } } return count; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int arrayCount9(int[] nums) {\n int result = 0;\n for (int num : nums) {\n if (num == 9) {\n result++;\n }\n }\n return result;\n }", "public static int[] count(int[] array){\n //Initialize variables for each digit.\n int co...
[ "0.83308315", "0.7204603", "0.6733852", "0.6698564", "0.6583243", "0.65253264", "0.6449039", "0.63519365", "0.627956", "0.6252026", "0.6241903", "0.6204379", "0.61813086", "0.6166995", "0.6100719", "0.60868526", "0.60305685", "0.60148114", "0.6007532", "0.59943175", "0.597153...
0.8287016
1
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 Zeitschrift)) { return false; } Zeitschrift other = (Zeitschrift) object; if ((this.zeitschriftId == null && other.zeitschriftId != null) || (this.zeitschriftId != null && !this.zeitschriftId.equals( other.zeitschriftId))) { return false; } return true; }
{ "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.6896886", "0.6838461", "0.67056817", "0.66419715", "0.66419715", "0.6592331", "0.6579151", "0.6579151", "0.6574321", "0.6574321", "0.6574321", "0.6574321", "0.6574321", "0.6574321", "0.65624106", "0.65624106", "0.65441847", "0.65243006", "0.65154546", "0.6487427", "0.64778...
0.0
-1
Most schematics are gzipped
public void loadGzipedSchematic(File f) throws IOException { DataInputStream in = new DataInputStream(new GZIPInputStream(new FileInputStream(f))); loadUncompressedSchematic(in); in.close(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private CompressionTools() {}", "private StandardDeCompressors() {}", "public OutputStream mo21858g(String str) {\n try {\n File file = new File(str);\n if (!file.isAbsolute()) {\n file = new File(mo21862h(str));\n }\n FileOutputStream fileOutpu...
[ "0.5802728", "0.57356685", "0.5560602", "0.5488564", "0.543981", "0.54288226", "0.5289816", "0.51510257", "0.5138579", "0.5098772", "0.5088822", "0.5087299", "0.5051441", "0.50435007", "0.49788973", "0.49310368", "0.49305433", "0.49287277", "0.4915357", "0.48989686", "0.48757...
0.6686324
0
Then the tagspecific payload...
public NBT_Tag(String name) { this.id = 0; //overwritten this.name = name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void readTagPayload(DataInput in) throws IOException;", "private void onPreRequestData(int tag) {\n }", "public void onTag(RFIDTagEvent e) {\n\t\t\t\t\t// Creating string for the tag string\n\t\t\t\t\tString tagStr = e.getTag();\n\t\t\t\t\t// Creating try to check if its thecorrect tag\n\t\...
[ "0.7011792", "0.6528758", "0.60867137", "0.58310115", "0.5804031", "0.55808926", "0.5496405", "0.547829", "0.5408192", "0.53823274", "0.537865", "0.5329882", "0.5311627", "0.5292841", "0.5292841", "0.52903193", "0.5259018", "0.5222228", "0.52191204", "0.5215738", "0.5214982",...
0.0
-1
Read the tag's payload (assumes that the id, name_length and name have already been read in order to identfy the tag
public abstract void readTagPayload(DataInput in) throws IOException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Tag readTag() throws IOException {\n/* 78 */ char[] arrayOfChar = new char[1024];\n/* */ \n/* 80 */ int j = -1;\n/* */ \n/* 82 */ Integer integer1 = null;\n/* 83 */ Integer integer2 = null;\n/* */ \n/* 85 */ int i = read(2);\n/* 86 */ if (i < 0) {\n/* 8...
[ "0.6183075", "0.5985399", "0.5971664", "0.59195113", "0.5842294", "0.58093446", "0.5756747", "0.57340914", "0.5724083", "0.55206543", "0.55092496", "0.5508279", "0.54679817", "0.5449496", "0.5436502", "0.5436409", "0.5407775", "0.53860617", "0.5352409", "0.53386974", "0.53066...
0.7791544
0
GETTER && SETTER METODOS HEREDADOS
@Override public void EjecutaGui() { System.out.println("Ejecucion en ventana del ejercicio 2 del grupo 3"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setValor(String valor)\n/* 22: */ {\n/* 23:34 */ this.valor = valor;\n/* 24: */ }", "public void setdat()\n {\n }", "public void Get() { ob = ti.Get(currentrowi, \"persoana\"); ID = ti.ID; CNP = ob[0]; Nume = ob[1]; Prenume = ob[2]; }", "public void MieiOrdini()\r\n {\r\n ...
[ "0.6118008", "0.6102277", "0.60978854", "0.60330784", "0.6001383", "0.59740806", "0.58409536", "0.5838957", "0.5835774", "0.5813812", "0.5804243", "0.57878923", "0.57846797", "0.57824165", "0.5774197", "0.57711816", "0.57533", "0.57502425", "0.57489955", "0.5733023", "0.57315...
0.0
-1
Pide todos los datos del coche, crea objeto Coche y lo devuelve
private Coche pedirDatosCoche() { Scanner leer = new Scanner(System.in); String matricula, marca, modelo; int km; Coche auxCoche; // guardará coche antes de ponerlo en ArrayList System.out.print(" Introduce matricula: "); matricula = leer.next(); System.out.print(" Introduce marca: "); marca = leer.next(); System.out.print(" Introduce modelo: "); modelo = leer.next(); System.out.print(" Introduce kilometraje: "); km = leer.nextInt(); return new Coche(matricula, marca, modelo, km); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void caricaLista() {\n /** variabili e costanti locali di lavoro */\n ArrayList unaLista = null;\n CampoDati unCampoDati = null;\n CDBLinkato unCampoDBLinkato = null;\n //@todo da cancellare\n try { // prova ad eseguire il codice\n /* recupera il camp...
[ "0.68728656", "0.68288004", "0.6704497", "0.665905", "0.6654788", "0.6576918", "0.65746653", "0.647075", "0.6468419", "0.6384289", "0.63722897", "0.6337179", "0.63322544", "0.631387", "0.6310693", "0.6310377", "0.6300668", "0.6274541", "0.6273955", "0.62471104", "0.6243339", ...
0.7020484
0
Muestra todos los elementos Coches dentro del array list coches como String's por consola
private void mostrarCoches() { int i = 0; for (Coche unCoche : coches) { System.out.println((i + 1) + "º " + coches.get(i)); ++i; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String conocidosToString(List<String> conocidos){\r\n String s = \"\"; \r\n for(int i= 0; i<conocidos.size(); i++){\r\n String c = conocidos.get(i);\r\n s = s + c + \" \";\r\n }\r\n return s;\r\n \r\n}", "public static String concatenar(Object[] lista){\n...
[ "0.7377511", "0.66421026", "0.66296923", "0.6618642", "0.6419252", "0.63236916", "0.6295331", "0.6286546", "0.6165245", "0.6157507", "0.6108592", "0.5964635", "0.59456086", "0.5944813", "0.5922147", "0.59152293", "0.5886422", "0.5873349", "0.5830097", "0.58207685", "0.5814431...
0.6209939
8
Pide marca y muestra los elementos del atributo ArrayList coches que coinciden
private void mostrarPorMarca() { Scanner leer = new Scanner(System.in); String marca; //marca a buscar int cont = 0; System.out.print("Introduce la marca de coche a buscar: "); marca = leer.next(); System.out.print("Las posiciones con coches con esa marca son: "); for (int i = 0; i < this.coches.size(); i++) { if (coches.get(i).getMarca().equalsIgnoreCase(marca)) { if (cont != 0) { System.out.print(", "); } System.out.print(i); cont = 1; } } System.out.println(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void caricaLista() {\n /** variabili e costanti locali di lavoro */\n ArrayList unaLista = null;\n CampoDati unCampoDati = null;\n CDBLinkato unCampoDBLinkato = null;\n //@todo da cancellare\n try { // prova ad eseguire il codice\n /* recupera il camp...
[ "0.626625", "0.6119538", "0.6111974", "0.6044979", "0.59835255", "0.5965138", "0.5954623", "0.5926943", "0.5918543", "0.5903198", "0.58494014", "0.58306086", "0.580205", "0.57937044", "0.57833445", "0.5770838", "0.57691747", "0.57459295", "0.57316136", "0.5717391", "0.5709243...
0.0
-1
apis for connection between contents and catalogs
@Override public Response initResConCat() { return resourceMicroApi.makeConESDb(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Catalog getCatalog();", "Catalog getCatalog();", "public void consulterCatalog() {\n\t\t\n\t}", "public Catalog getCatalog();", "public interface CatalogueClient {\n\n\tList<Exoplanet> getCatalogue();\n\n}", "private static void writeCatalog(XMLStreamWriter w, RepositoryConnection con)\n\t\tthrows XMLStr...
[ "0.6770218", "0.6770218", "0.66912484", "0.6396382", "0.63508064", "0.6055059", "0.602066", "0.5968132", "0.5916884", "0.5851043", "0.57358354", "0.57094496", "0.56749994", "0.5633386", "0.5629597", "0.5626627", "0.5509296", "0.543998", "0.54343295", "0.54011476", "0.5391063"...
0.56075275
16
Creates new form StaffMenu
public StaffMenu() { initComponents(); //Init with blank text ageLabel.setText(""); staffNumber.setText(""); genderLabel.setText(""); //Reading staff list ListOfStaff model_staff_list = new ListOfStaff(ListOfStaff.getStaff()); staffList.setModel(model_staff_list); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }", "public void createMenu() {\n deleteMenuGroupError = false;\n createMenuGroupError = true;\n if (menu.createMenu()) {\n updateMenuError = false;\n deleteMenuError = false;\n ...
[ "0.6388712", "0.6336229", "0.62871933", "0.6224272", "0.6168234", "0.6067416", "0.6009538", "0.60070044", "0.59347373", "0.5931239", "0.5930608", "0.5912028", "0.5865778", "0.58644617", "0.58580726", "0.58068144", "0.5757278", "0.56401616", "0.56092983", "0.5598635", "0.55980...
0.6174154
4
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jScrollPane1 = new javax.swing.JScrollPane(); staffList = new javax.swing.JList<>(); jLabel1 = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); jLabel3 = new javax.swing.JLabel(); jLabel4 = new javax.swing.JLabel(); ageLabel = new javax.swing.JLabel(); staffNumber = new javax.swing.JLabel(); jScrollPane2 = new javax.swing.JScrollPane(); trList = new javax.swing.JList<>(); jLabel5 = new javax.swing.JLabel(); genderLabel = new javax.swing.JLabel(); setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); setTitle("Staff"); setResizable(false); staffList.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { staffListMouseClicked(evt); } }); staffList.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent evt) { staffListKeyPressed(evt); } public void keyReleased(java.awt.event.KeyEvent evt) { staffListKeyReleased(evt); } }); jScrollPane1.setViewportView(staffList); jLabel1.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N jLabel1.setText("Staff Members"); jLabel2.setText("Employee Number:"); jLabel3.setText("Skills:"); jLabel4.setText("Age:"); ageLabel.setText("jLabel5"); staffNumber.setText("jLabel6"); jScrollPane2.setViewportView(trList); jLabel5.setText("Gender:"); genderLabel.setText("jLabel6"); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jScrollPane1) .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 102, Short.MAX_VALUE)) .addGap(35, 35, 35) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPane2) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(layout.createSequentialGroup() .addComponent(jLabel2) .addGap(18, 18, 18) .addComponent(staffNumber, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(layout.createSequentialGroup() .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(ageLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(layout.createSequentialGroup() .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 47, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(genderLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 57, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGap(0, 0, Short.MAX_VALUE))) .addContainerGap()) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabel1) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 241, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel2) .addComponent(staffNumber)) .addGap(31, 31, 31) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel5) .addComponent(genderLabel)) .addGap(18, 18, 18) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel4) .addComponent(ageLabel)) .addGap(18, 18, 18) .addComponent(jLabel3) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 112, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGap(29, 29, 29)) ); pack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n ...
[ "0.7318948", "0.7290426", "0.7290426", "0.7290426", "0.7284922", "0.7247965", "0.7213206", "0.72080696", "0.7195916", "0.7189941", "0.71835536", "0.71579427", "0.7147217", "0.70927703", "0.7080282", "0.7055882", "0.6987108", "0.69770193", "0.6954159", "0.69529283", "0.6944756...
0.0
-1
Send the Code To Api To Verify.
@GET("direction") // @Headers("Authorization : Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6ImM2YTgxNzhhNjczNDMyOWEyYzc1MTFhYmFiYmQ2YjBjZjI4YjcwZmU1MTRlYzYzMWYyMzcwZjg2NjRmMTViNmMzODZlZWQ5NTJhOTc5Y2YxIn0.eyJhdWQiOiIxIiwianRpIjoiYzZhODE3OGE2NzM0MzI5YTJjNzUxMWFiYWJiZDZiMGNmMjhiNzBmZTUxNGVjNjMxZjIzNzBmODY2NGYxNWI2YzM4NmVlZDk1MmE5NzljZjEiLCJpYXQiOjE1NjM1MTk1ODYsIm5iZiI6MTU2MzUxOTU4NiwiZXhwIjoxNTk1MTQxOTg2LCJzdWIiOiIiLCJzY29wZXMiOltdfQ.rqEVxzL1MtxMcuA5aI_CgBQfXKvCeouuwmb96ez6NbYlsDncdSGaxA42yoRUaqcfZj-Apmhx3HBA1OB0hWhA26TQxQ2Wh5Rxng1pPSwltjRRr0zl0qsrpeWIS_9bhI8gQqvjcxK9b06Oeo8NeKBZjomoeaa2LIVBBG-80xtV6YmXHMPxDi7gRkKRzjkI76Ji9zNLuj5oQ77EzbI0xT27JbQqkIXXNZzS1hvg33PZ0ZVukICRHfWG4Vn3EPG4ZkAqLxkxMekYRYDbAvWzCpSENWSUT69ZRrVAimnvZ6DtCXVAb0mlkay65JrS2joCuzw2CYV-qd5bZoOdjoeBzFVIbv48KYMlz5VV-Pl6ccil2jcBN7zLrRxz6eaHmvo3B7FE-3mY9sLl0ihdAVojlpuDIERVnnvsPb8hsqORfTOwvI1oCFmguvDij_nujyEFQLmmH0w7V3bLbbVl5PDh4tRwoCnJT-3XY1wFUzK0FuUtbVM9Kp94H7xWEAorB7rm7tO64PWqTbS980RbcDTRzsInQIAHlbLewZ_nTEuUjLb1r8aU62fxjhO2yV8aCFa_ffteRfOgfJ0itmWtCVqSm7foZJb8odFhMv3bk7Vvg9XhAsdQH-a_Iopdao-DsprXNILXNp3bQbjW5Q2Hv6FVwKpQSjC7Ssj6hxlyNKWyFcFQjVM") Call<GoogleDirections> getRouteOnGoogleMap(@Query("s_longitude") String sourceLongitude, @Query("s_latitude") String sourceLatitude, @Query("place_id") String place_id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void sendVerificationCode(int code,String mail,String password) {\n\n headers = new HashMap<>();\n headers.put(\"code\", String.valueOf(code));\n headers.put(\"mail\",mail);\n headers.put(\"password\",password);\n headers.put(\"Content-Type\", \"application/json\");\n ...
[ "0.707362", "0.7014776", "0.64987934", "0.6457091", "0.64225715", "0.63362336", "0.6262841", "0.6235132", "0.61889696", "0.6166824", "0.6157979", "0.60670096", "0.6059916", "0.6043644", "0.6004348", "0.5998791", "0.5992063", "0.59879917", "0.5937107", "0.5925017", "0.588285",...
0.0
-1
Determine the item type of the value returned by the function
public ItemType getItemType(TypeHierarchy th) { return argument[0].getItemType(th); //AUTO }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValue();", "int getTypeValu...
[ "0.66609746", "0.66609746", "0.66609746", "0.66609746", "0.66609746", "0.66609746", "0.66609746", "0.66609746", "0.66609746", "0.66609746", "0.66609746", "0.66609746", "0.66609746", "0.64486235", "0.60963243", "0.60963243", "0.60963243", "0.60963243", "0.60963243", "0.60963243"...
0.0
-1
Replace this expression by an expression that returns the same result but without regard to order
@Override public Expression unordered(boolean retainAllNodes) throws XPathException { return argument[0].unordered(retainAllNodes); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected SqlExpression getOrderSqlExpression() {\n\t\tif (this.orderSqlExpr != null) {\n\t\t\treturn this.orderSqlExpr;\n\t\t}\n\t\t\n\t\tif (this.orderExpr == null) {\n\t\t\treturn null;\n\t\t}\n\t\tStandardCompExprToSqlExprBuilder builder = new StandardCompExprToSqlExprBuilder();\n\t\tbuilder.setMapper(createEx...
[ "0.60651046", "0.590253", "0.5757116", "0.57505673", "0.56628096", "0.5634613", "0.5568391", "0.55595446", "0.55222595", "0.5414604", "0.5362615", "0.53625727", "0.53591573", "0.53562856", "0.53536016", "0.5352443", "0.5352443", "0.5352443", "0.5352443", "0.5348223", "0.53464...
0.51301855
47
EBV is independent of sequence order unless the sequence mixes atomic values and nodes Note, calls to get the EBV of reverse() should normally have been rewritten at compile time
public boolean effectiveBooleanValue(XPathContext context) throws XPathException { ItemType type = argument[0].getItemType(context.getConfiguration().getTypeHierarchy()); if (type == AnyItemType.getInstance()) { return super.effectiveBooleanValue(context); } else { return argument[0].effectiveBooleanValue(context); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DoubleLinkedSeq reverse(){\r\n\t DoubleLinkedSeq rev = new DoubleLinkedSeq();\r\n\t for(cursor = head; cursor != null; cursor = cursor.getLink()){\r\n\t\t rev.addBefore(this.getCurrent());\r\n\t }\r\n\t \r\n\t return rev; \r\n }", "public void reverse() {\n\t\tif(isEmpty()) {\n\t\t\treturn;\...
[ "0.64195", "0.62249136", "0.62228084", "0.62134033", "0.60699564", "0.60699564", "0.6062622", "0.5935501", "0.59293574", "0.5909055", "0.58813953", "0.58335936", "0.58103675", "0.5795221", "0.57940227", "0.5788193", "0.5784621", "0.5770378", "0.5758046", "0.5758046", "0.57368...
0.0
-1
Displays the given score for Team A.
public void displayForTeamA(int score) { TextView scoreView = findViewById(R.id.team_a_score); scoreView.setText(String.valueOf(score)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void displayForTeamA(int scoreA) {\r\n TextView scoreView = (TextView) findViewById(R.id.team_a_score);\r\n scoreView.setText(String.valueOf(scoreA));\r\n }", "public void displayForTeamA(int score) {\n TextView scoreView = (TextView) findViewById(R.id.team_a_score);\n score...
[ "0.86859167", "0.8601658", "0.8601658", "0.8601658", "0.8601658", "0.8601658", "0.8577043", "0.84793544", "0.84122574", "0.82561016", "0.80960876", "0.7828004", "0.7814682", "0.7814682", "0.779277", "0.779277", "0.779277", "0.779277", "0.77820694", "0.77526754", "0.77359605",...
0.8640504
2
Displays the given score for Team B.
public void displayForTeamB(int score) { TextView scoreView = findViewById(R.id.team_b_score); scoreView.setText(String.valueOf(score)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void displayForTeamB(int score) {\n TextView scoreView = (TextView) findViewById(R.id.team_b_score);\n scoreView.setText(String.valueOf(score));\n }", "public void displayForTeamB(int score) {\n TextView scoreView = (TextView) findViewById(R.id.team_b_score);\n scoreView.set...
[ "0.85048604", "0.85048604", "0.85048604", "0.85048604", "0.84900755", "0.83386564", "0.8305641", "0.82519084", "0.8156508", "0.8156508", "0.81107885", "0.81107885", "0.81107885", "0.81107885", "0.81107885", "0.81032807", "0.8006968", "0.8004829", "0.7936765", "0.7826235", "0....
0.85408014
1
Displays the given fouls for Team A.
public void displayFoulsForTeamA(int foul) { TextView foulsView = findViewById(R.id.team_a_fouls); foulsView.setText(String.valueOf(foul)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void displayFoulsForTeamA(int fouls) {\r\n TextView foulsView = (TextView) findViewById(R.id.team_a_fouls);\r\n foulsView.setText(String.valueOf(fouls));\r\n }", "public void displayFoulsForTeamB(int fouls) {\n TextView foulsView = findViewById(R.id.team_b_fouls);\n foulsVie...
[ "0.774036", "0.70323384", "0.7013033", "0.6976011", "0.69062775", "0.6730432", "0.6669148", "0.65732914", "0.6472361", "0.6365603", "0.61732954", "0.61419326", "0.60527015", "0.6031184", "0.597037", "0.5897601", "0.58956", "0.5851852", "0.56890607", "0.56858927", "0.5571685",...
0.7666131
1
Displays the given fouls for Team B.
public void displayFoulsForTeamB(int fouls) { TextView foulsView = findViewById(R.id.team_b_fouls); foulsView.setText(String.valueOf(fouls)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void displayFoulsForTeamB(int fouls) {\r\n TextView foulsView = (TextView) findViewById(R.id.team_b_fouls);\r\n foulsView.setText(String.valueOf(fouls));\r\n }", "public void displayFoulsForTeamA(int fouls) {\r\n TextView foulsView = (TextView) findViewById(R.id.team_a_fouls);\r\n ...
[ "0.7752352", "0.75084823", "0.7394584", "0.69112295", "0.6740162", "0.6695265", "0.66364616", "0.6288559", "0.6220588", "0.6184019", "0.6154445", "0.6021885", "0.600875", "0.5924968", "0.58707196", "0.58313596", "0.5718311", "0.56653905", "0.5653786", "0.56242657", "0.5544798...
0.7770879
0
WARNING: forEach and spliterator can't be tested because they are Java 8
@Test public void clear() { cache.put(1, "a"); cache.put(2, "b"); changesOf(0, 0, 2, 0); cache.clear(); changesOf(0, 0, 0, 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void forEach() throws Exception {\n }", "void forEach(BiConsumer<? super String, ? super String> consumer);", "@Test\n public void streamApiTest(){\n Collection<Integer> myCollection=initializeIntCollection(3,5);\n\n long sumOfOddValues3times=myCollection.stream().\n ...
[ "0.66778916", "0.61562145", "0.59362006", "0.5888072", "0.5877003", "0.5865095", "0.5797121", "0.5794814", "0.57753515", "0.574655", "0.57029927", "0.5694322", "0.5624136", "0.5620834", "0.56064576", "0.5604713", "0.5586008", "0.5585474", "0.55845207", "0.5542099", "0.5542049...
0.0
-1
We do it twice because the second time we already have compensating counters, so the result might fail
@Test public void testClearingStats() { innerClear(); innerClear(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static UINT32 update_cycle_counting(void)\n\t{\n\t\tUINT32 count = (activecpu_gettotalcycles64() - mips3.count_zero_time) / 2;\n\t\tUINT32 compare = mips3.cpr[0][COP0_Compare];\n\t\tUINT32 cyclesleft = compare - count;\n\t\tdouble newtime;\n\t\n\t//printf(\"Update: count=%08X compare=%08X delta=%08X SR=%08X ti...
[ "0.6314657", "0.57376575", "0.56283826", "0.5582666", "0.55438447", "0.5502508", "0.5487965", "0.54690343", "0.54629594", "0.5427602", "0.54133594", "0.5399879", "0.53835195", "0.53705966", "0.5359048", "0.53492725", "0.53369284", "0.53318787", "0.531912", "0.5317031", "0.530...
0.0
-1
TODO Autogenerated method stub
@Override public void handle(ActionEvent event) { FeaturesSelectorAndFunctions.bar = new ProgressIndicator(); Main.messagePane.addNewMessage("Training classfier...\n"); // new Thread(new Runnable() { // @Override // public void run() { // for (int i=1; i<=100; i++) { // final int counter = i; // Platform.runLater(new Runnable() { // @Override // public void run() { // //bar.setProgress(counter/100.0); // } // }); // } // }}).start(); ArrayList<ArrayList<Mat>> a = FileManager.readTrainFile(new File("/Users/KaioHenrique/workspace/tp_PID/test_files/train.txt")); Coach.means = Coach.matToMeans(a); int i=0; while(i<a.size()){ Main.messagePane.addNewMessage("A media do descritor "+i + " e " + Coach.means[i][0] + " : " +Coach.means[i][1] ); System.out.println("A media da class "+i + " e " + Coach.means[i][0] + " : " +Coach.means[i][1] ); i++; } // findBestParameters(); }
{ "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 handle(ActionEvent event) { System.out.println(Test.readTestFile(new File("/Users/chendehua/Documents/workspace/tp_PID/test_files/test.txt"),0)[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 changed(ObservableValue<? extends Toggle> observable, Toggle oldValue, Toggle newValue) { System.out.println("distancia selecionada e " + tg.getSelectedToggle().getUserData().toString()); angle = Integer.parseInt(tg.getSelectedToggle().getUserData().toString()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void changed(ObservableValue<? extends Boolean> observable, Boolean oldValue, Boolean newValue) { if(newValue) selectedFeatures.add(FEATURES[0]); else selectedFeatures.remove(FEATURES[0]); if(selectedFeatures.size() > 2){ Alert dialogoAviso = new Alert(Alert.AlertType.WARNING); dialogoAviso.setHeaderText("Por favor, selcione apenas duas caracteristicas!"); dialogoAviso.showAndWait(); contraste.setSelected(false); } for(Integer i: selectedFeatures) System.out.println("caracteristcas selecionadas: "+i); }
{ "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 changed(ObservableValue<? extends Boolean> observable, Boolean oldValue, Boolean newValue) { if(newValue) selectedFeatures.add(FEATURES[1]); else selectedFeatures.remove(FEATURES[1]); if(selectedFeatures.size() > 2){ Alert dialogoAviso = new Alert(Alert.AlertType.WARNING); dialogoAviso.setHeaderText("Por favor, selcione apenas duas caracteristicas!"); dialogoAviso.showAndWait(); energy.setSelected(false); } for(Integer i: selectedFeatures) System.out.println("caracteristcas selecionadas: "+i); }
{ "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 changed(ObservableValue<? extends Boolean> observable, Boolean oldValue, Boolean newValue) { if(newValue) selectedFeatures.add(FEATURES[2]); else selectedFeatures.remove(FEATURES[2]); if(selectedFeatures.size() > 2){ Alert dialogoAviso = new Alert(Alert.AlertType.WARNING); dialogoAviso.setHeaderText("Por favor, selcione apenas duas caracteristicas!"); dialogoAviso.showAndWait(); entropy.setSelected(false); } for(Integer i: selectedFeatures) System.out.println("caracteristcas selecionadas: "+i); }
{ "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 changed(ObservableValue<? extends Boolean> observable, Boolean oldValue, Boolean newValue) { if(newValue) selectedFeatures.add(FEATURES[3]); else selectedFeatures.remove(FEATURES[3]); if(selectedFeatures.size() > 2){ Alert dialogoAviso = new Alert(Alert.AlertType.WARNING); dialogoAviso.setHeaderText("Por favor, selcione apenas duas caracteristicas!"); dialogoAviso.showAndWait(); homogeneidade.setSelected(false); } for(Integer i: selectedFeatures) System.out.println("caracteristcas selecionadas: "+i); }
{ "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
Creates a human readable description based on the data from the
private String createDescription(WeatherDto weatherDto) { StringBuilder sb = new StringBuilder(); sb.append("The weather today looks "); if (weatherDto.getTempeture() < 20) { sb.append("cold"); } else { sb.append("hot"); } return sb.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();"...
[ "0.7722958", "0.7722958", "0.7722958", "0.7722958", "0.7722958", "0.7722958", "0.7722958", "0.7722958", "0.7722958", "0.75686985", "0.75686985", "0.75686985", "0.75686985", "0.75686985", "0.75686985", "0.75686985", "0.75686985", "0.75686985", "0.75686985", "0.75686985", "0.75...
0.7396506
21
An interface is used to achieve Multiple inheritance. An interface should not contain abstract methods and constructors. we can give only a reference to interface and hence no object is created to an interface.
interface VehicleOne { int speed=90; public void distance(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface a extends IInterface {\n}", "public interface i {\n}", "interface I {}", "public interface AbstractC2502fH1 extends IInterface {\n}", "Interface getInterface();", "Interface getInterface();", "interface Iface {\n void usedIface();\n}", "public interface IFaci {\n}", "interface I...
[ "0.79307514", "0.7496326", "0.74737626", "0.7443546", "0.7354424", "0.7354424", "0.72035617", "0.71776885", "0.71754783", "0.70075226", "0.69827485", "0.68997365", "0.6896642", "0.689568", "0.6878328", "0.6854476", "0.6821087", "0.68109983", "0.6804997", "0.67809504", "0.6758...
0.0
-1
This function is created to navigate the user to registration Page
public void Navigate_to_Registration_Page(){ waitForVisibilityOfElement(RegistrationPageLocator.Registration_Tab_Home_Screen_Link_Text); Assert.assertTrue(getRegistrationTab_InHomeScreen().getText().equals(StringUtils.Registration_Tab_Text)); getRegistrationTab_InHomeScreen().click(); waitForVisibilityOfElement(RegistrationPageLocator.Registration_Form_Submit_Button); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public RegisterPage goRegisterPage () {\n return topBar.goRegisterPage();\n }", "private void goToRegistrationPage() {\n mAppModel.getErrorBus().removePropertyChangeListener(this);\n mAppModel.removePropertyChangeListener(this);\n mNavigationHandler.goToRegistrationPage();\n }",...
[ "0.75640386", "0.7441417", "0.73063856", "0.7305201", "0.7285701", "0.72222376", "0.71090066", "0.7093948", "0.7081557", "0.7078031", "0.7024275", "0.7021979", "0.69968873", "0.6940366", "0.6877818", "0.6845389", "0.68227446", "0.6820271", "0.678484", "0.6726484", "0.67205393...
0.7367375
2
assuming all binary variables.
public static List<RandomVariable> createDocFeatureRVs(List<RandomVariable> paraDocFeatures, String name) { List<RandomVariable> docFeatures = new ArrayList<>(); for (RandomVariable rv : paraDocFeatures) { docFeatures.add(new RandomVariable(2, name + "_" + rv.getName())); } return docFeatures; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean supportsBinaryInProc();", "boolean isBinary();", "public boolean isSetBinary_vals() {\n return this.binary_vals != null;\n }", "public boolean canHandleBinaryNatively()\n/* */ {\n/* 391 */ return false;\n/* */ }", "public boolean isBinary()\n {\n return false;\n ...
[ "0.59746224", "0.56316423", "0.5615192", "0.55922616", "0.5589146", "0.55800974", "0.5548584", "0.55021346", "0.54854053", "0.54688114", "0.546673", "0.54233325", "0.5417606", "0.54024893", "0.53899074", "0.538846", "0.532768", "0.53238654", "0.5321751", "0.5292541", "0.52883...
0.0
-1
Creating a negation RV from a RV. Only works for binary RVs.
public static RandomVariable createNegationRV(RandomVariable rv) { RandomVariable negationgRv = new RandomVariable(2, "not_"+rv.getName()); RVValues.addNegationRV(negationgRv, rv); return negationgRv; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic String toString() {\n\t\treturn \"NEG\";\n\t}", "public static RationalNumber negate(RationalNumber r1) {\n\t\t//Executable pre-condition: Stopping the wrong form of Fraction.\n\t\tassert r1.getDenominator() != 0: \"Invalid Fraction! Denominator cannot equal to 0\";\n\t\t//Numerator and Denom...
[ "0.5668479", "0.54985297", "0.5388455", "0.52590024", "0.52232563", "0.5176033", "0.5168452", "0.5140662", "0.5112658", "0.5073341", "0.5046578", "0.49707595", "0.49421006", "0.48820084", "0.48774263", "0.48641142", "0.48617628", "0.48602694", "0.48313013", "0.48304877", "0.4...
0.7182449
0
First remove q or p arm if present.
@NotNull private static String zeroPrefixed(@NotNull String location) { int armStart = location.indexOf("q"); if (armStart < 0) { armStart = location.indexOf("p"); } String chromosome = armStart > 0 ? location.substring(0, armStart) : location; try { int chromosomeIndex = Integer.valueOf(chromosome); if (chromosomeIndex < 10) { return "0" + location; } else { return location; } } catch (NumberFormatException exception) { return location; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void remove() {\n\t\tprocess temp = queue.removeFirst();\n\t}", "public synchronized void deQueue(Process p){\n if(p.getId() == queue[0].getId()){\n for(int i =0; i<(queue.length-1);i++){\n queue[i] = queue[i+1];\n }\n queue[queue.length-1] = p;\n ...
[ "0.5978051", "0.58820397", "0.5719388", "0.5609388", "0.56018364", "0.55855703", "0.5570184", "0.55466074", "0.55430305", "0.5517493", "0.55082774", "0.5469811", "0.54493076", "0.5437421", "0.54194856", "0.54069513", "0.5392804", "0.53916603", "0.5331728", "0.5303445", "0.530...
0.0
-1
TODO Autogenerated method stub
@Override public List<Course> show(Course course) { String hql="select pro from Profession pro left outer join fetch pro.courses where pro.ProfessionID=?"; String[] parmas={course.getProfession().getProfessionID()}; return dao.select(hql,parmas); }
{ "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 save(Course course) { if(dao.save(course).equals(course.getCourseID())){ return 1; } else { 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 int delete(Course course) { return dao.delete(Course.class, course.getCourseID()); }
{ "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 update(Course course) { Course cour=(Course)dao.findByID(Course.class, course.getCourseID()); Profession profession=new Profession(); profession.setProfessionID(course.getProfession().getProfessionID()); cour.setProfession(profession); cour.setCourseID(course.getCourseID()); cour.setCourse(course.getCourse()); cour.setCrediy(course.getCrediy()); cour.setCurriculumTime(course.getCurriculumTime()); cour.setStudyTime(course.getStudyTime()); cour.setRemark(course.getRemark()); return dao.update(cour); }
{ "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
Empty constructor required by JMX
public BodyWrapper() { /* Empty Constructor required by JMX */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ClientMBean() {\n }", "public NewUserMBean() {\r\n }", "public ClientSoapMBean() {\r\n\t}", "public MonitoredData() {}", "public JmxLogLevel() {\n this(RunTimeSingleton.instance());\n log.error(\"Wrong constructor\");\n }", "private Supervisor() {\r\n\t}", "public Job() {\r\n\t...
[ "0.7394718", "0.7036905", "0.6922476", "0.6832321", "0.6797717", "0.6774062", "0.666513", "0.6608888", "0.6591844", "0.6572306", "0.65577304", "0.6549246", "0.65367186", "0.65118146", "0.6507004", "0.6507004", "0.6501081", "0.6477932", "0.6471085", "0.64488786", "0.64438677",...
0.0
-1
Creates a new BodyWrapper MBean, representing an active object.
public BodyWrapper(ObjectName oname, AbstractBody body) { this.objectName = oname; this.id = body.getID(); this.body = body; this.nodeUrl = body.getNodeURL(); this.isReifiedObjectSerializable = body.getReifiedObject() instanceof Serializable; this.notifications = new ConcurrentLinkedQueue<Notification>(); this.launchNotificationsThread(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BodyWrapper() {\n /* Empty Constructor required by JMX */\n }", "public final Body newBody()\n {\n Body body = newBodyImpl();\n \n //addBody(body);\n \n return ( body );\n }", "protected abstract Body newBodyImpl();", "public static ObjectInstance g...
[ "0.70123327", "0.59008676", "0.5818911", "0.5776007", "0.5258401", "0.52046067", "0.5168316", "0.51632464", "0.5069597", "0.50626576", "0.50543123", "0.50529957", "0.5011641", "0.49348623", "0.49149165", "0.48994446", "0.48471412", "0.4836887", "0.48265004", "0.4783476", "0.4...
0.6401232
1
PRIVATE METHODS Creates a new thread which sends JMX notifications. A BodyWrapperMBean keeps all the notifications, and the NotificationsThread sends every 'updateFrequence' a list of notifications.
private void launchNotificationsThread() { Thread t = new Thread("JMXNotificationThread for " + BodyWrapper.this.objectName) { @Override public void run() { // first we wait for the creation of the body while (!BodyWrapper.this.body.isActive() && BodyWrapper.this.body.isAlive()) { try { Thread.sleep(updateFrequence); } catch (InterruptedException e) { logger.error("The JMX notifications sender thread was interrupted", e); } } // and once the body is activated, we can forward the // notifications while (BodyWrapper.this.body.isActive()) { try { Thread.sleep(updateFrequence); sendNotifications(); } catch (InterruptedException e) { logger.error("The JMX notifications sender thread was interrupted", e); } } } }; t.setDaemon(true); t.start(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void run() {\n while (!BodyWrapper.this.body.isActive() && BodyWrapper.this.body.isAlive()) {\n try {\n Thread.sleep(updateFrequence);\n } catch (InterruptedException e) {\n logger....
[ "0.69824487", "0.53178024", "0.523575", "0.522933", "0.51460564", "0.5132834", "0.5037654", "0.5030911", "0.50202155", "0.4975253", "0.49282664", "0.48914522", "0.4862392", "0.48499945", "0.48470658", "0.4841967", "0.48391315", "0.48278505", "0.4807421", "0.47533336", "0.4727...
0.8284039
0
first we wait for the creation of the body
@Override public void run() { while (!BodyWrapper.this.body.isActive() && BodyWrapper.this.body.isAlive()) { try { Thread.sleep(updateFrequence); } catch (InterruptedException e) { logger.error("The JMX notifications sender thread was interrupted", e); } } // and once the body is activated, we can forward the // notifications while (BodyWrapper.this.body.isActive()) { try { Thread.sleep(updateFrequence); sendNotifications(); } catch (InterruptedException e) { logger.error("The JMX notifications sender thread was interrupted", e); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "BODY createBODY();", "public void body()\n {\n // wait for a little while for about 10 seconds.\n // This to give a time for GridResource entities to register their\n // services to GIS (GridInformationService) entity.\n super.gridSimHold(10.0);\n\n /////////////////////////...
[ "0.6076876", "0.579496", "0.565538", "0.5644121", "0.5511199", "0.5373365", "0.5364373", "0.5304703", "0.52992463", "0.52949476", "0.52937084", "0.5268457", "0.526824", "0.52410567", "0.52408665", "0.52163243", "0.52151626", "0.52106863", "0.51939046", "0.51777864", "0.516591...
0.0
-1
Sends a notification containing all stored notifications.
private void sendNotifications() { this.sendNotifications(null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void sendNotifications() {\n for (long sid : self.getCurrentAndNextConfigVoters()) {\n QuorumVerifier qv = self.getQuorumVerifier();\n ToSend notmsg = new ToSend(\n ToSend.mType.notification,\n proposedLeader,\n proposedZxid,\n ...
[ "0.71967155", "0.71746236", "0.7124512", "0.70519906", "0.70335424", "0.6831914", "0.65599424", "0.6360517", "0.6324376", "0.6269772", "0.62645644", "0.6259271", "0.6246558", "0.621198", "0.6153401", "0.614657", "0.614346", "0.6141567", "0.61366254", "0.61126", "0.60939264", ...
0.72608984
0
Sends a notification containing all stored notifications.
private void sendNotifications(String userMessage) { if (this.notifications == null) { this.notifications = new ConcurrentLinkedQueue<Notification>(); } // not sure if the synchronize is needed here, let's see ... // synchronized (notifications) { if (!this.notifications.isEmpty()) { ObjectName source = getObjectName(); Notification n = new Notification(NotificationType.setOfNotifications, source, counter++, userMessage); n.setUserData(this.notifications); super.sendNotification(n); this.notifications.clear(); // } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void sendNotifications() {\n this.sendNotifications(null);\n }", "private void sendNotifications() {\n for (long sid : self.getCurrentAndNextConfigVoters()) {\n QuorumVerifier qv = self.getQuorumVerifier();\n ToSend notmsg = new ToSend(\n ToSend.mTy...
[ "0.72608984", "0.71967155", "0.71746236", "0.7124512", "0.70519906", "0.70335424", "0.6831914", "0.65599424", "0.6360517", "0.6324376", "0.6269772", "0.62645644", "0.6259271", "0.6246558", "0.621198", "0.6153401", "0.614657", "0.614346", "0.6141567", "0.61366254", "0.61126", ...
0.6031196
23
Warning loggers is transient
private void readObject(java.io.ObjectInputStream in) throws IOException, ClassNotFoundException { logger = ProActiveLogger.getLogger(Loggers.JMX_MBEAN); notificationsLogger = ProActiveLogger.getLogger(Loggers.JMX_NOTIFICATION); if ((logger != null) && logger.isDebugEnabled()) { logger.debug("[Serialisation.readObject]#Deserialization of the MBean"); } in.defaultReadObject(); // Warning objectName is transient this.objectName = FactoryName.createActiveObjectName(this.id); // Warning nodeUrl is transient // We get the url of the new node. this.nodeUrl = this.body.getNodeURL(); logger.debug("BodyWrapper.readObject() nodeUrl=" + nodeUrl); // Warning notifications is transient this.notifications = new ConcurrentLinkedQueue<Notification>(); // Register the MBean into the MBean Server try { ManagementFactory.getPlatformMBeanServer().registerMBean(this, objectName); } catch (InstanceAlreadyExistsException e) { logger.error("A Mean is already registered with this objectName " + objectName, e); } catch (MBeanRegistrationException e) { logger.error("The MBean " + objectName + " can't be registered on the MBean server during the deserialization of the MBean", e); } catch (NotCompliantMBeanException e) { logger.error("Exception throws during the deserialization of the MBean", e); } launchNotificationsThread(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private TypicalLogEntries() {}", "private ExtentLogger() {}", "private JavaUtilLogHandlers() { }", "public static void disableWarning() {\n try {\n Field theUnsafe = Unsafe.class.getDeclaredField(\"theUnsafe\");\n theUnsafe.setAccessible(true);\n Unsafe u = (Unsafe) theUnsafe.get(null);\n\n...
[ "0.62107545", "0.6075061", "0.602564", "0.6003758", "0.5862515", "0.5832948", "0.57874405", "0.57650626", "0.5709151", "0.5705388", "0.56633556", "0.56341326", "0.55756354", "0.5560933", "0.55403376", "0.5537989", "0.5537541", "0.55268985", "0.55200845", "0.5515923", "0.55040...
0.0
-1
returns a list of outgoing active object references.
public Collection<UniqueID> getReferenceList() { return ObjectGraph.getReferenceList(this.id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<NavArc> listOutgoing() {\r\n List<NavArc> result = new ArrayList<>(outgoing);\r\n return result;\r\n }", "public Collection<Reference> getReferences();", "public SortedSet<WFiber> getOutgoingFibers () { return n.getOutgoingLinks(getNet().getWdmLayer().getNe()).stream().map(ee->new ...
[ "0.6491541", "0.64020395", "0.6098507", "0.60964197", "0.60553813", "0.60051525", "0.5949137", "0.58934915", "0.58854944", "0.5688444", "0.5681234", "0.5661892", "0.5661877", "0.56541103", "0.5641368", "0.5627421", "0.55770195", "0.5551351", "0.554927", "0.554927", "0.5485970...
0.63714373
2
Runs the runner in background and after it's completed calls the callback in the main thread. Runners should always return the result and never throw any exceptions, that also means that they should handle interruptions without throwing exceptions.
public static <T> BackgroundManager run(BackgroundRunner<T> runner, BackgroundCallback<T> callback) { HelperTask helperTask = new HelperTask<>(runner, callback); Thread thread = new Thread(helperTask); thread.setDaemon(true); thread.start(); return helperTask.getManager(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void runInExecutor() {\n this.executor.execute(this.callback);\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tAbsTaskAsynCallBack.this.run();\n\t\t\t\tAbsTaskAsynCallBack.this.callback();\n\t\t\t}", "public void runOnAvailableCallback() {\n onAvailableCallback.run();\n ...
[ "0.6340363", "0.62630445", "0.6043422", "0.5972002", "0.5719187", "0.568354", "0.5623702", "0.5623002", "0.54619557", "0.54619557", "0.54361725", "0.53482634", "0.52974856", "0.5286325", "0.5273301", "0.5270946", "0.5244464", "0.5214174", "0.5207789", "0.5206281", "0.5159613"...
0.63463
0
Set current object coordinate.
public void setPosition(Position pos) { position = new Position(pos); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setLocation(Coordinate coordinate);", "public void setObjectAtLocation(Point p, Object o);", "public void setPosition(Coordinate coord) {\n this.coordinate = coord;\n }", "public void setLocation(float x, float y);", "public void setCoord(Coords coord) {\r\n\t\tthis.coord = coord;\r\n...
[ "0.7234499", "0.7186432", "0.71332735", "0.70165765", "0.7011069", "0.68736583", "0.6814917", "0.68084145", "0.68064576", "0.67402166", "0.6736454", "0.6734284", "0.66842926", "0.6679067", "0.66758966", "0.66680133", "0.6596639", "0.6594166", "0.65889066", "0.65819293", "0.65...
0.0
-1
This methods used in BFS search in the game field.
public void setPrev(Position pos) { prev = pos; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t//loc1 is the start location,loc2 is the destination\n\tpublic ArrayList<MapCoordinate> bfsSearch(MapCoordinate loc1, MapCoordinate loc2, Map m) {\n\t\tSystem.out.println(\"come into bfsSearch\");\n\t\tif(m.isAgentHasAxe() && m.isAgentHasKey()){\n\t\t\tLinkedList<State> queue=new LinkedList<State>();\...
[ "0.60873234", "0.6073512", "0.60454017", "0.5996572", "0.5840847", "0.57207716", "0.56768614", "0.56668115", "0.5650515", "0.5614698", "0.5557934", "0.5527135", "0.55260235", "0.54801077", "0.5475517", "0.54617786", "0.54432726", "0.54364187", "0.54320884", "0.5426847", "0.54...
0.0
-1
Creates new form f1
public f1() { try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); JOptionPane.showMessageDialog(this,"Driver Loaded"); try { con=DriverManager.getConnection("jdbc:odbc:gotham","gouthammv","mypass"); JOptionPane.showMessageDialog(this,"connection established"); } catch(SQLException ex) { JOptionPane.showMessageDialog(this,ex.getMessage()); } } catch(ClassNotFoundException ex){ JOptionPane.showMessageDialog(this, ex.getMessage()); } initComponents(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "FORM createFORM();", "public static Result newForm() {\n return ok(newForm.render(palletForm, setOfArticleForm));\n }", "public FormEditorHTML(Form1 f) {\n initComponents();\n this.myForm=f;\n }", "public form2() {\n initComponents();\n }", "public static FormV1 createE...
[ "0.7658067", "0.6810953", "0.67793906", "0.6342713", "0.62478775", "0.6191835", "0.61784315", "0.6132646", "0.6101984", "0.6076539", "0.60269105", "0.6001384", "0.5985135", "0.5983019", "0.5938619", "0.5926612", "0.58950865", "0.58933085", "0.5875302", "0.58508575", "0.581232...
0.0
-1
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { statisticspane = new javax.swing.JTabbedPane(); jPanel1 = new javax.swing.JPanel(); driver_no = new javax.swing.JTextField(); name = new javax.swing.JTextField(); nationality = new javax.swing.JTextField(); gpwins = new javax.swing.JTextField(); jLabel1 = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); jLabel3 = new javax.swing.JLabel(); jLabel4 = new javax.swing.JLabel(); insertbutton = new javax.swing.JButton(); updatebutton = new javax.swing.JButton(); deletebutton = new javax.swing.JButton(); displaybutton = new javax.swing.JButton(); clearbutton = new javax.swing.JButton(); exitbutton = new javax.swing.JButton(); jPanel2 = new javax.swing.JPanel(); team_no = new javax.swing.JTextField(); team = new javax.swing.JTextField(); engine = new javax.swing.JTextField(); base_op = new javax.swing.JTextField(); driver1 = new javax.swing.JTextField(); driver2 = new javax.swing.JTextField(); principal = new javax.swing.JTextField(); jLabel5 = new javax.swing.JLabel(); jLabel6 = new javax.swing.JLabel(); jLabel7 = new javax.swing.JLabel(); jLabel8 = new javax.swing.JLabel(); jLabel9 = new javax.swing.JLabel(); jLabel10 = new javax.swing.JLabel(); jLabel11 = new javax.swing.JLabel(); teams_insert = new javax.swing.JButton(); teams_update = new javax.swing.JButton(); teams_delete = new javax.swing.JButton(); teams_display = new javax.swing.JButton(); teams_clear = new javax.swing.JButton(); teams_exit = new javax.swing.JButton(); jPanel3 = new javax.swing.JPanel(); raceid = new javax.swing.JTextField(); gpname = new javax.swing.JTextField(); circuit = new javax.swing.JTextField(); location = new javax.swing.JTextField(); date_of_race = new javax.swing.JTextField(); no_of_laps = new javax.swing.JTextField(); lap_length = new javax.swing.JTextField(); winning_driver = new javax.swing.JTextField(); winning_team = new javax.swing.JTextField(); jLabel12 = new javax.swing.JLabel(); jLabel13 = new javax.swing.JLabel(); jLabel14 = new javax.swing.JLabel(); jLabel15 = new javax.swing.JLabel(); jLabel16 = new javax.swing.JLabel(); jLabel17 = new javax.swing.JLabel(); jLabel18 = new javax.swing.JLabel(); jLabel19 = new javax.swing.JLabel(); jLabel20 = new javax.swing.JLabel(); gps_ins = new javax.swing.JButton(); gps_upd = new javax.swing.JButton(); gps_del = new javax.swing.JButton(); gps_disp = new javax.swing.JButton(); gps_clear = new javax.swing.JButton(); gps_exit = new javax.swing.JButton(); jPanel4 = new javax.swing.JPanel(); jLabel21 = new javax.swing.JLabel(); jScrollPane1 = new javax.swing.JScrollPane(); drivstandings = new javax.swing.JTextArea(); jLabel22 = new javax.swing.JLabel(); jScrollPane2 = new javax.swing.JScrollPane(); teamstandings = new javax.swing.JTextArea(); drivchampbutton = new javax.swing.JButton(); jScrollPane3 = new javax.swing.JScrollPane(); drivchamp = new javax.swing.JTextArea(); teamchampbutton = new javax.swing.JButton(); jScrollPane4 = new javax.swing.JScrollPane(); teamchamp = new javax.swing.JTextArea(); jLabel23 = new javax.swing.JLabel(); gpnamestat = new javax.swing.JTextField(); jLabel24 = new javax.swing.JLabel(); gpdatestat = new javax.swing.JTextField(); jLabel25 = new javax.swing.JLabel(); gpwinningdriver = new javax.swing.JTextField(); jLabel26 = new javax.swing.JLabel(); gpwinningteam = new javax.swing.JTextField(); jLabel27 = new javax.swing.JLabel(); jScrollPane5 = new javax.swing.JScrollPane(); drivraceswon = new javax.swing.JTextArea(); drivname = new javax.swing.JTextField(); jLabel28 = new javax.swing.JLabel(); findracedrivwon = new javax.swing.JButton(); jLabel29 = new javax.swing.JLabel(); statfinddetails = new javax.swing.JButton(); jLabel30 = new javax.swing.JLabel(); stateamname = new javax.swing.JTextField(); jLabel31 = new javax.swing.JLabel(); jScrollPane6 = new javax.swing.JScrollPane(); statraceswonteam = new javax.swing.JTextArea(); teamraceswon = new javax.swing.JButton(); clearstat = new javax.swing.JButton(); exitstat = new javax.swing.JButton(); standingsdisp = new javax.swing.JButton(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); jLabel1.setText("Driver No"); jLabel2.setText("Name"); jLabel3.setText("Nationality"); jLabel4.setText("GP Wins"); insertbutton.setText("Insert"); updatebutton.setText("Update"); deletebutton.setText("Delete"); displaybutton.setText("Display"); clearbutton.setText("Clear"); exitbutton.setText("Exit"); javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addGap(28, 28, 28) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addComponent(clearbutton) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(exitbutton)) .addGroup(jPanel1Layout.createSequentialGroup() .addComponent(insertbutton) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(updatebutton) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(deletebutton) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(displaybutton)) .addGroup(jPanel1Layout.createSequentialGroup() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel1) .addComponent(jLabel2) .addComponent(jLabel3) .addComponent(jLabel4)) .addGap(160, 160, 160) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(driver_no) .addComponent(name, javax.swing.GroupLayout.DEFAULT_SIZE, 74, Short.MAX_VALUE) .addComponent(nationality) .addComponent(gpwins)))) .addContainerGap(724, Short.MAX_VALUE)) ); jPanel1Layout.setVerticalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addGap(29, 29, 29) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel1) .addComponent(driver_no, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(name, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel2)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(nationality, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel3)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(gpwins, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel4)) .addGap(31, 31, 31) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(insertbutton) .addComponent(updatebutton) .addComponent(deletebutton) .addComponent(displaybutton)) .addGap(35, 35, 35) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(clearbutton) .addComponent(exitbutton)) .addContainerGap(163, Short.MAX_VALUE)) ); statisticspane.addTab("Drivers", jPanel1); jLabel5.setText("Team No"); jLabel6.setText("Team"); jLabel7.setText("Engine"); jLabel8.setText("Base Of Operations"); jLabel9.setText("Driver1"); jLabel10.setText("Driver2"); jLabel11.setText("Principal"); teams_insert.setText("Insert"); teams_update.setText("Update"); teams_delete.setText("Delete"); teams_display.setText("Display"); teams_clear.setText("Clear"); teams_exit.setText("Exit"); javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2); jPanel2.setLayout(jPanel2Layout); jPanel2Layout.setHorizontalGroup( jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addGap(24, 24, 24) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addComponent(teams_clear) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(teams_exit)) .addGroup(jPanel2Layout.createSequentialGroup() .addComponent(teams_insert) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(teams_update) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(teams_delete) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(teams_display)) .addGroup(jPanel2Layout.createSequentialGroup() .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel5) .addComponent(jLabel6) .addComponent(jLabel7) .addComponent(jLabel8) .addComponent(jLabel9) .addComponent(jLabel10) .addComponent(jLabel11)) .addGap(131, 131, 131) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(principal, javax.swing.GroupLayout.PREFERRED_SIZE, 75, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(team, javax.swing.GroupLayout.PREFERRED_SIZE, 75, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(team_no, javax.swing.GroupLayout.PREFERRED_SIZE, 75, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(engine, javax.swing.GroupLayout.PREFERRED_SIZE, 75, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(base_op, javax.swing.GroupLayout.PREFERRED_SIZE, 75, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(driver1, javax.swing.GroupLayout.PREFERRED_SIZE, 75, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(driver2, javax.swing.GroupLayout.PREFERRED_SIZE, 75, javax.swing.GroupLayout.PREFERRED_SIZE)))) .addContainerGap(713, Short.MAX_VALUE)) ); jPanel2Layout.setVerticalGroup( jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addGap(32, 32, 32) .addComponent(jLabel5) .addGap(4, 4, 4)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup() .addContainerGap() .addComponent(team_no, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED))) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addGap(6, 6, 6) .addComponent(jLabel6)) .addComponent(team, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(engine, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel7)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(base_op, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel8)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(driver1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel9)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(driver2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel10)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(principal, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel11)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(teams_insert) .addComponent(teams_update) .addComponent(teams_delete) .addComponent(teams_display)) .addGap(35, 35, 35) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(teams_clear) .addComponent(teams_exit)) .addContainerGap(125, Short.MAX_VALUE)) ); statisticspane.addTab("Teams", jPanel2); jLabel12.setText("Race ID"); jLabel13.setText("GP Name"); jLabel14.setText("Circuit"); jLabel15.setText("Location"); jLabel16.setText("Date"); jLabel17.setText("Laps"); jLabel18.setText("Lap Length"); jLabel19.setText("Winning Driver"); jLabel20.setText("Winning Team"); gps_ins.setText("Insert"); gps_upd.setText("Update"); gps_del.setText("Delete"); gps_disp.setText("Display"); gps_clear.setText("Clear"); gps_exit.setText("Exit"); javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3); jPanel3.setLayout(jPanel3Layout); jPanel3Layout.setHorizontalGroup( jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel3Layout.createSequentialGroup() .addGap(25, 25, 25) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel3Layout.createSequentialGroup() .addComponent(gps_clear) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(gps_exit)) .addGroup(jPanel3Layout.createSequentialGroup() .addComponent(gps_ins) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(gps_upd) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(gps_del) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(gps_disp)) .addGroup(jPanel3Layout.createSequentialGroup() .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel12) .addComponent(jLabel13) .addComponent(jLabel14) .addComponent(jLabel15) .addComponent(jLabel16) .addComponent(jLabel17) .addComponent(jLabel18) .addComponent(jLabel19) .addComponent(jLabel20)) .addGap(120, 120, 120) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(gpname, javax.swing.GroupLayout.PREFERRED_SIZE, 174, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addComponent(winning_team, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 82, Short.MAX_VALUE) .addComponent(winning_driver, javax.swing.GroupLayout.Alignment.LEADING) .addComponent(lap_length) .addComponent(raceid, javax.swing.GroupLayout.Alignment.LEADING) .addComponent(circuit, javax.swing.GroupLayout.Alignment.LEADING) .addComponent(location, javax.swing.GroupLayout.Alignment.LEADING) .addComponent(date_of_race, javax.swing.GroupLayout.Alignment.LEADING) .addComponent(no_of_laps, javax.swing.GroupLayout.Alignment.LEADING))))) .addContainerGap(648, Short.MAX_VALUE)) ); jPanel3Layout.setVerticalGroup( jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel3Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel12) .addComponent(raceid, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(gpname, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel13)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(circuit, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel14)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(location, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel15)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(date_of_race, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel16)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(no_of_laps, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel17)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(lap_length, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel18)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(winning_driver, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel19)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(winning_team, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel20)) .addGap(18, 18, 18) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(gps_ins) .addComponent(gps_upd) .addComponent(gps_del) .addComponent(gps_disp)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(gps_clear) .addComponent(gps_exit)) .addContainerGap(108, Short.MAX_VALUE)) ); statisticspane.addTab("GPs", jPanel3); jLabel21.setText("Drivers Standings"); drivstandings.setColumns(20); drivstandings.setRows(5); jScrollPane1.setViewportView(drivstandings); jLabel22.setText("Teams Standings"); teamstandings.setColumns(20); teamstandings.setRows(5); jScrollPane2.setViewportView(teamstandings); drivchampbutton.setText("Find Drivers Champion(s)"); drivchampbutton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { drivchampbuttonActionPerformed(evt); } }); drivchamp.setColumns(20); drivchamp.setRows(5); jScrollPane3.setViewportView(drivchamp); teamchampbutton.setText("Find Teams Champion(s)"); teamchampbutton.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { teamchampbuttonActionPerformed(evt); } }); teamchamp.setColumns(20); teamchamp.setRows(5); jScrollPane4.setViewportView(teamchamp); jLabel23.setText("Enter GP Name"); jLabel24.setText("Date"); jLabel25.setText("Winning Driver"); jLabel26.setText("Winning Team"); jLabel27.setText("Enter Driver Name"); drivraceswon.setColumns(20); drivraceswon.setRows(5); jScrollPane5.setViewportView(drivraceswon); jLabel28.setText("Races Won"); findracedrivwon.setText("Find Races Won"); findracedrivwon.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { findracedrivwonActionPerformed(evt); } }); statfinddetails.setText("Find Details"); statfinddetails.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { statfinddetailsActionPerformed(evt); } }); jLabel30.setText("Enter Team Name"); jLabel31.setText("Races Won"); statraceswonteam.setColumns(20); statraceswonteam.setRows(5); jScrollPane6.setViewportView(statraceswonteam); teamraceswon.setText("Find Races Won"); teamraceswon.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { teamraceswonActionPerformed(evt); } }); clearstat.setText("Clear All"); clearstat.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { clearstatActionPerformed(evt); } }); exitstat.setText("Exit"); exitstat.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { exitstatActionPerformed(evt); } }); standingsdisp.setText("Display Standings"); standingsdisp.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { standingsdispActionPerformed(evt); } }); javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4); jPanel4.setLayout(jPanel4Layout); jPanel4Layout.setHorizontalGroup( jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel4Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 205, Short.MAX_VALUE) .addComponent(jScrollPane1) .addComponent(jLabel21, javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel22, javax.swing.GroupLayout.Alignment.LEADING)) .addGroup(jPanel4Layout.createSequentialGroup() .addComponent(clearstat) .addGap(29, 29, 29) .addComponent(exitstat) .addGap(18, 18, 18) .addComponent(standingsdisp))) .addGap(30, 30, 30) .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addGroup(jPanel4Layout.createSequentialGroup() .addComponent(drivchampbutton) .addGap(18, 18, 18) .addComponent(jScrollPane3)) .addGroup(jPanel4Layout.createSequentialGroup() .addComponent(teamchampbutton) .addGap(22, 22, 22) .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGroup(jPanel4Layout.createSequentialGroup() .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel27) .addComponent(jLabel28)) .addGap(74, 74, 74) .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(findracedrivwon) .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jScrollPane5) .addComponent(drivname))))) .addGap(31, 31, 31) .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel23) .addComponent(jLabel24) .addComponent(jLabel25) .addComponent(jLabel26) .addComponent(jLabel29) .addComponent(jLabel30) .addComponent(jLabel31)) .addGap(48, 48, 48) .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPane6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(statfinddetails) .addComponent(gpnamestat) .addComponent(gpdatestat) .addComponent(gpwinningdriver) .addComponent(gpwinningteam) .addComponent(stateamname, javax.swing.GroupLayout.DEFAULT_SIZE, 125, Short.MAX_VALUE)) .addComponent(teamraceswon)) .addContainerGap(44, Short.MAX_VALUE)) ); jPanel4Layout.setVerticalGroup( jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel4Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel4Layout.createSequentialGroup() .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel4Layout.createSequentialGroup() .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel21) .addComponent(drivchampbutton)) .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel4Layout.createSequentialGroup() .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 129, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(26, 26, 26) .addComponent(jLabel22) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 139, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(jPanel4Layout.createSequentialGroup() .addGap(80, 80, 80) .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(teamchampbutton)) .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel4Layout.createSequentialGroup() .addGap(16, 16, 16) .addComponent(jLabel27)) .addGroup(jPanel4Layout.createSequentialGroup() .addGap(18, 18, 18) .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(drivname, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(stateamname, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel30)))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel28) .addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jScrollPane6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel31))))) .addGroup(jPanel4Layout.createSequentialGroup() .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addGroup(jPanel4Layout.createSequentialGroup() .addComponent(jLabel23) .addGap(27, 27, 27) .addComponent(jLabel24) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabel25)) .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(18, 18, 18) .addComponent(jLabel26) .addGap(30, 30, 30) .addComponent(jLabel29))) .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel4Layout.createSequentialGroup() .addGap(0, 24, Short.MAX_VALUE) .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(findracedrivwon) .addComponent(teamraceswon))) .addGroup(jPanel4Layout.createSequentialGroup() .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(clearstat) .addComponent(exitstat) .addComponent(standingsdisp)) .addGap(0, 0, Short.MAX_VALUE)))) .addGroup(jPanel4Layout.createSequentialGroup() .addComponent(gpnamestat, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18) .addComponent(gpdatestat, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18) .addComponent(gpwinningdriver, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18) .addComponent(gpwinningteam, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18) .addComponent(statfinddetails) .addGap(0, 0, Short.MAX_VALUE))) .addContainerGap()) ); statisticspane.addTab("Statistics", jPanel4); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(statisticspane) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(statisticspane, javax.swing.GroupLayout.Alignment.TRAILING) ); pack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n ...
[ "0.7318948", "0.7290426", "0.7290426", "0.7290426", "0.7284922", "0.7247965", "0.7213206", "0.72080696", "0.7195916", "0.7189941", "0.71835536", "0.71579427", "0.7147217", "0.70927703", "0.7080282", "0.7055882", "0.6987108", "0.69770193", "0.6954159", "0.69529283", "0.6944756...
0.0
-1
Called when the activity is first created.
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); final CheckBox chPhys = (CheckBox)findViewById(R.id.physical); final CheckBox chMusic = (CheckBox)findViewById(R.id.music); final CheckBox chPaint = (CheckBox)findViewById(R.id.painting); chPhys.setOnCheckedChangeListener(checkListener); chMusic.setOnCheckedChangeListener(checkListener); chPaint.setOnCheckedChangeListener(checkListener); Button bt = (Button)findViewById(R.id.btsubmit); bt.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { String str = ""; if(chPhys.isChecked()){ str += chPhys.getText().toString()+" "; } if(chMusic.isChecked()){ str += chMusic.getText().toString()+" "; } if(chPaint.isChecked()){ str += chPaint.getText().toString()+" "; } Toast.makeText(DemoCheckboxActivity.this, str, Toast.LENGTH_SHORT).show(); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t\tinit();\n\t}", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t}", "@Override\n\tpublic void onActivit...
[ "0.791686", "0.77270156", "0.7693263", "0.7693263", "0.7693263", "0.7693263", "0.7693263", "0.7693263", "0.7637394", "0.7637394", "0.7629958", "0.76189965", "0.76189965", "0.7543775", "0.7540053", "0.7540053", "0.7539505", "0.75269467", "0.75147736", "0.7509639", "0.7500879",...
0.0
-1
DATABASE MAPPING : type ( VARCHAR )
public void setType( String type ) { this.type = type; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract String toSQL();", "public void typeDatabaseName(String text) {\n txtDatabaseName().typeText(text);\n }", "public abstract String getDatabaseName();", "private String getStringToCreateDB(String addings) {\n StringBuffer createDBStringBuffer = new StringBuffer();\n ...
[ "0.5864675", "0.5755748", "0.571022", "0.5651137", "0.56479466", "0.5633237", "0.5624704", "0.56191576", "0.5616406", "0.5611539", "0.56112504", "0.559237", "0.55610245", "0.5557663", "0.5557663", "0.5557663", "0.5557663", "0.5527811", "0.54863155", "0.5482438", "0.5460589", ...
0.0
-1
Eliminar los espacios de una frase pasada por consola por el usuario
public static void main(String[] args) { Scanner sc = new Scanner(System.in); System.out.println("Ingrese Frase"); String frase = sc.nextLine(); System.out.println(frase.replace(" ","")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String eliminarEspaciosInicialesFinales(String mensaje) {\n //Elimina todos los espacios que se encuentren al inicio o al final de la frace\n Pattern patron = Pattern.compile(\"^[ ]+|[ ]+$\");\n Matcher encaja = patron.matcher(mensaje);\n String resultado = encaja.replaceAll(\"\...
[ "0.69387084", "0.62622774", "0.58597535", "0.58427644", "0.580199", "0.5768295", "0.5524782", "0.5453151", "0.54148483", "0.54018", "0.53592783", "0.53120035", "0.52651685", "0.52466524", "0.5189245", "0.5132815", "0.5120688", "0.5119196", "0.5104411", "0.50701976", "0.50546"...
0.0
-1
Provides a portable instance that has the scope resolution strategy order and the default scope for preference persistence.
public PreferenceScopeResolutionStrategyInfo getDefaultScopeResolutionStrategyInfo() { return scopeResolutionStrategyInfo; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public PreferenceScopeResolver getDefaultScopeResolver() {\n return scopeResolver;\n }", "Scope createScope();", "public static ModelSearchDirectoryScopeFactory getInstance()\n {\n return instance == null ? instance = new ModelSearchDirectoryScopeFactory() : instance;\n }", "public Bas...
[ "0.605611", "0.5923723", "0.56775403", "0.561483", "0.54641235", "0.53483003", "0.53344953", "0.53236955", "0.5317329", "0.53051966", "0.53011686", "0.52373", "0.52307886", "0.52067596", "0.5204752", "0.512977", "0.5112516", "0.50966364", "0.5071907", "0.5025719", "0.50255334...
0.5861919
2