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
init method used for putting layout infront of user
public void init() { //it will set spacing between and around the buttons and the box pane = new FlowPane(); pane.setPadding(new Insets(10, 10, 10, 10)); pane.setHgap(20); pane.setVgap(20); // create label, and buttons myLabel = new Label("Please ent...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setupLayout() {\n // left empty for subclass to override\n }", "public Layout() {\n super(\"Chitrashala\");\n initComponents();\n }", "private void init() {\n setLayout(new BorderLayout());\n setBackground(ProgramPresets.COLOR_BACKGROUND);\n add(getTi...
[ "0.71433604", "0.7136074", "0.69810086", "0.698063", "0.6938443", "0.69255275", "0.6902422", "0.6895282", "0.684899", "0.68345493", "0.6813554", "0.6796008", "0.6790464", "0.6782859", "0.6745546", "0.6736593", "0.67279655", "0.6713504", "0.6708972", "0.66940135", "0.6691055",...
0.0
-1
Create a scene and place it in the stage
@Override // Override the start method in the Application class /** * Start method for layout building */ public void start(Stage primaryStage) { Scene scene = new Scene(pane, 370, 200); primaryStage.setTitle("Sales Conversion"); // Set the stage title primaryStage.s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createScene();", "private void createScene() {\r\n imageView.setFitWidth(400);\r\n imageView.setFitHeight(300);\r\n\r\n Scene scene = new Scene(rootScene(), 700, 600);\r\n\r\n primaryStage.setTitle(TITLE);\r\n primaryStage.setScene(scene);\r\n primaryStage.sh...
[ "0.80696446", "0.77696556", "0.75066", "0.736118", "0.726805", "0.7251021", "0.72194093", "0.7204146", "0.7191934", "0.71739984", "0.7107698", "0.7089209", "0.7066574", "0.7027453", "0.68476474", "0.68449825", "0.6837185", "0.68245083", "0.67731845", "0.6771425", "0.67550725"...
0.6276325
75
The main method is only needed for the IDE with limited JavaFX support. Not needed for running from the command line.
public static void main(String[] args) { launch(args); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main( String[] args) {\n\t\t// this method start the javaFX application.\n\t\t// some IDEs are capable of starting JavaFX without this method.\n\t\tlaunch( args);\n\t}", "public static void main(String[] args){\r\n //Launch the JavaFX app\r\n Application.launch(args);\r\n }", ...
[ "0.7855074", "0.7652527", "0.73391855", "0.73037434", "0.725813", "0.71054196", "0.69409", "0.6918405", "0.6912379", "0.67712665", "0.67472214", "0.6733873", "0.6731505", "0.6705223", "0.6699508", "0.66788906", "0.6674266", "0.6663539", "0.66617364", "0.6653239", "0.66315854"...
0.0
-1
/ if statement will show error if the input is not a number.
@Override public void handle(ActionEvent e) { if (!Commission.getText().matches("[0-9]*")) { Alert alert = new Alert(AlertType.ERROR); alert.setTitle("Error Dialog"); alert.setHeaderText("Oops! Number Expected!"); alert.showAndWait(); } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean isNumber(String number){\n\t\ttry{\r\n\t\t\tFloat.parseFloat(number);\r\n\t\t}catch(Exception e){\r\n\t\t\treturn false;// if the user input is not number it throws flase\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "private void validateData(String input) {\n String[] inputStringArray = input.split(...
[ "0.71490943", "0.69270575", "0.69073236", "0.69034827", "0.6897848", "0.68222064", "0.68073887", "0.6741084", "0.6729305", "0.65663826", "0.65601677", "0.6489245", "0.6487806", "0.648148", "0.64604586", "0.6457289", "0.64529175", "0.6452798", "0.6447044", "0.6438005", "0.6437...
0.0
-1
skip specVersion == 1.0
@Test public void testExpand() { assumeFalse(Version.V1_0.equals(testCase.options.specVersion)); try { (new JsonLdTestRunnerJunit(testCase)).execute(options -> JsonLd.expand(testCase.input).options(options).get() ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testGetSpecVersion() {\n assertEquals(mb.getSpecVersion(), System\n .getProperty(\"java.vm.specification.version\"));\n }", "public void testGetSpecVendor() {\n assertEquals(mb.getSpecVendor(), System\n .getProperty(\"java.vm.specification.vendor\"));\n ...
[ "0.612285", "0.6046229", "0.5813729", "0.57422006", "0.5681015", "0.56251967", "0.5588215", "0.5565455", "0.55574316", "0.5552418", "0.5533348", "0.5532751", "0.54876775", "0.5468944", "0.5467197", "0.54657084", "0.5427099", "0.54181725", "0.5416291", "0.54080784", "0.5405803...
0.0
-1
Constructor with necessary information (model, how wide and tall to draw the worksheet) to render the actual spreadsheet without the column or row labels.
WorksheetPanel(WorksheetReadOnlyModel model, Dimension frameSize) { if (model == null || frameSize == null) { throw new IllegalArgumentException("null inputs"); } this.model = model; this.frameSize = frameSize; this.setOpaque(true); this.setBackground(Color.WHITE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public WorksheetBuilderImpl() {\n model = new BasicWorksheet();\n }", "@Override\n public Worksheet createWorksheet() {\n return model;\n }", "public WorksheetPanel(ReadOnlyWorksheetModel model, int rows, int cols,\n int cellWidth, int cellHeight) {\n if (model == null) {\n ...
[ "0.6949572", "0.67997015", "0.66303426", "0.63186544", "0.62993056", "0.5985878", "0.5956429", "0.5891065", "0.5873157", "0.5848137", "0.5799385", "0.5760475", "0.5740362", "0.57080764", "0.5700677", "0.5665044", "0.56253475", "0.56252426", "0.56214714", "0.5621294", "0.55887...
0.6407335
3
Update the selected coordinate to the given coordinate.
void updateSelected(Coord c) { this.selected = c; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setLocation(Coordinate coordinate);", "public void updatePositionValue(){\n m_X.setSelectedSensorPosition(this.getFusedPosition());\n }", "public void editCoordinatesInCommit(int x, int y, int id) {\n Commit commit = dataModel.getCommit(id);\n Coordinates coordinates = dataModel.c...
[ "0.6662235", "0.6231263", "0.6121368", "0.60725576", "0.60448825", "0.60074484", "0.5973385", "0.59186184", "0.5893729", "0.58843696", "0.58714485", "0.58372545", "0.5819968", "0.580596", "0.5797532", "0.578061", "0.57762766", "0.577042", "0.57437366", "0.57127315", "0.570245...
0.71530384
0
Gets the coordinate of the user's selected cell on the worksheet.
Coord getSelected() { if (selected == null) { return null; } return new Coord(selected.col, selected.row); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Cell getSelectedCell() {\n return selectedCell;\n }", "public Object getCurrentCellX() {\n\t\treturn x;\n\t}", "public int getPosition(){\n\t\treturn this.cell;\n\t}", "public int getSelectedPosition() {\n return mLayoutManager.getSelection();\n }", "public Point2D getCellCoordin...
[ "0.6710079", "0.66200686", "0.6542905", "0.6492219", "0.6492058", "0.6481529", "0.63562256", "0.6313367", "0.6188509", "0.61761504", "0.6150584", "0.61095506", "0.6103297", "0.6098553", "0.6091135", "0.60518336", "0.604827", "0.6046958", "0.6030201", "0.60081136", "0.5999842"...
0.7282312
0
Constructor for a monster object, which will set all necessary components. Constructor will also set necessary default monster cords.
public Monster(String name,int monsterType,int health,int monstersWalkDistanceX,int monstersWalkDistanceY,int resourceReward,int monsterSize,int whichSide,int respawnTime) { this.name=name; this.monsterType=monsterType; this.health=health; this.monstersWalkDistanceX=monstersWalkDista...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Monster()\n {\n this.name=\"Noname\";\n this.monsterType=0;\n this.health=0;\n this.maxHealth=0;\n this.monstersWalkDistanceX=0;\n this.monstersWalkDistanceY=0;\n this.resourceReward=0;\n this.monsterSize=0;\n this.whichSide=0;\n this....
[ "0.7907262", "0.72785795", "0.71575165", "0.7044519", "0.6948288", "0.68459344", "0.6718111", "0.6695963", "0.6641883", "0.6620702", "0.6587776", "0.64381003", "0.64236766", "0.639393", "0.6376573", "0.634066", "0.6297827", "0.6279826", "0.6246702", "0.62420374", "0.6241646",...
0.68265796
6
Default constructor, which will set all components on base values.
public Monster() { this.name="Noname"; this.monsterType=0; this.health=0; this.maxHealth=0; this.monstersWalkDistanceX=0; this.monstersWalkDistanceY=0; this.resourceReward=0; this.monsterSize=0; this.whichSide=0; this.firstCross=0; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DeviceSelectionComponentBase() {\n initComponents();\n }", "public BaseParameters(){\r\n\t}", "@Override\r\n\tprotected void init() {\n\t\tupdateValues();\r\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "@Override\n\tpublic void initializeValues() {\n\n\t}", "Constructor(...
[ "0.6676608", "0.66068447", "0.64681107", "0.64616287", "0.641056", "0.6392844", "0.63776135", "0.6327028", "0.6303617", "0.62844545", "0.6274401", "0.6250053", "0.6238565", "0.6238224", "0.6232178", "0.6217839", "0.61455053", "0.6131922", "0.61220986", "0.6076541", "0.6066361...
0.0
-1
Sets proper cords for monster, when he will be created. Sets proper source cords, to get proper part of external Image.
private void setDefaultMonsterCords() { this.xBeginMap=0; this.yBeginMap=0; this.xEndMap=16; this.yEndMap=16; this.xBeginSrc=0; this.yBeginSrc=0; this.xEndSrc=0; this.yEndSrc=0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected ImgProcessor() {\n\t\talbert = new Midi();\n\t\tharmon1 = new Midi();\n\t\tharmon2 = new Midi();\n\t\tharmon3 = new Midi();\n\t}", "private void setPixels() {\n\t\t\tfinal byte[] dest = new byte[(int) (getMetadata().get(0).getAxisLength(\n\t\t\t\tAxes.X) * getMetadata().get(0).getAxisLength(Axes.Y))];\...
[ "0.53434366", "0.52936596", "0.5233283", "0.5193129", "0.51248825", "0.5085503", "0.5059146", "0.50588447", "0.505264", "0.5043882", "0.50242895", "0.49895096", "0.49559292", "0.49415424", "0.4870833", "0.48673692", "0.4866231", "0.48611137", "0.48602083", "0.48581618", "0.48...
0.6516067
0
Method which is responsible for randomizing monster choice on first and second cross.
protected int pathDrawLots(int bound) { Random r= new Random(); int num = r.nextInt(bound); return num; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void toss()\n {\n rand = new Random();//create an object\n num = rand.nextInt(2);//randomly generate two numbers\n if(num == 0)\n sideUp = \"heads\";\n else\n sideUp = \"tails\";//decide what up side is\n }", "private void randomBehavior() {\n\t\trandom = rand.nextI...
[ "0.62511057", "0.608874", "0.6080011", "0.5981908", "0.594478", "0.590564", "0.5893112", "0.5878873", "0.587068", "0.5865225", "0.5814043", "0.5811785", "0.58023745", "0.5787018", "0.5767135", "0.576183", "0.575889", "0.5755644", "0.57537067", "0.5734662", "0.5727952", "0.5...
0.0
-1
Method which is responsible for file management and loading graphics from outside file.
protected BufferedImage loadImage(String nameOfFile) { BufferedImage img; try{ img= ImageIO.read(new File(""+nameOfFile)); return img; } catch(IOException e) { System.out.println(e); } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void openFile() throws FileNotFoundException {\n\t\t\tShapes.removeAll(Shapes);\r\n\t\t\tmyLine = null;\r\n\t\t\tmyOval = null;\r\n\t\t\trepaint();\r\n\t\t\t// End Remove all form shapes\r\n\t\t\t\r\n\t\t\t// JFileChooser\r\n\t\t\tString myFile = File.separator+\"txt\";\r\n\t\t\tJFileChooser fileChooser = ...
[ "0.6370224", "0.6322635", "0.63057715", "0.6131121", "0.6110875", "0.6072407", "0.60684085", "0.60612524", "0.6044519", "0.6016654", "0.6010059", "0.60037684", "0.60003877", "0.59724647", "0.5943927", "0.59279054", "0.5887019", "0.5875044", "0.5847072", "0.58255965", "0.58237...
0.5401529
84
Method which will check, if clicked cords, are the cords of monster. If that's true, monster will be selected.
public void checkClickedArea(int xMouse,int yMouse) { isSelected=false; if(targetable==true&&(xMouse>=xBeginMap+15&&xMouse<=xEndMap-15 &&yMouse>=yBeginMap+15&&yMouse<=yEndMap-15)) { isSelected=true; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isClicked() {\n\n// Cycles through all menu cursors\n for (MenuCursor cursor : Main.cursors) {\n\n// If the cursor has a controller and the select button is clicked, return true\n if (cursor.controller != null) {\n if (Main.contains(Main.recentButto...
[ "0.6170247", "0.60937154", "0.606571", "0.5707941", "0.5707941", "0.5707941", "0.5675685", "0.5592867", "0.55659866", "0.55487174", "0.55263454", "0.55263454", "0.55094695", "0.548818", "0.5434085", "0.54299086", "0.53963435", "0.5387931", "0.5386476", "0.53736246", "0.535550...
0.5566829
8
Method is responsible for drawing all screen content. It's called each time, whenever changes on board are made.
public void paintComponent(Graphics g, int xBeginMap, int yBeginMap, int xEndMap, int yEndMap, int xBeginSrc, int yBeginSrc, int xEndSrc, int yEndSrc) { if(isSelected==true) { g.setColor(new Color(0,255,0,125)); Graphics2D g2d = (Graphics2D)g; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void draw(){\n GraphicsContext gc = canvasArea.getGraphicsContext2D();\n canvasDrawer.drawBoard(canvasArea, board, gc, currentCellColor, currentBackgroundColor, gridToggle);\n }", "public void draw() {\n mGameBoard.draw();\n }", "public void draw() { \n\t\tbackground(255); ...
[ "0.78157777", "0.77373415", "0.76288843", "0.73059833", "0.7144769", "0.7119336", "0.6989851", "0.6986787", "0.6976136", "0.69708", "0.6935234", "0.69208324", "0.68826836", "0.68643373", "0.6857509", "0.68512535", "0.6846477", "0.6832434", "0.68035525", "0.67741", "0.67354155...
0.0
-1
Method checks if monster is alive and treats them in compliance with their status.
public void checkIfAlive() { if(this.health<=0) { targetable=false; monstersWalkDistanceX=0; monstersWalkDistanceY=0; this.health=0; new TextureChanger(this,0); isSelected=false; if(monsterType==1) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static void player_fights() {\n monsterisalive = true;\n \n //#enemyobject\n /*The small creatures are one of the many enemies in this game. These small creatures tries to hinder \n the player's growth by killing the player. There are also many traps that make the player go...
[ "0.6867172", "0.6795494", "0.6616685", "0.6606687", "0.6570721", "0.6505377", "0.64443034", "0.63779074", "0.63521343", "0.6263424", "0.61657757", "0.61657757", "0.6163995", "0.6138515", "0.6125377", "0.6098523", "0.6094445", "0.6094378", "0.6089929", "0.60858333", "0.5998921...
0.7212016
0
Eternal loop of message queue until quit() method call
@Override public void run() { while(isAlive.get()) { Runnable task = queue.poll(); if (task != null) { task.run(); } } Log.d(TAG, "Simple worker terminated"); // method quit() called }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void loop() {\n try {\n Mail<T> mail = mailBox.remove();\n\n actor.setSender(mail.getSender());\n actor.receive(mail.getMessage());\n } catch (InterruptedException e) {\n }\n }", "public void run() {\r\n while(true) { // outer loop\r\n ...
[ "0.70939386", "0.6942166", "0.68836224", "0.67503023", "0.6744185", "0.6736632", "0.67308414", "0.6715854", "0.6699057", "0.6682073", "0.6674164", "0.66301095", "0.66276586", "0.6596121", "0.6507075", "0.64954346", "0.6456006", "0.64439124", "0.64397967", "0.64386344", "0.642...
0.60434055
58
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.fragment_movie_image_list, container, false); movieListCompositeDisposable = new CompositeDisposable(); mPager = (V...
{ "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
Toast.makeText(getActivity(), "Success ", Toast.LENGTH_SHORT).show();
private void handleResponse(MoviePosterResponse moviePosterResponse) { moviePosterList.addAll(moviePosterResponse.getPosters()); init(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void displayMessage(String message) {\n Toast.makeText(getActivity(),message,Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onSuccess(Void aVoid) {\n Toast.makeText(getApplicationContext(...
[ "0.7591368", "0.75661486", "0.7496109", "0.72413343", "0.7141511", "0.71158177", "0.69323134", "0.69323134", "0.68909436", "0.6873877", "0.6845315", "0.68418545", "0.6841735", "0.6811276", "0.68028355", "0.6736051", "0.6730024", "0.67014927", "0.6692438", "0.66601676", "0.665...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { TreeNode<Character> root = new TreeNode<Character>('A'); root.left = new TreeNode<Character>('B'); root.right = new TreeNode<Character>('C'); root.left.left = new TreeNode<Character>('D'); root.left.right = new TreeNode<Character>('E'); root.right.right = new Tree...
{ "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
Get the next group of results that compare equal.
@Override public ListMultimap<Iterator<T>, T> next() { ListMultimap<Iterator<T>, T> results = ArrayListMultimap.create(); while (true) { HeapEntry heapEntry = heap.poll(); if (heapEntry == null) { break; // heap is empty } results.put(i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<NoSQLResult> getNextResultGroup() {\n return getNextResultsGroupFromIterator(resultsIterator);\n }", "SearchResult findNext(SearchResult result);", "@Override\n public Tuple nonDistinctNext() {\n //function takes tuples from o2, merges them with t1 from o1 and\n //evaluates...
[ "0.6170777", "0.5562631", "0.55367553", "0.5519321", "0.5492687", "0.5461857", "0.54521143", "0.5387187", "0.5314109", "0.5301643", "0.5291528", "0.5290319", "0.51732635", "0.51472765", "0.512334", "0.5056597", "0.5049307", "0.5032542", "0.49839965", "0.4960792", "0.49440014"...
0.0
-1
Get and return the next value from an iterator, and add a tracing record if enabled. Logs tracing info if a RuntimeException occurs.
private T nextWrapper(Iterator<T> it) { try { if (trace != null) { trace.add(new TraceEntry(System.nanoTime(), System.currentTimeMillis(), NextOrHasNext.NEXT, debugLabels.get(it))); } return it.next(); } catch (RuntimeException ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testListIteratorNext(){\n DoubleLinkedList<Integer> list1 = new DoubleLinkedList<Integer>();\n ListIterator<Integer> list1It = list1.iterator();\n try{\n list1It.next();\n fail(\"expected a NoSuchElementException to be thrown\");\n }\n catch(NoSuchElementException erro...
[ "0.5716555", "0.5695445", "0.55941606", "0.557606", "0.55670947", "0.5545275", "0.55389714", "0.54936755", "0.5446439", "0.5444948", "0.5437756", "0.53937495", "0.53719276", "0.5371264", "0.53177744", "0.5301063", "0.5281723", "0.523925", "0.523867", "0.5227037", "0.5185049",...
0.70639646
0
This problem was asked by Microsoft. You have an N by N board. Write a function that, given N, returns the number of possible arrangements of the board where N queens can be placed on the board without threatening each other, i.e. no two queens share the same row, column, or diagonal. n queens problem, tough one there'...
int n_queens(int n, ArrayList<Integer> board){ System.out.println(board.toString()); if(n == board.size()){ return 1; } int count = 0; for(int i = 0; i < n; i++){ // make sure we haven't included it if(!board.contains(i)){ bo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int totalNQueens(int n) {\n\n if (n <= 0){\n return 0;\n }\n // int count = 0不行\n int[] count = new int[1];\n List<Integer> cur = new ArrayList<Integer>();\n dfs(n, cur, count);\n return count[0];\n }", "public int totalNQueens(int n) {\n ...
[ "0.7566172", "0.72386944", "0.7140882", "0.71400577", "0.7129468", "0.69935215", "0.69791996", "0.6952163", "0.6739701", "0.66639644", "0.66383576", "0.6598375", "0.65680236", "0.6459679", "0.6411279", "0.63974905", "0.6384336", "0.6358113", "0.6352739", "0.63192636", "0.6301...
0.7729555
0
we can guarantee that we dont have the same columns because we've alreay checked that before adding, we can also guarantee we don't have the same rows because rows are index based and we're adding a new index each time
Boolean isValid(ArrayList<Integer> colQ){ int curcol = colQ.size() - 1; int row = colQ.get(colQ.size() - 1); int i = 0; int j = 0; for(i = curcol-1, j = 1; i >= 0; i--, j++) { // check if we have two of the same row || check diags if(row == colQ.get(i) || row+j == colQ.get(i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized void addUniqueMultiple(List<kelondroRow.Entry> rows) throws IOException {\n TreeMap<Integer, byte[]> indexed_result = super.addMultiple(rows);\r\n // indexed_result is a Integer/byte[] relation\r\n // that is used here to store the index\r\n Iterator<Map.Entry<In...
[ "0.6116364", "0.60939616", "0.5936204", "0.5876224", "0.5876224", "0.58013177", "0.58013177", "0.5777093", "0.56776744", "0.56314754", "0.56312126", "0.5624868", "0.5617303", "0.5599142", "0.55384225", "0.5536911", "0.5528058", "0.5512347", "0.55004424", "0.5482807", "0.54511...
0.514888
50
/ int v1=5; int v2=2; int result1= v1+v2; System.out.println(result1); int result2= v1v2; System.out.println(result2); int result3= v1v2; System.out.println(result3); int result4= v1/v2; System.out.println(result4); int result5= v1%v2; System.out.println(result5); double result6 = (double)v1 / v2; System.out.println(re...
public static void main(String[] args) { String st1= "jdk" + 6.0; String st2 = st1 + " Ư¡"; System.out.println(st2); String st3 = "jdk"+3+3.0; String st4 = 3+3.0+"jdk"; System.out.println(st3); System.out.println(st4); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\n double x = 34.56;\n double y = 2.45;\n\n System.out.println(x + y);\n System.out.println(x - y);\n System.out.println(x * y);\n System.out.println(x / y);\n\n var a = 5;\n int b = 9;\n\n System.out.println(a + b);\n System.out.println(a - b...
[ "0.68117726", "0.6631241", "0.6611751", "0.6590554", "0.63612", "0.6314685", "0.6269568", "0.6229422", "0.61904275", "0.6181771", "0.6173312", "0.6123822", "0.6119136", "0.61170095", "0.6115569", "0.60749674", "0.6065513", "0.6051928", "0.6024278", "0.5999242", "0.5992323", ...
0.0
-1
Methods Clear the image on canvas
public void clearImage() { // Clear Image Area paint = false; this.repaint(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void clearCanvas() {\n updateImageSize(mScale);\n }", "public void clearCanvas() {\n bitmap = Bitmap.createBitmap(display.getWidth(), display.getHeight(), Bitmap.Config.ARGB_4444);\n canvas.setBitmap(bitmap);\n mCurrentPathIndex = 0;\n invalidate();\n if (mLis...
[ "0.8564687", "0.8057267", "0.7896598", "0.781178", "0.77421826", "0.7657506", "0.76079416", "0.7550452", "0.74761933", "0.74672467", "0.74423236", "0.743919", "0.74069095", "0.73588234", "0.730762", "0.7292872", "0.7128996", "0.6988125", "0.6972421", "0.6932609", "0.6837326",...
0.82097197
1
Draw an image on the panel This is a standard method used by Graphics
@Override public void paintComponent(Graphics g) { // Paint image on panel if (paint && image != null) { g.drawImage(image, 0, 0, this); } else { // Paint panel black g.setColor(Color.white); g.fillRect(0, 0, getWidth(), getHeight()); }...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public void paintComponent(Graphics2D g) {\r\n g.drawImage(img, x, y, null);\r\n }", "public void drawImage(float x, float y, float width, float height);", "public void draw(){\n StdDraw.picture(this.xCoordinate,this.yCoordinate,this.img);\n }", "public void draw(){\n\t\t...
[ "0.7604444", "0.7592043", "0.7566816", "0.7515273", "0.7448507", "0.7429448", "0.74182844", "0.7416162", "0.74043065", "0.73965394", "0.7387023", "0.7305082", "0.726118", "0.72277015", "0.7202397", "0.71260107", "0.7068519", "0.7024587", "0.69740826", "0.6962104", "0.693682",...
0.73062426
11
Update the panel This method is called automatically when repaint() is called. It is necesarry to doublebuffer the panel (to prevent it from blinking when updated).
@Override public void update(Graphics g) { paint(g); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void update() {\n\t\tthis.repaint();\r\n\t}", "@Override\n\tpublic void Update(JPanel panel) {\n\t\t\n\t}", "private void updatePanel() {\n\t\tProbeUtilities.updateModelProbePanel();\n\t}", "public void refresh() {\n\t\tdrawingPanel.repaint();\n\t}", "public void update()\n\t{\n\t\tJP...
[ "0.7420368", "0.71725535", "0.69325674", "0.6922367", "0.67842066", "0.6667775", "0.6639219", "0.6636938", "0.6533235", "0.6532996", "0.6514416", "0.6514416", "0.6512487", "0.65109956", "0.6496583", "0.64768887", "0.64635766", "0.64535815", "0.64235157", "0.6412551", "0.64033...
0.6391718
21
Set the given image to current and redraw panel
public void setImage(BufferedImage i) { // Paint image object paint = true; image = i; this.repaint(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void updateImgCanvas() {\n\t\timgCanvas.updateCanvasImage(source.source);\n\t\tthis.revalidate();\n\t\tthis.repaint();\n\t}", "public void redraw() {\n\t\tif(this.getGraphics() != null){\n\t\t\tthis.getGraphics().drawImage(imageBuffer, 0, 0, this); // Swap\n\t\t}\n\t}", "public void setActiveImage() {\...
[ "0.69487625", "0.6948533", "0.6889022", "0.6725734", "0.6703419", "0.6679517", "0.66723627", "0.66458666", "0.6616979", "0.6566386", "0.65286374", "0.64294475", "0.64161235", "0.6399291", "0.6372893", "0.63451123", "0.6332102", "0.6329812", "0.63038844", "0.6299314", "0.62977...
0.678881
3
Extract the tuple and its contribution ratio.
private static Contributor createContributor( Entry<MultiKeyFeature, Double> entry, ScoreAggregationRecordDetails scoreAggregationRecordDetails, ScoredDataReaderViewer scoredDataReaderViewer) { MultiKeyFeature tuple = entry.getKey(); double contributionRatio = entry.g...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public Tuple3<Long, Long, Double> getResult(Tuple3<Long, Double, Double> tuple) {\n return new Tuple3<>((long) random.nextInt(FlinkConfig.PARALLELISM), tuple.f0, tuple.f1 * wa + tuple.f2 * wb);\n }", "public abstract double getasDouble(int tuple, int val);", "double getRatio();", "or...
[ "0.55256045", "0.5465183", "0.53665257", "0.52792066", "0.52451366", "0.5223424", "0.5209399", "0.51968837", "0.5124365", "0.50929075", "0.5083887", "0.5076836", "0.50469536", "0.5017535", "0.50053364", "0.49844813", "0.49411514", "0.4938004", "0.48969826", "0.48700798", "0.4...
0.0
-1
Direct constructor calls are not supported.
private DatabaseWriteResult(UploadStrategy strategy) { savedEntries = new ArrayList<>(1000); databaseSize = -1L; error = null; uploadStrategy = strategy; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void __sep__Constructors__() {}", "defaultConstructor(){}", "Reproducible newInstance();", "protected abstract void construct();", "public native void constructor();", "ConstuctorOverloading(){\n\t\tSystem.out.println(\"I am non=argument constructor\");\n\t}", "void DefaultConstructor(){}", "...
[ "0.7430832", "0.7360719", "0.72464174", "0.71756554", "0.71080995", "0.70971537", "0.70601654", "0.7054592", "0.7042289", "0.6989217", "0.6943871", "0.69414824", "0.6846907", "0.6725728", "0.6697158", "0.66858184", "0.6675136", "0.66583526", "0.66576844", "0.6604966", "0.6567...
0.0
-1
Factory method for getting a new DatabaseWriteResult. Direct constructor calls are not supported.
static DatabaseWriteResult create(UploadStrategy uploadStrategy) { return new DatabaseWriteResult(uploadStrategy); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract ODatabaseInternal<?> newDatabase();", "public ResultHandlerDao getObject() {\n final ResultHandlerDao result;\n if (writer == null) {\n result = new JDBCBatchResultHandlerDao(datasource);\n } else {\n result = new WriterResultHandlerDao(itemWriter, wr...
[ "0.6174043", "0.58719087", "0.5692641", "0.566445", "0.56527036", "0.5645124", "0.563832", "0.56218404", "0.5618906", "0.5590257", "0.5524633", "0.53809685", "0.52983385", "0.527822", "0.52574515", "0.5236347", "0.521507", "0.5172019", "0.51377255", "0.51285297", "0.51162076"...
0.6894927
0
Sets the exception encountered during database access
void setError(@Nullable Exception error) { this.error = error; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setException(Exception e)\n {\n this.exception = e;\n }", "TransactionContext setException(Exception exception);", "protected void setWriteException(Exception e) {\n\tif (writeException == null) writeException = e;\n }", "protected void connectionException(Exception exception) {}", "@Be...
[ "0.7215012", "0.7043974", "0.65309817", "0.64291424", "0.61688155", "0.6104575", "0.60263103", "0.59575075", "0.59486663", "0.5940839", "0.59104747", "0.5845136", "0.58068347", "0.5746433", "0.573532", "0.57147855", "0.57070905", "0.5628726", "0.5613691", "0.5605134", "0.5597...
0.5547203
24
Returns a Collection of ids whose entries were successfully written to the backing database
Collection<String> getSavedEntries() { return Collections.unmodifiableCollection(savedEntries); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Collection getPersistedObjectIds() {\n if (_payload != PAYLOAD_OIDS_WITH_ADDS) {\n if (_payload == PAYLOAD_OIDS)\n throw new UserException(s_loc.get(\"no-added-oids\"));\n throw new UserException(s_loc.get(\"extent-only-event\"));\n }\n return (_addI...
[ "0.5983108", "0.5810724", "0.5571087", "0.5517677", "0.5492873", "0.5386038", "0.53766894", "0.5356476", "0.53355294", "0.52989763", "0.52227724", "0.52205724", "0.52114534", "0.5192148", "0.5145322", "0.51443154", "0.5132575", "0.51310223", "0.5125873", "0.5113404", "0.50421...
0.5527568
3
Sets the collection of ids of cache entries that were successfully written to the backing database
void setSavedEntries(Collection<String> savedEntries) { this.savedEntries = Collections.unmodifiableCollection(savedEntries); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void flush() {\n final Collection<MappedPage> cachedPages = cache.getValues();\n for (final MappedPage mappedPage : cachedPages)\n mappedPage.flush();\n }", "@Override\n protected void set(java.util.Collection<org.tair.db.locusdetail.ILocusDetail> list) {\n loci = list;...
[ "0.5439774", "0.5327516", "0.5307061", "0.5253005", "0.518987", "0.5179571", "0.5138537", "0.5046326", "0.50364625", "0.5025016", "0.501307", "0.5008314", "0.50058794", "0.49979433", "0.49864295", "0.49863058", "0.49784175", "0.49439812", "0.4932383", "0.49308965", "0.4929418...
0.50976956
7
This bad boy just does some good old logging ;)
public void log(String fmt, Object... args) { Log.d("Dexedrine", String.format(fmt, args)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getLogHandled();", "void log();", "@Override\n public void logs() {\n \n }", "@Override\n public void log()\n {\n }", "private static void _logInfo ()\n {\n System.err.println (\"Logging is enabled using \" + log.getClass ().getName ());\n }", "private static final v...
[ "0.7427163", "0.7385502", "0.69815695", "0.6971445", "0.6960275", "0.68831986", "0.67705286", "0.67643434", "0.6739346", "0.6732828", "0.6704252", "0.6704252", "0.6704252", "0.67000115", "0.6646799", "0.66281784", "0.6621653", "0.66182923", "0.66141164", "0.6611664", "0.65942...
0.0
-1
Create a new OptionDialog dialog.
public OptionDialog(String title, String prompt, String option1Text, String option2Text) { super(title); // initialize variables and display GUI controls choice = 0; c.gridwidth = 2; JLabel promptLabel = new JLabel(prompt); getContentPane().add(promptLabel, c); c.gridwidth = 1; c.gridy++; // ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void makeDialog()\n\t{\n\t\tfDialog = new ViewOptionsDialog(this.getTopLevelAncestor());\n\t}", "public abstract Dialog createDialog(DialogDescriptor descriptor);", "public Dialog<String> createDialog() {\n\t\t// Creating a dialog\n\t\tDialog<String> dialog = new Dialog<String>();\n\n\t\tButtonType type = new ...
[ "0.7377455", "0.7203483", "0.71908677", "0.6964816", "0.6787753", "0.65184903", "0.6464168", "0.6403093", "0.6372941", "0.6358311", "0.6357005", "0.6338724", "0.63169926", "0.62724537", "0.62411964", "0.62162966", "0.6204363", "0.6165101", "0.61620796", "0.6157469", "0.613934...
0.6005202
32
Returns the number of the choice the user made.
public int getChoice() { return choice; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getOfYourChoiceInput() {\n return ofYourChoiceInput;\n }", "public static int getUserChoice(){\r\n return Input.getInt(\"Enter 1 to add a song, 2 to display all songs, or 3 to quit the program: \");\r\n }", "public java.lang.String getChoice_num() {\n return choice_num;\n ...
[ "0.71723324", "0.70808685", "0.690683", "0.6801934", "0.6774104", "0.6760965", "0.6702622", "0.6685817", "0.6637095", "0.64218885", "0.63923436", "0.6341609", "0.63263184", "0.6312856", "0.62917554", "0.62663746", "0.6263158", "0.6220553", "0.619559", "0.61361533", "0.6121545...
0.74427855
0
12:48:42 934 main:1>call 1 2 12:48:42 935 main:1>call 3 3 12:48:42 935 main:1>call 6 4 12:48:42 935 main:1>call 10 5 12:48:42 936 main:1>call 15 6 12:48:42 936 main:1>call 21 7 12:48:42 936 main:1>call 28 8 12:48:42 936 main:1>call 36 9 12:48:42 937 main:1>call 45 10 12:48:42 938 main:1>onNext 55 12:48:42 938 main:1>on...
public static void reduceDemo() { Observable.range(1, 10).reduce(new Func2<Integer, Integer, Integer>() { @Override public Integer call(Integer integer, Integer integer2) { RxDemo.log(RxDemo.getMethodName() + " " + integer + " " + integer2); return integer...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args){\n Observable myObservable = Observable.create(new Observable.OnSubscribe(){\n\n @Override\n public void call(Object subscriber) {\n Subscriber mySubscriber = (Subscriber)subscriber;\n\n for(int i = 0 ; i < 10; i++){\...
[ "0.6504958", "0.63790905", "0.6154607", "0.6077112", "0.6014283", "0.598099", "0.5887391", "0.5853744", "0.5850122", "0.5844712", "0.5837034", "0.57505536", "0.5723923", "0.5714076", "0.5692608", "0.5687388", "0.56531686", "0.56341124", "0.56166273", "0.5584764", "0.55841917"...
0.500649
65
Create the commit for the configuration
public void makeCommit(String message) throws RepositoryException, IOException, ClassNotFoundException, ConfigurationException { Configuration config = Configuration.load(); List<String> lastBlobIds = config.head().lastCommit().getCommit().getBlobIds(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "TCommit createCommit();", "public Commit() {\n }", "public Commit() {\n }", "void commit() {\n }", "private static void commit() throws IOException {\n java.io.File out = SessionService.getConfFileByPath(Const.FILE_CONFIGURATION + \".\"\n + Const.FILE_SAVING_FILE_EXTENSION);\n Out...
[ "0.7186399", "0.6279241", "0.6279241", "0.62243694", "0.6139334", "0.59712666", "0.5907581", "0.5885043", "0.58691144", "0.5783775", "0.5730513", "0.56865394", "0.56865394", "0.5655236", "0.56346875", "0.56054133", "0.5592019", "0.55720156", "0.55261475", "0.5518569", "0.5494...
0.55161834
20
Created by wuhaijun on 2017/8/22.
public interface UserJpaDao extends JpaRepository<User,Integer> { User findByIdAndName(int id,String name); User findTopByOrderByAgeDesc(); List<User> findTop3ByOrderByAgeDesc(); /** * 自定义SQL查询 */ @Transactional(timeout = 10) @Query("select u from User u where name = ?1") User ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r...
[ "0.619333", "0.615737", "0.59925926", "0.5950664", "0.59217024", "0.5919986", "0.5919986", "0.5878495", "0.58667433", "0.5861528", "0.58367074", "0.5825258", "0.58147645", "0.5800459", "0.5790724", "0.57599175", "0.5745617", "0.57368153", "0.5733922", "0.5715858", "0.57144094...
0.0
-1
Check if the tag matches the selector
public boolean matches(Tag tag) { for (Selector token : selectors) { if (token.matches(tag)) { return true; } } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean isElementPresent(By cssSelector) {\n\treturn false;\n}", "public boolean containsTag(String tagName);", "boolean hasTag(Tag tag);", "public boolean anyTagFound (Tags selTags) {\n\n boolean tagSelected = false;\n if (selTags == null || selTags.length() == 0) {\n tagSelected = true;\...
[ "0.6358083", "0.6083923", "0.594375", "0.58909774", "0.587158", "0.5639336", "0.5587393", "0.5569775", "0.55376637", "0.55283505", "0.55099183", "0.54367125", "0.5433736", "0.5423064", "0.53936243", "0.53935003", "0.5370345", "0.53667843", "0.5352708", "0.5339641", "0.5215382...
0.7011873
0
Caches the company ag in the entity cache if it is enabled.
public void cacheResult(CompanyAg companyAg) { EntityCacheUtil.putResult(CompanyAgModelImpl.ENTITY_CACHE_ENABLED, CompanyAgImpl.class, companyAg.getPrimaryKey(), companyAg); companyAg.resetOriginalValues(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void cacheResult(List<CompanyAg> companyAgs) {\n\t\tfor (CompanyAg companyAg : companyAgs) {\n\t\t\tif (EntityCacheUtil.getResult(\n\t\t\t\t\t\tCompanyAgModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tCompanyAgImpl.class, companyAg.getPrimaryKey()) == null) {\n\t\t\t\tcacheResult(companyAg);\n\t\t\t}\n\t\t\tel...
[ "0.7049812", "0.690144", "0.6595939", "0.61298835", "0.60344595", "0.6022531", "0.57230026", "0.5521067", "0.5501943", "0.54959565", "0.5490726", "0.5469169", "0.5437048", "0.5416558", "0.5389508", "0.53508663", "0.5315826", "0.5312335", "0.52961653", "0.52936596", "0.5245286...
0.7420789
0
Caches the company ags in the entity cache if it is enabled.
public void cacheResult(List<CompanyAg> companyAgs) { for (CompanyAg companyAg : companyAgs) { if (EntityCacheUtil.getResult( CompanyAgModelImpl.ENTITY_CACHE_ENABLED, CompanyAgImpl.class, companyAg.getPrimaryKey()) == null) { cacheResult(companyAg); } else { companyAg.resetOriginalValues(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void cacheResult(List<ContactCompanyAg> contactCompanyAgs) {\n\t\tfor (ContactCompanyAg contactCompanyAg : contactCompanyAgs) {\n\t\t\tif (EntityCacheUtil.getResult(\n\t\t\t\t\t\tContactCompanyAgModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tContactCompanyAgImpl.class,\n\t\t\t\t\t\tcontactCompanyAg.getPrimary...
[ "0.7179557", "0.66793936", "0.62835604", "0.5952633", "0.577712", "0.5577608", "0.55571336", "0.54694545", "0.53644353", "0.53390175", "0.52540815", "0.52524203", "0.5227153", "0.51968867", "0.51738983", "0.5147005", "0.51278", "0.5126286", "0.5116078", "0.5064819", "0.506322...
0.758236
0
Creates a new company ag with the primary key. Does not add the company ag to the database.
public CompanyAg create(String companyAgId) { CompanyAg companyAg = new CompanyAgImpl(); companyAg.setNew(true); companyAg.setPrimaryKey(companyAgId); return companyAg; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ContactCompanyAg create(String contactCompanyAgId) {\n\t\tContactCompanyAg contactCompanyAg = new ContactCompanyAgImpl();\n\n\t\tcontactCompanyAg.setNew(true);\n\t\tcontactCompanyAg.setPrimaryKey(contactCompanyAgId);\n\n\t\treturn contactCompanyAg;\n\t}", "ch.crif_online.www.webservices.crifsoapservice.v1...
[ "0.6803424", "0.6131078", "0.6082383", "0.6026884", "0.5890657", "0.57896996", "0.5754989", "0.57111067", "0.56904584", "0.566581", "0.5640555", "0.5635784", "0.56200784", "0.56070554", "0.55489033", "0.55227315", "0.5505002", "0.5497229", "0.54886997", "0.5488118", "0.547728...
0.71497726
0
Removes the company ag with the primary key from the database. Also notifies the appropriate model listeners.
public CompanyAg remove(String companyAgId) throws NoSuchCompanyAgException, SystemException { return remove((Serializable)companyAgId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void removeByCompanyId(long companyId);", "@Override\n\tpublic CompanyAg remove(Serializable primaryKey)\n\t\tthrows NoSuchCompanyAgException, SystemException {\n\t\tSession session = null;\n\n\t\ttry {\n\t\t\tsession = openSession();\n\n\t\t\tCompanyAg companyAg = (CompanyAg)session.get(CompanyAgImpl.cla...
[ "0.71257937", "0.6967333", "0.68627024", "0.6722307", "0.65238726", "0.63413197", "0.63282514", "0.6281373", "0.62603897", "0.62549484", "0.61633205", "0.6155056", "0.61257344", "0.6008604", "0.6000891", "0.59696597", "0.59596306", "0.5926152", "0.5909855", "0.58997285", "0.5...
0.6295484
7
Removes the company ag with the primary key from the database. Also notifies the appropriate model listeners.
@Override public CompanyAg remove(Serializable primaryKey) throws NoSuchCompanyAgException, SystemException { Session session = null; try { session = openSession(); CompanyAg companyAg = (CompanyAg)session.get(CompanyAgImpl.class, primaryKey); if (companyAg == null) { if (_log.isWarnEnabled(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void removeByCompanyId(long companyId);", "@Override\n\tpublic ContactCompanyAg remove(Serializable primaryKey)\n\t\tthrows NoSuchContactCompanyAgException, SystemException {\n\t\tSession session = null;\n\n\t\ttry {\n\t\t\tsession = openSession();\n\n\t\t\tContactCompanyAg contactCompanyAg = (ContactComp...
[ "0.71218354", "0.6860835", "0.67205065", "0.6523585", "0.63403577", "0.63256544", "0.6293396", "0.6279604", "0.6259504", "0.62524235", "0.61614", "0.61527526", "0.61223334", "0.6005876", "0.59986883", "0.5968873", "0.59582436", "0.5924643", "0.59078014", "0.5895024", "0.58950...
0.6965276
1
Returns the company ag with the primary key or returns null if it could not be found.
@Override public CompanyAg fetchByPrimaryKey(Serializable primaryKey) throws SystemException { return fetchByPrimaryKey((String)primaryKey); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic ContactCompanyAg fetchByPrimaryKey(Serializable primaryKey)\n\t\tthrows SystemException {\n\t\treturn fetchByPrimaryKey((String)primaryKey);\n\t}", "public CompanyAg fetchByPrimaryKey(String companyAgId)\n\t\tthrows SystemException {\n\t\tCompanyAg companyAg = (CompanyAg)EntityCacheUtil.getRe...
[ "0.7159468", "0.68146056", "0.6788337", "0.67805046", "0.6750502", "0.6660049", "0.66214687", "0.6526173", "0.6448355", "0.63811195", "0.63811195", "0.63811195", "0.63811195", "0.63642704", "0.63642704", "0.63642704", "0.63642704", "0.63642704", "0.6324554", "0.628092", "0.62...
0.6994966
1
Returns the company ag with the primary key or returns null if it could not be found.
public CompanyAg fetchByPrimaryKey(String companyAgId) throws SystemException { CompanyAg companyAg = (CompanyAg)EntityCacheUtil.getResult(CompanyAgModelImpl.ENTITY_CACHE_ENABLED, CompanyAgImpl.class, companyAgId); if (companyAg == _nullCompanyAg) { return null; } if (companyAg == null) { Session ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic ContactCompanyAg fetchByPrimaryKey(Serializable primaryKey)\n\t\tthrows SystemException {\n\t\treturn fetchByPrimaryKey((String)primaryKey);\n\t}", "@Override\n\tpublic CompanyAg fetchByPrimaryKey(Serializable primaryKey)\n\t\tthrows SystemException {\n\t\treturn fetchByPrimaryKey((String)pri...
[ "0.7159468", "0.6994966", "0.6788337", "0.67805046", "0.6750502", "0.6660049", "0.66214687", "0.6526173", "0.6448355", "0.63811195", "0.63811195", "0.63811195", "0.63811195", "0.63642704", "0.63642704", "0.63642704", "0.63642704", "0.63642704", "0.6324554", "0.628092", "0.626...
0.68146056
2
Returns all the company ags.
public List<CompanyAg> findAll() throws SystemException { return findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic List<Company> getAll() {\n\t\treturn dao.getAll();\n\t}", "@Override\r\n\tpublic List<Company> getAllCompanies() {\r\n\t\tString methodName = \"getAllCompanies()\";\r\n\t\tlog.info(className+\",\"+methodName);\r\n\t\treturn companyRepository.findAll();\r\n\t\t\r\n\t}", "public List<Company>...
[ "0.67498213", "0.6646008", "0.6572776", "0.65419644", "0.6516782", "0.64715075", "0.63135284", "0.6260299", "0.61483794", "0.6073905", "0.6001728", "0.59997386", "0.5999727", "0.59606194", "0.5945223", "0.5942583", "0.5935351", "0.5917489", "0.5907408", "0.59023196", "0.58521...
0.65344226
4
Removes all the company ags from the database.
public void removeAll() throws SystemException { for (CompanyAg companyAg : findAll()) { remove(companyAg); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void removeAll() throws SystemException {\n\t\tfor (ContactCompanyAg contactCompanyAg : findAll()) {\n\t\t\tremove(contactCompanyAg);\n\t\t}\n\t}", "public void deleteAllFromDB() {\r\n for (int i = 0; i < uploads.size(); i++) {\r\n FileUtil.deleteFile(uploads.get(i).getFilepath());\r\n ...
[ "0.6713644", "0.65321314", "0.6186571", "0.61785007", "0.60985965", "0.6017859", "0.598704", "0.5981224", "0.5960998", "0.5920135", "0.5905444", "0.587489", "0.584951", "0.5829308", "0.5810083", "0.58081526", "0.5805905", "0.5803876", "0.5793794", "0.57819724", "0.57749325", ...
0.68133265
0
Returns the number of company ags.
public int countAll() throws SystemException { Long count = (Long)FinderCacheUtil.getResult(FINDER_PATH_COUNT_ALL, FINDER_ARGS_EMPTY, this); if (count == null) { Session session = null; try { session = openSession(); Query q = session.createQuery(_SQL_COUNT_COMPANYAG); count = (Long)q.uniq...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int totalCompanies(){\n\treturn companyEmpWageArray.size();\n }", "public int getCompaniesCount() {\n return companies_.size();\n }", "@Override\n\tpublic int countCompany() {\n\t\treturn comShortMapper.selectCountShort()+elegantMapper.selectCountEle()+honorMapper.selectCountHonor();\n\t}", "...
[ "0.70838404", "0.6844639", "0.6781592", "0.6727177", "0.65181464", "0.63261366", "0.6298601", "0.62255096", "0.6216474", "0.61900204", "0.6168079", "0.61649686", "0.612751", "0.6080621", "0.60523283", "0.6045281", "0.60341066", "0.6032531", "0.5996286", "0.5980171", "0.593661...
0.5999108
18
Initializes the company ag persistence.
public void afterPropertiesSet() { String[] listenerClassNames = StringUtil.split(GetterUtil.getString( com.liferay.util.service.ServiceProps.get( "value.object.listener.com.agbar.intranet.quienesquien.model.CompanyAg"))); if (listenerClassNames.length > 0) { try { List<ModelListener<CompanyAg>> ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected CompanyJPA() {\n\t}", "public void initDatabase() {\n Datastore mongoDataStore = DatabaseHandler.getInstance().getMongoDataStore();\n initUsers();\n initAccounts();\n mongoDataStore.save(users);\n }", "public void initPersistence (){\n\t\tif (!this._onAppInit){\n\t\t\t/...
[ "0.64312047", "0.6290116", "0.6268548", "0.6232273", "0.6196737", "0.6188251", "0.617316", "0.6144306", "0.6124721", "0.6035713", "0.6025726", "0.6016273", "0.60160875", "0.5984907", "0.5966531", "0.5949992", "0.59432393", "0.5931909", "0.592774", "0.5872215", "0.58436877", ...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { Scanner scan = new Scanner(System.in); int people = scan.nextInt(); long[] memo = new long[people+1]; long ret = Handshake_memo(people, memo); System.out.println("Handshake_memo " + ret + " cnt " + cnt); cnt = 0; HashMap<Integer, Long> mem = new HashMap<Integ...
{ "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
Gets LineReference by Id
public LineReference convert(String element){ Long oid = Long.parseLong( element ); //Long oid = Long.parseLong( (String) element ); LineReference linereference = servicelinereference.findByOid(oid); return linereference; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BossBarLine getLine(UUID id) {\n\t\tfor (BossBarLine line : getLines().values()) {\n\t\t\tif (line.getUuid() == id) return line;\n\t\t}\n\t\treturn null;\n\t}", "LineItem getLineItemById(Integer lineItemId);", "LineReferenceType getLineReference();", "public String getLineId() {\n return lineId...
[ "0.6982023", "0.69027257", "0.68668664", "0.66537476", "0.64576966", "0.62632877", "0.62444484", "0.61898375", "0.61862874", "0.6142856", "0.6124804", "0.6124804", "0.60943156", "0.60672337", "0.6015586", "0.59654665", "0.5934109", "0.5866052", "0.5820093", "0.57472163", "0.5...
0.61247736
12
Obtener todas las mascotas por especie
public LinkedList<PetReportBySpecieVO> getAllPetsBySpecie() { xcon = MySQLConnection.getInstance(); LinkedList<PetReportBySpecieVO> petList = new LinkedList<>(); try { PreparedStatement ps = xcon.getConnection().prepareCall("{call sp_getAllPetsBySpecie_Report}"); ResultSe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void inicializarListaMascotas()\n {\n //creamos un arreglo de objetos y le cargamos datos\n mascotas = new ArrayList<>();\n mascotas.add(new Mascota(R.drawable.elefante,\"Elefantin\",0));\n mascotas.add(new Mascota(R.drawable.conejo,\"Conejo\",0));\n mascotas.add(new Ma...
[ "0.6486942", "0.6334985", "0.6298876", "0.6179184", "0.6075658", "0.60067904", "0.60050267", "0.5979842", "0.5971322", "0.59548366", "0.59081805", "0.59080476", "0.58723277", "0.58561367", "0.57928765", "0.5790458", "0.57832646", "0.57651234", "0.57508534", "0.57398367", "0.5...
0.0
-1
Clientes con sus mascotas
public LinkedList<PetVO> getAllPetsCustomers() { xcon = MySQLConnection.getInstance(); LinkedList<PetVO> petList = new LinkedList<>(); try { PreparedStatement ps = xcon.getConnection().prepareCall("{call sp_getPetsCustomers_ReportExcel}"); ResultSet rs = ps.executeQuery()...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Interfaz_RegistroClientes() {\n initComponents();\n limpiar();\n }", "void realizarSolicitud(Cliente cliente);", "public void carregarCliente() {\n\t\tgetConnection();\n\t\ttry {\n\t\t\tString sql = \"SELECT CLIENTE FROM CLIENTE ORDER BY CLIENTE\";\n\t\t\tst = con.createStatement();\n\t...
[ "0.6971014", "0.68412364", "0.6834584", "0.6821415", "0.6808021", "0.67909455", "0.67261994", "0.66625", "0.659252", "0.65715766", "0.6564813", "0.64798313", "0.6473804", "0.6462532", "0.6425832", "0.6379102", "0.6378278", "0.6373932", "0.6372646", "0.63584256", "0.634652", ...
0.0
-1
Creates a new instance.
public JavaRandomSampleOperator(int sampleSize, DataSetType type) { super(sampleSize, type, Methods.RANDOM); rand = new Random(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Instance createInstance();", "public void create(){}", "public Instance() {\n }", "private Instantiation(){}", "private Object createInstance() throws InstantiationException, IllegalAccessException {\n\t\treturn classType.newInstance();\n\t}", "void create(T instance) throws IOException;", "public v...
[ "0.7834167", "0.72893584", "0.70771503", "0.7048765", "0.70209944", "0.6839274", "0.67782235", "0.6770133", "0.67429745", "0.6701039", "0.6690158", "0.6630354", "0.66046286", "0.6600776", "0.6600776", "0.6597608", "0.6592152", "0.6564594", "0.65268713", "0.652679", "0.6475239...
0.0
-1
Creates a new instance.
public JavaRandomSampleOperator(int sampleSize, long datasetSize, DataSetType type) { super(sampleSize, datasetSize, type, Methods.RANDOM); rand = new Random(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Instance createInstance();", "public void create(){}", "public Instance() {\n }", "private Instantiation(){}", "private Object createInstance() throws InstantiationException, IllegalAccessException {\n\t\treturn classType.newInstance();\n\t}", "void create(T instance) throws IOException;", "public v...
[ "0.7834167", "0.72893584", "0.70771503", "0.7048765", "0.70209944", "0.6839274", "0.67782235", "0.6770133", "0.67429745", "0.6701039", "0.6690158", "0.6630354", "0.66046286", "0.6600776", "0.6600776", "0.6597608", "0.6592152", "0.6564594", "0.65268713", "0.652679", "0.6475239...
0.0
-1
mejor iteracion de una estrategia
public DatosIteracion mejorIteracionCapturados() { ArrayList<DatosIteracion> array = new ArrayList<DatosIteracion>(); for (DatosEstrategia e : this.getValoresEstrategias()) { array.add(this.mejorIteracionCapturados(e.getValoresIteraciones())); } return this.mejorIteracionCapturados(array); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DatosIteracion mejorIteracionOptimizada(String estrategia) {\r\n\r\n\t\tint i;\r\n\t\tfor (i = 0; i < this.getValoresEstrategias().size(); i++) {\r\n\t\t\tif (this.getValoresEstrategias(i).getNombreEstrategia()\r\n\t\t\t\t\t.equals(estrategia))\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t\treturn this.getValoresEstrate...
[ "0.64652073", "0.6257098", "0.6118809", "0.610349", "0.5793893", "0.56823957", "0.561325", "0.53590775", "0.5293248", "0.5273585", "0.52687013", "0.52355474", "0.52195454", "0.52152926", "0.51958716", "0.51624423", "0.51547223", "0.5145475", "0.5140895", "0.5119826", "0.51182...
0.56068695
7
mejor iteracion de una estrategia
public DatosIteracion mejorIteracionCapturados(String estrategia) { int i; for (i = 0; i < this.getValoresEstrategias().size(); i++) { if (this.getValoresEstrategias(i).getNombreEstrategia() .equals(estrategia)) break; } return this.getValoresEstrategias(i).masCapturadas(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DatosIteracion mejorIteracionOptimizada(String estrategia) {\r\n\r\n\t\tint i;\r\n\t\tfor (i = 0; i < this.getValoresEstrategias().size(); i++) {\r\n\t\t\tif (this.getValoresEstrategias(i).getNombreEstrategia()\r\n\t\t\t\t\t.equals(estrategia))\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t\treturn this.getValoresEstrate...
[ "0.64652073", "0.6118809", "0.610349", "0.5793893", "0.56823957", "0.561325", "0.56068695", "0.53590775", "0.5293248", "0.5273585", "0.52687013", "0.52355474", "0.52195454", "0.52152926", "0.51958716", "0.51624423", "0.51547223", "0.5145475", "0.5140895", "0.5119826", "0.5118...
0.6257098
1
mejor iteracion de un array de iteraciones
public DatosIteracion mejorIteracionCapturados( ArrayList<DatosIteracion> datos) { DatosIteracion d = new DatosIteracion("auxiliar"); Lectura l = new Lectura(999999, 0, 0); d.getValoresLecturas().add(l); for (int i = 0; i < datos.size(); i++) { if (d.getValoresLecturas(d.getValoresLecturas().s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Iterator<Item> iterator(){\n return new ArrayIterator();\n }", "public Iterable<M> iterateAll();", "public int[][] iterate()\n {\n Random r = new Random();\n for (int i = 0; i < buffersize; i++) {\n if (unprocessed.isEmpty()) \n {\n finishe...
[ "0.6168245", "0.6128489", "0.60639966", "0.6061959", "0.60594964", "0.6021503", "0.5981431", "0.59746253", "0.5969426", "0.5958817", "0.58986986", "0.5862179", "0.58451", "0.5836272", "0.5801711", "0.58009195", "0.5753751", "0.57471967", "0.57376766", "0.5737245", "0.5736133"...
0.0
-1
iteracion mas optimizada de una estrategia
public DatosIteracion mejorIteracionOptimizada() { ArrayList<DatosIteracion> array = new ArrayList<DatosIteracion>(); for (DatosEstrategia e : this.getValoresEstrategias()) { array.add(this.mejorIteracionOptimizada(e.getValoresIteraciones())); } return this.mejorIteracionOptimizada(array); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DatosIteracion mejorIteracionOptimizada(String estrategia) {\r\n\r\n\t\tint i;\r\n\t\tfor (i = 0; i < this.getValoresEstrategias().size(); i++) {\r\n\t\t\tif (this.getValoresEstrategias(i).getNombreEstrategia()\r\n\t\t\t\t\t.equals(estrategia))\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t\treturn this.getValoresEstrate...
[ "0.6369091", "0.6290835", "0.62273735", "0.61889815", "0.59769803", "0.5968935", "0.59103996", "0.5896852", "0.5879993", "0.58483267", "0.57968515", "0.574093", "0.5701246", "0.5688302", "0.564915", "0.5641294", "0.56298786", "0.56267923", "0.5623532", "0.5619576", "0.5593624...
0.6659077
0
iteracion mas optimizada de una estrategia
public DatosIteracion mejorIteracionOptimizada(String estrategia) { int i; for (i = 0; i < this.getValoresEstrategias().size(); i++) { if (this.getValoresEstrategias(i).getNombreEstrategia() .equals(estrategia)) break; } return this.getValoresEstrategias(i).masEficiente(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DatosIteracion mejorIteracionOptimizada() {\r\n\r\n\t\tArrayList<DatosIteracion> array = new ArrayList<DatosIteracion>();\r\n\r\n\t\tfor (DatosEstrategia e : this.getValoresEstrategias()) {\r\n\t\t\tarray.add(this.mejorIteracionOptimizada(e.getValoresIteraciones()));\r\n\t\t}\r\n\t\treturn this.mejorIteraci...
[ "0.6659077", "0.6290835", "0.62273735", "0.61889815", "0.59769803", "0.5968935", "0.59103996", "0.5896852", "0.5879993", "0.58483267", "0.57968515", "0.574093", "0.5701246", "0.5688302", "0.564915", "0.5641294", "0.56298786", "0.56267923", "0.5623532", "0.5619576", "0.5593624...
0.6369091
1
iteracion mas optimizada de un array de datosIteracion
public DatosIteracion mejorIteracionOptimizada( ArrayList<DatosIteracion> datos) { DatosIteracion d = new DatosIteracion("auxiliar"); Lectura l = new Lectura(999999, 0, 0); d.getValoresLecturas().add(l); for (int i = 0; i < datos.size(); i++) { if ((d.getValoresLecturas(d.getValoresLecturas().si...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DatosIteracion mejorIteracionOptimizada() {\r\n\r\n\t\tArrayList<DatosIteracion> array = new ArrayList<DatosIteracion>();\r\n\r\n\t\tfor (DatosEstrategia e : this.getValoresEstrategias()) {\r\n\t\t\tarray.add(this.mejorIteracionOptimizada(e.getValoresIteraciones()));\r\n\t\t}\r\n\t\treturn this.mejorIteraci...
[ "0.67143005", "0.60407317", "0.5886557", "0.5718467", "0.56986296", "0.5669791", "0.56517977", "0.5622954", "0.56116724", "0.56077385", "0.56067336", "0.55338246", "0.55188966", "0.5502012", "0.54959536", "0.5482101", "0.54814273", "0.5440586", "0.54398036", "0.54155916", "0....
0.7110382
0
iteracion mas optimizada de una estrategia
public DatosIteracion mejorIteracionVisibles() { ArrayList<DatosIteracion> array = new ArrayList<DatosIteracion>(); for (DatosEstrategia e : this.getValoresEstrategias()) { array.add(this.mejorIteracionVisibles(e.getValoresIteraciones())); } return this.mejorIteracionVisibles(array); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DatosIteracion mejorIteracionOptimizada() {\r\n\r\n\t\tArrayList<DatosIteracion> array = new ArrayList<DatosIteracion>();\r\n\r\n\t\tfor (DatosEstrategia e : this.getValoresEstrategias()) {\r\n\t\t\tarray.add(this.mejorIteracionOptimizada(e.getValoresIteraciones()));\r\n\t\t}\r\n\t\treturn this.mejorIteraci...
[ "0.6659077", "0.6369091", "0.6290835", "0.62273735", "0.61889815", "0.59769803", "0.5968935", "0.59103996", "0.5896852", "0.5879993", "0.58483267", "0.57968515", "0.574093", "0.5701246", "0.5688302", "0.564915", "0.5641294", "0.56298786", "0.56267923", "0.5623532", "0.5619576...
0.0
-1
iteracion mas optimizada de una estrategia
public DatosIteracion mejorIteracionVisibles(String estrategia) { int i; for (i = 0; i < this.getValoresEstrategias().size(); i++) { if (this.getValoresEstrategias(i).getNombreEstrategia() .equals(estrategia)) break; } return this.getValoresEstrategias(i).masEficiente(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DatosIteracion mejorIteracionOptimizada() {\r\n\r\n\t\tArrayList<DatosIteracion> array = new ArrayList<DatosIteracion>();\r\n\r\n\t\tfor (DatosEstrategia e : this.getValoresEstrategias()) {\r\n\t\t\tarray.add(this.mejorIteracionOptimizada(e.getValoresIteraciones()));\r\n\t\t}\r\n\t\treturn this.mejorIteraci...
[ "0.6659077", "0.6369091", "0.6290835", "0.62273735", "0.61889815", "0.59769803", "0.5968935", "0.59103996", "0.5896852", "0.5879993", "0.58483267", "0.57968515", "0.574093", "0.5701246", "0.5688302", "0.564915", "0.5641294", "0.56298786", "0.56267923", "0.5623532", "0.5619576...
0.53816295
53
iteracion que mas nodos ve
public DatosIteracion mejorIteracionVisibles(ArrayList<DatosIteracion> datos) { DatosIteracion d = new DatosIteracion("auxiliar"); Lectura l = new Lectura(999999, 0, 0); d.getValoresLecturas().add(l); for (int i = 0; i < datos.size(); i++) { if (d.getValoresLecturas(d.getValoresLecturas().size() -...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic List<Nodo> obtenerNodos() {\n\t\treturn nodos;\n\t}", "protected abstract Node[] getAllNodes();", "public void vincula(){\n for (Nodo n : exps)\n n.vincula();\n }", "private List<Node<T>> auxiliarRecorridoIn(Node<T> nodo, List<Node<T>> lista, Node<T> raiz) {\r\n\t\t\r...
[ "0.6379116", "0.63516146", "0.6231993", "0.61751956", "0.6151972", "0.6082038", "0.60528886", "0.60103273", "0.60056365", "0.60028917", "0.59776324", "0.59583646", "0.59565437", "0.59444785", "0.5939521", "0.5926289", "0.5895953", "0.58814853", "0.5867164", "0.5843562", "0.58...
0.0
-1
Processes requests for both HTTP GET and POST methods.
protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html;charset=UTF-8"); PrintWriter out = response.getWriter(); if(request.getParameter("tipus").equals("loginfail"...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void doPost(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException {\n final String method = req.getParameter(METHOD);\n if (GET.equals(method)) {\n doGet(req, resp);\n } else {\n resp.setStatus(HttpServletResponse.SC_METHOD_NOT_...
[ "0.7004024", "0.66585696", "0.66031146", "0.6510023", "0.6447109", "0.64421695", "0.64405906", "0.64321136", "0.6428049", "0.6424289", "0.6424289", "0.6419742", "0.6419742", "0.6419742", "0.6418235", "0.64143145", "0.64143145", "0.6400266", "0.63939095", "0.63939095", "0.6392...
0.0
-1
Handles the HTTP GET method.
@Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { processRequest(request, response); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void doGet( )\n {\n \n }", "@Override\n\tprotected void executeGet(GetRequest request, OperationResponse response) {\n\t}", "@Override\n\tprotected Method getMethod() {\n\t\treturn Method.GET;\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) thro...
[ "0.7589609", "0.71665615", "0.71148175", "0.705623", "0.7030174", "0.70291144", "0.6995984", "0.697576", "0.68883485", "0.6873811", "0.6853569", "0.6843572", "0.6843572", "0.6835363", "0.6835363", "0.6835363", "0.68195957", "0.6817864", "0.6797789", "0.67810035", "0.6761234",...
0.0
-1
Handles the HTTP POST method.
@Override protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { processRequest(request, response); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void doPost(Request request, Response response) {\n\n\t}", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) {\n }", "public void doPost( )\n {\n \n }", "@Override\n public String getMethod() {\n return \"POST\";\n ...
[ "0.73289514", "0.71383566", "0.7116213", "0.7105215", "0.7100045", "0.70236707", "0.7016248", "0.6964149", "0.6889435", "0.6784954", "0.67733276", "0.67482096", "0.66677034", "0.6558593", "0.65582114", "0.6525548", "0.652552", "0.652552", "0.652552", "0.65229493", "0.6520197"...
0.0
-1
Returns a short description of the servlet.
@Override public String getServletInfo() { return "Short description"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getServletInfo()\n {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short d...
[ "0.87634975", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8699131", "0.8699131", "0.8699131", "0.8699131", "0.8699131", "0.8699131", "0.8531295", "0.8531295", "0.85282224", "0.85282224", ...
0.0
-1
The Type of Element the Block belongs to 0: I Cyan 1: J Blue 2: L Orange 3: O Yellow 4: S Green 5: T Purple 6: Z Red
public void generateElement(Block[][] panelField) { switch (type) { case 0: for (int col = 3; col < 7; col++) { panelField[1][col] = new Block(1, col); panelField[1][col].setType(0); list.add(panelField[1][col]); if (col == 5) { rotator = panelField[1][5]; } } break; case 1: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Color getColor(BlockType type) {\n\t\tswitch (type) {\n\t\tcase Z : \n\t\t\treturn z;\n\t\tcase S :\n\t\t\treturn s;\n\t\tcase LEFT :\n\t\t\treturn left;\n\t\tcase RIGHT : \n\t\t\treturn right;\n\t\tcase LINE :\n\t\t\treturn line;\n\t\tcase TRIANGLE :\n\t\t\treturn tri;\n\t\tcase SQUARE :\n\t\t\treturn squa...
[ "0.6293028", "0.6095107", "0.58629465", "0.579542", "0.5772298", "0.5718014", "0.5686309", "0.56595385", "0.5601011", "0.5596749", "0.5596749", "0.55914825", "0.5472531", "0.5472531", "0.5472531", "0.5472531", "0.5472531", "0.5472531", "0.5472531", "0.5472531", "0.5472531", ...
0.0
-1
saves the location of the blocks in the panelfield (relative to the rotator) while we changee the rotategrid to hold future locations
public void rotateLeft(Block[][] panelField) { HashMap<Block, Point> locsaver = new HashMap<>(); Boolean rotationfinished = false; rotator.setMarked(true); Block[][] rotategrid = new Block[3][3]; rotategrid[1][1] = rotator; for (int r = 0; r < 3; r++) { for (int c = 0; c < 3; c++) { if (r == 1 && ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void rotateRight(Block[][] panelField) {\n\t\tHashMap<Block, Point> locsaver = new HashMap<>();\n\n\t\tBoolean rotationfinished = false;\n\t\trotator.setMarked(true);\n\n\t\tBlock[][] rotategrid = new Block[3][3];\n\t\trotategrid[1][1] = rotator;\n\n\t\tfor (int r = 0; r < 3; r++) {\n\t\t\tfor (int c = 0; c...
[ "0.6877454", "0.63604444", "0.5827904", "0.5771953", "0.57543796", "0.5699765", "0.56693673", "0.5662664", "0.56541157", "0.56539255", "0.56539255", "0.56105906", "0.5574456", "0.55551374", "0.5445542", "0.5398974", "0.53660786", "0.5346069", "0.5338623", "0.533796", "0.53225...
0.65626204
1
saves the location of the blocks in the panelfield (relative to the rotator) while we changee the rotategrid to hold future locations
public void rotateRight(Block[][] panelField) { HashMap<Block, Point> locsaver = new HashMap<>(); Boolean rotationfinished = false; rotator.setMarked(true); Block[][] rotategrid = new Block[3][3]; rotategrid[1][1] = rotator; for (int r = 0; r < 3; r++) { for (int c = 0; c < 3; c++) { if (r == 1 &&...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void rotateLeft(Block[][] panelField) {\n\t\tHashMap<Block, Point> locsaver = new HashMap<>();\n\n\t\tBoolean rotationfinished = false;\n\t\trotator.setMarked(true);\n\n\t\tBlock[][] rotategrid = new Block[3][3];\n\t\trotategrid[1][1] = rotator;\n\n\t\tfor (int r = 0; r < 3; r++) {\n\t\t\tfor (int c = 0; c ...
[ "0.6560521", "0.63615006", "0.58301485", "0.57728875", "0.5753353", "0.5700336", "0.56712675", "0.5663565", "0.5655946", "0.5655946", "0.5654148", "0.5606739", "0.5574428", "0.55577046", "0.54484844", "0.5402577", "0.53689545", "0.53475994", "0.53406847", "0.5334657", "0.5325...
0.6875951
0
TODO Autogenerated method stub
@Override public String execute() throws Exception { int status = multiPlanService.getMultiPlanMembers(multiPlanId); if(status == 0){ result.setMultiPlanMembers(multiPlanService.getMultiPlanMembers()); result.setStatus(0); } return SUCCESS; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
private static String skipUntilNumber = "1.0780"; private static boolean saveAllowed = true;
@Test public void main() throws IOException { currentArticle = null; for(String line: FileUtils.readLines(new File("D:\\projects\\вёрстка томов ИИ\\9 том\\термины.txt"))) { Matcher matcher = compile("\\|([^\\|]+)\\|\\s[–\\-—]\\s(.+)").matcher(line); if (matcher.find()) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isAutoSkip();", "public static void setGsSearchLosDiscard(double val) {\n gsSearchLosDiscard = val;\n }", "int needsSaving();", "boolean getNddSkipValidateB(Record inputRecord);", "public void save_order_without_payment(String advert, String userWhoGive,String userWhoGet,Date date,Date sta...
[ "0.54681635", "0.5224682", "0.5150507", "0.50887334", "0.5080969", "0.5036506", "0.5019767", "0.50196683", "0.5007765", "0.4995363", "0.4985221", "0.4973437", "0.4970334", "0.49385425", "0.49264675", "0.4924415", "0.4919111", "0.49079844", "0.48883122", "0.48655036", "0.48648...
0.0
-1
/ Nothing to do here, as this will never be used as key
@Override public int compareTo(PrefWritable arg0) { // TODO Auto-generated method stub return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public String getKey();", "Object getKey();", "@Override\n protected final Object getKey()\n {\n return this;\n }", "@Override\n public int key() {\n return this.key;\n }", "protected String getKey(int index)\n/* */ {\n/* 1425 */ ...
[ "0.71935457", "0.6947487", "0.6920234", "0.6893605", "0.6834606", "0.6741819", "0.6725343", "0.6725343", "0.6716331", "0.6716331", "0.6716331", "0.6716331", "0.6716331", "0.6716331", "0.67140275", "0.6683904", "0.6683904", "0.6683904", "0.6683904", "0.6683904", "0.6683904", ...
0.0
-1
check if the Worker are busy
@Override public void receive(Task task) throws RemoteException, BusyWorkerException { if (this.isBusy) { throw new BusyWorkerException("I'm busy right now"); } // run a new task on a separated thread (new ProcessTask(task)).start(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isBusy();", "public boolean isBusy() {\n\t\treturn false;\n\t}", "public boolean busyReveiced () {\n\t\t\treturn resultDetected[RESULT_INDEX_BUSY];\n\t\t}", "public boolean isBusy() {\n\t\treturn this.call != null;\n\t}", "public synchronized boolean isBusy(){\n return isBusy;\n }"...
[ "0.759219", "0.7246641", "0.7233746", "0.6938958", "0.69077206", "0.689626", "0.6878394", "0.68452716", "0.6809268", "0.6775162", "0.67344975", "0.67338634", "0.6691736", "0.6665435", "0.6633116", "0.65911686", "0.65330803", "0.6520072", "0.648571", "0.64221317", "0.6402955",...
0.0
-1
The getCurrentLeague method gets the currentLeague
public static boolean getCurrentLeague(String lID, List<LeagueBean> leagueList) { boolean status = false; // query status Connection conn = null; // DB Connection PreparedStatement league = null; // SQL query ResultSet rs = null; // returned query result set // Connect to Database...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public League getLeague()\n\t{\n\t\treturn league;\n\t}", "public League getLeagueName() {\n return leagueName;\n }", "public int getLeagueId() {\n return leagueId;\n }", "public Long getLeagueId() {\n return (this.leagueId);\n }", "public LiveData<LeagueEntity> getLeague() {\...
[ "0.7644577", "0.72201854", "0.6856015", "0.672492", "0.6517058", "0.6471171", "0.64703465", "0.6308764", "0.6156975", "0.60055685", "0.5982005", "0.5943079", "0.5908957", "0.5872724", "0.58321786", "0.5755685", "0.5725469", "0.57174957", "0.5713648", "0.56611544", "0.56607914...
0.562524
22
The getAllLeagues method gets all leagues into the List
public static boolean getAllLeagues(List<LeagueBean> leagueList) { boolean status = false; // query status Connection conn = null; // DB Connection PreparedStatement league = null; // SQL query ResultSet rs = null; // returned query result set // Connect to Database try { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"unchecked\")\n private List createLeagueList() {\n ArrayList result = new ArrayList();\n for( int i = 0 ; i < leagues_array.size() ; ++i ) {\n HashMap m = new HashMap();\n m.put( \"League\", leagues_array.get(i)); // the key and it's value.\n re...
[ "0.6444976", "0.62862223", "0.6085311", "0.59860325", "0.5755836", "0.57340246", "0.57043135", "0.5702328", "0.5701117", "0.56420225", "0.5640987", "0.5611254", "0.5610714", "0.5559757", "0.5453801", "0.54503727", "0.54338336", "0.540832", "0.5346251", "0.5290943", "0.5277847...
0.6247118
2
The getLeagueDivisions method gets the division and league names
public static boolean getLeagueDivisions(String lID, List<DivisionBean> divisionList) { boolean status = false; // query status Connection conn = null; // DB Connection PreparedStatement division = null; // SQL query ResultSet rs = null; // returned query result set // Connect to...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static boolean getDivisionsByLeague(List<DivisionBean> divs, String leagueId) {\r\n\t\tboolean status = false;\t\t\t\t\t// Status of createNewUser\r\n\t\tConnection conn = null;\t\t\t\t\t// DB Connection\r\n\t\tPreparedStatement getDivisions = null;\t// SQL query\r\n\t\tResultSet rs = null;\t\t\t\t\t// retu...
[ "0.6048132", "0.58376515", "0.5779007", "0.57311016", "0.56839675", "0.557573", "0.54404676", "0.53826237", "0.53577095", "0.53576624", "0.52251637", "0.5194058", "0.5165604", "0.5155795", "0.51326036", "0.50822943", "0.5074189", "0.5072362", "0.5065648", "0.5047834", "0.5033...
0.5884512
1
The getDivisionsByLeague method gets the divisions based on leagueId
public static boolean getDivisionsByLeague(List<DivisionBean> divs, String leagueId) { boolean status = false; // Status of createNewUser Connection conn = null; // DB Connection PreparedStatement getDivisions = null; // SQL query ResultSet rs = null; // returned query result set // Connect...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@RequestMapping(value = \"/associations/{id}/divisions\", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)\n\t@Timed\n\tpublic List<Division> getAssociationGames(@PathVariable Long id) {\n\t\tlog.debug(\"REST request to get Association games: {}\", id);\n\t\tDivision example = new Division(...
[ "0.6205245", "0.6128162", "0.58111566", "0.5664763", "0.5663375", "0.5659185", "0.56155145", "0.5437285", "0.54101175", "0.53872997", "0.5315197", "0.5301925", "0.5209798", "0.52082556", "0.52043575", "0.51256275", "0.50868595", "0.5078035", "0.5030444", "0.50061524", "0.4979...
0.6936462
0
The getDivisionsByLeague method gets the divisions based on leagueId
public static boolean getDivisionsWithNoLeague(List<DivisionBean> divs) { boolean status = false; // Status of createNewUser Connection conn = null; // DB Connection PreparedStatement getDivisions = null; // SQL query ResultSet rs = null; // returned query result set // Connect to Database ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static boolean getDivisionsByLeague(List<DivisionBean> divs, String leagueId) {\r\n\t\tboolean status = false;\t\t\t\t\t// Status of createNewUser\r\n\t\tConnection conn = null;\t\t\t\t\t// DB Connection\r\n\t\tPreparedStatement getDivisions = null;\t// SQL query\r\n\t\tResultSet rs = null;\t\t\t\t\t// retu...
[ "0.6936462", "0.6205245", "0.6128162", "0.58111566", "0.5664763", "0.5663375", "0.5659185", "0.5437285", "0.54101175", "0.53872997", "0.5315197", "0.5301925", "0.5209798", "0.52082556", "0.52043575", "0.51256275", "0.50868595", "0.5078035", "0.5030444", "0.50061524", "0.49799...
0.56155145
7
The getNews method gets all the news associated with the league
public static boolean getNews(String id, List<NewsBean> news, String lang, int offset, int maxRows) { boolean status = false; // query status Connection conn = null; // DB connection PreparedStatement getLeague = null; // SQL query PreparedStatement getNews = null; // SQL query ResultSet res...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void getNewsList() {\n // While the app fetched data we are displaying a progress dialog\n\n if (isOnline(mContext)) {\n showProgressDialog();\n\n ApiInterface apiService = ApiRequest.getClient().create(ApiInterface.class);\n\n Call<News> call = apiService.loa...
[ "0.73160577", "0.7167209", "0.7092427", "0.6968486", "0.67955583", "0.65909344", "0.6447492", "0.6410521", "0.6404233", "0.6402209", "0.63924134", "0.6354023", "0.6301581", "0.62340474", "0.62097543", "0.61531025", "0.61130965", "0.6101681", "0.6100344", "0.6090759", "0.60515...
0.6552629
6
The createNewLeague method handles the insertion into the DB of a League
public static boolean createNewLeague(LeagueBean l) { boolean status = false; // Status of createNewUser Connection conn = null; // DB Connection PreparedStatement insertNewLeague = null; int result = 0; // Connect to Database try { conn = ConnectionManager.getConnection(); inse...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void createNewLeague()\n\t{\n\t\t//put code to get input from end-user here.\n\t\t//generateFixtures(leagueName, teamAmount, homeAndAway, winPoints, drawPoints, lossPoints, teamNames);\n\t}", "@RequestMapping(value = \"/team/{league}\", method = POST, consumes = MEDIA_JSON)\n @ResponseStatus(CRE...
[ "0.7339132", "0.6997958", "0.690974", "0.6814644", "0.6412496", "0.6251059", "0.6206461", "0.6155686", "0.61330205", "0.59283", "0.5871624", "0.5833373", "0.58259785", "0.58247626", "0.5662442", "0.56592786", "0.56428003", "0.56142956", "0.55852497", "0.5530802", "0.55037373"...
0.68423885
3
The getLeagueForEdit method gets the league to be edited
public static boolean getLeagueForEdit(LeagueBean l) { boolean status = false; // Status of createNewUser Connection conn = null; // DB Connection PreparedStatement getLeague = null; // SQL query ResultSet rs = null; // returned query result set // Connect to Database try { conn = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public League getLeague()\n\t{\n\t\treturn league;\n\t}", "public int getLeagueId() {\n return leagueId;\n }", "static public void set_team_data(String league){\n\n\t\tEdit_row_window.attrs = new String[]{\"team name:\", \"rating:\", \"release year:\"};\n\t\tEdit_row_window.attr_vals = new String[]\n...
[ "0.63544625", "0.63413733", "0.61661017", "0.6019421", "0.59788156", "0.5929746", "0.5887628", "0.588747", "0.57818615", "0.5679831", "0.55647534", "0.5447861", "0.5343721", "0.5301794", "0.5234194", "0.52222574", "0.5212383", "0.5166858", "0.51531816", "0.5148953", "0.513448...
0.6666189
0
The saveChanges method saves the changes for one league into the db
public static boolean saveChanges(LeagueBean l) { boolean status = false; // Status of createNewUser Connection conn = null; // DB Connection PreparedStatement updateLeague = null; int result = 0; // Connect to Database try { conn = ConnectionManager.getConnect...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void save(ArrayList<League> leagues) {\n\n }", "private void save() {\n Saver.saveTeam(team);\n }", "private void saveTournament(Tournament tournament) {\n System.out.println(\"Saving\");\n TournamentEntity entity = new TournamentEntity();\n entity.setId(...
[ "0.72519296", "0.6845025", "0.64635473", "0.63607484", "0.6079611", "0.59807324", "0.596506", "0.59600794", "0.58404857", "0.580571", "0.5797275", "0.57958734", "0.5715071", "0.57024527", "0.5698951", "0.56821686", "0.5663532", "0.5654768", "0.56533253", "0.56466454", "0.5618...
0.64899176
2
The deleteDivision method deletes the division recursively
public static boolean deleteLeague(String lId) { boolean status = false; // Status of createNewUser Connection conn = null; // DB Connection PreparedStatement deleteLXD = null; PreparedStatement deleteLeague = null; int result = 0; // Connect to Database try { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int delete(Subdivision subdivision);", "public boolean Delete(int num) {\r\n\t\t//initialize boolean field, set to true if value found in tree\r\n\t\tboolean found;\r\n\t\t//initialize the parent node using the TreeNodeWrapper\r\n\t\tTreeNodeWrapper p = new TreeNodeWrapper();\r\n\t\t//initialize the child node u...
[ "0.69886523", "0.5691911", "0.55394894", "0.5472134", "0.54627", "0.543222", "0.5346503", "0.5342852", "0.53320426", "0.53176695", "0.52843994", "0.52785754", "0.5265618", "0.52653956", "0.5262923", "0.5256962", "0.5253626", "0.52500063", "0.5203357", "0.5188924", "0.5151514"...
0.0
-1
TODO Autogenerated method stub
@Override public boolean onException(Exception arg0, T arg1, Target<GlideDrawable> arg2, boolean arg3) { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public boolean onResourceReady(GlideDrawable arg0, T arg1, Target<GlideDrawable> arg2, boolean arg3, boolean arg4) { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
create the evaluation page for the checklist
protected EvaluationPage(Checklist checklist, Controller controller) { super(Resources.getMessage("RiskWizard.9")); this.checklist = checklist; this.controller = controller; this.setTitle(Resources.getMessage("RiskWizard.10")); this.setDescription(Resources.getMessage("RiskWizard.11")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test \n\tpublic void generateListsTest() {\n\t\tHomePage homePage = new HomePage(driver);\n\t\thomePage.OpenPage();\n\n\t\t// select 'lists' radio button \n\t\thomePage.selectContentType(\"lists\");\n\n\t\t// enter '9' in the count field \n\t\thomePage.inputCount(\"9\");\n\n\t\t// click \"Generate Lorum Ipsum\" b...
[ "0.59307706", "0.5675231", "0.55172807", "0.538167", "0.5092922", "0.5063956", "0.50427014", "0.49727502", "0.49358886", "0.49131072", "0.4912127", "0.49089006", "0.49023986", "0.48809925", "0.48789173", "0.4873947", "0.48389095", "0.4837082", "0.4822877", "0.4816017", "0.481...
0.71327925
0
creates the control and adds the visualization selection top bar
@Override public void createControl(Composite parent) { GridLayout layout = new GridLayout(); layout.numColumns = 1; layout.marginHeight = 0; layout.marginTop = 0; layout.marginBottom = 0; layout.verticalSpacing = 0; layout.makeColumnsEqualWidth = true; rootComposite = new Composite(parent, SWT.NO_BAC...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Composite createTopBar(Composite parent, int span) {\n\t\tComposite c = new Composite(parent, SWT.NO_BACKGROUND);\n\n\t\tGridData cData = new GridData();\n\t\tcData.horizontalSpan = span;\n\t\tcData.horizontalAlignment = GridData.FILL;\n\t\tc.setLayoutData(cData);\n\n\t\tGridLayout layout = new GridLayout(...
[ "0.68818516", "0.64811087", "0.63617045", "0.61782485", "0.61098", "0.6083931", "0.6065876", "0.6011963", "0.6005443", "0.6004427", "0.6003962", "0.597917", "0.5964754", "0.5961197", "0.5926585", "0.59058166", "0.5868826", "0.5855421", "0.5813672", "0.5788606", "0.577924", ...
0.626864
3
creates the top bar used for switching between visualizations
private Composite createTopBar(Composite parent, int span) { Composite c = new Composite(parent, SWT.NO_BACKGROUND); GridData cData = new GridData(); cData.horizontalSpan = span; cData.horizontalAlignment = GridData.FILL; c.setLayoutData(cData); GridLayout layout = new GridLayout(); layout.numColumns = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private JPanel topBar() {\n\t\t\n\t\t//creating a top bar with controls\n\t\tJPanel topBar = new JPanel();\n\t\tColor myPurp = new Color(191, 123, 123);\n\t\ttopBar.setBackground(myPurp);\n\t\t\n\t\t//reset button with listener\n\t\ttopBar.add(reset);\n\t\treset.addActionListener(this);\n\t\t\n\t\t//creating butto...
[ "0.7731646", "0.73646903", "0.6758461", "0.6736407", "0.653869", "0.6530729", "0.64662385", "0.6455751", "0.6378216", "0.63525146", "0.62789875", "0.6270931", "0.6196071", "0.61305463", "0.61214", "0.61141694", "0.6112783", "0.6110247", "0.60832685", "0.6074513", "0.6039429",...
0.7340439
2
update the current visualization when the weights change
protected void updateWeights() { visualization.updateWeights(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void update_weight() {\n this.weights = this.updatedWeights;\n }", "public void updateWeights() {\n\t\t\n\t}", "public void updateVisuals ()\n\t{\n\t\tbrainPanel.repaint();\n\t}", "public void batchUpdateWeights() {\n\t\tObject[] keys = nextLayerNodes.keySet().toArray();\n\t\tfor (Object key...
[ "0.785274", "0.779088", "0.69761485", "0.6649467", "0.65312773", "0.6490676", "0.6402955", "0.63858974", "0.6344314", "0.62641597", "0.62454945", "0.6233087", "0.6221729", "0.6191297", "0.615513", "0.6144271", "0.6118932", "0.60848004", "0.60787505", "0.60747623", "0.6037193"...
0.8614244
0
change to monitor visualization
private void showMonitorVisualization() { setVisualization(new MonitorVisualization(rootComposite, controller, checklist)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void visualChange();", "public void changeVisualization ( )\r\n\t{\r\n\t\thorizontal = !horizontal;\r\n\t\trepaint ( );\r\n\t}", "private void writeSecondLevelMonitors() {}", "public void addMonitors() {\n\t\t// get graphics environment\n\t\tGraphicsEnvironment graphicsEnvironment = GraphicsEnvironm...
[ "0.6378907", "0.62740296", "0.6263344", "0.6242452", "0.60799783", "0.58546543", "0.5837874", "0.58086467", "0.58017135", "0.5792941", "0.57506967", "0.5733594", "0.573131", "0.57219386", "0.5715976", "0.5709536", "0.5684842", "0.56732506", "0.56613547", "0.56551296", "0.5648...
0.7963552
0
change to stacks visualization
private void showStacksVisualization() { setVisualization(new StackVisualization(rootComposite, controller, checklist)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void MakeStacked() {\n\t\tStackedButton = new JButton(\n\t\t\t\t new ImageIcon(getClass().getResource(\n\t\t\t\t GetStackedAreaChartImage())));\n\t\tStackedButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent evt) {\n\t\t\t\tGetHost().instructionText.setVisible(...
[ "0.69551194", "0.6201917", "0.61318785", "0.6096627", "0.6074161", "0.605448", "0.6021796", "0.5910873", "0.5909273", "0.58938795", "0.587705", "0.5870149", "0.58434176", "0.5820072", "0.5780173", "0.5738934", "0.57333046", "0.5717371", "0.57077384", "0.5694802", "0.5659151",...
0.80490047
0
set the current visualization and update the UI
private void setVisualization(Visualization visualization) { removeVisualization(); this.visualization = visualization; updateWeights(); this.rootComposite.layout(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setGraph(){\r\n setDisplay(currentGraph);\r\n }", "@Override\n public void run() {\n jmeVisualization = new JMEVisualization();\n jmeVisualization.setRotated(false);\n jmeVisualization.setWidth(getVisualizationPanel().getWidth() - 15);...
[ "0.7204222", "0.68469405", "0.67810625", "0.668789", "0.66752684", "0.6580093", "0.65581334", "0.6447869", "0.6363264", "0.6286964", "0.6213325", "0.620368", "0.617718", "0.61474574", "0.6130369", "0.6116679", "0.6084683", "0.60660255", "0.606475", "0.6034098", "0.6012256", ...
0.76053506
0
remove the current visualization from the UI
private void removeVisualization() { if(this.visualization != null) { this.visualization.dispose(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void componentClosed() {\n /*\n Stop JMEVisualization instance and remove jmeCanvas from panel\n */\n jmeVisualization.stop();\n getVisualizationPanel().remove(jmeCanvas);\n getVisualizationPanel().revalidate();\n }", "public void removeContent...
[ "0.6952454", "0.69187534", "0.6889426", "0.67529374", "0.6700231", "0.66338164", "0.65698344", "0.65430546", "0.64428526", "0.6423583", "0.64192784", "0.64144826", "0.63858", "0.6376631", "0.6357733", "0.6352359", "0.63437045", "0.63366", "0.6332908", "0.6323215", "0.62910444...
0.8531417
0
Fetches Casa Account Balance for selected Casa Account You should map balance inside CasaAccountSelected object along with accountId which is required
public ResponseEntity<AccountBalanceResponse> getCasaAccountBalanceResponseEntity(String customerId, String accountId, String accessToken) { AccountBalanceResponse accountBalanceResponse = new AccountBalanceResponse(); try { HttpResponse<String> apiResponse = Unirest.get(propertyUtil .getA...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void getBalance( Integer account_id ){\r\n\r\n Map<String, String> params = new HashMap<>();\r\n params.put(\"account_id\", String.valueOf(account_id));\r\n String url = API_DOMAIN + ACCOUNT_EXT + GET_BALANCE;\r\n this.makeVolleyRequest( url, params );\r\n }", "@Override\n ...
[ "0.67511374", "0.6346115", "0.6343031", "0.6323225", "0.6318233", "0.6215347", "0.60355234", "0.5963258", "0.5940399", "0.5905262", "0.59017044", "0.5885767", "0.58442324", "0.58260447", "0.57835853", "0.5783265", "0.5724897", "0.5711395", "0.5702397", "0.56418085", "0.563330...
0.6125383
6