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
Create a new EndingDialog popup.
public EndingDialog(Game game, Occupant result) { this.game = game; this.result = result; initializeUI(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "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 ButtonType(\"Ok\", ButtonData.OK_DONE);\n\t\tdialog.getDialogPane().getButtonTypes().add(type);\n\t...
[ "0.64636815", "0.6334499", "0.6099195", "0.5951339", "0.58073694", "0.5771171", "0.57643586", "0.5740888", "0.57243174", "0.5711567", "0.5678009", "0.5663764", "0.5642448", "0.56002307", "0.5599762", "0.5597486", "0.5588607", "0.55477184", "0.55446446", "0.5544615", "0.552898...
0.5558453
17
All initial UI elements are created here.
private void initializeUI() { this.parentFrame = game.getFrame(); parentFrame.setEnabled(false); // Disable main game UI during the ending dialog. createResultPopup(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initUI() {\n }", "public void init()\n {\n buildUI(getContentPane());\n }", "@Override\r\n\tprotected void initUI() {\n\r\n\t}", "private void initUI()\r\n\t{\r\n\t\tthis.label = new Label();\r\n\t\t\r\n\t\tthis.label.setText(\"This view is also saveable\");\r\n\t\t\r\n\t\tthis.l...
[ "0.8351217", "0.80177444", "0.7908524", "0.77896845", "0.7783062", "0.77689487", "0.77134025", "0.7677407", "0.7623262", "0.76079804", "0.75907594", "0.756598", "0.7561558", "0.751816", "0.7502631", "0.7476667", "0.7465865", "0.7463799", "0.74146825", "0.7379771", "0.73796594...
0.72780436
26
Create the result (ending dialog) UI.
private void createResultPopup() { resultDialog = new JDialog(parentFrame); resultDialog.setLayout(new BoxLayout(resultDialog.getContentPane(), BoxLayout.Y_AXIS)); resultDialog.setAlwaysOnTop(true); Utilities.centerWindowTo(resultDialog, parentFrame); resultDialog.add(createResultLabel()); resultDialog.add(createButtonDescription()); resultDialog.add(createConfirmationButtons()); resultDialog.pack(); resultDialog.setVisible(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void result() {\n JLabel header = new JLabel(\"Finish!!\");\n header.setFont(new Font(Font.MONOSPACED, Font.PLAIN, 28));\n gui.getConstraints().gridx = 0;\n gui.getConstraints().gridy = 0;\n gui.getConstraints().insets = new Insets(10,10,50,10);\n gui.getPanel().add...
[ "0.6660411", "0.6461031", "0.64475083", "0.6433866", "0.6379929", "0.6321857", "0.6252792", "0.6178243", "0.6167914", "0.61600375", "0.61384034", "0.61282295", "0.61169845", "0.6106862", "0.6092153", "0.605099", "0.6045255", "0.60324204", "0.6030824", "0.60099655", "0.6006139...
0.7696699
0
Create a text label with the result of the game
private JLabel createResultLabel() { JLabel resultLabel = new JLabel("Result"); resultLabel.setAlignmentX(Component.CENTER_ALIGNMENT); resultLabel.setBorder(new EmptyBorder(8, 8, 8, 8)); setResultLabelText(resultLabel); resultLabel.setFont(new Font(null, Font.BOLD, 30)); return resultLabel; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Label createGameOverLabel(){\n Label text;\n Label.LabelStyle textStyle;\n BitmapFont font = new BitmapFont();\n\n textStyle = new Label.LabelStyle();\n textStyle.font = font;\n\n text = new Label(\"GAME OVER\",textStyle);\n text.setAlignment(Align.center);\...
[ "0.7368282", "0.72318774", "0.70725334", "0.6893042", "0.68459153", "0.6797021", "0.674356", "0.6690311", "0.66204", "0.65981334", "0.6539938", "0.64992976", "0.648629", "0.64671093", "0.6459949", "0.6452541", "0.64399546", "0.6413059", "0.64085686", "0.63838786", "0.63608366...
0.7304142
1
Set the result label text according to the Occupant result
private void setResultLabelText(JLabel resultLabel) { if (result == Occupant.NONE) { // If the result was a tie resultLabel.setText("Tie! No winners!"); } else { resultLabel.setText(result.toString() + " has won this round!"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSearchResultLabel(String resultLabel){ searchResultLabel.setText(resultLabel);}", "private JLabel createResultLabel() {\r\n JLabel resultLabel = new JLabel(\"Result\");\r\n resultLabel.setAlignmentX(Component.CENTER_ALIGNMENT);\r\n resultLabel.setBorder(new EmptyBorder(8, 8, 8...
[ "0.77904433", "0.732148", "0.67330325", "0.6677658", "0.64522034", "0.6418658", "0.63807213", "0.63072556", "0.62076765", "0.6196471", "0.6158221", "0.6146046", "0.61436135", "0.60650516", "0.60137933", "0.59562844", "0.5935871", "0.5934831", "0.5934831", "0.5919172", "0.5891...
0.8110485
0
Text label for the result description
private JLabel createButtonDescription() { JLabel buttonDescription = new JLabel("Result"); buttonDescription.setAlignmentX(Component.CENTER_ALIGNMENT); buttonDescription.setBorder(new EmptyBorder(5, 5, 5, 5)); buttonDescription.setText("Play again?"); buttonDescription.setFont(new Font(null, Font.PLAIN, 20)); return buttonDescription; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getLabel();", "public String getLabelText();", "public java.lang.String getLabel();", "@Override\r\n\tpublic String getDescription() {\n\t\tString descr=\"Results\";\r\n\t\treturn descr;\r\n\t}", "String getLabel();", "String getLabel();", "public String getLabel();", "public String ...
[ "0.76806873", "0.7672673", "0.7591965", "0.7533417", "0.7481534", "0.7481534", "0.7445114", "0.7445114", "0.7445114", "0.7445114", "0.7413176", "0.73118573", "0.72757804", "0.70957375", "0.70957375", "0.70957375", "0.70957375", "0.70957375", "0.70957375", "0.70957375", "0.709...
0.72113806
13
Create dialog confirmation and cancel buttons
private JPanel createConfirmationButtons() { JPanel buttonPanel = new JPanel(); buttonPanel.setAlignmentX(Component.CENTER_ALIGNMENT); buttonPanel.setBorder(new EmptyBorder(5, 5, 5, 5)); buttonPanel.setLayout(new BoxLayout(buttonPanel, BoxLayout.X_AXIS)); JButton confirmButton = new JButton("Confirm"); confirmButton.addActionListener(event -> onConfirmButtonPressed()); JButton cancelButton = new JButton("Cancel"); cancelButton.addActionListener(event -> onCancelButtonPressed()); buttonPanel.add(confirmButton); buttonPanel.add(cancelButton); return buttonPanel; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected void createButtonsForButtonBar(Composite parent) {\n\t\tButton button = createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL,\n\t\t\t\ttrue);\n\t\tbutton.addSelectionListener(new SelectionListener() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\...
[ "0.7297035", "0.694678", "0.6911311", "0.68040365", "0.6780989", "0.6767006", "0.67411685", "0.6721226", "0.67059016", "0.66301364", "0.66184676", "0.65576136", "0.651968", "0.65160275", "0.6509972", "0.65093356", "0.6506683", "0.6501243", "0.6493202", "0.6477847", "0.6467182...
0.67349786
7
called when result confirm button is pressed.
private void onConfirmButtonPressed() { disposeDialogAndCreateNewGame(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void actionPerformed(ActionEvent e) {\n Object source = e.getSource();\n if (source == confirmButton) {\n var newResult = new Result(result, name.getText());\n try {\n newResult.saveResult();\n } catch (IOException ioException) {\n...
[ "0.77888775", "0.74029833", "0.72297204", "0.7195985", "0.7187094", "0.6858582", "0.68557906", "0.6827552", "0.6765959", "0.67479634", "0.6742232", "0.6741583", "0.6704463", "0.66454804", "0.6585683", "0.6551039", "0.6503229", "0.6494244", "0.64494574", "0.6409486", "0.640329...
0.6526701
16
Called when the cancel button is pressed.
private void onCancelButtonPressed() { disposeDialogAndCreateNewGame(); // Reset board, game.setCanPlaceMarks(false); // But don't start a new game. }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void onCancelClicked();", "private void cancelButtonActionPerformed(ActionEvent e) {\n }", "void onCancelButtonPressed();", "public void cancel() { Common.exitWindow(cancelBtn); }", "@Override\n\t\t\t\t\t\t\t\t\tpublic void cancel() {\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}", "@Override\n ...
[ "0.82805383", "0.8276504", "0.8179705", "0.81485754", "0.8119909", "0.81037575", "0.80904853", "0.80826944", "0.8051332", "0.8039659", "0.8036626", "0.8029504", "0.8029504", "0.8029504", "0.80178344", "0.80174", "0.8006326", "0.799963", "0.7973364", "0.7929056", "0.7899764", ...
0.0
-1
Dispose this dialog instance and create a new game state using existing settings (essentially erasing the current one).
private void disposeDialogAndCreateNewGame() { resultDialog.dispose(); Utilities.bringWindowToFront(parentFrame); game.createNewGameState(game.getBoard().getRowLength(), game.getBoard().getColumnLength()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void newGamePreference() {\r\n\t\tboard.dispose();\r\n\t\tgameAlive = false;\r\n\t\topponentScoreLable.setVisible(false);\r\n\t\tplayerScoreLable.setVisible(false);\r\n\t\tplayerScore.setVisible(false);\r\n\t\topponentScore.setVisible(false);\r\n\t}", "private void destroyGameInstance() {\n // Dest...
[ "0.6241155", "0.60593665", "0.5906681", "0.58572465", "0.57539105", "0.56153524", "0.55713433", "0.55583173", "0.55337995", "0.54863864", "0.5459037", "0.54473", "0.54350924", "0.54216534", "0.5374085", "0.53615004", "0.5355545", "0.5350536", "0.53336513", "0.52814764", "0.52...
0.73871726
0
Creates a new Ishaped shape, as in 3 blocks stacked vertically
public IShape(Position position, boolean magic) { super(position, magic, true); Position position1 = new Position(position.row() + 1, position.col()); Position position2 = new Position(position1.row() + 1, position1.col()); super.setCell(new Cell(new Block(Color.CYAN, magic), position), new Cell(new Block(Color.CYAN, false), position1), new Cell(new Block(Color.CYAN, false), position2)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tprotected void initShape() {\n\t\tgetPositions().putAll(createSymmetricLines(0, 1.5, .5, 1.1, WingPart.OUTER_LEFT, WingPart.OUTER_RIGHT));\r\n\t\t//->upper corner\r\n\t\tgetPositions().putAll(createSymmetricLines(.5, 1.1, 1, .7, WingPart.OUTER_LEFT, WingPart.OUTER_RIGHT));\r\n\t\t//-> lower outer co...
[ "0.5509142", "0.54436755", "0.5399537", "0.52684546", "0.5237657", "0.51693994", "0.51628006", "0.5143192", "0.5078373", "0.50047463", "0.50032383", "0.4988567", "0.4983822", "0.49833822", "0.49812043", "0.49787736", "0.49784738", "0.49384448", "0.49359572", "0.49186456", "0....
0.46769878
56
TODO Autogenerated method stub
public static void main(String[] args) { TreeNode root = new TreeNode(2); TreeNode left = new TreeNode(0); TreeNode right = new TreeNode(0); root.left = left; root.right = right; System.out.println(sumRootToLeaf.sumNumbers(root)); }
{ "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
write your code here
public static int[] solution(String str1, String str2) { int[] ans = new int[2]; int n = str1.length(), m = str2.length(); int[][] dp = new int[m + 1][n]; for (int k = 0; k < n; k++) { for (int i = 0, j = k; j < n; i++, j++) { if (k == 0) dp[i][j] = str1.charAt(j) - '0'; else if (k == 1) { int a = str1.charAt(i) - '0', b = str1.charAt(j) - '0'; if (str2.charAt(i) == '+') dp[i][j] = a + b; else dp[i][j] = a * b; } else { int min = Integer.MAX_VALUE; for (int x = i; x < j; x++) { if (str2.charAt(x) == '+') min = Math.min(min, dp[i][x] + dp[x + 1][j]); else min = Math.min(min, dp[i][x] * dp[x + 1][j]); } dp[i][j] = min; } } } ans[0] = dp[0][n - 1]; for (int k = 0; k < n; k++) { for (int i = 0, j = k; j < n; i++, j++) { if (k == 0) dp[i][j] = str1.charAt(j) - '0'; else if (k == 1) { int a = str1.charAt(i) - '0', b = str1.charAt(j) - '0'; if (str2.charAt(i) == '+') dp[i][j] = a + b; else dp[i][j] = a * b; } else { int max = Integer.MIN_VALUE; for (int x = i; x < j; x++) { if (str2.charAt(x) == '+') max = Math.max(max, dp[i][x] + dp[x + 1][j]); else max = Math.max(max, dp[i][x] * dp[x + 1][j]); } dp[i][j] = max; } } } ans[1] = dp[0][n - 1]; return ans; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void logic(){\r\n\r\n\t}", "public static void generateCode()\n {\n \n }", "@Override\n\tprotected void logic() {\n\n\t}", "private static void cajas() {\n\t\t\n\t}", "void pramitiTechTutorials() {\n\t\n}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\r\n\tpub...
[ "0.61019534", "0.6054925", "0.58806974", "0.58270746", "0.5796887", "0.56999695", "0.5690986", "0.56556827", "0.5648637", "0.5640487", "0.56354505", "0.56032085", "0.56016207", "0.56006724", "0.5589654", "0.5583692", "0.55785793", "0.55733466", "0.5560209", "0.55325305", "0.5...
0.0
-1
TODO Makes Group ViewModel
Group(String name) { this(name, new ArrayList<>()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Set getGroups() { return this.groups; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup() { return cGroup; }", "public Group getGroup()...
[ "0.6665294", "0.66531765", "0.66531765", "0.66531765", "0.66531765", "0.66531765", "0.66531765", "0.66531765", "0.66531765", "0.66531765", "0.66531765", "0.66531765", "0.66531765", "0.66531765", "0.66531765", "0.66531765", "0.66531765", "0.66531765", "0.66531765", "0.66531765",...
0.60702914
94
set up GUI components
public void init() { // obtain content pane and change its layout to // a FlowLayout Container container = getContentPane(); container.setLayout( new FlowLayout() ); // create label and text field for die 1 die1Label = new JLabel( "Die 1" ); container.add( die1Label ); die1Field = new JTextField( 10 ); die1Field.setEditable( false ); container.add( die1Field ); // create label and text field for die 2 die2Label = new JLabel( "Die 2" ); container.add( die2Label ); die2Field = new JTextField( 10 ); die2Field.setEditable( false ); container.add( die2Field ); // create label and text field for sum sumLabel = new JLabel( "Sum is" ); container.add( sumLabel ); sumField = new JTextField( 10 ); sumField.setEditable( false ); container.add( sumField ); // create label and text field for point pointLabel = new JLabel( "Point is" ); container.add( pointLabel ); pointField = new JTextField( 10 ); pointField.setEditable( false ); container.add( pointField ); wonLabel=new JLabel(" Money"); container.add(wonLabel); wonMoney=new JTextField(10); wonMoney.setEditable(false); container.add(wonMoney); wonLabel=new JLabel("$"); container.add(wonLabel); // create button user clicks to roll dice rollButton = new JButton( "Roll Dice" ); rollButton.addActionListener( this ); container.add( rollButton ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setupGUI() {\r\n\t\tPaperToolkit.initializeLookAndFeel();\r\n\t\tgetMainFrame();\r\n\t}", "public void initGUI(){\n\t\t\n\t\t//the layout is a new BorderLayout\n\t\tsetLayout(new BorderLayout());\n\t\t\n\t\t//the label will be north\t\n\t\tadd(createHeroList(), BorderLayout.NORTH);\n\t\t\n\t\t//the ...
[ "0.8123114", "0.79761887", "0.78933847", "0.78501236", "0.78379244", "0.78128666", "0.7796101", "0.7792491", "0.7784886", "0.77514154", "0.77452636", "0.7742125", "0.77079725", "0.77079725", "0.76943254", "0.76900655", "0.7646045", "0.7637622", "0.76370996", "0.76193166", "0....
0.0
-1
first roll of dice
public void actionPerformed( ActionEvent actionEvent ) { if ( firstRoll ) { sumOfDice = rollDice(); // roll dice wonMoney.setText(""+money); switch ( sumOfDice ) { // win on first roll case 7: case 11: gameStatus = WON; money=money+40; wonMoney.setText(""+money); pointField.setText( "" ); // clear point field break; // lose on first roll case 2: case 3: case 12: gameStatus = LOST; money=0; pointField.setText( "" ); wonMoney.setText(""+money); rollButton.setEnabled(false); // clear point field break; // remember point default: gameStatus = CONTINUE; myPoint = sumOfDice; pointField.setText( Integer.toString( myPoint ) ); money=money-20; if(money<0) { money=0; wonMoney.setText(""+money); rollButton.setEnabled(false); } else wonMoney.setText(""+money); firstRoll = false; break; } // end switch structure } // end if structure body // subsequent roll of dice else { sumOfDice = rollDice(); // roll dice // determine game status if ( sumOfDice == myPoint ){ // win by making point gameStatus = WON; money=money+60; wonMoney.setText(""+money); } else if(sumOfDice == 7){ // lose by rolling 7 gameStatus = LOST; money=0; pointField.setText( "" ); wonMoney.setText(""+money); rollButton.setEnabled(false); } money=money-20; wonMoney.setText(""+money); if(money==0){ gameStatus = LOST; rollButton.setEnabled(false); } if(money<0) { money=0; wonMoney.setText(""+money); rollButton.setEnabled(false); } } // display message indicating game status displayMessage(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int roll() {\n int result = ThreadLocalRandom.current().nextInt(SIDES+1) + 1;// standard 1-7\n if(result == 7){ //LoadedDie 6 occurs twice as often\n return 6;\n } else{\n return result;\n }\n }", "public static int diceRoll() {\n Random roller =...
[ "0.7782089", "0.7557232", "0.74733657", "0.7438434", "0.7379827", "0.73787886", "0.73748946", "0.7347384", "0.7330954", "0.7300113", "0.7206466", "0.717639", "0.7137749", "0.71347624", "0.71315366", "0.71188426", "0.7096947", "0.7086374", "0.7085411", "0.7069055", "0.7068643"...
0.0
-1
end method actionPerformed roll dice, calculate sum and display results
public int rollDice() { int die1, die2, sum; // pick random die values die1 = 1 + ( int ) ( Math.random() * 6 ); die2 = 1 + ( int ) ( Math.random() * 6 ); sum = die1 + die2; // sum die values // display results die1Field.setText( Integer.toString( die1 ) ); die2Field.setText( Integer.toString( die2 ) ); sumField.setText( Integer.toString( sum ) ); return sum; // return sum of dice }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int rollDice() {\n\t\td1 = r.nextInt(6) + 1;\n\t\td2 = r.nextInt(6) + 1;\n\t\trepaint();\n\t\treturn d1 + d2;\n\t}", "private void rollButtonClicked()\n {\n try\n {\n //Retrieve the user's values from the input areas and use them to roll dice\n //then display the...
[ "0.73485994", "0.7126785", "0.70847934", "0.7040428", "0.6957334", "0.67824155", "0.674745", "0.67449296", "0.6719182", "0.67033535", "0.6668928", "0.6625324", "0.6587951", "0.6568244", "0.65185094", "0.65079075", "0.6499884", "0.64746916", "0.64534366", "0.6450396", "0.64430...
0.72825867
1
end method rollDice determine game status and display appropriate message in status bar
public void displayMessage() { // game should continue if ( gameStatus == CONTINUE ) showStatus( "Roll again." ); // game won or lost else { if ( gameStatus == WON ) showStatus( "Player wins. " + "Click Roll Dice to play again." ); else showStatus( "Player loses. " + "Click Roll Dice to play again." ); // next roll is first roll of new game firstRoll = true; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String play() \r\n { \r\n \r\n theDiceTotal = dice.roll();\r\n \r\n while ( theDiceTotal != 12 )\r\n { \r\n theDiceTotal = dice.roll();\r\n System.out.println( dice.getDie1FaceValue() + \" \" + dice.getDie2FaceValue() );\r\n count++;\r\n }\r\n ...
[ "0.69095564", "0.6858664", "0.6841514", "0.6841307", "0.6794609", "0.6690848", "0.6552816", "0.64861625", "0.6470997", "0.64689696", "0.63129103", "0.62816805", "0.62741417", "0.62662196", "0.6261108", "0.62480146", "0.6243115", "0.62372977", "0.62200594", "0.61900777", "0.61...
0.80144894
0
/ / Constructors /
public DirectedEdge(int from, int to, double weight) { this.from = from; this.to = to; this.weight = weight; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Constructor() {\r\n\t\t \r\n\t }", "public Constructor(){\n\t\t\n\t}", "public CyanSus() {\n\n }", "public Pitonyak_09_02() {\r\n }", "private TMCourse() {\n\t}", "public _355() {\n\n }", "public CSSTidier() {\n\t}", "public PSRelation()\n {\n }", "public RngObject() {\n\t\t\n\t}", "pu...
[ "0.84202886", "0.78166115", "0.71776414", "0.7029142", "0.6997788", "0.6988559", "0.698599", "0.69655824", "0.6958574", "0.69455236", "0.69264483", "0.69235736", "0.69148237", "0.6909453", "0.6896481", "0.6896198", "0.6878102", "0.6870602", "0.68672794", "0.6842882", "0.68406...
0.0
-1
/ / Overridden methods /
@Override public String toString() { return String.format("(%d->%d|%.6f)", from, to, weight); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n protected void prot() {\n }", "@Override\n\tpublic void anular() {\n\n\t}"...
[ "0.7075843", "0.7005523", "0.6970091", "0.6905572", "0.6882535", "0.68775666", "0.6806705", "0.6806705", "0.6767504", "0.6679509", "0.6675976", "0.66472864", "0.66090494", "0.6588188", "0.6588188", "0.65031534", "0.649997", "0.649704", "0.64943534", "0.6461663", "0.64387363",...
0.0
-1
/ / Getters /
public int from() { return from; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected void getData() {\n\t\t\n\t}", "@Override\n public void get() {}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void get() {\n\t\t\r\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n\tpublic void getData() {\n\t\t\n\t}", "public...
[ "0.6769337", "0.6713516", "0.6674307", "0.66010565", "0.6595861", "0.6408529", "0.62115395", "0.6206359", "0.61318505", "0.60977244", "0.6072681", "0.6060625", "0.60480505", "0.60480505", "0.6036608", "0.60152364", "0.6005706", "0.60056156", "0.59965944", "0.599505", "0.59653...
0.0
-1
Checks that a given value is with a range. For example, sanitizeUserArgs(17, 3, 5, 10) ensures that 17 is greater/equal than 3 5 and less/equal to 3 10.
public static long sanitizeUserArgs(String key, long valueTocheck, String baseKey, long baseValue, long minFactor, long maxFactor) { long minLimit = baseValue * minFactor; long maxLimit = baseValue * maxFactor; if (valueTocheck < minLimit) { LOG.warn( "{} value = {} is smaller than min = {} based on" + " the key value of {}, reset to the min value {}.", key, valueTocheck, minLimit, baseKey, minLimit); valueTocheck = minLimit; } else if (valueTocheck > maxLimit) { LOG.warn( "{} value = {} is larger than max = {} based on" + " the key value of {}, reset to the max value {}.", key, valueTocheck, maxLimit, baseKey, maxLimit); valueTocheck = maxLimit; } return valueTocheck; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean isInsideValidRange (int value)\r\n\t{\r\n\t\treturn (value > m_lowerBounds && value <= m_upperBounds);\r\n\t}", "public void rangeCheck(int value) throws RangeException {\n\tSystem.out.println(\"In rangeCheck, value: \" + value);\n\tif (value < min || value > max) {\n\t throw new RangeExceptio...
[ "0.6521457", "0.632887", "0.62761974", "0.61100256", "0.60182214", "0.5871236", "0.5792633", "0.5743226", "0.57373804", "0.5714461", "0.56903756", "0.5673145", "0.56323695", "0.5617121", "0.5616922", "0.56060046", "0.5570231", "0.55121017", "0.5487734", "0.54864144", "0.54592...
0.5994886
5
After starting an RPC server, updates configuration with the actual listening address of that server. The listening address may be different from the configured address if, for example, the configured address uses port 0 to request use of an ephemeral port.
public static InetSocketAddress updateRPCListenAddress( OzoneConfiguration conf, String rpcAddressKey, InetSocketAddress addr, RPC.Server rpcServer) { return updateListenAddress(conf, rpcAddressKey, addr, rpcServer.getListenerAddress()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void updateCustomServerAddress(String customServerAddress);", "public static InetSocketAddress updateListenAddress(OzoneConfiguration conf,\n String addressKey, InetSocketAddress addr, InetSocketAddress listenAddr) {\n InetSocketAddress updatedAddr = new InetSocketAddress(addr.getHostString(),\n l...
[ "0.6618078", "0.6319674", "0.6087453", "0.59616846", "0.59599453", "0.5864775", "0.58040076", "0.57007116", "0.5662221", "0.5640187", "0.5582859", "0.55760735", "0.5545038", "0.5514157", "0.5506268", "0.54818267", "0.54806495", "0.54666615", "0.5454032", "0.54387015", "0.5437...
0.71182185
0
After starting an server, updates configuration with the actual listening address of that server. The listening address may be different from the configured address if, for example, the configured address uses port 0 to request use of an ephemeral port.
public static InetSocketAddress updateListenAddress(OzoneConfiguration conf, String addressKey, InetSocketAddress addr, InetSocketAddress listenAddr) { InetSocketAddress updatedAddr = new InetSocketAddress(addr.getHostString(), listenAddr.getPort()); conf.set(addressKey, addr.getHostString() + ":" + listenAddr.getPort()); return updatedAddr; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static InetSocketAddress updateRPCListenAddress(\n OzoneConfiguration conf, String rpcAddressKey,\n InetSocketAddress addr, RPC.Server rpcServer) {\n return updateListenAddress(conf, rpcAddressKey, addr,\n rpcServer.getListenerAddress());\n }", "void updateCustomServerAddress(String c...
[ "0.6409295", "0.64029455", "0.6194837", "0.6188014", "0.6132964", "0.610483", "0.5989265", "0.588401", "0.58054435", "0.5718648", "0.57069254", "0.5687412", "0.5667794", "0.5638479", "0.55622065", "0.55021083", "0.5491638", "0.54397637", "0.5386724", "0.5373859", "0.53600776"...
0.671516
0
Releases a http connection if the request is not null.
public static void releaseConnection(HttpRequestBase request) { if (request != null) { request.releaseConnection(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void ensureConnectionRelease() {\n if (responseConnection != null) {\n responseConnection.releaseConnection();\n responseConnection = null;\n }\n }", "public static void closeHttpConn(){ \n\t\thttpUrl.disconnect(); \n\t}", "boolean releaseConnection(Connection c...
[ "0.7034775", "0.65474695", "0.6283731", "0.6031171", "0.5967445", "0.57027537", "0.57007486", "0.5630861", "0.5575894", "0.55758554", "0.55264485", "0.5499997", "0.54233295", "0.539096", "0.53852516", "0.53839976", "0.5378109", "0.5364044", "0.53406477", "0.5330735", "0.53267...
0.82346874
0
Get the location where SCM should store its metadata directories. Fall back to OZONE_METADATA_DIRS if not defined.
public static File getScmDbDir(ConfigurationSource conf) { File metadataDir = getDirectoryFromConfig(conf, ScmConfigKeys.OZONE_SCM_DB_DIRS, "SCM"); if (metadataDir != null) { return metadataDir; } LOG.warn("{} is not configured. We recommend adding this setting. " + "Falling back to {} instead.", ScmConfigKeys.OZONE_SCM_DB_DIRS, HddsConfigKeys.OZONE_METADATA_DIRS); return getOzoneMetaDirPath(conf); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static File getOzoneMetaDirPath(ConfigurationSource conf) {\n File dirPath = getDirectoryFromConfig(conf,\n HddsConfigKeys.OZONE_METADATA_DIRS, \"Ozone\");\n if (dirPath == null) {\n throw new IllegalArgumentException(\n HddsConfigKeys.OZONE_METADATA_DIRS + \" must be defined.\");...
[ "0.7056067", "0.5869351", "0.58169454", "0.576889", "0.5726751", "0.57088673", "0.56834984", "0.56709296", "0.56601715", "0.56570816", "0.5633187", "0.55941063", "0.5558206", "0.5551663", "0.55261505", "0.5517616", "0.5492314", "0.5492111", "0.54910904", "0.54747415", "0.5473...
0.69186634
1
Utility method to retrieve the value of a key representing a DB directory and create a File object for the directory. The method also sets the directory permissions based on the configuration.
public static File getDirectoryFromConfig(ConfigurationSource conf, String key, String componentName) { final Collection<String> metadirs = conf.getTrimmedStringCollection(key); if (metadirs.size() > 1) { throw new IllegalArgumentException( "Bad config setting " + key + ". " + componentName + " does not support multiple metadata dirs currently"); } if (metadirs.size() == 1) { final File dbDirPath = new File(metadirs.iterator().next()); if (!dbDirPath.mkdirs() && !dbDirPath.exists()) { throw new IllegalArgumentException("Unable to create directory " + dbDirPath + " specified in configuration setting " + key); } try { Path path = dbDirPath.toPath(); // Fetch the permissions for the respective component from the config String permissionValue = getPermissions(key, conf); String symbolicPermission = getSymbolicPermission(permissionValue); // Set the permissions for the directory Files.setPosixFilePermissions(path, PosixFilePermissions.fromString(symbolicPermission)); } catch (Exception e) { throw new RuntimeException("Failed to set directory permissions for " + dbDirPath + ": " + e.getMessage(), e); } return dbDirPath; } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public File getDirectoryValue();", "public File getFileForKey(String key) {\n\t\treturn new File(mRootDirectory, getFilenameForKey(key));\n\t}", "public static File getDBPath(ConfigurationSource conf, String key) {\n final File dbDirPath =\n getDirectoryFromConfig(conf, key, \"OM\");\n if (dbDirPa...
[ "0.6521722", "0.5940173", "0.5870977", "0.5615353", "0.55935526", "0.5550648", "0.5548779", "0.55259603", "0.5520779", "0.55110174", "0.5481374", "0.54807466", "0.5450959", "0.54431456", "0.54326546", "0.54251", "0.54060376", "0.5402351", "0.53878635", "0.53166", "0.5285281",...
0.6327838
1
Fetches the symbolic representation of the permission value.
private static String getSymbolicPermission(String permissionValue) { if (isSymbolic(permissionValue)) { // For symbolic representation, use it directly return permissionValue; } else { // For octal representation, convert it to FsPermission object and then // to symbolic representation short octalPermission = Short.parseShort(permissionValue, 8); FsPermission fsPermission = new FsPermission(octalPermission); return fsPermission.toString(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getPermission();", "public String getPermission()\r\n {\r\n return permission;\r\n }", "@Column(name = \"PERMISSION_VALUE\")\n\t@AccelaGenerator(generatorClass=\"com.accela.aa.datamanager.service.FilterScreenPermissionModelGeneratorImpl\")\t\n\tpublic String getPermissionValue()\n\t{\n\t\tr...
[ "0.68243855", "0.65004975", "0.6343013", "0.6302105", "0.60491794", "0.5967524", "0.59320426", "0.5925", "0.5914742", "0.5870802", "0.58689463", "0.5828055", "0.5735895", "0.5724262", "0.57227266", "0.5721026", "0.5607469", "0.55033946", "0.5383068", "0.53479", "0.5327199", ...
0.8042788
0
Checks if the permission value is in symbolic representation.
private static boolean isSymbolic(String permissionValue) { return permissionValue.matches(".*[rwx].*"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static String getSymbolicPermission(String permissionValue) {\n if (isSymbolic(permissionValue)) {\n // For symbolic representation, use it directly\n return permissionValue;\n } else {\n // For octal representation, convert it to FsPermission object and then\n // to symbolic repr...
[ "0.6917892", "0.6354013", "0.53728884", "0.5228638", "0.520601", "0.5184916", "0.5161105", "0.51577336", "0.51382935", "0.51179", "0.51034164", "0.50878733", "0.49814332", "0.4950945", "0.4933385", "0.49269083", "0.4898622", "0.48863727", "0.4881737", "0.48422748", "0.4828379...
0.75516975
0
Retrieves the permissions' configuration value for a given config key.
public static String getPermissions(String key, ConfigurationSource conf) { String configName = ""; // Assign the appropriate config name based on the KEY if (key.equals(ReconConfigKeys.OZONE_RECON_DB_DIR)) { configName = ReconConfigKeys.OZONE_RECON_DB_DIRS_PERMISSIONS; } else if (key.equals(ScmConfigKeys.OZONE_SCM_DB_DIRS)) { configName = ScmConfigKeys.OZONE_SCM_DB_DIRS_PERMISSIONS; } else if (key.equals(OzoneConfigKeys.OZONE_OM_DB_DIRS)) { configName = OzoneConfigKeys.OZONE_OM_DB_DIRS_PERMISSIONS; } else { // If the permissions are not defined for the config, we make it fall // back to the default permissions for metadata files and directories configName = OzoneConfigKeys.OZONE_METADATA_DIRS_PERMISSIONS; } String configValue = conf.get(configName); if (configValue != null) { return configValue; } throw new IllegalArgumentException( "Invalid configuration value for key: " + key); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String readConfigValue(Context context, String key) {\n Resources resources = context.getResources();\n try {\n InputStream inputStream = resources.openRawResource(R.raw.config);\n Properties properties = new Properties();\n properties.load(inputStream);...
[ "0.6631019", "0.6566701", "0.65292794", "0.62811434", "0.6114825", "0.610586", "0.60497254", "0.6021565", "0.60186195", "0.5938924", "0.5853796", "0.5800617", "0.5737364", "0.5614242", "0.5602981", "0.5582537", "0.55740094", "0.5543293", "0.5542525", "0.5531192", "0.5507144",...
0.7040526
0
Checks and creates Ozone Metadir Path if it does not exist.
public static File getOzoneMetaDirPath(ConfigurationSource conf) { File dirPath = getDirectoryFromConfig(conf, HddsConfigKeys.OZONE_METADATA_DIRS, "Ozone"); if (dirPath == null) { throw new IllegalArgumentException( HddsConfigKeys.OZONE_METADATA_DIRS + " must be defined."); } return dirPath; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void checkIfLocationExists() {\n try {\n File file = new File(saveLocation);\n if(!file.exists()) file.mkdirs();\n } catch (Exception e) {\n log.error(e.getMessage(), e);\n }\n }", "@Test\n public void testStorageLocationMkdirs() throws Exceptio...
[ "0.6067344", "0.59779185", "0.58449054", "0.56358093", "0.5578773", "0.54574424", "0.53844655", "0.5360667", "0.5259696", "0.52526706", "0.5242169", "0.52229196", "0.5222201", "0.5220579", "0.51763004", "0.5173426", "0.5169468", "0.51494557", "0.5138419", "0.5104063", "0.5090...
0.45820716
80
Returns with the service specific metadata directory. If the directory is missing the method tries to create it.
public static File getDBPath(ConfigurationSource conf, String key) { final File dbDirPath = getDirectoryFromConfig(conf, key, "OM"); if (dbDirPath != null) { return dbDirPath; } LOG.warn("{} is not configured. We recommend adding this setting. " + "Falling back to {} instead.", key, HddsConfigKeys.OZONE_METADATA_DIRS); return ServerUtils.getOzoneMetaDirPath(conf); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createServiceDirectory(String serviceID){\n \n String changedServiceID = serviceID.replaceAll(\"\\\\.\",\"&\");\n changedServiceID = changedServiceID.replaceAll(\":\",\"&\");\n \n //Create directory to store output files of service\n File dir = new File(sessi...
[ "0.5902124", "0.5843253", "0.56922114", "0.568207", "0.5616287", "0.5390659", "0.5362495", "0.5342333", "0.53312415", "0.5289763", "0.5281669", "0.52684313", "0.5232309", "0.52306014", "0.5227712", "0.52035975", "0.5192026", "0.51340216", "0.5129042", "0.51287836", "0.5123939...
0.0
-1
POST /forumroommessages : Create a new forumRoomMessage.
@PostMapping("/forum/messages") @Timed public ResponseEntity<ForumRoomMessage> createForumRoomMessage(@Valid @RequestBody ForumMessageDto fm) throws URISyntaxException { LOGGER.debug("REST request to save ForumRoomMessage : {}"); ForumRoomMessage forumRoomMessage = new ForumRoomMessage(); forumRoomMessage.setMessage(fm.getMessage()); if (forumRoomMessage.getId() != null) { return ResponseEntity.badRequest().headers(HeaderUtil.createFailureAlert("forumRoomMessage", "idexists", "A new forumRoomMessage cannot already have an ID")).body(null); } if (forumRoomMessage.getMessageDatetime() == null) { forumRoomMessage.setMessageDatetime(ZonedDateTime.now()); } if (forumRoomMessage.getUser() == null) { User user = userRepository.findByUserIsCurrentUser(); forumRoomMessage.setUser(user); } ForumRoom forumRoom = forumRoomRepository.findOne(fm.getCourseID()); forumRoomMessage.setForumRoom(forumRoom); ForumRoomMessage result = forumRoomMessageRepository.save(forumRoomMessage); return ResponseEntity.created(new URI("/api/forum-room-messages/" + result.getId())) .headers(HeaderUtil.createEntityCreationAlert("forumRoom", result.getId().toString())).body(result); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@PostMapping(\"/rooms\")\n public Room createRoom (\n @Valid\n @RequestBody Room room){\n return roomRepository.save(room);\n }", "@PostMapping(\"/chat-rooms\")\n public ResponseEntity<ChatRoom> createChatRoom(@RequestBody ChatRoom chatRoom) throws URISyntaxException {\n ...
[ "0.6083494", "0.60045105", "0.5987288", "0.58541584", "0.5851931", "0.5778985", "0.5754994", "0.57147145", "0.5694147", "0.56755143", "0.5651011", "0.55868495", "0.55750644", "0.5531131", "0.5415439", "0.5351009", "0.5273951", "0.5263897", "0.5243514", "0.52353346", "0.522412...
0.7877846
0
DELETE /forumroommessages/:id : delete the "id" forumRoomMessage.
@DeleteMapping("/forum/message/{id}") @Timed public ResponseEntity<Void> deleteForumRoomMessage(@PathVariable Long id) { LOGGER.debug("REST request to delete ForumRoomMessage : {}", id); User user = userRepository.findByUserIsCurrentUser(); ForumRoomMessage message = forumRoomMessageRepository.findOne(id); if ("admin".contentEquals(user.getLogin()) || message.getUser().equals(user)) { forumRoomMessageRepository.delete(id); } return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert("forumRoomMessage", id.toString())) .build(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean deleteMessage(int roomId, long messageId) throws RoomNotFoundException, RoomPermissionException, IOException;", "@Override\n\tpublic void delMessage(String id) {\n\t\t messageDAO.deleteMessage(id);\n\t\n\t}", "@DeleteMapping(\"/chat-messages/{id}\")\n @Timed\n public ResponseEntity<Void> deleteCh...
[ "0.780749", "0.7434069", "0.7354817", "0.73287034", "0.7307741", "0.72329307", "0.72073114", "0.70582026", "0.7038991", "0.68547976", "0.68181235", "0.68065023", "0.6701734", "0.6698212", "0.6681966", "0.6653636", "0.6626339", "0.657553", "0.6567954", "0.6546751", "0.6491888"...
0.87128854
0
GET /users/:login : get the "login" user.
@GetMapping("/my-profile/{login:" + Constants.LOGIN_REGEX + "}") @Timed public ResponseEntity<ManagedUserVM> getUser(@PathVariable String login) { LOGGER.debug("REST request to get User : {}", login); return userService.getUserWithAuthoritiesByLogin(login).map(ManagedUserVM::new) .map(managedUserVM -> new ResponseEntity<>(managedUserVM, HttpStatus.OK)) .orElse(new ResponseEntity<>(HttpStatus.NOT_FOUND)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public User findUserByLogin(final String login);", "User getUserByLogin(String login);", "public User loadUserByLogin(String login);", "User findUserByLogin(String login);", "public User getUser(String login){\n\t\t\n\t\treturn users.get(login);\n\t}", "public EOSUser findUser(String login) throws EOSNot...
[ "0.7913347", "0.7766262", "0.7659154", "0.7535295", "0.7470831", "0.7455487", "0.73024863", "0.72560763", "0.70509386", "0.703621", "0.70163596", "0.6998938", "0.6931702", "0.6925534", "0.6894366", "0.67048043", "0.66929764", "0.6567435", "0.65373814", "0.65130156", "0.646617...
0.7413561
6
The shared context must be created on the main thread.
void start() throws LWJGLException { this.drawable = getDrawable(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Context getContextAsync() {\n return getActivity() == null ? IotSensorsApplication.getApplication().getApplicationContext() : getActivity();\n }", "private void setWSClientToKeepSeparateContextPerThread() {\n ((BindingProvider) movilizerCloud).getRequestContext()\n .put(TH...
[ "0.6291447", "0.62389153", "0.6186917", "0.61345136", "0.60378337", "0.60072064", "0.5994177", "0.58811414", "0.58657324", "0.58363026", "0.58217895", "0.5811627", "0.5811627", "0.5747953", "0.5736435", "0.5736435", "0.5691615", "0.56588674", "0.56588674", "0.56588674", "0.56...
0.0
-1
TODO Autogenerated method stub
private static void mergeSortedArrays(int[] arr1, int[] arr2, int length1, int length2) { int j = 0; StringBuilder sb = new StringBuilder(); if (length1 > length2) { for (int i = length1 - length2; i < length1; i++) { arr1[i] = arr2[j++]; } Arrays.sort(arr1); for (int i = 0; i < arr1.length; i++) { sb.append(arr1[i] + " "); } } else { for (int i = length2 - length1; i < length2; i++) { arr2[i] = arr1[j++]; } Arrays.sort(arr2); for (int i = 0; i < arr2.length; i++) { sb.append(arr2[i] + " "); } } System.out.println(sb.toString()); }
{ "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 more refactoring of below methods
private static StringBuffer addOption(StringBuffer html, DataObject o, String ln, String vn, Object val) { Object v = o.meanFieldFilter(vn) ? o.get(vn) : o.get(ln); boolean match = checkMatch(v, val); return html.append("<option value=\"").append(v == null ? "" : HttpUtils.htmlEncode(v.toString())) .append(match ? "\" selected>" : "\">") .append(o.get(ln) == null ? "" : HttpUtils.htmlEncode(o.get(ln).toString(), true, false)) .append("</option>"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n protected void getExras() {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tprotected void logic() {...
[ "0.55076724", "0.5349161", "0.53453046", "0.5307524", "0.5278654", "0.5254519", "0.52384686", "0.5205076", "0.5185045", "0.51732767", "0.51341164", "0.5109728", "0.51067334", "0.5104516", "0.51043075", "0.5058687", "0.5057144", "0.50508094", "0.50308627", "0.50308627", "0.502...
0.0
-1
v list value, val field value
private static boolean checkMatch(Object v, Object val) { Class type = val == null ? null : val.getClass(); if (v != null && type != null) { if (type.isArray()) { String norm = type.getComponentType() != v.getClass()?v.toString():null; // TODO give a warning that String conv is used //System.err.printf("COmp %s, %s, -> %s%n", type.getComponentType(), v.getClass(), norm); if (val instanceof Object[]) for (Object e : (Object[]) val) { if (norm != null) { if (norm.equals(e.toString())) return true; } else if (v.equals(e)) { return true; } } else if (val instanceof int[]) for (int e : (int[]) val) { if (e == ((Number) v).intValue()) { return true; } } else if (val instanceof char[] && v instanceof String ) for (char c : (char[]) val) { if (c == ((String)v).charAt(0)) { return true; } } } else if (Collection.class.isAssignableFrom(type)) { for (Object e : (Collection) val) { if (v.equals(e)) { return true; } } } else { if (val.equals(v)) return true; if (val instanceof String) return val.equals(v.toString()); else if (v instanceof String) { String sv = (String) v; if (sv.length() > 0) { if (val instanceof Number) return val.equals(new Integer((String) v)); else if (val instanceof Character) return ((Character) val).charValue() == sv.charAt(0); else if (type.isEnum()) { return val.toString().equals(v); } } } } } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Listof<V> vals();", "public Object getVal()\n { return val; }", "private int cbVal(String[][] list, int val) {\r\n return parseInt(list[val][0]);\r\n }", "public void vValInTable(String objLoc, String[] val, String browser) {\r\n\t\tselectMaxSizeinTable(\"job_show_res_id\", browser);\r\n\t\tselUti...
[ "0.6548616", "0.6051288", "0.6041164", "0.60237145", "0.599306", "0.599306", "0.599306", "0.5988062", "0.59791756", "0.5969981", "0.59482324", "0.58997273", "0.5889391", "0.58833176", "0.58565366", "0.58536226", "0.58058715", "0.57846737", "0.5773803", "0.5730237", "0.5699262...
0.0
-1
Test of isNotConstructorInvocation method, of class MethodInvoktion.
@Test public void testIsNotConstructorInvocation() { MethodInvokation init = new MethodInvokation(null,"<init>",null,null,null,null); assertFalse("Standard constructor", init.isNotConstructorInvocation() ); MethodInvokation clinit = new MethodInvokation(null,"<clinit>",null,null,null,null); assertFalse("Static constructor", clinit.isNotConstructorInvocation() ); MethodInvokation ordinaryMethod = new MethodInvokation(null,"ordinary",null,null,null,null); assertTrue("Ordinary method", ordinaryMethod.isNotConstructorInvocation() ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected boolean checkConstructorInvocation(AnnotatedDeclaredType dt,\n AnnotatedExecutableType constructor, NewClassTree src) {\n return true;\n }", "@Test( expected = IllegalStateException.class )\n\tpublic void constructorShouldNotBeInstantiable() {\n\t\tnew ReflectionUtil...
[ "0.6575212", "0.6116202", "0.5947082", "0.59009415", "0.57496846", "0.5746165", "0.5686494", "0.5657204", "0.5636377", "0.56129014", "0.5542732", "0.5443215", "0.5432421", "0.5414781", "0.53937775", "0.5390605", "0.53816336", "0.5368992", "0.5366429", "0.53659576", "0.5359414...
0.8294858
0
not comprehensive obviously, more doing this for superrares rather than the general case.
public String getRelicTierString(AbstractRelic.RelicTier tier){ switch (tier){ case BOSS: return uiStrings.TEXT[0]; case SPECIAL: return uiStrings.TEXT[1]; case SHOP: return uiStrings.TEXT[2]; } return ""; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tpublic int sub() {\n\t\treturn 0;\r\n\t}", "protected boolean func_70814_o() { return true; }", "protected abstract Set method_1559();", "public void method_4270() {}", "...
[ "0.5924219", "0.58822036", "0.5855301", "0.5821847", "0.5653399", "0.54316413", "0.5425359", "0.54221755", "0.53918797", "0.53542274", "0.5341872", "0.5324965", "0.5324285", "0.5307772", "0.53004646", "0.5299797", "0.529376", "0.5270741", "0.5257601", "0.5255707", "0.52491736...
0.0
-1
/ hide animated images of scada
static void SetUpScadaAndControllers() { pumpForSolutionOn.setVisible(false); pumpForTitrationOn.setVisible(false); mixerOn.setVisible(false); valveTitrationOpened.setVisible(false); valveSolutionOpened.setVisible(false); valveWaterOpened.setVisible(false); valveOutOpened.setVisible(false); frame.addWindowListener(new WindowAdapter() { @Override public void windowClosing(WindowEvent e) { System.out.println("connection closed"); InitialClass.arduino.closeConnection(); } }); log.setFont(fontMarker); log.setRows(10); log.setPreferredSize(new Dimension(200, 400)); log.setBackground(new Color(19, 28, 48)); log.setForeground(Color.WHITE); visualPH.setBounds(460, 90, 150, 30); visualPH.setText("_.__pH"); visualPH.setForeground(Color.WHITE); visualPH.setFont(new Font("Montserrat", Font.PLAIN, 32)); JToggleButton titrationStart = new JToggleButton(); titrationStart.setPreferredSize(new Dimension(200, 30)); titrationStart.setText("Автоматическое измерение"); titrationStart.addItemListener(ev -> { if (ev.getStateChange() == ItemEvent.SELECTED) { Chart.series.clear(); Chart.secondSeries.clear(); Chart.dot.clear(); titrationStart.setText("В процессе"); new Thread(auto).start(); } else if (ev.getStateChange() == ItemEvent.DESELECTED) { forScanner = false; log.append("Завершение" + "\n"); } }); JButton washing = new JButton(); washing.setPreferredSize(new Dimension(200, 30)); washing.setText("Промывка"); washing.addActionListener(e -> { washing.setText("В процессе"); new Thread(new Flushing()).start(); washing.setText("Промывка"); }); JButton handMode = new JButton(); handMode.setPreferredSize(new Dimension(200, 30)); handMode.setText("Начать ручной режим"); handMode.addActionListener(e -> { if (handMode.getText().equals("Начать ручной режим")) { handMode.setText("Включен ручной режим !"); titrationStart.setEnabled(false); washing.setEnabled(false); Chart.series.clear(); Chart.secondSeries.clear(); Chart.dot.clear(); forScanner = true; new Thread(listeningThe_pH).start(); } else if (handMode.getText().equals("Включен ручной режим !")) { forScanner = false; titrationStart.setEnabled(true); washing.setEnabled(true); log.append("Ручной режим отключен\n"); handMode.setText("Начать ручной режим"); } }); JPanel flaskLevel = new JPanel(); flaskLevel.setBounds(225, 200, 200, 200); flaskLevel.setBackground(Color.orange); /* *Setting SCADA layered window */ scada.setPreferredSize(new Dimension(620, 400)); scada.add(flaskLevel, 1); scada.add(mixerLayer, 2); scada.add(waterTube, 3); scada.add(pumpForTitration, 4); scada.add(pumpForSolution, 5); scada.add(pumpForTitrationOn, 6); scada.add(pumpForSolutionOn, 7); scada.add(mixerOn, 8); scada.add(valveTitrationClosed, 9); scada.add(valveTitrationOpened, 10); scada.add(valveSolutionClosed, 11); scada.add(valveSolutionOpened, 12); scada.add(valveOutClosed, 13); scada.add(valveOutOpened, 14); scada.add(valveWaterClosed, 15); scada.add(valveWaterOpened, 16); scada.add(visualPH, 17); result.setPreferredSize(new Dimension(200, 50)); result.setText("0.00 ml"); result.setFont(new Font("Montserrat", Font.PLAIN, 32)); result.setForeground(Color.WHITE); panelRightTop.setPreferredSize(new Dimension(200, 75)); panelRightTop.add(titrationStart); panelRightTop.add(washing); panelRightTop.setBackground(new Color(10, 70, 90)); JLabel mode = new JLabel("Ручной режим"); mode.setForeground(Color.WHITE); mode.setFont(fontMarker); panelRightBot.setLayout(new FlowLayout()); panelRightBot.setPreferredSize(new Dimension(200, 325)); panelRightBot.setBackground(new Color(19, 28, 48)); panelRightBot.add(mode); panelRightBot.add(handMode); panelRightBot.add(addToggle("Помпа раствора", '5', '4', pumpForSolutionOn)); panelRightBot.add(addToggle("Помпа титранта", '3', '2', pumpForTitrationOn)); panelRightBot.add(addToggle("Клапан для воды", 'D', 'C', valveWaterOpened)); panelRightBot.add(addToggle("Клапан для раствора", '9', '8', valveSolutionOpened)); panelRightBot.add(addToggle("Клапан для титранта", 'B', 'A', valveTitrationOpened)); panelRightBot.add(addToggle("Клапан для слива", '1', '0', valveOutOpened)); panelRightBot.add(addToggle("Мешалка", '7', '6', mixerOn)); panelRightBot.add(addToggle("Датчик", 'Y', 'X')); panelRightBot.add(result); panelRight.setLayout(new BorderLayout()); panelRight.setPreferredSize(new Dimension(200, 400)); panelRight.add(panelRightBot, BorderLayout.CENTER); panelRight.add(panelRightTop, BorderLayout.NORTH); panelRight.setBackground(new Color(19, 28, 48)); panel.setLayout(new BorderLayout()); panel.setBackground(new Color(19, 28, 48)); panel.add(scada, BorderLayout.WEST); panel.add(panelRight, BorderLayout.CENTER); panel.add(log, BorderLayout.EAST); panelRightTop.setLayout(new FlowLayout()); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setMinimumSize(new Dimension(850, 500)); frame.add(panel); frame.pack(); frame.setVisible(true); frame.setLocationRelativeTo(null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void hidePics(){\n\t\t\tfor (int i = 0; i < 3; i++)\n\t\t\t\tfor (int j = 0; j < 3; j++)\n\t\t\t\t\tpics[i][j].setVisible(false);\n\t\t}", "Animation getHideAnimation();", "private void fadeOutAndHideView(final MaterialCardView img)\n {\n Animation fadeOut = new AlphaAnimation(1, 0);\n ...
[ "0.69172984", "0.68315685", "0.6752849", "0.66134715", "0.6590342", "0.65486926", "0.6542631", "0.65048087", "0.64571345", "0.6429833", "0.64159656", "0.64019614", "0.63632655", "0.6359731", "0.6302152", "0.6300949", "0.6278243", "0.6260043", "0.62591034", "0.6240536", "0.620...
0.0
-1
/ close all valve and make motors off
private static void setNormalState() { InitialClass.arduino.serialWrite('0'); InitialClass.arduino.serialWrite('6'); InitialClass.arduino.serialWrite('2'); InitialClass.arduino.serialWrite('8'); InitialClass.arduino.serialWrite('C'); InitialClass.arduino.serialWrite('A'); InitialClass.arduino.serialWrite('4'); /// hide animated images of scada pumpForSolutionOn.setVisible(false); pumpForTitrationOn.setVisible(false); mixerOn.setVisible(false); valveTitrationOpened.setVisible(false); valveSolutionOpened.setVisible(false); valveWaterOpened.setVisible(false); valveOutOpened.setVisible(false); log.append("Клапана закрыты\nдвигатели выключены\n"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void stopMotors() {\n pidDrive.disable();\n pidRotate.disable();\n robot.rightDrive.setPower(0);\n robot.leftDrive.setPower(0);\n }", "public void stopMotors() {\n\t\tRobotMap.frontLeft.set(0);\n\t\tRobotMap.backLeft.set(0);\n\t\tRobotMap.frontRight.set(0);\n\t\tRobotMap.backRight.set(0);\n\...
[ "0.7290732", "0.7132945", "0.7047432", "0.6957313", "0.68567234", "0.6825478", "0.6823482", "0.67682046", "0.6688237", "0.653028", "0.6488791", "0.64844686", "0.6378069", "0.63758016", "0.6349449", "0.6348743", "0.63198274", "0.63087755", "0.6288663", "0.6246145", "0.62439275...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { for (int i = 9; i >= 1; --i) { for (int j = 9; j > 2; j--) System.out.printf("%3d X %d = %3d ", j, i, j*i); System.out.println(); } }
{ "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
Test of getlibrary method, of class SongLibrary.
@Test public void testGetlibrary() { Song song1 = new Song("1", "titre1", "artiste1", "album1", "1", new LinkedList<String>(), new HashMap<String,Rights>()); Song song2 = new Song("2", "titre2", "artiste2", "album2", "2", new LinkedList<String>(), new HashMap<String,Rights>()); ArrayList<Song> songs = new ArrayList<>(); songs.add(song1); songs.add(song2); SongLibrary library = new SongLibrary(songs); ArrayList<Song> expResult = songs; ArrayList<Song> result = library.getlibrary(); assertEquals(expResult, result); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testGetSong() {\n\n Song song1 = new Song(\"1\", \"titre1\", \"artiste1\", \"album1\", \"1\", new LinkedList<String>(), new HashMap<String,Rights>());\n Song song2 = new Song(\"2\", \"titre2\", \"artiste2\", \"album2\", \"2\", new LinkedList<String>(), new HashMap<String,Rights...
[ "0.73402524", "0.71173936", "0.68020666", "0.6476109", "0.6423278", "0.6395376", "0.6353783", "0.6353757", "0.62539226", "0.6130649", "0.60939705", "0.60775757", "0.6034604", "0.6029112", "0.59622836", "0.5931472", "0.5908417", "0.5878085", "0.58764", "0.58705485", "0.5867594...
0.75740623
0
Test of setlibrary method, of class SongLibrary.
@Test public void testSetlibrary() { Song song1 = new Song("1", "titre1", "artiste1", "album1", "1", new LinkedList<String>(), new HashMap<String,Rights>()); Song song2 = new Song("2", "titre2", "artiste2", "album2", "2", new LinkedList<String>(), new HashMap<String,Rights>()); ArrayList<Song> songs = new ArrayList<>(); songs.add(song1); songs.add(song2); SongLibrary library = new SongLibrary(songs); library.setlibrary(new ArrayList<Song>()); assertTrue(library.getlibrary().isEmpty()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testAddSong() {\n\n Song song1 = new Song(\"1\", \"titre1\", \"artiste1\", \"album1\", \"1\", new LinkedList<String>(), new HashMap<String,Rights>());\n ArrayList<Song> songs = new ArrayList<>();\n songs.add(song1);\n SongLibrary library = new SongLibrary(songs);\...
[ "0.67032075", "0.6700526", "0.6506099", "0.6469011", "0.64477015", "0.6315573", "0.629337", "0.61330134", "0.6133007", "0.6091552", "0.60277593", "0.5975028", "0.5895823", "0.58368045", "0.5776639", "0.57290804", "0.57166344", "0.5659335", "0.56528646", "0.56376415", "0.56266...
0.79407716
0
Test of islocal method, of class SongLibrary.
@Test public void testIslocal() { Song song1 = new Song("1", "titre1", "artiste1", "album1", "1", new LinkedList<String>(), new HashMap<String,Rights>()); Song song2 = new Song("2", "titre2", "artiste2", "album2", "2", new LinkedList<String>(), new HashMap<String,Rights>()); ArrayList<Song> songs = new ArrayList<>(); songs.add(song1); songs.add(song2); SongLibrary library = new SongLibrary(songs); String songId = "2"; boolean result = library.islocal(songId); assertTrue(result); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isLocal();", "public boolean isLocal();", "public boolean _is_local() {\n throw new NO_IMPLEMENT(reason);\n }", "public boolean isLocal()\n {\n return true;\n }", "public boolean isItemLocal ();", "@Override\n\tpublic boolean isLocal() {\n\t\treturn heldObj.isLocal();\n\t}"...
[ "0.7108121", "0.7097227", "0.7090449", "0.6926728", "0.6811906", "0.6631989", "0.6555892", "0.6497608", "0.63174444", "0.6310645", "0.62809336", "0.62338805", "0.6133516", "0.610973", "0.58902043", "0.5828328", "0.57510215", "0.5649702", "0.56347036", "0.5610298", "0.5587448"...
0.78496104
0
Test of getSong method, of class SongLibrary.
@Test public void testGetSong() { Song song1 = new Song("1", "titre1", "artiste1", "album1", "1", new LinkedList<String>(), new HashMap<String,Rights>()); Song song2 = new Song("2", "titre2", "artiste2", "album2", "2", new LinkedList<String>(), new HashMap<String,Rights>()); ArrayList<Song> songs = new ArrayList<>(); songs.add(song1); songs.add(song2); SongLibrary library = new SongLibrary(songs); String songId = "2"; Song result = library.getSong(songId); assertTrue(result.getTitle().equals("titre2")); assertTrue(result.getAlbum().equals("album2")); assertTrue(result.getArtist().equals("artiste2")); assertTrue(result.getSongId().equals("2")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ISong getSong();", "@Test\n public void testGetlibrary() {\n\n Song song1 = new Song(\"1\", \"titre1\", \"artiste1\", \"album1\", \"1\", new LinkedList<String>(), new HashMap<String,Rights>());\n Song song2 = new Song(\"2\", \"titre2\", \"artiste2\", \"album2\", \"2\", new LinkedList<String>(), ...
[ "0.73736656", "0.73193014", "0.70786107", "0.6995954", "0.68267286", "0.67620814", "0.67438745", "0.66596097", "0.6526902", "0.64530265", "0.64441824", "0.6438061", "0.6417762", "0.6391431", "0.63861775", "0.63758683", "0.6319707", "0.63176686", "0.6277298", "0.62724817", "0....
0.83569765
0
Test of removeSong method, of class SongLibrary.
@Test public void testRemoveSong() { Song song1 = new Song("1", "titre1", "artiste1", "album1", "1", new LinkedList<String>(), new HashMap<String,Rights>()); Song song2 = new Song("2", "titre2", "artiste2", "album2", "2", new LinkedList<String>(), new HashMap<String,Rights>()); ArrayList<Song> songs = new ArrayList<>(); songs.add(song1); songs.add(song2); SongLibrary library = new SongLibrary(songs); String songId = "1"; library.removeSong(songId); assertFalse(library.islocal("1")); assertTrue(library.islocal("2")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void removeSong(Song song) {\n\n for(int ii = 0; ii < Library.size(); ii++) {\n if(Library.get(ii).equals(song)) {\n Library.remove(ii);\n }\n \n }\n }", "@Test\n public void removeSongsFromPlaylist() {\n onView(withId(R.id.playlistNav)).perform(click());\n onVi...
[ "0.75050527", "0.7038123", "0.69873106", "0.68942565", "0.68932056", "0.68235904", "0.67141855", "0.6683378", "0.6640663", "0.66367966", "0.6579286", "0.6578827", "0.6559862", "0.6556619", "0.65464085", "0.6533517", "0.6425825", "0.6425691", "0.6406224", "0.6344358", "0.62992...
0.83585924
0
Test of addSong method, of class SongLibrary.
@Test public void testAddSong() { Song song1 = new Song("1", "titre1", "artiste1", "album1", "1", new LinkedList<String>(), new HashMap<String,Rights>()); ArrayList<Song> songs = new ArrayList<>(); songs.add(song1); SongLibrary library = new SongLibrary(songs); Song song2 = new Song("2", "titre2", "artiste2", "album2", "2", new LinkedList<String>(), new HashMap<String,Rights>()); library.addSong(song2); assertTrue(library.islocal(song2.getSongId())); assertTrue(library.islocal(song1.getSongId())); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tpublic void testAddSong() {\r\n\t\taLibrary.addItem(song1);\r\n\t\tassertTrue(aLibrary.containsItem(song1));\r\n\t\tassertFalse(aLibrary.containsItem(song2));\r\n\t\tassertTrue(aList.getView().getItems().contains(song1));\r\n\t\tassertFalse(aList.getView().getItems().contains(song2));\r\n\t}", "@Test\...
[ "0.8297624", "0.8000273", "0.7720689", "0.751378", "0.73989826", "0.7374109", "0.7356319", "0.7254714", "0.72235966", "0.72146803", "0.7119925", "0.7072788", "0.70563036", "0.7028091", "0.7027161", "0.69766194", "0.6969006", "0.68257165", "0.67736036", "0.677328", "0.6722286"...
0.8106335
1
Test of addCategory method, of class SongLibrary.
@Test public void testAddCategory() { HashMap<String,Rights> rightsByCat1 = new HashMap<String,Rights>(); rightsByCat1.put("family", new Rights(true,true,false,false)); rightsByCat1.put("friends", new Rights(true,true,true,false)); HashMap<String,Rights> rightsByCat2 = new HashMap<String,Rights>(); rightsByCat2.put("judo", new Rights(true,true,true,true)); rightsByCat2.put("yoga", new Rights(false,false,false,false)); Song song1 = new Song("1", "titre1", "artiste1", "album1", "1", new LinkedList<String>(), rightsByCat1); Song song2 = new Song("2", "titre2", "artiste2", "album2", "2", new LinkedList<String>(), rightsByCat2); ArrayList<Song> songs = new ArrayList<>(); songs.add(song1); songs.add(song2); SongLibrary library = new SongLibrary(songs); String name = "karate"; Rights rights = new Rights(false, true, false, true); library.addCategory(name, rights); assertTrue(library.getSong("1").getRightsByCategory().containsKey("karate")); assertTrue(library.getSong("2").getRightsByCategory().containsKey("karate")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testAddCategory() {\n\t\tcategory = new Category();\n\t\tcategory.setName(CATEGORY_NAME);\n\t\tcategory.setDescription(\"A wonderful addition to your home. 80 inches\");\n\t\tcategory.setImageURL(\"CAT_1.png\");\n\n\t\tassertEquals(\"Successfully added a category to the database table\", true...
[ "0.75415826", "0.72309744", "0.7001131", "0.68364555", "0.68169665", "0.6758218", "0.6718675", "0.66798", "0.66250366", "0.65633", "0.65471023", "0.65072393", "0.6505745", "0.6453366", "0.6443752", "0.6437752", "0.64231896", "0.63986605", "0.6366913", "0.63422257", "0.6318958...
0.753448
1
Test of removeCategory method, of class SongLibrary.
@Test public void testRemoveCategory() { HashMap<String,Rights> rightsByCat1 = new HashMap<String,Rights>(); rightsByCat1.put("family", new Rights(true,true,false,false)); rightsByCat1.put("friends", new Rights(true,true,true,false)); HashMap<String,Rights> rightsByCat2 = new HashMap<String,Rights>(); rightsByCat2.put("judo", new Rights(true,true,true,true)); rightsByCat2.put("yoga", new Rights(false,false,false,false)); Song song1 = new Song("1", "titre1", "artiste1", "album1", "1", new LinkedList<String>(), rightsByCat1); Song song2 = new Song("2", "titre2", "artiste2", "album2", "2", new LinkedList<String>(), rightsByCat2); ArrayList<Song> songs = new ArrayList<>(); songs.add(song1); songs.add(song2); SongLibrary library = new SongLibrary(songs); library.removeCategory("family"); assertFalse(library.getSong("1").getRightsByCategory().containsKey("family")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void removeCategory(Category category);", "@Test\n public void deleteCategory_Deletes(){\n int returned = testDatabase.addCategory(category);\n testDatabase.deleteCategory(returned);\n assertEquals(\"deleteCategory - Deletes From Database\", null, testDatabase.getCategory(returned));\n ...
[ "0.7091058", "0.68884283", "0.6812946", "0.68081594", "0.67963827", "0.66529876", "0.6623845", "0.662384", "0.6605379", "0.65121496", "0.648185", "0.63555974", "0.6326503", "0.6310931", "0.62813675", "0.6273837", "0.6208637", "0.61131746", "0.6098811", "0.6083783", "0.5995846...
0.80132097
0
we do this before appending to ensure we can resetAndTruncate() safely if appending fails
public AbstractRowIndexEntry append(UnfilteredRowIterator partition) { DecoratedKey key = partition.partitionKey(); maybeReopenEarly(key); return writer.append(partition); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized void truncate()\n {\n clear(true);\n }", "public abstract void truncate();", "void appendFlushed() throws IOException {\n synchronized (flushed) {\n if (flushed.length() > 0) {\n final String s = flushed.toString();\n flus...
[ "0.6466578", "0.6300259", "0.62536913", "0.62531775", "0.6189889", "0.60035944", "0.5951594", "0.59052205", "0.5746187", "0.5743273", "0.556616", "0.55376583", "0.55360705", "0.5519365", "0.5494341", "0.5484297", "0.54163116", "0.5405447", "0.53840476", "0.53768075", "0.53483...
0.0
-1
attempts to append the row, if fails resets the writer position
public AbstractRowIndexEntry tryAppend(UnfilteredRowIterator partition) { writer.mark(); try { return append(partition); } catch (Throwable t) { writer.resetAndTruncate(); throw t; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int addRow(RowData row_data) throws IOException;", "public abstract void write(int rowCount) throws IOException;", "public void addRow () {\n CSVRow row = CSVRow.createEmptyLine(nbOfColumns, this);\n addRow(row);\n }", "public AbstractRowIndexEntry append(UnfilteredRowIterator partition)\n ...
[ "0.63634276", "0.6114051", "0.58704245", "0.5811566", "0.5809154", "0.57879436", "0.5705593", "0.55853134", "0.5582655", "0.5565844", "0.5533335", "0.5526625", "0.5521955", "0.5499361", "0.5455776", "0.5449951", "0.5446076", "0.54184943", "0.5362833", "0.5346679", "0.53403866...
0.6272787
1
Replace the readers we are rewriting with cloneWithNewStart, reclaiming any page cache that is no longer needed, and transferring any key cache entries over to the new reader, expiring them from the old. if reset is true, we are instead restoring the starts of the readers from before the rewriting began note that we replace an existing sstable with a new instance of the same sstable, the replacement sstable .equals() the old one, BUT, it is a new instance, so, for example, since we releaseReference() on the old one, the old instance will have reference count == 0 and if we were to start a new compaction with that old instance, we would get exceptions.
private void moveStarts(DecoratedKey lowerbound) { if (transaction.isOffline() || preemptiveOpenInterval == Long.MAX_VALUE) return; for (SSTableReader sstable : transaction.originals()) { // we call getCurrentReplacement() to support multiple rewriters operating over the same source readers at once. // note: only one such writer should be written to at any moment final SSTableReader latest = transaction.current(sstable); // skip any sstables that we know to already be shadowed if (latest.getFirst().compareTo(lowerbound) > 0) continue; if (lowerbound.compareTo(latest.getLast()) >= 0) { if (!transaction.isObsolete(latest)) transaction.obsolete(latest); continue; } if (!transaction.isObsolete(latest)) { DecoratedKey newStart = latest.firstKeyBeyond(lowerbound); assert newStart != null; SSTableReader replacement = latest.cloneWithNewStart(newStart); transaction.update(replacement, true); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void reset() throws IOException {\n\td.numObjectsCached = 0;\n\td.reset();\n }", "protected void reInitialize() {\n resetCurrent();\n incrementIterCount();\n setFirst(true);\n recoverRunningVersion();\n }", "public synchronized void reset() {\n ja...
[ "0.5813585", "0.57791084", "0.5759979", "0.5542434", "0.5521533", "0.55023485", "0.54581654", "0.5448816", "0.5415978", "0.53482634", "0.53389513", "0.53336626", "0.53291756", "0.5304669", "0.5283336", "0.5264579", "0.5215991", "0.5131456", "0.51209277", "0.51169556", "0.5115...
0.49898717
31
Finishes the new file(s) Creates final files, adds the new files to the Tracker (via replaceReader). We add them to the tracker to be able to get rid of the tmpfiles It is up to the caller to do the compacted sstables replacement gymnastics (ie, call TrackermarkCompactedSSTablesReplaced(..))
public List<SSTableReader> finish() { super.finish(); return finished(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void updateFiles() {\n\t}", "public void testUploadFinalFix() throws Exception {\r\n FileDataSource dataSource = new FileDataSource(\"test_files/stress.jar\");\r\n DataHandler dataHandler = new DataHandler(dataSource);\r\n\r\n Date startTime = new Date();\r\n for (int i = 0; i...
[ "0.5581605", "0.5553667", "0.5547657", "0.5471218", "0.53390425", "0.5284583", "0.5166222", "0.5148181", "0.5140314", "0.51019967", "0.510157", "0.5067807", "0.5040977", "0.50075746", "0.498112", "0.49798316", "0.49734336", "0.4973064", "0.4970294", "0.4969673", "0.49179134",...
0.0
-1
returns, in list form, the
public List<SSTableReader> finished() { assert state() == State.COMMITTED || state() == State.READY_TO_COMMIT; return preparedForCommit; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Object getTolist();", "public List getList();", "public List getList() {\n return Arrays.asList(toJavaArray()); \n }", "protected Object[] getList() {\n return list;\n }", "public List<Object> getList() {\n List<Object> returnList = new ArrayList<Object>();\n ListNode<St...
[ "0.7452146", "0.72320503", "0.69197404", "0.680418", "0.6773881", "0.6760308", "0.6742699", "0.6724129", "0.6710634", "0.67088825", "0.6662644", "0.6628441", "0.662652", "0.6625295", "0.66233855", "0.6606498", "0.6590855", "0.6588706", "0.6587276", "0.6587178", "0.65765053", ...
0.0
-1
Union two disjoint sets. Assume root1 and root2 are distinct and represent set names.
public void union( int root1, int root2 ) { s[ root2 ] = root1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void union(int root1, int root2) {\n // TODO: Implement the union-by-rank algorithm for disjoint set\n if (s[root1]>-1 || s[root2]>-1 ) throw new IllegalArgumentException(\"Impossible to union because one of the roots is already dependant\");\n if( s[root2] < s[root1]){ /...
[ "0.72132295", "0.7207892", "0.69132835", "0.6887533", "0.6689672", "0.66300493", "0.65516365", "0.6535653", "0.65267366", "0.6516833", "0.6516574", "0.6508973", "0.6492867", "0.6487883", "0.64484143", "0.63722026", "0.6368811", "0.63660526", "0.6322291", "0.62812567", "0.6231...
0.68228596
4
This configuration tuning is custom. You can tune every option, you may tune some of them, or you can create default configuration by ImageLoaderConfiguration.createDefault(this); method.
private static void initImageLoader(Context context) { ImageLoaderConfiguration.Builder config = new ImageLoaderConfiguration.Builder(context); config.threadPriority(Thread.NORM_PRIORITY - 2); config.denyCacheImageMultipleSizesInMemory(); config.diskCacheFileNameGenerator(new Md5FileNameGenerator()); config.diskCacheSize(50 * 1024 * 1024); // 50 MiB config.tasksProcessingOrder(QueueProcessingType.LIFO); config.writeDebugLogs(); // Remove for release app // Initialize ImageLoader with configuration. ImageLoader.getInstance().init(config.build()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void tuningInit() {\n\n }", "public void customConfig() {\n KConfig kConfig = new KConfig.KConfigBuilder()\n .heapRatio(85.0f) //heap occupied ration in percent, 85.0f means use 85% memory of max heap\n .rootDir(this.getCacheDir().getAbsolutePath()) /...
[ "0.6340863", "0.57906646", "0.5732757", "0.56633276", "0.56220955", "0.555943", "0.55333996", "0.5359088", "0.5340771", "0.5277873", "0.5272685", "0.52127135", "0.5180789", "0.51478416", "0.51308477", "0.5125148", "0.50945455", "0.5088088", "0.50816613", "0.5068659", "0.50407...
0.4649683
58
Get file format description
public String getDescription() { return "unknow"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String descFormat() {\n File f = cfg.getReadFromFile();\n if (f != null) {\n return f.getPath();\n }\n return StringUtils.defaultString(cfg.getName(), \"(unnamed)\");\n }", "FileFormat getFormat();", "public abstract String getFileFormatName();", "@UML(identi...
[ "0.7948487", "0.7896145", "0.78269976", "0.76726055", "0.7577224", "0.7570288", "0.7569642", "0.7419354", "0.7334358", "0.72026867", "0.7163753", "0.714408", "0.7119055", "0.70762223", "0.70335996", "0.6993277", "0.6984089", "0.697011", "0.697011", "0.697011", "0.69129926", ...
0.0
-1
Get file format extensions
public String[] getExtensions() { return new String[] {""}; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getFileExtension();", "String getFileExtension();", "public List<String> getFileExtensions()\n/* */ {\n/* 619 */ if ((useRegisteredSuffixPatternMatch()) && (this.contentNegotiationManager != null)) {\n/* 620 */ return this.contentNegotiationManager.getAllFileExtensions();\n/...
[ "0.8279938", "0.81749076", "0.78413826", "0.7659964", "0.76150393", "0.7575544", "0.7550702", "0.75277287", "0.75258994", "0.74914676", "0.7397777", "0.7382227", "0.72894603", "0.72850233", "0.7277344", "0.72606134", "0.7208824", "0.7202462", "0.7178234", "0.71606916", "0.711...
0.65961677
47
Return true if the specified extension matches this format. defaultValue is returned if no matching format is found.
public boolean matches(String ext) { for (String e : getExtensions()) if (e.equals(ext)) return true; return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static FileFormat getFileFormat(String ext, FileFormat defaultValue)\r\n {\r\n for (FileFormat ff : values())\r\n if (ff.matches(ext))\r\n return ff;\r\n\r\n return defaultValue;\r\n }", "public boolean isCorrectExtFormat( String extension ) {\n try {\n...
[ "0.6547131", "0.63951635", "0.63471", "0.61838263", "0.60225177", "0.6011618", "0.5997623", "0.599052", "0.57811385", "0.57693624", "0.5765339", "0.5635772", "0.5625048", "0.55754375", "0.5506156", "0.54921544", "0.54758126", "0.5434957", "0.5418954", "0.5368208", "0.5364854"...
0.6096749
4
Return the FileFormat corresponding to specified extension. defaultValue is returned if no matching format is found.
public static FileFormat getFileFormat(String ext, FileFormat defaultValue) { for (FileFormat ff : values()) if (ff.matches(ext)) return ff; return defaultValue; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static FileFormat getFileFormat(String ext)\r\n {\r\n return getFileFormat(ext, null);\r\n }", "public String getFormatByExtension(String fileExtenstion) throws DataServiceException{\r\n\t\tString format = \"\";\r\n\t\tformat = (String)queryForObject(\"document.query_format\",fileExtenstion);...
[ "0.77468646", "0.68009454", "0.67900586", "0.6550549", "0.6433195", "0.6427251", "0.6328408", "0.62659013", "0.61711335", "0.616439", "0.6160364", "0.60427374", "0.60290265", "0.6024517", "0.5949412", "0.5905413", "0.589898", "0.58799934", "0.58707947", "0.58652467", "0.58643...
0.8439037
0
Return the FileFormat corresponding to specified filename extension. null is returned if no matching format is found.
public static FileFormat getFileFormat(String ext) { return getFileFormat(ext, null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static FileFormat getFileFormat(String ext, FileFormat defaultValue)\r\n {\r\n for (FileFormat ff : values())\r\n if (ff.matches(ext))\r\n return ff;\r\n\r\n return defaultValue;\r\n }", "FileFormat getFormat();", "public String getFormatByExtension(String f...
[ "0.71281487", "0.68624574", "0.67299116", "0.66553515", "0.64478284", "0.62881815", "0.6268727", "0.60729516", "0.6055873", "0.60539055", "0.60518456", "0.6041887", "0.6038896", "0.6027975", "0.59457046", "0.5926292", "0.58362484", "0.5835345", "0.58292574", "0.5824065", "0.5...
0.7780848
0
Created by perusu on 20/11/17.
public interface IMainView extends IView{ void refreshRecyclerData(List<Data> newData); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "private void poetries() {\n\n\t}", "@Ove...
[ "0.60674584", "0.5982526", "0.59092855", "0.58232486", "0.58232486", "0.58200145", "0.58094853", "0.5797666", "0.57867175", "0.57721484", "0.5763906", "0.5752272", "0.5732841", "0.5729434", "0.57072806", "0.5693598", "0.56909823", "0.5688064", "0.567449", "0.5671644", "0.5659...
0.0
-1
The initialization method for the Source. The context contains all the Flume configuration info, and can be used to retrieve any configuration values necessary to set up the Source.
@Override public void configure(Context context) { consumerKey = context.getString(TwitterSourceConstant.CONSUMER_KEY); consumerSecret = context.getString(TwitterSourceConstant.CONSUMER_SECRET_KEY); accessToken = context.getString(TwitterSourceConstant.ACCESS_TOKEN); accessTokenSecret = context.getString(TwitterSourceConstant.ACCESS_TOKEN_SECRET); ConfigurationBuilder cb = new ConfigurationBuilder(); cb.setOAuthConsumerKey(consumerKey); cb.setOAuthConsumerSecret(consumerSecret); cb.setOAuthAccessToken(accessToken); cb.setOAuthAccessTokenSecret(accessTokenSecret); cb.setJSONStoreEnabled(true); String keywordString = context.getString(TwitterSourceConstant.KEYWORDS,TwitterSourceConstant.DEFAULT_KEYWORD); //keywords = keywordString.replace(TwitterSourceConstant.COMMA_CHARACTER, TwitterSourceConstant.OR_CHARACTER); if (keywordString.trim().length() == 0) { keywords = new String[0]; } else { keywords = keywordString.split(","); for (int i = 0; i < keywords.length; i++) { keywords[i] = keywords[i].trim(); } } twitterStream = new TwitterStreamFactory(cb.build()).getInstance(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void initialize(ExternalContext context)\n {\n }", "public void init(MailetContext context);", "public static synchronized void initialize(Context context) {\n instance.context = context;\n initInternal();\n }", "void init(HandlerContext context);", "public void initializeContext(Context...
[ "0.6952986", "0.66714376", "0.6588838", "0.6545886", "0.6505141", "0.6372611", "0.63022614", "0.6275073", "0.6201037", "0.61283755", "0.6110974", "0.61073667", "0.61006135", "0.6069467", "0.6042092", "0.6041786", "0.6028859", "0.6000547", "0.6000186", "0.5988103", "0.59816784...
0.0
-1
The channel is the piece of Flume that sits between the Source and Sink, and is used to process events.
@Override public void start(){ final ChannelProcessor channel = getChannelProcessor(); final Map<String, String> headers = new HashMap<String, String>(); // The StatusListener is a twitter4j API, which can be added to a Twitter // stream, and will execute methods every time a message comes in through // the stream. StatusListener statusListener = new StatusListener() { // The onStatus method is executed every time a new tweet comes in. @Override public void onStatus(Status status) { // The EventBuilder is used to build an event using the headers and // the raw JSON of a tweet // shouldn't log possibly sensitive customer data //logger.debug("tweet arrived"); headers.put("timestamp",String.valueOf(status.getCreatedAt().getTime())); Event event1; event1 = EventBuilder.withBody(TwitterObjectFactory.getRawJSON(status).getBytes(),headers); //event2 = EventBuilder.withBody(Integer.toString(status.getRetweetCount()),(Charset)headers); //event3 = EventBuilder.withBody(status.getText().getBytes(), headers); channel.processEvent(event1); //channel.processEvent(event2); } @Override public void onDeletionNotice(StatusDeletionNotice statusDeletionNotice) { } @Override public void onTrackLimitationNotice(int i) { } @Override public void onScrubGeo(long l, long l1) { } @Override public void onStallWarning(StallWarning stallWarning) { } @Override public void onException(Exception e) { } }; twitterStream.addListener(statusListener); if(keywords.length != 0){ FilterQuery filterQuery = new FilterQuery().track(keywords); twitterStream.filter(filterQuery); }else{ twitterStream.sample(); } super.start(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setChannel(Channel channel)\n {\n this.channel = channel;\n }", "public void setChannel(String channel) {\n\t\tthis.channel = channel;\n\t}", "public void setChannel(Byte channel) {\n this.channel = channel;\n }", "@Override\n public int getChannel()\n {\n return channel;\...
[ "0.701483", "0.66494185", "0.6549597", "0.65095484", "0.64734656", "0.64711064", "0.6422183", "0.6409867", "0.63933665", "0.63745403", "0.63456386", "0.6334781", "0.6300465", "0.6294534", "0.6263739", "0.62422156", "0.6240853", "0.6240853", "0.6210415", "0.6190536", "0.618410...
0.0
-1
The onStatus method is executed every time a new tweet comes in.
@Override public void onStatus(Status status) { // The EventBuilder is used to build an event using the headers and // the raw JSON of a tweet // shouldn't log possibly sensitive customer data //logger.debug("tweet arrived"); headers.put("timestamp",String.valueOf(status.getCreatedAt().getTime())); Event event1; event1 = EventBuilder.withBody(TwitterObjectFactory.getRawJSON(status).getBytes(),headers); //event2 = EventBuilder.withBody(Integer.toString(status.getRetweetCount()),(Charset)headers); //event3 = EventBuilder.withBody(status.getText().getBytes(), headers); channel.processEvent(event1); //channel.processEvent(event2); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override public void onStatus(Status status) {\n\t\t\tif (Calendar.getInstance().getTime().before( shutdownTime.getTime() )) {\r\n\t\t\t\ttweets.add(status);\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\tLOGGER.log(Level.FINE, \"Shutting down Twitter stream..\");\r\n\t\t\t\tclearLists();\r\n\t\t\t\tshutdown = true;\r\n\t\...
[ "0.8152591", "0.814104", "0.7823599", "0.7304801", "0.71745956", "0.7111631", "0.6970688", "0.6883705", "0.68516415", "0.67357695", "0.66537863", "0.6516599", "0.6480106", "0.63844335", "0.6382891", "0.6373752", "0.6284909", "0.62769115", "0.6275005", "0.6269008", "0.620894",...
0.782156
3
Returns the after any of this job.
@Override public String getAfterAny() { return model.getAfterAny(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Integer getAfterResult() {\r\n return afterResult;\r\n }", "public String getAfterReason() {\r\n return afterReason;\r\n }", "public Optional<Instant> getAfter() {\n\t\t\treturn after;\n\t\t}", "@Override\r\n\tpublic void doAfterJob() {\n\r\n\t}", "public void afterDone() {\n ...
[ "0.67660487", "0.6403662", "0.63299435", "0.6252773", "0.622769", "0.622769", "0.6215784", "0.6214624", "0.61683065", "0.60733694", "0.60694635", "0.6061327", "0.602672", "0.5972745", "0.59145653", "0.58391476", "0.56880945", "0.5681057", "0.5667627", "0.56238526", "0.5623472...
0.65267605
1
Returns the after ok of this job.
@Override public String getAfterOk() { return model.getAfterOk(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Integer getAfterResult() {\r\n return afterResult;\r\n }", "public String getAfterReason() {\r\n return afterReason;\r\n }", "public String getDone() {\n return (isDone ? \"1\" : \"0\");\n }", "public void afterDone() {\n }", "public void afterDone() {\n }", "pu...
[ "0.72712386", "0.66086817", "0.6175625", "0.61581427", "0.61581427", "0.61244845", "0.6095801", "0.60649514", "0.60603505", "0.6042986", "0.59794235", "0.5936689", "0.59344053", "0.58971995", "0.5893695", "0.58635896", "0.5840551", "0.58231175", "0.58133674", "0.5810026", "0....
0.74033564
0
Returns the cluster ID of this job.
@Override public long getClusterId() { return model.getClusterId(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String clusterId() {\n return this.innerProperties() == null ? null : this.innerProperties().clusterId();\n }", "public String clusterId() {\n return this.clusterId;\n }", "public String getClusterId() {\n return clusterId;\n }", "java.lang.String getClusterId();", "jav...
[ "0.8384653", "0.83699673", "0.8292627", "0.8244621", "0.8244621", "0.8244621", "0.8244621", "0.8244621", "0.8244621", "0.8182455", "0.8182455", "0.8182455", "0.8182455", "0.8182455", "0.8182455", "0.8091628", "0.8053737", "0.8045269", "0.8045269", "0.8045269", "0.8045269", ...
0.80208045
23
Returns the command of this job.
@Override public String getCommand() { return model.getCommand(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.lang.String getCommand() {\n java.lang.Object ref = command_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n command_ = s;\n return s;\n } else {\n retur...
[ "0.7889653", "0.7871432", "0.78553134", "0.7842512", "0.7823527", "0.7773119", "0.7773119", "0.77729285", "0.77329934", "0.76604223", "0.76241446", "0.7619792", "0.76071095", "0.760497", "0.7578467", "0.7572487", "0.75511956", "0.7422672", "0.740164", "0.72815377", "0.7247151...
0.7550685
17
Returns the company ID of this job.
@Override public long getCompanyId() { return model.getCompanyId(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Long getCompanyId() {\r\n\t\treturn companyId;\r\n\t}", "public String getCompanyId() {\r\n\t\treturn companyId;\r\n\t}", "public long getCompanyId() {\n return companyId;\n }", "@Override\n\tpublic long getCompanyId() {\n\t\treturn _changesetEntry.getCompanyId();\n\t}", "@Override\n\tpubl...
[ "0.8003796", "0.79412895", "0.7789676", "0.7762786", "0.77459216", "0.77395356", "0.77395356", "0.7718125", "0.7718125", "0.7718125", "0.7718125", "0.77099824", "0.77079827", "0.7569567", "0.7543034", "0.7543034", "0.7542039", "0.75403196", "0.75403196", "0.75403196", "0.7540...
0.77338576
9
Returns the complete date of this job.
@Override public Date getCompleteDate() { return model.getCompleteDate(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Date getCompleteTime() {\n return completeTime;\n }", "public Date getCompletionDate() {\r\n\t\treturn completionDate;\r\n\t}", "public Date getCompletedDate() {\n return this.completedDate;\n }", "public Timestamp\tgetCompletionDate();", "LocalDateTime getCompletionDate();", "...
[ "0.7293971", "0.70445246", "0.6970068", "0.6756367", "0.666821", "0.656283", "0.6443649", "0.6434822", "0.64070904", "0.6299239", "0.6299239", "0.6299239", "0.6299239", "0.6275276", "0.62458086", "0.620423", "0.6169756", "0.6140234", "0.61062133", "0.6093619", "0.606973", "...
0.792743
0
Returns the create date of this job.
@Override public Date getCreateDate() { return model.getCreateDate(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Date getCreateDate() {\n\t\treturn createDate;\n\t}", "public Date getCreateDate() {\r\n\t\treturn createDate;\r\n\t}", "public String getCreateDate() {\r\n\t\treturn createDate;\r\n\t}", "public Date getCreateDatetime() {\r\n\t\treturn createDatetime;\r\n\t}", "public Date getCreateDt() {\n\t\tretu...
[ "0.7517145", "0.7479996", "0.74650824", "0.7447201", "0.7445887", "0.7430383", "0.7318202", "0.730264", "0.730264", "0.7300553", "0.72949284", "0.72776717", "0.72776717", "0.7272605", "0.72719264", "0.7263944", "0.7263944", "0.7237165", "0.7237165", "0.7229366", "0.7229366", ...
0.7318405
8
Returns the eligible time of this job.
@Override public String getEligibleTime() { return model.getEligibleTime(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getReadyTime()\n {\n if (scheduledOPs.isEmpty())\n {\n return 0;\n\n }else{\n\n \t//Get latest scheduled op's completion time as ready time\n return scheduledOPs.get(scheduledOPs.size() - 1).getCompletionTime();\n }\n }", "public Date g...
[ "0.6607307", "0.63947845", "0.639404", "0.63193023", "0.6201435", "0.61903363", "0.6177963", "0.6176691", "0.617038", "0.6119179", "0.60754853", "0.6068852", "0.60564315", "0.6040579", "0.60025346", "0.598264", "0.59701645", "0.59490925", "0.5923841", "0.592348", "0.59025234"...
0.7478788
0
Returns the environment vars of this job.
@Override public String getEnvironmentVars() { return model.getEnvironmentVars(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String[] getEnvironmentParams()\r\n\t{\r\n\t\treturn environmentParams;\r\n\t}", "public Map<String, String> environmentVariables() {\n return this.environmentVariables;\n }", "public Map<String, String> getEnv()\n {\n return env;\n }", "public Map<String, String> getEnvironment...
[ "0.7620705", "0.7605565", "0.7372752", "0.72960764", "0.720251", "0.7073558", "0.7006451", "0.69756263", "0.69273585", "0.6925455", "0.68948364", "0.6785067", "0.67148924", "0.67148924", "0.67041993", "0.6636206", "0.66328305", "0.6535535", "0.65130883", "0.64656526", "0.6455...
0.8010266
0
Returns the group ID of this job.
@Override public long getGroupId() { return model.getGroupId(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Long getGroup_id() {\n return group_id;\n }", "public Long getGroupID()\n {\n return groupID;\n }", "public Long getGroupId() {\n\t\treturn groupId;\n\t}", "public long getGroupId() {\n return groupId;\n }", "public String getGroupId() {\n\t\treturn groupId;\n\t}", ...
[ "0.7445978", "0.7445315", "0.73758024", "0.73497677", "0.7278491", "0.7261302", "0.72602254", "0.7205412", "0.71739036", "0.71690696", "0.71303475", "0.7121507", "0.7121507", "0.71100515", "0.71100515", "0.7105779", "0.7100299", "0.7095626", "0.7093404", "0.7093404", "0.70838...
0.7034899
24
Returns the job ID of this job.
@Override public long getJobId() { return model.getJobId(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JobID getJobID() {\n \n \t\treturn this.environment.getJobID();\n \t}", "public Long getJobID() {\n return jobID;\n }", "public String getJobID() {\n\t\t\treturn JobID;\n\t\t}", "public java.lang.String getJobId() {\n java.lang.Object ref = jobId_;\n if (!(ref instanceof java.l...
[ "0.8271749", "0.8113195", "0.8083047", "0.7655221", "0.76297927", "0.74121207", "0.73976314", "0.73945946", "0.7306599", "0.72754025", "0.72754025", "0.72754025", "0.72491413", "0.7198242", "0.71916103", "0.7168785", "0.7090967", "0.70737475", "0.7042661", "0.70117766", "0.70...
0.78119063
3
Returns the job name of this job.
@Override public String getJobName() { return model.getJobName(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getJobName() {\n return this.mJob;\n }", "public String getJobName() {\n return jobName;\n }", "public String getJobName() {\n return jobName;\n }", "public String getJobName() {\n return this.jobName;\n }", "public String getFullJobName() {\n re...
[ "0.8460826", "0.8334659", "0.8334659", "0.8331817", "0.826576", "0.82594377", "0.7584036", "0.75188726", "0.74125636", "0.7377845", "0.73129517", "0.72162914", "0.7197899", "0.71758336", "0.71473867", "0.714226", "0.71056825", "0.70087093", "0.70021164", "0.69779503", "0.6968...
0.8327268
4
Returns the job status of this job.
@Override public int getJobStatus() { return model.getJobStatus(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JobStatus getStatus();", "public Integer getJobStatus() {\n return jobStatus;\n }", "public String getJobStatus() {\n return this.jobStatus;\n }", "public String getJobStatus() {\n return this.jobStatus;\n }", "public StatusCheckDataObject getJob_StatusCheck() {\r\n ...
[ "0.860251", "0.8535766", "0.8528925", "0.8528925", "0.76181036", "0.7573674", "0.7373649", "0.73202854", "0.72894305", "0.72129816", "0.7167171", "0.71622926", "0.71517277", "0.71517277", "0.7139759", "0.7139759", "0.7139759", "0.7139759", "0.7120053", "0.7120053", "0.7110257...
0.84065837
4
Returns the log file name of this job.
@Override public String getLogFileName() { return model.getLogFileName(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected String logFile(AggregatedJob job) {\n StringBuffer sb = new StringBuffer(32);\n if (mGlobalLog) {\n // the basename of the log file is derived from the dag name\n sb.append(this.mClusteredADag.getLabel());\n } else {\n // per seqexec job name\n ...
[ "0.7614439", "0.6923469", "0.6887194", "0.68633", "0.6860841", "0.68440765", "0.6747199", "0.668288", "0.6664287", "0.6656549", "0.66547936", "0.6579125", "0.65735394", "0.6533476", "0.64789283", "0.6477462", "0.6447208", "0.6447208", "0.6447208", "0.6447208", "0.6447208", ...
0.75128746
1
Returns the modified date of this job.
@Override public Date getModifiedDate() { return model.getModifiedDate(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Date getModified() {\r\n\t\treturn modified;\r\n\t}", "public String getDatemodified() {\n return datemodified;\n }", "public Date getModifiedDate() {\n return this.modifiedDate;\n }", "public Date getModifiedDate() {\n return this.modifiedDate;\n }", "public String get...
[ "0.7991442", "0.7984864", "0.79323053", "0.79323053", "0.791545", "0.7899826", "0.7883279", "0.7855846", "0.7855846", "0.78488314", "0.7844509", "0.7828126", "0.7828126", "0.7828126", "0.7812615", "0.7751036", "0.7741801", "0.7692248", "0.76777726", "0.76777726", "0.7667307",...
0.7605887
28
Returns the nodes of this job.
@Override public int getNodes() { return model.getNodes(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Nodes nodes() {\n return this.nodes;\n }", "public Node[] getNodes() {\n\t\treturn nodes;\n\t}", "public Map<String, Node> nodes() {\n return this.nodes;\n }", "public List<Node> getNodes() {\n List<Node> list = getNodes(false, false);\n return list;\n }", "public List...
[ "0.74600387", "0.7397489", "0.7287216", "0.7225193", "0.71865404", "0.7177226", "0.706114", "0.7051122", "0.70396036", "0.7037672", "0.6985881", "0.6983703", "0.69260293", "0.69201505", "0.6918987", "0.6918973", "0.68895096", "0.6883325", "0.6871788", "0.6866666", "0.68502253...
0.6933881
12
Returns the primary key of this job.
@Override public long getPrimaryKey() { return model.getPrimaryKey(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getPrimaryKey() {\n if (primaryKey == null) primaryKey = \"id\";\n return primaryKey;\n }", "public String getPrimaryKey() {\n return this.getString(R.string.primaryKey);\n }", "PrimaryKey getPrimarykey();", "public String getPrimaryKey() {\r\n\t\treturn primaryKey;\r...
[ "0.755475", "0.75366694", "0.7431203", "0.7321873", "0.73163563", "0.72657144", "0.7225043", "0.72000957", "0.71333987", "0.7050444", "0.70287853", "0.7010795", "0.70084256", "0.6993079", "0.69910014", "0.69581324", "0.69556516", "0.6899508", "0.68976885", "0.6887469", "0.683...
0.67867494
29
Returns the processors per node of this job.
@Override public int getProcessorsPerNode() { return model.getProcessorsPerNode(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Processor> getProcessors() {\n return processors;\n }", "public JobBuilder processorsPerNode(int processorsPerNode) {\r\n job.setProcessorsPerNode(processorsPerNode);\r\n return this;\r\n }", "public static int getAvailableProcessors() {\r\n\t\treturn availableProcessors;...
[ "0.6825687", "0.6677605", "0.64474136", "0.63211846", "0.607132", "0.5852816", "0.5768319", "0.5755844", "0.5736484", "0.5705986", "0.5686567", "0.5666889", "0.5659365", "0.5620586", "0.5571075", "0.55599385", "0.5557573", "0.5535997", "0.5532196", "0.55283946", "0.548876", ...
0.791717
0
Returns the queued date of this job.
@Override public Date getQueuedDate() { return model.getQueuedDate(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public UUID getQueuedMessageId() {\n\t\treturn queuedMessageId;\n\t}", "@Override\n\tpublic void setQueuedDate(Date queuedDate) {\n\t\tmodel.setQueuedDate(queuedDate);\n\t}", "public java.util.Date getRequestedDate() {\n\t\treturn _dmHistoryMaritime.getRequestedDate();\n\t}", "public OffsetDateTime scheduled...
[ "0.6152741", "0.612767", "0.6123551", "0.6006367", "0.5974806", "0.5802598", "0.5718983", "0.5687144", "0.5680982", "0.56797695", "0.5671131", "0.56487167", "0.5627684", "0.56228226", "0.5591612", "0.55702555", "0.5561924", "0.55581623", "0.5554293", "0.5554293", "0.5554293",...
0.8208635
0
Returns the queue name of this job.
@Override public String getQueueName() { return model.getQueueName(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getQueueName();", "public java.lang.String getQueueName() {\n return queueName;\n }", "public String queueName();", "@DISPID(7)\r\n\t// = 0x7. The runtime will prefer the VTID if present\r\n\t@VTID(13)\r\n\tjava.lang.String queueName();", "com.google.protobuf.ByteString\n ge...
[ "0.83155704", "0.80426437", "0.7902995", "0.75370604", "0.751052", "0.74628395", "0.7061537", "0.691543", "0.6889738", "0.67703766", "0.6727524", "0.67271835", "0.67271835", "0.6724155", "0.6715331", "0.6686704", "0.6680659", "0.6655199", "0.66494644", "0.6596158", "0.6596158...
0.8118305
1
Returns the reference files of this job.
@Override public String getReferenceFiles() { return model.getReferenceFiles(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public Collection<LocalFile> referencedLocalFiles() {\n return ImmutableList.of(new LocalFile(queryOutputFilePath, LocalFileType.OUTPUT));\n }", "public Collection<File> getRetrievedFiles() {\n Collection<File> result = new ArrayList<>(upToDateFiles.size() + copiedFiles.size());\n ...
[ "0.6611204", "0.6503567", "0.62992936", "0.6217827", "0.61817324", "0.613476", "0.608591", "0.6085515", "0.60813445", "0.6078413", "0.5971642", "0.5934963", "0.59326977", "0.59305584", "0.58817494", "0.58489776", "0.5836431", "0.5798586", "0.5792963", "0.5789573", "0.5756564"...
0.7879155
0
Returns the reserve results of this job.
@Override public boolean getReserveResults() { return model.getReserveResults(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Reserve getReserve() {\n return reserve;\n }", "@Override\n\tpublic boolean isReserveResults() {\n\t\treturn model.isReserveResults();\n\t}", "public String getReserve() {\n return reserve;\n }", "public List reserveAll() {\n \n final List result;\n final List reserveList;\...
[ "0.5972948", "0.59029526", "0.5841124", "0.5779348", "0.56768805", "0.55222666", "0.55222553", "0.54840165", "0.5471212", "0.5340386", "0.531312", "0.5251117", "0.521947", "0.51915", "0.5152588", "0.5136321", "0.50870246", "0.50860316", "0.5083571", "0.5083183", "0.5072218", ...
0.69909495
0
Returns the run type of this job.
@Override public String getRunType() { return model.getRunType(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public RunType runType() {\n return this.runType;\n }", "@Override\n\tpublic java.lang.String getRunType() {\n\t\treturn _scienceApp.getRunType();\n\t}", "public JobType getType() { return type; }", "@Override\n public String getType() {\n return Const.JOB;\n }", "public int getJobTy...
[ "0.7892275", "0.74457794", "0.71801484", "0.70954096", "0.69079363", "0.68719757", "0.67349726", "0.6669888", "0.66151696", "0.6609737", "0.64555097", "0.6450622", "0.64240646", "0.6384448", "0.6325456", "0.6325456", "0.62803686", "0.6249799", "0.6247733", "0.622989", "0.6202...
0.7988132
0
Returns the solver exe of this job.
@Override public String getSolverExe() { return model.getSolverExe(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getSimulatorExecutable() {\n return simSpec.getSimExecutable();\n }", "@Override\n\tpublic String getSolution() {\n\t\t// COMPLETE THIS\n\t\tString sol = solutions.first();\n\t\treturn sol;\n\t}", "public File getJobFilePath() {\n Preferences prefs = Preferences.userNodeForPackag...
[ "0.60999674", "0.5950363", "0.5898018", "0.58877146", "0.5786596", "0.57730895", "0.57014436", "0.56933236", "0.5692058", "0.56143653", "0.55352664", "0.55236", "0.5446892", "0.5440876", "0.54188275", "0.53719896", "0.5339701", "0.52854294", "0.5264785", "0.5230099", "0.52218...
0.825413
0
Returns the start date of this job.
@Override public Date getStartDate() { return model.getStartDate(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long getStartDate() {\n return startDate_;\n }", "public Date getStart() {\n return start;\n }", "public Date getStartDate()\r\n {\r\n Date result = m_startDate;\r\n if (result == null)\r\n {\r\n result = getParentFile().getStartDate();\r\n }\r\n ...
[ "0.75585604", "0.75538856", "0.75449044", "0.7531699", "0.75294304", "0.75294304", "0.7527235", "0.75081784", "0.74790806", "0.7454533", "0.73730683", "0.73590726", "0.7350044", "0.73419553", "0.7303214", "0.72865576", "0.72745574", "0.726662", "0.725932", "0.72482973", "0.72...
0.7463454
9
Returns the status of this job.
@Override public int getStatus() { return model.getStatus(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JobStatus getStatus();", "public String getJobStatus() {\n return this.jobStatus;\n }", "public String getJobStatus() {\n return this.jobStatus;\n }", "public Integer getJobStatus() {\n return jobStatus;\n }", "@Override\n\tpublic int getJobStatus() {\n\t\treturn model....
[ "0.8581455", "0.84946126", "0.84946126", "0.84730345", "0.84420323", "0.77294314", "0.771956", "0.7662224", "0.7648386", "0.7648386", "0.7640638", "0.7633579", "0.7633579", "0.7633579", "0.7633579", "0.76335734", "0.7620747", "0.76180285", "0.7615594", "0.7615594", "0.7615594...
0.0
-1
Returns the submit args of this job.
@Override public String getSubmitArgs() { return model.getSubmitArgs(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.lang.Object[] getArgs() {\n return args;\n }", "public @NonNull List<@NonNull String> getArgs()\n {\n return input.getArgs();\n }", "public java.lang.String getArgs() {\n return args;\n }", "public java.lang.String getArgs() {\n return args;\n }", "private Str...
[ "0.62407106", "0.6207127", "0.6106971", "0.60972875", "0.59749264", "0.5853906", "0.583409", "0.57638294", "0.5711004", "0.5705568", "0.5698267", "0.56372005", "0.56135684", "0.5596177", "0.5536425", "0.552954", "0.552177", "0.5519763", "0.55190414", "0.55185676", "0.5504197"...
0.7960438
0
Returns the submit ID of this job.
@Override public String getSubmitId() { return model.getSubmitId(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract String getJobSubmitId();", "public Integer getSubmit_user_id() {\n return submit_user_id;\n }", "public long getSubmissionId() {\r\n return submissionId;\r\n }", "@Override\n\tpublic long getSubmissionId() {\n\t\treturn model.getSubmissionId();\n\t}", "@Override\n\tpu...
[ "0.7686191", "0.70232856", "0.70177764", "0.6978357", "0.64296657", "0.63751894", "0.63298374", "0.62968075", "0.61651945", "0.6134814", "0.60872096", "0.6085444", "0.5998783", "0.59952396", "0.5972367", "0.595563", "0.59195375", "0.5915391", "0.59105927", "0.59005725", "0.58...
0.7918613
0
Returns the title of this job.
@Override public String getTitle() { return model.getTitle(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getJobTitle() {\r\n\t\treturn jobTitle;\r\n\t}", "public String getJobTitle() {\r\n return jobTitle;\r\n }", "public String getJob_title() {\r\n return job_title;\r\n }", "public String getTitle() {\n return getString(CommandProperties.TASK_TITLE);\n }", "public ...
[ "0.83264035", "0.82750565", "0.81098753", "0.7679682", "0.766957", "0.73901284", "0.73434657", "0.72696126", "0.7259677", "0.72523475", "0.7242372", "0.7240842", "0.72259635", "0.72259635", "0.72259635", "0.72259635", "0.72259635", "0.72259635", "0.72259635", "0.7211412", "0....
0.0
-1
Returns the used cpu time of this job.
@Override public String getUsedCpuTime() { return model.getUsedCpuTime(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private long getCpuTime() {\n ThreadMXBean bean = ManagementFactory.getThreadMXBean();\n return bean.isCurrentThreadCpuTimeSupported() ? bean.getCurrentThreadCpuTime() : 0L;\n }", "public long getCpuTime() {\n\tThreadMXBean bean = ManagementFactory.getThreadMXBean();\n\treturn bean.isCurrentThre...
[ "0.79082066", "0.7836816", "0.7786548", "0.7770976", "0.7738879", "0.77088547", "0.76628387", "0.74837327", "0.7454206", "0.7409873", "0.7368139", "0.73532593", "0.73386604", "0.7333972", "0.7313266", "0.7255685", "0.7228315", "0.7209338", "0.72034734", "0.71482205", "0.71332...
0.86415744
0
Returns the used memory of this job.
@Override public String getUsedMemory() { return model.getUsedMemory(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static long getUsedHeapMemory() {\n\t\tMemoryMXBean memBean = ManagementFactory.getMemoryMXBean();\n\t\tMemoryUsage heap = memBean.getHeapMemoryUsage();\n\n\t\treturn heap.getUsed();\n\t}", "public static long getUsedNonHeapMemory() {\n\t\tMemoryMXBean memBean = ManagementFactory.getMemoryMXBean();\n\t\tM...
[ "0.7688891", "0.7602283", "0.7558063", "0.75108904", "0.74282646", "0.7332011", "0.7329076", "0.7314206", "0.73134124", "0.7301795", "0.72901124", "0.72681415", "0.72322935", "0.72230166", "0.7183968", "0.7183968", "0.70971155", "0.7097022", "0.70788294", "0.7069363", "0.7059...
0.7490382
4
Returns the used walltime of this job.
@Override public String getUsedWalltime() { return model.getUsedWalltime(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic String getWallTime() {\n\t\treturn model.getWallTime();\n\t}", "public long getCurrentWallClockTime() {\n return System.currentTimeMillis() - startWallClockTime;\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Long getWorkElapsed() {\n return (java.lang.Lon...
[ "0.7150553", "0.7143694", "0.6864202", "0.6858364", "0.6842052", "0.6835515", "0.68239033", "0.67382485", "0.6719494", "0.66381484", "0.66167504", "0.6600215", "0.658417", "0.6568796", "0.656251", "0.6506349", "0.6493026", "0.6457231", "0.64241767", "0.6393406", "0.638726", ...
0.81445795
0