query stringlengths 7 33.1k | document stringlengths 7 335k | metadata dict | negatives listlengths 3 101 | negative_scores listlengths 3 101 | document_score stringlengths 3 10 | document_rank stringclasses 102 values |
|---|---|---|---|---|---|---|
TODO Autogenerated method stub | @Override
public void buildMethods(JDefinedClass cls) {
} | {
"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 buildDefaultMethods(JDefinedClass cls) {
} | {
"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 extends_(JDefinedClass cls) {
} | {
"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 implements_(JDefinedClass cls) {
} | {
"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 |
method about amount of legs | void sitOn(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getNumOfLegs() {\n return numOfLegs;\n }",
"int getLegs();",
"public int getLegs() {\n return legs;\n }",
"private int countGrasses()//issues...see comment below in countTrees()\n {\n int grasses = 0;\n Field field = getField();\n Iterator<Location> it;\n ... | [
"0.7839254",
"0.78056663",
"0.7633847",
"0.6770246",
"0.67262185",
"0.65710646",
"0.65530545",
"0.6534757",
"0.6520739",
"0.6507943",
"0.64968926",
"0.63678336",
"0.6367462",
"0.63660765",
"0.63602597",
"0.6322599",
"0.631815",
"0.6288294",
"0.6264221",
"0.624476",
"0.6229785... | 0.0 | -1 |
Gets the value of the taille property. | public float getTaille() {
return taille;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public long getTaille() {\n return taille;\n }",
"public int getTaille() {\n return taille;\n }",
"public int getTaille(){\r\n return this.taille;\r\n }",
"public int obtenirTaille()\n\t{\n\t\treturn this.taille;\n\t}",
"public T getTail() {\n\t\treturn tail.value;\n\t}",
"public ... | [
"0.84617585",
"0.837915",
"0.7807006",
"0.7663185",
"0.7151307",
"0.70313215",
"0.6877997",
"0.6848829",
"0.6633604",
"0.6622935",
"0.6439738",
"0.6439738",
"0.6428844",
"0.6386988",
"0.63814217",
"0.6349831",
"0.63485324",
"0.6332381",
"0.63178766",
"0.6192258",
"0.5963693",... | 0.8400655 | 1 |
Sets the value of the taille property. | public void setTaille(float value) {
this.taille = value;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setTaille(long taille) {\n this.taille = taille;\n }",
"public float getTaille() {\r\n return taille;\r\n }",
"public long getTaille() {\n return taille;\n }",
"public void setTail(T element) {\n\t\tthis.tail.value = element;\n\t}",
"public int getTaille() {\n ... | [
"0.81249666",
"0.67704225",
"0.6611688",
"0.6516397",
"0.64770013",
"0.63545984",
"0.63377756",
"0.6242167",
"0.61828566",
"0.6062271",
"0.6017558",
"0.5866198",
"0.5819696",
"0.5578163",
"0.5390753",
"0.53297937",
"0.52766514",
"0.512611",
"0.5062235",
"0.50479823",
"0.50095... | 0.78092873 | 1 |
Return the amount monk has to pay Write your code here | static int amount_to_pay(String Q, String P, int[] cost){
int max_amount = 0;
for (int i = 0; i < P.length(); i++) {
int amount = getAmountToPay(P, Q, cost, i);
if (amount > max_amount) {
max_amount = amount;
}
}
return max_amount;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void determineWeeklyPay(){\r\n weeklyPay = commission*sales;\r\n }",
"protected double getPay() {\n\t\tint extraHrs = 0;\n\t\tif (this.hoursWrkd > 40) {\n\t\t\textraHrs = this.hoursWrkd - 40;\n\t\t\treturn (hourlyRate * 40) + (extraHrs * (hourlyRate * 1.5));\n\t\t} else {\n\t\t\treturn hoursWrkd... | [
"0.69058037",
"0.68124825",
"0.67857933",
"0.67493534",
"0.67482704",
"0.67323625",
"0.6686934",
"0.66650784",
"0.6658153",
"0.66314924",
"0.66285217",
"0.6540704",
"0.649775",
"0.64786035",
"0.64702463",
"0.64696026",
"0.64554435",
"0.64529705",
"0.6444649",
"0.6418302",
"0.... | 0.0 | -1 |
strength of declared pattern correlation, a > b, in [0..1.0] | public double getPatternStrength(Detail a, Detail b) {
if (a.getPatterns().size() == 0)
return 0.0;
List<String> bPatterns = b.getPatterns();
double s = 0;
for (String aP : a.getPatterns()) {
if (bPatterns.contains(aP)) {
s += 1.0;
}
//TODO accumulate matched super-patterns
}
return s / ((double)a.getPatterns().size());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int bresA(int a, int b, int d) { //A as in Axis\n int add = 0;\n err += b;\n if(2*err >= a) {\n add = d;\n err -= a;\n }\n return add;\n }",
"double correlationCoefficient(User a, User b) throws CwebApiException;",
"private double calcG(int ... | [
"0.56584805",
"0.56118506",
"0.53444",
"0.5326102",
"0.5313525",
"0.5256102",
"0.5254534",
"0.52403766",
"0.52393097",
"0.5149645",
"0.5141672",
"0.50961816",
"0.5084288",
"0.5069822",
"0.50615865",
"0.5021533",
"0.5011972",
"0.50030065",
"0.4982811",
"0.49750236",
"0.4975023... | 0.65604615 | 0 |
compare A.Indefinite's > B.Definite's satisfaction or dissatisfaction | public double getIndefiniteDefiniteComparison(Detail a, Detail b) {
//TODO use numIndefiniteProperties rather than numTotalProperties ??
double numProperties = a.getProperties().size();
if (numProperties == 0.0)
return 0.0;
double s = 0;
for (PropertyValue aP : a.getProperties()) {
if (aP instanceof IndefiniteValue) {
IndefiniteValue iap = (IndefiniteValue) aP;
double maxSat = 0;
for (PropertyValue bP : getProperties(b, aP.getProperty())) {
if (bP instanceof DefiniteValue) {
DefiniteValue dbp = (DefiniteValue)bP;
double sat = satisifies(iap, dbp);
if (sat > maxSat)
maxSat = sat;
}
}
s += maxSat;
}
}
return s / numProperties;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double getIndefiniteIndefiniteComparison(Detail a, Detail b) {\n\t\t//TODO calculate indefinite -> indefinite detail mutual satisfaction / overlap */\n\t\treturn 0.0;\n\t}",
"public void testComparisons() {\n\tfinal double small = Math.pow(2.0, -42);\n\n\t// Input: a, b\n\tdouble[][] input = new double[][... | [
"0.68039817",
"0.5641907",
"0.55098873",
"0.54901373",
"0.5473233",
"0.54713356",
"0.54324853",
"0.5426857",
"0.54268545",
"0.5412635",
"0.5384436",
"0.52956194",
"0.5234173",
"0.52271974",
"0.51934445",
"0.5176381",
"0.51678485",
"0.5151179",
"0.514417",
"0.51324373",
"0.511... | 0.6213571 | 1 |
compare indefinite indefinite satisfaction or dissatisfaction | public double getIndefiniteIndefiniteComparison(Detail a, Detail b) {
//TODO calculate indefinite -> indefinite detail mutual satisfaction / overlap */
return 0.0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static int compareSafetyComputations() {\n\t\tSystem.out.println(\"Distance,Duration,Exhalation,Derived,Inferred\");\n\t\tfinal boolean[] derived_results = new boolean[10];\n\t\tfinal boolean[] inferred_results = new boolean[10];\n\t\tint correctInferences = 0;\n\t\tfor(int i = 0; i < derived_results.length... | [
"0.59097403",
"0.5840068",
"0.5722604",
"0.5694555",
"0.5668296",
"0.5655555",
"0.5655058",
"0.5621027",
"0.56187874",
"0.55533093",
"0.55372304",
"0.5489352",
"0.5488482",
"0.5479272",
"0.5442888",
"0.53888714",
"0.5386902",
"0.53772867",
"0.5365673",
"0.5360758",
"0.5354678... | 0.6262229 | 0 |
Generates a dummy quiz... | public interface QuizGenerator {
Quiz generateQuiz();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract void generateQuestion();",
"public void generateDemoQuiz() {\n Quiz demoQuiz = new Quiz(); //Instantiate a Quiz\n Category testCategory = makeCategory(); //Make some bs categories to attach the quiz\n Question question1 = new Question(); //Make some bs questions (just one for... | [
"0.7268784",
"0.71485037",
"0.69779974",
"0.6783948",
"0.6732672",
"0.6636406",
"0.65372735",
"0.64319825",
"0.6298495",
"0.6233538",
"0.62258774",
"0.619251",
"0.6136599",
"0.6120484",
"0.6047186",
"0.60188514",
"0.6008071",
"0.59907234",
"0.59646666",
"0.5954127",
"0.595052... | 0.58862257 | 26 |
this getter is just for example purpose, can differ | @SuppressLint("WrongConstant")
@Override
public int onStartCommand(Intent myIntent, int flags, int startId) {
if (myIntent != null && myIntent.getExtras() != null) {
id = myIntent.getExtras().getString("id");
time = myIntent.getExtras().getString("time");
}
return START_STICKY;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract String get();",
"@Override\n String get();",
"@Override\n public void get() {}",
"public String getNombre()\r\n/* 60: */ {\r\n/* 61: 67 */ return this.nombre;\r\n/* 62: */ }",
"@Override\r\n\tpublic void get() {\n\t\t\r\n\t}",
"public String get();",
"String ge... | [
"0.6706501",
"0.662263",
"0.65607756",
"0.64636594",
"0.6435533",
"0.6379608",
"0.6358794",
"0.6358794",
"0.6356477",
"0.6354478",
"0.63389355",
"0.6322681",
"0.6313923",
"0.6266699",
"0.6236295",
"0.6210339",
"0.6197108",
"0.61696285",
"0.61485267",
"0.6110647",
"0.6108002",... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public int getCount() {
return datalist.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 datalist.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 |
private final JPAQueryFactory qf; | public CartRepositoryImpl() {
super(Cart.class);
// this.qf = qf;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected JPAQuery<T> createQuery() {\n\t\tJPAQuery<T> query = new JPAQuery<>(entityManager);\n\t\tquery.from(getDslRoot());\n\t\treturn query;\n\t}",
"SelectQuery createSelectQuery();",
"public interface QueryTypeFactory extends QueryAllFactory<QueryTypeEnum, QueryTypeParser, QueryType>\n{\n \n}",
"priva... | [
"0.66445905",
"0.64656055",
"0.63039285",
"0.62196267",
"0.62050563",
"0.6177603",
"0.61725694",
"0.6161776",
"0.6100127",
"0.6058965",
"0.6024429",
"0.6010019",
"0.5996548",
"0.5981089",
"0.5948856",
"0.59468144",
"0.59419024",
"0.5938157",
"0.59240675",
"0.58637345",
"0.585... | 0.0 | -1 |
Develop a code that takes a number and prints if it is a Palindrome or Not a Palindrome | public static void main(String[] args) {
int num=101;
int r=0;
int rev=0;
int temp=num;
while(num>0){
r=num%10;
rev=(rev*10)+r;
num=num/10;
System.out.println(rev);
//System.out.println(num);
}
if(temp==rev) System.out.println("Palindrome");
else System.out.println("Not a Palindrome");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static int is_palindrome(int num)\n {\n int n, k, rev = 0;\n n = num; //store orig number\n // compute reverse of a number and store in rev\n while (num != 0)\n {\n k = num % 10;\n rev = (rev * 10) + k;\n num = num / 10;\n }\n if ... | [
"0.80371535",
"0.7949763",
"0.793791",
"0.78787863",
"0.7725139",
"0.7681467",
"0.7666378",
"0.75971687",
"0.7576114",
"0.7570928",
"0.7561744",
"0.75354606",
"0.75194454",
"0.7450384",
"0.7386236",
"0.7379977",
"0.7366401",
"0.7358446",
"0.735608",
"0.73365486",
"0.7327147",... | 0.78545576 | 4 |
helper methods for matrix | public static long[][] multiply(long F[][], long M[][]){
long x = F[0][0]*M[0][0] + F[0][1]*M[1][0];
long y = F[0][0]*M[0][1] + F[0][1]*M[1][1];
long z = F[1][0]*M[0][0] + F[1][1]*M[1][0];
long w = F[1][0]*M[0][1] + F[1][1]*M[1][1];
return new long[][]{{x,y},{z,w}};
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract Matrix matrix(double s1, double s2, double s3, double c1, double c2, double c3);",
"protected abstract NDArray[] onMatrix(NDArray matrix);",
"public Matrix getValue();",
"public Matrix calculate();",
"protected abstract T createMatrix( int numRows, int numCols, MatrixType type );",
"prote... | [
"0.67400867",
"0.6726123",
"0.6489022",
"0.6464256",
"0.6404917",
"0.63635427",
"0.63492924",
"0.6233953",
"0.6195012",
"0.6189188",
"0.61866647",
"0.6185937",
"0.6177345",
"0.6154837",
"0.6124182",
"0.608492",
"0.6079708",
"0.60273194",
"0.60072494",
"0.60058284",
"0.5982703... | 0.0 | -1 |
calculates F^n in O(log n) time using exponentiation by squaring | public static long[][] power(long F[][], long n){
if(n == 0){
return new long[][]{{1,1},{1,0}};
}
if(n == 1){
return F;
}
if(n % 2 == 0){
return power(multiply(F,F), n/2);
}else{
return multiply(F, power(multiply(F,F), (n-1)/2));
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static float powerOfTwoF(int n) {\n return Float.intBitsToFloat(((n + FloatConsts.MAX_EXPONENT) <<\n (FloatConsts.SIGNIFICAND_WIDTH-1))\n & FloatConsts.EXP_BIT_MASK);\n }",
"static void power(BigInteger F[][], int n) \n\t { \n\t ... | [
"0.7245413",
"0.7211912",
"0.72057676",
"0.6828459",
"0.6712498",
"0.6632788",
"0.65961117",
"0.6535556",
"0.6518649",
"0.6501932",
"0.64997494",
"0.64883953",
"0.6379977",
"0.6364956",
"0.6357492",
"0.63502437",
"0.6338747",
"0.6329644",
"0.6326872",
"0.63239074",
"0.6320308... | 0.6815874 | 4 |
helper methods for matrix | public static long[][] multiplyMod(long F[][], long M[][]){
long x = (F[0][0]*M[0][0])%MOD + (F[0][1]*M[1][0])%MOD;
long y = (F[0][0]*M[0][1])%MOD + (F[0][1]*M[1][1])%MOD;
long z = (F[1][0]*M[0][0])%MOD + (F[1][1]*M[1][0])%MOD;
long w = (F[1][0]*M[0][1])%MOD + (F[1][1]*M[1][1])%MOD;
return new long[][]{{x,y},{z,w}};
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract Matrix matrix(double s1, double s2, double s3, double c1, double c2, double c3);",
"protected abstract NDArray[] onMatrix(NDArray matrix);",
"public Matrix getValue();",
"public Matrix calculate();",
"protected abstract T createMatrix( int numRows, int numCols, MatrixType type );",
"prote... | [
"0.67400867",
"0.6726123",
"0.6489022",
"0.6464256",
"0.6404917",
"0.63635427",
"0.63492924",
"0.6233953",
"0.6195012",
"0.6189188",
"0.61866647",
"0.6185937",
"0.6177345",
"0.6154837",
"0.6124182",
"0.608492",
"0.6079708",
"0.60273194",
"0.60072494",
"0.60058284",
"0.5982703... | 0.0 | -1 |
calculates F^n in O(log n) time using exponentiation by squaring | public static long[][] powerMod(long F[][], long n){
if(n == 0){
return new long[][]{{1,1},{1,0}};
}
if(n == 1){
return F;
}
if(n % 2 == 0){
return powerMod(multiplyMod(F,F), n/2);
}else{
return multiplyMod(F, powerMod(multiplyMod(F,F), (n-1)/2));
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static float powerOfTwoF(int n) {\n return Float.intBitsToFloat(((n + FloatConsts.MAX_EXPONENT) <<\n (FloatConsts.SIGNIFICAND_WIDTH-1))\n & FloatConsts.EXP_BIT_MASK);\n }",
"static void power(BigInteger F[][], int n) \n\t { \n\t ... | [
"0.724529",
"0.7212373",
"0.72057074",
"0.682876",
"0.6816152",
"0.6712689",
"0.663365",
"0.6597126",
"0.65361947",
"0.65204257",
"0.6503214",
"0.6500781",
"0.648951",
"0.63808286",
"0.63657415",
"0.63587254",
"0.6351012",
"0.6331033",
"0.63280123",
"0.6325331",
"0.63207054",... | 0.63391674 | 17 |
Creates the table that will align the text in this screen. | private void createTable() {
table = new Table();
table.bottom();
table.setFillParent(true);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public PdfPTable createTable() {\n\t\tPdfPTable t = new PdfPTable(2);\n\t\tt.setWidthPercentage(100);\n\t\tt.setHorizontalAlignment(Element.ALIGN_LEFT);\n\t\tt.getDefaultCell().setBorder(Rectangle.NO_BORDER);\n\t\t// set up the table headers for albums\n\t\tif (state.equals(\"a\")) {\n\t\t\tFont bold = new Font(Fo... | [
"0.6629666",
"0.66162175",
"0.65657294",
"0.644981",
"0.636545",
"0.63622653",
"0.6292302",
"0.6277899",
"0.623199",
"0.618407",
"0.6168582",
"0.6160653",
"0.60892063",
"0.6075962",
"0.6053863",
"0.60533875",
"0.6021078",
"0.5961498",
"0.5953186",
"0.58949214",
"0.58854693",
... | 0.6654653 | 0 |
Fills the table with the top five high scores. | private void fillTable() {
table.row();
table.add();//.pad()
table.row();
for (int i = 1; i <= game.getNum_scores(); i++) {
scoreRank = new Label(String.format("%01d: ", i), new Label.LabelStyle(fonts.getInstance().getClouds(), Color.WHITE));
scoreValue = new Label(String.format("%06d", game.getScores().get(i-1)), new Label.LabelStyle(fonts.getInstance().getRancho(), Color.WHITE));
table.add(scoreRank).expandX().right();
table.add(scoreValue).expandX().left();
table.row();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public HighScoresTable(int size) {\n this.highScores = new LinkedList<ScoreInfo>();\n this.capacity = size;\n }",
"private void setUpHighscoreList() {\n highscores = fileManager.getHighscoresFromFile();\n\n tableData = new String[highscores.size()][2];\n int index = 0;\n ... | [
"0.68322104",
"0.66975784",
"0.6586904",
"0.6563629",
"0.6337003",
"0.6290156",
"0.62702304",
"0.6019094",
"0.5955203",
"0.5943232",
"0.58417314",
"0.58227235",
"0.5801693",
"0.57948995",
"0.57587516",
"0.57481784",
"0.57224727",
"0.5673976",
"0.5664902",
"0.5648857",
"0.5648... | 0.70472115 | 0 |
Displays the back button. | private void showBack() {
Drawable buttonDrawableBack = new TextureRegionDrawable(new TextureRegion((Texture)game.getAssetManager().get("buttonBack.png")));
BackButton = new ImageButton(buttonDrawableBack);
BackButton.setSize(MENU_WIDTH/7,MENU_HEIGHT/7);
BackButton.setPosition(7*MENU_WIDTH/8 - BackButton.getWidth()/2, MENU_HEIGHT/7 -DELTA_Y_MENU);
stage.addActor(BackButton);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void backButton() {\n\t\t\r\n\t}",
"@Override\n\tpublic void backButton() {\n\n\t}",
"public void back() {\n Views.goBack();\n }",
"private void backButton() {\n navigate.goPrev(this.getClass(), stage);\n }",
"public void back()\n\t{\n\t\tdriver.findElementById(OR.... | [
"0.8061302",
"0.7909042",
"0.78778106",
"0.78538966",
"0.77751005",
"0.7633364",
"0.7579949",
"0.75347835",
"0.74949926",
"0.7468509",
"0.74538606",
"0.74516726",
"0.74298203",
"0.7346922",
"0.73191655",
"0.7282242",
"0.72800106",
"0.7258757",
"0.7251368",
"0.7225571",
"0.719... | 0.6966228 | 58 |
Shows the screen and the menu title. | @Override
public void show() {
Label title = new Label("Hall of Fame", new Label.LabelStyle(fonts.getInstance().getClouds(), Color.WHITE));
title.setPosition(MENU_WIDTH / 2 - title.getWidth() / 2, MENU_HEIGHT / 1.9f + 3*title.getHeight());
stage.addActor(title);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void showTitleScreen() {\n frame.showMenu();\n }",
"private static void showMenu() {\n System.out.println(\"1. Dodaj zadanie\");\n System.out.println(\"2. Wykonaj zadanie.\");\n System.out.println(\"3. Zamknij program\");\n }",
"private void showTitleScreen() {\n\t\tres... | [
"0.8494697",
"0.7570499",
"0.74707776",
"0.7407182",
"0.73799324",
"0.72842395",
"0.7277543",
"0.71990997",
"0.7088325",
"0.7057813",
"0.7017066",
"0.7006119",
"0.69938934",
"0.6920673",
"0.6917286",
"0.69110894",
"0.6899154",
"0.68977696",
"0.6871441",
"0.68220353",
"0.68183... | 0.7262001 | 7 |
Renders the screen and waits for any input to return to the previous screen. | @Override
public void render(float delta) {
Gdx.gl.glClearColor(0.4f, 0.737f, 0.929f, 1);
Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
checkForBack();
stage.act();
stage.draw();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void process() {\n\n\t\tInputCommand cmd = InputManager.nextCommandPreserveKeyData();\n\t\tif (cmd != null) {\n\t\t\tswitch (cmd) {\n\n\t\t\tcase NEW:\n\t\t\t\tsetNextScreen(new NewGameScreen(terminal));\n\t\t\t\tbreak;\n\n\t\t\tcase LOAD:\n\t\t\t\tsetNextScreen(new MainScreen(this.terminal, lo... | [
"0.65978533",
"0.65572727",
"0.63311076",
"0.6318858",
"0.6299472",
"0.62991935",
"0.6287741",
"0.617393",
"0.61347115",
"0.61059064",
"0.6104465",
"0.610359",
"0.61000866",
"0.6095644",
"0.6089539",
"0.60812956",
"0.60754573",
"0.60323524",
"0.6032159",
"0.6019452",
"0.60150... | 0.0 | -1 |
Waits for any input that is used to return back (ESC [PC]/Back [Android] and Back label) | private void checkForBack() {
if (Gdx.input.isKeyJustPressed(Input.Keys.BACK) || Gdx.input.isKeyJustPressed(Input.Keys.ESCAPE) ||
BackButton.isPressed()) {
Gdx.input.vibrate(50);
dispose();
game.setScreen(new MainMenuView(game));
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void myWait()\n {\n try \n {\n System.in.read();\n \n System.in.read();\n //pause\n }\n catch(Exception e)\n {\n }\n }",
"public void waitForInputSignal(){\r\n\t\ttry {\r\n\t\t\tSystem.in.read();\r\n\t\t\tSystem.in.read();\r\n\t\t}... | [
"0.72712433",
"0.72144526",
"0.6712391",
"0.6599014",
"0.6537242",
"0.63483286",
"0.6272378",
"0.61705565",
"0.61114395",
"0.6024741",
"0.59975123",
"0.5997288",
"0.59614384",
"0.5916242",
"0.58948606",
"0.5827381",
"0.5785021",
"0.57457954",
"0.5715706",
"0.56929654",
"0.567... | 0.51093554 | 67 |
method to calculate the cij | public double calc_c() {
double cij = 0;
int sum_i = 0;
int sum_j = 0;
int diff = 0;
int state = 0;
double li, lri, lj, lrj;
List<Integer> samestate_i = new ArrayList<>();
List<Integer> samestate_j = new ArrayList<>();
List<Double> gradient_i = new ArrayList<>();
List<Double> gradient_j = new ArrayList<>();
// if the time step is less than the window cij is initialized to zero.
if(this.n <= this.w || this.w <2) {
cij = 0;
}
else {
// else we determine the state of the region i and region j of which
// we are calculating the cij for
Determinestate di = new Determinestate(this.i, this.n);
Determinestate dj = new Determinestate(this.j, this.n);
Probability pi = new Probability(this.i, this.n, this.w, this.neighborsize);
Probability pj = new Probability(this.i, this.n, this.w, this.neighborsize);
if(di.regionCurrentstate() == dj.regionCurrentstate()) {
li = pi.getLsave().get(0);
lj = pj.getLsave().get(0);
state = 0;
}
else {
li = pi.getLsave().get(1);
lj = pj.getLsave().get(1);
state =1;
}
// for the time window
for(int k=1; k<this.w; k++) {
// determine the state of i and j in the in n-k time step
Determinestate dri = new Determinestate(this.i, this.n-k);
Determinestate drj = new Determinestate(this.j, this.n-k);
Probability pri = new Probability(this.i, this.n, this.w, this.neighborsize);
Probability prj = new Probability(this.i, this.n, this.w, this.neighborsize);
lri = pri.getLsave().get(state);
lrj = prj.getLsave().get(state);
//if state matches for i make a list of time step in which they match and another list of gradient of Likelihood
if(di.regionCurrentstate() == dri.regionCurrentstate()){
samestate_i.add(k);
gradient_i.add(li - lri);
}
//if state matches for j make a list of time step in which they match and another list of gradient of Likelihood
if(di.regionCurrentstate() == drj.regionCurrentstate()){
samestate_j.add(k);
gradient_j.add(lj - lrj);
}
}
}
// if no match found return zero
if(samestate_i.size() == 0 || samestate_j.size() == 0) {
cij = 0;
}
// else calculate cij
else {
// if both have same length
if(samestate_i.size() == samestate_j.size()) {
for(int i=0; i<samestate_i.size(); i++) {
sum_i = sum_i + samestate_i.get(i);
sum_j = sum_j + samestate_j.get(i);
}
diff = (sum_i%this.w - sum_j%this.w);
if (diff == 0) {
cij = cosine_sim(gradient_i, gradient_j);
}
else {
cij = cosine_sim(gradient_i, gradient_j) * Math.abs(diff/(double)this.w);
}
}
//if i is smaller
else if(samestate_i.size() < samestate_j.size()) {
for(int i=0; i<samestate_i.size(); i++) {
sum_i = sum_i + samestate_i.get(i);
sum_j = sum_j + samestate_j.get(i);
}
diff = (sum_i%this.w - sum_j%this.w);
if (diff == 0) {
cij = cosine_sim(gradient_i.subList(0, samestate_i.size()), gradient_j);
}
else {
cij = cosine_sim(gradient_i.subList(0, samestate_i.size()), gradient_j) * diff/(double)this.w;
}
}
// if j is smaller
else {
for(int i=0; i<samestate_j.size(); i++) {
sum_i = sum_i + samestate_i.get(i);
sum_j = sum_j + samestate_j.get(i);
}
diff = (sum_i%this.w - sum_j%this.w);
if (diff == 0) {
cij = cosine_sim(gradient_i.subList(0, samestate_j.size()), gradient_j);
}
else {
cij = cosine_sim(gradient_i.subList(0, samestate_j.size()), gradient_j) * diff/(double)this.w;
}
}
}
if (Double.isNaN(cij)) {
return 0;
}
else {
return cij;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private IMatrix cofactor() {\n\t\tint n = this.getColsCount();\n\t\tIMatrix algCompl = newInstance(n, n);\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\tdouble value = Math.pow(-1, i + j);\n\t\t\t\tIMatrix sub = this.subMatrix(i, j, true);\n\t\t\t\tDouble det = sub.determinant();\... | [
"0.7017406",
"0.63508755",
"0.62609565",
"0.62390494",
"0.6235984",
"0.6095728",
"0.60901093",
"0.6088115",
"0.6078993",
"0.6043662",
"0.5944594",
"0.58550245",
"0.5852361",
"0.5842729",
"0.58201474",
"0.58000207",
"0.5782608",
"0.5773626",
"0.57602966",
"0.5736446",
"0.57344... | 0.73773164 | 0 |
appVersion=101&source=android &uid=11850& followId=983& token=F3768ABA31902C1D56B60F25708B9BCD | @Override
public void onClick(View v) {
Map<String,String> map=new HashMap<>();
map.put("uid",uid+"");
map.put("followId",bean.getData().get(position).getUid()+"");
map.put("token",token);
APIFactory.getInstance().get("quarter/follow", map, new AbstractObserver<FollowSuccessBean>() {
@Override
public void onSuccess(FollowSuccessBean followSuccessBean) {
Toast.makeText(context,followSuccessBean.getMsg(),Toast.LENGTH_SHORT).show();
}
@Override
public void onFailure(int code) {
}
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static final String m2193f() {\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"fb\");\n stringBuilder.append(C0560t.m1253e());\n stringBuilder.append(\"://authorize\");\n return stringBuilder.toString();\n }",
"private String m25428h() {... | [
"0.5846044",
"0.56972164",
"0.5457417",
"0.5304538",
"0.52534753",
"0.52512854",
"0.5245921",
"0.5191559",
"0.519052",
"0.51896644",
"0.51238304",
"0.5123324",
"0.5093801",
"0.5088968",
"0.5073479",
"0.5066603",
"0.5035921",
"0.5016786",
"0.50072104",
"0.49750513",
"0.4973174... | 0.0 | -1 |
Gets array of all "scans" elements | com.bagnet.nettracer.ws.core.pojo.xsd.WSScanPoints[] getScansArray(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static int[] getScanIndexList(MSRun run, int scan)\r\n {\r\n int scanIndex = run.getIndexForScanNum(scan, true);\r\n int leftIndex = scanIndex - 10;\r\n int rightIndex = scanIndex + 20;\r\n if (leftIndex < 0)\r\n leftIndex = 0;\r\n if (rightIndex >= run.getScanCount... | [
"0.6318306",
"0.5781955",
"0.5633107",
"0.56312406",
"0.5587346",
"0.55844176",
"0.5536837",
"0.5516327",
"0.5460488",
"0.5428218",
"0.54238105",
"0.53427064",
"0.5334416",
"0.53152883",
"0.52969044",
"0.5260302",
"0.5260141",
"0.5259795",
"0.5247034",
"0.5239923",
"0.5227366... | 0.6159638 | 1 |
Gets ith "scans" element | com.bagnet.nettracer.ws.core.pojo.xsd.WSScanPoints getScansArray(int i); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int findNextElement() {\n\t\tif (hasNext()) {\n\t\t\tint value = this.index + 1;\n\t\t\treturn value;\n\n\t\t}\n\t\treturn -1;\n\t}",
"@Override\n public int element() {\n isEmptyList();\n return first.value;\n }",
"public int getIteration();",
"public int get(int index);",
"pub... | [
"0.6639307",
"0.62495244",
"0.62003624",
"0.6177981",
"0.6150743",
"0.5990139",
"0.5967557",
"0.5966979",
"0.5966979",
"0.5966979",
"0.5966979",
"0.5966979",
"0.5966979",
"0.5966979",
"0.5966979",
"0.5966979",
"0.5966979",
"0.5966979",
"0.5966979",
"0.5966979",
"0.5944393",
... | 0.0 | -1 |
Tests for nil ith "scans" element | boolean isNilScansArray(int i); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean checkCurrentIterator(Iterator<Integer> iter) {\n return iter != null;\n }",
"private boolean checkEmpty() {\n\t\treturn this.array[0] == null;\n\t}",
"@Override\r\n\t\tpublic boolean hasNext() {\r\n\t\t\treturn arr[index] != null && index < arr.length;\r\n\t\t}",
"pu... | [
"0.6525195",
"0.6244991",
"0.6203599",
"0.61822325",
"0.614717",
"0.614542",
"0.61275524",
"0.6077806",
"0.6004578",
"0.58913964",
"0.58609754",
"0.58224875",
"0.5801606",
"0.5801254",
"0.579709",
"0.57785714",
"0.57741064",
"0.5773999",
"0.5733351",
"0.57251525",
"0.5715566"... | 0.6706026 | 0 |
Returns number of "scans" element | int sizeOfScansArray(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getDataScansCount();",
"Long getNumberOfElement();",
"public int numberOfOccorrence();",
"public Integer getNscan() {\r\n return nscan;\r\n }",
"int findCount();",
"public Long getElementCount();",
"public int size(){\n\t\tListUtilities start = this.returnToStart();\n\t\tint count = 1;\n\... | [
"0.7286388",
"0.7141086",
"0.7009994",
"0.6919195",
"0.6788664",
"0.6737164",
"0.67365503",
"0.6699988",
"0.65924203",
"0.651896",
"0.6491768",
"0.64602673",
"0.644338",
"0.6416741",
"0.64134187",
"0.6387543",
"0.63728565",
"0.6370513",
"0.6370513",
"0.635855",
"0.634852",
... | 0.6990295 | 3 |
Sets array of all "scans" element | void setScansArray(com.bagnet.nettracer.ws.core.pojo.xsd.WSScanPoints[] scansArray); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setScansArray(int i, com.bagnet.nettracer.ws.core.pojo.xsd.WSScanPoints scans);",
"void setNilScansArray(int i);",
"public void setArray(int i, Array x);",
"public void set(int[] ai);",
"public void resetChangeableArrays(int[] reg)\n {\n valList = new LinkedList<Integer>();\n possibil... | [
"0.683412",
"0.6520412",
"0.6302795",
"0.60931003",
"0.59066826",
"0.584717",
"0.58335596",
"0.582356",
"0.57734275",
"0.57396156",
"0.5650799",
"0.5496267",
"0.54836124",
"0.5459097",
"0.5457701",
"0.54452276",
"0.54037887",
"0.53829646",
"0.53789544",
"0.5372189",
"0.536756... | 0.65667874 | 1 |
Sets ith "scans" element | void setScansArray(int i, com.bagnet.nettracer.ws.core.pojo.xsd.WSScanPoints scans); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int set(int index, int element);",
"void set(int index, Object element);",
"void set(int idx, int val);",
"public void setAt(int iterator, T element) {\n data[iterator] = element;\n }",
"void setIdx(int i);",
"T set(int index, T element);",
"public E set(int index, E element);",
"pub... | [
"0.6683334",
"0.64707905",
"0.6375239",
"0.63101",
"0.62662673",
"0.6255885",
"0.62296313",
"0.62006694",
"0.5873949",
"0.5854428",
"0.584881",
"0.5846771",
"0.58227074",
"0.5781837",
"0.5777532",
"0.5775824",
"0.57692075",
"0.5761582",
"0.566416",
"0.566416",
"0.56545115",
... | 0.56197315 | 24 |
Nils the ith "scans" element | void setNilScansArray(int i); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void removeScans(int i);",
"boolean isNilScansArray(int i);",
"public LinkedListItr zeroth( )\n {\n return new LinkedListItr( header );\n }",
"public void clear() {\n first = null;\n n = 0;\n }",
"public void clearInitialize(){\n index=0;\n for(int i =0; i < list.length;... | [
"0.6203869",
"0.5799681",
"0.56201315",
"0.5613178",
"0.55257684",
"0.5487614",
"0.5479564",
"0.5464554",
"0.5451123",
"0.54473746",
"0.5434454",
"0.5392378",
"0.5374883",
"0.53700167",
"0.5367544",
"0.5364281",
"0.5340941",
"0.5340091",
"0.53389484",
"0.53213555",
"0.5319782... | 0.6368787 | 0 |
Inserts and returns a new empty value (as xml) as the ith "scans" element | com.bagnet.nettracer.ws.core.pojo.xsd.WSScanPoints insertNewScans(int i); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"org.landxml.schema.landXML11.BridgeElementDocument.BridgeElement insertNewBridgeElement(int i);",
"org.landxml.schema.landXML11.CrashDataDocument.CrashData insertNewCrashData(int i);",
"public void insertAtStart(int val)\n\n {\n\n Node nptr = new Node(val, null, null); \n\n if(start == ... | [
"0.5167692",
"0.50976837",
"0.49992162",
"0.48559853",
"0.4841836",
"0.4839486",
"0.48306105",
"0.47883868",
"0.47716194",
"0.47107476",
"0.47099113",
"0.4694012",
"0.46142352",
"0.46142352",
"0.45871553",
"0.45735854",
"0.4561522",
"0.4552709",
"0.45325986",
"0.45312",
"0.45... | 0.5067216 | 2 |
Appends and returns a new empty value (as xml) as the last "scans" element | com.bagnet.nettracer.ws.core.pojo.xsd.WSScanPoints addNewScans(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String\ttoXML()\t{\n\t\treturn toXML(0);\n\t}",
"public String toXML()\n\t{\n\t\treturn toXML(0);\n\t}",
"public String toXML()\n\t{\n\t\treturn toXML(0);\n\t}",
"XomNode appendElement(Element element) throws XmlBuilderException;",
"@Override\n public StringBuilder createAccumulator() {\n re... | [
"0.55281717",
"0.5504928",
"0.5504928",
"0.5155814",
"0.5126222",
"0.50167197",
"0.5008754",
"0.49861532",
"0.49728525",
"0.49438208",
"0.49429202",
"0.49402124",
"0.48821527",
"0.48740485",
"0.4868243",
"0.48611948",
"0.48056212",
"0.4797747",
"0.47855738",
"0.47786406",
"0.... | 0.0 | -1 |
Removes the ith "scans" element | void removeScans(int i); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void remove() {\n\t itr.remove();\n\t size--;\n\t nextCount--;\n\t }",
"public void remove() {\n\t itr.remove();\n\t size--;\n\t nextCount--;\n\t }",
"public void remove() {\n elements[index] = null;\n ... | [
"0.65864784",
"0.65864784",
"0.64494574",
"0.642249",
"0.63887674",
"0.6177828",
"0.6154316",
"0.61312455",
"0.61181825",
"0.61136806",
"0.6051919",
"0.60339874",
"0.6029955",
"0.6018364",
"0.60067326",
"0.59983414",
"0.599637",
"0.59876037",
"0.5986648",
"0.5985148",
"0.5959... | 0.7267123 | 0 |
Gets the "tag" element | java.lang.String getTag(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getTag();",
"public String getFromTag();",
"public String getTag();",
"public String tag()\r\n {\r\n return this.tag;\r\n }",
"public String getTag()\n\t{\n\t\treturn tag;\n\t}",
"public String getTag()\n\t{\n\t\treturn tag;\n\t}",
"public String getTag()\n {\n return this... | [
"0.7965746",
"0.7898023",
"0.7844368",
"0.7607536",
"0.75882345",
"0.75882345",
"0.75525224",
"0.75385344",
"0.75385344",
"0.7503697",
"0.750207",
"0.7495144",
"0.7478381",
"0.7475448",
"0.735612",
"0.7334505",
"0.7282278",
"0.7247922",
"0.72359276",
"0.7212027",
"0.7131554",... | 0.83700645 | 1 |
Gets (as xml) the "tag" element | org.apache.xmlbeans.XmlString xgetTag(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getTag() {\r\n return new String(XML_TAG);\r\n }",
"public String getTag() {\n return new String(XML_TAG);\n }",
"public static String xmlTag() { return XMLTAG; }",
"public static String xmlTag() { return XMLTAG; }",
"public static String getXmltag() {\r\n\t\treturn xmltag;\r\n\t}",
... | [
"0.79339534",
"0.7928431",
"0.7649288",
"0.7649288",
"0.76334393",
"0.74141145",
"0.7394676",
"0.7394676",
"0.73902345",
"0.7109515",
"0.7108289",
"0.7009823",
"0.7007499",
"0.69729334",
"0.68191046",
"0.67962646",
"0.67853874",
"0.67853874",
"0.67840225",
"0.6749376",
"0.671... | 0.7615145 | 5 |
Tests for nil "tag" element | boolean isNilTag(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void assertStreamItemViewHasNoTag() {\n Object tag = mView.getTag();\n assertNull(\"should not have a tag\", tag);\n }",
"@Ignore\n @Test(expected = NullPointerException.class)\n public void failOnNullTag() throws Exception {\n }",
"public boolean isEmptyElementTag() {\r\n\t\t... | [
"0.70879436",
"0.67123187",
"0.65183353",
"0.6420463",
"0.63378054",
"0.61522764",
"0.6129428",
"0.6023838",
"0.6021174",
"0.5988193",
"0.59844464",
"0.59824705",
"0.5977553",
"0.59431636",
"0.5907728",
"0.58784664",
"0.5874089",
"0.5822757",
"0.57921463",
"0.5772232",
"0.574... | 0.75588477 | 0 |
True if has "tag" element | boolean isSetTag(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean hasTag(Tag tag);",
"boolean hasTigTag();",
"boolean hasTags();",
"public boolean isSetTag() {\n return this.tag != null;\n }",
"public boolean containsTag(String tagName);",
"boolean hasTagValue();",
"public boolean hasTags() {\n return isTagged();\n }",
"public int getHasTag() ... | [
"0.84018236",
"0.8239777",
"0.8061541",
"0.7830384",
"0.75926775",
"0.75133866",
"0.7393964",
"0.73469126",
"0.73083985",
"0.7279124",
"0.7248211",
"0.72332627",
"0.722022",
"0.71495885",
"0.709849",
"0.698881",
"0.6977332",
"0.6943227",
"0.6821935",
"0.6820119",
"0.6775221",... | 0.79697186 | 3 |
Sets the "tag" element | void setTag(java.lang.String tag); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setTag(Object tag)\n {\n fTag = tag;\n }",
"public void setTag(String tag);",
"public void setTag(String tagName, Object value);",
"public void setToTag(String tag) throws ParseException,NullPointerException;",
"public void setTag( String tag )\n {\n this.tag = tag;\n ... | [
"0.7948121",
"0.7937405",
"0.7916146",
"0.7801495",
"0.7557807",
"0.7444993",
"0.7342093",
"0.7342093",
"0.730135",
"0.7249093",
"0.7224077",
"0.713941",
"0.70487785",
"0.7033261",
"0.70098734",
"0.6897802",
"0.68966955",
"0.6867057",
"0.6815589",
"0.68132544",
"0.6709513",
... | 0.7870362 | 3 |
Sets (as xml) the "tag" element | void xsetTag(org.apache.xmlbeans.XmlString tag); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setTag(String tagName, Object value);",
"public void setToTag(String tag) throws ParseException,NullPointerException;",
"public void setTag(String tag);",
"void setTag(java.lang.String tag);",
"public void setTag(Object tag)\n {\n fTag = tag;\n }",
"public void setTag( String tag... | [
"0.7439464",
"0.7197707",
"0.7181972",
"0.7141809",
"0.7080885",
"0.6774644",
"0.66645384",
"0.66642505",
"0.6662597",
"0.65796465",
"0.6556268",
"0.6556268",
"0.6523865",
"0.651522",
"0.6490936",
"0.6468637",
"0.643161",
"0.64081186",
"0.63873106",
"0.63591003",
"0.634903",
... | 0.74593806 | 0 |
Nils the "tag" element | void setNilTag(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic Tag getTag() {\n\t\treturn null;\n\t}",
"public static Tag emptyTag() {\n\t\treturn new Tag(NAME, \"\");\n\t}",
"private void clearHasTag() {\n \n hasTag_ = 0;\n }",
"void unsetTag();",
"boolean isNilTag();",
"@objid (\"002ff058-0d4f-10c6-842f-001ec947cd2a\")\n @Override... | [
"0.7372113",
"0.7116523",
"0.6857164",
"0.6781757",
"0.67446923",
"0.6692234",
"0.65835327",
"0.64562225",
"0.63903487",
"0.63576615",
"0.6273758",
"0.6249805",
"0.62474793",
"0.61707395",
"0.6103479",
"0.6084192",
"0.60669774",
"0.6059483",
"0.6054281",
"0.59994704",
"0.5951... | 0.7198745 | 1 |
Unsets the "tag" element | void unsetTag(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void unsetTag(String tagName);",
"public Builder clearTag() {\n \n tag_ = getDefaultInstance().getTag();\n onChanged();\n return this;\n }",
"private void clearHasTag() {\n \n hasTag_ = 0;\n }",
"public Builder clearTag() {\n if (tagBuilder_ == null) {\n t... | [
"0.78713644",
"0.7343981",
"0.72355247",
"0.6791388",
"0.6736476",
"0.6715902",
"0.66409916",
"0.66138935",
"0.65305793",
"0.6446266",
"0.6435824",
"0.637586",
"0.6299436",
"0.62548035",
"0.6233025",
"0.61704373",
"0.61605316",
"0.61576796",
"0.613309",
"0.6113752",
"0.611372... | 0.8468464 | 0 |
it will return the available products | @RequestMapping(value ="/customer/product", method = RequestMethod.GET)
public String showAvailableProducts(ModelMap model){
logger.info("*** OrderController - showAvailableProducts ***");
List<Product> products = productService.getAllProducts();
model.put("products",products);
return "customer_product_list";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Product getPProducts();",
"public Set<String> getAvailableProducts() {\n\t\treturn availableProducts.keySet();\n\t}",
"private void getAllProducts() {\n }",
"public List<Product> getProducts();",
"public List<Product> getProducts();",
"List<Product> getProductsList();",
"List<Product> getAllProducts... | [
"0.73681587",
"0.72232485",
"0.7163667",
"0.7012417",
"0.7012417",
"0.6983673",
"0.69392115",
"0.69392115",
"0.69392115",
"0.691621",
"0.69062793",
"0.6843926",
"0.6816209",
"0.6799614",
"0.67068964",
"0.6658508",
"0.6593215",
"0.6587911",
"0.65770984",
"0.6564236",
"0.653040... | 0.67486465 | 14 |
It will initiate the order | @RequestMapping(value ="/customer/buy_now", method = RequestMethod.POST)
public String initiateOrder(@RequestParam("pcode") String code,Order order, ModelMap model) {
logger.info("*** OrderController - initiateOrder ***");
String username = "BookMan";
Product product = productService.getProduct(code);
order.setProduct(product);
order.setStatus("initiated");
order.setCustomerName(username);
order.setOrderDate(new Date());
order.setBill(order.getQuantity()*product.getPrice());
Order orderInserted = orderService.newOrder(order);
model.addAttribute("order",orderInserted);
return "customer_shipping_details";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void placeOrder() {\n\t\t\n\t}",
"public void startOrder() {\r\n this.o= new Order();\r\n }",
"public void incrementOrder() {\n mOrder++;\n }",
"public ApplyOrder() {\n super();\n }",
"void setOrder(int order){\r\n\t\t\tthis.order = order;\r\n\t\t}",
"void ne... | [
"0.7639575",
"0.7591024",
"0.74387366",
"0.7391345",
"0.7301877",
"0.7131557",
"0.7125701",
"0.7125701",
"0.6972215",
"0.6958887",
"0.69530284",
"0.6942767",
"0.6904551",
"0.6904551",
"0.687128",
"0.6869387",
"0.68582726",
"0.6849002",
"0.6761361",
"0.6755586",
"0.6741873",
... | 0.0 | -1 |
It will place the Order | @RequestMapping(value ="/customer/place_order", method = RequestMethod.POST)
public String placeOrder(ModelMap model, Order order, @RequestParam("code") String code) {
logger.info("*** OrderController - placeOrder ***");
Product product = productService.getProduct(code);
order.setProduct(product);
order.setStatus("completed");
order.setOrderDate(new Date());
Order completedOrder = orderService.placeOrder(order);
if(!completedOrder.equals(null)){
productService.updateInventory(product,order.getQuantity());
}
model.addAttribute("completedOrder", completedOrder);
return "success";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void placeOrder() {\n\t\t\n\t}",
"public void placeOrder(TradeOrder order)\r\n {\r\n brokerage.placeOrder(order);\r\n }",
"public void orderPlace() {\n Log.d(\"Method\", \"orderPlaced()\");\n\n if (coffeeCount < getResources().getInteger(R.integer.min_coffee)) {\n... | [
"0.8468971",
"0.751031",
"0.7493532",
"0.7417577",
"0.73407507",
"0.7293693",
"0.72426575",
"0.7240943",
"0.7240943",
"0.72258663",
"0.7151855",
"0.71341854",
"0.71067333",
"0.70939726",
"0.7090334",
"0.70706254",
"0.7043987",
"0.7043987",
"0.70391434",
"0.70253265",
"0.70186... | 0.0 | -1 |
It will get the order status | @RequestMapping(value ="/order_status", method = RequestMethod.GET)
public String orderStatus(ModelMap model){
logger.info("*** OrderController - orderStatus ***");
String customerName = "BookMan";
List<Order> orderHistoryList= orderService.findOrderHistory(customerName);
model.put("orderHistory",orderHistoryList);
return "order_history";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String\t\tgetOrderStatus();",
"public OrderStatus getStatus() {\n return this.status;\n }",
"public Boolean getOrderStatus() {\n return orderStatus;\n }",
"public Byte getOrderStatus() {\n return orderStatus;\n }",
"io.opencannabis.schema.commerce.CommercialOrder.OrderStatus ... | [
"0.8527004",
"0.8252356",
"0.8166369",
"0.79934484",
"0.79334766",
"0.79334766",
"0.7825975",
"0.77629936",
"0.77439183",
"0.75872886",
"0.74966395",
"0.7129314",
"0.7071694",
"0.69913554",
"0.6933846",
"0.68757",
"0.6851778",
"0.6827697",
"0.68148595",
"0.67526126",
"0.67526... | 0.0 | -1 |
It will initiate the refund | @RequestMapping(value ="/refund_order", method = RequestMethod.GET)
public String refundOrder(ModelMap model, @RequestParam("id") String orderId, RedirectAttributes redirectAttributes){
logger.info("*** OrderController - refundOrder ***");
Order order = orderService.getOrder(orderId);
boolean isRefunded = orderService.processRefund(order);
if(isRefunded) {
redirectAttributes.addFlashAttribute("message", "Refund initiated successfully");
return "redirect:/order_status";
}
redirectAttributes.addFlashAttribute("message", "Order cannot be refunded !!");
return "redirect:/order_status";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n public void refund() {\r\n vend.setCurrState(\"Refunding\");\r\n vend.refund();\r\n\r\n }",
"BrainTreeRefundTransactionResult refundTransaction(BrainTreeRefundTransactionRequest request);",
"public void refund(HashMap<String, String> params) {\n\t\tTRANSACTION_TYPE = \"REFUND\... | [
"0.7786409",
"0.69431394",
"0.6744452",
"0.66062135",
"0.6554323",
"0.6538976",
"0.6440846",
"0.63684314",
"0.6345089",
"0.6338099",
"0.62872887",
"0.6198203",
"0.6071878",
"0.6071065",
"0.60081464",
"0.5926172",
"0.58802915",
"0.5866038",
"0.5848352",
"0.5816646",
"0.579265"... | 0.58335817 | 19 |
Generate the next Fibonacci number. | public long next() {
long ret = prev;
prev = current;
current = ret + current;
return ret;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public BigInteger nextFibonacci() {\n if (this.data.size() == 0) {\n // Base case: zero.\n this.data.add(new BigInteger(\"0\"));\n } else if (this.data.size() == 1) {\n // Base case: one.\n this.data.add(new BigInteger(\"1\"));\n } else {\n ... | [
"0.8178455",
"0.7603196",
"0.75543976",
"0.73102957",
"0.7274185",
"0.72104216",
"0.71939176",
"0.71837443",
"0.71679044",
"0.7166018",
"0.7152725",
"0.71485806",
"0.71106184",
"0.7104867",
"0.70687747",
"0.70638853",
"0.7017721",
"0.6997751",
"0.699409",
"0.69790006",
"0.697... | 0.0 | -1 |
Constructs a notch filter with the requested center frequency, bandwidth and sample rate. | public CCNotchFilter(double freq, double bandWidth, double sampleRate) {
super(freq, sampleRate);
setBandWidth(bandWidth);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public SawLPFInstRT(int sampleRate, int filterCutoff){\r\n\t\tthis.sampleRate = sampleRate;\r\n\t\tthis.filterCutoff = filterCutoff;\r\n\t\tthis.channels = 1;\r\n\t}",
"public BiQuadraticFilter(FilterType type, double center_freq, double sample_rate, double Q) {\n configure(type, center_freq, sample_rate,... | [
"0.6048649",
"0.5872124",
"0.551045",
"0.54762024",
"0.53756696",
"0.5374435",
"0.53633255",
"0.5262476",
"0.5252525",
"0.5212336",
"0.5191252",
"0.5176512",
"0.51568186",
"0.5153371",
"0.51355284",
"0.51209134",
"0.511468",
"0.51103455",
"0.50975037",
"0.5097459",
"0.5083273... | 0.73032624 | 0 |
Sets the band width of the filter. | public void setBandWidth(double b) {
bw = b / _mySampleRate;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setBandWidth(BigDecimal bandWidth) {\r\n this.bandWidth = bandWidth;\r\n }",
"public void setBandWidth(double value, int subsystem) {\n _avTable.set(ATTR_BANDWIDTH, value, subsystem);\n }",
"public void setBandWidth(String value, int subsystem) {\n setBandWidth(Format.toD... | [
"0.7053288",
"0.7034054",
"0.6852842",
"0.6706653",
"0.65610087",
"0.6468401",
"0.6414639",
"0.6410181",
"0.6399324",
"0.63789755",
"0.63608885",
"0.63600934",
"0.6339661",
"0.6338832",
"0.63345855",
"0.63240975",
"0.63229203",
"0.6318729",
"0.63045245",
"0.6232995",
"0.62210... | 0.70304585 | 2 |
Returns the band width of this filter. | public double getBandWidth() {
return bw * _mySampleRate;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public BigDecimal getBandWidth() {\r\n return bandWidth;\r\n }",
"public double getFeBandWidth() {\n return _avTable.getDouble(ATTR_FE_BANDWIDTH, 0.0);\n }",
"public double getBandWidth(int subsystem) {\n double bandwidth = _avTable.getDouble(ATTR_BANDWIDTH, subsystem, 0.0);\n ... | [
"0.8044463",
"0.71068096",
"0.7000278",
"0.66164577",
"0.6554552",
"0.6549572",
"0.6465452",
"0.6435587",
"0.6435587",
"0.6435587",
"0.6427881",
"0.6407993",
"0.640014",
"0.63820803",
"0.63629663",
"0.63496107",
"0.63496107",
"0.63496107",
"0.63382864",
"0.6322631",
"0.632203... | 0.83267903 | 0 |
Truy an khong tra ket qua: CREATE,UPDATE... | public void QuerryData(String sql){
SQLiteDatabase database = getWritableDatabase();
database.execSQL(sql);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Update createUpdate();",
"private void updateDB() {\n }",
"public void crear() {\n con = new Conexion();\n con.setInsertar(\"insert into lenguajes_programacion (nombre, fecha_creacion, estado) values ('\"+this.getNombre()+\"', '\"+this.getFecha_creacion()+\"', 'activo')\");\n }",
"@Overri... | [
"0.6827185",
"0.6359634",
"0.62398213",
"0.6061025",
"0.59833807",
"0.5980689",
"0.59765744",
"0.594279",
"0.5885396",
"0.5874457",
"0.5869882",
"0.5843058",
"0.58259064",
"0.58126825",
"0.57845503",
"0.57754976",
"0.5769887",
"0.5764907",
"0.57589567",
"0.5757471",
"0.574547... | 0.0 | -1 |
Truy van tra ket qua SELECT... | public Cursor getData(String sql){
SQLiteDatabase database = getReadableDatabase();
return database.rawQuery(sql,null);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"SELECT createSELECT();",
"protected T selectImpl(String sql, String... paramentros) {\n\t\tCursor cursor = null;\n\t\ttry {\n\t\t\tcursor = BancoHelper.db.rawQuery(sql, paramentros);\n\t\t\t\n\t\t\tif (cursor.getCount() > 0 && cursor.moveToFirst()) {\n\t\t\t\treturn fromCursor(cursor);\n\t\t\t}\n\n\t\t\tthrow ne... | [
"0.709789",
"0.6526705",
"0.63426536",
"0.6217488",
"0.619568",
"0.6142821",
"0.6131769",
"0.61070216",
"0.6097577",
"0.6080001",
"0.60097975",
"0.59772605",
"0.59747374",
"0.5967378",
"0.5962866",
"0.5954888",
"0.5946137",
"0.5934264",
"0.59282285",
"0.5895585",
"0.5895134",... | 0.0 | -1 |
private static DispatchingProperties handler = null; | DispatchingProperties() {
super();
// if (handler != null) {
// throw new
// RuntimeException("ServicePropertiesHandler: class already instantiated!");
// }
// handler = this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static DispatchingProperties getInstance() {\r\n\t\t// if (handler == null) {\r\n\t\t// handler = new DispatchingProperties();\r\n\t\t// }\r\n\t\t// return handler;\r\n\t\treturn (DispatchingProperties) Properties.forClassName(Properties.DISPATCHING_PROPERTIES_HANDLER_CLASS);\r\n\t}",
"@ClientConfig(JsonM... | [
"0.7347574",
"0.6833439",
"0.63202924",
"0.6254062",
"0.6254062",
"0.62055254",
"0.6085619",
"0.5988286",
"0.5981701",
"0.5955058",
"0.59176886",
"0.5914712",
"0.5913042",
"0.5887286",
"0.58802503",
"0.5829941",
"0.5819086",
"0.57727593",
"0.5771776",
"0.5722024",
"0.5722024"... | 0.76803565 | 0 |
Gets instance of dispatching properties. | public static DispatchingProperties getInstance() {
// if (handler == null) {
// handler = new DispatchingProperties();
// }
// return handler;
return (DispatchingProperties) Properties.forClassName(Properties.DISPATCHING_PROPERTIES_HANDLER_CLASS);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public final Properties getPropertiesObject()\n {\n return fProp;\n }",
"Property getProperty();",
"Property getProperty();",
"public Properties getProperty() {\r\n return properties;\r\n }",
"public static PropertyUtil getInstance(){\t\t\n\t\tif(resource==null){\n\t\t\tresource = ne... | [
"0.6135157",
"0.60876304",
"0.60876304",
"0.60410106",
"0.5945684",
"0.5787636",
"0.5768529",
"0.57281727",
"0.56847966",
"0.5629251",
"0.56115854",
"0.5566754",
"0.55542517",
"0.552307",
"0.552123",
"0.5513486",
"0.55091774",
"0.5488682",
"0.5484748",
"0.5470196",
"0.5454063... | 0.78688276 | 0 |
Gets time until request will timeout, if no response is received. | public int getResponseWaitTime() {
return responseWaitTime;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getResponseTimeNsec();",
"public int getTimeout();",
"long getTimeout();",
"int getTimeout();",
"private void checkTimeout() {\n/* 169 */ if (this.socket != null) {\n/* */ \n/* 171 */ long i = this.keepaliveTimeoutMs;\n/* */ \n/* 173 */ if (this.listRequests.size() >... | [
"0.73397994",
"0.7241042",
"0.7227706",
"0.72034425",
"0.70536786",
"0.6999004",
"0.69704264",
"0.6962321",
"0.6889008",
"0.6883967",
"0.68066305",
"0.68011",
"0.67071664",
"0.67023057",
"0.66998416",
"0.66771567",
"0.6623039",
"0.6615277",
"0.660834",
"0.6511055",
"0.6467230... | 0.64982116 | 20 |
Sets time until request will timeout, if no response is received. | public void setResponseWaitTime(int responseWaitTime) {
this.responseWaitTime = responseWaitTime;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setTimedOut() {\n\t\tthis.timedOut.set(true);\n\t}",
"public void setResponseTimeOut(int timeOut)\n {\n fResponseTimeOut = timeOut;\n }",
"@Override\n protected void onRequestTimeout(Tuple request) {\n }",
"protected void setTimeout() {\r\n\t\tTimeout timeout = new Tim... | [
"0.688445",
"0.67850095",
"0.6698147",
"0.6687946",
"0.6654187",
"0.66359913",
"0.6626198",
"0.65838015",
"0.6572797",
"0.65478253",
"0.6521391",
"0.6423225",
"0.64213127",
"0.6407201",
"0.64054704",
"0.64014244",
"0.6379402",
"0.6357512",
"0.63545406",
"0.6337452",
"0.633443... | 0.0 | -1 |
Gets size of message id buffer. The buffer is used to ignore multiple received udp messages. | public int getMessageIdBufferSize() {
return msgIdBufferSize;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int size() { return buffer.length; }",
"public int getReceiveBufferSize() {\n return soRcvBuf;\n }",
"public int getBufferSize() {\n\t\treturn buffer.length;\n\t}",
"public int getMessageIdCount() {\n return messageId_.size();\n }",
"public void setMessageIdBufferSize(int msgIdBuff... | [
"0.6648511",
"0.6608338",
"0.64392644",
"0.6154838",
"0.6140418",
"0.61139953",
"0.60217637",
"0.60026115",
"0.59509647",
"0.5916576",
"0.58626235",
"0.58384013",
"0.58029157",
"0.5792464",
"0.57580256",
"0.5753231",
"0.5733751",
"0.5705315",
"0.5648921",
"0.564354",
"0.55867... | 0.76273584 | 0 |
Sets size of message id buffer. The buffer is used to ignore multiple received udp messages. | public void setMessageIdBufferSize(int msgIdBufferSize) {
this.msgIdBufferSize = msgIdBufferSize;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getMessageIdBufferSize() {\r\n\t\treturn msgIdBufferSize;\r\n\t}",
"@Override\n\tpublic void setBufferSize(int size) {\n\t}",
"void setStreamBuffer(int size) {\r\n\t\tif(size>0)\r\n\t\t\tbuffer = new byte[size];\r\n\t\telse\r\n\t\t\tbuffer = new byte[this.size];\r\n\t}",
"void setBufferSize(int bu... | [
"0.6709499",
"0.6240719",
"0.61502796",
"0.60147595",
"0.58615047",
"0.5855282",
"0.5737563",
"0.5706291",
"0.56665385",
"0.5653937",
"0.5642856",
"0.5630501",
"0.5519017",
"0.55082995",
"0.5494251",
"0.5483438",
"0.547116",
"0.54426473",
"0.5433611",
"0.54329497",
"0.5423533... | 0.77169883 | 0 |
Is a device reference created for each recognized remote device. | public boolean isDeviceReferenceAutoBuild() {
return this.deviceReferenceAutoBuild;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Reference getDevice();",
"public org.hl7.fhir.ResourceReference addNewDevice()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.ResourceReference target = null;\n target = (org.hl7.fhir.ResourceReference)get_store().add_element_user(DEVICE$12... | [
"0.6483658",
"0.59920776",
"0.58155024",
"0.57850355",
"0.57469624",
"0.5735045",
"0.5569769",
"0.55614567",
"0.55599844",
"0.55599844",
"0.5546386",
"0.5518082",
"0.5516832",
"0.54831016",
"0.5465464",
"0.54359347",
"0.54306716",
"0.54225624",
"0.54032755",
"0.54015684",
"0.... | 0.635023 | 1 |
Sets if a device reference should be created for each recognized remote device. | public void setDeviceReferenceAutoBuild(boolean deviceReferenceAutoBuild) {
this.deviceReferenceAutoBuild = deviceReferenceAutoBuild;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void syncConnectedDeviceId(String newDeviceId, boolean isReference) {\n // Add the newly connected device id\n Map<Object, Object> devicesMap = new HashMap<>((Map<?, ?>) getEcologyDataSync().getData\n (\"devices\"));\n devicesMap.put(newDeviceId, isReference);\n g... | [
"0.59470177",
"0.5784595",
"0.57591575",
"0.57065237",
"0.5647484",
"0.5619921",
"0.5539236",
"0.5469969",
"0.5395595",
"0.5350113",
"0.5341969",
"0.53068376",
"0.5288233",
"0.5242949",
"0.5206463",
"0.5204506",
"0.520242",
"0.5178946",
"0.5176069",
"0.51623106",
"0.5155372",... | 0.57596636 | 2 |
Given a Scanner as input, returns a List of strings read from the Scanner. The method should read words from the Scanner until there are no more words in the file (i.e. inScanner.hasNext() is false). The list of strings should be returned to the calling program. | public static ArrayList<String> getList(Scanner inScanner) {
// Fill in the body
ArrayList<String> list = new ArrayList<String>();
return list;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void readFile()\n {\n Scanner sc2 = new Scanner(System.in);\n try {\n sc2 = new Scanner(new File(\"src/main/java/ex45/exercise45_input.txt\"));\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n while (sc2.hasNextLine()) {\n Sca... | [
"0.7006206",
"0.67089236",
"0.6565143",
"0.6545659",
"0.6326068",
"0.62791395",
"0.6269301",
"0.6262719",
"0.6248671",
"0.6235163",
"0.6198403",
"0.6120566",
"0.6110715",
"0.610993",
"0.6082487",
"0.6008463",
"0.6002227",
"0.599896",
"0.5984683",
"0.5966679",
"0.5962765",
"... | 0.62474376 | 9 |
Given two strings as input, compares if the first string (guess) equals the second string (solution). If the two strings are not exactly the same, return false. Otherwise return true. | public static boolean checkWord(String guess, String solution) {
if(guess.equals(solution)) {
return true;
}else {
return false;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Boolean solution(String s1, String s2){\n\t\t\n\t\tint k = s1.length();\n\t\tchar[] input1 = s1.toCharArray();\n\t\t\n\t\tint m =0 ,count=0;\n\t\t\n\t\twhile(m < s2.length()-1){\n\t\t\t\n\t\tchar[] temp1 = s2.substring(m, m+k).toCharArray();\n\t\t\t\n\t\t\tfor(int i=0; i<s1.length(); i++){\n\t\t\t\tfor(int... | [
"0.7386728",
"0.72108305",
"0.69548005",
"0.6884903",
"0.6884799",
"0.6772059",
"0.67182106",
"0.6694599",
"0.6647175",
"0.66400564",
"0.65090203",
"0.64873177",
"0.64521575",
"0.6433111",
"0.6396158",
"0.6395247",
"0.63885325",
"0.63866156",
"0.63835716",
"0.62856674",
"0.62... | 0.6368507 | 19 |
Given a String[] of strings as input, randomly selects one of the strings in the list and returns it to the calling program. | public static String getRandomWord(String[][] inList, int level) {
Random generator = new Random();
int cols = generator.nextInt(inList[level].length);
return inList[level][cols];
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static String pickRandom(String[] stringArray) {\n\n Random random = new Random();\n int nameIndex = random.nextInt(stringArray.length);\n return stringArray[nameIndex];\n }",
"protected String random(String array[]) {\n\t\tRandom generator = new Random();\n\t\tint randomIndex = g... | [
"0.76548314",
"0.7155127",
"0.68059444",
"0.6484336",
"0.64475775",
"0.62447155",
"0.62425804",
"0.62063706",
"0.6081272",
"0.6024383",
"0.5995244",
"0.59410757",
"0.5861214",
"0.58460706",
"0.5809108",
"0.5793377",
"0.57295704",
"0.5718896",
"0.57102317",
"0.57083374",
"0.56... | 0.5103889 | 81 |
Given a Scanner as input, prompt the user to enter a character. If the character enters anything other than a single character provide an error message and ask the user to input a single character. Otherwise return the single character to the calling program. | public static char getCharacterGuess(Scanner inScanner, String word) {
boolean flag = true;
String guess;
String ints = "1 2 3 4 5 6 7 8 9";
do {
System.out.print("Please enter a character or enter 0 for a word guess: ");
guess = inScanner.nextLine();
if(guess.length() < 2 && (!ints.contains(guess)) && !guess.equals("0")) {
flag = false;
}else if(guess.equals("0")) {
flag = false;
}else if(ints.contains(guess)) {
System.out.println("NOT INTS BRO");
}
else {
System.out.println("Only one character please");
}
}while(flag);
return guess.charAt(0);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static char inputChar(String p) {\n String c;\n while (true) {\n System.out.print(p);\n c = in.nextLine();\n if (c.length() == 1) {\n return c.charAt(0);\n } else {\n System.err.print(\"Must enter character, enter again!... | [
"0.7468625",
"0.7348335",
"0.68353057",
"0.66941786",
"0.6637825",
"0.661969",
"0.6576425",
"0.6564529",
"0.6530899",
"0.6520359",
"0.6517663",
"0.6474168",
"0.6447082",
"0.6442002",
"0.63624614",
"0.63275295",
"0.6314171",
"0.6281238",
"0.6176247",
"0.61663795",
"0.61467594"... | 0.63764554 | 14 |
Given a String, return a String that is the exact same length but consists of nothing but '' characters. For example, given the String DOG as input, return the string | public static String starWord(String inWord) {
String word = "";
for(int i = 0; i < inWord.length(); i ++) {
if(inWord.charAt(i) == ' ') {
word += " ";
}else {
word += "*";
}
}
return word;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static String super_reduced_string(String s) {\n if (s.equals(\"\")) return \"Empty String\";\n\n StringBuffer buffer = new StringBuffer(s);\n for (int i = 1; i < buffer.length(); i++) {\n if (buffer.charAt(i) == buffer.charAt(i - 1)) {\n // Delete both if they are th... | [
"0.635506",
"0.62476546",
"0.60653037",
"0.5866953",
"0.5823442",
"0.5698993",
"0.5671638",
"0.56244284",
"0.5621971",
"0.5605769",
"0.5574738",
"0.5556192",
"0.5554768",
"0.55517113",
"0.55517113",
"0.55241793",
"0.54594547",
"0.5454116",
"0.54360276",
"0.5428105",
"0.542618... | 0.0 | -1 |
Given a character and a String, return the count of the number of times the character occurs in that String. | public static int checkChar(char guessChar, String guessWord) {
int sum = 0;
for(int i = 0; i < guessWord.length(); i++) {
if(guessWord.charAt(i) == guessChar) {
sum++;
}
}
return sum;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static int char_count(String y, char c){\r\n\tint count = 0;\r\n\tfor(int i = 0; i < y.length(); i++){\r\n\t\tif(y.charAt(i) == c){\r\n\t\t\tcount++;\r\n\t\t}\r\n\t}\r\n\treturn count;\r\n}",
"private static int countOccurrences(String input, char c) {\n int count = 0;\n for (int i = 0; i < ... | [
"0.8034501",
"0.78203666",
"0.77162766",
"0.7622529",
"0.76140326",
"0.7532813",
"0.7494852",
"0.7463116",
"0.73446286",
"0.7338715",
"0.7310325",
"0.73027784",
"0.72644186",
"0.71754867",
"0.71348625",
"0.7096092",
"0.7074329",
"0.6995627",
"0.69861627",
"0.6938961",
"0.6932... | 0.62910044 | 58 |
Given a character, a String containing a word, and a String containing a 'starred' version of that word, return a new String that is a modified version of the 'starred' string where characters equal to the character inChar are uncovered. For example, given the following call: modfiyGuess('G',"GEOLOGY", "OOY") This functions should return the String "GOOGY". | public static String modifyGuess(char inChar, String word, String starredWord) {
String starWord = starredWord;
for(int i = 0; i < word.length(); i++) {
if(word.charAt(i) == inChar) {
starWord = starWord.substring(0,i) + word.charAt(i) + starWord.substring(i+1,starWord.length());
//System.out.println(starWord.substring(i,starWord.length()-1));
}
}
//System.out.println(starWord);
return starWord;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String starWord(String inWord) {\n\t\tString word = \"\";\n\t\tfor(int i = 0; i < inWord.length(); i ++) {\n\t\t\tif(inWord.charAt(i) == ' ') {\n\t\t\t\tword += \" \";\n\t\t\t}else {\n\t\t\t\tword += \"*\";\n\t\t\t}\n\t\t}\n\t\treturn word;\n\t}",
"public static char getGuess(char[] asterisks){\n\t... | [
"0.6489272",
"0.6104728",
"0.5873029",
"0.584283",
"0.5806129",
"0.57899976",
"0.5736087",
"0.5720316",
"0.5617727",
"0.557411",
"0.5454668",
"0.5430841",
"0.5395265",
"0.53881335",
"0.5348834",
"0.5321372",
"0.5290859",
"0.5287469",
"0.52475363",
"0.52155906",
"0.5210059",
... | 0.85195595 | 0 |
Defer destroying the window to avoid a crash when using a native dialog (like a file chooser). | void setDeferredClosing(boolean dc) {
deferredClosing = dc;
if (!deferredClosing && closingRequested) {
close();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void closeDialog() { setVisible(false); dispose(); }",
"private void quitDialog() {\r\n\t\tdispose();\r\n\t}",
"public void closeWindow() {\n isCancelled = true;\n dialogStage.close();\n }",
"public void dispose() {\n synchronized (getTreeLock()) {\n if (inputCont... | [
"0.7025515",
"0.6986603",
"0.6792604",
"0.6792487",
"0.67409605",
"0.66819394",
"0.6663512",
"0.6617736",
"0.65995884",
"0.6555837",
"0.65316427",
"0.65312606",
"0.65312606",
"0.65312606",
"0.65312606",
"0.65312606",
"0.65312606",
"0.65312606",
"0.65312606",
"0.6525421",
"0.6... | 0.0 | -1 |
REVIEW: Do we need stubShort and stubFirst flags? Constructor from the details. The business day conventions, endofmonth and spot lag are from the Ibor index. | public GeneratorSwapFixedIbor(String name, Period fixedLegPeriod, DayCount fixedLegDayCount, IborIndex iborIndex) {
super(name);
Validate.notNull(fixedLegPeriod, "fixed leg period");
Validate.notNull(fixedLegDayCount, "fixed leg day count");
Validate.notNull(iborIndex, "ibor index");
_fixedLegPeriod = fixedLegPeriod;
_fixedLegDayCount = fixedLegDayCount;
_iborIndex = iborIndex;
// _name = iborIndex.getCurrency().toString() + iborIndex.getTenor().toString() + fixedLegPeriod.toString();
_businessDayConvention = iborIndex.getBusinessDayConvention();
_endOfMonth = iborIndex.isEndOfMonth();
_spotLag = iborIndex.getSpotLag();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private BusinessDateUtility() {\n\t}",
"public mbvBoletinPeriodo() {\r\n }",
"public GeneratorSwapFixedIbor(String name, Period fixedLegPeriod, DayCount fixedLegDayCount, IborIndex iborIndex, final BusinessDayConvention businessDayConvention, final boolean endOfMonth,\n final int spotLag) {\n super(... | [
"0.57036924",
"0.5505375",
"0.54492265",
"0.5346968",
"0.5167033",
"0.5146468",
"0.5121054",
"0.5112682",
"0.5071898",
"0.5051771",
"0.50469583",
"0.5035392",
"0.50009674",
"0.5000106",
"0.49975365",
"0.4996814",
"0.49679416",
"0.4945355",
"0.494414",
"0.49329674",
"0.4926699... | 0.0 | -1 |
Constructor from the details. The business day conventions, endofmonth and spot lag are from the Ibor index. | public GeneratorSwapFixedIbor(String name, Period fixedLegPeriod, DayCount fixedLegDayCount, IborIndex iborIndex, final BusinessDayConvention businessDayConvention, final boolean endOfMonth,
final int spotLag) {
super(name);
Validate.notNull(fixedLegPeriod, "fixed leg period");
Validate.notNull(fixedLegDayCount, "fixed leg day count");
Validate.notNull(iborIndex, "ibor index");
_fixedLegPeriod = fixedLegPeriod;
_fixedLegDayCount = fixedLegDayCount;
_iborIndex = iborIndex;
// _name = iborIndex.getCurrency().toString() + iborIndex.getTenor().toString() + fixedLegPeriod.toString();
_businessDayConvention = businessDayConvention;
_endOfMonth = endOfMonth;
_spotLag = spotLag;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Forecastday() {\n }",
"public mbvBoletinPeriodo() {\r\n }",
"public DayPeriod() {\n\t}",
"public CinemaDate() {\n }",
"private BusinessDateUtility() {\n\t}",
"public CalendarBasi()\n {\n dia = new DisplayDosDigitos(31);\n mes = new DisplayDosDigitos(13);\n anio = n... | [
"0.61094135",
"0.5817202",
"0.57971025",
"0.5790953",
"0.576265",
"0.570463",
"0.567899",
"0.56181324",
"0.5501611",
"0.5480472",
"0.54474014",
"0.54446626",
"0.54306597",
"0.53495663",
"0.52860475",
"0.5278388",
"0.5270211",
"0.52635103",
"0.5259885",
"0.52446526",
"0.523391... | 0.55528474 | 8 |
Gets the _fixedLegPeriod field. | public Period getFixedLegPeriod() {
return _fixedLegPeriod;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Period getFixedLegPeriod() {\n return _index.getFixedLegPaymentTenor().getPeriod();\n }",
"public DayCount getFixedLegDayCount() {\n return _fixedLegDayCount;\n }",
"public Long getPeriod() {\n return this.Period;\n }",
"public org.hl7.fhir.Period getPeriod()\n {\n synchron... | [
"0.85428023",
"0.6706631",
"0.66260624",
"0.63134503",
"0.62603736",
"0.6226785",
"0.6183305",
"0.615328",
"0.6141845",
"0.6133108",
"0.60976577",
"0.60475224",
"0.6031363",
"0.6030895",
"0.6028194",
"0.60268015",
"0.59920293",
"0.5987089",
"0.5987089",
"0.5987089",
"0.598708... | 0.8931024 | 0 |
Gets the _fixedLegDayCount field. | public DayCount getFixedLegDayCount() {
return _fixedLegDayCount;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public DayCount getFixedLegDayCount() {\n return _index.getFixedLegDayCount();\n }",
"public DayCount getDayCount() {\n return dayCount;\n }",
"public java.lang.Integer getNoOfDays () {\n\t\treturn noOfDays;\n\t}",
"public java.lang.Integer getNoOfDays () {\n\t\treturn noOfDays;\n\t}",
"public stat... | [
"0.8637261",
"0.67125434",
"0.6702774",
"0.6702774",
"0.65701115",
"0.64663637",
"0.6359153",
"0.63258183",
"0.6311915",
"0.6300852",
"0.61230963",
"0.6072868",
"0.6065107",
"0.6025801",
"0.59599024",
"0.59328496",
"0.59253407",
"0.5917884",
"0.5917839",
"0.5906671",
"0.58755... | 0.8805075 | 0 |
Gets the _iborIndex field. | public IborIndex getIborIndex() {
return _iborIndex;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public IborIndex getIborIndex() {\n //TODO think about this\n return _swapGenerator.getIborIndex();\n }",
"public DBField getAutoIndexField()\n {\n return this.getField(DBRecordKey.FLD_autoIndex);\n }",
"public int getIndex()\n {\n return getInt(\"Index\");\n }",
"@JsOverlay\... | [
"0.7385278",
"0.63890356",
"0.63782096",
"0.63201374",
"0.62976277",
"0.62838054",
"0.62751055",
"0.6251939",
"0.62473005",
"0.6241283",
"0.623662",
"0.623662",
"0.62311846",
"0.62311846",
"0.62311846",
"0.62311846",
"0.62311846",
"0.62311846",
"0.62148744",
"0.6214375",
"0.6... | 0.8154829 | 0 |
Gets the generator currency. | public Currency getCurrency() {
return _iborIndex.getCurrency();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Currency getCurrency();",
"public Pokemon.Currency getCurrency() {\n if (currencyBuilder_ == null) {\n return currency_;\n } else {\n return currencyBuilder_.getMessage();\n }\n }",
"public java.lang.String getCurrency() {\r\n return currency;\r\n }",
"pu... | [
"0.74058026",
"0.7199215",
"0.7087104",
"0.70629853",
"0.70594394",
"0.7055677",
"0.7041491",
"0.700677",
"0.70003736",
"0.70003736",
"0.70003736",
"0.70003736",
"0.69969076",
"0.6954367",
"0.69510055",
"0.68870056",
"0.6853578",
"0.682806",
"0.6812327",
"0.6795212",
"0.67927... | 0.6605667 | 32 |
Gets the generator calendar. | public Calendar getCalendar() {
return _iborIndex.getCalendar();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Calendar getCalendar();",
"public Calendario getCalendar(){\r\n\t\treturn calendar;\r\n\t}",
"public BwCalendar getCalendar() {\n if (calendar == null) {\n calendar = new BwCalendar();\n }\n\n return calendar;\n }",
"public Calendar getCalendar() {\n return _calendar;\n }",
"public Calen... | [
"0.7406017",
"0.7213662",
"0.71752185",
"0.7078805",
"0.7077425",
"0.7057977",
"0.7035547",
"0.6959835",
"0.68784374",
"0.68557805",
"0.67674094",
"0.66908646",
"0.6513034",
"0.64497566",
"0.63898593",
"0.6331979",
"0.6308817",
"0.62849665",
"0.6257809",
"0.6236805",
"0.62117... | 0.6873089 | 9 |
Gets the swap generator business day convention. | public BusinessDayConvention getBusinessDayConvention() {
return _businessDayConvention;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public java.util.Calendar getBFSDAT() {\n return BFSDAT;\n }",
"@java.lang.Override public app.onepass.apis.DayOfWeek getDay() {\n @SuppressWarnings(\"deprecation\")\n app.onepass.apis.DayOfWeek result = app.onepass.apis.DayOfWeek.valueOf(day_);\n return result == null ? app.onepass.apis.DayOf... | [
"0.51723254",
"0.5142087",
"0.5090872",
"0.5085612",
"0.50750524",
"0.50650984",
"0.5004184",
"0.49841684",
"0.49475965",
"0.49293476",
"0.4924993",
"0.49155903",
"0.49144992",
"0.48984542",
"0.4863185",
"0.48444867",
"0.48406136",
"0.48173586",
"0.4791332",
"0.47712055",
"0.... | 0.717444 | 0 |
Gets the swap generator spot lag. | public int getSpotLag() {
return _spotLag;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double getSwap(){\r\n \treturn this.dswap;\r\n \t}",
"public int getPreviousHop() {\n return previousHop;\n }",
"public double getPrevCount()\n {\n\n return this.prevCount;\n }",
"public int getSlotTracker() {\r\n return slotTracker;\r\n }",
"public int ge... | [
"0.59720063",
"0.5432482",
"0.5370249",
"0.5363124",
"0.5333648",
"0.5246693",
"0.5150877",
"0.5129652",
"0.5128208",
"0.50955784",
"0.50776076",
"0.5071007",
"0.5046451",
"0.5003351",
"0.50015354",
"0.49978074",
"0.4996803",
"0.49946505",
"0.49699253",
"0.49680498",
"0.49665... | 0.6816135 | 0 |
Gets the swap generator endofmonth rule. | public Boolean isEndOfMonth() {
return _endOfMonth;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getEndMonth()\n\t{\n\t\treturn this.mEndMonth;\n\t}",
"public Calendar endOfMonth() {\r\n\t\t\r\n\t\t// get the date at the beginning of next month\r\n\t\tCalendar c2 = Calendar.getInstance(baseCalendar.getTimeZone());\r\n\t\tc2.clear();\r\n\t\tc2.set(baseCalendar.get(Calendar.YEAR), \r\n\t\t\t\tbaseC... | [
"0.6069993",
"0.58878714",
"0.56210834",
"0.56030524",
"0.541735",
"0.5361194",
"0.5360492",
"0.52876276",
"0.5131336",
"0.50473654",
"0.49707645",
"0.49707645",
"0.4968313",
"0.49367678",
"0.48528048",
"0.48312643",
"0.48248032",
"0.4797066",
"0.47907668",
"0.47880617",
"0.4... | 0.5093941 | 9 |
/ User Rest controller: 1. Create user 2. Update user can delete user 4. Sign in user 5. Sign out user TODO 1. Create user profile 2. Update user profile | @POST
@Path("/signUp")
@Consumes(MediaType.APPLICATION_JSON)
public String createUser(User user) {
UserService.createUser(user);
return "User " + user.getUsername() + " is created successfully";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"UserCreateResponse createUser(UserCreateRequest request);",
"public interface UserService{\n\n public UserAccount saveUser(UserAccount userAccount) throws UserNotExist;\n public UserAccount updateUser(UpdateDto updateDto) throws UserNotExist;\n public void deleteUser(DeleteDto deleteDto);\n\n public ... | [
"0.6670171",
"0.6527683",
"0.64045113",
"0.6376268",
"0.63755155",
"0.63653696",
"0.63030946",
"0.62991",
"0.629659",
"0.6278854",
"0.6278844",
"0.6268557",
"0.62670076",
"0.6263203",
"0.6263189",
"0.6257918",
"0.62536234",
"0.624866",
"0.62456715",
"0.62439245",
"0.6236853",... | 0.0 | -1 |
List> classes = ClassFinder.find("com.package"); | public static void main(String[] args) {
SpringApplication.run(Application.class, args);
// AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Set<Class<?>> getClassSet(String packageName);",
"private static Class[] getClasses(String packageName)\n throws ClassNotFoundException, IOException {\n ClassLoader classLoader = Thread.currentThread().getContextClassLoader();\n assert classLoader != null;\n String path = packageN... | [
"0.7388588",
"0.7333834",
"0.7323179",
"0.7320635",
"0.7285176",
"0.72043407",
"0.7202432",
"0.7064498",
"0.7043433",
"0.68789077",
"0.6862131",
"0.68568254",
"0.6789403",
"0.6787123",
"0.6763071",
"0.6746408",
"0.67256933",
"0.6694671",
"0.6653271",
"0.6639999",
"0.66134703"... | 0.0 | -1 |
Created by junqingfjq on 16/5/12. | public interface TaskMapper {
@TaskMapperAnnotation(createMethodName = "create", tableName = "task", taskIdColumnName = "id", taskType = "ecs", taskCreateTimeColumnName = "gmtCreated", timeout = 20, finishStatusList = "CREATED_FINISH", timeoutCallbackProcessBeanName = "xxxxCallbackProcessBeanName")
void create(Object obj);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private stendhal() {\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"public final void mo51373a() {\n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Overri... | [
"0.6023308",
"0.6018537",
"0.58281505",
"0.581813",
"0.58138543",
"0.57955456",
"0.57790005",
"0.57790005",
"0.57529587",
"0.5725287",
"0.57114595",
"0.56892043",
"0.5684445",
"0.5682164",
"0.5682164",
"0.5682164",
"0.5682164",
"0.5682164",
"0.56796235",
"0.56641734",
"0.5663... | 0.0 | -1 |
Callback when close button is hit | public void notifyExit()
{
if (isClientConnected)
sendDisconnectTag();
bs.close(); // Announce termination to client
bs.cancel(); // Shut down waiting server
System.exit(0);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void onClose();",
"public void close() {\n getCloseButton().click();\n }",
"public void onClose() {\n }",
"@Override\n public void closeWindow() {\n \n }",
"@Override\r\n\tpublic void onClose() {\n\t}",
"public abstract void windowClose(CloseEvent e);",
"@Override\n\tpublic void windo... | [
"0.7878563",
"0.7874089",
"0.7780593",
"0.7631739",
"0.7622845",
"0.76024306",
"0.7589172",
"0.7583459",
"0.75570875",
"0.7518848",
"0.7466659",
"0.74631",
"0.7450586",
"0.74234504",
"0.7374112",
"0.7368146",
"0.73598707",
"0.73386025",
"0.7325655",
"0.7308533",
"0.73046696",... | 0.0 | -1 |
wait while graphs loading | public static void take(WebDriver driver){
try {
Thread.sleep(5000);
}catch (InterruptedException e){
e.printStackTrace();
}
Screenshot screenshot = new AShot()
.shootingStrategy(ShootingStrategies.viewportPasting(100))
.takeScreenshot(driver);
try {
ImageIO.write(screenshot.getImage(), "png", new File("/home/stanislav/123.png"));
} catch (IOException e) {
e.printStackTrace();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void waitWhileLoading()\r\n {\r\n while (isLoading())\r\n ThreadUtil.sleep(10);\r\n }",
"public synchronized void waitUntilLoad() {\n\t\twhile (!this.loaded) {\n\t\t\tSystem.out.println(\"Waiting for news to load\");\n\t\t\ttry {\n\t\t\t\twait();\n\t\t\t} catch (InterruptedE... | [
"0.68696785",
"0.6379958",
"0.6314573",
"0.6245048",
"0.61112016",
"0.60415983",
"0.6023276",
"0.5999543",
"0.5981638",
"0.5934741",
"0.5853754",
"0.58363837",
"0.5830591",
"0.5816362",
"0.57985884",
"0.5746751",
"0.5745889",
"0.5677628",
"0.5647572",
"0.5602171",
"0.56015646... | 0.0 | -1 |
Initializes the controller class. | @Override
public void initialize(URL url, ResourceBundle rb) {
try{
Connection conn = dbconnection.getConnection();
data = FXCollections.observableArrayList();
ResultSet rs = conn.createStatement().executeQuery("SELECT * FROM gameweb.item");
while (rs.next()){
data.add(new gamedetail(rs.getString(2), rs.getString(3), rs.getString(4), rs.getString(5), rs.getString(6)));
}
} catch(SQLException ex){
System.err.println("Error" + ex);
}
colGameType.setCellValueFactory(new PropertyValueFactory<>("gameType"));
colGameTitle.setCellValueFactory(new PropertyValueFactory<>("gameTitle"));
colDescription.setCellValueFactory(new PropertyValueFactory<>("description"));
colRegularPrice.setCellValueFactory(new PropertyValueFactory<>("rPrice"));
colDiscountedPrice.setCellValueFactory(new PropertyValueFactory<>("dPrice"));
gameTable.setItems(null);
gameTable.setItems(data);
// TODO
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void initialize() {\n\t\tcontroller = Controller.getInstance();\n\t}",
"public MainController() {\n\t\tcontroller = new Controller(this);\n\t}",
"public abstract void initController();",
"public Controller() {\n super();\n }",
"public Controller() {\n super();\n }",
"public Co... | [
"0.8125658",
"0.78537387",
"0.78320265",
"0.776199",
"0.776199",
"0.76010174",
"0.74497247",
"0.7437837",
"0.7430714",
"0.742303",
"0.74057597",
"0.7341963",
"0.7327749",
"0.72634363",
"0.72230434",
"0.7102504",
"0.70575505",
"0.69873077",
"0.69721675",
"0.6944077",
"0.691256... | 0.0 | -1 |
Called when the mouse enters this Widget | public abstract void mouseEntered(MouseEnteredEvent mouseEnteredEvent); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void mouseEntered() {\n\t\t\n\t}",
"public void mouseEntered (MouseEvent e) {}",
"public void mouseEntered(MouseEvent e) {}",
"public void mouseEntered(MouseEvent e) {}",
"public void mouseEntered(MouseEvent e) {}",
"public void mouseEntered(MouseEvent e) {}",
"public void mouseEnte... | [
"0.7815815",
"0.7550758",
"0.75164723",
"0.75164723",
"0.75164723",
"0.75164723",
"0.75164723",
"0.75164723",
"0.75164723",
"0.74722046",
"0.74704295",
"0.74405354",
"0.74311197",
"0.74298966",
"0.7427038",
"0.7424565",
"0.7423195",
"0.7423195",
"0.7411155",
"0.7406396",
"0.7... | 0.0 | -1 |
Called when the mouse exits this Widget | public abstract void mouseExited(MouseExitedEvent mouseExitedEvent); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void mouseExited(MouseEvent me) {\n endDrag();\n }",
"@Override\n\tpublic void mouseExited() {\n\t\t\n\t}",
"public void mouseExited(MouseEvent e) {}",
"public void mouseExited(MouseEvent e) {}",
"public void mouseExited(MouseEvent e) {}",
"public void mouseExited(MouseEvent e) {}",
"public ... | [
"0.78975856",
"0.78431594",
"0.7825285",
"0.7825285",
"0.7825285",
"0.7825285",
"0.78023905",
"0.774318",
"0.77161",
"0.76893246",
"0.76862514",
"0.7686045",
"0.76812947",
"0.7676839",
"0.76753205",
"0.7668591",
"0.7668591",
"0.76685685",
"0.76685685",
"0.7665749",
"0.7665311... | 0.0 | -1 |
Called when a mouse button is pressed on this Widget. | public abstract void mousePressed(MousePressedEvent mp); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void mousePressed(MouseEvent me) {\r\n\t\tbuttonType = me.getButton();\r\n\t\tselect(me.getX(), me.getY());\r\n\t}",
"@Override\n\tpublic void mousePressed(MouseEvent e) {\n\t\tif(!mouseDown) {\n\t\t\tclickButton();\n\t\t}\n\t\tmouseDown = true;\n\t}",
"private void pressed(MouseEvent e)\... | [
"0.7537399",
"0.7469145",
"0.7311588",
"0.7285756",
"0.72104406",
"0.7204417",
"0.71924704",
"0.7138893",
"0.71371603",
"0.71371603",
"0.71371603",
"0.70864004",
"0.7085472",
"0.70819384",
"0.7067204",
"0.7063611",
"0.70605415",
"0.70494133",
"0.70405483",
"0.70372",
"0.70372... | 0.0 | -1 |
Called when the mouse is moved over this Widget. Do not make computationally expensive things here because this method is constantly called by Display | public abstract void mouseMoved(int displayX, int displayY); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void onMouseMove(Widget who, int x, int y) {\n\r\n\t}",
"public void mouseMoved() {\n\t\tif(detectCollision(this.p.mouseX,this.p.mouseY)) {\n\t\t\tthis.isHovered = true;\n\t\t}else {\n\t\t\tthis.isHovered = false;\n\t\t}\n\t}",
"private void mouseMove() {\n if (this.holding) {\n ... | [
"0.7509138",
"0.7263091",
"0.71599776",
"0.6851983",
"0.68379754",
"0.68194884",
"0.68194884",
"0.68016887",
"0.67842466",
"0.6756024",
"0.6734853",
"0.67124796",
"0.6697264",
"0.6697179",
"0.66961724",
"0.66870046",
"0.6677152",
"0.6677152",
"0.6666883",
"0.66532135",
"0.664... | 0.6698635 | 12 |
Called when the mouse is dragged (moved while pressing a mouse button down) over this Widget. | public abstract void mouseDragged(MouseDraggedEvent mp); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void mouseDragged(MouseEvent e) {}",
"public void mouseDragged(MouseEvent e){}",
"public void mouseDragged (MouseEvent e) {}",
"public void mouseDragged( MouseEvent event ){}",
"@Override\r\n\t\t\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\t}",
"@Override\n public void mouseDragged(Mouse... | [
"0.7508158",
"0.7507334",
"0.74659103",
"0.7393685",
"0.7383421",
"0.737042",
"0.7362853",
"0.73349005",
"0.73349005",
"0.7330384",
"0.7319548",
"0.7306835",
"0.72934264",
"0.7286808",
"0.7280333",
"0.7264649",
"0.7254511",
"0.72417885",
"0.72417885",
"0.7237732",
"0.72367436... | 0.67699337 | 85 |
Called when a previously pressed mouse button is released on this Widget. | public abstract void mouseReleased(MouseReleasedEvent mr); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void mouseReleased() {\n super.mouseReleased();\n pressed = false;\n properties.post_mouseReleased(1);\n }",
"public void mouseReleased() {\n\t\tthis.isPressed = false;\n\t}",
"protected void onRelease(){\n pressed = false;\n if(hovered) {\n onClick();\n }\n ... | [
"0.7833137",
"0.7822763",
"0.75317776",
"0.7506536",
"0.7016457",
"0.6898483",
"0.68440646",
"0.67726815",
"0.6757618",
"0.6756221",
"0.6747658",
"0.6729196",
"0.671373",
"0.6704908",
"0.6700046",
"0.6677899",
"0.66585225",
"0.6656524",
"0.6645397",
"0.66326123",
"0.66145885"... | 0.64566225 | 31 |
Called when the user clicks one something. | public abstract void mouseClicked(MouseClickedEvent event); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t\t\t}",
"@Overri... | [
"0.7805168",
"0.7805168",
"0.7805168",
"0.7805168",
"0.7805168",
"0.7805168",
"0.7805168",
"0.77494806",
"0.77456075",
"0.77426356",
"0.77295554",
"0.7707163",
"0.7707163",
"0.7707163",
"0.7653857",
"0.7653857",
"0.7653857",
"0.7653857",
"0.7653857",
"0.7653857",
"0.7653857",... | 0.0 | -1 |
Called when the mouse button is pressed twice in a short time. | public abstract void mouseDoubleClicked(MouseDoubleClickedEvent event); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void nativeMousePressed(NativeMouseEvent nme) {\n if (Var.timerStart) {\n txtMouse.setText(\"Mouse Pressed: \" + nme.getButton());\n Var.mClicks++;\n }\n }",
"public void mousePressed(MouseEvent event)\n {\n mouseClicked = true;\n ... | [
"0.65101606",
"0.6318327",
"0.6304661",
"0.62788975",
"0.6182991",
"0.60594636",
"0.5986048",
"0.5970924",
"0.59565306",
"0.5935041",
"0.5928189",
"0.5907587",
"0.589284",
"0.588379",
"0.58161545",
"0.58126",
"0.5800788",
"0.58003336",
"0.57882094",
"0.57828766",
"0.57692456"... | 0.53437847 | 94 |
Called when there is a mouse wheel event | public abstract void mouseWheel(MouseWheelEvent mouseWheelEvent); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public native void mouseWheel(int wheelAmt);",
"@Override\n\tpublic void mouseWheelMoved(int arg0) {\n\t}",
"@Override\r\n public void mouseWheelMoved(MouseWheelEvent e) {\r\n System.out.println(\"wheel\");\r\n }",
"@Override\n\tpublic void mouseWheelMoved(MouseEvent a... | [
"0.82168347",
"0.8028072",
"0.7991223",
"0.7976084",
"0.780031",
"0.7754695",
"0.76799923",
"0.75300115",
"0.7292255",
"0.7207614",
"0.71536744",
"0.71506304",
"0.7144769",
"0.7140096",
"0.7140096",
"0.7140096",
"0.70499235",
"0.7008273",
"0.7008155",
"0.6976121",
"0.693644",... | 0.81705964 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.