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
/ Drier program to test above methods
public static void main(String[] args) { FindPositionFromLast llist = new FindPositionFromLast(); llist.push(20); llist.push(4); llist.push(15); llist.push(35); llist.printList(); llist.printNthFromLast(3); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\r\n // 2. Call your method in various ways to test it here.\r\n }", "private void test() {\n\n\t}", "public static void run() {\n testAlgorithmOptimality();\n// BenchmarkGraphSets.testMapLoading();\n //testAgainstReferenceAlgorithm();\n ...
[ "0.6914165", "0.6751041", "0.6576718", "0.6512964", "0.6507995", "0.6476427", "0.64026314", "0.6401518", "0.6371898", "0.634977", "0.63359654", "0.63356155", "0.63342166", "0.63334143", "0.6293413", "0.6253303", "0.6245121", "0.62349015", "0.62198895", "0.62103224", "0.620616...
0.0
-1
/ first agent is assigned to first team (of size kMin). for agents in rsdOrder: if current agent is on a team (e.g., first agent): if the team is not full: the agent picks its favorite remaining agent to join the team. if current agent is not on a team (e.g., second agent if not picked by first): the agent either joins...
public static SimpleSearchResult eachDraftCaptainsChoiceAllocation( final List<Agent> agents, final int kMax, final List<Integer> rsdOrder ) { final int minimumAgents = 4; assert agents != null && agents.size() >= minimumAgents; final int n = agents.size(); as...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static int getFavoriteTeamIndexWithSpace(\n final List<List<Integer>> teams,\n final List<Integer> finalTeamSizes,\n final List<Agent> agents,\n final Agent selfAgent\n ) {\n // find mean value of other agents not yet on a team.\n double untakenOtherAgentsValue ...
[ "0.629629", "0.5609289", "0.5521074", "0.54175955", "0.52995104", "0.5230758", "0.5168712", "0.5114963", "0.511106", "0.5108104", "0.5099609", "0.50509477", "0.50311774", "0.49715686", "0.49542046", "0.49344298", "0.48904586", "0.4881143", "0.4868374", "0.48408356", "0.483406...
0.6342835
0
/ how an agent decides which team to join: for each feasible team (team must have room to join based on its teamspecific size, and must either have at least 1 agent already, or must be the first empty team in the list): if the team has some agent already, take the sum of the values of current players, plus "the number ...
private static int getFavoriteTeamIndexWithSpace( final List<List<Integer>> teams, final List<Integer> finalTeamSizes, final List<Agent> agents, final Agent selfAgent ) { // find mean value of other agents not yet on a team. double untakenOtherAgentsValue = 0.0; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int get2(String name) {\n int t = 0;\n PlayerRecord curr = playerlist.first();\n while (curr != null) {\n if (curr.getTeamname().equals(name))\n t = t + curr.getWinninggoals(); // sum of all GWGs\n curr = playerlist.next();\n }\n retur...
[ "0.5724718", "0.56593645", "0.56338286", "0.56025505", "0.5518539", "0.54204535", "0.5406214", "0.5391417", "0.536307", "0.5338635", "0.5324652", "0.5303264", "0.5295944", "0.52710575", "0.52707994", "0.5246081", "0.52413696", "0.51967967", "0.51714164", "0.5171364", "0.51656...
0.7164743
0
Provides a service for managing Exchange instances.
public interface ExchangeService extends ICrudService<Exchange, String, ExchangeSearchCriteria, ExchangeSort> { boolean isNameUnique(String name, String excludeId); void cleanupDocumentFiles(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public EmailService() throws IOException {\r\n system = ActorSystem.create(\"awacsystem\");\r\n emailActorRef = system.actorOf(new Props(EmailServiceActor.class).withRouter\r\n (new SmallestMailboxRouter(1)), \"emailService\");\r\n }", "public Exchange getExchange() {\r\n r...
[ "0.5755199", "0.55017984", "0.54605216", "0.52371234", "0.52351266", "0.52041847", "0.5099189", "0.5071303", "0.50350237", "0.50291383", "0.50052667", "0.49645612", "0.49329248", "0.49181178", "0.49108395", "0.49084324", "0.49076438", "0.490302", "0.48856512", "0.4856455", "0...
0.5350523
3
saves the content of the editTexts in Sharedpreference
public void save(View view){ String name = editTextname.getText().toString(); String host = editTexthost.getText().toString(); if(name !=null && name.length()>0 && host != null && host.length() >0){ SharedPreferences pref = getSharedPreferences(MainActivity.MY_PREFS_NAME,MODE_PRIVATE...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void saveData(){\n SharedPreferences sharedPreferences = getSharedPreferences(\"SHARED_PREFS\",MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putString(\"email_pref\",email.getText().toString());\n editor.putString(\"password_pref\",uPasswor...
[ "0.77124345", "0.7641513", "0.7585918", "0.7319896", "0.7289851", "0.7251989", "0.7155215", "0.7134206", "0.7036023", "0.70094407", "0.7006081", "0.69781727", "0.69763297", "0.68712646", "0.6847733", "0.68448526", "0.67959654", "0.6771181", "0.67706186", "0.67460966", "0.6732...
0.7427835
3
TODO Autogenerated method stub
public static void main(String[] args) { int num = 70; //type casting char ch = (char)num; System.out.println(ch); }
{ "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
Metodos getters e setters
private JDialogProcurarCliente getjDialogProcurarCliente() { if(jDialogProcurarCliente == null) { jDialogProcurarCliente = new JDialogProcurarCliente(null, false); } return jDialogProcurarCliente; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void get() {}", "static void setPropertiesFromGetters(TableEntity entity, ClientLogger logger) {\n Class<?> myClass = entity.getClass();\n\n // Do nothing if the entity is actually a `TableEntity` rather than a subclass\n if (myClass == TableEntity.class) {\n r...
[ "0.6148816", "0.6116435", "0.6104058", "0.6040833", "0.6037541", "0.5927346", "0.5846738", "0.5842899", "0.5842899", "0.5826831", "0.5821938", "0.5821374", "0.58112055", "0.58045155", "0.5797861", "0.57684374", "0.5737721", "0.5734181", "0.57295537", "0.5679865", "0.566", "...
0.0
-1
Loads the main menu scene
@Override public void start(Stage primaryStage) { try { Parent root = FXMLLoader.load(getClass().getResource("scenes/main_menu.fxml")); primaryStage.setTitle("Führerschein Theorieprüfung"); primaryStage.setScene(new Scene(root)); primaryStage.setResizable(fals...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mainMenu() {\n Game.stage.setScene(mainMenuScene);\n Game.stage.show();\n }", "@FXML\n private void loadMainMenu() throws IOException {\n Parent parent = FXMLLoader.load(getClass().getResource(MAIN_MENU_FXML));\n Stage mainStage = StageInitializer.parentStage;\n mainSta...
[ "0.8217433", "0.811332", "0.79047036", "0.77804476", "0.76562405", "0.73979753", "0.73705345", "0.73504055", "0.7090876", "0.70620245", "0.70332986", "0.7026406", "0.6972631", "0.6972124", "0.6956185", "0.6888976", "0.68279773", "0.67961246", "0.6787751", "0.676011", "0.67317...
0.66593987
23
Stop any ongoing timer if app was interrupted
@Override public void stop() { GameManager.getInstance().stopTimer(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void stopTime()\n {\n timer.stop();\n }", "public void stopTimer() {\n\t\trunFlag = false;\n\t\tses.shutdown();\n\t\tSystem.err.println(\"TIMER SHUTDOWN\");\n\t\tinstance = null;\n\t}", "public static void stopTimer() {\n timerIsWorking = false;\r\n elapsedTime = 0;\r\n }", ...
[ "0.731225", "0.72933286", "0.72831815", "0.72669464", "0.7137756", "0.7126405", "0.70888686", "0.70836014", "0.7056194", "0.70237124", "0.69990486", "0.69519234", "0.69440967", "0.6936647", "0.69313943", "0.6901685", "0.68976897", "0.6894052", "0.6883265", "0.6883253", "0.687...
0.6853376
21
Instantiates a new panel fils.
public PanelFils() { this.setLayout(new GridLayout(0, 1)); this.setBorder(BorderFactory.createEmptyBorder(14, 14, 14, 14)); JLabel titreEvent = new JLabel("Titre"); titreEvent.setFont(new Font("Tahoma", Font.BOLD, 13)); add(titreEvent); chTitreEvent = new JTextArea(); chTi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Panel() {\n }", "public NewJPanel() {\n initComponents();\n }", "public NewJPanel() {\n initComponents();\n }", "public LocalPanel() {\r\n\t\tinitComponents();\r\n\t}", "public Panel() {\n initComponents();\n\n\n }", "public ComandaPanel() {\n\n initComponen...
[ "0.7372396", "0.6996672", "0.6996672", "0.6947476", "0.69182575", "0.6803465", "0.68031687", "0.677602", "0.6767688", "0.6761164", "0.6710466", "0.66977525", "0.66848844", "0.6680828", "0.66687506", "0.6651727", "0.657802", "0.65490156", "0.65427446", "0.652928", "0.65290475"...
0.0
-1
Gets the image U rl.
public String getImageURl(){ return this.lePanel.chEventImage; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public float getIMG(){\n return profile.getImg();\n }", "public String getUserImg() {\r\n return userImg;\r\n }", "@Override\r\n\tpublic Image getImg() {\n\t\treturn img.getImage();\r\n\t}", "public Rectangle getImage() {\n\t\treturn image;\n\t}", "public long getLUC() {\r\n/* 180 */ ...
[ "0.6478926", "0.6354991", "0.62164253", "0.6104466", "0.60481685", "0.6010251", "0.59959704", "0.5993537", "0.5956977", "0.59344834", "0.59319013", "0.59297717", "0.592818", "0.5927992", "0.5884637", "0.5884637", "0.5870143", "0.584617", "0.5836355", "0.5834487", "0.5829157",...
0.54440415
99
Listener to check if save ADF is successed.
public interface SaveAdfListener { void onSaveAdfFinished(String adfName, String adf_dataset_uuid); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void alertSaveSuccess() {\n\t\tthis.alert(\"Saved\",\"Game saved\",AlertType.INFORMATION);\n\t}", "private void checkSave() {\n if (view.getSave()) {\n try {\n saveGame.export(view.getSaveGameName());\n } catch (Exception e) {\n System.out.println...
[ "0.6641797", "0.6299521", "0.6241743", "0.62365687", "0.6224383", "0.6218063", "0.6187782", "0.61543965", "0.61450624", "0.6106021", "0.60539854", "0.60320497", "0.6026082", "0.6011781", "0.60023105", "0.59558743", "0.59503406", "0.5888988", "0.58832467", "0.586337", "0.58414...
0.7163959
0
Call this method to marshall progress updates to the UI thread.
public void publishProgress(int progress) { super.publishProgress(progress); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void onProgressUpdate() {\n\n\t}", "@Override\n public void showProgressSync() {\n }", "public void run() {\n\t\t\t\t\tmHandler.post(new Runnable() {\r\n\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\tprogressbar.setProgress(Integer\r\n\t\t\t\t\t\t\t\t\t.parseInt(tvsp.progress));\r\n...
[ "0.6792078", "0.6650833", "0.6633087", "0.65950173", "0.6568589", "0.6568589", "0.6496277", "0.6482715", "0.6482685", "0.64802223", "0.647169", "0.6454707", "0.6451909", "0.644868", "0.644146", "0.644146", "0.6436689", "0.6433039", "0.6433039", "0.6421778", "0.6409111", "0....
0.0
-1
Sets up the progress dialog.
@Override protected void onPreExecute() { if (mProgressDialog != null) { mProgressDialog.show(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tprotected void onPreExecute() {\n\t\t progressDialog = new AutoTuningInitDialog(mChannelActivity, R.style.dialog);\n\t\t\tprogressDialog.show();\t\t\n\t\t\tsuper.onPreExecute();\n\t\t}", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t\tshowDialog(progress_bar_...
[ "0.71569496", "0.7042067", "0.7042067", "0.69526875", "0.68383455", "0.6798354", "0.67552406", "0.67450374", "0.661312", "0.65686876", "0.65481", "0.6541284", "0.6498564", "0.6494596", "0.6479795", "0.6467534", "0.6443066", "0.64275974", "0.64140666", "0.641149", "0.6404688",...
0.0
-1
Performs longrunning save in the background.
@Override protected String doInBackground(Void... params) { // This example implementation returns an empty-string on failure. String adf_dataset_uuid = TangoJniNative.saveAdf(); if (!adf_dataset_uuid.startsWith(uuid_mask)) { TangoJniNative.setAdfMetadataValue( ad...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void saveProgress() {\n\t\tsaveUsers();\n\t\tsaveMaterials();\n\t\tsaveBorrowings();\n\t}", "private void scheduleSaveOfFileIdStore() {\n if (saveFileIdDictionaryStoreTimerTask != null) {\n saveFileIdDictionaryStoreTimerTask.cancel();\n saveFileIdDictionaryStoreTimerTask = nul...
[ "0.6396526", "0.627441", "0.62690765", "0.619909", "0.6159764", "0.59425676", "0.5840286", "0.5825904", "0.57862127", "0.5749021", "0.5645519", "0.56448936", "0.5644124", "0.5621274", "0.5616524", "0.5607303", "0.5602722", "0.5574591", "0.55497116", "0.55428714", "0.5521861",...
0.0
-1
Responds to progress updates events by updating the UI.
@Override protected void onProgressUpdate(Integer... progress) { if (mProgressDialog != null) { mProgressDialog.setProgress(progress[0]); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void update(final Progress progress) {\n SwingUtilities.invokeLater(new Runnable() {\n\n @Override\n public void run() {\n progressBar.setValue(progress.getIntPercentage());\n progressField.setText(roundToSingleDigit(progress.getPerce...
[ "0.7405879", "0.73704374", "0.7369706", "0.7294782", "0.71994436", "0.7188843", "0.7176534", "0.71664894", "0.70961976", "0.70961976", "0.70955527", "0.7091251", "0.7045902", "0.7021247", "0.6997063", "0.6986541", "0.69466525", "0.68938756", "0.68938756", "0.6892226", "0.6890...
0.6549365
55
Dismisses the progress dialog and call the activity.
@Override protected void onPostExecute(String adf_dataset_uuid) { if (mProgressDialog != null) { mProgressDialog.dismiss(); } if (mCallbackListener != null) { mCallbackListener.onSaveAdfFinished(mAdfName, adf_dataset_uuid); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void dismissDialog() {\n if (progressDialog != null) {\n progressDialog.dismiss();\n }\n }", "public void dismissProgress() {\n if (mProgressDialog != null) {\n mProgressDialog.dismiss();\n mProgressDialog = null;\n }\n }", "void dismis...
[ "0.7666219", "0.7583008", "0.7530231", "0.7530231", "0.7530231", "0.7523263", "0.7435603", "0.7392896", "0.7351297", "0.7289879", "0.71879876", "0.7159664", "0.712965", "0.7098664", "0.7081723", "0.7054151", "0.7054151", "0.70488137", "0.70471334", "0.70471334", "0.70471334",...
0.0
-1
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { mainPanel = new javax.swing.JPanel(); combobox1 = new javax.swing.JComboBox(); label1 = new javax.swing.JLabel(); label2 = new...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n ...
[ "0.7319037", "0.7290621", "0.7290621", "0.7290621", "0.7285163", "0.72480375", "0.72130316", "0.7207723", "0.7195822", "0.7189463", "0.7183591", "0.71580946", "0.7147075", "0.70924276", "0.70795405", "0.7056352", "0.6986753", "0.6976759", "0.6954958", "0.69533294", "0.6944831...
0.0
-1
Constructor Instantiates a new user.
public User(String name) { this.name = name; this.state = State.NONE; this.bot = false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public User() {\n this.id = 0;\n this.username = \"gfisher\";\n this.password = \"password\";\n this.email = \"email@gmail.com\";\n this.firstname = \"Gene\";\n this.lastname = \"Fisher\";\n this.type = new UserPermission(true, true, true, true);\n }", "public ...
[ "0.8236344", "0.8168144", "0.79917943", "0.79917943", "0.79917943", "0.79900473", "0.79900473", "0.79900473", "0.7985881", "0.7985881", "0.7985881", "0.79764795", "0.79651237", "0.79617363", "0.7934351", "0.79151464", "0.7912487", "0.78904027", "0.7876654", "0.7871704", "0.78...
0.0
-1
Instantiates a new user.
public User(String name, boolean bot) { this.name = name; this.bot = bot; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public User createUser() {\n printer.println(\"Welcome! Enter you name and surname:\");\n printer.println(\"Name:\");\n String name = input.nextString();\n printer.println(\"Surname:\");\n String surname = input.nextString();\n return new User(name, surname);\n }", "p...
[ "0.7260711", "0.71941143", "0.70997846", "0.70441043", "0.7042133", "0.6953936", "0.6921131", "0.6910028", "0.68981904", "0.68211967", "0.67626977", "0.67608553", "0.67531717", "0.67389846", "0.6729952", "0.66918755", "0.66816634", "0.6663497", "0.6655579", "0.66469306", "0.6...
0.0
-1
Set the pieces of the user.
public void setPieces(List<Piece> pieces) { this.pieces = pieces; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setUser(final String user)\n {\n checkImmutable();\n this.user = user;\n }", "void setPassedUser(User passedUser);", "public void setUser(String user)\n {\n _user = user;\n }", "private void setUser(People value) {\n if (value == null) {\n throw new NullPointerExce...
[ "0.62990344", "0.62582374", "0.6256234", "0.6094241", "0.6090429", "0.607347", "0.60705703", "0.60615104", "0.606051", "0.5996201", "0.59820575", "0.59820575", "0.59745336", "0.59667706", "0.59667706", "0.59667706", "0.59667706", "0.59502953", "0.5939598", "0.5932616", "0.592...
0.0
-1
TODO: should modify the list with pieces if a piece is used by the game Set the colors owned by the user.
public void setColor(List<String> colors) { this.colors = colors; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initPieceColors(){\n\t\tfor(Piece p : this.pieces)\n\t\t\tpieceColors.put(p, Utils.randomColor());\n\t}", "public Piece.color getColor() { return color; }", "private static Collection<Piece> getCorrectBluePieces() {\n\t\tfinal Collection<Piece> pieces = new ArrayList<Piece>();\n\t\tpieces.add(new ...
[ "0.733636", "0.6910533", "0.68165493", "0.67925227", "0.6696798", "0.6532478", "0.64365244", "0.6416119", "0.64080054", "0.63776577", "0.63776577", "0.6342452", "0.63332003", "0.6307101", "0.6282686", "0.6231256", "0.62180966", "0.62097216", "0.6137953", "0.6123004", "0.60565...
0.54827005
88
Set the state of the user to NONE (i.e. not in a game and not left)
public void setNone() { state = State.NONE; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void reset() { \r\n myGameOver = false; \r\n myGamePaused = false; \r\n }", "public void resetPlayerPassed() {\n d_PlayerPassed = false;\n }", "private void setGameStatus() {\n this.gameStatus = false;\n }", "public void reset() {\r\n\t\tplayAgain = false;\r\...
[ "0.65236235", "0.6354156", "0.6281041", "0.62709206", "0.62479293", "0.6191287", "0.6170772", "0.61661077", "0.6134478", "0.6131848", "0.6055779", "0.60432756", "0.5974866", "0.5956835", "0.5952529", "0.5951574", "0.5917009", "0.59163296", "0.5908654", "0.59080076", "0.589794...
0.7105041
0
Set the state of the user to LEFT (when left a game).
public void setLeft() { state = State.LEFT; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setLeft(boolean left) {\n myLeft = left;\n }", "public void turnLeft() {\n\t\tthis.setSteeringDirection(getSteeringDirection()-5);\n\t\t}", "public void leftPressed() {\n\t\tkeys.get(keys.put(Keys.LEFT, true));\n\t}", "public static void turnLeft() {\n LEFT_MOTOR.backward();\n RIGHT_MOTOR.forw...
[ "0.7228826", "0.71921784", "0.7190697", "0.7066647", "0.70571667", "0.7048397", "0.7025491", "0.7022745", "0.69688404", "0.69208133", "0.6893369", "0.6885336", "0.68837154", "0.687492", "0.6851881", "0.6821761", "0.6821761", "0.68145764", "0.67806095", "0.67408204", "0.669943...
0.7821311
0
Set the state of the user to JOINED (when joined a game).
public void setJoined() { state = State.JOINED; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void join(User user);", "public boolean isJoined() {\n\t\treturn state == State.JOINED;\n\t}", "public\tvoid\tuserJoined(UIRosterEntry user)\n\t{\n\t\t\n\t\tNewChatPanel panel = this.getDiscussionPanel();\n\t\n\t\tString joinedUserName = user.getDisplayName();\n\t\tString joinedUserId = user.getUserId();\n\t\t...
[ "0.683152", "0.62726915", "0.6094303", "0.6027506", "0.59263754", "0.5908483", "0.58741134", "0.58413136", "0.5803663", "0.5775824", "0.57479036", "0.57400614", "0.569363", "0.56800324", "0.56357217", "0.5630235", "0.5599799", "0.5591674", "0.5579766", "0.55795974", "0.557836...
0.7756205
0
Set the state of the user to READY (when ready to play a game).
public void setReady() { state = State.READY; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setReady() {\n\t\tthis.state = State.READY;\n\t}", "public void clientReady(String user){\r\n\t\tuserReady.put(user, true);\t\r\n\t\tthis.checkState();\r\n\t}", "public void onReadyButton(View view) {\n mUser.setState(User.UserState.DoneWithNight);\n\n // NOTE!!!!!!!!!!!!!!!!!!\n ...
[ "0.7123642", "0.69347554", "0.6907666", "0.67411387", "0.6708115", "0.6616565", "0.65422034", "0.6420964", "0.6335282", "0.6318819", "0.6297034", "0.6294741", "0.6279563", "0.6196337", "0.61727196", "0.61363393", "0.60653865", "0.598844", "0.59690994", "0.59438545", "0.588477...
0.7082413
1
Set the state of the user to INGAME (when playing a game).
public void setPlaying() { state = State.INGAME; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setInGame() {\n this.inGame = true;\n }", "static void setCurrentPlayer()\n {\n System.out.println(\"Name yourself, primary player of this humble game (or type \\\"I suck in life\\\") to quit: \");\n\n String text = input.nextLine();\n\n if (text.equalsIgnoreCase(\"I...
[ "0.69563764", "0.62579334", "0.6157723", "0.6097014", "0.6033271", "0.6009611", "0.59381205", "0.5905196", "0.5901207", "0.5895539", "0.5885928", "0.58677936", "0.5865031", "0.5864494", "0.58635986", "0.58575207", "0.5837692", "0.5768753", "0.5767677", "0.576297", "0.57528484...
0.685332
1
Set the userIO to be used for communicating with the client of this player.
public void setUserIO(UserIO userIO) { this.userIO = userIO; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPlayerInputIO(EnginePlayerIO pIO){\n\t\tplayerIO = pIO;\n\t}", "public UserIO getUserIO() {\n\t\treturn this.userIO;\n\t}", "public void setPlayer2Txt(String user) {\n\t\tclientName = user;\n\t\tplayer2Txt.setText(clientName);\n\t}", "public UserCon()\n\t{\n\t\tfor (String s : Flags.userPrefs)...
[ "0.66303486", "0.61887527", "0.57513636", "0.56434387", "0.5634971", "0.5603959", "0.5561666", "0.55589306", "0.55589306", "0.55589306", "0.55589306", "0.5464309", "0.544634", "0.54277945", "0.5398934", "0.5393416", "0.53856874", "0.53763", "0.53763", "0.5374323", "0.5361267"...
0.7728936
0
Queries Checks if is bot.
public boolean isBot() { // return this.getUserIO().checkConnection(); return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isIsQuery();", "public void query()\n\t{\n\t\tJSONObject queryInfo = new JSONObject();\n\t\t\n\t\ttry\n\t\t{\n\t\t\tqueryInfo.put(\"type\", \"query\");\n\t\t\t\n\t\t\tos.println(queryInfo.toString());\n\t\t\tos.flush();\n\t\t\t\n\t\t\tSystem.out.println(\"send query request : \" + queryInfo.toString());\...
[ "0.58333385", "0.58101696", "0.5791339", "0.57372874", "0.56936336", "0.5631526", "0.54378456", "0.5354415", "0.5337922", "0.532388", "0.5318915", "0.5179578", "0.51419556", "0.50971293", "0.50618523", "0.50612664", "0.50580573", "0.50199515", "0.50025356", "0.49445578", "0.4...
0.57822984
3
Get the colors of the user.
public List<String> getColor() { return this.colors; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ArrayList<Color> userColors() {\r\n int colorIndex;\r\n ArrayList<Color> dest = new ArrayList<Color>();\r\n for (colorIndex = 0; colorIndex < this.colors; colorIndex += 1) {\r\n dest.add(Cnst.colorsToChoose.get(colorIndex));\r\n }\r\n return dest;\r\n }", "public Color[] getColors();"...
[ "0.769223", "0.6913966", "0.6726766", "0.6646931", "0.6612023", "0.6569035", "0.6510137", "0.64978236", "0.6378681", "0.62757665", "0.620303", "0.61576176", "0.61576176", "0.61576176", "0.61576176", "0.61576176", "0.61341393", "0.6129394", "0.6115053", "0.61044765", "0.609430...
0.6829586
2
Get the pieces from the user.
public List<Piece> getPieces() { return this.pieces; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String[] getUser(){\n Set<String> userSet = preferences.getStringSet(userRef, new HashSet<>());\n if(userSet.size() == 0) return new String[0];\n String user = \"\";\n String pass = \"\";\n String test = userSet.toArray()[0].toString();\n Pattern pattern = Pattern....
[ "0.61775374", "0.5932889", "0.5916618", "0.5681215", "0.5681215", "0.56432104", "0.56313634", "0.5571603", "0.55502844", "0.5494867", "0.5464977", "0.54560816", "0.54278976", "0.5421484", "0.54194677", "0.54167753", "0.5391025", "0.53641695", "0.53563553", "0.53415877", "0.53...
0.4917878
87
Get the name of the user.
public String getName() { return this.name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getName() {\n return user.getName();\n }", "java.lang.String getUserName();", "java.lang.String getUserName();", "java.lang.String getUserName();", "public static String getUserDisplayName() {\r\n return getUsername();\r\n }", "public String getUser_name() {\n ret...
[ "0.86399394", "0.8288293", "0.8288293", "0.8288293", "0.8151296", "0.8078177", "0.8046667", "0.79935366", "0.7941082", "0.7920933", "0.7908733", "0.7871395", "0.7871395", "0.7845169", "0.7823669", "0.77972835", "0.7786012", "0.77838546", "0.77771956", "0.7776549", "0.7776549"...
0.0
-1
Check whether the user is in the NONE state.
public boolean isNone() { return state == State.NONE; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isNone() {\n if (var == null)\n return (flags & (PRIMITIVE | ABSENT | UNKNOWN)) == 0 && num == null && str == null && object_labels == null && getters == null && setters == null;\n else\n return (flags & (ABSENT | PRESENT_DATA | PRESENT_ACCESSOR)) == 0;\n }", ...
[ "0.6997316", "0.6691835", "0.6479777", "0.63403887", "0.6246283", "0.6216447", "0.6196022", "0.6096771", "0.6096771", "0.6066432", "0.6045078", "0.6017829", "0.6017549", "0.6007424", "0.5992655", "0.5982877", "0.59308434", "0.59286344", "0.5861681", "0.5855456", "0.5838826", ...
0.7610076
0
Check whether the user is in the LEFT state.
public boolean isLeft() { return state == State.LEFT; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean canBeLeft();", "void hasLeft();", "@Override\n\tpublic boolean canBeLeft() {\n\t\treturn true;\n\t}", "public LTSState getLeftState(){\n\t\treturn leftState;\n\t}", "public void setLeft() {\n\t\tstate = State.LEFT;\n\t}", "public boolean hasLeft(){\r\n\t\tif(getLeft()!=null) {\r\n\t\t\tret...
[ "0.6891382", "0.68422425", "0.6787012", "0.6680951", "0.66609037", "0.6654329", "0.66265625", "0.6522035", "0.6509862", "0.64566123", "0.643853", "0.64340204", "0.64305943", "0.6416572", "0.6406212", "0.634946", "0.63493985", "0.63448083", "0.6342463", "0.63126", "0.6239483",...
0.779129
0
Check whether the user is in the JOINED state.
public boolean isJoined() { return state == State.JOINED; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isJoining(){\n\t\treturn join!=null;\n\t}", "public boolean isJoin()\r\n { return type == JOIN; }", "public boolean isJoin()\r\n {\n return false;\r\n }", "public boolean isJoining(Train train){\n\t\treturn join==train;\n\t}", "@Override\n\tpublic boolean canJoin() {\n\t\tret...
[ "0.75148267", "0.69609606", "0.694948", "0.66458255", "0.6551428", "0.6549819", "0.651844", "0.6240759", "0.59832346", "0.59278613", "0.5868235", "0.5863532", "0.57537264", "0.57020205", "0.5668984", "0.5663307", "0.56525576", "0.564117", "0.5557644", "0.5530874", "0.5524858"...
0.7656348
0
Check whether the user is in the READY state.
public boolean isReady() { return state == State.READY; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isReady();", "public boolean isReady();", "public Boolean isAvailable()\n\t{\n\t\treturn presence != null && presence.equals(AVAILABLE);\n\t}", "boolean isReady();", "boolean isReady();", "boolean isReady();", "public boolean isReady() {\n return ready;\n }", "public boolean ...
[ "0.6814", "0.6814", "0.68056715", "0.68049395", "0.68049395", "0.68049395", "0.68047035", "0.6802912", "0.6784457", "0.6598324", "0.6598324", "0.6582867", "0.65228844", "0.65180475", "0.64468294", "0.6436942", "0.6427495", "0.64246637", "0.6422763", "0.6411706", "0.6392344", ...
0.7359511
0
Check at what index the piece with the given colour and ring type is in the list of pieces.
public int checkPiece(String colour, char type) { int location = -1; for (Piece p : this.getPieces()) { location ++; if (p.getColour().equals(colour)) { if (p.getType() == type) { return location; } } } return -1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean kingCheck(ArrayList<Piece> pieces) {\r\n boolean check = false;\r\n int[] kingCoords = new int[]{this.getX(), this.getY()};\r\n\r\n for (Piece piece : pieces) {\r\n if (piece.getColor() != this.getColor()) { // If the color does not match the king's color...\r\n ...
[ "0.6448963", "0.62775266", "0.62709755", "0.61637646", "0.616139", "0.60021126", "0.5964455", "0.59556603", "0.59376675", "0.5921944", "0.5808018", "0.57672364", "0.576407", "0.5720968", "0.5708747", "0.56766593", "0.56604147", "0.56312877", "0.55917937", "0.55766344", "0.557...
0.69222796
0
Query to check whether the user is playing a game.
public boolean isPlaying() { return state == State.INGAME; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isPlayableInGame();", "Boolean isPlaying() {\n return execute(\"player.playing\");\n }", "public boolean checkPlays(Player player){\n return true;\n }", "public boolean userStillInGame() {\n return playersInGame.contains(humanPlayer);\n }", "private boolean doesUserPla...
[ "0.7274191", "0.684474", "0.6620018", "0.65727335", "0.65255797", "0.6447205", "0.62982", "0.6230612", "0.62017035", "0.6170717", "0.6161958", "0.61485916", "0.6141106", "0.6122708", "0.6100802", "0.6091218", "0.60816896", "0.6070733", "0.6047668", "0.60426086", "0.6025714", ...
0.62099665
8
Query to get userIO of this user.
public UserIO getUserIO() { return this.userIO; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic UserInfo getUserInfo() {\n\t\tHttpSession session = RpcContext.getHttpSession();\n String auth = (String)session.getAttribute(\"auth\");\n UserInfo ui = null;\n if (auth != null) {\n\t switch(AuthType.valueOf(auth)) {\n\t\t case Database: {\n\t\t St...
[ "0.59161747", "0.5689082", "0.5614941", "0.561156", "0.55587196", "0.55472606", "0.5542704", "0.5527781", "0.5522837", "0.54514855", "0.54397357", "0.5424798", "0.5413492", "0.5393711", "0.5377067", "0.5374666", "0.53704846", "0.5370122", "0.53677905", "0.53489494", "0.534333...
0.71454537
0
TODO Autogenerated method stub
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { doGet(request, response); }
{ "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
Declare integer variables and initialize
public static void main(String[] args) { byte num1 = 100; short num2 = 123; int num3 = 1200; long num4 = 234763458476L; // Print min and maximum values System.out.println("Maximum value of byte is " + Byte.MAX_VALUE); System.out.println("Minimum value of byte is " + Byte.MIN_VALUE); System.out.println(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private final int initializeInt() {\n\t\treturn 0;\r\n\t}", "private void initVariables(){\n int counter = 1;\n for (int vCount = 0; vCount < vertexCount; vCount++){\n for (int pCount = 0; pCount < positionCount; pCount++){\n variables[vCount][pCount] = counter++;\n ...
[ "0.7649768", "0.6749592", "0.66450065", "0.64620984", "0.64485544", "0.64084184", "0.63358766", "0.62487966", "0.61863256", "0.6168731", "0.61112416", "0.6039555", "0.60160446", "0.60079885", "0.60013396", "0.59674907", "0.59632254", "0.5944729", "0.59442693", "0.5884154", "0...
0.0
-1
hien thi thong tin cua 1 DiaChi
@Override public String toString() { return "Tinh: "+ this.tinh + "; Huyen: "+ this.huyen + "; Xa: "+ this.xa; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected static void HienThiChiTiet() {\n\t\t\n\t\ttry {\n\n\t\t\tdtm1.setRowCount(0);\n\n\t\t\tString Sql = \"select SanPham.TenSP, Soluong,DonGia,DVT, DonGia*Soluong from SanPham,HoaDonTiec,ChiTietHoaDonTiec where SanPham.MaSP=ChiTietHoaDonTiec.MaSP and HoaDonTiec.MaHD=ChiTietHoaDonTiec.MaHD and HoaDonTiec.MaHD...
[ "0.69736636", "0.64827245", "0.64420086", "0.6390491", "0.63768655", "0.63080573", "0.6220722", "0.61809635", "0.6160549", "0.59819883", "0.5980519", "0.59760404", "0.59351707", "0.5932524", "0.58775073", "0.5852666", "0.5845014", "0.58325666", "0.5818766", "0.58114976", "0.5...
0.0
-1
trong pham vi cua class ben trong, co the truy cap duoc tat cac cac thanh phan cua class ben ngoai
public void showOuterNguoi() { System.out.println("Ten Nguoi: "+ ten + "; Tuoi: "+ age); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n String word = \"Tenet\";\n String word3 = \"tenet\";\n System.out.println(\"word \" + word);\n word.toLowerCase(); //porównanie bez wielkosci znakow\n //charAt(0) - zero,\n String[]...
[ "0.6238645", "0.61330485", "0.6043717", "0.597549", "0.5956778", "0.5906874", "0.5845286", "0.58411556", "0.5829324", "0.58216476", "0.5782014", "0.57726145", "0.5762337", "0.5742395", "0.5735834", "0.56983334", "0.56828177", "0.5668947", "0.56674707", "0.5661096", "0.5658408...
0.0
-1
trong static member class chi truy cap duoc cac thanh phan static cua class ben ngoai
public void showOuterNguoi() { System.out.println("LOAI DOI TUONG: "+ Nguoi.type); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getTrangthaiChiTiet();", "public PhanSo(){\n tuSo = 0;\n mauSo = 1;\n }", "public void checkVung() {\n\t\tint i = 10;\n\t\tclass Vung{\n\t\t\tpublic String noiSinh;\n\t\t\tpublic String noiCapCMT;\n\t\t\tpublic Vung() {\n\t\t\t\tsuper();\n\t\t\t\t// TODO Auto-generated constructor s...
[ "0.5795114", "0.57821935", "0.57122743", "0.5705902", "0.56589746", "0.5648929", "0.56236404", "0.561894", "0.56185865", "0.56162244", "0.5615232", "0.5608928", "0.55940527", "0.5497014", "0.5479617", "0.5449965", "0.544104", "0.5433143", "0.5407245", "0.5388925", "0.53856796...
0.0
-1
end ChungMinhThu class local la class nam trong 1 ham pham vi cua no cung chi trong ham do ma thoi
public void checkVung() { int i = 10; class Vung{ public String noiSinh; public String noiCapCMT; public Vung() { super(); // TODO Auto-generated constructor stub } public Vung(String noiSinh, String noiCapCMT) { super(); this.noiSinh = noiSinh; this.noiCapCMT = noiCapCMT; } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public String hienThiTT() {\n String thongTin = \"\";\n thongTin = \"ho ten: \" + this.hoTen + \", tuoi: \" + this.tuoi + \", dia chi: \" + this.diaChi\n + \", sdt: \" + this.sdt + \", mon day: \" + this.monDay + \", to bo mon: \" + this.toBoMon;\n \n System.out.println(thongT...
[ "0.67670053", "0.6697991", "0.66178817", "0.6580266", "0.64839447", "0.6410804", "0.6389959", "0.6388603", "0.6367913", "0.63547766", "0.6348264", "0.6334635", "0.63046026", "0.6262646", "0.62493944", "0.6230086", "0.62208575", "0.62071097", "0.61825794", "0.6176046", "0.6173...
0.6468211
5
TODO Autogenerated method stub/ / // quiz Scanner sc = new Scanner(System.in); Sec abc = new Sec(); abc.vending(); int abcd = sc.nextInt(); System.out.println(abc.n(abcd));
public static void main666666(String[] args) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) throws Exception {\n Scanner sc=new Scanner (System.in);\n int n=sc.nextInt();\n pzz(n);\n }", "public static void main(String[] args) throws Exception {\n Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n pzz(n);\n }...
[ "0.64876", "0.64865816", "0.63561934", "0.6320097", "0.6279788", "0.6137848", "0.6127976", "0.6106728", "0.6020737", "0.6019897", "0.60086745", "0.5990058", "0.598076", "0.59716064", "0.59602666", "0.5936158", "0.5899105", "0.5890293", "0.58816785", "0.58790964", "0.5876006",...
0.0
-1
EventBuilder eventBuilder = Event.builder();
protected EventBuilder doEvaluate( Execution execution, AllocationInstructions allocationInstructions, Event previousEvent) { EventBuilder eventBuilder = previousEvent.toBuilder(); Set<ReferenceWithMetaParty> eventParties = new HashSet(); Iterator var6 = eventBuilder.getPrimitive().getAllocation().ite...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Event createEvent();", "Event createEvent();", "private Event(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private Event(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public Event() {\n\n }", "public Event...
[ "0.7338239", "0.7338239", "0.72367376", "0.72367376", "0.7236035", "0.7179065", "0.7072442", "0.7037512", "0.7030263", "0.7010884", "0.6998722", "0.6971973", "0.6904558", "0.68893594", "0.6864251", "0.67946714", "0.67946714", "0.6779456", "0.67502403", "0.6739965", "0.6730247...
0.0
-1
TODO Autogenerated method stub
@Override public BaseService<Object> getService() { return analyticsService; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public Query getQuery(JSONObject json) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public Class<Object> getEntityClass() { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public Pager<Object> getPager() { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.66713095", "0.6567948", "0.652319", "0.648097", "0.64770466", "0.64586824", "0.64132667", "0.6376419", "0.62759", "0.62545097", "0.62371093", "0.62237984", "0.6201738", "0.619477", "0.619477", "0.61924416", "0.61872935", "0.6173417", "0.613289", "0.6127952", "0.6080854", ...
0.0
-1
TODO Autogenerated method stub
@Override public String getCollection() { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
add by Daniel 08/20/2015
@ApiOperation(value = "upload data", notes = "add data from csv file") @RequestMapping(value = "/uploadData", method = RequestMethod.POST) public ResponseEntity<?> uploadData(HttpServletRequest request) throws IOException { CommonsMultipartResolver commonsMultipartResolver = new CustomMultipartResolver( requ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void add() {\n\n\t}", "public void add() {\n\t\t\n\t}", "@Override\n\tpublic void add() {\n\t\t\n\t}", "@Override\r\n\tpublic int add() {\n\t\treturn 0;\r\n\t}", "@Override\n\tpublic int add() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int add() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic in...
[ "0.6948361", "0.62833774", "0.614189", "0.6117237", "0.602875", "0.602875", "0.602875", "0.60231555", "0.59008616", "0.5765709", "0.57291406", "0.56970954", "0.5649942", "0.5638385", "0.56267846", "0.56251", "0.5621403", "0.55960196", "0.55844355", "0.55816114", "0.55784243",...
0.0
-1
Common function :merge two result list to one
@SuppressWarnings({ "rawtypes", "unchecked" }) private static List<Object> mergeResult(List<Object> list1, List<Object> list2) { List<Object> result = new ArrayList<Object>(); for (int i = 0; i < list1.size(); i++) { for (int j = 0; j < list2.size(); j++) { if (Integer.parseInt(((Map) list1.get(i)).get(Mong...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ArrayList<Object> fullUnion(ArrayList<Object> list1 , ArrayList<Object> list2){\r\n ArrayList<Object> retList = new ArrayList<Object>();\r\n retList.addAll(list1);\r\n retList.addAll(list2);\r\n return retList;\r\n }", "public static void main(String[] args) {\n List<...
[ "0.708947", "0.69195706", "0.686243", "0.68360525", "0.67407864", "0.67407864", "0.6728305", "0.6704688", "0.66913426", "0.66530144", "0.65821105", "0.65540934", "0.6552279", "0.64643717", "0.6440934", "0.64169306", "0.6356397", "0.6309257", "0.62929285", "0.62823826", "0.627...
0.7436136
0
Called when the activity is first created.
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); System.out.println("Activity--->onCreate"); FragmentManager manager = getFragmentManager(); FragmentTransaction transaction = manager.beginTransaction(); // 动态增加Frag...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t\tinit();\n\t}", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t}", "@Override\n\tpublic void onActivit...
[ "0.79173684", "0.7726369", "0.7692746", "0.7692746", "0.7692746", "0.7692746", "0.7692746", "0.7692746", "0.7636681", "0.7636681", "0.763111", "0.76181364", "0.76181364", "0.7543469", "0.7539785", "0.7539785", "0.7538629", "0.7527225", "0.75151294", "0.7508903", "0.7500434", ...
0.0
-1
sort all circles by their weight
private void sortByWeight() { for(int i=1; i<circles.size(); i++) { PVCircle temp = circles.get(i); int thisWeight = circles.get(i).getWeight(); int j; for(j=i-1; j>=0; j--) { int compWeight = circles.get(j).getWeight(); if(thisWeight < compWeight) break; else circles.set(j+1, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Comparator<Trio<Pair<String, Integer>, Pair<String,Integer>, Integer>> sortByWeight()\n\t{\n\t\tComparator<Trio<Pair<String, Integer>, Pair<String, Integer>, Integer>> comp = new Comparator<Trio<Pair<String, Integer>, Pair<String, Integer>, Integer>>() {\n\t\t\n\t\t\tpublic int compare(Trio<Pair<Stri...
[ "0.65919864", "0.62428784", "0.6034572", "0.5750097", "0.5729791", "0.57036227", "0.5639599", "0.56053305", "0.5585376", "0.55825657", "0.55497354", "0.5548062", "0.5545196", "0.5496914", "0.5462404", "0.5438244", "0.5417812", "0.54119104", "0.5401717", "0.5401698", "0.539125...
0.874986
0
use iterator to be able to remove
private void positionCircles_() { Iterator<PVCircle> it = circles.iterator(); int indx = 0; Random rng = new Random(); while (it.hasNext()) { PVCircle currCircle = it.next(); //currCircle.setRadius(MAX_RADIUS * (double) currCircle.getWeight() / totalWeight); boolean collision = true; int loopCou...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(expected = UnsupportedOperationException.class)\n public void remove() {\n iterator.next();\n iterator.remove();\n }", "public E remove () throws NoSuchElementException;", "@Override\n public void remove() {\n if(elementToRemove != null){\n if(elementToRemove == l...
[ "0.7338678", "0.72183406", "0.72008795", "0.7001011", "0.6991619", "0.6976209", "0.69351286", "0.6907146", "0.68887866", "0.67278403", "0.67109674", "0.6699161", "0.6699161", "0.6694597", "0.6692142", "0.66775626", "0.6614404", "0.6614156", "0.6595075", "0.6567825", "0.656782...
0.0
-1
Given an integer, convert it to a roman numeral. Input is guaranteed to be within the range from 1 to 3999.
public static void main(String[] args) { int num = 400 ; _12_Integer_to_Roman integer_to_roman = new _12_Integer_to_Roman(); String work = integer_to_roman.work(num); System.out.println("work is: " + work) ; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String intToRoman(int num) {\n String result = \"\";\n\n while (num > 0) {\n if (num >= 1000) {\n result += \"M\";\n num -= 1000;\n } else if (num >= 900) {\n result += \"CM\";\n num -= 900;\n } else i...
[ "0.8133021", "0.8049887", "0.7880601", "0.76976067", "0.76947063", "0.75864035", "0.7583506", "0.75676244", "0.7500319", "0.74313176", "0.6836959", "0.6833274", "0.67061263", "0.6580368", "0.65510964", "0.6515096", "0.6414738", "0.641007", "0.6360509", "0.6359587", "0.6353262...
0.56924856
38
Create a new instance of the receiver.
public MarkersViewPropertyTester() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Receiver() {\n\t\tsuper();\n\t}", "@Override\n\tpublic Receive createReceive() {\n\t\treturn receiveBuilder()\n\t\t\t\t.match(RequestTrackDevice.class, this::onTrackDevice)\n\t\t\t\t.match(Terminated.class, this::onTerminate)\n\t\t\t\t.match(RequestDeviceList.class, this::onDeviceList)\n\t\t\t\t.match(Req...
[ "0.70906395", "0.6641334", "0.6507868", "0.64128685", "0.63960934", "0.63486207", "0.63132036", "0.6251601", "0.6216539", "0.614417", "0.61439496", "0.6141644", "0.61141706", "0.6106975", "0.60777473", "0.6074593", "0.6015089", "0.5991142", "0.59512436", "0.59474814", "0.5940...
0.0
-1
Test if the content generator in the args match the receiver.
private boolean testContentGenerator(ExtendedMarkersView view, Object[] args) { String currentGenerator = view.getBuilder().getGenerator().getId(); for (int i = 0; i < args.length; i++) { if (args[i].equals(currentGenerator)) return true; // The value 'any' works ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:55:06.836 -0500\", hash_original_method = \"9921BFF09FACC23B6D23BD0D026EB023\", hash_generated_method = \"4C8E8780FA3C7A09AF94E1277F10CB12\")\n \npublic boolean match(Object other) {\n if (other instanceof C...
[ "0.563117", "0.53630483", "0.52937984", "0.5293505", "0.5292146", "0.524078", "0.5184179", "0.51624066", "0.515814", "0.51461214", "0.5083348", "0.5051698", "0.502834", "0.5017975", "0.5005527", "0.4985109", "0.49445033", "0.4938953", "0.4938953", "0.4938953", "0.4938953", ...
0.7620071
0
///////// BEGIN EDITABLE //////////////
private static Node toOutline(List<Heading> headings) { // Implement this function. Sample code below builds an // outline of only the first heading. Node root = new Node(new Heading(0, "")); // Map of Nodes with their Node levels as keys. Map<Integer, Node> mapOfNodeLevels = new HashMap<Integer, Node>()...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void edit() {\n\n\t}", "@Override\r\n\tpublic void edit() {\n\t\t\r\n\t}", "public void editOperation() {\n\t\t\r\n\t}", "private void performDirectEdit() {\n\t}", "@Override\n public void handleEditStart ()\n {\n\n }", "public abstract void edit();", "@Override\n\tprotected void updat...
[ "0.7485545", "0.7318794", "0.6937222", "0.6821978", "0.6512094", "0.64470786", "0.6221736", "0.6188952", "0.616287", "0.6094105", "0.6057471", "0.60192096", "0.6000323", "0.5999157", "0.59614325", "0.5906353", "0.589241", "0.5885445", "0.5882659", "0.5872946", "0.5872946", ...
0.0
-1
///////// END EDITABLE ////////////// Parses a line of input. This implementation is correct for all predefined test cases.
private static Heading parse(String record) { String[] parts = record.split(" ", 2); int weight = Integer.parseInt(parts[0].substring(1)); Heading heading = new Heading(weight, parts[1].trim()); return heading; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract T parseLine(String inputLine);", "protected abstract void parse(String line);", "public void parseInput(Scanner sc, String inputLine) {\n String[] input = inputLine.split(\",\");\n assert(input[0].equals(\"R\"));\n this.warehouseID = Integer.parseInt(input[1]);\n thi...
[ "0.8049759", "0.76047367", "0.70629877", "0.6660948", "0.65371674", "0.650462", "0.6483584", "0.6480625", "0.6473734", "0.64709646", "0.6382725", "0.6350957", "0.6345438", "0.6331768", "0.6325815", "0.6320784", "0.6317666", "0.62078536", "0.616864", "0.6162717", "0.614841", ...
0.0
-1
Converts a node to HTML. This implementation is correct for all predefined test cases.
private static String toHtml(Node node) { StringBuilder buf = new StringBuilder(); if (!node.heading.text.isEmpty()) { buf.append(node.heading.text); buf.append("\n"); } Iterator<Node> iter = node.children.iterator(); if (iter.hasNext()) { buf.append("<ul>"); while (iter.hasNext()) { Node chi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String domToString(Node node) throws UMROException {\r\n\r\n // Use a Transformer for output\r\n TransformerFactory tFactory = TransformerFactory.newInstance();\r\n Transformer transformer = null;\r\n try {\r\n transformer = tFactory.newTransformer();\r\n ...
[ "0.6243456", "0.6081211", "0.6079882", "0.5775963", "0.5743272", "0.5714488", "0.570504", "0.5701612", "0.5668277", "0.55633235", "0.54712194", "0.54458493", "0.54077834", "0.54005015", "0.53686184", "0.5342548", "0.5339575", "0.53195125", "0.5303204", "0.526039", "0.5259865"...
0.69929045
0
Get Surveiller Details Of all the Component.
public static List<HealthCheckVO> getSurveillerDetailsOfComponent(boolean isDummyHealth) { HashMap<Long,HealthCheckVO> healthCheckVOMap = new HashMap<Long,HealthCheckVO>(); Session session = HibernateConfig.getSessionFactory().getCurrentSession(); Transaction txn = session.beginTransaction(); Criteria healthC...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected Object[] get_ComponentInfo()\n {\n return new Object[]\n {\n \"ReporterMBean contains settings and statistics for the Coherence JMX Reporter.\",\n \"com.bea.owner=Context,com.bea.VisibleToPartitions=ALWAYS\",\n };\n }", "public List getPo...
[ "0.59107286", "0.5684355", "0.55813175", "0.5481689", "0.54512954", "0.5419652", "0.5345941", "0.5283025", "0.5183297", "0.51472104", "0.5140242", "0.5131466", "0.5129775", "0.5125835", "0.51217353", "0.51197577", "0.5106805", "0.5105062", "0.5074101", "0.5073953", "0.5073226...
0.0
-1
Get all the environment details
public static List<EnvironmentVO> getAllEnvironments() throws SQLException { ArrayList<EnvironmentVO> environmentVOs = new ArrayList<EnvironmentVO>(); Session session = HibernateConfig.getSessionFactory().getCurrentSession(); Transaction txn = session.beginTransaction(); Criteria envCriteria = session.createCri...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Map<String, String> getEnvironment();", "public synchronized Map<String, String> getEnvironment() throws Fault {\n if (env == null) {\n // reconstitute environment\n // this may result in a Fault, which is okay\n reload();\n }\n return PropertyArray.ge...
[ "0.7503618", "0.73512733", "0.7350799", "0.72285134", "0.717996", "0.71411985", "0.71411985", "0.71367586", "0.70153373", "0.69055676", "0.68585354", "0.6727734", "0.6704461", "0.66673", "0.6647733", "0.66108656", "0.66071486", "0.65755737", "0.6548353", "0.6545976", "0.65283...
0.64737976
25
Updates the Health CheckStatus In DB.
public static List<HealthCheckVO> updateHealthCheckStatusInDB(List<HealthCheckVO> healthCheckVOs) throws SQLException { List<HealthCheckVO> returnStatusChangedList = new ArrayList<HealthCheckVO>(); for (HealthCheckVO healthCheckVO : healthCheckVOs) { if(healthCheckVO.getStatus() == null) { logger.error("S...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void updateHealthCheckStatus(final HealthCheckVO healthCheckVO, final int currentFailedCount) {\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\t\n\t\tfinal Status status = healthCheckVO.getStatus().getStatus();\n...
[ "0.6907322", "0.6595762", "0.6166049", "0.6114327", "0.5975223", "0.58480495", "0.5828713", "0.5820819", "0.56645906", "0.5569814", "0.55673605", "0.55578005", "0.5552181", "0.54829884", "0.5480843", "0.545154", "0.54503596", "0.5449034", "0.5370845", "0.5345109", "0.5328075"...
0.67985547
1
Function to update the marathon JSON in envronment
public static void updateEnvironmentDetails( List<EnvironmentVO> environmentVOs) { for (EnvironmentVO eVO : environmentVOs) { if (eVO.getMarathonJson() != null && JSONUtil.isJSONValid(eVO.getMarathonJson())) { updateWestMarathonJson(eVO); } if (eVO.getEastMarathonJson() != null && JSONUtil.isJSONValid...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void updateApp(String marathonJson);", "void deployApp(String marathonJson);", "public static void updateWestMarathonJson(final EnvironmentVO environmentVO) {\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tQuery query = se...
[ "0.7903733", "0.6846991", "0.6632398", "0.64456654", "0.6137083", "0.5865225", "0.54033846", "0.539835", "0.5255236", "0.5244594", "0.51968825", "0.51764494", "0.5153239", "0.51315635", "0.51297355", "0.5122711", "0.5120652", "0.50942713", "0.5071969", "0.5036429", "0.5035328...
0.54526156
6
Update the status in DB for the given healthCheckVO.
private static boolean updateStatus(HealthCheckVO healthCheckVO) { Status status = healthCheckVO.getStatus().getStatus(); long currentFailedCount = 0; if (status != Status.UP) { if (healthCheckVO.getHealthCheckRetryCurrentCount() == null) { currentFailedCount = 1; } else { currentFailedCount = he...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void updateHealthCheckStatus(final HealthCheckVO healthCheckVO, final int currentFailedCount) {\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\t\n\t\tfinal Status status = healthCheckVO.getStatus().getStatus();\n...
[ "0.74504757", "0.68415546", "0.62256867", "0.600189", "0.5962937", "0.58340174", "0.58214945", "0.57726943", "0.56886476", "0.5560965", "0.54807526", "0.5341747", "0.5331027", "0.5327717", "0.52876085", "0.52812374", "0.5217117", "0.5202716", "0.51923275", "0.51666397", "0.51...
0.7585615
0
Update the status and message in comp_failure_log.
private static boolean updateFilureLog(final HealthCheckVO healthCheckVO, final long currentFailedCount) { final Status status = healthCheckVO.getStatus().getStatus(); //Update the failure log only if there is a status change if (status == healthCheckVO.getCurrentStatus()) { return false; } //Even if th...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void engineFailureStatus() {\n \tthis.engineFailureActive = this.trainModelGUI.engineFailStatus();\n }", "private void updateStatus(boolean success) {\n if (success) {\n try {\n callSP(buildSPCall(MODIFY_STATUS_PROC));\n } catch (SQLException exception) {\...
[ "0.6310793", "0.59530836", "0.59101844", "0.58114594", "0.5796318", "0.57535094", "0.5705836", "0.56879675", "0.55965877", "0.5595312", "0.5592505", "0.5578057", "0.5543081", "0.55414426", "0.55198956", "0.5510062", "0.55050355", "0.549956", "0.54841816", "0.54817045", "0.542...
0.6501829
0
Updates the HEALTH_CHECK table with status.
private static void updateHealthCheckStatus(final HealthCheckVO healthCheckVO, final int currentFailedCount) { Session session = HibernateConfig.getSessionFactory().getCurrentSession(); Transaction txn = session.beginTransaction(); final Status status = healthCheckVO.getStatus().getStatus(); if ((healthCheck...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static boolean updateStatus(HealthCheckVO healthCheckVO)\n\t\t\t{\n\t\tStatus status = healthCheckVO.getStatus().getStatus();\n\t\tlong currentFailedCount = 0;\n\t\tif (status != Status.UP) {\n\t\t\tif (healthCheckVO.getHealthCheckRetryCurrentCount() == null) {\n\t\t\t\tcurrentFailedCount = 1;\n\t\t\t} els...
[ "0.57187104", "0.56707966", "0.5632532", "0.5566291", "0.54590183", "0.5427545", "0.54263496", "0.5366543", "0.53638715", "0.52923495", "0.52706575", "0.52706575", "0.52661616", "0.5259572", "0.5246195", "0.5203777", "0.5172974", "0.5158694", "0.51378715", "0.51294655", "0.51...
0.5737607
0
Function the update the marathon json in the environment table
public static void updateWestMarathonJson(final EnvironmentVO environmentVO) { Session session = HibernateConfig.getSessionFactory().getCurrentSession(); Transaction txn = session.beginTransaction(); Query query = session.createQuery(HQLConstants.DB_QUERY_UPDATE_MARATHON_JSON); query.setBinary("marathonJson", e...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void updateApp(String marathonJson);", "public static void updateEastMarathonJson(final EnvironmentVO environmentVO) {\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tQuery query = session.createQuery(HQLConstants.DB_QUERY_UP...
[ "0.70817536", "0.68849206", "0.5910109", "0.5632381", "0.55566484", "0.55200857", "0.53854066", "0.53628385", "0.53148866", "0.5159423", "0.51357657", "0.49972212", "0.4930647", "0.4918032", "0.49119985", "0.4900467", "0.4896073", "0.48848888", "0.48609647", "0.4857745", "0.4...
0.69746184
1
Function the update the East marathon json in the environment table
public static void updateEastMarathonJson(final EnvironmentVO environmentVO) { Session session = HibernateConfig.getSessionFactory().getCurrentSession(); Transaction txn = session.beginTransaction(); Query query = session.createQuery(HQLConstants.DB_QUERY_UPDATE_EAST_MARATHON_JSON); query.setBinary("marathonJso...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void updateWestMarathonJson(final EnvironmentVO environmentVO) {\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tQuery query = session.createQuery(HQLConstants.DB_QUERY_UPDATE_MARATHON_JSON);\n\t\tquery.setBinary(...
[ "0.71024144", "0.6522672", "0.5956367", "0.5611386", "0.55444586", "0.54469174", "0.54332846", "0.53963214", "0.52731246", "0.5262559", "0.5047643", "0.5016752", "0.49377498", "0.49245694", "0.49122235", "0.48492068", "0.48469448", "0.48466146", "0.48393622", "0.48314875", "0...
0.7457901
0
Checks the current Status and updates the comp_failure_log.
public static boolean checkAndUpdateMessage(final int componentId, final int environmentId, final long regionID,final HealthCheckType healthCheckType, final Status currentStatus, final String marathonMessage) { HealthCheckVO currentDBData = getCurrentHealthCheckDetails(componentId, environmentId,regionID,health...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static boolean updateFilureLog(final HealthCheckVO healthCheckVO, final long currentFailedCount) {\n\t\tfinal Status status = healthCheckVO.getStatus().getStatus();\n\t\t\n\t\t//Update the failure log only if there is a status change\n\t\tif (status == healthCheckVO.getCurrentStatus()) {\n\t\t\treturn fals...
[ "0.7107839", "0.6595987", "0.64398557", "0.6134198", "0.6051725", "0.595811", "0.59422576", "0.59053016", "0.58878976", "0.5881093", "0.5826945", "0.57169354", "0.5693312", "0.5674825", "0.5664757", "0.5644801", "0.5641061", "0.562658", "0.5620156", "0.56096435", "0.5603488",...
0.0
-1
get CurrentHealth Check Details from DB.
private static HealthCheckVO getCurrentHealthCheckDetails(final int componentId, final int environmentId, final long regionID) { return getCurrentHealthCheckDetails(componentId, environmentId, regionID, null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic Health getHealthInfo(String id) {\n\t\t RestTemplate restTemplate = new RestTemplate();\n\t\t \n\t\t Health healthInfo = restTemplate.getForObject(BASE_URL + HEALTH_STATUS_URL, Health.class, id);\n\t\t logger.debug(\"Employee Info :\" + healthInfo);\n\t\treturn healthInfo;\n\t}", "private sta...
[ "0.625196", "0.6083103", "0.6045668", "0.57399166", "0.57312745", "0.5695957", "0.5502014", "0.5428177", "0.5377691", "0.52975416", "0.52961665", "0.5235494", "0.5224282", "0.5197403", "0.518053", "0.5132678", "0.50796986", "0.5061665", "0.5060643", "0.50543237", "0.5044443",...
0.54317415
7
get CurrentHealth Check Details from DB.
private static HealthCheckVO getCurrentHealthCheckDetails(final int componentId, final int environmentId, final long regionID,final HealthCheckType healthCheckType) { Session session = HibernateConfig.getSessionFactory().getCurrentSession(); Transaction txn = session.beginTransaction(); Criteria hcCrit = sessi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic Health getHealthInfo(String id) {\n\t\t RestTemplate restTemplate = new RestTemplate();\n\t\t \n\t\t Health healthInfo = restTemplate.getForObject(BASE_URL + HEALTH_STATUS_URL, Health.class, id);\n\t\t logger.debug(\"Employee Info :\" + healthInfo);\n\t\treturn healthInfo;\n\t}", "public stat...
[ "0.62530744", "0.6048262", "0.5739983", "0.57326686", "0.56992406", "0.5502863", "0.5430135", "0.54292816", "0.53775936", "0.5297868", "0.5297517", "0.5235873", "0.52259386", "0.5197938", "0.5178477", "0.5132066", "0.5083122", "0.50641835", "0.5061519", "0.50569415", "0.50458...
0.60822177
1
Updates the initial status for DUMMY Health Check Handler.
public static void updateMarathonHealthCheckStatus(final int componentId, final int environmentId, final long regionID,final HealthCheckType healthCheckType, final Status status, boolean isStatusChanged) { String queryString = HQLConstants.DB_QUERY_UPDATE_HEALTH_CHECK_STATUS_NO_CHG; if(isStatusChanged){ query...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public HwStatus() {\n \t\tsuper();\n \t\tthis.hwSig = 0;\n \t\tthis.microtickPeriod = 10000;\t// default\n \t\tthis.cf_version = \"\";\n \t}", "public void setInitialStatus(InstanceStatus initialStatus)\n {\n this.initialStatus = initialStatus;\n }", "protected void init_status(String id) {\n\t\ts...
[ "0.58590114", "0.5825147", "0.5817693", "0.57679206", "0.5753623", "0.56838304", "0.5658404", "0.56200016", "0.5601648", "0.5598539", "0.55920273", "0.5542074", "0.55258685", "0.5512498", "0.5507588", "0.5498643", "0.54982144", "0.54891646", "0.54776734", "0.5460602", "0.5448...
0.0
-1
Function to check and insert components into the DB
public static int checkAndInsertComponent(final String appName, final String apiName, final ComponentType compType, final String healthCheckURL, final int environmentId, final long regionID, final HealthCheckType healthCheckType, String platform) { //Handle special case - Name change and Component ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean insert()throws Exception{\n String query = \"INSERT INTO \" + tableName + \" VALUES(?, ?, ?)\";\n PreparedStatement pstm = this.con.prepareStatement(query);\n\n pstm.setObject(1, Name.getText().trim());\n pstm.setObject(2, City.getText().trim());\n pstm.setObject(...
[ "0.6581126", "0.62436026", "0.6158328", "0.6104002", "0.60802066", "0.59623724", "0.59616166", "0.592088", "0.59177375", "0.59163755", "0.59033215", "0.58955693", "0.5856643", "0.58546895", "0.5840508", "0.5835445", "0.5834832", "0.5827406", "0.58186173", "0.58139354", "0.580...
0.0
-1
Read the application config for Marathon refresh transformation.
public static AppTransformConfig readAppTransformConfig() { if(triedLoadingTransformConfig){ return config; } triedLoadingTransformConfig = true; try { ObjectMapper mapper = new ObjectMapper(); InputStream in = new FileInputStream("transform.json"); config = mapper.readValue(in, AppTransformConfig.c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Map<String, Object> getAppConfig() throws IOException {\n Properties properties = PropertiesReader.loadProperties(new FileInputStream(\"src/main/resources/app.properties\"));\n\n String appPathValue = properties.getProperty(\"app.path\");\n appPathValue = System.getProperty(\"use...
[ "0.61003405", "0.57752043", "0.57654315", "0.5681234", "0.55766624", "0.55471367", "0.55247766", "0.54669535", "0.54636526", "0.5452375", "0.5430175", "0.5400469", "0.5383401", "0.5382973", "0.5379008", "0.53633946", "0.5312907", "0.5303969", "0.5298136", "0.52893496", "0.528...
0.6553812
0
Delete all the health_chaeck param of the healthCheckId
private static void removeHealthCheckParams(final Long healthCheckId) { Session session = HibernateConfig.getSessionFactory().getCurrentSession(); Transaction txn = session.beginTransaction(); Query query = session.createQuery(HQLConstants.DB_QUERY_DELETE_HEALTH_CHECK_PARAMS); query.setLong("healthCheckId", hea...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@ContextCheck(compile = true)\n\tpublic static void checkDeleteAll(OperatorContextChecker checker) {\n\t\tHBASEPutDelete.compileTimeChecks(checker, \"HBASEDelete\");\n\t\tOperatorContext context = checker.getOperatorContext();\n\t\tSet<String> params = context.getParameterNames();\n\t\tif (params.contains(DELETE_A...
[ "0.60440326", "0.5813594", "0.5810001", "0.5537065", "0.54714394", "0.54115665", "0.53502846", "0.53480375", "0.5325867", "0.5323175", "0.5303507", "0.5295113", "0.5283494", "0.5264934", "0.52581227", "0.52531606", "0.5237513", "0.5233733", "0.52249837", "0.51922345", "0.5178...
0.7222672
0
Update the healthCheckTypeId and delInd = 0 for the given healthCheckId.
private static void updateHealthCheck(final Long healthCheckId, final Integer healthCheckTypeId) { Session session = HibernateConfig.getSessionFactory().getCurrentSession(); Transaction txn = session.beginTransaction(); Query query = session.createQuery(HQLConstants.DB_QUERY_UPDATE_HEALTH_CHECK_TYPE); query.set...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void removeHealthCheckParams(final Long healthCheckId) {\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tQuery query = session.createQuery(HQLConstants.DB_QUERY_DELETE_HEALTH_CHECK_PARAMS);\n\t\tquery.setLong(\"h...
[ "0.5608556", "0.51049215", "0.48802024", "0.47298434", "0.454885", "0.44502613", "0.44269475", "0.44130638", "0.43666014", "0.4352959", "0.42961386", "0.4285699", "0.42723292", "0.42095894", "0.42056468", "0.4204499", "0.41752863", "0.41643032", "0.41555893", "0.41550344", "0...
0.7180508
0
Get the if Component Table if component is already present. Insert Data if the Component is not present. Update del_ind if component is deleted.
private static int insertParentComponent(final String appName, final ComponentType compType, String platform) { int appId = getComponentByNameAndParent(appName, 0, compType.getComponentTypeId(), platform); if (appId == 0) { insertComponent(appName, 0, compType.getComponentTypeId(), false, platform); appId = g...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String addComponent() throws Exception {\n\t\ttry {\n\t\t\tLOGGER.info(\n\t\t\t\t\t\"Start of DataListTableBean.addComponent()\");\n\t\t\tcomponentService.addComponent(component);\n\t\t\tdataList = componentService.findAllComponent();\n\t\t\t\n\t\t\tFacesMessage facesMessage = new FacesMessage(FacesMessage....
[ "0.55192035", "0.49899346", "0.49350736", "0.48952013", "0.4809543", "0.47986344", "0.47958097", "0.47634318", "0.47535545", "0.47355565", "0.46772432", "0.4602474", "0.45940265", "0.4591675", "0.45724565", "0.45403314", "0.45352602", "0.45335028", "0.4519413", "0.45144978", ...
0.0
-1
Get the component id with the given name and parent id. If a row is already present with del_ind = 1, it will be updated as 0.
public static int getComponentByNameAndParent(final String name, final int parentId, final int componentTypeId, String platform) { Session session = HibernateConfig.getSessionFactory().getCurrentSession(); Transaction txn = session.beginTransaction(); Criteria healthCheckCriteria = session.createCriteria(Compo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int getComponentId(final String compName, final String parentCompName) {\n\t\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tCriteria componentCriteria = session.createCriteria(ComponentEntity.class);\n\t\tcompone...
[ "0.7135265", "0.6678693", "0.6338618", "0.59891075", "0.59497404", "0.5804281", "0.57731897", "0.57052517", "0.5634453", "0.5614114", "0.5446396", "0.5436999", "0.5307241", "0.530492", "0.5291977", "0.52708036", "0.523263", "0.5204816", "0.51943773", "0.5149169", "0.5137477",...
0.6448928
2
Set the DelInd of Component table.
private static void setDelIndOfComponent(final int componentId, final int delInd) { Session session = HibernateConfig.getSessionFactory().getCurrentSession(); Transaction txn = session.beginTransaction(); Query query =session.createQuery(HQLConstants.DB_QUERY_UPDATE_COMPONENT_DELIND); query.setLong("delInd", de...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setDel(Integer del) {\r\n\t\tthis.del = del;\r\n\t}", "@Override\n\tpublic void delete(Integer deptno) {\n\t\t\n\t}", "public Integer getDel() {\r\n\t\treturn del;\r\n\t}", "public void setDelmark(Integer delmark) {\n this.delmark = delmark;\n }", "@SuppressWarnings(\"unchecked\")\n ...
[ "0.60726863", "0.5588262", "0.53460765", "0.53174156", "0.52985257", "0.5279519", "0.5240671", "0.5231701", "0.5231701", "0.5230531", "0.5208954", "0.5192573", "0.5164197", "0.5136296", "0.5131366", "0.5127641", "0.51012564", "0.5082523", "0.5082031", "0.50739884", "0.5049538...
0.7360749
0
Function to get Component from component id
public static ComponentVO getComponent(final int componentId) { Session session = HibernateConfig.getSessionFactory().getCurrentSession(); Transaction txn = session.beginTransaction(); ComponentEntity comp = session.get(ComponentEntity.class, componentId); txn.commit(); ComponentVO cVO = new ComponentVO();...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getComponentId();", "public Component getComponent(long id) {\n\t\treturn (Component)sessionFactory.getCurrentSession().get(Component.class, id);\n\t}", "public UUID getComponentId();", "public Component getComponent(int componentId) {\r\n if (opened != null && opened.getId() == componen...
[ "0.7669638", "0.751834", "0.73494977", "0.7326221", "0.7157524", "0.70262283", "0.6940492", "0.6654378", "0.66399086", "0.6501789", "0.6392944", "0.63580054", "0.6333266", "0.63221204", "0.6283975", "0.6283368", "0.62641865", "0.62578976", "0.6253261", "0.6253261", "0.6249698...
0.5844336
39
Function to insert a new component into the DB.
public static void insertComponent(final String name, final int parentId, final int componentType, boolean hasParent, String platform) { Session session = HibernateConfig.getSessionFactory().getCurrentSession(); Transaction txn = session.beginTransaction(); ComponentEntity componentEntity = new ComponentEntity...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public void insert( Component component, Plugin plugin )\r\n {\r\n DAOUtil daoUtil = new DAOUtil( SQL_QUERY_INSERT, plugin );\r\n\r\n component.setId( newPrimaryKey( plugin ) );\r\n\r\n daoUtil.setInt( 1, component.getId( ) );\r\n daoUtil.setString( 2, component.getG...
[ "0.7349599", "0.6500363", "0.64401406", "0.6398189", "0.6354247", "0.62467283", "0.6188264", "0.6185661", "0.61780226", "0.6177547", "0.61772645", "0.61533916", "0.61533916", "0.61299694", "0.61264384", "0.6102536", "0.6080276", "0.6065256", "0.6036124", "0.60212255", "0.5981...
0.60346013
19
Insert in to Health_Check_Param table.
public static void insertHealthCheckParam(final long healthCheckId, final String healthCheckParamKey, final String healthCheckPramVal) { Session session = HibernateConfig.getSessionFactory().getCurrentSession(); Transaction txn = session.beginTransaction(); HealthCheckParamEntity hcpEntity = new HealthCheckPar...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Insert({\n \"insert into B_UMB_CHECKING_LOG (JNLNO, TRANDATE, \",\n \"ACCOUNTDATE, CHECKTYPE, \",\n \"STATUS, DONETIME, FILENAME)\",\n \"values (#{jnlno,jdbcType=VARCHAR}, #{trandate,jdbcType=VARCHAR}, \",\n \"#{accountdate,jdbcType=VARCHAR}, #{checktype,jdbcType=CHAR}, \",\n ...
[ "0.60373205", "0.5850249", "0.5782086", "0.56993014", "0.56876284", "0.5676407", "0.5675208", "0.56538826", "0.56295586", "0.5581731", "0.55380017", "0.548805", "0.54471594", "0.5442848", "0.54416263", "0.5431838", "0.5422712", "0.5413792", "0.54063433", "0.540036", "0.539346...
0.6791266
0
Insert in Health_Check table.
public static void insertHealthCheck(final int componentId, final Long regionId, final int environmentId, final int healthCheckTypeId, final int maxRetryCount) { Session session = HibernateConfig.getSessionFactory().getCurrentSession(); Transaction txn = session.beginTransaction(); HealthCheckEntity healthE...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Integer insert(ChronicCheck record);", "public void insert() throws LRException\n\t{\n\t\tDataHRecordData myData=(DataHRecordData)getData();\n\t\tgetBackground();\n\t\ttry { myData.record.save(background.getClient()); }\n\t\tcatch (LDBException e) { setStatus(e); }\n\t}", "@Override\n\tpublic int insert(Electr...
[ "0.66467583", "0.6547429", "0.6377034", "0.6278137", "0.6164675", "0.6130675", "0.6108128", "0.60725504", "0.60651153", "0.60243726", "0.6012513", "0.6010716", "0.5973945", "0.5962757", "0.5936567", "0.5933157", "0.59271234", "0.5922526", "0.58998024", "0.5855313", "0.5845334...
0.5676241
50
Function to get all components in database
public static List<ComponentVO> getAllAPIComponentDetails(final int environmentId, String platform, long regionId) { AppTransformConfig config = readAppTransformConfig(); Session session = HibernateConfig.getSessionFactory().getCurrentSession(); Transaction txn = session.beginTransaction(); Criteria he...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Compte> findAll() {\n\t\treturn dao.findAll();\n\t}", "@Override\r\n public Collection<Component> selectComponentsList( Plugin plugin )\r\n {\r\n Collection<Component> componentList = new ArrayList<Component>( );\r\n DAOUtil daoUtil = new DAOUtil( SQL_QUERY_SELECTALL, plugin );\r\...
[ "0.6604304", "0.6560085", "0.6458518", "0.63760644", "0.6285447", "0.6275194", "0.6234653", "0.6224761", "0.61966395", "0.6177787", "0.61704797", "0.613376", "0.61264616", "0.6121158", "0.6117642", "0.608173", "0.6070707", "0.606968", "0.6050453", "0.60450405", "0.6043338", ...
0.0
-1
Function to update the delInd of component and health check
public static void updateDelIndForHealthCheck(final int compId, final int delInd, final int enviromentId, final Long regionID) { Session session = HibernateConfig.getSessionFactory().getCurrentSession(); Transaction txn = session.beginTransaction(); Query query =session.createQuery(HQLConstants.DB_QUERY_UPDATE...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void setDelIndOfComponent(final int componentId, final int delInd) {\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tQuery query =session.createQuery(HQLConstants.DB_QUERY_UPDATE_COMPONENT_DELIND);\n\t\tquery.set...
[ "0.58501774", "0.54813623", "0.5446228", "0.5287651", "0.5268249", "0.5260968", "0.52258307", "0.51890475", "0.5174295", "0.5141862", "0.51398593", "0.51396155", "0.5136739", "0.5129747", "0.5054123", "0.50405383", "0.5037472", "0.5010427", "0.50084513", "0.5001959", "0.49979...
0.5405058
3
Function to get all subscriptions from the DB
public static List<SubscriptionVO> getAllSubscriptions(Set<Integer> compIdSet) { Session session = HibernateConfig.getSessionFactory().getCurrentSession(); Transaction txn = session.beginTransaction(); Query query = session.createQuery(HQLConstants.DB_QUERY_ALERT_SUB_WITH_COMP); query.setParameterList("componen...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Collection<Subscription> getSubscriptions();", "List<Subscription> findAll();", "List<Subscription> findAllActiveSubscriptions();", "private void readSubscriptions() {\n DatabaseReference reference = FirebaseDatabase.getInstance(\"https://projectsub-9f668-default-rtdb.europe-west1.firebasedatabase.app...
[ "0.8256677", "0.8090886", "0.7905246", "0.78278786", "0.7645244", "0.72318596", "0.71901053", "0.7171087", "0.7170856", "0.70638597", "0.7051532", "0.68051195", "0.67977065", "0.67591673", "0.6746375", "0.6716011", "0.6649933", "0.6504598", "0.63217676", "0.6204959", "0.62002...
0.6550453
17
Function to get all subscriptions from the DB
public static List<CounterDetailVO> getCounterDetails() { Session session = HibernateConfig.getSessionFactory().getCurrentSession(); Transaction txn = session.beginTransaction(); Criteria envCriteria = session.createCriteria(EnvCounterEntity.class); envCriteria.addOrder(Order.desc("environmentId")); envCriter...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Collection<Subscription> getSubscriptions();", "List<Subscription> findAll();", "List<Subscription> findAllActiveSubscriptions();", "private void readSubscriptions() {\n DatabaseReference reference = FirebaseDatabase.getInstance(\"https://projectsub-9f668-default-rtdb.europe-west1.firebasedatabase.app...
[ "0.8257364", "0.8091449", "0.79060525", "0.78281015", "0.7645198", "0.7232529", "0.7190307", "0.717173", "0.7169948", "0.70641935", "0.7052577", "0.6805728", "0.6798693", "0.676004", "0.6747689", "0.6715452", "0.6650111", "0.6550288", "0.6504296", "0.6322544", "0.6204967", ...
0.0
-1
Insert value into COUNTER_METRIC table.
public static void addCounterMertic(final int environmentCounterId, final float counterMerticValue, Timestamp currDate) { Session session = HibernateConfig.getSessionFactory().getCurrentSession(); Transaction txn = session.beginTransaction(); CounterMetricEntity counterMetric = new CounterMetricEntity(); EnvCou...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void counter(MetricCounter<Integer> metric, int value);", "void insert(Metric metric) throws MetricException;", "public void counter(MetricCounter<Long> metric, long value);", "@Insert\n long insert(Measurement measurement);", "public static void addCounterMetricHistory(final int environmentCount...
[ "0.66115427", "0.66001683", "0.6276994", "0.5947607", "0.59334016", "0.58382523", "0.5829243", "0.55992436", "0.5576977", "0.557017", "0.5523173", "0.54627144", "0.54155815", "0.53977233", "0.5362445", "0.53512377", "0.5341843", "0.533632", "0.5319588", "0.52889806", "0.52870...
0.6141922
3
Code Changes to store Counter Metric History Insert value into COUNTER_METRIC_HISTORY table.
public static void addCounterMetricHistory(final int environmentCounterId, final float counterMerticValue) { Timestamp currDate = new java.sql.Timestamp(Calendar.getInstance().getTimeInMillis()); Session session = HibernateConfig.getSessionFactory().getCurrentSession(); Transaction txn = session.beginTransaction...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void addCounterMertic(final int environmentCounterId, final float counterMerticValue, Timestamp currDate) {\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tCounterMetricEntity counterMetric = new CounterMetricEnti...
[ "0.6462762", "0.6252454", "0.61406875", "0.59603214", "0.58326375", "0.5642441", "0.5638362", "0.5621538", "0.55219764", "0.55141413", "0.5416211", "0.54060066", "0.539897", "0.5386703", "0.5372271", "0.53504086", "0.53352654", "0.53249264", "0.5293341", "0.52756596", "0.5266...
0.7261087
0
Get the metric_val for the latest metric_date for the given envCountId.
public static float getTotalTransaction(final int envCountId) { Session session = HibernateConfig.getSessionFactory().getCurrentSession(); Transaction txn = session.beginTransaction(); Query query = session.createQuery(HQLConstants.DB_QUERY_GET_COUNTER_T_TRANSACTION); query.setInteger("envCountId",envCountId...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected Object getMetricValue(ObjectName metricObjectName)\n {\n Object metricValue;\n try\n {\n try\n {\n metricValue = getMBeanAttribute(metricObjectName, \"Value\");\n }\n catch (AttributeNotFoundException ignored)\n ...
[ "0.4787825", "0.4787825", "0.4773575", "0.47265553", "0.4642364", "0.45219764", "0.4353998", "0.4276454", "0.4268351", "0.42356348", "0.41993907", "0.41848215", "0.41499847", "0.40845415", "0.4076342", "0.40670523", "0.40437755", "0.40296397", "0.40192738", "0.39831692", "0.3...
0.3988413
19
Function to execute a delete statement..
public static void executeDelete(String query) { Session session = HibernateConfig.getSessionFactory().getCurrentSession(); Transaction txn = session.beginTransaction(); session.createSQLQuery(query).executeUpdate(); txn.commit(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void delete(String... args) throws SQLException {\n\t\t\n\t}", "@Override\r\n\tpublic void delete(TQssql sql) {\n\r\n\t}", "@Override\n\tpublic String deleteStatement() throws Exception {\n\t\treturn null;\n\t}", "@Override\n public String deleteStatement() throws Exception {\n ret...
[ "0.77254355", "0.7513195", "0.74040157", "0.7354886", "0.73497677", "0.7325436", "0.7181444", "0.71431744", "0.70973146", "0.7089056", "0.7060903", "0.7060903", "0.7060903", "0.7060903", "0.7060903", "0.7060903", "0.703032", "0.7013776", "0.69629765", "0.6962338", "0.69495", ...
0.0
-1
Function to find the % of UPTIME counter value
public static float getCCPUpTime(final int envId, final String [] parentComponentNames) { final java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis()); Session session = HibernateConfig.getSessionFactory().getCurrentSession(); Transaction txn = session.beginTransaction(); Query...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getUpSeconds() {\n return (int)((_uptime % 60000) / 1000);\n }", "int getPercentageHeated();", "int getHPPerSecond();", "public double getUtilization(Myhost myhost)\n {\n return ((double)(myhost.getTotalCpu()-myhost.getAvaliableCpu()) / myhost.getTotalCpu());\n }", "int ge...
[ "0.6782158", "0.65815187", "0.64952457", "0.64615566", "0.637873", "0.63411534", "0.6330729", "0.6274358", "0.6205979", "0.6189542", "0.6183914", "0.609809", "0.60898596", "0.6070111", "0.6044989", "0.6034394", "0.60282093", "0.6019848", "0.59991914", "0.59882694", "0.5975013...
0.55951023
56
Get the Number of Services Running
public static int getNumberOfServices(CounterDetailVO counterDetails) { Session session = HibernateConfig.getSessionFactory().getCurrentSession(); Transaction txn = session.beginTransaction(); Query query = session.createQuery(HQLConstants.DB_QUERY_GET_NUMBER_OF_SERVICES); query.setInteger("envId", counterDetai...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getServicesCount();", "int getServicesCount();", "public int getServicesCount() {\n return services_.size();\n }", "public int getServicesCount() {\n return services_.size();\n }", "public final int getServiceCount() {\r\n return this.m_service_count;\r\n }", "public int getServic...
[ "0.8164767", "0.8164767", "0.7876962", "0.7876962", "0.77367085", "0.7691482", "0.7691482", "0.73009276", "0.7032953", "0.6952744", "0.68785787", "0.6839518", "0.68260986", "0.68220425", "0.67919254", "0.67524", "0.67524", "0.67524", "0.67309684", "0.66542786", "0.66492224", ...
0.6775367
15
Get the Marathon Json for each environment for all Environment
public static Map<Integer, Blob> getMarathonJson() { Session session = HibernateConfig.getSessionFactory().getCurrentSession(); Transaction txn = session.beginTransaction(); Criteria envCrit = session.createCriteria(EnvironmentEntity.class, "env"); envCrit.add(Restrictions.isNotNull("env.marathonURL")); @Supp...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void getMarathonJson(EnvironmentVO environmentVO) throws Exception {\n\t\tlogger.debug(\"Running Marathon Backup for environment: \" + environmentVO.getEnvironmentName());\n\t\tString marathonJson = null;\n\t\tString eastMarathonJson = null;\n\t\tif(environmentVO.getMarathonUrl() != null && !environ...
[ "0.6742313", "0.62628347", "0.6072011", "0.5451008", "0.5306518", "0.53060514", "0.51898116", "0.51204705", "0.5098419", "0.509464", "0.5045355", "0.5040964", "0.5031953", "0.49995467", "0.49993694", "0.49890402", "0.49518344", "0.4946093", "0.49379972", "0.49234304", "0.4897...
0.7779385
0
Load the data to the container_status table
public static void loadContainerStatus(final int envId, int compId, final int instanceNum) { final java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());; // final int compId = getComponentId(compName, parentCompName); // if(compId == 0){ // logger.info("Component Name = " + com...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void loadStatus (){\n\t}", "public void loadContainer() throws SQLException\n\t{\n\n\t\ttry \n\t\t{\n\t\t\tsuper.connect();\n\t\t\tsuper.configuationObjects.clear();\n\n\t\t\tResultSet rs1 = super.pst.executeQuery(sqlSelect1);\n\t\t\twhile (rs1.next())\n\t\t\t{\n\t\t\t\tInteger id \t\t\t= rs1.getInt(\...
[ "0.65027106", "0.55890524", "0.54142815", "0.52304864", "0.52293843", "0.52108806", "0.51891804", "0.517973", "0.5155963", "0.5139667", "0.5133652", "0.50974834", "0.50542754", "0.5025258", "0.5021178", "0.50084746", "0.49834922", "0.49809325", "0.49807382", "0.4978316", "0.4...
0.60809565
1
Get the previous days number of instance for a particular component
private static int getPreiousNumInstance(final int compId, final Date date, final int envId) { Calendar cal = Calendar.getInstance(); cal.setTime(date); cal.add(Calendar.DATE, -1); Session session = HibernateConfig.getSessionFactory().getCurrentSession(); Transaction txn = session.beginTransaction(); Cri...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getNumDaysForComponent(Record record);", "private void previousDay() {\r\n tmp.setDay(tmp.getDay() - 1);\r\n int nd = tmp.getDayOfWeek();\r\n nd--;\r\n if (nd == 0) nd = daysInWeek;\r\n tmp.setDayOfWeek(nd);\r\n upDMYcountDMYcount();\r\n }", "public E pre...
[ "0.6445586", "0.6085337", "0.59580463", "0.59476334", "0.59347105", "0.5875815", "0.58624345", "0.58495456", "0.58230907", "0.56888866", "0.5657277", "0.5652836", "0.5606653", "0.5543012", "0.5529433", "0.55205035", "0.55078256", "0.54750663", "0.54616106", "0.5454317", "0.54...
0.5201315
33