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 |
|---|---|---|---|---|---|---|
Current state, pushed as true or false | public void updateState(boolean state); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean getState( ) { return state; }",
"@Override\n\tpublic boolean getState() {\n\t\treturn true;\n\t}",
"public Boolean getNewState() {\n return this.newState;\n }",
"public boolean nextState() {\n\t\treturn false;\n\t}",
"boolean isSetState();",
"boolean hasState();",
"boolean hasS... | [
"0.715805",
"0.7089734",
"0.7045449",
"0.7031531",
"0.6814157",
"0.6801854",
"0.6801854",
"0.6801854",
"0.6801854",
"0.6801854",
"0.6801854",
"0.6801854",
"0.6801854",
"0.6588661",
"0.65868795",
"0.6552705",
"0.652212",
"0.6476766",
"0.6368866",
"0.630406",
"0.62858015",
"0... | 0.5940095 | 37 |
change the starting and ending times and re draw all the bins | void drawRegion (double b, double e) {
begT = b; endT = e;
drawStuff (img.getGraphics ());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void drawBins (Graphics g) {\n double dTime = (endT - begT) / parent.numBins;\n int j = 0; statesDrawn = 0; highestCt = 0;\n \n Vector v = parent.stateDef.stateVector;\n \n for (int i = 0; i < parent.numBins; i++) {\n //Limits of a bin\n double startTime = begT + (i * dTime); ... | [
"0.6879709",
"0.572495",
"0.5711452",
"0.57077247",
"0.5590007",
"0.5540153",
"0.54638124",
"0.5436367",
"0.54201496",
"0.54011554",
"0.532153",
"0.5317505",
"0.52806926",
"0.5279321",
"0.5278069",
"0.5264851",
"0.5255444",
"0.52537185",
"0.5235002",
"0.51662207",
"0.51638114... | 0.5046826 | 28 |
methods to draw bins, time scale This method draws the bins and the time scale to the specified graphics context | void drawStuff (Graphics g) {
if (g instanceof PrintGraphics)
g.setColor (parent.parent.parent.printImgBColor);
else
g.setColor (parent.parent.parent.normImgBColor);
g.fillRect (0, 0, _xPix, _yPix - 3 * parent.lineSize);
//draw the stuff
drawBins (g);
//Draw the Time Line
drawTimeLine (g);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void drawScale(Graphics2D g)\n\t{\n\t\tStroke drawingStroke = new BasicStroke(2, BasicStroke.CAP_BUTT, BasicStroke.JOIN_ROUND);\t\n\t\tg.setStroke(drawingStroke);\n\t\tdouble xAxisLength = midBoxWidth - AXIS_Y_GAP*2;\n\t\tdouble yAxisLength = midBoxHeight - AXIS_X_GAP*2;\n\t\tint xScale = statsCollector.ge... | [
"0.62839615",
"0.595471",
"0.59164625",
"0.58224416",
"0.5737811",
"0.5660592",
"0.5649985",
"0.56252474",
"0.5578181",
"0.55770755",
"0.5547661",
"0.55428994",
"0.5541826",
"0.54730684",
"0.5432268",
"0.5404656",
"0.53888494",
"0.53859264",
"0.53827524",
"0.53816825",
"0.536... | 0.6268369 | 1 |
this method draws the bins and the time scale onto the offscreen image | void drawStuff () {drawStuff (img.getGraphics ());} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void draw() {\n Graphics2D g2 = (Graphics2D) image.getGraphics();\n\n g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n g2.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_LCD_HRGB);\n\n AffineTra... | [
"0.6576487",
"0.65179044",
"0.61451215",
"0.61234087",
"0.6045639",
"0.59787005",
"0.59470284",
"0.5905312",
"0.58877784",
"0.5871264",
"0.5856407",
"0.57979447",
"0.5796",
"0.57732564",
"0.5756921",
"0.5747226",
"0.57165533",
"0.5695949",
"0.5651167",
"0.56510556",
"0.563324... | 0.0 | -1 |
This function creates bins and causes them to be drawn | private void drawBins (Graphics g) {
double dTime = (endT - begT) / parent.numBins;
int j = 0; statesDrawn = 0; highestCt = 0;
Vector v = parent.stateDef.stateVector;
for (int i = 0; i < parent.numBins; i++) {
//Limits of a bin
double startTime = begT + (i * dTime);
double finishTime = begT + ((i + 1) * dTime);
int ct = 0;
Info currState;
while (j < v.size () &&
((currState = (Info)v.elementAt (j)).lenT < finishTime ||
(currState.lenT == finishTime && currState.lenT == endT))) {
if (startTime <= currState.lenT) {
ct++;
statesDrawn ++;
}
j++;
}
if (highestCt < ct) highestCt = ct;
//draw the bin
if (ct > 0) drawBin (g, i, ct);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void drawBin (Graphics g, int binNo, int ct) {\n int height = parent.getHistHeight (ct);\n if (height == 0) height = 1;\n if (height > (_yPix - 3 * parent.lineSize)) height = _yPix - 3 * parent.lineSize;\n \n int d = (int)Math.rint ((binNo * _xPix) / ((double)parent.numBins));\n \n i... | [
"0.68356454",
"0.66731864",
"0.636458",
"0.62199795",
"0.61868083",
"0.60890603",
"0.6043207",
"0.60172766",
"0.5997151",
"0.59784573",
"0.5958851",
"0.59582794",
"0.5877531",
"0.5865273",
"0.57770264",
"0.5686262",
"0.56797796",
"0.5679314",
"0.56459206",
"0.5644048",
"0.554... | 0.67977816 | 1 |
This function draws a histogram bar for a bin. | protected void drawBin (Graphics g, int binNo, int ct) {
int height = parent.getHistHeight (ct);
if (height == 0) height = 1;
if (height > (_yPix - 3 * parent.lineSize)) height = _yPix - 3 * parent.lineSize;
int d = (int)Math.rint ((binNo * _xPix) / ((double)parent.numBins));
if (d >= _xPix) d = _xPix - 1;
int x1 = d;
int e = (int)Math.rint (((binNo + 1) * _xPix) / ((double)parent.numBins));
int x2 = e;
int width = x2 - x1;
if (width == 0) width = 1;
int y = _yPix - 3 * parent.lineSize - height;
g.setColor (parent.stateDef.color);
g.fillRect (x1, y, width, height);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static <B> Histogram<B> withBins(Iterable<B> bins) {\n Histogram<B> hist = new Histogram<>();\n hist.addBins(bins);\n return hist;\n }",
"private void computeHistogramBins() {\r\n int nBins = (int) Math.ceil(hismax / binWidth);\r\n histoBins = new double[nBins];\r\n ... | [
"0.69604546",
"0.6462784",
"0.64011294",
"0.6314243",
"0.6269749",
"0.62262833",
"0.6119871",
"0.5973462",
"0.594431",
"0.59101886",
"0.58819705",
"0.5787692",
"0.5773974",
"0.57714725",
"0.57675916",
"0.57327443",
"0.5732092",
"0.5694676",
"0.5688058",
"0.5670736",
"0.566383... | 0.72687495 | 0 |
This function draws the timeLine for the image | private void drawTimeLine (Graphics g) {
g.setColor (parent.parent.parent.rulerColor);
g.fillRect (0, _yPix - 3 * parent.lineSize, _xPix, 3 * parent.lineSize);
g.setColor (Color.black);
g.drawLine (0, _yPix - 3 * parent.lineSize, _xPix, _yPix - 3 * parent.lineSize);
double inchT = parent.getTime (parent.dpi); if (inchT <= 0) return;
int i = (int)Math.rint (begT / inchT);
double t = i * inchT;
while (t < endT) {
int xcord = i * parent.dpi - parent.getEvtXCord (begT) -
(int)Math.rint (parent.fm.charWidth ('|') / 2.0);
g.drawString ("|", xcord, _yPix - 2 * parent.lineSize - parent.fDescent);
String t1 = (new Float (t)).toString (), t2;
if (t1.indexOf ('E') == -1) {
int index = max;
if (index > t1.length ()) index = t1.length ();
t2 = t1.substring (0, index);
}
else {
int exp = t1.indexOf ('E');
String e = t1.substring (exp, t1.length ());
int si = 5; if (exp < si) si = exp;
String a = t1.substring (0, si);
t2 = a + e;
}
g.drawString (t2,
xcord - (int)Math.rint (parent.fm.stringWidth (t2) / 2.0),
_yPix - (parent.lineSize + parent.fDescent));
t = (++i * inchT);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void drawTimeLineForLine(Graphics2D g2d, RenderContext myrc, Line2D line, \n Composite full, Composite trans,\n int tl_x0, int tl_x1, int tl_w, int tl_y0, int tl_h, \n long ts0, long ts1) {\n g2d.se... | [
"0.75265473",
"0.75204545",
"0.67020017",
"0.6595092",
"0.6449058",
"0.6430775",
"0.6307403",
"0.6269747",
"0.6158744",
"0.606825",
"0.6006043",
"0.59994555",
"0.5973079",
"0.5972979",
"0.5957942",
"0.595137",
"0.59025025",
"0.5850124",
"0.5825093",
"0.57580113",
"0.57451314"... | 0.7806275 | 0 |
end of methods to draw bins, time scales | void kill () {if (img != null) {img.flush (); img = null;}} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void drawBins (Graphics g) {\n double dTime = (endT - begT) / parent.numBins;\n int j = 0; statesDrawn = 0; highestCt = 0;\n \n Vector v = parent.stateDef.stateVector;\n \n for (int i = 0; i < parent.numBins; i++) {\n //Limits of a bin\n double startTime = begT + (i * dTime); ... | [
"0.659429",
"0.620586",
"0.6017443",
"0.59150755",
"0.5909795",
"0.583621",
"0.5832447",
"0.5809588",
"0.5808807",
"0.5786204",
"0.578517",
"0.57745934",
"0.5763621",
"0.5751102",
"0.5743388",
"0.5707413",
"0.5701218",
"0.5682628",
"0.56623757",
"0.56506324",
"0.5643233",
"... | 0.0 | -1 |
Setup the graph file for depthfirst search. The APDFS constructor asks the user for his/her graph file and imports the graph into its internal data structure. | public static void main(String[] args)
{
PontoArticulacaoDFS graph = new PontoArticulacaoDFS();
// Run DFS to find any articulation points (and biconnected components).
graph.doArticulationPointDFS();
// Display the results of the DFS.
graph.showResults();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public AdjacencyLists(String filename)\n {\n readGraph(filename);\n }",
"public static void main(String[] args) \n\t throws IOException {\n\t Scanner sc = new Scanner(System.in);\n\t System.out.print(\"Enter graph input file name: \");\n\t String file = sc.nextLine();\n\t ... | [
"0.6381234",
"0.6182053",
"0.61735207",
"0.610298",
"0.6058577",
"0.59704435",
"0.5968734",
"0.5958363",
"0.59020394",
"0.5833085",
"0.5818532",
"0.5805114",
"0.57999855",
"0.5774705",
"0.57220316",
"0.5721291",
"0.57080144",
"0.5657995",
"0.56442153",
"0.5642527",
"0.5639596... | 0.5293293 | 49 |
Implementation must return an array of values, extracted from T instance, by simply calling some methods of t. Attention! Be careful! All objects returned here MUST implement hashCode(). | protected abstract Object[] getValues(T t); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"T[] getValues();",
"Object[] getValues();",
"Object[] getValues();",
"public Object[] getValues();",
"Array<Object> getInstanceValues();",
"public Object[] toArray(){\n\t\t// allocate the array an an iterator\n\t\t\t\tObject[] arr = new Object[hashTableSize];\n\t\t\t\tIterator<T> iter = iterator();\n\t\t... | [
"0.8075027",
"0.72038805",
"0.72038805",
"0.7093896",
"0.69194525",
"0.67193055",
"0.6694374",
"0.6580316",
"0.6524081",
"0.65145224",
"0.64911735",
"0.6395407",
"0.62868285",
"0.6280235",
"0.62744147",
"0.6274399",
"0.62528366",
"0.62513393",
"0.6250092",
"0.6231463",
"0.622... | 0.85774773 | 0 |
increment x in for loop | public static void displayArray(Participant[] participantArray)
{
for(int x = 0; x < participantArray.length; ++x)
System.out.println("\nParticipant #" + (x + 1) +
participantArray[x].toString());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void inc_x()\n {\n synchronized(mLock_IndexX) { set_x(get_x() + 1); }\n }",
"private void increment() {\n for (int i=0; i < 10000; i++) {\n count++;\n }\n }",
"public void incrementLoopCount() {\n this.loopCount++;\n }",
"public void nextIteration()\... | [
"0.75709563",
"0.7050996",
"0.6783485",
"0.670739",
"0.6706615",
"0.6675896",
"0.6544905",
"0.6447998",
"0.6417554",
"0.6356365",
"0.63001794",
"0.6296748",
"0.62899804",
"0.6268682",
"0.62656534",
"0.6260582",
"0.6220336",
"0.6213103",
"0.6195921",
"0.61814255",
"0.6178876",... | 0.0 | -1 |
increment x in for loop | public static void displayArrayList(ArrayList<Participant> participantArrayList)
{
for(int x = 0; x < participantArrayList.size(); ++x)
System.out.println("\nSame participants #" + (x + 1) +
participantArrayList.get(x).toString());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void inc_x()\n {\n synchronized(mLock_IndexX) { set_x(get_x() + 1); }\n }",
"private void increment() {\n for (int i=0; i < 10000; i++) {\n count++;\n }\n }",
"public void incrementLoopCount() {\n this.loopCount++;\n }",
"public void nextIteration()\... | [
"0.75709563",
"0.7050996",
"0.6783485",
"0.670739",
"0.6706615",
"0.6675896",
"0.6544905",
"0.6447998",
"0.6417554",
"0.6356365",
"0.63001794",
"0.6296748",
"0.62899804",
"0.6268682",
"0.62656534",
"0.6260582",
"0.6220336",
"0.6213103",
"0.6195921",
"0.61814255",
"0.6178876",... | 0.0 | -1 |
return((float)(Math.log((10)Math.pow(2Math.PI,0.5)) + Math.pow(image[clique[0]][clique[1]] means[imageLabels[clique[0]][clique[1]]1], 2)/(2Math.pow(10, 2)))); | public float cliquePotentialSingle(int[] clique,int[][] imageLabels,int[][] image, float beta, float[] means,float[] sigs){
return((float)(Math.log((sigs[imageLabels[clique[0]][clique[1]]-1]+10)*Math.pow(2*Math.PI,0.5)) + Math.pow(image[clique[0]][clique[1]] - means[imageLabels[clique[0]][clique[1]]-1], 2)/(2*Math.pow(sigs[imageLabels[clique[0]][clique[1]]-1]+10, 2))));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double dlugoscOkregu() {\n\t\treturn 2 * Math.PI * promien;\n\t}",
"float getIva();",
"private double calculaz(double v) { //funcion de densidad de probabilidad normal\n double N = Math.exp(-Math.pow(v, 2) / 2) / Math.sqrt(2 * Math.PI);\n return N;\n }",
"private double normalizeImage... | [
"0.58402437",
"0.5689273",
"0.5680344",
"0.56384814",
"0.56264603",
"0.562441",
"0.56107813",
"0.55961853",
"0.55822533",
"0.5562792",
"0.55615467",
"0.5528442",
"0.55162257",
"0.55154496",
"0.54986185",
"0.5485082",
"0.5472068",
"0.5466246",
"0.54472935",
"0.54408383",
"0.54... | 0.5768885 | 1 |
Cria e instala o security manager System.setSecurityManager(new RMISecurityManager() ); | public static void main(String args[]) {
try {
LocateRegistry.createRegistry(80);
OperacoesImpl obj = new OperacoesImpl();
Naming.rebind("ServerRMI", obj);
System.out.println("Server RMI pronto.");
} catch (Exception e) {
System.out.println("Server erro" + e.getMessage());
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"SecurityManager getSecurityManager();",
"SecurityManager getSecurityManager();",
"public void setAsSecurityManager() {\r\n\t\tRemoteReflector.setSecurityPolicy(_sess, this);\r\n\t}",
"public void enableCustomSecurityManager() {\n System.setSecurityManager(securityManager);\n }",
"public HttpRemot... | [
"0.7241497",
"0.7241497",
"0.72038585",
"0.69737357",
"0.69307774",
"0.6869027",
"0.676339",
"0.63810307",
"0.61410356",
"0.5837188",
"0.5758667",
"0.5743236",
"0.569278",
"0.5664355",
"0.56486946",
"0.5616718",
"0.5558783",
"0.5509978",
"0.5509808",
"0.5503958",
"0.54969823"... | 0.48114574 | 95 |
Incorrect method to swap variable values. | public static void swap (int x, int y) {
int t = x;
x = y;
y = t;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void swap() {\n\t\tCode.put(Code.dup_x1);\n\t\tCode.put(Code.pop);\n\t}",
"public static void main(String[] args) {\n int a,b,u;\n a=23;\n b=56;\n System.out.println(\"Before Swapping=a,b=\"+a+\",\"+ + b);\n u=a;\n a=b;\n b=u;\n System.out.println(\... | [
"0.6862257",
"0.66985476",
"0.6633419",
"0.6623614",
"0.6601829",
"0.6589508",
"0.65482485",
"0.654523",
"0.6492897",
"0.6461075",
"0.64573497",
"0.6444734",
"0.6387285",
"0.63799036",
"0.63729113",
"0.63619",
"0.6360282",
"0.6350833",
"0.63404226",
"0.63148856",
"0.6309923",... | 0.6567412 | 6 |
Incorrect program that tries to swap variable values. | public static void main (String []args) {
// INPUT
int a = 5;
int b = 7;
System.out.println (a);
System.out.println (b);
// try to swap values (INCORRECT)
swap (a,b);
System.out.println (a);
System.out.println (b);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args) {\n int a,b,u;\n a=23;\n b=56;\n System.out.println(\"Before Swapping=a,b=\"+a+\",\"+ + b);\n u=a;\n a=b;\n b=u;\n System.out.println(\"After Swapping=a,b\"+a+\",\"+ + b);\n \n\t}",
"public static void main(St... | [
"0.7350731",
"0.71348137",
"0.67656106",
"0.66201174",
"0.65985787",
"0.6582457",
"0.65684044",
"0.6455921",
"0.64418364",
"0.6422689",
"0.6398633",
"0.63610804",
"0.63544005",
"0.6311076",
"0.62532383",
"0.62294185",
"0.6214623",
"0.6187055",
"0.6154854",
"0.6115028",
"0.606... | 0.7143364 | 1 |
add total sales to the instance variable | public void addSales(double totalSales) {
this.total_sales = totalSales;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void salesTotal(){\n\t\tif (unitsSold<10){\n\t\t\tsetTotalCost(basePrice);\n\t\t\tsetDiscount(basePrice - this.getCost());\n\t\t}\n\t\telse if (unitsSold<20){\n\t\t\tsetTotalCost((RETAIL_PRICE*.8)*unitsSold);\n\t\t\tsetDiscount(basePrice - this.getCost());\n\t\t\t\n\t\t}\n\t\telse if (unitsSold<50){\n\t\t\t... | [
"0.7814854",
"0.7630215",
"0.7380308",
"0.73263",
"0.72251856",
"0.7198967",
"0.7051616",
"0.70390546",
"0.6935085",
"0.6931889",
"0.6906342",
"0.69045734",
"0.68882346",
"0.6864577",
"0.68564606",
"0.6841167",
"0.6825789",
"0.68162894",
"0.6795137",
"0.6722553",
"0.66941",
... | 0.8285718 | 0 |
override pay method to calculate payment | @Override
public double pay() {
double payment = super.pay() + (this.commision_rate * this.total_sales);
this.total_sales = 0;
return payment;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract double pay();",
"@Override\r\n public void pay() {\n }",
"void pay(Payment payment) {\n\n\t}",
"@Override\n\tpublic void pay() {\n\t\tcreditCard.makePayment();\n\n\t}",
"public void calculatePayment() {}",
"@Override\n public double calculatePay ()\n {\n double commissionPa... | [
"0.8378815",
"0.81865734",
"0.7973591",
"0.78894424",
"0.78668934",
"0.7710832",
"0.75562084",
"0.75449705",
"0.7544569",
"0.7485728",
"0.73948175",
"0.72773916",
"0.7227081",
"0.71519953",
"0.7119349",
"0.7063989",
"0.69993407",
"0.69525206",
"0.6913007",
"0.6912132",
"0.690... | 0.8132464 | 2 |
override toString method to print the total sales | @Override
public String toString() {
return super.toString() + "\nTotal sales: " + this.total_sales;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public String toString() {\n return super.toString() + \", Annual Sales: $\" + this.getAnnualSales();\n }",
"public String toString() {\n return \"SalesItem: {\"\n + \"salePrice=\" + salePrice\n + \", salesID=\" + salesID\n + \", sellab... | [
"0.8464305",
"0.74730533",
"0.7417708",
"0.73182285",
"0.72426075",
"0.7166862",
"0.7151567",
"0.71449965",
"0.71028525",
"0.7078655",
"0.7078254",
"0.7051667",
"0.70113885",
"0.70099384",
"0.7001179",
"0.6998765",
"0.69847375",
"0.6979646",
"0.6975845",
"0.6934361",
"0.69242... | 0.90594137 | 0 |
This is called when an item is doubled clicked; (row equals the array index!) | private void respondToClick(int row)
{
if(isOnMainPage)
{
isOnMainPage = false;
indexOfSelectedSubBand = row;
clearTable();
addSubBandContents();
}else
{
indexOfSelectedBranch = row;
new AddBranchJDialog(450, 660, "Edit Branch", ICON, indexOfSelectedSubBand, indexOfSelectedBranch);
clearTable();
addSubBandContents();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void rowDoubleClicked(JTable table, int row) {\r\n }",
"@Override\r\n\tprotected void doDoubleClick(int row) {\n\t\t\r\n\t}",
"protected void cellDoubleClicked(JTable table, int row, int column) {\r\n }",
"@Override\n \tpublic void mouseDoubleClicked(MouseEvent me) {\n \t}",
"@Override\r\n\tpro... | [
"0.7877178",
"0.7641865",
"0.7413271",
"0.72801834",
"0.69211584",
"0.6897304",
"0.6774189",
"0.6757695",
"0.67495066",
"0.6726877",
"0.6726877",
"0.6726877",
"0.6726877",
"0.6726877",
"0.6726877",
"0.6726877",
"0.6726877",
"0.6726877",
"0.6726877",
"0.6723367",
"0.67127275",... | 0.0 | -1 |
Serializable QuadFunctio with reflection abilities | @FunctionalInterface
public interface QuadFunction<P1, P2, P3, P4, R> extends MethodFinder {
R apply(P1 p1, P2 p2, P3 p3, P4 p4);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\t\t\tpublic void serializar() {\n\r\n\t\t\t}",
"@Override\r\n\tpublic void serializar() {\n\r\n\t}",
"public interface Serial\r\n{\r\n// use string constants to enforce consistency\r\n// between readers and writers\r\npublic static final String OBJECT = \"object\";\r\npublic static final String F... | [
"0.6266986",
"0.62115866",
"0.61040395",
"0.601458",
"0.5786697",
"0.5721102",
"0.5697495",
"0.5693338",
"0.5624045",
"0.5619526",
"0.56047404",
"0.5551705",
"0.55344105",
"0.55180645",
"0.55174565",
"0.5489801",
"0.5486288",
"0.54656166",
"0.5465166",
"0.54356724",
"0.542514... | 0.0 | -1 |
Created by Katarzyna on 20170218. | @Repository
public interface UserRepository extends CrudRepository<User, Long> {
User findByUsername(String username);
User findByEmail(String email);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"public final void mo51373a() {\n }",
"@Override\n ... | [
"0.59351045",
"0.5767862",
"0.5624647",
"0.5582979",
"0.5582979",
"0.55318284",
"0.5525623",
"0.5513636",
"0.5487628",
"0.54839605",
"0.54766405",
"0.5461256",
"0.5458505",
"0.5449849",
"0.5440597",
"0.5423586",
"0.54130626",
"0.54113084",
"0.5402979",
"0.5398919",
"0.5394493... | 0.0 | -1 |
Returns true, if the ore can be part of this find. | public boolean add(CoreProtectAPI.ParseResult ore) {
if (find.isEmpty()) {
time = ore.getTime();
worldName = ore.worldName();
find.add(ore);
return true;
} else if (isValid(ore)) {
find.add(ore);
return true;
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean tenho(final SubObjetivo eater) {\n return this.subObjetivos.contains(eater);\n }",
"public boolean isValid(CoreProtectAPI.ParseResult ore) {\n if (worldName != null && worldName.equalsIgnoreCase(ore.worldName())) {\n Location loc = new Location(Bukkit.getWorld(ore.worl... | [
"0.6235159",
"0.6002784",
"0.5882735",
"0.5789051",
"0.5783123",
"0.5622388",
"0.55952466",
"0.5557987",
"0.55382866",
"0.54968226",
"0.5492498",
"0.54514",
"0.54342276",
"0.54238594",
"0.5423783",
"0.54218113",
"0.5407051",
"0.54042417",
"0.5399708",
"0.53956276",
"0.5389781... | 0.5551796 | 8 |
An ore is valid, if it's found within 5 blocks of the first ore. | public boolean isValid(CoreProtectAPI.ParseResult ore) {
if (worldName != null && worldName.equalsIgnoreCase(ore.worldName())) {
Location loc = new Location(Bukkit.getWorld(ore.worldName()), ore.getX(), ore.getY(), ore.getZ());
if (loc.distance(getLocation()) <= MAX_DISTANCE) {
if (ore.getType() == type) {
return true;
}
}
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean checkInvalid5(String x) {\n for (int i = 0; i < x.length() - 1; i++) {\n if ((x.charAt(i) == x.charAt(i + 1)) && (x.charAt(i) != 'o')) {\n return true;\n }\n }\n return false;\n }",
"public boolean isValid() {\r\n\t\tif (this.size() == 5... | [
"0.58564156",
"0.5803305",
"0.5742901",
"0.5741206",
"0.56597596",
"0.55845094",
"0.5568967",
"0.5564509",
"0.553832",
"0.5500409",
"0.5494593",
"0.5440554",
"0.54386014",
"0.542101",
"0.5401776",
"0.53997666",
"0.5389165",
"0.538334",
"0.53640735",
"0.5358523",
"0.53493196",... | 0.5545186 | 8 |
/ renamed from: a | public final void m47527a(Boolean bool) {
C2668g.a(bool, "hasUntouchedMatches");
if (bool.booleanValue() != null) {
this.f38208a.m39626a().showUnreadIndicator();
} else {
this.f38208a.m39626a().hideUnreadIndicator();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed fr... | [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064... | 0.0 | -1 |
/ renamed from: a | public final void m47528a(Throwable th) {
Logger a = this.f38209a.f31773f;
C2668g.a(th, "throwable");
a.error(th, "Error observing untouched matches");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed fr... | [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064... | 0.0 | -1 |
/ renamed from: d | private final void m39625d() {
this.f31769b.add(this.f31770c.execute().subscribeOn(this.f31771d).observeOn(this.f31772e).subscribe(new C11696a(this), new C11697b(this)));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void d() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"public int d()\r\n/* 79: */ {\r\n/* 80:82 */ return this.d;\r\n/* 81: */ }",
"public String d_()\r\n/* 445: */ {\r\n/* 446:459 */ return \"container.inventor... | [
"0.63810617",
"0.616207",
"0.6071929",
"0.59959275",
"0.5877492",
"0.58719957",
"0.5825175",
"0.57585526",
"0.5701679",
"0.5661244",
"0.5651699",
"0.56362265",
"0.562437",
"0.5615328",
"0.56114155",
"0.56114155",
"0.5605659",
"0.56001145",
"0.5589302",
"0.5571578",
"0.5559222... | 0.0 | -1 |
////////////////////////////////////////////// WARNING: DO NOT EDIT THIS FILE OR THE GUI MAY NOT OPEN ////////////////////////////////////////////// Loads and starts the GUI application. | public static void main(String[] args)
{
ScraperWindow.start();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static void initAndShowGUI() {\n }",
"private void startGUI() {\r\n myFrame.setTitle(\"Media Library\");\r\n myFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n myFrame.setLocationByPlatform(true);\r\n myFrame.pack();\r\n\r\n myFrame.setVisible(true);\r\n ... | [
"0.75803936",
"0.7372741",
"0.7347513",
"0.7303264",
"0.7246547",
"0.7221816",
"0.71810836",
"0.71647775",
"0.716283",
"0.71084684",
"0.706131",
"0.70575327",
"0.7050994",
"0.704666",
"0.70415103",
"0.7030223",
"0.7027092",
"0.70129746",
"0.70040816",
"0.7002524",
"0.69875443... | 0.0 | -1 |
Nothing to do here: JPA automatically merges changes on Tx commit | @Override
public void update(Employee employee) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void commitChanges()\n {\n }",
"@Override\n public void commitTx() {\n \n }",
"@Override\n public void commit() {\n }",
"public void forceCommitTx()\n{\n}",
"@Override\n\tpublic void commit() {\n\n\t}",
"@Test\n public void test5() throws Exception {\n String jpql = \"SELE... | [
"0.6884438",
"0.68435144",
"0.6660014",
"0.6629675",
"0.65649056",
"0.6439115",
"0.63964117",
"0.6388358",
"0.63806057",
"0.6350465",
"0.63495225",
"0.63272166",
"0.63088894",
"0.6257584",
"0.6243363",
"0.621156",
"0.6188851",
"0.61769783",
"0.6134022",
"0.61328214",
"0.61292... | 0.0 | -1 |
Subtract min values from rows and columns | private void reduce(){
int min;
//Subtract min value from rows
for (int i = 0; i < rows; i++) {
min = source[i][0];
for (int j = 1; j < cols; j++)
if(source[i][j] < min) min = source[i][j];
for (int j = 0; j < cols; j++)
source[i][j] -= min;
}
//Subtract min value from cols
for (int j = 0; j < cols; j++) {
min = source[0][j];
for (int i = 1; i < rows; i++)
if(source[i][j] < min) min = source[i][j];
for (int i = 0; i < rows; i++)
source[i][j] -= min;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getMinRow();",
"public void minimum()\n\t{\n\t\tfor(int i=0;i<n;i++)\n\t\t{\n\t\t\tif(rowTick[i]==8888)\n\t\t\t{\n\t\t\t\tfor(int j=0;j<n;j++)\n\t\t\t\t{\n\t\t\t\t\tif(columnTick[j]==0)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(cost[i][j]<min)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmin=cost[i][j];\n\t\t\t\t\t\t}\n\t\t\t\t\... | [
"0.67014563",
"0.651673",
"0.647506",
"0.6377629",
"0.6333816",
"0.61669993",
"0.61374533",
"0.6039684",
"0.6030898",
"0.6019531",
"0.6005771",
"0.5977455",
"0.5932076",
"0.5904771",
"0.5900509",
"0.58878636",
"0.58605367",
"0.5824272",
"0.58167547",
"0.58082056",
"0.58076596... | 0.7709638 | 0 |
Get initial match, matching first possible minimal values | private void genInitialMatch(){
for (int i = 0; i < rows; i++)
for (int j = 0; j < cols; j++)
if(source[i][j] == 0 && chosenInRow[i] == -1 && chosenInCol[j] == -1) {
chosenInRow[i] = j;
chosenInCol[j] = i;
break;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public T findMin();",
"public BSTMapNode findMin() \n\t{\n\t\t\n\t\t\n\t\treturn null;\n\t}",
"@Test\n\tpublic void checkAlreadyMinimal() {\n\n\t\tSet<FunctionalDependency> input = set(\n\t\t\t\tnew FunctionalDependency(set(\"A\"), set(\"B\")),\n\t\t\t\tnew FunctionalDependency(set(\"B\"), set(\"C\")),\n\t\t\t... | [
"0.5962198",
"0.58946824",
"0.58788145",
"0.58645654",
"0.5859903",
"0.58455974",
"0.58283067",
"0.5809786",
"0.57658625",
"0.5762083",
"0.572483",
"0.5719608",
"0.5710393",
"0.56596994",
"0.56261",
"0.56053364",
"0.5591819",
"0.5573784",
"0.55523735",
"0.5544503",
"0.5544147... | 0.59608704 | 1 |
Get row index that is not matched yet | private int getUnmatchedRow(){
for (int i = 0; i < rows; i++)
if(chosenInRow[i] < 0) return i;
return -1;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getCurrentRowNumber() throws SQLException {\n/* 174 */ return this.currentPositionInEntireResult + 1;\n/* */ }",
"private int getWidgetIndex(Widget widget){\r\n\t\tint rowCount = table.getRowCount();\r\n\t\tfor(int row = 0; row < rowCount; row++){\r\n\t\t\tif(widget == table.getWidget(row, 0... | [
"0.7168263",
"0.6932265",
"0.68772614",
"0.68045485",
"0.6791177",
"0.6705134",
"0.6639255",
"0.66286385",
"0.66188604",
"0.6541424",
"0.6515616",
"0.6467207",
"0.6453986",
"0.64524764",
"0.63764143",
"0.63455427",
"0.6327214",
"0.632697",
"0.6322632",
"0.6320515",
"0.6312365... | 0.7792088 | 0 |
Recursive method that returns list of cells in the augmented path if it exists, else empty list | private LinkedList<Cell> findAugmentedPath(int row, LinkedList<Cell> head){
LinkedList<Cell> resultPoints = new LinkedList<>();
for (int j = 0; j < cols; j++) {
if(j != chosenInRow[row] && source[row][j] == 0) {
int chosenRowForJ = chosenInCol[j];
if(head.contains(new Cell(chosenRowForJ, j)))
continue;
resultPoints.add(new Cell(row, j));
if(chosenRowForJ < 0)
return resultPoints;
resultPoints.add(new Cell(chosenRowForJ, j));
head.addAll(resultPoints);
LinkedList<Cell> tail = findAugmentedPath(chosenRowForJ, head);
if(tail.isEmpty()) {
resultPoints.remove(resultPoints.getLast());
resultPoints.remove(resultPoints.getLast());
continue;
}
resultPoints.addAll(tail);
return resultPoints;
}
}
return resultPoints;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ArrayList<Integer> findPathList() {\n ArrayList<Integer> pathList = new ArrayList<>();\n for (int i = 0; i < cells.size() ; i++) {\n if (cells.get(i) == CellState.Path) { // PATH -> pathList\n pathList.add(i);\n }\n }\n return pathList;\n }... | [
"0.61985874",
"0.57996655",
"0.5635184",
"0.5546911",
"0.5464445",
"0.5403522",
"0.54020125",
"0.5372141",
"0.5367372",
"0.5338002",
"0.527581",
"0.52712613",
"0.5235931",
"0.5228642",
"0.52201325",
"0.5209167",
"0.51285356",
"0.5124339",
"0.50971407",
"0.50881845",
"0.507971... | 0.64294857 | 0 |
Recursive method that writes values to markedRows and markedCols | private void markRowsAndCols(int row){
if(row < 0)
return;
markedRows[row] = true;
for (int j = 0; j < cols; j++)
if(j != chosenInRow[row] && source[row][j] == 0) {
markedCols[j] = true;
markRowsAndCols(chosenInCol[j]);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void coverRows()\n {\n System.out.println(\".... covering cols...\"+name); \n for (Node i = top.down; i!=top; i=i.down)\n {\n System.out.println(\"iterating vertically at \" + i.rowNum+i.colName());\n i.coverColumnsss();\n //save i;\n //recurse\n //restore i\n //uncover i;\n... | [
"0.6382869",
"0.56614906",
"0.53846574",
"0.53717965",
"0.53568757",
"0.5284058",
"0.526447",
"0.52163285",
"0.51953626",
"0.5166586",
"0.510702",
"0.5047063",
"0.50363785",
"0.49958646",
"0.49930176",
"0.49711806",
"0.49519354",
"0.495005",
"0.49399024",
"0.49159703",
"0.487... | 0.62790495 | 1 |
TODO Autogenerated method stub | @Override
public void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {
BaseData.item = (String[]) adapter.getItem(arg2);
ListIntentActivity.goActivity(ListActivity.this);
} | {
"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 getCount() {
return BaseData.list.size();
} | {
"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 Object getItem(int position) {
return BaseData.list.get(position);
} | {
"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 long getItemId(int position) {
return position;
} | {
"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 View getView(int position, View convertView, ViewGroup parent) {
if (convertView == null) {
convertView = LayoutInflater.from(ListActivity.this).inflate(R.layout.item_list, null);
}
final TextView item = (TextView) convertView.findViewById(R.id.tv_item_list);
item.setText(BaseData.list.get(position)[1]);
item.startAnimation(AnimationUtils.loadAnimation(ListActivity.this, R.anim.push_left_in));
return convertView;
} | {
"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 |
Constructor of the object 'Zoo' | @Override
public void initiateZoo(String name, int width, int height,
Map<String, Specie> species, int age, int monthsPerEvaluation, int horizon)
throws IncorrectDimensionsException, EmptyNameException, IOException {
if (name.trim().equals("")) {
throw new EmptyNameException(
this.option.getZooBundle().getString("EMPTY_NAME"));
} else {
this.name = name;
}
if (width < 1 || height < 1) {
throw new IncorrectDimensionsException(
this.option.getZooBundle().getString("INCORRECT_DIMENSIONS"));
} else {
this.width = width;
this.height = height;
}
paddocks = new TreeMap<>(String.CASE_INSENSITIVE_ORDER);
keepers = new TreeMap<>(String.CASE_INSENSITIVE_ORDER);
this.species = species;
this.age = age;
this.monthsPerEvaluation = monthsPerEvaluation;
this.horizon = horizon;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Zoo() {\n\n zooAnimals = new Vector <Animal> ();\n this.capacity = -1;\n }",
"public Zoo(int inCapacity) {\n if (inCapacity < 1) {\n throw new IllegalArgumentException(\"Error: Invalid Capacity. Must be Int > 0.\");\n }\n zooAnimals = new Vector < Animal > ... | [
"0.7724277",
"0.68948036",
"0.6682259",
"0.64109445",
"0.62788755",
"0.623105",
"0.6230653",
"0.6228583",
"0.61985826",
"0.6163506",
"0.6150897",
"0.6139797",
"0.613801",
"0.61343694",
"0.61243063",
"0.61227083",
"0.612269",
"0.6099021",
"0.60850817",
"0.606895",
"0.60559344"... | 0.6262162 | 5 |
Constructor of the object 'Zoo' | @Override
public void initiateZoo(String name, int width, int height,
Map<String, Specie> species)
throws IncorrectDimensionsException, EmptyNameException, IOException {
if (name.trim().equals("")) {
throw new EmptyNameException(
this.option.getZooBundle().getString("EMPTY_NAME"));
} else {
this.name = name;
}
if (width < 1 || height < 1) {
throw new IncorrectDimensionsException(
this.option.getZooBundle().getString("INCORRECT_DIMENSIONS"));
} else {
this.width = width;
this.height = height;
}
paddocks = new TreeMap<>(String.CASE_INSENSITIVE_ORDER);
keepers = new TreeMap<>(String.CASE_INSENSITIVE_ORDER);
this.species = species;
this.age = this.initAge;
this.monthsPerEvaluation = initMonthsPerEvaluation;
this.horizon = initHorizon;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Zoo() {\n\n zooAnimals = new Vector <Animal> ();\n this.capacity = -1;\n }",
"public Zoo(int inCapacity) {\n if (inCapacity < 1) {\n throw new IllegalArgumentException(\"Error: Invalid Capacity. Must be Int > 0.\");\n }\n zooAnimals = new Vector < Animal > ... | [
"0.7724277",
"0.68948036",
"0.6682259",
"0.64109445",
"0.62788755",
"0.6262162",
"0.6230653",
"0.6228583",
"0.61985826",
"0.6163506",
"0.6150897",
"0.6139797",
"0.613801",
"0.61343694",
"0.61243063",
"0.61227083",
"0.612269",
"0.6099021",
"0.60850817",
"0.606895",
"0.60559344... | 0.623105 | 6 |
Method used to add a paddock to the zoo | @Override
public void addPaddock(String paddockName, int x, int y, int width, int height)
throws AlreadyUsedNameException, IncorrectDimensionsException,
EmptyNameException, NameException {
PaddockCoordinates coor = new PaddockCoordinates(x, y, width, height);
checkEmplacement(coor);
List<IPaddock> neightbourhood = new ArrayList<>();
PaddockCoordinates coorNeightbourhood = coor.getNeightbourhoodCoordinates(this.horizon);
IPaddock tmp;
for (Map.Entry<String, IPaddock> entry : paddocks.entrySet()) {
tmp = checkNeightbourhood(entry, coor, coorNeightbourhood);
if (tmp != null) {
neightbourhood.add(tmp);
}
}
IPaddock paddock = new PaddockBuilder().name(paddockName)
.coordinates(coor)
.option(option)
.buildPaddock();
IPaddock success = this.paddocks.putIfAbsent(paddockName, paddock);
if (success == null) {
reactualizeNeightbourhoods(paddock, neightbourhood);
} else {
throw new AlreadyUsedNameException(
this.option.getPaddockBundle()
.getString("ALREADY_USED_NAME"));
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void addPoint(Point pon)\n {\n poly[size] = pon;\n size++;\n }",
"public void addPoints(int addP){\n this.points += addP;\n }",
"public void addPoint() {\n points += 1;\n }",
"public void addPoint(double x, double y, double z);",
"void addPounce(Long pouncee, ... | [
"0.57249993",
"0.55858004",
"0.5497899",
"0.5497213",
"0.5444952",
"0.541316",
"0.53990215",
"0.53968465",
"0.5387064",
"0.53646296",
"0.5294509",
"0.52835953",
"0.5281031",
"0.5239408",
"0.5206628",
"0.5184873",
"0.51785874",
"0.5158138",
"0.5157399",
"0.51560634",
"0.513154... | 0.55987674 | 1 |
Method used to find a paddock by its name | @Override
public IPaddock findPaddockByName(String name) throws UnknownNameException,
EmptyNameException {
if (name.trim().equals("")) {
throw new EmptyNameException(
this.option.getPaddockBundle().getString("EMPTY_NAME_PADDOCK"));
}
if (paddocks.containsKey(name)) {
return paddocks.get(name);
}
throw new UnknownNameException(
this.option.getPaddockBundle().getString("UNKNOWN_PADDOCK"));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Object find(String name);",
"private Shape find(String name, ArrayList<Shape> listShapes, ArrayList<Command> commands) {\r\n for (Shape shape : listShapes) {\r\n if (shape.getName().equals(name)) {\r\n return shape;\r\n }\r\n }\r\n throw new IllegalArgumentException(\"Cannot find shape... | [
"0.63199985",
"0.63140774",
"0.6236886",
"0.61845446",
"0.5982651",
"0.59012854",
"0.58837515",
"0.5794596",
"0.5779531",
"0.5766714",
"0.5729914",
"0.56854904",
"0.5641476",
"0.56338435",
"0.5590536",
"0.5583339",
"0.55646884",
"0.5504783",
"0.5486757",
"0.5481268",
"0.54701... | 0.73991 | 0 |
Method used to know if a paddock can be placed into the zoo without looking for the others paddocks | private boolean tooSmallforThisPaddock(PaddockCoordinates coor) {
return ((coor.getX() + coor.getWidth() > this.width)
|| (coor.getY() + coor.getHeight() > this.height));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isPlaceable() {\n\t\tlong now = Calendar.getInstance().getTimeInMillis();\t\t\n\t\treturn now - createTime >= placeableThreshold && \n\t\t\t\tnow - focusTime >= placeableThreshold;\n\t}",
"boolean hasHasZCoordinate();",
"private boolean checkInsideZone() {\n for (Zone z : shiftZones) {\n ... | [
"0.61680114",
"0.61493003",
"0.6113275",
"0.609782",
"0.60831463",
"0.6076323",
"0.6076323",
"0.6063764",
"0.60587853",
"0.60587853",
"0.600449",
"0.58735806",
"0.5864008",
"0.5829073",
"0.58264214",
"0.57877016",
"0.57836354",
"0.57676965",
"0.5753058",
"0.5736967",
"0.57340... | 0.5803173 | 15 |
Access to the fields only the the friend class | @Override
public String getName(TutorialPlayImpl_1.FriendScenario friend) {
friend.hashCode();
return this.name;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Set<Field> getFields() {\r\n \t\t// We will only consider private fields in the declared class\r\n \t\tif (forceAccess)\r\n \t\t\treturn setUnion(source.getDeclaredFields(), source.getFields());\r\n \t\telse\r\n \t\t\treturn setUnion(source.getFields());\r\n \t}",
"public List<ResolvedFieldDeclaration> ge... | [
"0.62208605",
"0.62089217",
"0.60708624",
"0.5841324",
"0.57328063",
"0.57317615",
"0.5711607",
"0.56789494",
"0.55095476",
"0.5482802",
"0.5470463",
"0.54487336",
"0.543536",
"0.53862464",
"0.5362548",
"0.53606546",
"0.53175074",
"0.52956486",
"0.52884704",
"0.52844745",
"0.... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void doCollision(CollisionResult c) {
} | {
"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 getTeam() {
return 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void setTeam(int 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 |
Instantiates a new abstract product search criteria. | public AbstractProductSearchCriteria(final String searchType, final String storeName, final String keyWord,
final String category) {
super();
setSearchType(searchType);
setStoreName(storeName);
this.keyWord = keyWord;
this.category = category;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public CrkProductExample() {\r\n oredCriteria = new ArrayList<Criteria>();\r\n }",
"public InstanciaProductoExample() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"public ProductIndexQuery() {\n\t}",
"public AbstractSearchEngine() {}",
"public TbProductOperatorExample() {\n ... | [
"0.6918266",
"0.6876193",
"0.65517384",
"0.6459371",
"0.64482063",
"0.6407236",
"0.61844635",
"0.6118388",
"0.609468",
"0.60680526",
"0.6063954",
"0.6063954",
"0.5996382",
"0.59684634",
"0.59530556",
"0.5942045",
"0.59384453",
"0.58637667",
"0.58636993",
"0.58253103",
"0.5825... | 0.6045743 | 12 |
Gets the search type search, browse/categories (for category search), browse/products (for nthlevel category search). | public String getSearchType() {
return searchType;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getSearchType()\r\n\t{\r\n\t\treturn searchType;\r\n\t}",
"public SearchType getSearchType() {\n\t\treturn searchType;\n\t}",
"Search getSearch();",
"public String getSearchClass() {\r\n return searchClass;\r\n }",
"public static String getType() {\n SharedPreferences sp = Prefe... | [
"0.72321814",
"0.68841976",
"0.64924467",
"0.6392145",
"0.6042515",
"0.60314125",
"0.58272994",
"0.57549953",
"0.5753981",
"0.57272524",
"0.5720582",
"0.5716649",
"0.5662806",
"0.56371325",
"0.562155",
"0.5620826",
"0.56017315",
"0.56009203",
"0.5577897",
"0.55656683",
"0.551... | 0.7141754 | 2 |
Sets the search type search, browse/categories (for category search), browse/products (for nthlevel category search). | public void setSearchType(final String searchType) {
if (searchType == null || !searchType.equals(Constants.SEARCH_TYPE_CAT)
&& !searchType.equals(Constants.SEARCH_TYPE_KY_WD) && !searchType.equals(Constants.SEARCH_TYPE_PRD)) {
throw new IllegalArgumentException("Invalid value of Search Type: " + searchType);
}
this.searchType = searchType;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setSearchType(final int searchType)\r\n\t{\r\n\t\tthis.searchType = searchType;\r\n\t}",
"public void setTypeFilter(String typeFilter)\r\n\t{\r\n\t\tif ((this.pageBackingBean.getCurrentUser() != null && this.pageBackingBean.getCurrentUser().isActive())\r\n\t\t || this.settingEjb.getBooleanSett... | [
"0.75594634",
"0.6907415",
"0.68550885",
"0.68550885",
"0.66210395",
"0.65675026",
"0.6467787",
"0.63571113",
"0.63072854",
"0.6282708",
"0.6098078",
"0.60679966",
"0.60171604",
"0.5991844",
"0.59871125",
"0.58835024",
"0.58688056",
"0.58324534",
"0.58299834",
"0.575865",
"0.... | 0.7060296 | 1 |
Gets the store name Sears/Kmart. | public String getStoreName() {
return storeName;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getStoreName() {\n return (String) get(\"store_name\");\n }",
"public String getStoreName() {\r\n return storeName;\r\n }",
"public String getStore_name()\n {\n \treturn store_name;\n }",
"public String getStoreName() {\n return storeName;\n }",
"public ... | [
"0.8091691",
"0.7852121",
"0.7812657",
"0.7809629",
"0.76967514",
"0.73553246",
"0.70216453",
"0.68714565",
"0.68205893",
"0.6659109",
"0.65166545",
"0.6502748",
"0.6415302",
"0.6408243",
"0.6378415",
"0.6326821",
"0.6188144",
"0.61586356",
"0.6140842",
"0.613516",
"0.6099859... | 0.77673906 | 4 |
Sets the store name Sears/Kmart. | public void setStoreName(final String storeName) {
if (storeName == null || !storeName.equals(Constants.STORE_NAME_KMRT)
&& !storeName.equals(Constants.STORE_NAME_SRS)) {
throw new IllegalArgumentException("Invalid value of Store Name: " + storeName);
}
this.storeName = storeName;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setStoreName(String storeName) {\r\n this.storeName = storeName;\r\n }",
"public void setStoreName(String storeName) {\n this.storeName = storeName;\n }",
"public void setStoreName(String storeName) {\n\t\tthis.storeName = storeName;\n\t}",
"protected void setStore(String stor... | [
"0.75770605",
"0.7483843",
"0.72509396",
"0.7108666",
"0.67852426",
"0.668662",
"0.6609007",
"0.66077894",
"0.65664464",
"0.6532258",
"0.6388432",
"0.6367652",
"0.62624836",
"0.6245664",
"0.62405056",
"0.6139808",
"0.611953",
"0.60742927",
"0.60695744",
"0.60184306",
"0.59666... | 0.73573697 | 2 |
Gets the sort by field sorts product results. | public ProductSearchSortBy getSortBy() {
return sortBy;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public LSPSortByField[] getSortByFields () {\r\n return sortByFields;\r\n }",
"public ArrayList<SortingRule> get_sort_by() {\n\t\treturn sort_by;\n\t}",
"String getSortColumn();",
"public final String getSortBy() {\n return this.sortBy;\n }",
"java.lang.String getOrderBy();",
"public ja... | [
"0.6873528",
"0.6705938",
"0.6616532",
"0.6498272",
"0.6468311",
"0.63300896",
"0.63150203",
"0.6301812",
"0.62410855",
"0.6197579",
"0.61243516",
"0.6115126",
"0.6097424",
"0.59802675",
"0.596697",
"0.591017",
"0.5894014",
"0.5888427",
"0.5828308",
"0.58104324",
"0.58104324"... | 0.6946181 | 0 |
Sets the sort by field sorts product results. | public void setSortBy(final ProductSearchSortBy sortBy) {
this.sortBy = sortBy;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setSortby(String sortby) {\n\t\tparameters.put(\"sortby\", sortby);\n\t}",
"public ProductSearchSortBy getSortBy() {\r\n\t\treturn sortBy;\r\n\t}",
"public void set_sort(String column) {\n\t\tset_sort(column,\"\");\n\t}",
"public void setSortByFields (LSPSortByField[] sortByFields) {\r\n thi... | [
"0.7018863",
"0.65206105",
"0.63177305",
"0.6308445",
"0.61992294",
"0.61369336",
"0.6065648",
"0.60535324",
"0.6019031",
"0.5956096",
"0.5934256",
"0.59288895",
"0.5920773",
"0.5920731",
"0.58972573",
"0.5896342",
"0.589599",
"0.58739406",
"0.5870298",
"0.5867921",
"0.586792... | 0.70154315 | 1 |
Gets the this parameter is a unique number which defines the search group details such as the searchType and category. | public String getCatGroupId() {
return catGroupId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public long getGroup()\r\n { return group; }",
"public int getIdGroup() {\n return idGroup;\n }",
"public int getGroup() {\n return group;\n }",
"public Long getGroup_id() {\n return group_id;\n }",
"public String getSGroupID() {\n return sGroupID;\n }",
"publ... | [
"0.6120367",
"0.60155267",
"0.5940648",
"0.58365846",
"0.5741881",
"0.5712686",
"0.5694322",
"0.5694322",
"0.56775177",
"0.5675354",
"0.5667998",
"0.56670696",
"0.5661351",
"0.5641549",
"0.5632919",
"0.5623752",
"0.5608845",
"0.56055284",
"0.56055284",
"0.56055284",
"0.560487... | 0.0 | -1 |
Sets the this parameter is a unique number which defines the search group details such as the searchType and category. | public void setCatGroupId(final String catGroupId) {
this.catGroupId = catGroupId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setSearchId(int searchId) {\r\n\t\t\r\n\t\tthis.searchIds = new int[ 1 ];\r\n\t\t\r\n\t\tthis.searchIds[ 0 ] = searchId;\r\n\t\t\r\n\t}",
"private void setGroupIndex(int value) {\n bitField0_ |= 0x00000001;\n groupIndex_ = value;\n }",
"public void setGroupID(Long newGroupID)\n ... | [
"0.57783884",
"0.56945413",
"0.55165344",
"0.547454",
"0.5399669",
"0.53915",
"0.5351226",
"0.5321913",
"0.52748644",
"0.52737767",
"0.52643275",
"0.524355",
"0.5232359",
"0.5195072",
"0.5187965",
"0.5187758",
"0.5178856",
"0.5152102",
"0.5144929",
"0.5138261",
"0.5131273",
... | 0.0 | -1 |
Gets the start Index of the products. | public int getStartIndex() {
return startIndex;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public final int getStartIndex() {\n\t\treturn startIndex;\n\t}",
"public int getStartIndex() {\n return startIndex;\n }",
"public int getStartIndex() {\n\t\treturn startIndex;\n\t}",
"public int getStartIdx() {\n return this.startIdx;\n }",
"public int getStartIndex() {\n return... | [
"0.6940876",
"0.68677616",
"0.68349797",
"0.6768355",
"0.67612004",
"0.67612004",
"0.67419803",
"0.67173874",
"0.6577397",
"0.6552458",
"0.6548698",
"0.65172225",
"0.65154636",
"0.64843947",
"0.64636934",
"0.6460402",
"0.64465445",
"0.6350538",
"0.6332476",
"0.63304734",
"0.6... | 0.68473107 | 2 |
Sets the start Index of the products. | public void setStartIndex(final int startIndex) {
this.startIndex = startIndex;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setStartIndex(int startIndex) {\n this.startIndex = startIndex;\n }",
"public void setStartIndex(java.math.BigInteger startIndex)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n targe... | [
"0.7270117",
"0.7171152",
"0.7148473",
"0.7144658",
"0.70137274",
"0.6688171",
"0.66466355",
"0.661496",
"0.65926653",
"0.64444804",
"0.61664903",
"0.6072542",
"0.6058249",
"0.6051476",
"0.5966143",
"0.5926488",
"0.59199953",
"0.58945036",
"0.5871171",
"0.5870865",
"0.5867077... | 0.7036887 | 4 |
Gets the end index of the products. | public int getEndIndex() {
return endIndex;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getEndIndex() {\n return this.endIndex;\n }",
"public abstract int getEndIndex();",
"public int getEndIndex() {\n return start + length - 1;\n }",
"public int getEndIdx() {\n return this.endIdx;\n }",
"public int getEnd() {\r\n\t\treturn this.offset + this.numResults;\r\n... | [
"0.7130023",
"0.6997501",
"0.696552",
"0.6872211",
"0.6768745",
"0.67359203",
"0.65641063",
"0.6355906",
"0.6342816",
"0.6334477",
"0.6326671",
"0.6313673",
"0.62945265",
"0.62903184",
"0.62820476",
"0.62586117",
"0.62549955",
"0.62322176",
"0.6192377",
"0.61177397",
"0.60865... | 0.6843827 | 4 |
Sets the end index of the products. | public void setEndIndex(final int endIndex) {
this.endIndex = endIndex;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setEnd(int end) {\r\n this.end = end;\r\n }",
"public void setEnd(int end) {\n\t\tthis.end = end;\n\t}",
"public void setEnd(int end)\n {\n if(end >= 0)\n {\n this.end = end;\n }\n else\n {\n System.out.println(\"Cannot be negati... | [
"0.6690686",
"0.6645223",
"0.60386175",
"0.599364",
"0.5913597",
"0.588203",
"0.57927465",
"0.57453895",
"0.57211393",
"0.56859845",
"0.56580716",
"0.56570685",
"0.56358737",
"0.5567228",
"0.5565377",
"0.55396175",
"0.5518288",
"0.55174625",
"0.5489833",
"0.547475",
"0.547436... | 0.6712643 | 0 |
Gets the used to filter results to return only specific information from the API. | public String getCustomData() {
return customData;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"List<JSONObject> getFilteredItems();",
"@Override\n public Filter getFilter() {\n return main_list_filter;\n }",
"public List<SensorResponse> getFilteredList(){\n return filteredList;\n }",
"@Override\n public Filter getFilter() {\n return new Filter() {\n @Overrid... | [
"0.61186546",
"0.59880054",
"0.5845196",
"0.58316576",
"0.5825691",
"0.5759429",
"0.5621185",
"0.55721956",
"0.55712515",
"0.5547418",
"0.5512661",
"0.5510817",
"0.546634",
"0.5406031",
"0.5402337",
"0.53839076",
"0.53509665",
"0.53332406",
"0.53280693",
"0.53215146",
"0.5304... | 0.0 | -1 |
Sets the used to filter results to return only specific information from the API. | public void setCustomData(final String customData) {
this.customData = customData;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setFilteringResults(Map<String, Boolean> filteringResults) {\n this.filteringResults = filteringResults;\n }",
"public void setFiltered(boolean filtered) {\n this.filtered = filtered;\n }",
"@Override\n public boolean shouldFilter() {\n return true;\n }",
"@Overri... | [
"0.6475942",
"0.64066947",
"0.607376",
"0.6070592",
"0.6043788",
"0.5965278",
"0.59405345",
"0.5901105",
"0.5746464",
"0.5737952",
"0.5723427",
"0.57165945",
"0.5679805",
"0.56254894",
"0.5587731",
"0.5566428",
"0.5562197",
"0.5531902",
"0.5530285",
"0.5521121",
"0.5482943",
... | 0.0 | -1 |
Set the default command for a subsystem here. setDefaultCommand(new MySpecialCommand()); | public void initDefaultCommand() {
setDefaultCommand(new JoystickLiftCommand());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void initDefaultCommand() {\n // Set the default command for a subsystem here.\n // setDefaultCommand(new MySpecialCommand());\n }",
"@Override\n public void initDefaultCommand() {\n // Set the default command for a subsystem here.\n // setDefaultCommand(new MySpecialCommand());... | [
"0.9324386",
"0.9324386",
"0.9177247",
"0.9145448",
"0.91201425",
"0.91201174",
"0.91201174",
"0.91201174",
"0.91201174",
"0.9078334",
"0.9056373",
"0.89597934",
"0.8956566",
"0.8866175",
"0.87965876",
"0.8681946",
"0.8648224",
"0.8646113",
"0.8577719",
"0.8416244",
"0.840219... | 0.76640373 | 54 |
TODO Autogenerated method stub | @Override
public void keyPressed(java.awt.event.KeyEvent arg0) {
} | {
"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 keyReleased(java.awt.event.KeyEvent arg0) {
} | {
"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 |
txtHaber.setEventDispatcher(haber); txtDebe.addKeyListener(this); //y aqui esta lo importante, le decimos que nuestro textbox q va a escuchar el teclado | public void init() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void tb_TomasRealizadasKeyPressed(java.awt.event.KeyEvent evt) {\n \n \n }",
"private void txtNamaKeyPressed(java.awt.event.KeyEvent evt) {\n\n }",
"private void txtMensajeKeyReleased(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jTextFieldMensajeKeyReleased\n letras();\n ... | [
"0.71486926",
"0.71353835",
"0.6990996",
"0.6768771",
"0.67153364",
"0.67006737",
"0.6661462",
"0.6660154",
"0.66180557",
"0.66154134",
"0.66127276",
"0.65975857",
"0.65680546",
"0.6549318",
"0.6544417",
"0.6524111",
"0.65176684",
"0.6505036",
"0.64774185",
"0.64699364",
"0.6... | 0.0 | -1 |
int keyCode = e.getKeyCode(); //obtenemos el codigo de la tecla String keyText = e.getKeyText(keyCode); //luego el caracter txtDebe1.setText(keyText); //lo pintamos en el campo de texto de abajo | protected void displayInfo(KeyEvent e){
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void keyPressed(KeyEvent e){\n \n JTextField tec = new JTextField();\n char teclado = e.getKeyChar();\n String tecla = \"\"+teclado;\n tec.setText(tecla);\n tec.setBounds(400, 300, 20, 20);\n add(tec);\n ... | [
"0.7934584",
"0.787636",
"0.7866924",
"0.7463113",
"0.73885256",
"0.7270639",
"0.71895945",
"0.7188335",
"0.70461386",
"0.70127654",
"0.70100504",
"0.6914916",
"0.68962365",
"0.68558073",
"0.6818255",
"0.67800546",
"0.67579645",
"0.6751076",
"0.67379385",
"0.6722593",
"0.6715... | 0.0 | -1 |
This interface specifies a Validator that can used for validation of results. Based on what is required to be validated the RCAIT framework will call one of the check methods with the latest data from the current iteration. | public interface IValidator {
/**
* Based on what is required to be validated,
*
* @param response The REST response returns JSONElement.
* @return By default, return false. Implementations returns true, if this matches expectation.
*/
default boolean checkJsonResp(JsonElement response) {
return false;
}
/**
* Based on what is required to be validated,
*
* @param object On querying the db returns an object of the required class.
* @return By default, return false. Implementations returns true, if this matches expectation.
*/
default boolean checkDbObj(Object object) {
return false;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface IValidator {\n\n\tvoid validate(Version version);\n\t\n\tboolean matchProblems(Problem validationErrorA, Problem validationErrorB);\n\t\n\tEObject getContextElement(Problem validationError);\n}",
"public interface ValidatorResult {\n\n\tpublic void addError(String error);\n\n\tpublic List<String... | [
"0.661557",
"0.6427003",
"0.62830627",
"0.6182229",
"0.61788726",
"0.61714906",
"0.61237305",
"0.6074275",
"0.6034112",
"0.59930515",
"0.5955677",
"0.591649",
"0.59091544",
"0.5905066",
"0.5893597",
"0.5831312",
"0.58284515",
"0.58216625",
"0.5819711",
"0.5819711",
"0.5819711... | 0.6125577 | 6 |
Based on what is required to be validated, | default boolean checkJsonResp(JsonElement response) {
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setupRequiredValidation() {\n requiredMafExpressions.put(FIELD_HUGO_SYMBOL, Pattern.compile(\"\\\\S+\"));\r\n requiredFieldDescriptions.put(FIELD_HUGO_SYMBOL, \"may not be blank\");\r\n requiredMafExpressions.put(FIELD_ENTREZ_GENE_ID, Pattern.compile(\"\\\\d+\")); // number\r\n ... | [
"0.7188602",
"0.70410895",
"0.70111257",
"0.7008652",
"0.6975813",
"0.6903971",
"0.6868283",
"0.68450314",
"0.6833443",
"0.6814269",
"0.676962",
"0.676962",
"0.676962",
"0.67410284",
"0.67386323",
"0.67101777",
"0.6701144",
"0.6673425",
"0.6658445",
"0.6611981",
"0.65995",
... | 0.0 | -1 |
Based on what is required to be validated, | default boolean checkDbObj(Object object) {
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setupRequiredValidation() {\n requiredMafExpressions.put(FIELD_HUGO_SYMBOL, Pattern.compile(\"\\\\S+\"));\r\n requiredFieldDescriptions.put(FIELD_HUGO_SYMBOL, \"may not be blank\");\r\n requiredMafExpressions.put(FIELD_ENTREZ_GENE_ID, Pattern.compile(\"\\\\d+\")); // number\r\n ... | [
"0.7188602",
"0.70410895",
"0.70111257",
"0.7008652",
"0.6975813",
"0.6903971",
"0.6868283",
"0.68450314",
"0.6833443",
"0.6814269",
"0.676962",
"0.676962",
"0.676962",
"0.67410284",
"0.67386323",
"0.67101777",
"0.6701144",
"0.6673425",
"0.6658445",
"0.6611981",
"0.65995",
... | 0.0 | -1 |
/ renamed from: a | public static Bundle m6388a(UUID uuid, ShareContent shareContent, boolean z) {
C1749x.m6064a((Object) shareContent, "shareContent");
C1749x.m6064a((Object) uuid, "callId");
if (shareContent instanceof ShareLinkContent) {
return C1833f.m6380a((ShareLinkContent) shareContent, z);
}
if (shareContent instanceof SharePhotoContent) {
SharePhotoContent sharePhotoContent = (SharePhotoContent) shareContent;
return C1833f.m6386a(sharePhotoContent, C1838i.m6462a(sharePhotoContent, uuid), z);
} else if (shareContent instanceof ShareVideoContent) {
ShareVideoContent shareVideoContent = (ShareVideoContent) shareContent;
return C1833f.m6387a(shareVideoContent, C1838i.m6460a(shareVideoContent, uuid), z);
} else if (shareContent instanceof ShareOpenGraphContent) {
ShareOpenGraphContent shareOpenGraphContent = (ShareOpenGraphContent) shareContent;
try {
return C1833f.m6385a(shareOpenGraphContent, C1838i.m6466a(C1838i.m6465a(uuid, shareOpenGraphContent), false), z);
} catch (UUID uuid2) {
z = new StringBuilder();
z.append("Unable to create a JSON Object from the provided ShareOpenGraphContent: ");
z.append(uuid2.getMessage());
throw new FacebookException(z.toString());
}
} else if (shareContent instanceof ShareMediaContent) {
ShareMediaContent shareMediaContent = (ShareMediaContent) shareContent;
return C1833f.m6381a(shareMediaContent, C1838i.m6461a(shareMediaContent, uuid2), z);
} else if (shareContent instanceof ShareCameraEffectContent) {
ShareCameraEffectContent shareCameraEffectContent = (ShareCameraEffectContent) shareContent;
return C1833f.m6378a(shareCameraEffectContent, C1838i.m6450a(shareCameraEffectContent, uuid2), z);
} else if ((shareContent instanceof ShareMessengerGenericTemplateContent) != null) {
return C1833f.m6382a((ShareMessengerGenericTemplateContent) shareContent, z);
} else {
if ((shareContent instanceof ShareMessengerOpenGraphMusicTemplateContent) != null) {
return C1833f.m6384a((ShareMessengerOpenGraphMusicTemplateContent) shareContent, z);
}
return (shareContent instanceof ShareMessengerMediaTemplateContent) != null ? C1833f.m6383a((ShareMessengerMediaTemplateContent) shareContent, z) : null;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed fr... | [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064... | 0.0 | -1 |
/ renamed from: a | private static Bundle m6378a(ShareCameraEffectContent shareCameraEffectContent, Bundle bundle, boolean z) {
Bundle a = C1833f.m6379a((ShareContent) shareCameraEffectContent, z);
Utility.m5772a(a, "effect_id", shareCameraEffectContent.getEffectId());
if (bundle != null) {
a.putBundle("effect_textures", bundle);
}
try {
shareCameraEffectContent = CameraEffectJSONUtility.m6260a(shareCameraEffectContent.getArguments());
if (shareCameraEffectContent != null) {
Utility.m5772a(a, "effect_arguments", shareCameraEffectContent.toString());
}
return a;
} catch (ShareCameraEffectContent shareCameraEffectContent2) {
z = new StringBuilder();
z.append("Unable to create a JSON Object from the provided CameraEffectArguments: ");
z.append(shareCameraEffectContent2.getMessage());
throw new FacebookException(z.toString());
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed fr... | [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064... | 0.0 | -1 |
/ renamed from: a | private static Bundle m6380a(ShareLinkContent shareLinkContent, boolean z) {
Bundle a = C1833f.m6379a((ShareContent) shareLinkContent, z);
Utility.m5772a(a, "TITLE", shareLinkContent.getContentTitle());
Utility.m5772a(a, "DESCRIPTION", shareLinkContent.getContentDescription());
Utility.m5771a(a, "IMAGE", shareLinkContent.getImageUrl());
Utility.m5772a(a, "QUOTE", shareLinkContent.getQuote());
Utility.m5771a(a, "MESSENGER_LINK", shareLinkContent.getContentUrl());
Utility.m5771a(a, "TARGET_DISPLAY", shareLinkContent.getContentUrl());
return a;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed fr... | [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064... | 0.0 | -1 |
/ renamed from: a | private static Bundle m6386a(SharePhotoContent sharePhotoContent, List<String> list, boolean z) {
sharePhotoContent = C1833f.m6379a((ShareContent) sharePhotoContent, z);
sharePhotoContent.putStringArrayList("PHOTOS", new ArrayList(list));
return sharePhotoContent;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed fr... | [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064... | 0.0 | -1 |
/ renamed from: a | private static Bundle m6387a(ShareVideoContent shareVideoContent, String str, boolean z) {
Bundle a = C1833f.m6379a((ShareContent) shareVideoContent, z);
Utility.m5772a(a, "TITLE", shareVideoContent.getContentTitle());
Utility.m5772a(a, "DESCRIPTION", shareVideoContent.getContentDescription());
Utility.m5772a(a, "VIDEO", str);
return a;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed fr... | [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064... | 0.0 | -1 |
/ renamed from: a | private static Bundle m6381a(ShareMediaContent shareMediaContent, List<Bundle> list, boolean z) {
shareMediaContent = C1833f.m6379a((ShareContent) shareMediaContent, z);
shareMediaContent.putParcelableArrayList("MEDIA", new ArrayList(list));
return shareMediaContent;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed fr... | [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064... | 0.0 | -1 |
/ renamed from: a | private static Bundle m6385a(ShareOpenGraphContent shareOpenGraphContent, JSONObject jSONObject, boolean z) {
Bundle a = C1833f.m6379a((ShareContent) shareOpenGraphContent, z);
Utility.m5772a(a, "PREVIEW_PROPERTY_NAME", (String) C1838i.m6451a(shareOpenGraphContent.getPreviewPropertyName()).second);
Utility.m5772a(a, "ACTION_TYPE", shareOpenGraphContent.getAction().getActionType());
Utility.m5772a(a, "ACTION", jSONObject.toString());
return a;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed fr... | [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064... | 0.0 | -1 |
/ renamed from: a | private static Bundle m6382a(ShareMessengerGenericTemplateContent shareMessengerGenericTemplateContent, boolean z) {
Bundle a = C1833f.m6379a((ShareContent) shareMessengerGenericTemplateContent, z);
try {
C1832e.m6369a(a, shareMessengerGenericTemplateContent);
return a;
} catch (ShareMessengerGenericTemplateContent shareMessengerGenericTemplateContent2) {
StringBuilder stringBuilder = new StringBuilder();
stringBuilder.append("Unable to create a JSON Object from the provided ShareMessengerGenericTemplateContent: ");
stringBuilder.append(shareMessengerGenericTemplateContent2.getMessage());
throw new FacebookException(stringBuilder.toString());
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed fr... | [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064... | 0.0 | -1 |
/ renamed from: a | private static Bundle m6384a(ShareMessengerOpenGraphMusicTemplateContent shareMessengerOpenGraphMusicTemplateContent, boolean z) {
Bundle a = C1833f.m6379a((ShareContent) shareMessengerOpenGraphMusicTemplateContent, z);
try {
C1832e.m6372a(a, shareMessengerOpenGraphMusicTemplateContent);
return a;
} catch (ShareMessengerOpenGraphMusicTemplateContent shareMessengerOpenGraphMusicTemplateContent2) {
StringBuilder stringBuilder = new StringBuilder();
stringBuilder.append("Unable to create a JSON Object from the provided ShareMessengerOpenGraphMusicTemplateContent: ");
stringBuilder.append(shareMessengerOpenGraphMusicTemplateContent2.getMessage());
throw new FacebookException(stringBuilder.toString());
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed fr... | [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064... | 0.0 | -1 |
/ renamed from: a | private static Bundle m6383a(ShareMessengerMediaTemplateContent shareMessengerMediaTemplateContent, boolean z) {
Bundle a = C1833f.m6379a((ShareContent) shareMessengerMediaTemplateContent, z);
try {
C1832e.m6371a(a, shareMessengerMediaTemplateContent);
return a;
} catch (ShareMessengerMediaTemplateContent shareMessengerMediaTemplateContent2) {
StringBuilder stringBuilder = new StringBuilder();
stringBuilder.append("Unable to create a JSON Object from the provided ShareMessengerMediaTemplateContent: ");
stringBuilder.append(shareMessengerMediaTemplateContent2.getMessage());
throw new FacebookException(stringBuilder.toString());
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed fr... | [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064... | 0.0 | -1 |
/ renamed from: a | private static Bundle m6379a(ShareContent shareContent, boolean z) {
Bundle bundle = new Bundle();
Utility.m5771a(bundle, "LINK", shareContent.getContentUrl());
Utility.m5772a(bundle, "PLACE", shareContent.getPlaceId());
Utility.m5772a(bundle, "PAGE", shareContent.getPageId());
Utility.m5772a(bundle, "REF", shareContent.getRef());
bundle.putBoolean("DATA_FAILURES_FATAL", z);
Collection peopleIds = shareContent.getPeopleIds();
if (!Utility.m5786a(peopleIds)) {
bundle.putStringArrayList(Sticker.FRIENDS_CAPABILITY, new ArrayList(peopleIds));
}
shareContent = shareContent.getShareHashtag();
if (shareContent != null) {
Utility.m5772a(bundle, "HASHTAG", shareContent.getHashtag());
}
return bundle;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed fr... | [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064... | 0.0 | -1 |
super.onPostExecute(result); mArrayAdapter.setItemList(result); Intent intent = new Intent (getApplicationContext(), CreatedQuizFragment.class); startActivity(intent); | @Override
protected void onPostExecute(HttpResponse response) {
Log.d("MUTIBO", "TaskDeleteQuiz::onPostExecute Status: " + response.getStatusLine());
Intent intent = new Intent();
intent.putExtra("Quiz", createdQuiz);
intent.putExtra("deleted", true);
setResult(Activity.RESULT_OK, intent);
Log.d("MUTIBO", "TaskDeleteQuiz::onPostExecute Successfully deleted quiz");
// Intent intent = new Intent("deleted-quiz");
// intent.putExtra("deletedQuiz", quiz);
// Log.d("MUTIBO", "TaskDeleteQuiz::onPostExecute Broadcasting event: 'd-player'");
// LocalBroadcastManager.getInstance(this).sendBroadcast(intent);
finish();
return;
//Boolean res = response.getStatusLine().getStatusCode() == 200;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void onPostExecute(Long result) {\n\t\t\t USCG_QuestionsActivity.this.setContentView(R.layout.activity_uscg__questions);\r\n\t\t // Show the question and answers\r\n\t\t\t showQuesAndAnswers();\r\n\t\t }",
"@Override\n protected void onPostExecute(Void args) {\n mProgressDi... | [
"0.7363057",
"0.7336541",
"0.73359585",
"0.7324556",
"0.7232891",
"0.72188795",
"0.7198801",
"0.71554005",
"0.71411294",
"0.713776",
"0.71178377",
"0.7111594",
"0.71037334",
"0.70833254",
"0.70465827",
"0.70465827",
"0.7041431",
"0.6986815",
"0.69517523",
"0.69517523",
"0.694... | 0.6485449 | 76 |
This method was generated by MyBatis Generator. This method corresponds to the database table private_message | long countByExample(PrivateMessageExample example); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"List<PrivateMessage> selectByExample(PrivateMessageExample example);",
"public QlikMessageDto insertMessageInDatabase(String message) {\r\n\t\tQlikMessageDto qlikMessage = null;\r\n\r\n\t\tlong insertedRowId = 0;\r\n\r\n\t\ttry {\r\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\r\n\r\n\t\t\tConnection conn = D... | [
"0.6046245",
"0.57259613",
"0.5723688",
"0.5689126",
"0.5677569",
"0.5634554",
"0.5584847",
"0.549018",
"0.54256207",
"0.54144937",
"0.5361806",
"0.5355179",
"0.5328365",
"0.5328365",
"0.5324973",
"0.5302673",
"0.5232077",
"0.52283525",
"0.52283525",
"0.52094704",
"0.5197457"... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table private_message | int deleteByExample(PrivateMessageExample example); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"List<PrivateMessage> selectByExample(PrivateMessageExample example);",
"public QlikMessageDto insertMessageInDatabase(String message) {\r\n\t\tQlikMessageDto qlikMessage = null;\r\n\r\n\t\tlong insertedRowId = 0;\r\n\r\n\t\ttry {\r\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\r\n\r\n\t\t\tConnection conn = D... | [
"0.6046245",
"0.57259613",
"0.5723688",
"0.5689126",
"0.5677569",
"0.5634554",
"0.5584847",
"0.549018",
"0.54256207",
"0.54144937",
"0.5361806",
"0.5355179",
"0.5328365",
"0.5328365",
"0.5324973",
"0.5302673",
"0.5232077",
"0.52283525",
"0.52283525",
"0.52094704",
"0.5197457"... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table private_message | int insert(PrivateMessage record); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"List<PrivateMessage> selectByExample(PrivateMessageExample example);",
"public QlikMessageDto insertMessageInDatabase(String message) {\r\n\t\tQlikMessageDto qlikMessage = null;\r\n\r\n\t\tlong insertedRowId = 0;\r\n\r\n\t\ttry {\r\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\r\n\r\n\t\t\tConnection conn = D... | [
"0.60458136",
"0.57267934",
"0.5722269",
"0.56909335",
"0.56778646",
"0.5635451",
"0.5585269",
"0.54903394",
"0.5425252",
"0.5414468",
"0.5362535",
"0.5353298",
"0.53276825",
"0.53276825",
"0.53231007",
"0.5303789",
"0.5231506",
"0.5230163",
"0.5230163",
"0.5210244",
"0.51962... | 0.4946133 | 53 |
This method was generated by MyBatis Generator. This method corresponds to the database table private_message | int insertSelective(PrivateMessage record); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"List<PrivateMessage> selectByExample(PrivateMessageExample example);",
"public QlikMessageDto insertMessageInDatabase(String message) {\r\n\t\tQlikMessageDto qlikMessage = null;\r\n\r\n\t\tlong insertedRowId = 0;\r\n\r\n\t\ttry {\r\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\r\n\r\n\t\t\tConnection conn = D... | [
"0.6046245",
"0.57259613",
"0.5723688",
"0.5689126",
"0.5677569",
"0.5634554",
"0.5584847",
"0.549018",
"0.54256207",
"0.54144937",
"0.5361806",
"0.5355179",
"0.5328365",
"0.5328365",
"0.5324973",
"0.5302673",
"0.5232077",
"0.52283525",
"0.52283525",
"0.52094704",
"0.5197457"... | 0.48101804 | 92 |
This method was generated by MyBatis Generator. This method corresponds to the database table private_message | List<PrivateMessage> selectByExample(PrivateMessageExample example); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public QlikMessageDto insertMessageInDatabase(String message) {\r\n\t\tQlikMessageDto qlikMessage = null;\r\n\r\n\t\tlong insertedRowId = 0;\r\n\r\n\t\ttry {\r\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\r\n\r\n\t\t\tConnection conn = DriverManager.getConnection(url, user, password);\r\n\r\n\t\t\tPreparedStat... | [
"0.57259613",
"0.5723688",
"0.5689126",
"0.5677569",
"0.5634554",
"0.5584847",
"0.549018",
"0.54256207",
"0.54144937",
"0.5361806",
"0.5355179",
"0.5328365",
"0.5328365",
"0.5324973",
"0.5302673",
"0.5232077",
"0.52283525",
"0.52283525",
"0.52094704",
"0.5197457",
"0.51590204... | 0.6046245 | 0 |
This method was generated by MyBatis Generator. This method corresponds to the database table private_message | int updateByExampleSelective(@Param("record") PrivateMessage record, @Param("example") PrivateMessageExample example); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"List<PrivateMessage> selectByExample(PrivateMessageExample example);",
"public QlikMessageDto insertMessageInDatabase(String message) {\r\n\t\tQlikMessageDto qlikMessage = null;\r\n\r\n\t\tlong insertedRowId = 0;\r\n\r\n\t\ttry {\r\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\r\n\r\n\t\t\tConnection conn = D... | [
"0.6046245",
"0.57259613",
"0.5723688",
"0.5689126",
"0.5677569",
"0.5634554",
"0.5584847",
"0.549018",
"0.54256207",
"0.54144937",
"0.5361806",
"0.5355179",
"0.5328365",
"0.5328365",
"0.5324973",
"0.5302673",
"0.5232077",
"0.52283525",
"0.52283525",
"0.52094704",
"0.5197457"... | 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table private_message | int updateByExample(@Param("record") PrivateMessage record, @Param("example") PrivateMessageExample example); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"List<PrivateMessage> selectByExample(PrivateMessageExample example);",
"public QlikMessageDto insertMessageInDatabase(String message) {\r\n\t\tQlikMessageDto qlikMessage = null;\r\n\r\n\t\tlong insertedRowId = 0;\r\n\r\n\t\ttry {\r\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\r\n\r\n\t\t\tConnection conn = D... | [
"0.60458136",
"0.57267934",
"0.5722269",
"0.56909335",
"0.56778646",
"0.5635451",
"0.5585269",
"0.54903394",
"0.5425252",
"0.5414468",
"0.5362535",
"0.5353298",
"0.53276825",
"0.53276825",
"0.53231007",
"0.5303789",
"0.5231506",
"0.5230163",
"0.5230163",
"0.5210244",
"0.51962... | 0.0 | -1 |
overload polimorfismo chamar o mesmo construtor de diferentes formas | public Funcionario(String nome, double salario){//construtor
this.nome=nome;
this.salario=salario;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public SalidaCajaForm() {\n\t\tinicializarComponentes();\n }",
"public FormCadastroAutomovel() {\n initComponents();\n }",
"public void limpiarCamposFormBusqueda() {\n\t}",
"public Formulario() {\n initComponents();\n }",
"protected RespostaFormularioPreenchido() {\n // for OR... | [
"0.6631676",
"0.6512684",
"0.6427546",
"0.6409971",
"0.6369301",
"0.62949777",
"0.6266309",
"0.62568",
"0.62353134",
"0.62204367",
"0.6211373",
"0.6200164",
"0.61998016",
"0.6174806",
"0.61672246",
"0.61528826",
"0.61409384",
"0.61404157",
"0.6136351",
"0.6120359",
"0.6113969... | 0.0 | -1 |
delete role element from table by id if the action is do correct,return true,else return false | public boolean deleteRole(String role_id){
String sql = "delete from role where role_id = ?;";
Connection conn = new DBUtilFactory().getConn();
try {
ps = conn.prepareStatement(sql);
ps.setString(1, role_id);
ps.execute();
} catch (SQLException e) {
e.printStackTrace();
return false;
} finally {
clearUp(conn);
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic boolean deleteRole(Long id) {\n\t\tdeleteById(id);\r\n\t\treturn true;\r\n\t}",
"@Override\n\tpublic void deleteRole(long id) {\n\t\t\n\t}",
"@Override\r\n\tpublic int delRole(int id) {\n\t\treturn 0;\r\n\t}",
"@Override\n\tpublic boolean eliminar(Long id) {\n\t\treturn false;\n\t}",
... | [
"0.6878906",
"0.6603335",
"0.65864635",
"0.6480039",
"0.64774007",
"0.6450228",
"0.644784",
"0.64186895",
"0.63987",
"0.6396551",
"0.6390711",
"0.63863915",
"0.6377174",
"0.63740647",
"0.63327295",
"0.6311293",
"0.62875974",
"0.62875974",
"0.62844056",
"0.62780803",
"0.626176... | 0.64990747 | 3 |
add role element into table if the action is do correct,return this record role_id, else return 1 | public int addRole(Role role){
String sql = "INSERT INTO `outpatient`.`role` "
+ "(`role_power`, `role_describe`) "
+ "VALUES (?, ?);";
Connection conn = new DBUtilFactory().getConn();
try {
ps = conn.prepareStatement(sql);
ps.setInt(1, role.getRole_power());
ps.setString(2, role.getRole_describe());
ps.execute();
} catch (SQLException e) {
e.printStackTrace();
return -1;
} finally {
clearUp(conn);
}
int role_id = -1;
sql = "select max(role_id) as id from role;";
conn = new DBUtilFactory().getConn();
try {
ps = conn.prepareStatement(sql);
rs = ps.executeQuery();
if(rs.next()){
role_id = rs.getInt("id");
}else{
return -1;
}
} catch (SQLException e) {
e.printStackTrace();
return -1;
} finally {
clearUp(conn);
}
return role_id;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int insertSelective(JindouyunRole record);",
"int insert(User_Role record);",
"int insertSelective(UsercontrollerRole record);",
"int insert(JindouyunRole record);",
"int insertSelective(SysRole record);",
"int insert(UsercontrollerRole record);",
"int insertSelective(Role record);",
"int insertSelec... | [
"0.6976191",
"0.67690414",
"0.6747809",
"0.67033577",
"0.66840893",
"0.6672179",
"0.6622986",
"0.6622986",
"0.66162664",
"0.66148835",
"0.66148835",
"0.6606377",
"0.6606377",
"0.65738136",
"0.65461355",
"0.65086776",
"0.64754796",
"0.64699763",
"0.6434482",
"0.6429722",
"0.64... | 0.6244009 | 37 |
get all Role element from table if the action is do correct,return the list of Role, else return null | public ArrayList<Role> getRole() {
ArrayList<Role> list = new ArrayList<Role>();
String sql = "select * from role;";
Connection conn = new DBUtilFactory().getConn();
try {
ps = conn.prepareStatement(sql);
rs = ps.executeQuery();
while(rs.next()) {
Role role = new Role();
// stupid set method......
role.setRole_describe(rs.getString("role_describe"));
role.setRole_id(rs.getInt("role_id"));
role.setRole_power(rs.getInt("role_power"));
list.add(role);
}
} catch (SQLException e) {
e.printStackTrace();
return null;
} finally {
clearUp(conn);
}
return list;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"List<User_Role> selectAll();",
"List<Rol> obtenerRoles() throws Exception;",
"public List<Roles> selectAllRole(){\n\treturn rolesDao.findAll();\n\t}",
"@Override\n public List getAllRole() {\n \tMap mSession = ActionContext.getContext().getSession();\n \tInteger clientId = (Integer) mSession.get(\"C... | [
"0.73924506",
"0.7217451",
"0.71546316",
"0.71320796",
"0.70404565",
"0.7034097",
"0.69731116",
"0.6939007",
"0.6922964",
"0.68431723",
"0.6839356",
"0.6824743",
"0.67883635",
"0.6760293",
"0.67522204",
"0.6746122",
"0.6724547",
"0.66771364",
"0.66408145",
"0.66406107",
"0.66... | 0.7259973 | 1 |
get all role element from table by id if the action is do correct return the role entity, else return null | public Role getRole(int role_id) {
Role role = new Role();
String sql = "select * from role where role_id = ?;";
Connection conn = new DBUtilFactory().getConn();
try {
ps = conn.prepareStatement(sql);
ps.setInt(1, role_id);
rs = ps.executeQuery();
if (rs.next()) {
// stupid set method......
role.setRole_describe(rs.getString("role_describe"));
role.setRole_id(rs.getInt("role_id"));
role.setRole_power(rs.getInt("role_power"));
}
} catch (SQLException e) {
e.printStackTrace();
return null;
} finally {
clearUp(conn);
}
return role;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Role getRoleById(int id);",
"Role findById(int id);",
"public Optional<Roles> selectByIdRole(int id){\n\treturn rolesDao.findById(id);\n\t}",
"@Override\n\tpublic Role findTheRole(Integer id) {\n\t\treturn mapper.findTheRole(id);\n\t}",
"SysRole selectByPrimaryKey(String id);",
"JindouyunRole sele... | [
"0.7395415",
"0.70214903",
"0.69683003",
"0.69520324",
"0.6919144",
"0.6893076",
"0.681758",
"0.68039745",
"0.6795957",
"0.6693729",
"0.66664755",
"0.6657488",
"0.6648464",
"0.66389215",
"0.66249317",
"0.6624859",
"0.6624859",
"0.6605763",
"0.65731865",
"0.6565014",
"0.653322... | 0.58932334 | 65 |
Log current application and return current alert | @Override
@Argument(name = "alert", type = ArgumentType.RETURNS, isReturnsType = true)
protected Alert internalExecute(JavaRuleContext context,
AlertCreationRule.AlertCreationRuleArguments arguments) {
log.info("Current application name:[{}]", arguments.getApplication().getName());
return arguments.getAlert();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private synchronized ILogger _getAlertLogger()\n {\n if( alertlogger == null )\n alertlogger = ClearLogFactory.getLogger( ClearLogFactory.ALERT_LOG,\n this.getClass() );\n return alertlogger;\n }",
"Response<Void> logApplicationStart(String uniqueIdentifier);",
"pr... | [
"0.58029294",
"0.56498176",
"0.5509269",
"0.54793036",
"0.5449411",
"0.5425673",
"0.5413865",
"0.53506744",
"0.5314774",
"0.5239625",
"0.5226475",
"0.5223835",
"0.5196715",
"0.5182667",
"0.51522785",
"0.5147169",
"0.51273733",
"0.51215607",
"0.512033",
"0.5119247",
"0.5116683... | 0.56928277 | 1 |
TODO Autogenerated method stub | @Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_searchbooks_detail);
Intent intent = getIntent();
searchKeyword = intent.getStringExtra("intent_keyword");
//universityCode = intent.getIntExtra("intent_universitycode", 0);
university = intent.getStringExtra("intent_university");
System.out.println("intent_keyword:"+searchKeyword);
System.out.println("intent_university:"+university);
drawerLayout = (DrawerLayout)findViewById(R.id.drawer_layout);
drawerLayout.setDrawerShadow(R.drawable.drawer_shadow, GravityCompat.START);
schoolArray = getResources().getStringArray(R.array.spinner_item);
btn_search = (Button)findViewById(R.id.btn_search);
btn_search.setOnClickListener(this);
et_search_sh = (EditText)findViewById(R.id.et_search_sh);
et_search_sh.setImeOptions(EditorInfo.IME_ACTION_SEARCH);
et_search_sh.setInputType(EditorInfo.TYPE_CLASS_TEXT);
et_search_sh.setSingleLine(true);
et_search_sh.setOnEditorActionListener(new OnEditorActionListener() {
public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {
// TODO Auto-generated method stub
if (actionId == EditorInfo.IME_ACTION_SEARCH) {
if (!searchKeyword.equals(et_search_sh.getText().toString().trim())) {
booksAttrsList.clear();
searchKeyword = et_search_sh.getText().toString();
et_search_sh.setText("");
refreshFromServer(Constants.SEARCH_KEYWORD);
System.out.println("searchkeyword-------》 "+searchKeyword);
System.out.println("university----》 "+university);
}
return true;
}
return false;
}
});
lv_left_drawer = (ListView)findViewById(R.id.lv_left_drawer);
//lv_left_drawer.setAdapter(new ArrayAdapter<String>(this, R.layout.drawer_list_item, schoolArray));
lv_left_drawer.setAdapter(new DrawerLayoutAdapter(this, schoolArray));
lv_left_drawer.setOnItemClickListener(new DrawerItemClickListener());
btn_filter = (Button)findViewById(R.id.btn_filter);
btn_filter.setOnClickListener(this);
btn_filter_too = (Button)findViewById(R.id.btn_filter_too);
btn_filter_too.setOnClickListener(this);
//testData();
lv_books_list = (ListViewCompat)findViewById(R.id.lv_books_list);
adapter = new SearchBooksDetailAdapter(this, booksAttrsList);
lv_books_list.setAdapter(adapter);
lv_books_list.setOnItemClickListener(this);
lv_books_list.setOnRefreshListener(this);
lv_books_list.setOnLoadListener(this);
refreshFromServer(ListViewCompat.REFRESH);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {
if (actionId == EditorInfo.IME_ACTION_SEARCH) {
if (!searchKeyword.equals(et_search_sh.getText().toString().trim())) {
booksAttrsList.clear();
searchKeyword = et_search_sh.getText().toString();
et_search_sh.setText("");
refreshFromServer(Constants.SEARCH_KEYWORD);
System.out.println("searchkeyword-------》 "+searchKeyword);
System.out.println("university----》 "+university);
}
return true;
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void handleMessage(Message msg) {
super.handleMessage(msg);
dismissLoadingDialog();
lv_books_list.onRefreshComplete();
lv_books_list.onLoadComplete();
switch (msg.what) {
case Constants.SEARCH_KEYWORD:
et_search_sh.setVisibility(View.GONE);
btn_filter.setVisibility(View.VISIBLE);
btn_filter_too.setVisibility(View.VISIBLE);
if (newList != null) {
newList.clear();
}
//解析返回的数据
newList = pJson.parseBookList(jsonString);
if (newList != null && newList.size() != 0) {
booksAttrsList.clear();
booksAttrsList.addAll(newList);
//刷新适配器
adapter.notifyDataSetChanged();
requestTime = 1;
}else {
Toast.makeText(SearchBooksDetailActivity.this, "无数据返回!", Toast.LENGTH_SHORT).show();
}
break;
case ListViewCompat.REFRESH:
if (newList != null) {
newList.clear();
}
//解析返回的数据
newList = pJson.parseBookList(jsonString);
if (newList != null && newList.size() != 0) {
booksAttrsList.clear();
booksAttrsList.addAll(newList);
//刷新适配器
adapter.notifyDataSetChanged();
}else {
Toast.makeText(SearchBooksDetailActivity.this, "无数据返回!", Toast.LENGTH_SHORT).show();
}
break;
case ListViewCompat.LOAD:
if (newList != null) {
newList.clear();
}
//解析返回的数据
newList = pJson.parseBookList(jsonString);
if (newList != null && newList.size() != 0) {
booksAttrsList.addAll(newList);
//刷新适配器
adapter.notifyDataSetChanged();
}else {
Toast.makeText(SearchBooksDetailActivity.this, "已经到底啦!", Toast.LENGTH_SHORT).show();
}
break;
case Constants.SERVER_ERROR:
Toast.makeText(SearchBooksDetailActivity.this, "服务器错误,请重试!", Toast.LENGTH_SHORT).show();
break;
default:
break;
}
} | {
"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() {
postParameters[0] = new PostParameter("keyword", searchKeyword);
postParameters[1] = new PostParameter("university", university);
postParameters[2] = new PostParameter("page", Integer.toString(requestTime));
jsonString = HttpUtil.httpRequest(HttpUtil.USER_SEARCHBOOKS, postParameters, HttpUtil.POST);
if (jsonString != null) {
Message msg = handler.obtainMessage();
msg.what = what;
handler.sendMessage(msg);
}
else{
handler.sendEmptyMessage(-1);
}
} | {
"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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.