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 |
|---|---|---|---|---|---|---|
note nothing to test. exercise to do a compile time check of existence | @Test
public void testGetStartTime() {
ip = new ImagePlus();
ip.getStartTime();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean _non_existent();",
"public abstract boolean doesExist();",
"boolean hasDef();",
"boolean hasExists();",
"public abstract boolean exists();",
"@Override\n\tpublic boolean exists(String arg0) {\n\t\treturn false;\n\t}",
"private boolean programIfExists(String compiledPath) {\n\t\tboolean itExists... | [
"0.66541034",
"0.6612048",
"0.6120418",
"0.61014825",
"0.6030778",
"0.60264075",
"0.59782296",
"0.5972085",
"0.5902455",
"0.5902455",
"0.5894256",
"0.5871129",
"0.5844421",
"0.5844421",
"0.5838298",
"0.58364636",
"0.58364636",
"0.58364636",
"0.582644",
"0.57834977",
"0.576965... | 0.0 | -1 |
note can't test this. It uses private data and also has gui side effects | @Test
public void testMouseMoved() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}",
"@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}",
"private InstructGui() {\n }",
"@Override\r\n public void updateUI() {\r\n }",
"private static void initAndShowGUI() {\n }",
"@Override\n\tpublic void guiTinNhan() {\n\n\t}",
... | [
"0.6241024",
"0.6241024",
"0.6059586",
"0.604642",
"0.59905475",
"0.59645325",
"0.59474",
"0.5914871",
"0.5863881",
"0.57935256",
"0.5760784",
"0.573937",
"0.573662",
"0.573345",
"0.5712489",
"0.56944716",
"0.5690477",
"0.5681843",
"0.5652072",
"0.5629828",
"0.5629828",
"0.... | 0.0 | -1 |
note can't test this. It uses private data and also has gui side effects | @Test
public void testUpdateStatusbarValue() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}",
"@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}",
"private InstructGui() {\n }",
"@Override\r\n public void updateUI() {\r\n }",
"private static void initAndShowGUI() {\n }",
"@Override\n\tpublic void guiTinNhan() {\n\n\t}",
... | [
"0.6241024",
"0.6241024",
"0.6059586",
"0.604642",
"0.59905475",
"0.59645325",
"0.59474",
"0.5914871",
"0.5863881",
"0.57935256",
"0.5760784",
"0.573937",
"0.573662",
"0.573345",
"0.5712489",
"0.56944716",
"0.5690477",
"0.5681843",
"0.5652072",
"0.5629828",
"0.5629828",
"0.... | 0.0 | -1 |
reset state to keep from getting messed up by other tests | @Test
public void testCopy() {
ImagePlus.resetClipboard();
// cut == true, roi null
proc = new ColorProcessor(2,3,new int[] {1,2,3,4,5,6});
ip = new ImagePlus("Copier",proc);
ImagePlus.resetClipboard();
assertNull(ip.getRoi());
assertNull(ImagePlus.getClipboard());
ip.copy(true);
assertNull(ImagePlu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void resetState()\n {\n // Nothing to do by default.\n }",
"public void resetState();",
"private void reset() {\n }",
"public void reset () {}",
"void resetTesting() {\r\n\t\tcompanyCars.clear();\r\n\t\trentDetails.clear();\r\n\t}",
"public void reset() {\n th... | [
"0.8083264",
"0.7929389",
"0.7787813",
"0.7715527",
"0.7697948",
"0.7624004",
"0.7583275",
"0.7552392",
"0.7523056",
"0.7523056",
"0.7508851",
"0.7508851",
"0.7508851",
"0.7508851",
"0.7491759",
"0.7491759",
"0.7491759",
"0.7491759",
"0.7449665",
"0.7448868",
"0.7433465",
"... | 0.0 | -1 |
reset state to keep from getting messed up by other tests | @Test
public void testPaste() {
ImagePlus.resetClipboard();
// paste when nothing in clipboard
ImagePlus.resetClipboard();
proc = new ByteProcessor(2,3,new byte[] {1,2,3,4,5,6},null);
ip = new ImagePlus("Paster",proc);
assertNull(ImagePlus.getClipboard());
assertFalse(ip.changes);
assertNull(ip.getRoi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void resetState()\n {\n // Nothing to do by default.\n }",
"public void resetState();",
"private void reset() {\n }",
"public void reset () {}",
"void resetTesting() {\r\n\t\tcompanyCars.clear();\r\n\t\trentDetails.clear();\r\n\t}",
"public void reset() {\n th... | [
"0.8083264",
"0.7929389",
"0.7787813",
"0.7715527",
"0.7697948",
"0.7624004",
"0.7583275",
"0.7552392",
"0.7523056",
"0.7523056",
"0.7508851",
"0.7508851",
"0.7508851",
"0.7508851",
"0.7491759",
"0.7491759",
"0.7491759",
"0.7491759",
"0.7449665",
"0.7448868",
"0.7433465",
"... | 0.0 | -1 |
nothing to test just put in compile time check | @Test
public void testGetClipboard() {
ImagePlus.getClipboard();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void testInvalid() {\n\t\tassertNotNull(\"Should have compiler available (for testing to be available)\", this.compiler);\n\t}",
"public boolean mustCompile() {\n return true;\n }",
"private void checkRep() {\n\t\tif (CHECK_CONSTANT) {\n\t\tassert (label != null && childNode != null);\n\t\t}\n... | [
"0.61512446",
"0.5946106",
"0.58993757",
"0.5864343",
"0.57325137",
"0.5707889",
"0.5707889",
"0.570157",
"0.56855357",
"0.5683056",
"0.56818014",
"0.5660175",
"0.5656793",
"0.5628264",
"0.5612882",
"0.56034243",
"0.55965686",
"0.5561111",
"0.5548856",
"0.5537122",
"0.5500722... | 0.0 | -1 |
reset state to keep from getting messed up by other tests | @Test
public void testResetClipboard() {
ImagePlus.resetClipboard();
proc = new FloatProcessor(5,2,new float[] {0,1,2,3,4,5,6,7,8,9},null);
ip = new ImagePlus("Jones",proc);
assertNull(ImagePlus.getClipboard());
ip.copy(false);
assertNotNull(ImagePlus.getClipboard());
ImagePlus.resetClipboard();
asser... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void resetState()\n {\n // Nothing to do by default.\n }",
"public void resetState();",
"private void reset() {\n }",
"public void reset () {}",
"void resetTesting() {\r\n\t\tcompanyCars.clear();\r\n\t\trentDetails.clear();\r\n\t}",
"public void reset() {\n th... | [
"0.8083264",
"0.7929389",
"0.7787813",
"0.7715527",
"0.7697948",
"0.7624004",
"0.7583275",
"0.7552392",
"0.7523056",
"0.7523056",
"0.7508851",
"0.7508851",
"0.7508851",
"0.7508851",
"0.7491759",
"0.7491759",
"0.7491759",
"0.7491759",
"0.7449665",
"0.7448868",
"0.7433465",
"... | 0.0 | -1 |
in the case ip's ImageProcessor is null we should be able to set the range but there is no way to test it. the input range is ignored. | @Test
public void testSetDisplayRangeDoubleDouble() {
ip = new ImagePlus();
ip.setDisplayRange(4,22);
// pass in a legit ImagePlus
proc = new ByteProcessor(3,1,new byte[] {1,4,7},null);
ip = new ImagePlus("Jellybeans",proc);
// illegal values
ip.setDisplayRange(-1,-1);
assertEquals(-1,ip.getDisplayRa... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setRange(AddressInfo range) {\r\n this.range = range;\r\n }",
"private void setDefaultValidRange ()\r\n\t{\r\n\t\tm_lowerBounds = Integer.MIN_VALUE;\r\n\t\tm_upperBounds = Integer.MAX_VALUE;\r\n\t}",
"@Test\n\tpublic void testSetDisplayRangeDoubleDoubleInt() {\n\t\tproc = new FloatProcessor(1,1... | [
"0.5851817",
"0.5799196",
"0.57988834",
"0.5778668",
"0.5696037",
"0.55888176",
"0.55704206",
"0.5482693",
"0.5457406",
"0.5446579",
"0.54337394",
"0.54329234",
"0.542147",
"0.53632545",
"0.53418684",
"0.53121996",
"0.5296824",
"0.5292397",
"0.5278682",
"0.5275789",
"0.527105... | 0.0 | -1 |
not a color processor | @Test
public void testSetDisplayRangeDoubleDoubleInt() {
proc = new FloatProcessor(1,1,new float[] {0xaabbcc},null);
ip = new ImagePlus("GumbyShoes",proc);
ip.setDisplayRange(1,7,904);
assertEquals(1,ip.getDisplayRangeMin(),Assert.DOUBLE_TOL);
assertEquals(7,ip.getDisplayRangeMax(),Assert.DOUBLE_TOL);
// ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n\tpublic void testGetProcessorForColorProcessor() {\n\t\tfinal PlanarImg< ARGBType, IntArray > argbs = PlanarImgs.argbs( 1, 1, 1 );\n\t\targbs.randomAccess().get().set( 0xff010203 );\n\t\tfinal VirtualStack stack = PlanarImgToVirtualStack.wrap( argbs );\n\t\tassertArrayEquals( new int[] { 0xff010203 }, (int... | [
"0.6881364",
"0.6731185",
"0.6559043",
"0.639419",
"0.6319205",
"0.6267725",
"0.6167385",
"0.601006",
"0.6001154",
"0.5979879",
"0.5965878",
"0.5958144",
"0.5956629",
"0.5953952",
"0.5949014",
"0.5946364",
"0.5940343",
"0.5940343",
"0.5929888",
"0.5910609",
"0.59072495",
"0... | 0.5543101 | 61 |
on resuming the app camera will start again ( if app was closed accidentally) | @Override
protected void onResume() {
super.onResume();
cameraView.start();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void onPause() {\n ReleaseCamera();\n super.onPause();\n }",
"public void onResume() {\n if (mCamera == null) {\n obtainCameraOrFinish();\n }\n }",
"@Override\n protected void onResume() {\n super.onResume();\n cameraLiveVie... | [
"0.71966183",
"0.7178942",
"0.7129505",
"0.7124469",
"0.70483714",
"0.70465285",
"0.69749",
"0.6887818",
"0.6887399",
"0.6873949",
"0.68581975",
"0.68440336",
"0.6832779",
"0.68208253",
"0.6790172",
"0.6776191",
"0.67658377",
"0.6738323",
"0.6733125",
"0.6733125",
"0.6724783"... | 0.72515655 | 0 |
Created by stejun on 12/2/16. | public interface InternalIntentStateIface {
boolean onSubmitForValidation();
boolean onUpdateRequest();
boolean onValidationFailure();
boolean onValidationSuccess();
boolean onSubmitForCompilation();
boolean onCompilationFailure();
boolean onCompilationSuccess();
boolean onSubmitF... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"private stendhal() {\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Over... | [
"0.59494334",
"0.58782554",
"0.584874",
"0.5781914",
"0.577853",
"0.57092005",
"0.570472",
"0.570472",
"0.57041734",
"0.56764317",
"0.5660571",
"0.56405866",
"0.5640369",
"0.5638579",
"0.56373703",
"0.56254864",
"0.56218004",
"0.56218004",
"0.56218004",
"0.56218004",
"0.56218... | 0.0 | -1 |
TODO Autogenerated method stub | public void actionPerformed(ActionEvent e) {
if (e.getSource().equals(mole)) {
speak("Good Job!");
frame.dispose();
Random rand = new Random();
int random = rand.nextInt(21);
new WhackAMole().createUI(random);
ButtonNotClick++;
if (ButtonNotClick == 10) {
endGame(timeAtStart, 10);
}
} e... | {
"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 |
5.Progressively insult them if they hit something other than the mole! button. If they get click an empty button twice, call them an idiot. If they click an empty button three times, call them a moron. If they click an empty button four times, call them a complete waste of atoms. [Use a switch statement for extra amazi... | private void playSound(String fileName) {
AudioClip sound = JApplet.newAudioClip(getClass().getResource(fileName));
sound.play();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\npublic void actionPerformed(ActionEvent e) {\n\t\tif (e.getSource()== button) {\n\t\tplayNoise(\"llama.wav\");\n\t}\n\telse if (e.getSource()== button1) {\n\t\tplayNoise(\"meow.wav\");\n\t}\n\telse if (e.getSource()== button2) {\n\t\tplayNoise(\"moo.wav\");\n\t}\n\telse if (e.getSource()== button3) {\n\... | [
"0.7019051",
"0.69703764",
"0.67550516",
"0.6730368",
"0.67103493",
"0.6576154",
"0.6565089",
"0.6535432",
"0.64630014",
"0.6403468",
"0.63738495",
"0.6255912",
"0.6218237",
"0.6212966",
"0.6207559",
"0.61959684",
"0.61950815",
"0.61703",
"0.6164929",
"0.61552536",
"0.6142106... | 0.0 | -1 |
Given a binary tree return a list of strings representing the postorder traversal. | public static ArrayList<String> postOrder(Node treeRoot) {
ArrayList<String> traversal = new ArrayList<String>(0);
if (treeRoot == null) {
return new ArrayList<String>(0);
}
traversal.addAll(postOrder(treeRoot.left));
traversal.addAll(postOrder(treeRoot.right));
traversal.add(treeRoot.root... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String postorderTraverse(){\r\n\t\t\r\n\t\t//the recursive call to the private method\r\n\t\t//StringBuffer is used because it is passed by reference\r\n\t\t//StringBuffer can be changed in recursive calls\r\n\t\treturn postorderTraverse(this, new StringBuffer(\"\"));\r\n\t}",
"public String postorder() {... | [
"0.73568606",
"0.7110683",
"0.6810742",
"0.68022525",
"0.67308897",
"0.6668148",
"0.65966517",
"0.6499931",
"0.6466025",
"0.6454558",
"0.6444584",
"0.644443",
"0.63774806",
"0.63493335",
"0.6316442",
"0.6303241",
"0.6289432",
"0.6287917",
"0.6268442",
"0.626742",
"0.6265259",... | 0.75416595 | 0 |
Given a binary tree return a list of strings representing the inorder traversal. | public static ArrayList<String> inOrder(Node treeRoot) {
ArrayList<String> traversal = new ArrayList<String>(0);
if (treeRoot == null) {
return new ArrayList<String>(0);
}
traversal.addAll(inOrder(treeRoot.left));
traversal.add(treeRoot.root);
traversal.addAll(inOrder(treeRoot.right));
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String inOrderTraverse(){\r\n\r\n\t\t//Stack that keeps track of where we go\r\n\t\tStack<BinarySearchTree> traverseStack = new Stack<BinarySearchTree>();\r\n\t\t\r\n\t\t//This is where we want to start\r\n\t\tBinarySearchTree curr = this;\r\n\t\t\r\n\t\t//When true, the string is returned\r\n\t\tBoolean do... | [
"0.7097328",
"0.6772223",
"0.67640585",
"0.6624118",
"0.66109544",
"0.6602372",
"0.6567616",
"0.6507031",
"0.6444119",
"0.6398496",
"0.63866526",
"0.6324993",
"0.62990487",
"0.6275319",
"0.6262462",
"0.62481123",
"0.62352616",
"0.6234322",
"0.6194591",
"0.61917657",
"0.616982... | 0.74765325 | 0 |
Given a binary tree print the preorder traversal. | public static void printPreOrder(Node treeRoot) {
if (treeRoot == null) {
return;
}
System.out.print(treeRoot.root + ", ");
printPreOrder(treeRoot.left);
printPreOrder(treeRoot.right);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void preorderTraverse(){\n\t\tpreorderHelper(root);\n\t\tSystem.out.println();\n\t}",
"public void printPreOrder() {\n if (root == null) {\n System.out.println(\"\");\n } else {\n Node x = root;\n System.out.print(x.key);\n if (x.left != null) x.le... | [
"0.83807445",
"0.8315658",
"0.83067113",
"0.83008575",
"0.8276352",
"0.82232714",
"0.8222791",
"0.820748",
"0.8198445",
"0.8198445",
"0.81739855",
"0.8173612",
"0.81556594",
"0.81352687",
"0.81198573",
"0.81142825",
"0.80970263",
"0.80902475",
"0.80805326",
"0.8074773",
"0.80... | 0.79115784 | 34 |
Given a binary tree print the postorder traversal. | public static void printPostOrder(Node treeRoot) {
if (treeRoot == null) {
return;
}
printPostOrder(treeRoot.left);
printPostOrder(treeRoot.right);
System.out.print(treeRoot.root + " ");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void postorderTraverse(){\n\t\tpostorderHelper(root);\n\t\tSystem.out.println();\n\t}",
"void printPostorder(Node node) {\n\t\t//base case\n\t\tif(node == null)\n\t\t\treturn;\n\t\t// first recur on left subtree\n\t\tprintPostorder(node.left);\n\t\t\t\t\n\t\t// then recur on right subtree\n\t\tprintPostor... | [
"0.8272857",
"0.82120067",
"0.82012045",
"0.81166464",
"0.8116051",
"0.81086665",
"0.8094712",
"0.8074302",
"0.80627275",
"0.8058339",
"0.80415744",
"0.8024429",
"0.80056167",
"0.8004299",
"0.79674685",
"0.7935975",
"0.7927891",
"0.7919055",
"0.7902553",
"0.7851541",
"0.78375... | 0.77826416 | 24 |
Given a binary tree print the inorder traversal. | public static void printInOrder(Node treeRoot) {
if (treeRoot == null) {
return;
}
printInOrder(treeRoot.left);
System.out.print(treeRoot.root + " ");
printInOrder(treeRoot.right);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void inorderTraversal() {\n inorderThroughRoot(root);\n System.out.println();\n }",
"public void inorderTraverse(){\n\t\tinorderHelper(root);\n\t\tSystem.out.println();\n\t}",
"static void inorderTraversal(Node root) {\n if (root == null) {\n return;\n }\n ... | [
"0.8222057",
"0.8214797",
"0.8106415",
"0.8104187",
"0.8098788",
"0.80258286",
"0.8022273",
"0.8018433",
"0.8018433",
"0.7991658",
"0.7988997",
"0.7980048",
"0.7969935",
"0.7962191",
"0.7920631",
"0.79193574",
"0.7891467",
"0.7884394",
"0.78471446",
"0.78104866",
"0.7775309",... | 0.71098614 | 59 |
private TowerBlue blue; private float test; // temp variable TowerCannon tower; | public Game(TileGrid grid) {
this.grid = grid;
waveManager = new WaveManager(
new Enemy(quickLoad("Ufo"), grid.getTile(2, 9), grid, TILE_SIZE, TILE_SIZE, 70, 25), 2, 10);
player = new Player(grid, waveManager);
player.setup();
setupUI();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Dragon()\n {\n // initialise instance variables\n x = 50;\n y = 50;\n size = 1;\n c = Color.BLUE; // INS comment here.\n attackType = \"Fire\";\n textBox = \"Hello\";\n }",
"public void\nsetShininessElt(float value )\n\n{\n this.coinstate.shininess... | [
"0.62721854",
"0.62307143",
"0.6205598",
"0.6086366",
"0.6050656",
"0.60249716",
"0.5987079",
"0.5963155",
"0.5939009",
"0.5932561",
"0.5900267",
"0.5861625",
"0.5850619",
"0.58345824",
"0.58316946",
"0.58094233",
"0.58005",
"0.5786642",
"0.5782344",
"0.5777922",
"0.57669336"... | 0.0 | -1 |
/clear the cache related to details | public void onResponse(String response)
{
String detailsUrlString = "http://bismarck.sdsu.edu/rateme/instructor" + "/" + instructorId;
requestQueue.getCache().remove(detailsUrlString);
isRatingPosted = true;
userRating.setRa... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void clearCache() {\n }",
"void clearCache();",
"void clearCache();",
"public void clearCache();",
"public abstract void clearCache();",
"public void clear() {\n cache.clear();\n }",
"public void clearCache() {\r\n \t\ttagInfoCache.clear();\r\n \t\ttldElementsByPrefix... | [
"0.76878375",
"0.7663405",
"0.7663405",
"0.76483387",
"0.73758644",
"0.7243139",
"0.72185993",
"0.71745855",
"0.7102625",
"0.7068357",
"0.706478",
"0.7016358",
"0.6993785",
"0.69898516",
"0.69370705",
"0.6932261",
"0.6932261",
"0.6932261",
"0.6932261",
"0.6932261",
"0.6932261... | 0.0 | -1 |
Retrieves the single instance of this class. | public static MessageBroker getInstance() {
//TODO: Implement this
if (instance == null) {
instance = new MessageBrokerImpl();
}
return instance;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static SingleObject getInstance()\r\n {\r\n return instance;\r\n }",
"public static SingleObject getInstance(){\n return instance;\n }",
"public T getInstance() {\n return instance;\n }",
"public static SingleObject getInstance(){\n\t\treturn instance;\n\t}",
"@Override\n ... | [
"0.7467335",
"0.73588854",
"0.7273962",
"0.72463036",
"0.68928885",
"0.6877477",
"0.6706675",
"0.66864944",
"0.66508603",
"0.65992606",
"0.6590965",
"0.6505971",
"0.6491547",
"0.64620095",
"0.6413753",
"0.6410696",
"0.6398737",
"0.6346899",
"0.6311313",
"0.6282916",
"0.628234... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public <T> void subscribeEvent(Class<? extends Event<T>> type, Subscriber m) {
if(typesQueue!=null)
{
typesQueue.computeIfAbsent(type, q->new ConcurrentLinkedQueue<>());
typesQueue.get(type).add(m);
}
} | {
"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 subscribeBroadcast(Class<? extends Broadcast> type, Subscriber m) {
if(typesQueue!=null)
{
typesQueue.computeIfAbsent(type, q->new ConcurrentLinkedQueue<>());
typesQueue.get(type).add(m);
}
} | {
"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 synchronized void sendBroadcast(Broadcast b) {
if (typesQueue != null && !typesQueue.isEmpty())
{
if(typesQueue.containsKey(b.getClass()) && !typesQueue.get(b.getClass()).isEmpty())
{
if(subscribersMessages!=null)
{
for (Subscriber s : typesQueue.get(b.getClass())) {
subs... | {
"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 synchronized <T> Future<T> sendEvent(Event<T> e) {
if (typesQueue != null && !typesQueue.isEmpty())
{
Future future=new Future();
if(subscribersMessages!=null)
{
Subscriber temp = typesQueue.get(e.getClass()).peek();
if(temp!=null)
{
subscribersMessages.get(temp).add(e... | {
"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 register(Subscriber m) {
subscribersMessages.put(m,new ConcurrentLinkedQueue<>());
} | {
"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 unregister(Subscriber m) {
if (subscribersMessages.containsKey(m) == false) {
throw new NoSuchElementException();
}
for (Message message : subscribersMessages.get(m)) {
subscribersMessages.get(m).remove(message);
results.get(message).resolve(null);
}
subscribersMessage... | {
"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 Message awaitMessage(Subscriber m) throws InterruptedException {
if (!subscribersMessages.containsKey(m))
throw new IllegalStateException("the sub doesnt exist");
else {
synchronized (this) {
try {
while (subscribersMessages.get(m).isEmpty()) {
wait();
}
} catch (... | {
"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 |
also overrides abstract method | public double monthlyEarning() {
double me = 0.0;
String input = getLevel();
if ( input == "GRAD")
me = Faculty_Monthly_Salary; // interface variable
else if ( input == "ASSOC")
me = Faculty_Monthly_Salary * 1.2;
else if ( input == "PROF")
me = Faculty_Monthly_Salary * 1.4;
return me;
//... | {
"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 anular() {\n\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n protected void prot() {\n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void function(... | [
"0.67857546",
"0.6724641",
"0.66335344",
"0.66275513",
"0.66090274",
"0.6561085",
"0.6561085",
"0.6473264",
"0.64658946",
"0.64467883",
"0.6408984",
"0.6393051",
"0.6370158",
"0.636629",
"0.636629",
"0.6359679",
"0.63496244",
"0.6347259",
"0.6338596",
"0.632026",
"0.63034356"... | 0.0 | -1 |
add function when pressed | @Override
public void onClick(View view){
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void onButtonAPressed();",
"private void addClick() {\n\t\tfindViewById(R.id.top_return).setOnClickListener(this);\n\t\tfm1_jhtx.setOnClickListener(this);\n\t\tfm1_sx.setOnClickListener(this);\n\t}",
"private void pressed(MouseEvent e)\r\n {\n }",
"public void shortPress();",
"void onInputEv... | [
"0.69521874",
"0.6865188",
"0.6748752",
"0.66364676",
"0.6609075",
"0.6556208",
"0.6543401",
"0.6540916",
"0.65406084",
"0.6491419",
"0.6460467",
"0.6427277",
"0.6401034",
"0.63819766",
"0.6329557",
"0.63131523",
"0.6288373",
"0.62883663",
"0.62818646",
"0.6268461",
"0.626236... | 0.0 | -1 |
borderlayout object set up GUI and event handling | public ChessGameFrame(String s) {
super(s); // pass title for window to parent constructor
layout = new BorderLayout( 5, 5 ); // 5 pixel gaps
setLayout( layout ); // set frame layout
// EAST - SHOWS MOVE HISTORY FOR BOTH PLAYERS IN ALGEBRAIC NOTATION NOTATION
textArea = new JTextAre... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setLayout(BorderLayout borderLayout) {\n\t\t\n\t}",
"private void geometry()\n\t\t{\n\t\tjLabelNickName = new JLabel(\"Pseudo: \");\n\t\tjLabelPort = new JLabel(\"Port: \");\n\t\tjNickname = new JTextField();\n\t\tjIPLabel = new JIPLabel();\n\t\tjIP = new JTextField();\n\t\tjPort = new JSpinner();\n... | [
"0.7126938",
"0.70222974",
"0.69564044",
"0.68180805",
"0.67185915",
"0.670115",
"0.66589004",
"0.6650534",
"0.65696466",
"0.6551413",
"0.6547996",
"0.653679",
"0.6529262",
"0.65272695",
"0.6519941",
"0.65175235",
"0.65135455",
"0.6404992",
"0.6396494",
"0.6391211",
"0.637416... | 0.0 | -1 |
Implements an HTTPAuthentication protocol variant, which involves a challenge and response. | public interface HttpAdapter
{
/**
* <P>Specify the realm that this authenticator is authenticating for.
*
* <P>This value should be well-known, very stable, and preferably
* expressed in some "canonical" form.
*
* <P>As this value is a factor in authentication cryptography, any change
* ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface HttpAuthenticationScheme<C extends AuthenticationSchemeConfiguration> {\n\n /**\n * Called one time during initialization.\n *\n * @param config The configuration.\n */\n void initialize(C config);\n\n /**\n * Extracts the credentials from the given {@link javax.servle... | [
"0.693891",
"0.6654238",
"0.6310865",
"0.6293059",
"0.62637836",
"0.61448395",
"0.6101738",
"0.60053116",
"0.59817934",
"0.5970035",
"0.5937479",
"0.59250814",
"0.5905253",
"0.5821305",
"0.573919",
"0.57381934",
"0.5703482",
"0.56965005",
"0.5694466",
"0.5690896",
"0.5687827"... | 0.66144925 | 2 |
Specify the realm that this authenticator is authenticating for. This value should be wellknown, very stable, and preferably expressed in some "canonical" form. As this value is a factor in authentication cryptography, any change to it may invalidate passwords in the realm stored as part of digests. | void setRealm(String realm); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getAuthenticationRealm() {\n return this.realm;\n }",
"public String getRealm () {\n return realm;\n }",
"public BasicAuthenticator (String realm) {\n this.realm = realm;\n }",
"@ZAttr(id=548)\n public String getAuthKerberos5Realm() {\n return getAttr(Pro... | [
"0.7130919",
"0.712659",
"0.63598436",
"0.6011726",
"0.5849024",
"0.5800155",
"0.57686865",
"0.5689495",
"0.56884825",
"0.5587891",
"0.54249394",
"0.54225403",
"0.5337089",
"0.5292381",
"0.5246338",
"0.52389854",
"0.5227265",
"0.5180106",
"0.5159401",
"0.5041802",
"0.49562824... | 0.69708335 | 2 |
Read authorization info from the client | Credential<?>[] readAuthorization(HttpServletRequest request)
throws IOException,ServletException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected String getAuthInfo ()\n\t{\n\t\treturn authInfo;\n\t}",
"public java.lang.String getAuthInfo() {\r\n return authInfo;\r\n }",
"protected abstract String getAuthorization();",
"List<ExposedOAuthCredentialModel> readExposedOAuthCredentials();",
"public\t Authorization getAuthorization()\n... | [
"0.6555227",
"0.6289306",
"0.62517565",
"0.6226692",
"0.6144811",
"0.6037349",
"0.60074645",
"0.60074645",
"0.60074645",
"0.59928733",
"0.59890646",
"0.5920841",
"0.5914771",
"0.57903796",
"0.5767544",
"0.57648057",
"0.5743582",
"0.57225955",
"0.56696385",
"0.56696385",
"0.56... | 0.6877344 | 0 |
Challenge the client to provide authorization info | void writeChallenge(HttpServletResponse response)
throws IOException,ServletException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void authorize() {\r\n\r\n\t}",
"private void getAUTH_REQUEST() throws Exception {\n\t\t\n\t\tboolean status = true;\n\t\tboolean status2 = false;\n\t\tString msg = \"\";\n\t\t\n\t\t//File filePK = new File(\"identity\");\n\t\n\t\ttry {\n\t\t\t\n\t\t\tmsg = br.readLine();\n\t\t\tGetTimestamp(\"Received A... | [
"0.6925251",
"0.66725415",
"0.65302145",
"0.63573563",
"0.63280046",
"0.62942815",
"0.618129",
"0.6051704",
"0.60203147",
"0.5993304",
"0.5964839",
"0.59347034",
"0.591146",
"0.58804643",
"0.5861736",
"0.5857357",
"0.58345085",
"0.5801699",
"0.5800555",
"0.5794432",
"0.577056... | 0.0 | -1 |
Get Rule types: all: effective for all files. file: effective for specified file suffixes. directory: effective for specified paths. path: effective for specified absolute paths. | public String getMaxAgeType() {
return this.MaxAgeType;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String[] getFileTypes();",
"private HashMap<String, String> parsePathType(String path) {\n LOG.debug(\"Path: \" + path);\n Pattern systemPattern = Pattern.compile(\"v[0-9]+/systems/?(\\\\?.*)?$\");\n Matcher systemMatcher = systemPattern.matcher(path);\n\n Pattern systemStatusPattern = Pattern.compil... | [
"0.55068403",
"0.53995705",
"0.5358677",
"0.52438855",
"0.50266296",
"0.50201505",
"0.495488",
"0.48894376",
"0.48283872",
"0.482735",
"0.4733861",
"0.47278044",
"0.47215864",
"0.470556",
"0.46307853",
"0.46172",
"0.46159652",
"0.4613745",
"0.46053818",
"0.46006092",
"0.45757... | 0.0 | -1 |
Set Rule types: all: effective for all files. file: effective for specified file suffixes. directory: effective for specified paths. path: effective for specified absolute paths. | public void setMaxAgeType(String MaxAgeType) {
this.MaxAgeType = MaxAgeType;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void directoryChange( int type, Set fileSet );",
"public void loadRules(String path) {\n\n // Checking if the file exists...\n File ruleFile = new File(path);\n if (!ruleFile.exists()) {\n System.err.println(\"The file at \" + path + \" could not be found in RuleLoader!\");... | [
"0.579388",
"0.5066696",
"0.5022327",
"0.501342",
"0.49246123",
"0.49223688",
"0.49192318",
"0.48722726",
"0.48467395",
"0.4812832",
"0.47559232",
"0.47392195",
"0.47304767",
"0.47045878",
"0.46627176",
"0.46534044",
"0.46420944",
"0.46365812",
"0.46336022",
"0.460834",
"0.46... | 0.0 | -1 |
Get Content for each MaxAgeType: For all, enter a wildcard . For file, enter the suffix, e.g., jpg or txt. For directory, enter the path, e.g., /xxx/test/. For path, enter the absolute path, e.g., /xxx/test.html. Note: the all rule cannot be deleted, and it follows the origin site by default, which can be modified. | public String [] getMaxAgeContents() {
return this.MaxAgeContents;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setMaxAgeContents(String [] MaxAgeContents) {\n this.MaxAgeContents = MaxAgeContents;\n }",
"private List<String> getMyDocsFromSomewhere(String aPath) {\n\t\tList<String> ret = new ArrayList<>();\n\t\ttry {\n\t\t\tFile startFileUrl = new File(aPath);\n\t\t\tFile[] files = startFileUrl.listF... | [
"0.5384563",
"0.52370244",
"0.5084238",
"0.4874337",
"0.4862135",
"0.4761794",
"0.47409493",
"0.4717197",
"0.4678149",
"0.46493176",
"0.46412808",
"0.4637477",
"0.46357077",
"0.46266848",
"0.4586739",
"0.45767233",
"0.4571888",
"0.45667458",
"0.44946176",
"0.44942322",
"0.449... | 0.5150617 | 2 |
Set Content for each MaxAgeType: For all, enter a wildcard . For file, enter the suffix, e.g., jpg or txt. For directory, enter the path, e.g., /xxx/test/. For path, enter the absolute path, e.g., /xxx/test.html. Note: the all rule cannot be deleted, and it follows the origin site by default, which can be modified. | public void setMaxAgeContents(String [] MaxAgeContents) {
this.MaxAgeContents = MaxAgeContents;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setMaxAgeType(String MaxAgeType) {\n this.MaxAgeType = MaxAgeType;\n }",
"public void setMaxAgeTime(Long MaxAgeTime) {\n this.MaxAgeTime = MaxAgeTime;\n }",
"public MaxAgeRule(MaxAgeRule source) {\n if (source.MaxAgeType != null) {\n this.MaxAgeType = new Strin... | [
"0.58916956",
"0.5353464",
"0.493264",
"0.47710174",
"0.47116",
"0.46646175",
"0.4663526",
"0.46197298",
"0.45976463",
"0.45185968",
"0.45158878",
"0.45148227",
"0.4491408",
"0.4482584",
"0.44727764",
"0.44636384",
"0.44442558",
"0.44362846",
"0.4435882",
"0.44271767",
"0.441... | 0.65605295 | 0 |
Get Note: The value 0 means not to cache. Note: The value 0 means not to cache. | public Long getMaxAgeTime() {
return this.MaxAgeTime;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Import(\"notedTemplate\")\n\tint getNote();",
"public Note getNote() {\n\t \n\t //returns the objected stored in the note field\n\t return this.note;\n }",
"public String getNote() {\n\t\treturn _note;\n\t}",
"public String getNote()\n\t{\n\t\treturn note;\n\t}",
"public String getNote()\n {\n ... | [
"0.6713424",
"0.66915584",
"0.6576139",
"0.6572001",
"0.65452504",
"0.64879364",
"0.64879364",
"0.6484862",
"0.648313",
"0.6477747",
"0.6477747",
"0.6477747",
"0.6477747",
"0.6477747",
"0.6477747",
"0.6477747",
"0.6477747",
"0.6477747",
"0.6477747",
"0.6477747",
"0.6469533",
... | 0.0 | -1 |
Set Note: The value 0 means not to cache. Note: The value 0 means not to cache. | public void setMaxAgeTime(Long MaxAgeTime) {
this.MaxAgeTime = MaxAgeTime;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setNote(int note) {\n\t\tthis.note = note;\n\t}",
"public void setNote( final Double note )\r\n {\r\n this.note = note;\r\n }",
"public void setNote(String note);",
"public void setNote(String note) {\n if(note==null){\n note=\"\";\n }\n this.note = note;\n ... | [
"0.70260817",
"0.66926104",
"0.66642755",
"0.65867734",
"0.6489014",
"0.6400317",
"0.6356858",
"0.635016",
"0.62856114",
"0.62563574",
"0.62519306",
"0.62519306",
"0.62519306",
"0.62519306",
"0.62519306",
"0.6246686",
"0.62455124",
"0.6115134",
"0.6110304",
"0.60297054",
"0.6... | 0.0 | -1 |
Get Whether to follow the origin server. Valid values: on and off. If it's on, MaxAgeTime is ignored. | public String getFollowOrigin() {
return this.FollowOrigin;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean followRedirects() {\n return parseBoolean(settings.get(FOLLOW_REDIRECTS), true);\n }",
"public FollowsRedirectMode getFollowsRedirectMode() {\n return followsRedirectModeRef.get();\n }",
"boolean isFollowRedirect();",
"boolean followRedirects() {\n return parseBoolean(get(F... | [
"0.5960463",
"0.5910287",
"0.5900808",
"0.5832229",
"0.5634198",
"0.5579187",
"0.55637604",
"0.55518275",
"0.54697144",
"0.54008675",
"0.5358041",
"0.5358041",
"0.53489536",
"0.5325546",
"0.53054297",
"0.5300493",
"0.5300493",
"0.519524",
"0.5185113",
"0.51837337",
"0.5137695... | 0.64005274 | 0 |
Set Whether to follow the origin server. Valid values: on and off. If it's on, MaxAgeTime is ignored. | public void setFollowOrigin(String FollowOrigin) {
this.FollowOrigin = FollowOrigin;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getFollowOrigin() {\n return this.FollowOrigin;\n }",
"public void setFollowPosition(boolean on) {\n\tfollowPos = on;\n }",
"public void setFollowing(Boolean newValue) { following = newValue; }",
"public void setFollowsRedirectMode(FollowsRedirectMode mode) {\n if (followsRe... | [
"0.5997215",
"0.59386116",
"0.58651626",
"0.55312806",
"0.54268813",
"0.541596",
"0.53830606",
"0.5305021",
"0.5305021",
"0.525318",
"0.52443326",
"0.51919436",
"0.5151376",
"0.51401144",
"0.512781",
"0.5109326",
"0.5103398",
"0.5103053",
"0.5101573",
"0.5078501",
"0.50727296... | 0.69230694 | 0 |
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy, and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy. | public MaxAgeRule(MaxAgeRule source) {
if (source.MaxAgeType != null) {
this.MaxAgeType = new String(source.MaxAgeType);
}
if (source.MaxAgeContents != null) {
this.MaxAgeContents = new String[source.MaxAgeContents.length];
for (int i = 0; i < source.MaxAgeCon... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void set(String key, Object value);",
"void set(K key, V value);",
"public setKeyValue_args(setKeyValue_args other) {\n if (other.isSetKey()) {\n this.key = other.key;\n }\n if (other.isSetValue()) {\n this.value = other.value;\n }\n }",
"public abstract void set(String k... | [
"0.64358455",
"0.64111704",
"0.6142922",
"0.6113573",
"0.60908157",
"0.6078401",
"0.6037452",
"0.59892595",
"0.597106",
"0.59530747",
"0.58373713",
"0.5823492",
"0.578706",
"0.5702128",
"0.5701049",
"0.5686973",
"0.5684959",
"0.567453",
"0.56046826",
"0.5586644",
"0.55775315"... | 0.0 | -1 |
Internal implementation, normal users should not use it. | public void toMap(HashMap<String, String> map, String prefix) {
this.setParamSimple(map, prefix + "MaxAgeType", this.MaxAgeType);
this.setParamArraySimple(map, prefix + "MaxAgeContents.", this.MaxAgeContents);
this.setParamSimple(map, prefix + "MaxAgeTime", this.MaxAgeTime);
this.setPara... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"public final void mo51373a() {\n }",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n protected void prot() {\n }",
"private stendhal() {\n\t}",
"@Override\n public ... | [
"0.62574834",
"0.6217662",
"0.6024768",
"0.5982239",
"0.5965723",
"0.59330684",
"0.5920059",
"0.58351564",
"0.5781645",
"0.57749504",
"0.57749504",
"0.57749504",
"0.57749504",
"0.57749504",
"0.57749504",
"0.57737285",
"0.57054734",
"0.5701363",
"0.56510806",
"0.56491816",
"0.... | 0.0 | -1 |
/ renamed from: a | public int m8092a(C1084z c1084z, C1084z c1084z2) {
return Long.valueOf(c1084z.m2304s()).compareTo(Long.valueOf(c1084z2.m2304s()));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed fr... | [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064... | 0.0 | -1 |
Gets the value of the id property. | public long getID() {
return id;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public final int getId() {\n\t\treturn JsUtils.getNativePropertyInt(this, \"id\");\n\t}",
"public Integer getId() {\n return (Integer) get(\"id\");\n }",
"public long getId() {\n\t\treturn Long.parseLong(_id);\n\t}",
"public final String getIdAttribute() {\n return getAttributeValue(\"id\");... | [
"0.84249485",
"0.8159817",
"0.80093676",
"0.7987476",
"0.79728025",
"0.79675865",
"0.79444265",
"0.7938365",
"0.79383576",
"0.79383576",
"0.7921156",
"0.790411",
"0.7902068",
"0.7902068",
"0.7902068",
"0.7902068",
"0.7902068",
"0.7902068",
"0.7902068",
"0.78951883",
"0.788810... | 0.0 | -1 |
Sets the value of the id property. | public void setID(long value) {
this.id = value;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setId(final int id) {\r\n\t\tthis.id = id;\r\n\t}",
"public void setId(int id) {\n this.id = String.valueOf(this.hashCode());\n }",
"public void setId(int id_)\n\t{\n\t\tthis.id=id_;\n\t}",
"public void setId(Long id) {\n this.id.set(id);\n }",
"public void setId(final int i... | [
"0.85151964",
"0.849269",
"0.84402037",
"0.8436857",
"0.8434232",
"0.84240294",
"0.8416989",
"0.8416989",
"0.83925897",
"0.8388507",
"0.83824813",
"0.83819836",
"0.8380308",
"0.8371262",
"0.8339339",
"0.82933193",
"0.8276746",
"0.8276746",
"0.8271697",
"0.8270029",
"0.8267477... | 0.0 | -1 |
Default route should be an introduction page | @RequestMapping("/")
public String showIndex(Model model, Authentication auth) {
if (auth == null) {
//Show only 10 items if the user is not logged in
model.addAttribute("items", items.findTop10ByOrderById());
} else {
//Show all Items if the user is logged in
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@RequestMapping(value = \"/about\")\n\tpublic ModelAndView index() {\n\t\treturn new ModelAndView(\"pepco.about\");\n\t}",
"@GetMapping(\"/\")\n\tpublic String showHomePage() {\n\t\treturn \"home\";\n\t}",
"@RequestMapping(value = \"/\", method = RequestMethod.GET)\n\n\t public String home()\n\t {\n\t ... | [
"0.6564219",
"0.6426154",
"0.6421257",
"0.63953495",
"0.6379665",
"0.6372864",
"0.6280058",
"0.6195043",
"0.61826056",
"0.61270744",
"0.6083946",
"0.6049415",
"0.6032961",
"0.60291344",
"0.6028982",
"0.60241854",
"0.60240227",
"0.60056025",
"0.59969187",
"0.59915715",
"0.5991... | 0.0 | -1 |
Make an ordered map of model objects > existing statements. The ordering in the map will be used to drive the reordering modification later on. So if the model refers to new objects, store a null entry for those until we later fix them up. | protected void scanStatements() {
makToStatementMap = scanStructuredBlocks(
bldInfView.makToStatementMap, statementToMakMap,
bldInfView.getMakMakeReferences(), IASTBldInfPrjMmpfilesBlockStatement.class,
new MakListConverter(bldInfView, BldInfView.PRJ_MMPFILES_KEYWORD));
testMakToStatementMap = scan... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private TreeMap<FlworKey, List<FlworTuple>> mapExpressionsToOrderedPairs() {\n // tree map keeps the natural item order deduced from an implementation of Comparator\n // OrderByClauseSortClosure implements a comparator and provides the exact desired behavior for local execution as well\n TreeM... | [
"0.55941504",
"0.54795146",
"0.54257053",
"0.5138169",
"0.5011641",
"0.5007792",
"0.49477473",
"0.49263886",
"0.48394927",
"0.47504026",
"0.4743777",
"0.4726575",
"0.471605",
"0.46285844",
"0.46181887",
"0.46126592",
"0.45976567",
"0.458068",
"0.45466763",
"0.45459655",
"0.45... | 0.0 | -1 |
Update a MMP statement from the model. | private boolean updateMakMakeStatement(IASTBldInfMakMakeStatement makmake, boolean test) {
if (!test) {
return applyStructuredItemChange(bldInfView.getMakMakeReferences(),
makmake,
new MakListConverter(bldInfView, BldInfView.PRJ_MMPFILES_KEYWORD),
makToStatementMap,
statementToMakMap) != ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void update() {\n\t\tPreparedStatement stmt;\n\t\ttry {\n\t\t\tstmt = cn.prepareStatement(\n\t\t\t\t\t\"UPDATE Metal SET metalDissolvedBy = ?, molesOfAcidToDissolve = ? WHERE metalID = ?\");\n\t\t\tstmt.setInt(1, dissolvedBy);\n\t\t\tstmt.setDouble(2, molesOfAcidToDissolve);\n\t\t\tstmt.setInt(3, ID);\n\t\t... | [
"0.61736804",
"0.61518943",
"0.61518943",
"0.60346466",
"0.60346466",
"0.59324014",
"0.5917076",
"0.577112",
"0.5759644",
"0.57490075",
"0.57245207",
"0.5697511",
"0.5664436",
"0.56555074",
"0.55515283",
"0.55356133",
"0.5476265",
"0.54592884",
"0.54255706",
"0.54196334",
"0.... | 0.0 | -1 |
Update an export statement from the model. | private boolean updateExportStatement(IASTBldInfExportStatement export, boolean test) {
if (!test) {
return applyStructuredItemChange(bldInfView.getExports(),
export,
new ExportListConverter(bldInfView, BldInfView.PRJ_EXPORTS_KEYWORD),
exportToStatementMap,
statementToExportMap) != null;
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void update(ExportProduct exportProduct) {\n\t\t\n\t}",
"@Accessor(qualifier = \"export\", type = Accessor.Type.SETTER)\n\tpublic void setExport(final ExportModel value)\n\t{\n\t\tgetPersistenceContext().setPropertyValue(EXPORT, value);\n\t}",
"public void updateTable(ExportJobContext conte... | [
"0.60902816",
"0.577769",
"0.56881726",
"0.5494896",
"0.5446268",
"0.5441238",
"0.5333709",
"0.53175193",
"0.5309781",
"0.53096026",
"0.5296866",
"0.52860045",
"0.527107",
"0.52539814",
"0.520261",
"0.5195342",
"0.5195036",
"0.51835114",
"0.51013136",
"0.5087911",
"0.5087268"... | 0.5637452 | 3 |
Update an extension statement from the model. | private boolean updateExtensionStatement(IASTBldInfExtensionBlockStatement extension, boolean test) {
if (!test) {
return applyStructuredItemChange(bldInfView.getExtensions(),
extension,
new ExtensionListConverter(bldInfView, BldInfView.PRJ_EXTENSIONS_KEYWORD),
extensionToStatementMap,
st... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int updateByPrimaryKeySelective(YzStiveExplosion record);",
"int updateByPrimaryKey(AttributeExtend record);",
"int updateByExample(@Param(\"record\") AttributeExtend record,\n @Param(\"example\") AttributeExtendExample example);",
"int updateByPrimaryKeySelective(AttributeExtend record);",
"int updat... | [
"0.6184719",
"0.6122161",
"0.59779125",
"0.59683925",
"0.5931934",
"0.5920522",
"0.5908984",
"0.58318675",
"0.5812022",
"0.5767591",
"0.565803",
"0.5604791",
"0.5585753",
"0.5566972",
"0.55473256",
"0.5517017",
"0.54965496",
"0.54959255",
"0.54811656",
"0.54711604",
"0.546524... | 0.59084606 | 7 |
update a string list. | protected boolean updateStringListStatement(IASTListHolder<IASTLiteralTextNode> statement,
List<String> list,
ListIterator<String> listIterator) {
return updateListStatement(statement, list, listIterator,
new PlatformStatementListConverter());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void modify(List listString){\n\t}",
"@Override\n public void refreshList(ArrayList<String> newList){\n }",
"public void updated(ServerList list);",
"private void update() {\n for (ArrayList<String> pair: list) {\n String username = pair.get(0);\n String val = pair.... | [
"0.7863294",
"0.6931859",
"0.645237",
"0.6407079",
"0.6352207",
"0.63464516",
"0.6225284",
"0.61882645",
"0.6099553",
"0.6093027",
"0.6088486",
"0.60711116",
"0.60573465",
"0.59883636",
"0.5977397",
"0.59732544",
"0.5965878",
"0.5965669",
"0.596418",
"0.59305716",
"0.59288216... | 0.6594244 | 2 |
Find the insert anchors given this nominal 'after' anchor by using the anchor if it's not in a conditional block and inserting before the next block statement otherwise. | public Pair<IASTNode, IASTNode> adjustForConditionalBlocks(IASTNode after) {
IASTNode before = null;
if (after != null && view.isLangNodeInConditionalBlock(after)) {
IASTListNode list = ((IASTListNode)after.getParent());
IASTNode node = null;
int idx = list.indexOf(after);
for (Iterator<IASTNode> ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void insertBetween(\n LogicalOperator after,\n LogicalOperator newNode,\n LogicalOperator before,\n Map<Integer, Integer> projectionMapping)\n throws VisitorException, FrontendException {\n // Insert it into the plan.\n mPlan.add(newNod... | [
"0.57588965",
"0.5479559",
"0.54225993",
"0.5336196",
"0.5278098",
"0.5173964",
"0.51163447",
"0.50488394",
"0.5037728",
"0.49774265",
"0.49471205",
"0.4872927",
"0.48383808",
"0.47957426",
"0.47560683",
"0.47360426",
"0.46506155",
"0.4616341",
"0.46070173",
"0.4606877",
"0.4... | 0.61917007 | 0 |
Add new statements to the bld.inf. The previous calls to updateStatement() have already updated the view to delete view model elements corresponding to previously existing nodes in the TU, so anything left in the view is new. Once finished, everything in the view should be reverted to empty. | protected void applyNewStatements() {
bldInfView.updateCurrentDirectory(bldInfView.getModel().getPath());
applyNewListArgumentStatements();
applyNewBlockStatements();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void addStatements(List<Statement> statements) throws LpException {\n outputRdf.execute((connection) -> {\n connection.add(statements);\n });\n statements.clear();\n }",
"public void add(Statement followingStatement, List<Statement> newStatements) {\n\n\t\t\n\t\tlog(\"a... | [
"0.58693385",
"0.5655711",
"0.5399791",
"0.5270494",
"0.5234943",
"0.5182399",
"0.516778",
"0.5157181",
"0.5075828",
"0.50526845",
"0.50522494",
"0.5042979",
"0.503441",
"0.5026301",
"0.5012354",
"0.5005428",
"0.5000297",
"0.4956882",
"0.4933324",
"0.49126223",
"0.4912073",
... | 0.7152955 | 0 |
Initialize the contents of the frame. | protected void initialize() {
//Initializes the frame
frame = new JFrame();
frame.getContentPane().setFont(new Font("Tahoma", Font.PLAIN, 12));
frame.getContentPane().setBackground(new Color(176, 196, 222));
frame.getContentPane().setLayout(null);
frame.setResizable(false);
frame.setBounds(100,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public BreukFrame() {\n super();\n initialize();\n }",
"public MainFrame() {\n\t\tsuper();\n\t\tinitialize();\n\t}",
"private void initialize() {\n\t\tthis.setSize(211, 449);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setTitle(\"JFrame\");\n\t}",
"public SiscobanFrame() {\r\n\t\tsuper();\r... | [
"0.77704835",
"0.75652915",
"0.7442664",
"0.7369101",
"0.7366378",
"0.7358479",
"0.73146075",
"0.73096764",
"0.72987294",
"0.72978777",
"0.7278321",
"0.72729623",
"0.7269468",
"0.7269468",
"0.7215727",
"0.7180792",
"0.71682984",
"0.7140954",
"0.7140953",
"0.7126852",
"0.71079... | 0.0 | -1 |
this series of ifelse statements checks to make sure that the user has not deleted the name after entering expenses and before hitting calculate | @Override
public void mouseClicked(MouseEvent arg0) {
if (personNameOne.getText().isEmpty()) {
output.setText("Please enter in a valid name for user one");
}
else if(personNameTwo.getText().isEmpty()) {
output.setText("Please enter in a valid name for user two");
}
else if (perso... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean verifyObligedFields() {\n if(label.getText().toString().isEmpty() || label.getText().toString().equals(\"\"))\n {\n Toast.makeText(ExpenseCardViewDetails.this, R.string.label_must_be_filled, Toast.LENGTH_SHORT).show();\n return false;\n }\n if(categ... | [
"0.598716",
"0.5680639",
"0.5664939",
"0.56423783",
"0.56188476",
"0.5523867",
"0.5520838",
"0.55206454",
"0.5517285",
"0.5510527",
"0.54661524",
"0.5461092",
"0.54479295",
"0.5408803",
"0.5403975",
"0.5393584",
"0.53679323",
"0.5355425",
"0.53547645",
"0.53546774",
"0.534724... | 0.5543332 | 5 |
Called just before this Command runs the first time | @Override
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.7113986",
"0.6542487",
"0.64347786",
"0.6433418",
"0.64082474",
"0.6353506",
"0.6309701",
"0.62537354",
"0.62473047",
"0.62407833",
"0.6167777",
"0.6163407",
"0.6129232",
"0.6129232",
"0.6129232",
"0.6129232",
"0.6129232",
"0.61080366",
"0.608483",
"0.608483",
"0.60805327"... | 0.0 | -1 |
Called repeatedly when this Command is scheduled to run | @Override
protected void execute() {
drive.arcadeDrive(Robot.oi.getDriveJoystickForward(), Robot.oi.getDriveJoystickLateral());
} | {
"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() | @Override
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.77345294",
"0.77345294",
"0.7678753",
"0.76457655",
"0.75966",
"0.7554271",
"0.6877811",
"0.6748956",
"0.6728847",
"0.66855806",
"0.65891784",
"0.65624696",
"0.64980483",
"0.63857424",
"0.63736373",
"0.6356819",
"0.6356819",
"0.63498974",
"0.63401324",
"0.63290936",
"0.632... | 0.62499565 | 50 |
Called once after isFinished returns true | @Override
protected void end() {
} | {
"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.85854495",
"0.85395205",
"0.83341306",
"0.83313096",
"0.83313096",
"0.83068",
"0.8305024",
"0.8298836",
"0.8277644",
"0.8277644",
"0.8277644",
"0.8277644",
"0.8277644",
"0.8277644",
"0.8277644",
"0.8277644",
"0.8277644",
"0.8277644",
"0.8277644",
"0.8277644",
"0.8277644",
... | 0.0 | -1 |
Called when another command which requires one or more of the same subsystems is scheduled to run | @Override
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.5763735",
"0.5597857",
"0.5525979",
"0.5434967",
"0.53826046",
"0.53644043",
"0.5349786",
"0.5344097",
"0.5329482",
"0.53283983",
"0.5299414",
"0.5261541",
"0.5256005",
"0.52316135",
"0.52242804",
"0.52031666",
"0.5192441",
"0.5177707",
"0.5162963",
"0.51539654",
"0.514155... | 0.0 | -1 |
System.out.println("++ Get User"); HttpServletRequest request = ServletActionContext.getRequest(); User u = (User) request.getAttribute("user"); | public synchronized static User getUser() {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public User getUser(){return this.user;}",
"User getPassedUser();",
"public String getUser()\n {\n return _user;\n }",
"@RequestMapping(\"/test\")\n public void test(){\n User user = (User) SecurityUtils.getCurrentUser();\n System.out.println(\"user>>>\"+user.getId());\n }",
"pr... | [
"0.7140638",
"0.68281955",
"0.6819773",
"0.67284316",
"0.6720193",
"0.66842484",
"0.6670944",
"0.6597545",
"0.65574497",
"0.6530948",
"0.65014166",
"0.6498555",
"0.6498555",
"0.6494541",
"0.6480671",
"0.6479326",
"0.6454107",
"0.64507896",
"0.64507896",
"0.64507896",
"0.64460... | 0.0 | -1 |
HttpServletRequest request = ServletActionContext.getRequest(); String userId = request.getHeader("REW3UserId"); | public synchronized static String getRew3UserId() {
return "userId";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getRequestID();",
"public String getHeader() {\n String header = FxSharedUtils.getHeader();\n if (header.indexOf(\"$user$\") > 0)\n header = header.replaceAll(\"\\\\$user\\\\$\", getRequest().getUserTicket().getUserName());\n return header;\n }",
"java.lang.S... | [
"0.64888424",
"0.6153081",
"0.6059622",
"0.6059622",
"0.6059622",
"0.60473746",
"0.60428333",
"0.6007333",
"0.5960319",
"0.5960319",
"0.5960319",
"0.5960319",
"0.5960319",
"0.5960319",
"0.5960319",
"0.5960319",
"0.5960319",
"0.5960319",
"0.5960319",
"0.5960319",
"0.5960319",
... | 0.6753185 | 0 |
HttpServletRequest request = ServletActionContext.getRequest(); String userId = request.getHeader("REW3GroupId"); | public synchronized static String getRew3GroupId() {
return "userId";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getRequestID();",
"public synchronized static String getRew3UserId() {\n return \"userId\";\n }",
"public String getHeader() {\n String header = FxSharedUtils.getHeader();\n if (header.indexOf(\"$user$\") > 0)\n header = header.replaceAll(\"\\\\$user\\\\$\", ... | [
"0.6541513",
"0.6428871",
"0.5812678",
"0.57662374",
"0.57662374",
"0.57662374",
"0.5757565",
"0.5750258",
"0.5713694",
"0.5665775",
"0.5664089",
"0.5664089",
"0.5664089",
"0.5664089",
"0.5664089",
"0.5664089",
"0.5664089",
"0.5664089",
"0.5664089",
"0.5664089",
"0.5664089",
... | 0.6256894 | 2 |
HttpServletRequest request = ServletActionContext.getRequest(); String memberId = request.getHeader("memberId"); | public synchronized static String getMemberId() {
return "222222222222";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getRequestID();",
"private static String getSessionIDFromRequest (HTTPRequest aRequest)\n\t{\n\t\treturn aRequest.getQueryValue (\"sessionID\");\n\t}",
"String getHeader(HttpServletRequest request, String name) throws ValidationException;",
"private long getOwnID(){\n return authentic... | [
"0.60593086",
"0.57827073",
"0.5777235",
"0.5750925",
"0.57340735",
"0.56823146",
"0.5641955",
"0.5615189",
"0.5596891",
"0.55545527",
"0.55294967",
"0.55294967",
"0.5521397",
"0.5506704",
"0.550358",
"0.54942364",
"0.5469167",
"0.5433329",
"0.54327226",
"0.5429751",
"0.53981... | 0.0 | -1 |
modelClass.addImportedClass(context.getPackageName(service) + "." + service.getInterfaceName()); addImportedClassesForFaults(modelClass, ServiceUtil.getFaults(service)); initializeImportedClasses(modelClass, ServiceUtil.getOperations(service)); | protected void initializeImportedClasses(ModelClass modelClass, Service service) throws Exception {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface AddStudentBookOrderPackageService extends EntityService<StudentBookOrderPackage> {\n public StudentBookOrderPackage addStudentBookOrderPackage(String spotCode, String orderCodes, String logisticCode, int isNoce, String loginName)throws Exception;\n}",
"public interface AcSentEdiInterchangeDom... | [
"0.60669243",
"0.60450006",
"0.6023074",
"0.6014599",
"0.59549826",
"0.5901784",
"0.57553756",
"0.5739284",
"0.57030404",
"0.56961966",
"0.56799555",
"0.5624403",
"0.56196296",
"0.55483633",
"0.553301",
"0.553218",
"0.55146116",
"0.54923123",
"0.5489744",
"0.54888874",
"0.548... | 0.7649629 | 0 |
This function is about to change the Register due to the change of Register Part | public static void partChangeTotal(ConcreteValueRegisterPart part, ConcreteValueRegister total, String registerPart) {
long p = part.getRegVal(registerPart);
if (registerPart.equals("%bp")) {
long t = total.getRegVal("%ebp");
long t1 = (long) (t / Math.pow(2, 16));
total.movS("%ebp", (long) (t1 * Math.pow... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void refreshRegisters();",
"public void assignRegister(int new_regValue) {\n if (coalesceBridge != null) {\n coalesceBridge.assignRegister(new_regValue);\n // If we def a parameter (precolored) it loses its coloring\n } if (register != DEAD_REG) {\n if (preCo... | [
"0.6876137",
"0.68679947",
"0.6505445",
"0.6482742",
"0.63875246",
"0.63269764",
"0.62062174",
"0.61713976",
"0.61623514",
"0.61489284",
"0.613411",
"0.6131907",
"0.61306673",
"0.6117538",
"0.6058595",
"0.60265857",
"0.6012926",
"0.5995278",
"0.59724003",
"0.59210354",
"0.590... | 0.0 | -1 |
This function is about to change the Register due to the change of Register Part | public static void totalChangePart(ConcreteValueRegisterPart part, ConcreteValueRegister total, String register) {
long t = total.getRegVal(register);
if (register.equals("%esi")) {
long si = (long) (t % (long) Math.pow(2, 16));
part.movS("%si", si);
} else if (register.equals("%edi")) {
long di = (lon... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void refreshRegisters();",
"public void assignRegister(int new_regValue) {\n if (coalesceBridge != null) {\n coalesceBridge.assignRegister(new_regValue);\n // If we def a parameter (precolored) it loses its coloring\n } if (register != DEAD_REG) {\n if (preCo... | [
"0.6876137",
"0.68679947",
"0.6505445",
"0.6482742",
"0.63875246",
"0.63269764",
"0.62062174",
"0.61713976",
"0.61623514",
"0.61489284",
"0.613411",
"0.6131907",
"0.61306673",
"0.6117538",
"0.6058595",
"0.60265857",
"0.6012926",
"0.5995278",
"0.59724003",
"0.59210354",
"0.590... | 0.0 | -1 |
TODO Autogenerated method stub | public static void totalChangePart(SymbolValueRegisterPart part, SymbolValueRegister total, String register) {
Value x = total.getRegVal(register);
// Exp t = total.getRegVal(registerPart);
if (!(x instanceof LongValue))
return;
long t = ((LongValue) x).getValue();
if (register.equals("%esi")) {
long... | {
"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 |
Inflate the layout for this fragment | @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View view= inflater.inflate(R.layout.fragment_profile, container, false);
initializedView(view);
initializedListners();
return view;
} | {
"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.6739604",
"0.67235583",
"0.6721706",
"0.6698254",
"0.6691869",
"0.6687986",
"0.66869223",
"0.6684548",
"0.66766286",
"0.6674615",
"0.66654444",
"0.66654384",
"0.6664403",
"0.66596216",
"0.6653321",
"0.6647136",
"0.66423255",
"0.66388357",
"0.6637491",
"0.6634193",
"0.66251... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void addCharge(Charge charge) {
chargeMapper.addCharge(charge);
} | {
"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 updateCharge(Charge charge) {
chargeMapper.updateCharge(charge);
} | {
"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 updateChargeState(Charge charge) {
chargeMapper.updateChargeState(charge);
} | {
"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 deleteCharge(int id) {
chargeMapper.deleteCharge(id);
} | {
"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 List<Charge> getCharges() {
List<Charge> list = chargeMapper.getCharges();
return list;
} | {
"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 Charge getChargeById(int id) {
Charge charge = chargeMapper.getChargeById(id);
return charge;
} | {
"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 List<Charge> getChargesBykeyword(String keyword) {
List<Charge> list = chargeMapper.getChargesBykeyword(keyword);
return list;
} | {
"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 |
/ Este metodo activa la funcion del boton detalles | public void mostrarDetallesCompra(View view) {
AlertDialog alertDialog = new AlertDialog.Builder(context).create();
LayoutInflater inflater = this.getLayoutInflater();
View dialogView = inflater.inflate(R.layout.dialog_detalles_compra, null);
alertDialog.setView(dialogView);
Text... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void botonFuncional(JButton Boton){\n \n if(!caraUp){\n Boton.setEnabled(false);\n imagen1 =(ImageIcon) Boton.getDisabledIcon();\n v[0] = Boton;\n caraUp = true;\n cara1 = false;\n }\n else {\n Boton.setEnabled(fa... | [
"0.65280014",
"0.62626296",
"0.6233396",
"0.6196148",
"0.6165158",
"0.6155656",
"0.608616",
"0.5949116",
"0.5944884",
"0.5929366",
"0.5918132",
"0.59014463",
"0.5898948",
"0.58921534",
"0.58489347",
"0.58290094",
"0.5795352",
"0.5795009",
"0.578644",
"0.5775893",
"0.57620233"... | 0.0 | -1 |
TODO: Should be removed in favor of having the commands be processed in the UI. | @Test
public void parseCommandTest() {
assertFalse(myManager.parseCommand("quit"));
assertFalse(myManager.parseCommand("Quit"));
assertFalse(myManager.parseCommand("q uit"));
assertTrue(myManager.parseCommand("new job"));
assertTrue(myManager.parseCommand("NEW job"));
assertTrue(myManager.parseCommand(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n public void execute(Command command) {\n\r\n }",
"private void registerCommands() {\n }",
"public void getCommandsUpdate() {\n\t\t\r\n\t}",
"public void command() {\n List<String> commands = new ArrayList<>();\n commands.add(\": start\");\n commands.add(\": exit\")... | [
"0.7038836",
"0.7011776",
"0.6928431",
"0.6752242",
"0.6738848",
"0.67242724",
"0.66942596",
"0.66871905",
"0.66675246",
"0.66567886",
"0.6654969",
"0.66530347",
"0.6617722",
"0.66163707",
"0.66163707",
"0.6589571",
"0.65449744",
"0.6542136",
"0.6536881",
"0.6536881",
"0.6536... | 0.0 | -1 |
Disable sprinting particles for ghosts | @Inject(method = "shouldSpawnSprintingParticles",at = @At("RETURN"),cancellable = true)
private void formlessEffect(CallbackInfoReturnable<Boolean> cir) {
if (this.formless)
cir.setReturnValue(false);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void generateGhost() {\r\n\t\ttry {\r\n\t\t\tghost = (FallingPiece)falling.clone();\r\n\t\t} catch (CloneNotSupportedException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\twhile(moveIfNoConflict(ghost.moveDown(), ghost));\t\t\r\n\t\tfor (BlockDrawable block : ghost.allBlocks())\r\n\t\t\tblock.setGhos... | [
"0.59783566",
"0.597765",
"0.59387743",
"0.5904648",
"0.5825193",
"0.5815918",
"0.5723713",
"0.57034135",
"0.5695986",
"0.5675632",
"0.56700116",
"0.5654636",
"0.56470996",
"0.5640218",
"0.5636893",
"0.5591964",
"0.55822235",
"0.5567026",
"0.5517318",
"0.55145967",
"0.5466956... | 0.0 | -1 |
Formless set and get methods | public void setFormless(boolean formless) {
this.formless = formless;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String setValue();",
"public void set(String name, Object value) {\n }",
"public T set(T obj);",
"public T get() {\n return value;\n }",
"public T get() {\n return value;\n }",
"public T get() {\n return value;\n }",
"public Value makeSetter() {\n Value r = new Value(this);\... | [
"0.67754817",
"0.65256816",
"0.6490409",
"0.6427746",
"0.6427746",
"0.642521",
"0.6419891",
"0.63988876",
"0.6389763",
"0.63274395",
"0.6322697",
"0.62976813",
"0.62974817",
"0.62974817",
"0.6243722",
"0.6235099",
"0.6222953",
"0.62162024",
"0.62091273",
"0.61983234",
"0.6156... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void actionPerformed(ActionEvent e) {
if(action.recover()) {
System.out.println("backButton");
ui.closeBackButton();//backButton设置为不可用
ui.paint(ui.getGraphics());
ui.upgradeScore();
} else {
System.out.println("can't back");
}
} | {
"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 |
Object of Super2 Class | public static void main(String[] args) {
Super2 objSuper2=new Super2();
objSuper2.details();
objSuper2.display();
objSuper2.verifyDetails(); //With and Without Super Keyword
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Object getBase();",
"slco.Object getObject2();",
"public ArmasHija2(int objetoHija2){\r\n super(objetoHija2);\r\n this.objetoHija2=objetoHija2;\r\n }",
"public Ext2Class1() {\n }",
"public ITool getSuperClass();",
"public String getObj2 () {\r\n return Obj2; \r\n }",
"pu... | [
"0.64741564",
"0.62533",
"0.61764354",
"0.6011299",
"0.59521675",
"0.59421045",
"0.5893593",
"0.58756083",
"0.58617055",
"0.5859824",
"0.58490765",
"0.58487666",
"0.57983094",
"0.5757766",
"0.57571614",
"0.57521784",
"0.5693168",
"0.5692693",
"0.5642464",
"0.5618247",
"0.5617... | 0.5919122 | 6 |
Use this factory method to create a new instance of this fragment using the provided parameters. | public static RankView newInstance(String param1, String param2) {
RankView fragment = new RankView();
Bundle args = new Bundle();
args.putString(ARG_PARAM1, param1);
args.putString(ARG_PARAM2, param2);
fragment.setArguments(args);
return fragment;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static FragmentTousWanted newInstance() {\n FragmentTousWanted fragment = new FragmentTousWanted();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }",
"protected abstract Fragment createFragment();",
"public void createFragment() {\n\n ... | [
"0.7259329",
"0.72331375",
"0.71140355",
"0.69909847",
"0.69902235",
"0.6834592",
"0.683074",
"0.68134046",
"0.6801526",
"0.6801054",
"0.67653185",
"0.6739714",
"0.6739714",
"0.6727412",
"0.6717231",
"0.6705855",
"0.6692112",
"0.6691661",
"0.66869426",
"0.66606814",
"0.664618... | 0.0 | -1 |
/ write annotation file filename input file name probtype probability type: 0 counts; 1 P ( s | p ); 2 P ( p | s ); 3 P ( p , s ) from s; 4 P ( p , s ) from p; 5 P ( s | p ) P ( p | s ) P ( p , s )_s P ( p , s )_p occurThresh output csv fingerprinttype includeNonExplained | public static void main(String[] args) throws MultipleHeadersFoundInInputDatabaseException, Exception {
java.util.Hashtable<String, String> readParameters = readParameters(args);
if(!readParameters.containsKey("filename")) {
System.err.println("filename missing");
System.exit(1);
}
if(!readParameters.cont... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new FileReader(new File(\"C:\\\\Users\\\\SHANDEMETZ\\\\Downloads\\\\Compressed\\\\gene_association.goa_human\\\\gene_association.goa_human\")));\n\t\tBufferedWriter bw = new BufferedWriter(new FileWriter(new Fil... | [
"0.63253045",
"0.5867686",
"0.5864919",
"0.5585867",
"0.5534365",
"0.5529002",
"0.54649574",
"0.5374655",
"0.5364883",
"0.5287233",
"0.5216217",
"0.52079344",
"0.5194384",
"0.51933193",
"0.51881266",
"0.51761514",
"0.51728475",
"0.5165728",
"0.51380426",
"0.5134271",
"0.51247... | 0.0 | -1 |
TODO: Warning this method won't work in the case the id fields are not set | @Override
public boolean equals(Object object) {
if (!(object instanceof Namefile)) {
return false;
}
Namefile other = (Namefile) object;
if ((this.namefilePK == null && other.namefilePK != null) || (this.namefilePK != null && !this.namefilePK.equals(other.namefilePK... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setId(Integer id) { this.id = id; }",
"private Integer getId() { return this.id; }",
"public void setId(int id){ this.id = id; }",
"public void setId(Long id) {this.id = id;}",
"public void setId(Long id) {this.id = id;}",
"public void setID(String idIn) {this.id = idIn;}",
"public void se... | [
"0.6896886",
"0.6838461",
"0.67056817",
"0.66419715",
"0.66419715",
"0.6592331",
"0.6579151",
"0.6579151",
"0.6574321",
"0.6574321",
"0.6574321",
"0.6574321",
"0.6574321",
"0.6574321",
"0.65624106",
"0.65624106",
"0.65441847",
"0.65243006",
"0.65154546",
"0.6487427",
"0.64778... | 0.0 | -1 |
Load all challenges (also forces inputs to be read from the inputs/ directory) | public static void main(String[] args){
challenges = new Challenge[]{new DayOne(), new DayTwo(), new DayThree(), new DayFour(), new DayFive(),
new DaySix(), new DaySeven(), new DayEight(), new DayNine(), new DayTen(), new DayEleven(),
new DayTwelve()};
//Display user pro... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void loadGameFiles(){\n\t}",
"public void initCases(){\n\t\ttry {\n // This creates an object from which you can read input lines.\n BufferedReader reader = new BufferedReader(new FileReader(filename));\n \n for(int i = 0; i < cases.length; i++){\n \t... | [
"0.57247657",
"0.5486573",
"0.53703535",
"0.5300878",
"0.52895164",
"0.52865577",
"0.52817124",
"0.526854",
"0.51778275",
"0.51685065",
"0.516708",
"0.516189",
"0.5144029",
"0.5119896",
"0.51105666",
"0.5067621",
"0.5049302",
"0.5046849",
"0.49890032",
"0.4982522",
"0.4979388... | 0.45840016 | 89 |
gives us access to the Repository | public SongService(SongRepository repo) {
this.songRepo = repo;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Repository getRepository();",
"public Repository getRepository() {\n return mRepository;\n }",
"public interface Repository {\n\n }",
"public interface Repository {\n\n }",
"public interface Repository {}",
"public String getRepository() {\n return repository;\n }",
"public String g... | [
"0.7754657",
"0.7297332",
"0.6951873",
"0.6951873",
"0.691426",
"0.68680173",
"0.68680173",
"0.67918277",
"0.67880744",
"0.6642267",
"0.660068",
"0.65774333",
"0.6555249",
"0.65376365",
"0.6529493",
"0.65085304",
"0.6473585",
"0.64649606",
"0.64413804",
"0.64225304",
"0.64019... | 0.0 | -1 |
MAKE CRUD METHODS CRUD: C = Create R = Read U = Update D = Delete Get All Songs | public List<Song> getAllSongs(){
return this.songRepo.findAll();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface CRUDProduto {\r\n \r\n public boolean save(Produto produto);\r\n\r\n public boolean update(Produto produto);\r\n\r\n public boolean delete(Produto produto);\r\n\r\n public Produto get(long id);\r\n\r\n public List<Produto> getAll();\r\n}",
"public interface CrudController<T, ID... | [
"0.6355034",
"0.62321717",
"0.60620624",
"0.6020722",
"0.59605503",
"0.58640873",
"0.57989",
"0.5782131",
"0.5764681",
"0.57557774",
"0.5750981",
"0.57443804",
"0.5729503",
"0.5718358",
"0.563381",
"0.5611887",
"0.5606974",
"0.559685",
"0.55955637",
"0.552746",
"0.552175",
... | 0.0 | -1 |
Get One Song (Read) | public Song getSingleSong(Long id) {
return this.songRepo.findById(id).orElse(null); //id is an optional(a boolean) (return everything or nothing)
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"ISong getSong();",
"public Song getSong(int index) {\n\t\treturn this.songList.get(index);\n\n\t}",
"@Override\n\tpublic Vn getSong(int id) {\n\t\treturn songDao.getSong(id);\n\t}",
"@Override\n public Song getSong(long id) {\n Song s = null;\n try {\n s = em.createQuery(\"SELECT ... | [
"0.71109885",
"0.69393045",
"0.69001424",
"0.67574126",
"0.6754487",
"0.6595796",
"0.64322263",
"0.6422728",
"0.6421129",
"0.63839895",
"0.6361619",
"0.6350025",
"0.6287902",
"0.6240163",
"0.6237182",
"0.6229149",
"0.62215245",
"0.6212256",
"0.6209805",
"0.61399007",
"0.61280... | 0.68112695 | 3 |
Allows search for songs by Artist name | public List<Song> findByArtist(String artist) {
return this.songRepo.findByArtistContaining(artist);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void searchSong(String name)\n {\n for(int i=0; i<songs.size(); i++)\n if(songs.get(i).getFile().contains(name) || songs.get(i).getSinger().contains(name))\n {\n System.out.print((i+1) + \"- \");\n listSong(i);\n\n }\n }",
"privat... | [
"0.753223",
"0.7374625",
"0.73586386",
"0.73509485",
"0.7280032",
"0.72775096",
"0.71706414",
"0.71199244",
"0.7077079",
"0.7027206",
"0.6948399",
"0.6899894",
"0.6789971",
"0.6788339",
"0.67774254",
"0.67514586",
"0.6728676",
"0.66914135",
"0.6675576",
"0.6661214",
"0.665127... | 0.5868272 | 52 |
Allows search for top 10 songs in database | public List<Song> findTopTen(){
return this.songRepo.findTop10ByOrderByRatingDesc();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<Song> topTen() {\n\t\treturn lookifyRepository.findTop10ByOrderByRatingDesc();\n\t}",
"TasteProfile.TopThreeSongs getTopThreeSongsByUser (String user_id);",
"TasteProfile.TopThreeUsers getTopThreeUsersBySong (String song_id);",
"public ArrayList<Song> topTen(Integer rating) {\n return (Arr... | [
"0.74981546",
"0.70356536",
"0.6899605",
"0.66985214",
"0.66112965",
"0.64061004",
"0.63017476",
"0.61329234",
"0.60323024",
"0.6011058",
"0.5986381",
"0.59102345",
"0.57805294",
"0.5732288",
"0.571344",
"0.56568503",
"0.56490403",
"0.5642198",
"0.56225526",
"0.5615711",
"0.5... | 0.80405116 | 0 |
Text file information to string information to convert. | public static ArrayList<String> textToStr(String path) throws IOException {
ArrayList<String> lines = new ArrayList<>();
try{
File file = new File(path);
FileReader fr = new FileReader(file);
BufferedReader bufr = new BufferedReader(fr);
String line = "";
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static String file2string(String file) {\n StringBuilder sb = new StringBuilder();\n try {\n BufferedReader br = new BufferedReader(new FileReader(new File(file)));\n String line;\n\n while ((line = br.readLine()) != null) {\n sb.append(line);\n... | [
"0.6093784",
"0.60006356",
"0.5956597",
"0.59111476",
"0.5904402",
"0.5834714",
"0.582247",
"0.57653606",
"0.5760813",
"0.5754196",
"0.57405436",
"0.57394606",
"0.5720262",
"0.56970155",
"0.56872934",
"0.56596285",
"0.5650794",
"0.5648785",
"0.56178916",
"0.5604514",
"0.55981... | 0.51039445 | 88 |
Check if the path to save file is proper. | public static boolean isValid(String outputPathName, String allScripts){
try{
File file = new File(outputPathName);
FileReader fr = new FileReader(file);
System.out.println("The file was not created. There is a file that has the same name. Try again.\n");
return f... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static String checkSaveGameFolder() {\n\t\tString user = System.getProperty(\"user.name\");\n\t\tString saveGameFolder = \"C:/Users/\" + user\n\t\t\t\t+ \"/Documents/Paradox Interactive/Victoria II/save games/\";\n\t\tif (new File(saveGameFolder).exists())\n\t\t\treturn saveGameFolder;\n\t\telse\n\t\t\tret... | [
"0.70441866",
"0.700759",
"0.6696018",
"0.6662321",
"0.65052235",
"0.64657116",
"0.6443255",
"0.6441927",
"0.642127",
"0.63270146",
"0.6286462",
"0.62554973",
"0.62518966",
"0.62401795",
"0.6231791",
"0.6177271",
"0.6159714",
"0.61582935",
"0.61307204",
"0.61218655",
"0.60022... | 0.5574956 | 68 |
Creates new form Resister | public Resister() {
initComponents();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"FORM createFORM();",
"public static Result newForm() {\n return ok(newForm.render(palletForm, setOfArticleForm));\n }",
"public FormInserir() {\n initComponents();\n }",
"public static void create(Formulario form){\n daoFormulario.create(form);\n }",
"protected RespostaFormula... | [
"0.71652585",
"0.6641538",
"0.6488815",
"0.6407125",
"0.6334439",
"0.63255966",
"0.6285945",
"0.6229673",
"0.6215099",
"0.61406165",
"0.614051",
"0.6091069",
"0.60882473",
"0.6058639",
"0.5978499",
"0.59556985",
"0.5954272",
"0.59342414",
"0.5911573",
"0.59005785",
"0.5900578... | 0.64456975 | 3 |
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor. | @SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
title2 = new javax.swing.JLabel();
name = new javax.swing.JButton();
address = new javax.swing.JButton();
contact = new javax.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Form() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public frmRectangulo() {\n initComponents();\n }",
"public form() {\n ... | [
"0.73213893",
"0.72913563",
"0.72913563",
"0.72913563",
"0.7286415",
"0.724936",
"0.72132975",
"0.72076875",
"0.71963966",
"0.7190991",
"0.7184836",
"0.71593595",
"0.71489584",
"0.709429",
"0.7080468",
"0.70567",
"0.6987573",
"0.69780385",
"0.69556123",
"0.69538146",
"0.69455... | 0.0 | -1 |
Creates a new AttachNewVolumeThread ready to be started to create a new volume and attach it to the specified instance. | public AttachNewVolumeThread(Instance instance, int size, String snapshotId, String device) {
this.instance = instance;
this.size = size;
this.snapshotId = snapshotId;
this.device = device;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void startThread(VirtualThread newThread) {\n\t\tlog.debug(\"**** CREATING A THREAD? ****\");\n\t}",
"public EC2Volume attachVolume(EC2Volume request) {\n EC2Volume resp = new EC2Volume();\n try {\n request.setDeviceId(mapDeviceToCloudDeviceId(request.getDevice()));\n C... | [
"0.5539916",
"0.53572047",
"0.529502",
"0.52126205",
"0.51419324",
"0.49122685",
"0.4829401",
"0.46422505",
"0.45925555",
"0.45128366",
"0.44904244",
"0.44838226",
"0.44552928",
"0.44410425",
"0.44158754",
"0.44090948",
"0.4372189",
"0.4327657",
"0.4323281",
"0.43128747",
"0.... | 0.7422183 | 0 |
The source line where the parameter type is defined. Example: com/example/app/Cucumber.test():42 | String getLocation(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getParameterType() { return parameterType; }",
"public String getStepParameter(boolean isSelectType)\n\t{\n\t\treturn \"#\" + this.stepLineNumber;\n\t}",
"public String getStepParameter(boolean isSelectType)\n\t{\n\t\treturn \"#\" + this.stepLineNumber;\n\t}",
"int getParamType(String type);",
... | [
"0.6204658",
"0.59859",
"0.59859",
"0.57389534",
"0.5707387",
"0.56522006",
"0.5606878",
"0.5583567",
"0.5557777",
"0.555639",
"0.5516387",
"0.547136",
"0.5455205",
"0.5454391",
"0.5435151",
"0.54087925",
"0.5386406",
"0.5344831",
"0.5291141",
"0.52909404",
"0.52819353",
"0... | 0.0 | -1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.