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 |
|---|---|---|---|---|---|---|
Sets the amount of additional speed the entity can provide to an active entity. | public void setAddSpeed(float addSpeed)
{
this.addSpeed = addSpeed;
setChanged();
notifyObservers();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setSpeed(int newSpeed)\n {\n speed = newSpeed;\n }",
"public void setSpeed(float val) {speed = val;}",
"public void setSpeed(double multiplier);",
"public void setCurrentSpeed (double speed);",
"public void setSpeed() {\r\n\t\tthis.currSpeed = this.maxSpeed * this.myStrategy.setEff... | [
"0.72779506",
"0.72254235",
"0.72046995",
"0.7125296",
"0.7030824",
"0.6999638",
"0.6970489",
"0.6888321",
"0.6868627",
"0.686541",
"0.6862797",
"0.685699",
"0.68305665",
"0.68282455",
"0.6826489",
"0.6823394",
"0.68180346",
"0.67979306",
"0.6790411",
"0.67573816",
"0.6741199... | 0.7069649 | 4 |
Gets the amount of additional health the entity can provide to an active entity. | public float getAddHealth()
{
return addHealth;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getHealth() {\n return getStat(health);\n }",
"public int getHealth() {\n return this.health;\n }",
"public Integer getHealth();",
"public int getHealthCost();",
"public static int getHealth()\r\n\t{\r\n\t\treturn health;\r\n\t}",
"public double getHealth() {\n return clas... | [
"0.7387676",
"0.71840936",
"0.71610475",
"0.71377295",
"0.71321845",
"0.71128094",
"0.7096076",
"0.70932746",
"0.7091051",
"0.70869625",
"0.70676345",
"0.70641255",
"0.7059071",
"0.7050726",
"0.7038428",
"0.7033856",
"0.70244443",
"0.7024078",
"0.70208454",
"0.7001657",
"0.69... | 0.7313078 | 1 |
Gets the amount of additional speed the entity can provide to an active entity. | public float getAddSpeed()
{
return addSpeed;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getSpeed() {\n if (getDamaged() > 2) {\n return super.getSpeed() - 50;\n }\n else if (getDamaged() > 4) {\n return super.getSpeed() - 80;\n }\n \n else {\n return super.getSpeed();\n }\n }",
"public double getSpeed();... | [
"0.6848111",
"0.68177986",
"0.67772347",
"0.676953",
"0.6769222",
"0.67662066",
"0.6740544",
"0.67305064",
"0.67305064",
"0.67305064",
"0.67305064",
"0.67305064",
"0.6728188",
"0.67251796",
"0.6710267",
"0.6710267",
"0.6710267",
"0.6710267",
"0.669727",
"0.66809416",
"0.66806... | 0.71368927 | 0 |
the word to be evaluated | public static void main(String[] args)
{
String word = "whiteleaf";
//initialize the task and pool
elfish task = new elfish(word.toCharArray(), 0, word.length() - 1);
ForkJoinPool pool = new ForkJoinPool();
//invoke the task
pool.invoke(task);
//c... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getWord();",
"String evaluate();",
"public String getWord()\n\t{\n\t\treturn word.get(matcher());\n\t}",
"public void getWord() {\n\t\t\n\t}",
"public String getWord(){\r\n\t\t return word;\r\n\t }",
"public String getWord()\r\n\t\t{\r\n\t\t\treturn word;\r\n\t\t}",
"public String getW... | [
"0.67172676",
"0.64338803",
"0.639868",
"0.635524",
"0.63263714",
"0.6303391",
"0.63001996",
"0.6262806",
"0.6203543",
"0.61897236",
"0.6189639",
"0.6179731",
"0.61756647",
"0.61292833",
"0.6126324",
"0.6047424",
"0.59951854",
"0.5977227",
"0.5949447",
"0.5847203",
"0.5831039... | 0.0 | -1 |
elfish will initialize the charArray, startIndex, and endIndex, for the compute() method to evaluate whether the word has an 'e', 'l', and 'f'. If it contains all three, it is considered elfish, and will intitialize each static check to true. | public elfish(char[] srcArray, int startIndex, int endIndex)
{
charArray = srcArray;
this.startIndex = startIndex;
this.endIndex = endIndex;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void elfish(String str,int countL,int countE,int countF) {\n if (str.length() == 0 ) {\n if((countE>0 &&countF>0 && countL>0)){\n System.out.println(\"This is an elfish word!\");\n }\n else{\n System.out.println(\"This is not an elfish wo... | [
"0.59290063",
"0.5294646",
"0.52879125",
"0.5207366",
"0.5038011",
"0.5032509",
"0.4962922",
"0.4893826",
"0.48742813",
"0.48659992",
"0.4860565",
"0.48492378",
"0.48229176",
"0.48140764",
"0.48051125",
"0.47772714",
"0.4769069",
"0.47659138",
"0.47460246",
"0.47359154",
"0.4... | 0.55479515 | 1 |
Returns true if a given string is a valid score. | public static boolean isValidScore(String score) {
try {
return isValidScore(parseCorrectAttempts(score), parseTotalAttempts(score));
} catch (NumberFormatException e) {
return false;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static boolean validateString(String string) {\n Pattern pattern = Pattern.compile(\"^([1-9]+[0-9]?|100)\\\\s([1-9]+\" +\n \"[0-9]?|100)\\\\s([1-9]+[0-9]?|100)$\");\n Matcher matcher = pattern.matcher(string);\n return matcher.matches();\n }",
"public static boolean... | [
"0.7105013",
"0.67742366",
"0.673937",
"0.673516",
"0.66408443",
"0.6583499",
"0.65618247",
"0.6454565",
"0.64138746",
"0.63057154",
"0.6241244",
"0.61243176",
"0.6123747",
"0.61234343",
"0.60685235",
"0.60642433",
"0.6060494",
"0.602989",
"0.6024905",
"0.6024905",
"0.6003471... | 0.7693025 | 0 |
Returns true if given integers form valid score. | public static boolean isValidScore(int correctAttempts, int totalAttempts) {
return 0 <= correctAttempts && correctAttempts <= totalAttempts;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isValid(int number)",
"boolean isMismatch(double score);",
"public boolean isValid(int[] grades) throws ArithmeticException {\n if ((grades == null) || (grades.length == 0)) {\n throw new ArithmeticException(\"There is no grade available.\");\n }\n \n final... | [
"0.68024254",
"0.62259996",
"0.62241775",
"0.62107384",
"0.6089584",
"0.60413843",
"0.5992171",
"0.59821963",
"0.5960146",
"0.5856338",
"0.583551",
"0.5796697",
"0.5783333",
"0.57797587",
"0.57696587",
"0.57591015",
"0.5756756",
"0.5740788",
"0.573347",
"0.5706276",
"0.569221... | 0.5878479 | 9 |
Returns score as correctAttempts divided by totalAttempts | public double getAsDouble() {
if (totalAttempts == 0) {
return 0;
}
return (double) correctAttempts / totalAttempts;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private double gradeQuiz() {\n int numCorrect = getNumberCorrect();\n double percentage = (numCorrect / numQuestions) * 100;\n return percentage;\n }",
"private int calculateScore() {\n int total;\n int score = getGameScore();\n int correct = getCorrectGuesses();\n ... | [
"0.68342155",
"0.6586664",
"0.6541558",
"0.6495156",
"0.64393336",
"0.64309204",
"0.6419096",
"0.6415149",
"0.6412013",
"0.63962245",
"0.6375788",
"0.63541895",
"0.63404197",
"0.6266145",
"0.6196876",
"0.61786497",
"0.61702025",
"0.61410147",
"0.6134096",
"0.61337894",
"0.612... | 0.6274601 | 13 |
Returns number of correct attempts as integer from score string. | private static int parseCorrectAttempts(String score) throws NumberFormatException {
String[] splitString = score.split("/");
if (splitString.length != 2) {
throw new NumberFormatException("Score is not formatted correctly.");
}
return Integer.parseInt(splitString[0]);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static int parseTotalAttempts(String score) throws NumberFormatException {\n String[] splitString = score.split(\"/\");\n\n if (splitString.length != 2) {\n throw new NumberFormatException(\"Score is not formatted correctly.\");\n }\n\n return Integer.parseInt(splitSt... | [
"0.7941609",
"0.64881545",
"0.64859235",
"0.64271665",
"0.63684094",
"0.6252269",
"0.61121154",
"0.6100351",
"0.6080222",
"0.60441786",
"0.60441655",
"0.60108346",
"0.5936748",
"0.58907855",
"0.5876073",
"0.5823387",
"0.58189666",
"0.5817059",
"0.5812302",
"0.58095694",
"0.58... | 0.80691564 | 0 |
Returns number of total attempts as integer from score string. | private static int parseTotalAttempts(String score) throws NumberFormatException {
String[] splitString = score.split("/");
if (splitString.length != 2) {
throw new NumberFormatException("Score is not formatted correctly.");
}
return Integer.parseInt(splitString[1]);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static int parseCorrectAttempts(String score) throws NumberFormatException {\n String[] splitString = score.split(\"/\");\n\n if (splitString.length != 2) {\n throw new NumberFormatException(\"Score is not formatted correctly.\");\n }\n\n return Integer.parseInt(split... | [
"0.7568305",
"0.6924279",
"0.62846994",
"0.6254033",
"0.6249355",
"0.6243152",
"0.6202648",
"0.6189575",
"0.60358566",
"0.5981521",
"0.5979701",
"0.59577125",
"0.59405273",
"0.58933413",
"0.5892267",
"0.58326495",
"0.5825809",
"0.58084965",
"0.57908636",
"0.57908326",
"0.5754... | 0.83263546 | 0 |
Get percentage difference and multiply by 100 to compare as int | @Override
public int compareTo(Score other) {
return (int) (100 * (this.getAsDouble() - other.getAsDouble()));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getPercentageHeated();",
"java.lang.String getPercentage();",
"int getRemainderPercent();",
"public double getPercentRem(){\n return ((double)freeSpace / (double)totalSpace) * 100d;\n }",
"double greenPercentage();",
"public int percent() {\n\t\tdouble meters = meters();\n\t\tif (meters < MIN_MET... | [
"0.7201492",
"0.7150386",
"0.70873284",
"0.6739778",
"0.6689484",
"0.6656199",
"0.6629269",
"0.6586726",
"0.6516444",
"0.650101",
"0.6471995",
"0.63706636",
"0.63623154",
"0.6351934",
"0.6348343",
"0.63214767",
"0.6267003",
"0.62488246",
"0.6240474",
"0.62260336",
"0.6225803"... | 0.5785297 | 60 |
Generated by ComTest BEGIN testFlairImage33 | @Test
public void testFlairImage33() { // FlairImage: 33
FlairImage testi = new FlairImage();
assertEquals("From: FlairImage line: 35", "0|", testi.toString());
assertEquals("From: FlairImage line: 36", 0, testi.getNumber());
assertEquals("From: FlairImage line: 37", "", testi.getName());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void picture3FixedTest() {\n // TODO: test picture3Fixed\n }",
"public void testGetImage() {\n CLImage instance = new CLImage();\n byte[] expResult = new byte[] {1, 2, 3};\n instance.image = new byte[] {1, 2, 3};\n byte[] result = instance.getImage();\n assertEquals(exp... | [
"0.68137",
"0.67356384",
"0.64639944",
"0.64226586",
"0.6398675",
"0.63706726",
"0.6350611",
"0.6293873",
"0.62927365",
"0.6274862",
"0.62512016",
"0.62432206",
"0.62427765",
"0.62255925",
"0.62087905",
"0.6205308",
"0.61931527",
"0.6177945",
"0.6162112",
"0.6139122",
"0.6128... | 0.68980116 | 0 |
Generated by ComTest END Generated by ComTest BEGIN testSeparateNumber131 | @Test
public void testSeparateNumber131() { // FlairImage: 131
java.util.concurrent.atomic.AtomicBoolean totuus = new java.util.concurrent.atomic.AtomicBoolean(false);
StringBuilder testi = new StringBuilder();
assertEquals("From: FlairImage line: 135", 0, separateNumber(testi,'-',totuus));
totu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n\tpublic void test_doubleANumber() {\n\t\t\n\t}",
"@Test\n public void testCaseNumberSplit() {\n String caseNumber1 = \"NTN-57930\";\n String[] parts1 = caseNumber1.split( \"-\" );\n //String[] parts2 = caseNumber2.split(\"-\");\n //String[] parts3 = caseNumber3.split(\"-\")... | [
"0.6012143",
"0.58133775",
"0.5771952",
"0.55759865",
"0.54227734",
"0.53951323",
"0.533874",
"0.5266737",
"0.52574915",
"0.5242599",
"0.5240443",
"0.52065307",
"0.5203011",
"0.52009946",
"0.5194939",
"0.5167309",
"0.5167309",
"0.5167309",
"0.51178306",
"0.5102887",
"0.509158... | 0.5954339 | 1 |
Generated by ComTest END Generated by ComTest BEGIN testTakeNumberFromString224 | @Test
public void testTakeNumberFromString224() { // FlairImage: 224
assertEquals("From: FlairImage line: 225", 123, takeNumberFromString("123"));
assertEquals("From: FlairImage line: 226", 0, takeNumberFromString("123a"));
assertEquals("From: FlairImage line: 227", -123, takeNumberFromString("-123")... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getNumber();",
"java.lang.String getNumber();",
"java.lang.String getNumber();",
"public void testNumberConversion() throws Exception {\n NumberMetadataDefinition def = new NumberMetadataDefinition(\"number\", NUMBER);\n List<AbstractMetadataDefinition> list = new LinkedList<Ab... | [
"0.6805788",
"0.6805788",
"0.6805788",
"0.63654006",
"0.63239694",
"0.63039666",
"0.62190706",
"0.6183933",
"0.6133445",
"0.6129325",
"0.6079598",
"0.6027033",
"0.5961836",
"0.59607106",
"0.5934458",
"0.5932999",
"0.5918301",
"0.58977044",
"0.58570176",
"0.58430547",
"0.58303... | 0.70134854 | 0 |
Generated by ComTest END Generated by ComTest BEGIN testShorten247 | @Test
public void testShorten247() { // FlairImage: 247
assertEquals("From: FlairImage line: 248", "", shorten("asd.asd",7));
assertEquals("From: FlairImage line: 249", "C:/Users/", shorten("C:/Users/asd.asd",7));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void testDAM30601001() {\n testDAM30102001();\n }",
"@Test\n public void testDAM30402001() {\n testDAM30101001();\n }",
"@Test\n public void testDAM30203001() {\n testDAM30102001();\n }",
"@Test\n public void testDAM30903001() {\n testDAM3080200... | [
"0.65253615",
"0.6500686",
"0.647435",
"0.63859636",
"0.60878646",
"0.6043739",
"0.60416734",
"0.599612",
"0.5978688",
"0.59715116",
"0.5970581",
"0.59658986",
"0.5952764",
"0.59517",
"0.59433866",
"0.5942524",
"0.59385705",
"0.5921471",
"0.5921104",
"0.5915171",
"0.5912463",... | 0.62732327 | 4 |
Generated by ComTest END Generated by ComTest BEGIN testTakeExtensionAway264 | @Test
public void testTakeExtensionAway264() { // FlairImage: 264
assertEquals("From: FlairImage line: 265", "asd", takeExtensionAway("asd.asd"));
assertEquals("From: FlairImage line: 266", "asd", takeExtensionAway("asd.a"));
assertEquals("From: FlairImage line: 267", "asd", takeExtensionAway("asd.")... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n\tpublic void testExtensionNegotiation() throws Exception {\n\n\t\t// Given\n\t\tPieceDatabase pieceDatabase = MockPieceDatabase.create (\"0\", 16384);\n\t\tpieceDatabase.start (true);\n\t\tMap<String,Integer> extensions = new HashMap<String,Integer>();\n\t\textensions.put (PeerProtocolConstants.EXTENSION_P... | [
"0.6185658",
"0.5908461",
"0.5851267",
"0.58042294",
"0.5653091",
"0.5569867",
"0.55469584",
"0.5536355",
"0.5408831",
"0.5405191",
"0.53335494",
"0.52802",
"0.5244087",
"0.52350074",
"0.52311915",
"0.5215812",
"0.5211801",
"0.5180097",
"0.5167445",
"0.5152693",
"0.5152693",
... | 0.7068011 | 0 |
endregion region Public Methods | public Single<DomainUserModel> map(LoginViewModel loginViewModel) {
user.setAccessToken(loginViewModel.getAccessToken());
return Single.just(user);
} | {
"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 }",
"private stendhal() {\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Overrid... | [
"0.6649074",
"0.657075",
"0.6500915",
"0.6445911",
"0.6428642",
"0.6405824",
"0.6405824",
"0.64026636",
"0.63860416",
"0.63398993",
"0.62523633",
"0.6249168",
"0.6249168",
"0.62469244",
"0.6201809",
"0.6188594",
"0.6188389",
"0.61883014",
"0.6183088",
"0.61391306",
"0.613869"... | 0.0 | -1 |
Method 1: Time O(N), Space O(1) | public static <T> T findKthElement(LinkedListNode<T> list, int K){ //!!!!static <T> otherwise can't match to a non-static
if (K <= 0 || K > list.calLength()){
System.out.println("Error!!");
return null; // return null!!!
}
int i = 1;
Node<T> beg = list.head;
Node<T> end = beg;
whil... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static int f1(int N) {\n int x = 0; //O(1)\n for(int i = 0; i < N; i++) // O(n) \n x++; \n return x; \n \n }",
"public static int f2(int N) { \n int x = 0; //O(1)\n for(int i = 0; i < N; i++) // O(n)\n // O(n)`\n ... | [
"0.6936397",
"0.68621546",
"0.60611737",
"0.60103744",
"0.5992702",
"0.59907603",
"0.5734513",
"0.56884456",
"0.547108",
"0.54629135",
"0.54625714",
"0.54321444",
"0.5393993",
"0.53788",
"0.5365964",
"0.53401315",
"0.53099394",
"0.52935684",
"0.5254707",
"0.5246129",
"0.52447... | 0.0 | -1 |
Method 2: recursive Time O(N) Space O(N) | public static <T> int findKthElement2(Node<T> head, int K){
if (K <= 0 ){
System.out.println("Error!!");
System.exit(0);; // return null!!!
}
if (head == null)
return 0;
else{
int i = findKthElement2(head.next, K) + 1;
if (i == K)
System.out.println(head.data.toString());
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static int recursiva1(int n)\n\t\t{\n\t\tif (n==0)\n\t\t\treturn 10; \n\t\tif (n==1)\n\t\t\treturn 20; \n\t\treturn recursiva1(n-1) - recursiva1 (n-2);\t\t\n\t\t}",
"public static int f2(int N) { \n int x = 0; //O(1)\n for(int i = 0; i < N; i++) // O(n)\n // O(n)`\n for(i... | [
"0.6506002",
"0.6301466",
"0.6301433",
"0.62547785",
"0.6192239",
"0.59547275",
"0.5950592",
"0.5940081",
"0.5928337",
"0.58524364",
"0.5851247",
"0.5819327",
"0.5817762",
"0.57426",
"0.5722862",
"0.5707975",
"0.56798166",
"0.56570494",
"0.5637988",
"0.5631774",
"0.5628986",
... | 0.0 | -1 |
Inflate the layout for this fragment | @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.fragment_myths, container, false);
Toolbar toolbar = view.findViewById(R.id.mythToolbar);
toolbar.setTitle("Myths")... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup... | [
"0.6740675",
"0.6725193",
"0.67224836",
"0.6699259",
"0.6691596",
"0.668896",
"0.6687658",
"0.66861755",
"0.667755",
"0.66756433",
"0.6667425",
"0.66667783",
"0.6665166",
"0.66614723",
"0.66549766",
"0.665031",
"0.6643759",
"0.6639389",
"0.66378653",
"0.66345453",
"0.6626348"... | 0.0 | -1 |
Created by ESIDEM jnr on 4/4/2017. | public interface MyCallback {
void updateAdapter(Movies[] movies);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"public final void mo51373a() {\n }",
"private stendhal() {\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Overri... | [
"0.61042583",
"0.5999221",
"0.5916736",
"0.5873184",
"0.58630997",
"0.5810728",
"0.5781105",
"0.5736545",
"0.5736545",
"0.5729829",
"0.5718357",
"0.5707542",
"0.5702711",
"0.5702591",
"0.5677058",
"0.567463",
"0.5664521",
"0.5646752",
"0.56458277",
"0.56281614",
"0.5618957",
... | 0.0 | -1 |
Called just before this Command runs the first time | protected void initialize() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void preRun() {\n super.preRun();\n }",
"protected void preRun() {\r\n\t\tthis.preparePairs();\r\n\t}",
"@Override\n public void beforeFirstLogic() {\n }",
"public void prePerform() {\n // nothing to do by default\n }",
"protected void onFirstUse() {}",
"@O... | [
"0.71116775",
"0.6540082",
"0.643276",
"0.64309984",
"0.6406235",
"0.63530433",
"0.6307191",
"0.62521607",
"0.6246859",
"0.6240541",
"0.61669374",
"0.6162758",
"0.612669",
"0.612669",
"0.612669",
"0.612669",
"0.612669",
"0.6106636",
"0.60843927",
"0.60843927",
"0.6078098",
... | 0.0 | -1 |
Called repeatedly when this Command is scheduled to run | protected void execute() {
buttonOpenValue = Robot.m_oi_pilot.joystick.getRawButton(1);
buttonCloseValue = Robot.m_oi_pilot.joystick.getRawButton(2);
if(buttonOpenValue){
direction = DoubleSolenoid.Value.kForward;
}
else if(buttonCloseValue){
direction = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\t\tvoid runCommand() {\n\t\t\ttrigger.execute();\n\t\t}",
"@Override\n public void run() {\n schedule();\n }",
"@Override\n public void autonomousPeriodic() {\n \n Scheduler.getInstance().run();\n \n }",
"public void run() {\n\t\texecuteCommand( client, false );\n\t}",
"... | [
"0.6689458",
"0.6631115",
"0.6566414",
"0.65512514",
"0.6530515",
"0.6488629",
"0.64019585",
"0.6380878",
"0.637645",
"0.6363615",
"0.63557744",
"0.6330997",
"0.6295938",
"0.6275704",
"0.6268897",
"0.62656784",
"0.62656784",
"0.62656784",
"0.62656784",
"0.62656784",
"0.626567... | 0.0 | -1 |
Make this return true when this Command no longer needs to run execute() | protected boolean isFinished() {
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean execute() {\n return false;\n }",
"@Override\n public boolean execute() {\n return false;\n }",
"public boolean execute(){\n return false;\n }",
"@Override\n\tpublic boolean Unexecute() \n\t{\n\t\treturn false;\n\t}",
"p... | [
"0.7731388",
"0.7731388",
"0.7676477",
"0.76479256",
"0.75945383",
"0.755139",
"0.6876917",
"0.674626",
"0.6726289",
"0.66824305",
"0.65877676",
"0.65649086",
"0.649714",
"0.6385132",
"0.6373108",
"0.6358361",
"0.6358361",
"0.63498634",
"0.634211",
"0.6330674",
"0.6323974",
... | 0.6186873 | 86 |
Called once after isFinished returns true | protected void end() {
isFinished();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected boolean isFinished() {\n return true;\n }",
"@Override\n protected boolean isFinished() {\n return true;\n }",
"@Override\n public boolean isFinished() {\n return true;\n }",
"@Override\r\n\tprotected boolean isFinished() {\n\t\treturn true;\r\n\t}",
"@Override\... | [
"0.8586457",
"0.85408485",
"0.8335299",
"0.8333223",
"0.8333223",
"0.8307876",
"0.8305855",
"0.83003116",
"0.82784426",
"0.82784426",
"0.82784426",
"0.82784426",
"0.82784426",
"0.82784426",
"0.82784426",
"0.82784426",
"0.82784426",
"0.82784426",
"0.82784426",
"0.82784426",
"0... | 0.0 | -1 |
Called when another command which requires one or more of the same subsystems is scheduled to run | protected void interrupted() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public AutonomousCommand(LiftSubsystem m_lift, ArmSubsystem m_arm, Shooter m_shooter, DriveSubsystem m_drive,\n HopperSubsystem m_hopper, Intake m_intake) {\n // Add your commands in the super() call, e.g.\n // super(new FooCommand(), new BarCommand());\n // alongwith- birlikte çalıştırmak için // wi... | [
"0.57638615",
"0.5596325",
"0.552643",
"0.54340327",
"0.5383419",
"0.5363712",
"0.53502446",
"0.53427285",
"0.53291255",
"0.5327942",
"0.5298728",
"0.5262931",
"0.5255555",
"0.52312833",
"0.5223626",
"0.5202386",
"0.51912916",
"0.5179374",
"0.51630044",
"0.51523274",
"0.51434... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void onClick(View arg0) {
FragmentManager fm = getActivity().getSupportFragmentManager();
Fragment_Order_Create_ListDlg editNameDialog = new Fragment_Order_Create_ListDlg();
// editNameDialog.getDialog().setTitle("Nhập số lượng");
editNameDialog.setHandleData(FragmentOrderCreate_View... | {
"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 onClick(View arg0) {
if (_dataSource.size() == 0) {
Toast.makeText(getActivity(), "Bạn phải chọn sản phẩm trước khi xác nhận", Toast.LENGTH_SHORT)
.show();
} else {
AlertDialog.Builder b = new AlertDialog.Builder(getActivity());
b.setMessage("Bạn chắc chắn muốn xác... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.66708666",
"0.65675074",
"0.65229905",
"0.6481001",
"0.64770633",
"0.64584893",
"0.6413091",
"0.63764185",
"0.6275735",
"0.62541914",
"0.6236919",
"0.6223816",
"0.62017626",
"0.61944294",
"0.61944294",
"0.61920846",
"0.61867654",
"0.6173323",
"0.61328775",
"0.61276996",
"0... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public View getView() {
return super.getView();
} | {
"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 process(String key, int status, List<JSONObject> lst) {
} | {
"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.66708666",
"0.65675074",
"0.65229905",
"0.6481001",
"0.64770633",
"0.64584893",
"0.6413091",
"0.63764185",
"0.6275735",
"0.62541914",
"0.6236919",
"0.6223816",
"0.62017626",
"0.61944294",
"0.61944294",
"0.61920846",
"0.61867654",
"0.6173323",
"0.61328775",
"0.61276996",
"0... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
protected void initParamsForFragment() {
} | {
"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 onResume() {
int x = 0;
x++;
super.onResume();
} | {
"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.66708666",
"0.65675074",
"0.65229905",
"0.6481001",
"0.64770633",
"0.64584893",
"0.6413091",
"0.63764185",
"0.6275735",
"0.62541914",
"0.6236919",
"0.6223816",
"0.62017626",
"0.61944294",
"0.61944294",
"0.61920846",
"0.61867654",
"0.6173323",
"0.61328775",
"0.61276996",
"0... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void onPause() {
int x = 0;
x++;
super.onPause();
} | {
"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 sendData(JSONObject o) {
addToProduct(o);
} | {
"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.66708666",
"0.65675074",
"0.65229905",
"0.6481001",
"0.64770633",
"0.64584893",
"0.6413091",
"0.63764185",
"0.6275735",
"0.62541914",
"0.6236919",
"0.6223816",
"0.62017626",
"0.61944294",
"0.61944294",
"0.61920846",
"0.61867654",
"0.6173323",
"0.61328775",
"0.61276996",
"0... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public JSONObject getData(JSONObject o) {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public boolean hasDataSource() {
return _dataSource.size() > 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.66708666",
"0.65675074",
"0.65229905",
"0.6481001",
"0.64770633",
"0.64584893",
"0.6413091",
"0.63764185",
"0.6275735",
"0.62541914",
"0.6236919",
"0.6223816",
"0.62017626",
"0.61944294",
"0.61944294",
"0.61920846",
"0.61867654",
"0.6173323",
"0.61328775",
"0.61276996",
"0... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void saveDataSource() {
saveServerOffline();
} | {
"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 boolean onBackPressed() {
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.66708666",
"0.65675074",
"0.65229905",
"0.6481001",
"0.64770633",
"0.64584893",
"0.6413091",
"0.63764185",
"0.6275735",
"0.62541914",
"0.6236919",
"0.6223816",
"0.62017626",
"0.61944294",
"0.61944294",
"0.61920846",
"0.61867654",
"0.6173323",
"0.61328775",
"0.61276996",
"0... | 0.0 | -1 |
Determines whether delete was confirmed or cancelled | @Override
public void onClick(DialogInterface arg0, int arg1) {
if (arg1 == DialogInterface.BUTTON_POSITIVE) {
onDialogPositiveClick((DialogFragment) arg0);
} else {
onDialogNegativeClick((DialogFragment) arg0);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static Boolean confirmDeletion() {\n final AtomicReference<Boolean> reference = new AtomicReference<>(false);\n\n TopsoilNotification.showNotification(\n TopsoilNotification.NotificationType.VERIFICATION,\n \"Delete Table\",\n \"Do you really want t... | [
"0.7378383",
"0.7098697",
"0.7098697",
"0.7042347",
"0.6981226",
"0.6811385",
"0.67649513",
"0.6697342",
"0.6673525",
"0.66709125",
"0.6668895",
"0.6556214",
"0.6556214",
"0.6556214",
"0.6506397",
"0.6455165",
"0.64548665",
"0.6412085",
"0.6407024",
"0.63550526",
"0.6346672",... | 0.0 | -1 |
Delete was confirmed by clicking confirm on the dialog fragment | public void onDialogPositiveClick(DialogFragment dialog) {
d.setSelectedPaths(d.getmAdapter().getCurrentPaths());
for (int i = 0; i < d.getSelectedPaths().size(); i++) {
//File f = new File(d.getSelectedPaths().get(i));
//ASyncCopyFiles.DeleteRecursive(f);
d.getmAdapter().remove(d.getSelectedPaths().get(i)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void addConfirmDialog() {\n builder = UIUtil.getConfirmDialog(getContext(),\"You are about to delete data for this payment. proceed ?\");\n builder.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog... | [
"0.82293224",
"0.7751875",
"0.76689404",
"0.76220316",
"0.74933994",
"0.7439765",
"0.7433281",
"0.74190295",
"0.7403504",
"0.7388704",
"0.73762345",
"0.73662597",
"0.73577386",
"0.73372966",
"0.73362905",
"0.7286579",
"0.7267419",
"0.72663033",
"0.72544116",
"0.7247839",
"0.7... | 0.0 | -1 |
Delete cancelled by selecting cancel on the dialog fragment | public void onDialogNegativeClick(DialogFragment dialog) {
d.getMode().finish();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void onCancel(DialogInterface arg0) {\n mRemovePosition = -1;\n mRemoveConfirmDialog = null;\n }",
"public void onClick(DialogInterface dialog, int id) {\n Toast.makeText(getActivity(), \"Eliminacion ca... | [
"0.7648417",
"0.7645881",
"0.75495404",
"0.74928796",
"0.74705213",
"0.7462025",
"0.7379206",
"0.7350084",
"0.7339744",
"0.7332173",
"0.7320268",
"0.73063684",
"0.729126",
"0.7215279",
"0.7213308",
"0.7200114",
"0.7198055",
"0.7189265",
"0.71725696",
"0.7170573",
"0.71677023"... | 0.0 | -1 |
addedToWorld adds the label to the world | public void addedToWorld(World w){
PauseWorld world = (PauseWorld) w;
world.addObject(nameLabel,this.getX(),this.getY()+itemSize/2+10);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void addedToWorld(World world) \n {\n createImages();\n }",
"void addLabel(Object newLabel);",
"void addLabel(Object newLabel);",
"public void addedToWorld(World w) {\r\n\t\tupdate();\r\n\t}",
"public void addToWorld(World world);",
"@Override\n\t\tpublic void addLabel(Label label)... | [
"0.6870934",
"0.6860833",
"0.6860833",
"0.68164295",
"0.6627345",
"0.6509333",
"0.6451585",
"0.64175665",
"0.6412216",
"0.63878703",
"0.62992734",
"0.61924493",
"0.6088048",
"0.5996643",
"0.5965486",
"0.5948207",
"0.58608687",
"0.5787394",
"0.57822263",
"0.5776922",
"0.576617... | 0.68763155 | 0 |
Act do whatever the StoreItem wants to do. This method is called whenever the 'Act' or 'Run' button gets pressed in the environment. | public void act()
{
if(Greenfoot.mouseClicked(this)){
storeMenu.getLastPressed(this,item,cost);
changeImage();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void act() {\n\t\tmyAction.embodiment();\n\t}",
"public void act()\n {\n if(onSales == true)\n {\n calculateSale();\n }\n }",
"public void act() \r\n {\r\n // Add your action code here.\r\n }",
"public void act() \r\n {\r\n // Add your acti... | [
"0.6600735",
"0.6585301",
"0.6477034",
"0.6477034",
"0.6356215",
"0.6356215",
"0.6356215",
"0.6356215",
"0.6356215",
"0.6356215",
"0.6356215",
"0.6356215",
"0.6311412",
"0.6304133",
"0.628801",
"0.62778574",
"0.62372595",
"0.6189572",
"0.6123601",
"0.6084341",
"0.6074675",
... | 0.61677706 | 18 |
changeImage changes the image of StoreItem | public void changeImage(){
if(getImage()==storeItemImg) setImage(selected);
else setImage(storeItemImg);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setImage(Image itemImg) \n {\n img = itemImg;\n }",
"public void changeImage() {\r\n this.image = ColourDoor.image2;\r\n }",
"void setImage(String image);",
"public void setImage(String image){\n this.image = image;\n }",
"public void setImage(Image image) {\n ... | [
"0.7345953",
"0.7041595",
"0.6797216",
"0.6700662",
"0.6635921",
"0.6630592",
"0.6608456",
"0.6608456",
"0.6579573",
"0.6570444",
"0.6532343",
"0.6425963",
"0.6397492",
"0.6344687",
"0.63019586",
"0.62688625",
"0.6256811",
"0.61985075",
"0.6186831",
"0.6174338",
"0.61683923",... | 0.83442676 | 0 |
Gets the property id. | public int getPropertyId() {
return propertyId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getPropertyId() {\n return propertyId;\n }",
"public String getPropertyID()\n {\n String v = (String)this.getFieldValue(FLD_propertyID);\n return StringTools.trim(v);\n }",
"public String id() {\n return getString(FhirPropertyNames.PROPERTY_ID);\n }... | [
"0.84973115",
"0.8277192",
"0.8263903",
"0.8263903",
"0.8263903",
"0.8263903",
"0.8263903",
"0.8263903",
"0.8263903",
"0.8180967",
"0.7267615",
"0.7212356",
"0.71260214",
"0.700012",
"0.6894637",
"0.67045116",
"0.6687906",
"0.66700166",
"0.6668358",
"0.6667422",
"0.66559196",... | 0.8553064 | 0 |
Sets the property id. | public void setPropertyId(int propertyId) {
this.propertyId = propertyId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setPropertyId(String propertyId) {\n this.propertyId = propertyId == null ? null : propertyId.trim();\n }",
"public void setId(Object id) {\n this.id = id;\n }",
"public void setId(Object id) {\n this.id = id;\n }",
"public void setId(int id) {\n this.id = Str... | [
"0.75824696",
"0.7479753",
"0.7479753",
"0.72900754",
"0.72815466",
"0.7252524",
"0.72178197",
"0.72129387",
"0.7206874",
"0.7206874",
"0.7206874",
"0.71987677",
"0.7194252",
"0.7194252",
"0.7190276",
"0.7190276",
"0.7190276",
"0.7190276",
"0.7190276",
"0.71777713",
"0.717654... | 0.79433405 | 0 |
Gets the property title. | public String getPropertyTitle() {
return propertyTitle;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getTitle() {\n return getProperty(Property.TITLE);\n }",
"public String getTitle() {\r\n\t\treturn (String) getProperty(\"title\");\t\r\n\t}",
"@HippoEssentialsGenerated(internalName = \"katharsisexampleshippo:title\")\n public String getTitle() {\n return getProperty(TITLE);\n }... | [
"0.8974607",
"0.890522",
"0.8424607",
"0.8250218",
"0.8230122",
"0.8228076",
"0.8226373",
"0.8226373",
"0.8226373",
"0.8150307",
"0.8150182",
"0.81501544",
"0.8146433",
"0.8146433",
"0.8146433",
"0.8121885",
"0.8110676",
"0.8107882",
"0.8107882",
"0.8107882",
"0.8107882",
"... | 0.8694869 | 2 |
Sets the property title. | public void setPropertyTitle(String propertyTitle) {
this.propertyTitle = propertyTitle;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setTitle_(String title_) {\n this.title_ = title_;\n }",
"public void setTitle(Title title) {\r\n this.title = title;\r\n }",
"public void setTitle(String title) {\r\n _title = title;\r\n }",
"public void setTitle(String title) {\r\n this.title = title;\r\n }",
... | [
"0.82702285",
"0.82678956",
"0.82661575",
"0.82581156",
"0.82581156",
"0.82478327",
"0.82478327",
"0.8218751",
"0.8215404",
"0.8210255",
"0.8210255",
"0.8210255",
"0.82101727",
"0.82101727",
"0.82101727",
"0.82101727",
"0.82101727",
"0.82101727",
"0.82101727",
"0.82101727",
"... | 0.8568892 | 0 |
Gets the property buyer id. | public int getPropertyBuyerId() {
return propertyBuyerId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Long getBuyerId() {\r\n return buyerId;\r\n }",
"public Number getBuyerId() {\n return (Number)getAttributeInternal(BUYERID);\n }",
"public Number getBuyerId() {\n return (Number) getAttributeInternal(BUYERID);\n }",
"public String getBuyer() {\n return buyer;\n ... | [
"0.84256047",
"0.83953196",
"0.83814126",
"0.74116623",
"0.7328026",
"0.7186508",
"0.7182612",
"0.69357353",
"0.6864352",
"0.6862722",
"0.671491",
"0.65913445",
"0.65828097",
"0.6574996",
"0.6574996",
"0.652071",
"0.652071",
"0.6497049",
"0.6495612",
"0.64194375",
"0.64129007... | 0.89023745 | 0 |
Sets the property buyer id. | public void setPropertyBuyerId(int propertyBuyerId) {
this.propertyBuyerId = propertyBuyerId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setBuyerId(Number value) {\n setAttributeInternal(BUYERID, value);\n }",
"public void setBuyerId(Number value) {\n setAttributeInternal(BUYERID, value);\n }",
"public void setBuyerId(Long buyerId) {\r\n this.buyerId = buyerId;\r\n }",
"public Long getBuyerId() {\r\n ... | [
"0.8028212",
"0.8028212",
"0.7998957",
"0.7723444",
"0.75832665",
"0.739008",
"0.6878596",
"0.68419963",
"0.675417",
"0.67115897",
"0.6453575",
"0.6366449",
"0.6358543",
"0.63063383",
"0.6232807",
"0.6026945",
"0.6013667",
"0.59706414",
"0.5962996",
"0.5962996",
"0.59513366",... | 0.82439387 | 0 |
Gets the un sold. | public String getUnSold() {
return unSold;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setUnSold(String unSold) {\n\t\tthis.unSold = unSold;\n\t}",
"public int getUnitsSold(){\n\t\treturn unitsSold;\n\t}",
"public int getSold() {\n\t\treturn sold_;\n\t}",
"public int getAmountSold() { return amountSold; }",
"public static String getSells() {\n if(DatabaseMethods.sales_... | [
"0.6964856",
"0.6919372",
"0.68329585",
"0.64950067",
"0.6405022",
"0.6211651",
"0.61068827",
"0.60648066",
"0.6030389",
"0.601672",
"0.5983919",
"0.598302",
"0.59516543",
"0.59413195",
"0.59410256",
"0.59243596",
"0.5885843",
"0.58704734",
"0.58546966",
"0.58169997",
"0.5807... | 0.8439261 | 0 |
Sets the un sold. | public void setUnSold(String unSold) {
this.unSold = unSold;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void resetAmountSold() { amountSold = 0; }",
"public void setSold(int sold) {\n\t\t\n\t\tsold_ = sold;\n\t}",
"public String getUnSold() {\n\t\treturn unSold;\n\t}",
"public void markUnsold(){\n\n myMaxRejectCountCount--;\n }",
"public void setSold(final boolean newSold) {\n this.so... | [
"0.7366213",
"0.6884151",
"0.6555155",
"0.6372815",
"0.6364628",
"0.63287747",
"0.62476003",
"0.61382776",
"0.6062098",
"0.5961428",
"0.5851271",
"0.5763874",
"0.57344884",
"0.57191527",
"0.5718679",
"0.5711984",
"0.57043356",
"0.56936455",
"0.56845915",
"0.56661963",
"0.5637... | 0.8105325 | 0 |
/ access modifiers changed from: packageprivate | public final void a(int i, org.b.c<? super T>[] cVarArr, org.b.c<T>[] cVarArr2, ah.c cVar) {
io.reactivex.internal.b.a aVar = cVarArr[i];
io.reactivex.internal.d.b bVar = new io.reactivex.internal.d.b(this.c);
if (aVar instanceof io.reactivex.internal.b.a) {
cVarArr2[i] = new c(aVar,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private stendhal() {\n\t}",
"private Rekenhulp()\n\t{\n\t}",
"@Override\n protected void prot() {\n }",
"public void method_4270() {}",
"@Override\n public void func_104112_b() {\n \n }",
"private void m50366E() {\n }",
"private void kk12() {\n\n\t}",
"public final void mo51373a... | [
"0.7151204",
"0.6685856",
"0.65579224",
"0.64821804",
"0.6429287",
"0.6384333",
"0.63834417",
"0.63473904",
"0.63293463",
"0.6275806",
"0.62622887",
"0.62497604",
"0.62368774",
"0.623226",
"0.62282825",
"0.61979276",
"0.61979276",
"0.61937356",
"0.618325",
"0.6179347",
"0.615... | 0.0 | -1 |
Method for getting all customers | @ApiOperation(value = "Lists all the customers", notes = "")
@GetMapping(produces = MediaType.APPLICATION_JSON_VALUE)
@ResponseStatus(HttpStatus.OK)
public CustomerListDTO getCustomers() {
return new CustomerListDTO(customerService.getCustomers());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic List<Customer> retrieveAllCustomers() {\n\t\tlogger.info(\"A GET call retrieved all customers: retrieveAllCustomers()\");\n\t\treturn customers;\n\t}",
"public void listAllCustomers () {\r\n\t\t\r\n customersList = my.resturnCustomers();\r\n\t\t\r\n\t}",
"@RequestMapping(value = ... | [
"0.8588482",
"0.840245",
"0.8392069",
"0.8387138",
"0.8339042",
"0.82050174",
"0.8184143",
"0.8179307",
"0.81767845",
"0.8134683",
"0.8090283",
"0.80825144",
"0.80318147",
"0.8023606",
"0.8003214",
"0.7996572",
"0.7989143",
"0.79804224",
"0.79743975",
"0.7959958",
"0.7928802"... | 0.73586684 | 66 |
Method for getting customer by customer Id | @ApiOperation(value = "Get a customer by id", notes = "")
@GetMapping(value = {"/{customerId}"}, produces = MediaType.APPLICATION_JSON_VALUE)
@ResponseStatus(HttpStatus.OK)
public CustomerDTO getCustomerById(@PathVariable Long customerId) {
return customerService.getCustomerById(customerId);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Customer getCustomerById(final Long id);",
"public String getCustomer(String custId);",
"Customer getCustomerById(int customerId);",
"@Override\n\tpublic CustomerData getCustomer(Long custId) {\n\t \n\t\tOptional<CustomerData> optionalCust = customerRepository.findById(custId);\n\t\t//Optional object use fo... | [
"0.8790163",
"0.86227494",
"0.8460868",
"0.81992376",
"0.81736803",
"0.8106404",
"0.80786264",
"0.8070065",
"0.80467415",
"0.804429",
"0.8018231",
"0.8009267",
"0.79840046",
"0.7978098",
"0.7958314",
"0.7945328",
"0.79346776",
"0.7919267",
"0.7901006",
"0.78954834",
"0.787736... | 0.74341774 | 58 |
Method for creating new customer | @ApiOperation(value = "Create a customer", notes = "")
@PostMapping(produces = MediaType.APPLICATION_JSON_VALUE)
@ResponseStatus(HttpStatus.CREATED)
public CustomerDTO createCustomer(@Validated @RequestBody CustomerDTO customerDTO) {
return customerService.createCustomer(customerDTO);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void CreateCustomer() \r\n\t{\n\t\t\r\n\t}",
"Customer createCustomer();",
"Customer createCustomer();",
"Customer createCustomer();",
"Customer createCustomer();",
"public Customer createCustomer() {\r\n\t\ttry {\r\n\t\t\treturn manager.createCustomer();\t\t\t\r\n\t\t}catch(SQLException e)... | [
"0.8406285",
"0.8144457",
"0.8144457",
"0.8144457",
"0.8144457",
"0.7856831",
"0.77844185",
"0.77560866",
"0.77179873",
"0.7704594",
"0.7594677",
"0.7552317",
"0.7545494",
"0.752054",
"0.74375945",
"0.74178195",
"0.74076104",
"0.7380247",
"0.73783547",
"0.7340332",
"0.7330097... | 0.704887 | 32 |
Method for updating a customer | @ApiOperation(value = "Replace a customer by new data", notes = "")
@PutMapping(value = {"/{customerId}"},produces = MediaType.APPLICATION_JSON_VALUE)
@ResponseStatus(HttpStatus.OK)
public CustomerDTO updateCustomer(@PathVariable Long customerId,@Validated @RequestBody CustomerDTO customerDTO) {
ret... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void updateCustomerById(Customer customer);",
"public void update(Customer customer) {\n\n\t}",
"@Override\n\tpublic void update(Customer customer) {\n\t\t\n\t}",
"@Override\n\tpublic void update(Customer customer) {\n\t\t\n\t}",
"public void updateCustomer(String id) {\n\t\t\n\t}",
"@PutMapping(\"/custo... | [
"0.84666336",
"0.8386725",
"0.8168051",
"0.8168051",
"0.8151344",
"0.8092146",
"0.8088517",
"0.80220366",
"0.8009493",
"0.7939521",
"0.793088",
"0.78855145",
"0.77770597",
"0.77547574",
"0.77361846",
"0.7673699",
"0.7656402",
"0.7644504",
"0.76221085",
"0.7600373",
"0.7582782... | 0.7481072 | 24 |
Method for partially updating a customer | @ApiOperation(value = "Update a customer", notes = "")
@PatchMapping(value = {"/{customerId}"}, produces = MediaType.APPLICATION_JSON_VALUE)
@ResponseStatus(HttpStatus.OK)
public CustomerDTO patchCustomer(@PathVariable Long customerId,@Validated @RequestBody CustomerDTO customerDTO) {
return custome... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void update(Customer customer) {\n\t\t\n\t}",
"@Override\n\tpublic void update(Customer customer) {\n\t\t\n\t}",
"public void update(Customer customer) {\n\n\t}",
"@Override\n\tpublic boolean updateCustomer(Customer customer) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic void update(... | [
"0.7688378",
"0.7688378",
"0.76761556",
"0.76484114",
"0.7512438",
"0.74872863",
"0.7432068",
"0.7373564",
"0.73472786",
"0.719543",
"0.7149953",
"0.7083316",
"0.706752",
"0.7051556",
"0.70248246",
"0.69738495",
"0.6966281",
"0.6931656",
"0.69076973",
"0.6882889",
"0.68687767... | 0.6465701 | 42 |
Method for deleting customer | @ApiOperation(value = "Delete a customer", notes = "")
@DeleteMapping(value = {"/{customerId}"}, produces = MediaType.APPLICATION_JSON_VALUE)
@ResponseStatus(HttpStatus.OK)
public void deleteCustomer(@PathVariable Long customerId) {
customerService.deleteCustomerById(customerId);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void deleteCustomerById(int customerId);",
"@Override\n\tpublic void delete(Customer customer) {\n\t\t\n\t}",
"@Override\n\tpublic void delete(Customer customer) {\n\t\t\n\t}",
"public boolean deleteCustomer(String custId);",
"void delete(Customer customer);",
"void deleteCustomerById(Long id);",
"bool... | [
"0.84013003",
"0.8387055",
"0.8387055",
"0.83765763",
"0.83436453",
"0.8227435",
"0.805324",
"0.79400575",
"0.78755504",
"0.7845096",
"0.7829302",
"0.7775088",
"0.7767667",
"0.77298963",
"0.77280587",
"0.77126",
"0.76576877",
"0.7656186",
"0.7619352",
"0.76142055",
"0.7590304... | 0.7333065 | 38 |
this should record state | public void turnOn( ) {
System.out.println("Light is on ");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void storeCurrentValues() {\n }",
"@Override\n\tpublic void stateChanged() {\n\t\t\n\t}",
"@Override\n\tpublic boolean getState() {\n\t\treturn true;\n\t}",
"public void saveState() {\n\t\tsuper.saveState();\n\t}",
"@Override\r\n\tpublic void nextState() {\n\t\t\r\n\t}",
"public void saveSta... | [
"0.67175335",
"0.66460145",
"0.66298324",
"0.6595664",
"0.6569283",
"0.6546335",
"0.6541719",
"0.6505443",
"0.64684176",
"0.64490455",
"0.6415957",
"0.64067334",
"0.64067334",
"0.6372395",
"0.6316121",
"0.62841475",
"0.626142",
"0.62589836",
"0.6218416",
"0.6213672",
"0.61910... | 0.0 | -1 |
invoker calls back concrete Command, which executes the Command on the receiver | void flipUp( ) {
UpCommand . execute ( ) ;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void execute() {\n\t\tcmdReceiver.send();\n\t}",
"@Override\n public void process(Serializable msg) {\n ((Command) msg).execute(arg);\n }",
"@Override\r\n public void execute(Command command) {\n\r\n }",
"public abstract void execute(CommandSender sender, String[] args)... | [
"0.7327477",
"0.70088875",
"0.69731516",
"0.6931772",
"0.6734653",
"0.66347116",
"0.65902",
"0.6581827",
"0.6551817",
"0.6550323",
"0.65483654",
"0.65331066",
"0.65331066",
"0.65331066",
"0.65217525",
"0.65217525",
"0.65217525",
"0.6516743",
"0.6509607",
"0.64916927",
"0.6489... | 0.0 | -1 |
Created by Administrator on 2016/9/21. | public interface CityOnItemClickListener {
void onItemClickListener(View v,int position);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private stendhal() {\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Ov... | [
"0.626636",
"0.6162385",
"0.6062402",
"0.60438097",
"0.59888417",
"0.5973482",
"0.5969236",
"0.5909406",
"0.5874125",
"0.58629006",
"0.58629006",
"0.584724",
"0.584724",
"0.58342296",
"0.5816661",
"0.579875",
"0.57987237",
"0.5786426",
"0.57545584",
"0.5753643",
"0.57510966",... | 0.0 | -1 |
TODO Autogenerated method stub | public static void main(String[] args) {
System.out.println("회원정보 CRUD::ISUD 테스트 >>> : ");
Scanner sc = new Scanner(System.in);
while (true) {
System.out.println("\n회원정보 전체조회:1, 조건조회:2, 등록:3, 수정:4, 삭제:5, 종료:0");
int isud = sc.nextInt();
if (0 == isud) break;
switch(isud) {
case 1... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
/ renamed from: a | public final void mo16520a(C5298a aVar) {
((C5032i5) this.receiver).mo16575a(aVar);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed fr... | [
"0.6249595",
"0.6242955",
"0.61393225",
"0.6117684",
"0.61140615",
"0.60893875",
"0.6046927",
"0.60248226",
"0.60201806",
"0.59753186",
"0.5947817",
"0.5912414",
"0.5883872",
"0.5878469",
"0.587005",
"0.58678955",
"0.58651674",
"0.5857262",
"0.58311176",
"0.58279663",
"0.5827... | 0.0 | -1 |
Method returns whether the string is a palindrome | public static boolean IsPalindrome(String string){
string = string.replace(" ", "");
String reverseString = new StringBuilder(string).reverse().toString();
return reverseString.equalsIgnoreCase(string);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isPalindrome(String s){ \n if(palindromes.containsKey(s))\n return (palindromes.get(s)).booleanValue();\n int m=0;\n int n=s.length()-1;\n while(m<n){\n if(s.charAt(m++)!=s.charAt(n--)){\n palindromes.put(s,new Boolean(false... | [
"0.84326226",
"0.83811265",
"0.83697784",
"0.8284689",
"0.82795733",
"0.8217246",
"0.8193495",
"0.81929606",
"0.8162319",
"0.8131772",
"0.8117207",
"0.8113742",
"0.80990857",
"0.80879873",
"0.8087824",
"0.80839837",
"0.8078415",
"0.8077951",
"0.80776703",
"0.8055455",
"0.8041... | 0.85919243 | 0 |
Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.uvm.wilkie.nlpminer.xgmml.bind | public ObjectFactory() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"XUMLRTFactory getXUMLRTFactory();",
"public interface DsmlprotoFactory extends EFactory {\n\t/**\n\t * The singleton instance of the factory.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tDsmlprotoFactory eINSTANCE = svk.dsmlproto.profile.dsmlproto.impl.DsmlprotoFactoryImpl... | [
"0.61873907",
"0.6095994",
"0.5921163",
"0.5861917",
"0.58508897",
"0.5847453",
"0.5838969",
"0.58229166",
"0.5794928",
"0.5759806",
"0.57345456",
"0.5734294",
"0.5712522",
"0.5688289",
"0.5677092",
"0.5672994",
"0.5664544",
"0.5659413",
"0.5652218",
"0.5641779",
"0.5635673",... | 0.0 | -1 |
Created by CodeGenerator on 2017/10/11. | public interface DataAcquisitionService extends Service<DataAcquisition> {
//首页查询问卷使用信息
List<DataAcquisition> questionnaireUseInfoListByPage();
//根据日期查询来访者使用的问卷
List<DataAcquisition> findQuestionnaireForVisitor (DataAcquisition dataAcquisition);
//查询活动的填报人数
Integer findCountByActivityId(String ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"pu... | [
"0.6196498",
"0.6194012",
"0.61794245",
"0.61300135",
"0.61300135",
"0.60163194",
"0.5979503",
"0.5924845",
"0.5902496",
"0.5900442",
"0.58977926",
"0.5885422",
"0.58806425",
"0.5834065",
"0.5834065",
"0.5834065",
"0.5834065",
"0.5834065",
"0.5834065",
"0.5824932",
"0.5824904... | 0.0 | -1 |
Create a new org.javaexpress.Student object. | public Student(String name) {
this.name = name;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Student createStudent();",
"private Student createStudent(Element studentNode) {\n String serialNumber = studentNode.getAttribute(\"serialNumber\");\n Student b = new Student();\n b.setSerialNumber(serialNumber);\n\n b.setName(getTextFromTagName(studentNode, \"name\"));\n b.set... | [
"0.8421047",
"0.77433187",
"0.7698441",
"0.7571628",
"0.75565064",
"0.75242966",
"0.75242966",
"0.75242966",
"0.74497",
"0.72694874",
"0.7269131",
"0.7207016",
"0.720428",
"0.7131511",
"0.7116238",
"0.70697564",
"0.7065754",
"0.70593727",
"0.7006932",
"0.6964567",
"0.6945775"... | 0.703695 | 18 |
Get the student name. | public String getName() {
return name;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public java.lang.String getStudent_name() {\n\t\treturn _primarySchoolStudent.getStudent_name();\n\t}",
"public String getName() \r\n {\r\n return studentName;\r\n }",
"public String getStudentName() {\r\n\t\treturn studentName;\r\n\t}",
"@AutoEscape\n\tpublic String getStudentName();",
"publi... | [
"0.83438647",
"0.8224323",
"0.80595875",
"0.8053583",
"0.79939073",
"0.77743596",
"0.77743596",
"0.74504644",
"0.7395612",
"0.7380758",
"0.7289177",
"0.72328514",
"0.7221249",
"0.71994704",
"0.71676385",
"0.7123197",
"0.7098305",
"0.7089956",
"0.7081266",
"0.7070321",
"0.7048... | 0.0 | -1 |
Add a class to the student class list. | public void addClass(String className) {
classes.add(className);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void addClass(Class c) { // adding a single class\n\t\tSQLiteDatabase db = this.getWritableDatabase();\n\n\t\tContentValues values = new ContentValues();\n\t\tvalues.put(KEY_ID, c.getID());\n\t\tvalues.put(KEY_TAKENIN, c.getTakenIn());\n\n\t\t/*\n\t\t * values.put(KEY_ID, 1234567890); values.put(KEY_MAJORN,... | [
"0.703148",
"0.65519583",
"0.6541326",
"0.6495688",
"0.6440078",
"0.6397573",
"0.6334041",
"0.6273632",
"0.6244152",
"0.6237732",
"0.62133753",
"0.61329764",
"0.61225754",
"0.6099747",
"0.6097218",
"0.6067842",
"0.6043461",
"0.60123307",
"0.5982077",
"0.5981596",
"0.5974656",... | 0.6653816 | 1 |
Get the student classes. | public String getClasses() {
String classesString = "";
for (String className : classes) {
classesString += (className + "\n");
}
return classesString;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static ArrayList<Class> getClassesFromStudent(Student s)\n\t{\n\t\tint studentId = s.getUserId();\n\t\tString sql = \"SELECT c.classcode, c.classname, i.* FROM UserInfo i, ClassMember cm, Class c \"\n\t\t\t\t+ \"WHERE cm.studentID = ? \"\n\t\t\t\t+ \"AND cm.classcode = c.classcode AND c.instructorID = i.use... | [
"0.76394814",
"0.67394257",
"0.65759015",
"0.657506",
"0.6571162",
"0.65699905",
"0.6478944",
"0.64407325",
"0.6414358",
"0.6387987",
"0.63138485",
"0.62667483",
"0.6232342",
"0.62235165",
"0.62233233",
"0.6131899",
"0.6125884",
"0.61228776",
"0.6104599",
"0.5992359",
"0.5965... | 0.62141174 | 15 |
Decode some data to a tensor | public static Tensor decode(Optional<TensorType> type, GrowableByteBuffer buffer) {
int formatType = buffer.getInt1_4Bytes();
switch (formatType) {
case MIXED_BINARY_FORMAT_TYPE: return new MixedBinaryFormat().decode(type, buffer);
case SPARSE_BINARY_FORMAT_TYPE: return new Spars... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"T decode1(DataBuffer buffer);",
"void decodeNetwork(double[] data);",
"void decode (DataInputStream dis, Node [] table, Decoder decoder) {\n m_size = Decoder.readUnsignedByte (dis);\n if (m_size == 255) {\n m_size = Decoder.readUnsignedByte (dis) * 255 + Decoder.readUnsignedByte (dis) ... | [
"0.5683125",
"0.55445176",
"0.5479837",
"0.51887816",
"0.5188482",
"0.5157029",
"0.51329815",
"0.509994",
"0.5090933",
"0.50558645",
"0.50093836",
"0.50061625",
"0.49957013",
"0.49410608",
"0.48669353",
"0.48322028",
"0.47335756",
"0.47123072",
"0.46438247",
"0.46265718",
"0.... | 0.5199091 | 3 |
/ JADX WARNING: inconsistent code. / Code decompiled incorrectly, please refer to instructions dump. | public void b(android.database.sqlite.SQLiteDatabase r12) {
/*
r11 = this;
r6 = 0;
r9 = 20;
r7 = 1;
r1 = 0;
r4 = 0;
r0 = "select id, value from runtime order by id";
r2 = 0;
r0 = r12.rawQuery(r0, r2); Catch:{ Exception -> 0x02e8, all -> 0x... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void method_2241() {\r\n // $FF: Couldn't be decompiled\r\n }",
"private void method_7083() {\r\n // $FF: Couldn't be decompiled\r\n }",
"protected void method_2145() {\r\n // $FF: Couldn't be decompiled\r\n }",
"protected void method_2247() {\r\n // $FF: Couldn't be decom... | [
"0.7617459",
"0.7573662",
"0.75262785",
"0.74514425",
"0.74513507",
"0.74378777",
"0.7382313",
"0.7382313",
"0.7367218",
"0.73539925",
"0.7342764",
"0.73155916",
"0.7308106",
"0.7306313",
"0.7273729",
"0.7253095",
"0.7222029",
"0.7198275",
"0.71782386",
"0.7137191",
"0.710699... | 0.0 | -1 |
TODO Autogenerated method stub | public static void main(String[] args) {
String path = "Test1.pdf";
} | {
"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.66708666",
"0.65675074",
"0.65229905",
"0.6481001",
"0.64770633",
"0.64584893",
"0.6413091",
"0.63764185",
"0.6275735",
"0.62541914",
"0.6236919",
"0.6223816",
"0.62017626",
"0.61944294",
"0.61944294",
"0.61920846",
"0.61867654",
"0.6173323",
"0.61328775",
"0.61276996",
"0... | 0.0 | -1 |
Check for double profile | private boolean moreProfileExists(String name) {
db = dbHelper.getReadableDatabase();
Cursor cursor = db.query(DbContract.MoreEntry.TN, DbContract.MoreEntry.allColumns, DbContract.MoreEntry.CN_NAME + " = '" + name + "'", null, null, null, null);
cursor.moveToFirst();
if (cursor.getCount() == 0... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean verifyProfile(Profile p) {\n // If the two profiles are exactly the same, they will obviously match each other\n if (this.equals(p)) {\n if (ServerUtils.SERVER_DEPLOY) LogManager.getInstance().logInfo(this.getImei() + \": Equal Profile.\");\n System.out.println(\"... | [
"0.63370514",
"0.6147558",
"0.5860948",
"0.5738779",
"0.57004863",
"0.5595095",
"0.55246687",
"0.54725975",
"0.54567873",
"0.5446779",
"0.54360485",
"0.5394472",
"0.5376344",
"0.53639984",
"0.53363526",
"0.53272134",
"0.5327164",
"0.53260744",
"0.5283054",
"0.52733576",
"0.52... | 0.0 | -1 |
Store: Wenn vorhanden ersetzen, ansonsten anlegen. | public void storeMore(MoreEntity moreEntity) {
boolean exists = moreProfileExists(moreEntity.getName());
if (exists){
updateMore(moreEntity);
}else{
moreEntity.setId(0);
createMore(moreEntity);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void handleStore()\r\n {\r\n //\r\n }",
"public final void store(final boolean store) {\n\t\tthis.store = store;\n\t}",
"public void store() throws PersistenceException {\n }",
"public abstract boolean store();",
"public void store() {\r\n\t\tdata = busExt.get();\r\n\t}",
"protected void s... | [
"0.74852455",
"0.7166507",
"0.70723116",
"0.7023662",
"0.6998689",
"0.6973745",
"0.69087845",
"0.6855835",
"0.674862",
"0.6719747",
"0.67135996",
"0.6681386",
"0.6623781",
"0.65670604",
"0.65562403",
"0.6552258",
"0.65325016",
"0.65307075",
"0.6528883",
"0.6528229",
"0.652700... | 0.0 | -1 |
/ Set error message | public static void showMsgError(TextInputLayout textInputLayout, EditText editText, String errText){
textInputLayout.setError(errText);
errorStyle(editText, Color.RED);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract void setError(String message);",
"void setErrorMessage(String errorMessage);",
"void setError();",
"public void setErrorMessage(String msg) {\r\n\t\terrorMessage.setText(msg);\r\n\t}",
"public void setErrorMsg(String text) {\n this.errorMsg = text;\n }",
"public void error(Strin... | [
"0.8618977",
"0.8016403",
"0.7836277",
"0.77035683",
"0.7626213",
"0.76247257",
"0.75914943",
"0.74975324",
"0.7482604",
"0.7474886",
"0.74188286",
"0.73075956",
"0.7268612",
"0.7258912",
"0.7258912",
"0.7241186",
"0.72400767",
"0.7233098",
"0.71865386",
"0.7115728",
"0.70888... | 0.0 | -1 |
/ Hide error message | public static void hideMsgError(TextInputLayout textInputLayout, EditText editText, int color){
textInputLayout.setError("");
editText.setTextColor(Color.BLACK);
errorStyle(editText, color);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void showErrorMessage() {\n mErrorMessageDisplay.setVisibility(View.VISIBLE);\n mMoviesList.setVisibility(View.INVISIBLE);\n }",
"private void showErrorMessage() {\n gridview.setVisibility(View.INVISIBLE);\n // Then, show the error\n errorTextView.setVisibility(View.V... | [
"0.7574791",
"0.7569482",
"0.75491047",
"0.7511062",
"0.74607325",
"0.7458696",
"0.7347395",
"0.73292905",
"0.73088086",
"0.72954637",
"0.728224",
"0.7176284",
"0.7176284",
"0.71288896",
"0.7112672",
"0.71014875",
"0.70863014",
"0.70445764",
"0.7016906",
"0.70065457",
"0.7004... | 0.0 | -1 |
/Text message error style of Edited text | public static void errorStyle(EditText edt, int color){
Drawable drawable = edt.getBackground(); // get current EditText drawable
drawable.setColorFilter(color, PorterDuff.Mode.SRC_ATOP); // change the drawable color
if(Build.VERSION.SDK_INT > 16) {
edt.setBackground(drawable); // s... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static Text error(Text error) {\n\t\treturn error.setStyle(error.getStyle().setFormatting(Formatting.RED));\n\t}",
"private void updateErrorText()\n {\n mErrorText.clear();\n mErrorText.clearSpans();\n final int length = mTextInputLayout.getText().length();\n if(length >= 0)... | [
"0.64710563",
"0.6441088",
"0.6426239",
"0.6236254",
"0.6085987",
"0.60300213",
"0.60256606",
"0.5982498",
"0.5971344",
"0.5960619",
"0.5958621",
"0.5932994",
"0.5848036",
"0.58427346",
"0.58251923",
"0.58180845",
"0.5780444",
"0.5744332",
"0.5741101",
"0.5741101",
"0.5741101... | 0.53977334 | 62 |
/ CONVERTING CORPUS FILE TO LIST OF TERMS | private void startParsing(){
pondred = new ArrayList<>();
//extract docs from corpus
for (String xml:parseDocsFile(docs_file))
{
try {
pondred.add(loadXMLFromString(xml));
} catch (Exception e) {
e.printStackTrace();
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void parseTermData()\n {\n for (int i = 0; i < data.length; i++)\n {\n data[i] = Cdata[i];\n }\n }",
"private static List<Term> toTerms(ByteBuffer... values)\n {\n List<Term> terms = new ArrayList<>();\n for (ByteBuffer value : values)\n ... | [
"0.5465931",
"0.53852266",
"0.534532",
"0.5270885",
"0.5239452",
"0.51426876",
"0.51417714",
"0.505758",
"0.49924332",
"0.4937324",
"0.49150676",
"0.4875441",
"0.48614252",
"0.48508367",
"0.48443833",
"0.48192713",
"0.48140666",
"0.48003244",
"0.47934383",
"0.47903308",
"0.47... | 0.0 | -1 |
/ INSERTING INVERTED INDEX TO DATABASE | private void invertedToDatabase(){
cleFreq = new HashMap<>();
System.out.println("Strat collecting");
Map<String,List<Invertedindex>> collects = collecting();
System.out.println("Ending collecting");
Database.getInstance().invertedIndex(collects);
Database.getInstan... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"InstAssignIndex createInstAssignIndex();",
"public void addIndex(){\n\t\tdbCol=mdb.getCollection(\"genericCollection\");\n\t\tstart=Calendar.getInstance().getTimeInMillis();\n\t\tdbCol.ensureIndex(new BasicDBObject(\"RandomGeo\", \"2d\"));\n\t\tstop = Calendar.getInstance().getTimeInMillis() - start;\n\t\tSystem... | [
"0.71160525",
"0.620763",
"0.6169432",
"0.60389113",
"0.5873213",
"0.5872353",
"0.5854258",
"0.58463305",
"0.57917315",
"0.57391983",
"0.57334906",
"0.57274896",
"0.5723555",
"0.5689704",
"0.56502813",
"0.56499386",
"0.5649755",
"0.56368333",
"0.56347865",
"0.56246233",
"0.56... | 0.563041 | 19 |
/ PARSING FROM XML TAGS | private Core loadXMLFromString(String xml)
throws Exception
{
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder builder = factory.newDocumentBuilder();
Document doc = builder.parse(new InputSource(new StringReader(xml)));
XPathF... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private String[] extractXmlElementValues(String xmlTagName, String text, boolean includeStartEndTags) {\n ArrayList<String> foundElements = new ArrayList<String>();\n int currentPos = 0;\n\n while ( currentPos >= 0 ) {\n String startTag = \"<\" + xmlTagName + \">\";\n Str... | [
"0.6164865",
"0.59987974",
"0.58365864",
"0.5820896",
"0.5426854",
"0.5321804",
"0.5272686",
"0.5234039",
"0.5231467",
"0.5217583",
"0.51409745",
"0.5108518",
"0.5069484",
"0.5047591",
"0.4998873",
"0.49966365",
"0.49934724",
"0.49798474",
"0.48598412",
"0.4849035",
"0.484832... | 0.0 | -1 |
/ READ CORPUS FILE | private ArrayList<String> parseDocsFile(String file_name){
// extract each <DOC> ... </DOC> from file AS string (corpus)
ArrayList<String> list = new ArrayList<>();
Scanner scanner = null;
try{
scanner = new Scanner(new BufferedReader(new FileReader(file_name)));
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static void read(Client client,String user,String filename) throws SystemException, TException {\n\t\t\n\t\tString keyString = user + \":\" + filename;\n\t\tString key = sha_256(keyString);\n\t\t\n\t\t\n\t\tNodeID succNode = client.findSucc(key);\n\t\tString predIP = succNode.ip;\n\t\t// predIP = \"127.0.0... | [
"0.64465094",
"0.6293937",
"0.6244333",
"0.6159644",
"0.6138482",
"0.6138482",
"0.61180973",
"0.6102525",
"0.6089945",
"0.6020358",
"0.599513",
"0.59600204",
"0.5932599",
"0.59304583",
"0.5913303",
"0.5901555",
"0.58883977",
"0.5886409",
"0.588065",
"0.5872522",
"0.58690757",... | 0.0 | -1 |
/ READ STOP LIST FILE | private ArrayList<String> parseFile(String file_name){ // extract each line from file AS string (stopList)
ArrayList<String> list = new ArrayList<>();
Scanner scanner = null;
try{
scanner = new Scanner(new BufferedReader(new FileReader(file_name)));
while (scanner... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void readStopList() throws FileNotFoundException {\n String tempBuffer = \"\";\n Scanner sc_obj = new Scanner(new File(\"./inputFiles/Stopword-List.txt\"));\n\n while(sc_obj.hasNext()) {\n tempBuffer = sc_obj.next();\n stopWords.add(tempBuffer);\n }\n... | [
"0.7153344",
"0.61718976",
"0.5992753",
"0.59904003",
"0.5985814",
"0.586684",
"0.5811245",
"0.56638086",
"0.56451154",
"0.56368864",
"0.5622598",
"0.5621233",
"0.56184036",
"0.5606826",
"0.5545313",
"0.55374146",
"0.55267966",
"0.5485674",
"0.5451137",
"0.54264176",
"0.54127... | 0.62634265 | 1 |
CALCULATING THE NUMBER OF DUPLICATES TERMS IN ALL CORPUS TO USE THEM IN IDF | @Override
public Integer countingDuplicates(String match) {
if(duplicates == null) { // if it's not already located
duplicates = new HashMap<>();
for (Core str : pondred) {
for (String term:str.abstractTerm){
if (duplicates.containsKey(term) ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void calculateIdf(){\r\n\t\tIdf = new HashMap<>();\r\n\t\tOcc = new HashMap<>();\r\n\t\t\r\n\t\tfor (Entry<String, Document> doc : Docs.entrySet()){\r\n\t\t\tdoc.getValue().wordSet.forEach(word -> {\r\n\t\t\t\tdouble count = Idf.containsKey(word) ? Idf.get(word) : 0;\r\n \tIdf.put(word, count+1)... | [
"0.64163786",
"0.5751977",
"0.56551105",
"0.5602079",
"0.5596391",
"0.54883385",
"0.5472159",
"0.54304314",
"0.53834647",
"0.5312463",
"0.530415",
"0.5272738",
"0.5196606",
"0.5189129",
"0.5163977",
"0.5160928",
"0.51580083",
"0.5149255",
"0.51279664",
"0.5127499",
"0.5121251... | 0.516992 | 14 |
/ COLLECTING ALL KIND OF FIELDS TO CREATE AN INVERTED INDEX | private Map<String,List<Invertedindex>> collecting() //
{
Map<String,List<Invertedindex>> maps = new TreeMap<>();
for (Core pon:pondred){
for(Map.Entry<String,Double> term:pon.allTerms.entrySet()){
if (maps.containsKey(term.getKey())){
List<I... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface FieldIndex<T> extends GenericIndex<T> \r\n{ \r\n /**\r\n * Put new object in the index. \r\n * @param obj object to be inserted in index. Object should contain indexed field. \r\n * Object can be not yet peristent, in this case\r\n * its forced to become persistent by assigning ... | [
"0.62283075",
"0.57872534",
"0.5663462",
"0.56244236",
"0.5579898",
"0.5398986",
"0.53807575",
"0.53729707",
"0.53525335",
"0.5340287",
"0.5339657",
"0.5329695",
"0.52955717",
"0.52894723",
"0.5286939",
"0.52701664",
"0.5248359",
"0.5233722",
"0.52181256",
"0.5204922",
"0.519... | 0.0 | -1 |
hebt angegebenen Betrag vom Konto ab | public boolean withdraw(Double amount) {
if (amount < 0) {
return false;
}
if (amount > this.WITHDRAW_LIMIT) {
return false;
}
if (amount > this.balance) {
return false;
}
this.balance = this.balance - amount;
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void buche(Betrag betrag) {\n Betrag temp = betrag.umrechnen(waehrung);\n saldo = new Betrag((double) saldo.addiere(temp) / 100, waehrung);\n auszug = auszug.concat(temp.toString() + \"\\n\");\n }",
"Konto(Kunde zeichnungsberechtigter) {\n this.zeichnungsberechtigter.add(zei... | [
"0.6827624",
"0.6534126",
"0.6497518",
"0.6186799",
"0.6020265",
"0.59403074",
"0.5931036",
"0.5931036",
"0.59128124",
"0.58829683",
"0.58333933",
"0.58261144",
"0.58261144",
"0.5761026",
"0.574777",
"0.5737715",
"0.5712759",
"0.5705057",
"0.56795716",
"0.5621589",
"0.5592177... | 0.0 | -1 |
write model to modelPath | @Override
/**
* Write the trained model back to stored location.
*/
public void cleanup(
BSPPeer<LongWritable, FloatVectorWritable, NullWritable, NullWritable, ParameterMessage> peer) {
if (peer.getPeerIndex() == peer.getNumPeers() - 1) {
try {
LOG.info(String.format("End of training, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void saveToFile(File file, Model model) throws IOException;",
"public void saveModel(String filePath) {\n\n\t\tFile parentFile = new File(filePath).getParentFile();\n\t\tif (parentFile != null && !parentFile.exists()) {\n\t\t\tparentFile.mkdirs();\n\t\t}\n\n\t\ttry {\n\t\t\tObjectOutputStream oos = new Ob... | [
"0.7461393",
"0.6961926",
"0.66581285",
"0.6647093",
"0.6625135",
"0.65053207",
"0.64561933",
"0.64468235",
"0.64407045",
"0.6432542",
"0.6384342",
"0.637131",
"0.631564",
"0.63088787",
"0.627141",
"0.6258437",
"0.62080485",
"0.62056214",
"0.61980295",
"0.61647767",
"0.604857... | 0.0 | -1 |
load local data into memory | @Override
public void bsp(
BSPPeer<LongWritable, FloatVectorWritable, NullWritable, NullWritable, ParameterMessage> peer)
throws IOException, SyncException, InterruptedException {
LongWritable key = new LongWritable();
FloatVectorWritable value = new FloatVectorWritable();
while (peer.readNext... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void massiveModeLoading( File dataPath );",
"void loadData();",
"void loadData();",
"protected abstract void loadData();",
"public void loadData ( ) {\n\t\tinvokeSafe ( \"loadData\" );\n\t}",
"public void loadFromLocalStorage() {\n\t\t\n\t}",
"public abstract void loadData();",
"public abstract void ... | [
"0.7183373",
"0.7145944",
"0.7145944",
"0.7028276",
"0.69242305",
"0.6801786",
"0.679761",
"0.679761",
"0.67812073",
"0.6762945",
"0.6697079",
"0.6675782",
"0.6639662",
"0.6639662",
"0.66236615",
"0.6611056",
"0.6611056",
"0.6499879",
"0.6498621",
"0.646097",
"0.6369883",
"... | 0.0 | -1 |
Calculate the matrices updates according to local partition of data. | private void calculateUpdates(
BSPPeer<LongWritable, FloatVectorWritable, NullWritable, NullWritable, ParameterMessage> peer)
throws IOException {
// receive update information from master
if (peer.getNumCurrentMessages() != 0) {
ParameterMessage inMessage = peer.getCurrentMessage();
Flo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void calcAllMatrixSPP(int iNode1, int iNode2, int iNode3) {\n\t\tint [] iStates1 = m_iStates[iNode1];\n\t\tdouble [] fMatrices1 = m_fMatrices[m_iCurrentMatrices[iNode1]][iNode1];\n\t\tdouble [] fPartials2 = m_fPartials[m_iCurrentPartials[iNode2]][iNode2];\n\t\tdouble [] fMatrices2 = m_fMatrices[m_iCurrentMatrices[... | [
"0.58393556",
"0.5804161",
"0.58023417",
"0.57616156",
"0.57610536",
"0.5577702",
"0.54752606",
"0.5472715",
"0.54566216",
"0.54511464",
"0.54409665",
"0.5436339",
"0.5400433",
"0.53854245",
"0.53831166",
"0.5353626",
"0.5331179",
"0.5310277",
"0.5275458",
"0.5226846",
"0.521... | 0.6141819 | 0 |
Merge the updates according to the updates of the grooms. | private void mergeUpdates(
BSPPeer<LongWritable, FloatVectorWritable, NullWritable, NullWritable, ParameterMessage> peer)
throws IOException {
int numMessages = peer.getNumCurrentMessages();
boolean converge = false;
if (numMessages == 0) { // converges
converge = true;
return;
}... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void updateBuildingManager(){\n for(int onFloor = 0; onFloor < passengerArrivals.size(); onFloor++){\n for(int i = 0; i < passengerArrivals.get(onFloor).size(); i++){\n PassengerArrival aPassengerArrival = passengerArrivals.get(onFloor).get(i);\n if(SimClock.getTime()... | [
"0.613837",
"0.59957236",
"0.5955096",
"0.56693506",
"0.55438775",
"0.55139256",
"0.5381168",
"0.5356706",
"0.5347936",
"0.53002155",
"0.5259875",
"0.5245757",
"0.52315915",
"0.5219282",
"0.52134144",
"0.52119327",
"0.52105916",
"0.5176863",
"0.51741636",
"0.51734895",
"0.516... | 0.0 | -1 |
Use LUSTestSetup decorator to run Jini LUS once for this test class. | public static Test suite() {
final TestSuite ts = new TestSuite();
ts.addTestSuite(BuildAgentTest.class);
return new DistributedMasterBuilderTest.LUSTestSetup(ts);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@BeforeClass\n\tpublic void TestSetup() {\n\t}",
"@BeforeEach\n void setup()\n {\n Liquid juice = new Liquid(\"applejuice\", 0.25, 2.00);\n j = new Juice(\"applejuice\", juice, 17.5,false);\n }",
"@Override\r\n\tpublic void sssDoLwTestInit() {\n\r\n\t}",
"@BeforeClass\n\tpublic static... | [
"0.61831254",
"0.61024916",
"0.6057081",
"0.6010495",
"0.60073364",
"0.59990954",
"0.5986307",
"0.5950125",
"0.5949496",
"0.5936",
"0.5928299",
"0.58855224",
"0.5863404",
"0.58484995",
"0.58370215",
"0.5820628",
"0.5820628",
"0.5820628",
"0.5816522",
"0.5804944",
"0.58027375"... | 0.5582783 | 64 |
This test requires a bunch of manual steps: 1. Build the ccagent.war (created via: ant waragent). 2. Deploy ccagent.war to a web server. 3. Manually launch agent via webstat ( 4. Manually run this test. | public void manual_testRestart() throws Exception {
final ServiceRegistrar reg = DistributedMasterBuilderTest.findTestLookupService(20);
assertNotNull("Couldn't find registrar.", reg);
final Entry[] entries = SearchablePropertyEntries.getPropertiesAsEntryArray(
new Searchab... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\r\n\tpublic void smokeTest() throws Exception {\r\n\t\tcheckSite();\r\n\t}",
"public void testDeployFromHttp() throws Exception {\n\t\t// normally this directory would be created by handleDeployForMcaFile()... but we are bypassing for testing\n\t\tunitTestDir.mkdir();\n\n\t\tHttpURLConnection connection = ... | [
"0.5848333",
"0.5840148",
"0.5625283",
"0.5533439",
"0.5459762",
"0.54370713",
"0.5388323",
"0.5346075",
"0.5344957",
"0.5334149",
"0.53158844",
"0.53139126",
"0.5313888",
"0.53102267",
"0.5304668",
"0.5257706",
"0.5240712",
"0.5225252",
"0.5191263",
"0.5182906",
"0.51659787"... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void start(Stage primaryStage) throws Exception {
Parent main = FXMLLoader.load(getClass().getResource("MainForm.fxml"));
scene = new Scene(main, 1000, 800);
scene.getStylesheets().add(getClass().getResource("style.css").toExternalForm());
primaryStage.setScene(scene);
primaryStage.show();
... | {
"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.66708666",
"0.65675074",
"0.65229905",
"0.6481001",
"0.64770633",
"0.64584893",
"0.6413091",
"0.63764185",
"0.6275735",
"0.62541914",
"0.6236919",
"0.6223816",
"0.62017626",
"0.61944294",
"0.61944294",
"0.61920846",
"0.61867654",
"0.6173323",
"0.61328775",
"0.61276996",
"0... | 0.0 | -1 |
Return is redundant if he is on the end of objectBlock and the objectBlock of the method divided into several tokens. | private void checkForRedundantReturn(DetailAST aMethodObjectBlock) {
final int methodChildCount = aMethodObjectBlock.getChildCount();
if (methodChildCount != 1) {
final int placeForRedundantReturn = aMethodObjectBlock
.getLastChild().getPreviousSibling().getType();
final int methodWithSingleChild = 2... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void compileReturnHelper() throws IOException {\n printToken(); // prints 'return'\n getNextToken();\n if (!Objects.equals(currentToken, SEMICOLON)) compileExpression();\n printToken();\n }",
"private ReturnStmt returnStmt() {\n Expr myExpr = null;\n \n l... | [
"0.57197195",
"0.56891304",
"0.5632974",
"0.56136554",
"0.55707675",
"0.55695975",
"0.5535152",
"0.55175185",
"0.55094934",
"0.55048394",
"0.55022216",
"0.5477083",
"0.5381054",
"0.5364458",
"0.5346351",
"0.5325321",
"0.53192043",
"0.53173393",
"0.53059816",
"0.5300683",
"0.5... | 0.63280684 | 0 |
Check the try, catch, finally object blocks on redundant return content. | private void submitRedundantReturnInTryCatch(DetailAST aTryAst) {
DetailAST astBlockTry = aTryAst.getFirstChild();
handleBlocksTryCatchFinally(astBlockTry.getLastChild()
.getPreviousSibling());
final int catchBlocksAmount = aTryAst
.getChildCount(TokenTypes.LITERAL_CATCH);
for (int i = 0; i < catchB... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Block getTryBlock();",
"Block getFinallyBlock();",
"private void handleBlocksTryCatchFinally(DetailAST aAstReturn) {\n\n\t\tif (aAstReturn != null) {\n\n\t\t\tif (aAstReturn.getType() == TokenTypes.LITERAL_RETURN) {\n\n\t\t\t\tlog(aAstReturn.getLineNo());\n\t\t\t}\n\t\t}\n\t}",
"private void checkForRedundan... | [
"0.6644929",
"0.6435658",
"0.62527555",
"0.61293375",
"0.59225845",
"0.5845972",
"0.58092475",
"0.5798801",
"0.5790061",
"0.57233304",
"0.56356835",
"0.5587665",
"0.5584604",
"0.55257946",
"0.5500667",
"0.5489859",
"0.5482852",
"0.5457618",
"0.53813666",
"0.53809303",
"0.5345... | 0.63637716 | 2 |
Submit a mistake if the try or catch or finally blocks have redundant return. | private void handleBlocksTryCatchFinally(DetailAST aAstReturn) {
if (aAstReturn != null) {
if (aAstReturn.getType() == TokenTypes.LITERAL_RETURN) {
log(aAstReturn.getLineNo());
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void submitRedundantReturnInTryCatch(DetailAST aTryAst) {\n\n\t\tDetailAST astBlockTry = aTryAst.getFirstChild();\n\n\t\thandleBlocksTryCatchFinally(astBlockTry.getLastChild()\n\t\t\t\t.getPreviousSibling());\n\n\t\tfinal int catchBlocksAmount = aTryAst\n\t\t\t\t.getChildCount(TokenTypes.LITERAL_CATCH);\n\... | [
"0.6371316",
"0.5917087",
"0.5778432",
"0.57002956",
"0.5643286",
"0.5465157",
"0.5433614",
"0.54170203",
"0.5400461",
"0.53875715",
"0.5332063",
"0.5303301",
"0.5275128",
"0.5267842",
"0.5266063",
"0.52218217",
"0.5219746",
"0.519753",
"0.51927453",
"0.5190368",
"0.51804394"... | 0.50873 | 30 |
For the result of interaction with a command line interface program. | public interface CLIResult {
/**
* Enumeration for the different types of streams to get output for,
* including STDOUT and STDERR.
*/
enum STREAM {
STDOUT, STDERR;
}
/**
* Get the output for the specified stream.
* @param stream The {@link STREAM} to get output from.
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String program();",
"@Test\n\tpublic void testApp()\n\t{\n\t\tPrintStream outBkp = System.out;\n\t\tByteArrayOutputStream outBuf = new ByteArrayOutputStream ();\n\t\tSystem.setOut ( new PrintStream ( outBuf ) );\n\t\t\n\t\tApp.main ( \"a\", \"b\", \"c\" );\n\n\t\tSystem.setOut ( outBkp ); // restore the ... | [
"0.6511323",
"0.6344315",
"0.6184368",
"0.611311",
"0.59959084",
"0.5994875",
"0.5971093",
"0.5951064",
"0.5941342",
"0.59279394",
"0.5907334",
"0.5900745",
"0.5884509",
"0.5879749",
"0.587209",
"0.5859725",
"0.5836199",
"0.58323205",
"0.58157605",
"0.5815631",
"0.57769907",
... | 0.714278 | 0 |
Get the exit value of the process that was run. | int exitValue(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Integer getExitCode() {\n\n try {\n final int exitValue = process.exitValue();\n streamHandler.stop();\n LOGGER.trace(\"Process has been terminated with exit value {}\", exitValue);\n return exitValue;\n\n } catch (IllegalThreadStateException ex) {\n LOGGER.trace(\"Could not get exit... | [
"0.83844435",
"0.7777895",
"0.7639075",
"0.71650743",
"0.7110407",
"0.7089266",
"0.68479717",
"0.6822597",
"0.6754509",
"0.6599789",
"0.6581364",
"0.6288736",
"0.6048645",
"0.5718323",
"0.5698498",
"0.56979245",
"0.5692861",
"0.5652806",
"0.56063515",
"0.5591094",
"0.5558319"... | 0.6611853 | 9 |
Poredi studente po sljedecem prioritetu: gpa,brIndexa,ime. | public int compareTo(Student other) {
if (this.gpa > other.gpa) {
return 1;
} else if (this.gpa < other.gpa) {
return -1;
} else {
if (this.brIndexa > other.brIndexa) {
return 1;
} else if (this.brIndexa < other.brIndexa) {
return -1;
} else {
if (this.ime.compareTo(other.ime) < 0) {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args) {\n\n Studenti s1= new Studenti(\"Pera Peric\",\"drumski\",\"DR-123\");\n Studenti s2 = new Studenti(\"Laza Lazic\", \"logistika\",\"LO-267\");\n Studenti s3 = new Studenti(\"Marko Markovic\", \"vodni\", \"VO-745\");\n\n // menja broj indeksa\n ... | [
"0.58485866",
"0.5847322",
"0.5671628",
"0.5582373",
"0.5522964",
"0.55175525",
"0.5498906",
"0.54579854",
"0.5405578",
"0.5399257",
"0.5361454",
"0.5361104",
"0.53498155",
"0.53190583",
"0.52822953",
"0.5264389",
"0.5251589",
"0.52509993",
"0.5236178",
"0.5215345",
"0.520509... | 0.5485056 | 7 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.