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
Application can not listen
private LifecycleHolder get(Context context) { if (context == null) { throw new IllegalArgumentException("You cannot start a load on a null Context"); } else if (!isOnMainThread() && !(context instanceof Application)) { if (context instanceof FragmentActivity) { r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void startListening();", "@Override\n\tpublic void StartListening()\n\t{\n\t\t\n\t}", "private void listen() {\n try {\n this.console.println(MapControl.checkListen(FireSwamp.getPlayer().getPlayerPosition(),\n FireSwamp.getCurrentGame().getGameMap()));\n } cat...
[ "0.6943607", "0.6936647", "0.6933208", "0.6662501", "0.6655727", "0.6605857", "0.6587566", "0.6584963", "0.64100957", "0.6393049", "0.639235", "0.63312733", "0.62380016", "0.61833787", "0.61393285", "0.61330014", "0.6068632", "0.60483927", "0.6018158", "0.6011453", "0.6006346...
0.0
-1
Either an application context or we're on a background thread.
public LifecycleHolder getApplicationLifecycle() { if (applicationLifecycle == null) { synchronized (this) { if (applicationLifecycle == null) { // Normally pause/resume is taken care of by the fragment we add to the fragment or activity. // Ho...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Context getContextAsync() {\n return getActivity() == null ? IotSensorsApplication.getApplication().getApplicationContext() : getActivity();\n }", "public static boolean isApplicationInBackground(Context context) {\r\n ActivityManager am = (ActivityManager) context.getSystemService(Conte...
[ "0.63830185", "0.6266079", "0.6231408", "0.6229734", "0.6032006", "0.6016281", "0.6016281", "0.6007229", "0.59580034", "0.5900199", "0.58748627", "0.58478236", "0.58143705", "0.5796511", "0.5757604", "0.56827253", "0.5677225", "0.56554604", "0.564171", "0.56337494", "0.560856...
0.0
-1
public static final String utsSwitchPortExtModuleId = "utsSwitchPortExtModuleId"; public static final String utsSwitchPortExtPortId = "utsSwitchPortExtPortId"; public static final String utsSwitchPortExtLAGId = "utsSwitchPortExtLAGId"; public static final String utsSwitchPortExtPortType = "utsSwitchPortExtPortType";
public BBS4000PortMibBean(ISnmpProxy aSnmpProxy) { super(aSnmpProxy); init(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface EnumsKeyConstants {\n\n /*客户状态*/\n static final String CSTM_STATE = \"CSTM_STATE\";\n\n interface CSTMSTATE {\n\n /*初始化状态*/\n static final String INIT = \"00\";\n\n /*正常*/\n static final String NORMAL = \"01\";\n\n /*停用*/\n static final String BLO...
[ "0.55559576", "0.5546021", "0.5541434", "0.5478411", "0.54016006", "0.5373539", "0.53687817", "0.53582466", "0.53328747", "0.53135103", "0.530407", "0.528886", "0.5274599", "0.5256924", "0.52248764", "0.52210134", "0.52117145", "0.5190957", "0.5183524", "0.5160207", "0.515789...
0.0
-1
Increase Team V Score By 3
public void addThreeForTeamV (View v) { vScore = vScore +3; displayForTeamV(vScore); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void increaseScore(){\n\t\t currentScore = currentScore + 10;\n\t\t com.triviagame.Trivia_Game.finalScore = currentScore;\n\t }", "public void addThreeForTeamA(View v) {\n scoreTeamA = scoreTeamA + 3;\n displayForTeamA(scoreTeamA);\n }", "public void addThreeForTeamK (View v) {\n kScore...
[ "0.7557836", "0.75149953", "0.7470683", "0.7430356", "0.7365886", "0.7287613", "0.727331", "0.7144939", "0.71023005", "0.7042746", "0.7017643", "0.7017251", "0.69536734", "0.69446766", "0.69413215", "0.6895945", "0.6851393", "0.6845216", "0.68254924", "0.68082047", "0.6804238...
0.7726774
0
Increase Team V Score By 2
public void addTwoForTeamV (View v) { vScore = vScore +2; displayForTeamV(vScore); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void increaseScore(){\n\t\t currentScore = currentScore + 10;\n\t\t com.triviagame.Trivia_Game.finalScore = currentScore;\n\t }", "public void addTwoForTeamA(View v) {\n scoreTeamA = scoreTeamA + 2;\n displayForTeamA(scoreTeamA);\n }", "public void addTwoForTeamK (View v) {\n kScore = k...
[ "0.76546687", "0.74993724", "0.7415725", "0.730533", "0.72675717", "0.72644615", "0.7244122", "0.71880424", "0.7182534", "0.7160598", "0.71425194", "0.71363515", "0.7123729", "0.70771706", "0.7072868", "0.70678425", "0.7025957", "0.7014315", "0.7007146", "0.6948292", "0.69441...
0.7703156
0
Increase Team V Score By 1
public void addOneForTeamV (View v) { vScore = vScore +1; displayForTeamV(vScore); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void increaseScore(){\n\t\t currentScore = currentScore + 10;\n\t\t com.triviagame.Trivia_Game.finalScore = currentScore;\n\t }", "public static void incrementScore() {\n\t\tscore++;\n\t}", "public void addScoreForTeamA(View v) {\n scoreTeamA += 1;\n updateText(scoreTeamA, v);\n }", "public ...
[ "0.78866446", "0.76938444", "0.75961345", "0.7561192", "0.7523265", "0.7437026", "0.7390469", "0.7382073", "0.7337693", "0.7292935", "0.7228853", "0.7197394", "0.7184954", "0.7163608", "0.71063465", "0.70946294", "0.7060881", "0.705336", "0.7052486", "0.70512635", "0.70510846...
0.734796
8
Displays the given score for Team V.
public void displayForTeamV(int score) { TextView scoreView = (TextView) findViewById(R.id.team_v_score); scoreView.setText(String.valueOf(score)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void displayForTeamK(int score) {\n TextView scoreView = (TextView) findViewById(R.id.team_k_score);\n scoreView.setText(String.valueOf(score));\n }", "public void displayForTeamA(int score) {\n TextView scoreView = findViewById(R.id.team_a_score);\n scoreView.setText(String...
[ "0.7828768", "0.78026146", "0.78026146", "0.7757637", "0.7757637", "0.7757637", "0.7757637", "0.7757637", "0.77084017", "0.76572275", "0.7500022", "0.7500022", "0.7460499", "0.7460499", "0.7460499", "0.7460499", "0.74281496", "0.7415543", "0.7411", "0.73882425", "0.7331133", ...
0.83653986
0
Increase Team K Score By 3
public void addThreeForTeamK (View v) { kScore = kScore +3; displayForTeamK(kScore); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void increaseScore(){\n\t\t currentScore = currentScore + 10;\n\t\t com.triviagame.Trivia_Game.finalScore = currentScore;\n\t }", "public void addTwoForTeamK (View v) {\n kScore = kScore +2;\n displayForTeamK(kScore);\n }", "public void Team_B_3_Points(View v) {\n teamBScore = teamBScor...
[ "0.71473724", "0.70623344", "0.7057628", "0.6927527", "0.6918688", "0.6867383", "0.6826507", "0.6802056", "0.6800535", "0.6691305", "0.6672203", "0.6640529", "0.6621764", "0.66117865", "0.6609157", "0.66079706", "0.6594116", "0.65410763", "0.6524088", "0.6510996", "0.65073514...
0.7786093
0
Increase Team K Score By 2
public void addTwoForTeamK (View v) { kScore = kScore +2; displayForTeamK(kScore); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void increaseScore(){\n\t\t currentScore = currentScore + 10;\n\t\t com.triviagame.Trivia_Game.finalScore = currentScore;\n\t }", "public static void incrementScore() {\n\t\tscore++;\n\t}", "public void updateScore(){\n scoreChange++;\n if(scoreChange % 2 == 0){\n if(score_val < 999999...
[ "0.7261271", "0.7095342", "0.69957316", "0.69048315", "0.68579614", "0.6849314", "0.68043697", "0.67581564", "0.67407477", "0.67151815", "0.6691131", "0.66872984", "0.6685358", "0.66687703", "0.66540337", "0.66464853", "0.6634632", "0.66327304", "0.6623233", "0.6619502", "0.6...
0.7673222
0
Increase Team K Score By 1
public void addOneForTeamK (View v) { kScore = kScore +1; displayForTeamK(kScore); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void increaseScore(){\n\t\t currentScore = currentScore + 10;\n\t\t com.triviagame.Trivia_Game.finalScore = currentScore;\n\t }", "public static void incrementScore() {\n\t\tscore++;\n\t}", "public void increaseScore(){\n this.inc.seekTo(0);\n this.inc.start();\n this.currentScore++;\n ...
[ "0.7405242", "0.7383285", "0.7186641", "0.718542", "0.7026828", "0.7004455", "0.6999941", "0.6953495", "0.6950967", "0.6901526", "0.6822736", "0.68205893", "0.6812645", "0.6795266", "0.678906", "0.6780342", "0.675533", "0.67229927", "0.6719887", "0.6689062", "0.6669073", "0...
0.7365483
2
Displays the given score for Team V.
public void displayForTeamK(int score) { TextView scoreView = (TextView) findViewById(R.id.team_k_score); scoreView.setText(String.valueOf(score)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void displayForTeamV(int score) {\n TextView scoreView = (TextView) findViewById(R.id.team_v_score);\n scoreView.setText(String.valueOf(score));\n }", "public void displayForTeamA(int score) {\n TextView scoreView = findViewById(R.id.team_a_score);\n scoreView.setText(String...
[ "0.83653986", "0.78026146", "0.78026146", "0.7757637", "0.7757637", "0.7757637", "0.7757637", "0.7757637", "0.77084017", "0.76572275", "0.7500022", "0.7500022", "0.7460499", "0.7460499", "0.7460499", "0.7460499", "0.74281496", "0.7415543", "0.7411", "0.73882425", "0.7331133",...
0.7828768
1
Reset Team Scores to Zero
public void resetScore (View v) { vScore = 0; kScore = 0; displayForTeamK(kScore); displayForTeamV(vScore); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void resetScore() {\n\t\tthis.score = 0;\n\t}", "private void resetValues() {\n teamAScoreInt = 0;\n teamBScoreInt = 0;\n teamAFoulScoreInt = 0;\n teamBFoulScoreInt = 0;\n }", "public void resetScore();", "public void reset()\n {\n currentScore = 0;\n }", "public ...
[ "0.82038623", "0.8194666", "0.81093144", "0.8023396", "0.79292595", "0.78297275", "0.78297275", "0.77704316", "0.7739159", "0.76323265", "0.75826263", "0.7523728", "0.7427869", "0.73822975", "0.73192626", "0.7284089", "0.7149649", "0.71411496", "0.71298724", "0.7065846", "0.7...
0.741464
13
Returns a list of all the crimes
public List<Crime> getCrimes() { List<Crime> crimes = new ArrayList<>(); CrimeCursorWrapper cursor = queryCrimes(null, null); try { cursor.moveToFirst(); while (!cursor.isAfterLast()) { crimes.add(cursor.getCrime()); cursor.moveToNext(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Crime> getCrimes() {\n return mCrimes;\n }", "public void setCrimes(List<Crime> crimes) {\n mCrimes = crimes;\n }", "@Override\r\n\tpublic List<CabinCrew> getAllCabinCrew() {\r\n\t\tList<CabinCrew> cloned = new ArrayList<>(cabinCrew);\r\n\t\treturn cloned;\r\n\t}", "public voi...
[ "0.6683008", "0.635064", "0.62037367", "0.59980655", "0.5899794", "0.5804712", "0.5764889", "0.5669769", "0.55935705", "0.559062", "0.5588574", "0.5581447", "0.5560362", "0.549363", "0.5433775", "0.5408585", "0.5387411", "0.53812873", "0.5350618", "0.5338082", "0.5336873", ...
0.75394905
0
Returns the crime with the given id if it exists
public Crime getCrime(UUID id) { CrimeCursorWrapper cursor = queryCrimes(CrimeTable.Cols.UUID + " = ?", new String[] {id.toString() } ); try { if(cursor.getCount() == 0){ return null; } cursor.moveToFirst(); return...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Crime getCrime(UUID id) {\n for (Crime crime : mCrimes) {\n if (crime.getId().equals(id)) {\n return crime;\n }\n }\n return null;\n }", "@Override\r\n\tpublic Candidat findOne(String id) {\n\t\treturn null;\r\n\t}", "public Chore findChoreId(...
[ "0.8168619", "0.6862899", "0.67144275", "0.660758", "0.64685494", "0.640704", "0.638888", "0.6351354", "0.6321259", "0.62837577", "0.62682414", "0.62451607", "0.62061554", "0.6196257", "0.6189266", "0.61867887", "0.6169593", "0.616832", "0.615289", "0.61438215", "0.6140351", ...
0.8069395
1
Inserts the crime into the database
public void addCrime(Crime c) { ContentValues values = getContentValues(c); mDatabase.insert(CrimeTable.NAME, null, values); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void insert() throws SQLException {\n String sql = \"INSERT INTO course (courseDept, courseNum, courseName, credit, info) \"\n + \" values ('\"\n + this.courseDept + \"', '\"\n + this.courseNum + \"', '\"\n + this.courseName + \"', \"\n ...
[ "0.6565317", "0.6410313", "0.6284367", "0.6265058", "0.62210506", "0.6180989", "0.61459965", "0.61057395", "0.60962534", "0.60925335", "0.60755813", "0.60561335", "0.6045197", "0.6019841", "0.6011684", "0.59929156", "0.5989399", "0.5984046", "0.5966864", "0.59663385", "0.5966...
0.70655596
0
Allows updating of a crime already in the database
public void updateCrime(Crime crime) { String uuidString = crime.getmId().toString(); ContentValues values = getContentValues(crime); // WUUUTTTTT>???? mDatabase.update(CrimeTable.NAME, values, CrimeTable.Cols.UUID + " = ?", new String[]{ uuidString }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean updateSickPerson(SickPerson sickPerson) throws SQLException;", "@Override\n public void onCrimeUpdated(Crime crime) {\n }", "int updateByPrimaryKey(SpecialCircumstance record);", "CounselorBiographyTemp update(CounselorBiographyTemp entity);", "int updateByPrimaryKey(ReEducation record...
[ "0.6314713", "0.628876", "0.6239071", "0.6144299", "0.60726357", "0.59923816", "0.59683967", "0.59560513", "0.59542215", "0.59429085", "0.59412336", "0.5929048", "0.5922717", "0.5911218", "0.59103596", "0.58458215", "0.58456844", "0.58350694", "0.5828772", "0.58089066", "0.58...
0.70232266
0
Deletes a new Crime based on the id passed in
public void deleteCrime(UUID id) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void deleteCours(long id) {\n\t\tem.remove(getCours(id));\n\t}", "public void delete(int id);", "public void delete(Long id) {\n log.debug(\"Request to delete Candidato : {}\", id);\n candidatoRepository.deleteById(id);\n }", "void deleteMataKuliah (int id);", "public v...
[ "0.6570113", "0.65627635", "0.6525714", "0.65215695", "0.64966714", "0.6454035", "0.6454035", "0.6454035", "0.64284056", "0.6411592", "0.6411592", "0.6403889", "0.64029694", "0.64029694", "0.64029694", "0.64029694", "0.64029694", "0.63916737", "0.636154", "0.635222", "0.63407...
0.8245051
0
BufferedReader f = new BufferedReader(new FileReader("/Users/spencersharp/Desktop/input.txt"));
public static void main(String[] args) throws IOException { BufferedReader f = new BufferedReader(new InputStreamReader(System.in)); PrintWriter writer = new PrintWriter(new BufferedOutputStream(System.out)); String output = ""; //Write all output to this string //...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void openInput(String file)\r\n\t{\n\t\ttry{\r\n\t\t\tfstream = new FileInputStream(file);\r\n\t\t\tin = new DataInputStream(fstream);\r\n\t\t\tis = new BufferedReader(new InputStreamReader(in));\r\n\t\t}catch(Exception e)\r\n\t\t{\r\n\t\t\tSystem.err.println(e);\r\n\t\t}\r\n\r\n\t}", "public void openFile(){\n\...
[ "0.67409223", "0.6662775", "0.6652346", "0.6591429", "0.64444876", "0.6421531", "0.63825786", "0.6328159", "0.63246936", "0.6303827", "0.6244736", "0.6243049", "0.6238238", "0.6231553", "0.61934763", "0.6160194", "0.6101872", "0.607797", "0.6050397", "0.6050204", "0.60316336"...
0.0
-1
The container in which the content claim lives.
public String getContentClaimContainer() { return contentClaimContainer; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getContainer() {\n return this.container;\n }", "public String container() {\n return this.container;\n }", "public Container getContainer() {\r\n return container;\r\n }", "public Container getContainer();", "protected Container getContainer()\r\n {\n ...
[ "0.7132313", "0.7124885", "0.6935373", "0.68975824", "0.6683423", "0.6521855", "0.63892776", "0.631672", "0.63098526", "0.62563074", "0.6239778", "0.6228557", "0.6212556", "0.62016207", "0.6178902", "0.6137122", "0.61356515", "0.6092582", "0.60735965", "0.6038366", "0.6027537...
0.80557454
0
The container in which the content claim lives.
public FlowFileDTOBuilder setContentClaimContainer(final String contentClaimContainer) { this.contentClaimContainer = contentClaimContainer; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getContentClaimContainer() {\n return contentClaimContainer;\n }", "public String getContainer() {\n return this.container;\n }", "public String container() {\n return this.container;\n }", "public Container getContainer() {\r\n return container;\r\n }", "pub...
[ "0.80558914", "0.71334916", "0.71260124", "0.693624", "0.6898443", "0.66831356", "0.65228176", "0.6389615", "0.6317126", "0.63100195", "0.6256302", "0.6241127", "0.6228654", "0.62127787", "0.62019783", "0.6179905", "0.6137123", "0.613602", "0.6092", "0.6073517", "0.6038284", ...
0.5577741
42
The file size of the content claim formatted.
public String getContentClaimFileSize() { return contentClaimFileSize; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long size() {\n return this.filePage.getSizeInfile();\n }", "public long getSize()\n\t{\n\t\treturn file.length() ;\n\t}", "public Long getContentClaimFileSizeBytes() {\n return contentClaimFileSizeBytes;\n }", "public long size() {\n return file.length();\n }", "public lo...
[ "0.75286746", "0.7513347", "0.74679023", "0.72687435", "0.7223561", "0.7196065", "0.7177652", "0.7159526", "0.7132557", "0.7117567", "0.70622164", "0.7036673", "0.70230126", "0.7016938", "0.7008097", "0.6995843", "0.6995843", "0.69887936", "0.69887936", "0.69835347", "0.69514...
0.8045024
0
The file size of the content claim formatted.
public FlowFileDTOBuilder setContentClaimFileSize(final String contentClaimFileSize) { this.contentClaimFileSize = contentClaimFileSize; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getContentClaimFileSize() {\n return contentClaimFileSize;\n }", "public long size() {\n return this.filePage.getSizeInfile();\n }", "public long getSize()\n\t{\n\t\treturn file.length() ;\n\t}", "public Long getContentClaimFileSizeBytes() {\n return contentClaimFileSizeBytes;\...
[ "0.80435383", "0.75288814", "0.7513547", "0.7466952", "0.7268487", "0.7223598", "0.7196658", "0.7178555", "0.71606416", "0.71335125", "0.7118796", "0.7062469", "0.70372546", "0.70231247", "0.7017243", "0.70088446", "0.69966274", "0.69966274", "0.6989249", "0.6989249", "0.6983...
0.0
-1
The file size of the content claim in bytes.
public Long getContentClaimFileSizeBytes() { return contentClaimFileSizeBytes; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getContentClaimFileSize() {\n return contentClaimFileSize;\n }", "public long getSize()\n\t{\n\t\treturn file.length() ;\n\t}", "public long size() {\n return this.filePage.getSizeInfile();\n }", "public long size() {\n return file.length();\n }", "@Override\n\tpubl...
[ "0.8471188", "0.75219905", "0.7484952", "0.7353258", "0.7302634", "0.72620547", "0.7185232", "0.7147336", "0.7105694", "0.7091977", "0.7091783", "0.7090172", "0.7085799", "0.7075489", "0.7048129", "0.7048129", "0.70443743", "0.7036915", "0.7023766", "0.70227766", "0.7015911",...
0.8288193
1
The file size of the content claim in bytes.
public FlowFileDTOBuilder setContentClaimFileSizeBytes(final Long contentClaimFileSizeBytes) { this.contentClaimFileSizeBytes = contentClaimFileSizeBytes; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getContentClaimFileSize() {\n return contentClaimFileSize;\n }", "public Long getContentClaimFileSizeBytes() {\n return contentClaimFileSizeBytes;\n }", "public long getSize()\n\t{\n\t\treturn file.length() ;\n\t}", "public long size() {\n return this.filePage.getSizeInfile();\n ...
[ "0.84707963", "0.8287091", "0.75240767", "0.7487202", "0.73548937", "0.7303862", "0.7263963", "0.7187046", "0.71486676", "0.71056557", "0.70932865", "0.70917535", "0.70916706", "0.70871234", "0.7076936", "0.7050175", "0.7050175", "0.7045856", "0.703692", "0.702456", "0.702348...
0.0
-1
The identifier of the content claim.
public String getContentClaimIdentifier() { return contentClaimIdentifier; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final ASN1Identifier getIdentifier()\n {\n return content.getIdentifier();\n }", "public int getClaimid() {\n\t\treturn claimid;\n\t}", "java.lang.String getContentId();", "String getContentGeneratorId();", "public String getContentId() {\n\n String as[] = getMimeHeader(\"Content...
[ "0.69780374", "0.6934113", "0.67996037", "0.67875266", "0.6711059", "0.6708656", "0.6667043", "0.6658083", "0.6587768", "0.6580747", "0.6546356", "0.6534315", "0.6490618", "0.6452356", "0.6445162", "0.6395565", "0.63808936", "0.63808936", "0.63555455", "0.62979484", "0.629408...
0.812805
0
The identifier of the content claim.
public FlowFileDTOBuilder setContentClaimIdentifier(final String contentClaimIdentifier) { this.contentClaimIdentifier = contentClaimIdentifier; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getContentClaimIdentifier() {\n return contentClaimIdentifier;\n }", "public final ASN1Identifier getIdentifier()\n {\n return content.getIdentifier();\n }", "public int getClaimid() {\n\t\treturn claimid;\n\t}", "java.lang.String getContentId();", "String getContentGenerator...
[ "0.81294274", "0.69779855", "0.69335777", "0.68017346", "0.67889273", "0.6712137", "0.6708545", "0.66680324", "0.665792", "0.65867376", "0.6580018", "0.654581", "0.65335536", "0.64918035", "0.645226", "0.6443904", "0.6394622", "0.63804424", "0.63804424", "0.63553464", "0.6297...
0.0
-1
The offset into the content claim where the flowfile's content begins.
public Long getContentClaimOffset() { return contentClaimOffset; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long getFileOffset();", "long getFileOffset();", "public long offset() {\n return offset;\n }", "@Override\n public long position() throws IOException {\n return _backing.getFilePointer() - _head.offset;\n }", "public int getStartOffset() {\n return startOffset;\n }", "public ...
[ "0.68647367", "0.6642136", "0.65903866", "0.65705085", "0.6555796", "0.6541502", "0.65170825", "0.6506138", "0.6503693", "0.6501901", "0.6490136", "0.6490136", "0.64691985", "0.64573264", "0.64466256", "0.64466256", "0.64466256", "0.6405523", "0.6399479", "0.6398279", "0.6390...
0.7572517
0
The offset into the content claim where the flowfile's content begins.
public FlowFileDTOBuilder setContentClaimOffset(final Long contentClaimOffset) { this.contentClaimOffset = contentClaimOffset; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Long getContentClaimOffset() {\n return contentClaimOffset;\n }", "public long getFileOffset();", "long getFileOffset();", "public long offset() {\n return offset;\n }", "@Override\n public long position() throws IOException {\n return _backing.getFilePointer() - _head.offset;\n ...
[ "0.75709784", "0.68652594", "0.66428304", "0.6589907", "0.6571143", "0.65573", "0.65413475", "0.65171677", "0.6505655", "0.65034646", "0.65015805", "0.6489904", "0.6489904", "0.6470996", "0.64571", "0.64471036", "0.64471036", "0.64471036", "0.64052385", "0.63990706", "0.63988...
0.56763476
94
The section in which the content claim lives.
public String getContentClaimSection() { return contentClaimSection; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getSection() {\n return section;\n }", "public String getSection() {\n return section;\n }", "public Section getSection() {\n return _section;\n }", "Section getSection();", "public String getSection(){\n return mSection;\n }", "String getSection() {\n\t\tr...
[ "0.70080924", "0.70080924", "0.6864526", "0.67588323", "0.6599018", "0.65745467", "0.6448259", "0.62657255", "0.625863", "0.609287", "0.60128355", "0.5958962", "0.59035116", "0.5822837", "0.58091754", "0.5793695", "0.5720562", "0.5720562", "0.5641577", "0.55908597", "0.557567...
0.7834142
0
The section in which the content claim lives.
public FlowFileDTOBuilder setContentClaimSection(final String contentClaimSection) { this.contentClaimSection = contentClaimSection; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getContentClaimSection() {\n return contentClaimSection;\n }", "public String getSection() {\n return section;\n }", "public String getSection() {\n return section;\n }", "public Section getSection() {\n return _section;\n }", "Section getSection();", "public Str...
[ "0.7832968", "0.7010094", "0.7010094", "0.6865614", "0.676001", "0.66003615", "0.65762585", "0.64501214", "0.62679505", "0.6259106", "0.6094703", "0.6010809", "0.5958842", "0.5904077", "0.5826025", "0.58076704", "0.5794621", "0.5723703", "0.5723703", "0.56441987", "0.5591292"...
0.49408284
72
among invoices converted/ not converted get the largest+1
public Long getInvoiceNumber(String companyId) throws EntityException { Datastore ds = null; Company cmp = null; InwardEntity invoice = null; ObjectId oid = null; Long number = null; try { ds = Morphiacxn.getInstance().getMORPHIADB("test"); oid = new ObjectId(companyId); Query<Company> query =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int maxNoteValue();", "public int getbestline() {\n\t\tint i=0;\n\t\tint biggest=0;\n\t\tint keep_track=0;\n\t\twhile(i < amount.length) {\n\t\t\tif(Faucets.amount[i] > biggest) {\n\t\t\t\tbiggest = Faucets.amount[i];\n\t\t\t\tkeep_track = i;\n\t\t\t}\n\t\t\ti+=1;\n\t\t\t\n\t\t}\n\t\tSystem.out.println(\"Keep_Tr...
[ "0.5683852", "0.5575398", "0.55673945", "0.54338396", "0.5376621", "0.5374593", "0.53466034", "0.5329695", "0.53124666", "0.530996", "0.530177", "0.5274194", "0.5252451", "0.5238729", "0.5237124", "0.52210146", "0.5203025", "0.51997423", "0.5167528", "0.51507163", "0.51403874...
0.0
-1
fetch relevant estimate and make changes to it
public InwardEntity createEstimateInvoice(InwardEntity invoice, String companyId, String newcustomerId) throws EntityException { Datastore ds = null; Company cmp = null; BusinessPlayers customer = null; Products prod = null; Tax tax = null; Key<InwardEntity> key = null; ObjectId oid = null; ObjectId c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private double updateEstimates(long sleep) {\r\n \t\t// Prune datasets\r\n \t\twhile (startupTimeHistory.size() > poolConfig.averageCount) {\r\n \t\t\tstartupTimeHistory.remove(0);\r\n \t\t}\r\n \t\twhile (requestTimeHistory.size() > poolConfig.averageCount) {\r\n \t\t\trequestTimeHistory.remove(0);\r\n \t\t}\r\n ...
[ "0.6746512", "0.621343", "0.61255234", "0.60225207", "0.5950659", "0.5876928", "0.58575547", "0.5849525", "0.5716986", "0.57151514", "0.56409985", "0.56258345", "0.55909574", "0.5588462", "0.554238", "0.55368125", "0.5485723", "0.5477342", "0.54598594", "0.5456874", "0.545408...
0.0
-1
make changes in estimate payment list, update poadv total and biladvtotal and bill balance
public OrderPayments updateAdvPayment(OrderPayments payment, String companyId , String invoiceNo ) throws EntityException { Datastore ds = null; Company cmp = null; InwardEntity invoice = null; ObjectId oid = null; ObjectId invoiceOid = null; try { ds = Morphiacxn.getInstance().getMORPHIAD...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void updateMoney() {\n balance = mysql.getMoney(customerNumber);\n balanceConverted = (float) balance / 100.00;\n }", "@Override\n\tpublic void calculateAndUpdateBalance() {\n\n\t\tbalance -= fee;\n\n\t}", "private void PayBill() {\r\n Cursor crsrBillDetail = dbBillScreen.getBil...
[ "0.6348784", "0.6321908", "0.6321475", "0.63119197", "0.6299465", "0.62988275", "0.62988204", "0.62442505", "0.62217015", "0.6200442", "0.61923313", "0.61454755", "0.61300236", "0.6045736", "0.6030244", "0.59477854", "0.59386164", "0.5908328", "0.59067005", "0.59059197", "0.5...
0.58119875
24
/make changes in bill payment list, biladvtotal applies to both kind of bills
public OrderPayments updateInvoicePayment(OrderPayments payment, String invoiceNo, String companyId) throws EntityException { Datastore ds = null; Company cmp = null; InwardEntity invoice = null; ObjectId oid = null; ObjectId invoiceOid = null; try { ds = Morphiacxn.getInstance().getMORPHI...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void totalBill(){\r\n\t\tint numOfItems = ItemsList.size();\r\n\t\t\r\n\t\tBigDecimal runningSum = new BigDecimal(\"0\");\r\n\t\tBigDecimal runningTaxSum = new BigDecimal(\"0\");\r\n\t\t\r\n\t\tfor(int i = 0;i<numOfItems;i++){\r\n\t\t\t\r\n\t\t\trunningTaxSum = BigDecimal.valueOf(0);\r\n\t\t\t\r\n\t\t\tBigD...
[ "0.69609076", "0.69397897", "0.68227065", "0.67854744", "0.67373717", "0.66866124", "0.6612849", "0.6565977", "0.6516822", "0.64054585", "0.6376872", "0.62806064", "0.62670946", "0.6249947", "0.62307966", "0.62293607", "0.6136998", "0.6126537", "0.61095893", "0.6088904", "0.6...
0.0
-1
deleted adv payment from PO, this affects poadvance , bil advance and bil balance
public String removeAdvPayment(String paymentId, String invoiceNo, String companyId) throws EntityException { Datastore ds = null; Company cmp = null; InwardEntity invoice = null; ObjectId oid = null; ObjectId invoiceOid = null; try { ds = Morphiacxn.getInstance().getMORPHIADB("test"); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic int deletePaymentInfo(int no) {\n\t\treturn session.delete(\"payments.deletePayment\", no);\r\n\t}", "public String removeInvoicePayment(String paymentId, String invoiceNo, String companyId) throws EntityException\n\t\t\t{\n\n\t\t\t\tDatastore ds = null;\n\t\t\t\tCompany cmp = null;\n\t\t\t...
[ "0.6596164", "0.6505401", "0.6485378", "0.6205673", "0.618611", "0.6119692", "0.60894424", "0.6032682", "0.5977164", "0.59766227", "0.595042", "0.59437954", "0.58985", "0.5886868", "0.5874585", "0.5853593", "0.5843215", "0.58396465", "0.57977957", "0.5779437", "0.5779075", ...
0.7008256
0
both kinds of bill deleted bill payment , this affects bil advance and bil balance, not PO
public String removeInvoicePayment(String paymentId, String invoiceNo, String companyId) throws EntityException { Datastore ds = null; Company cmp = null; InwardEntity invoice = null; ObjectId oid = null; ObjectId invoiceOid = null; try { ds = Morphiacxn.getInstance().getMORPHIADB(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void deleteTransaction() {\n LogUtils.logEnterFunction(Tag);\n\n boolean isDebtValid = true;\n if(mDbHelper.getCategory(mTransaction.getCategoryId()).getDebtType() == Category.EnumDebt.MORE) { // Borrow\n List<Debt> debts = mDbHelper.getAllDebts();\n\n Double repa...
[ "0.63372165", "0.627815", "0.6235988", "0.6140746", "0.6108201", "0.6091447", "0.587861", "0.5824767", "0.581198", "0.5803753", "0.5762795", "0.5749066", "0.571168", "0.569406", "0.56845504", "0.5651437", "0.5650862", "0.5581612", "0.5579802", "0.5563615", "0.55389416", "0....
0.6074
6
get id from invoice, no chng in invoice number, chk fr customer chng
public InwardEntity updateInvoice(InwardEntity entity , String companyId, String customerId) throws EntityException { Datastore ds = null; Company cmp = null; BusinessPlayers customer = null; Products prod = null; Tax tax = null; Key<InwardEntity> key = null; ObjectId oid = null; Obj...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getC_Invoice_ID();", "Long getInvoiceId();", "public int getUlIdInvoInvoice()\r\n {\r\n return this._ulIdInvoInvoice;\r\n }", "public void showInvoiceNo(){\n\t}", "public int getInvoiceID(){\n return invoiceID;\n }", "public int getInvoiceNumber() {\n return invoi...
[ "0.7463424", "0.73284847", "0.6755811", "0.6618644", "0.6599757", "0.6422352", "0.6422352", "0.6384983", "0.6338315", "0.630638", "0.6212984", "0.6163658", "0.6137539", "0.6127757", "0.6101378", "0.60920966", "0.60920966", "0.60919285", "0.6037028", "0.6031249", "0.60224324",...
0.5636439
45
Method called when permission is request to Location for example. User is prompted.
@Override public void onRequestPermissionsResult (int requestCode, String[] permissions, int[] grantResults) { int index = 0; Map<String, Integer> PermissionsMap = new HashMap<String, Integer>(); for (String permission : permissions){ P...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void getLocationPermission() {\n if (!isPermissionGranted())\n // get the location permission from user\n // this will prompt user a dialog to give the location permission\n requestPermissionLauncher.launch(Manifest.permission.ACCESS_FINE_LOCATION);\n /*Act...
[ "0.8358251", "0.8066278", "0.79877174", "0.7953386", "0.79212964", "0.7913512", "0.7844688", "0.7838377", "0.7793102", "0.778555", "0.7747893", "0.77356017", "0.77275705", "0.7725568", "0.77038896", "0.77038896", "0.7700222", "0.76954", "0.76954", "0.76948947", "0.7672095", ...
0.0
-1
Created by zhouxue on 2017/8/4.
public interface RecivMessageCallBack { public List<AppServerType> getServerType(); public void onRecivMessage(Channel ctx, NettyMessage message, String tag, JsonParser parser)throws UnsupportedEncodingException; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "private sta...
[ "0.6181635", "0.609589", "0.5866964", "0.5866964", "0.58464247", "0.58448255", "0.5804839", "0.5721404", "0.57200533", "0.5712108", "0.5692469", "0.5677787", "0.5664517", "0.56503266", "0.56406945", "0.5624697", "0.5623651", "0.56148744", "0.56144893", "0.560989", "0.5600003"...
0.0
-1
/ / Devuelve true si par_Number es un numero / / valor que se quiere saber si es un numero o no / verdadero en caso de que par_Number sea un numero, falso en otro caso
public static boolean IsNumber(int par_Numer) { return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static boolean IsNumber(long par_Number) {\n return true;\n }", "public static boolean IsNumber(double par_Number) {\n return true;\n }", "public static boolean IsNumber(String par_Number) {\n\n java.util.regex.Pattern p = java.util.regex.Pattern.compile(\"^\\\\-?\\\\d*.?\\\\d...
[ "0.7879207", "0.7653526", "0.7287122", "0.68556035", "0.66749454", "0.6615559", "0.6608068", "0.6432769", "0.64250696", "0.63381946", "0.6314063", "0.6274899", "0.61918795", "0.6181443", "0.6149297", "0.6093655", "0.6080142", "0.60471165", "0.60114396", "0.5986755", "0.598675...
0.82872975
0
/ / Devuelve true si par_Number es un numero / / valor que se quiere saber si es un numero o no / verdadero en caso de que par_Number sea un numero, falso en otro caso
public static boolean IsNumber(double par_Number) { return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static boolean IsNumber(int par_Numer) {\n return true;\n }", "public static boolean IsNumber(long par_Number) {\n return true;\n }", "public static boolean IsNumber(String par_Number) {\n\n java.util.regex.Pattern p = java.util.regex.Pattern.compile(\"^\\\\-?\\\\d*.?\\\\d+$\"...
[ "0.8286935", "0.7879034", "0.728787", "0.6854633", "0.6673861", "0.6615151", "0.66075814", "0.64320314", "0.64257544", "0.63381875", "0.63130546", "0.62739134", "0.61902916", "0.61823404", "0.6149289", "0.6092371", "0.60801554", "0.6045983", "0.60103834", "0.5986331", "0.5986...
0.76530176
2
/ / Devuelve true si par_Number es un numero / / valor que se quiere saber si es un numero o no / verdadero en caso de que par_Number sea un numero, falso en otro caso
public static boolean IsNumber(long par_Number) { return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static boolean IsNumber(int par_Numer) {\n return true;\n }", "public static boolean IsNumber(double par_Number) {\n return true;\n }", "public static boolean IsNumber(String par_Number) {\n\n java.util.regex.Pattern p = java.util.regex.Pattern.compile(\"^\\\\-?\\\\d*.?\\\\d+$...
[ "0.82883394", "0.7654633", "0.7288848", "0.6855781", "0.6675215", "0.66162974", "0.6609209", "0.6432674", "0.6425818", "0.63385946", "0.63136816", "0.62750816", "0.61913323", "0.6183558", "0.6149649", "0.6093387", "0.6080585", "0.60477614", "0.6010895", "0.59878284", "0.59878...
0.788069
1
/ / Devuelve true si par_Number es un numero / / valor que se quiere saber si es un numero o no / verdadero en caso de que par_Number sea un numero, falso en otro caso
public static boolean IsNumber(String par_Number) { java.util.regex.Pattern p = java.util.regex.Pattern.compile("^\\-?\\d*.?\\d+$"); java.util.regex.Matcher m = p.matcher(par_Number); return m.matches() || IsInteger(par_Number); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static boolean IsNumber(int par_Numer) {\n return true;\n }", "public static boolean IsNumber(long par_Number) {\n return true;\n }", "public static boolean IsNumber(double par_Number) {\n return true;\n }", "public boolean verificaNumero() {\n if (contemSomenteNum...
[ "0.8286463", "0.7878233", "0.7652637", "0.6854067", "0.6674745", "0.6614146", "0.66070575", "0.6431147", "0.6425384", "0.6336903", "0.63130295", "0.62738764", "0.6190362", "0.6180515", "0.6148149", "0.6093341", "0.60790133", "0.604656", "0.60094094", "0.59858155", "0.59858155...
0.728619
3
/ / Devuelve true si par_Number es un numero entero / / valor que se quiere saber si es un numero entero o no / verdadero en caso de que par_Number sea un numero entero, falso en otro caso
public static boolean IsInteger(String par_Number) { java.util.regex.Pattern p = java.util.regex.Pattern.compile("^[\\d|\\-]\\d*$"); java.util.regex.Matcher m = p.matcher(par_Number); return m.matches(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static boolean IsNumber(int par_Numer) {\n return true;\n }", "public static boolean IsNumber(long par_Number) {\n return true;\n }", "public static boolean IsNumber(double par_Number) {\n return true;\n }", "public boolean verificaNumero() {\n if (contemSomenteNum...
[ "0.8080214", "0.75758034", "0.73528945", "0.7079292", "0.69989926", "0.6598609", "0.65512776", "0.6544239", "0.6453393", "0.6443413", "0.63965553", "0.62884414", "0.626859", "0.6235937", "0.6191827", "0.607444", "0.60657406", "0.60387343", "0.6023056", "0.5959251", "0.592043"...
0.6050517
17
Logger.getLogger(GeneralFunc.class).log(Level.DEBUG, "StringFormat con formato " + format);
public static String stringFormat(String format, Object... objs) { String retVal = ""; Pattern p = Pattern.compile("([{][^}]*[}])"); Matcher m = p.matcher(format); String individualFormat; int order = -1; int pos = -1; //loc_re.match(format); retVal ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static String getLogString(String format, Object... args) {\n //Minor optimization, only call String.format if necessary\n if (args.length == 0) {\n return format;\n }\n\n return String.format(format, args);\n }", "void printLog(String str)\n { printLog(str,Lo...
[ "0.6713397", "0.6647423", "0.65992105", "0.658792", "0.65851676", "0.65391695", "0.63658303", "0.63411164", "0.6307823", "0.6301569", "0.6268411", "0.6227676", "0.6185854", "0.6185854", "0.6185854", "0.61645454", "0.6160456", "0.61536014", "0.61235696", "0.6120511", "0.607374...
0.0
-1
Devuelve un array de String tomando como fin el ultimo char de separators
public static String[] bytesToStringArray(byte[] array, char start, char... separators) { List<String> retVal = new ArrayList<String>(); StringBuilder token = new StringBuilder(); boolean isStarted = false; Character end = separators[separators.length - 1]; List<Character> se...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static Set<Character> createSeparators() {\r\n Set<Character> separators = new Set1L<>();\r\n final char[] arrayOfSeps = { '!', ',', '.', ' ', '\"', ';', ':', '(',\r\n ')', '?', '/', '-' };\r\n //Above: array of chosen separators to be read into a Set<Character>\r\n\r\n ...
[ "0.63684744", "0.6303796", "0.5952817", "0.59183633", "0.5763268", "0.5721629", "0.56628174", "0.56190294", "0.56113833", "0.5594496", "0.5544699", "0.5536256", "0.55010176", "0.5488925", "0.548174", "0.54808104", "0.54796505", "0.54776245", "0.5465042", "0.5461392", "0.54429...
0.5471782
18
System.out.println("Escribiendo " + value + " en " + pos);
public static byte[] writeInArray(byte[] array, String value, int pos) { byte[] strVal = value.getBytes(); System.arraycopy(strVal, 0, array, pos, value.length()); return array; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void afficherMessage () {\r\n System.out.println(\"(\"+valeur+\", \"+type+\")\"); \r\n }", "@Override\n public void affiche(){\n System.out.println(\"Loup : \\n points de vie : \"+this.ptVie+\"\\n pourcentage d'attaque : \"+this.pourcentageAtt+\n \"\\n dégâts ...
[ "0.6573416", "0.6382181", "0.62563133", "0.6208962", "0.612027", "0.6118327", "0.6028613", "0.60183996", "0.59707856", "0.59356594", "0.58985734", "0.5895165", "0.5880083", "0.58791786", "0.5843005", "0.5827489", "0.5826545", "0.5813404", "0.5808456", "0.57924217", "0.5786193...
0.0
-1
Transforma una letra en una columna, se usa para transformar direcciones de excel del tipo row, col en nro y letra
public static Integer SheetLetterToCol(String letter) { int loc_RetVal = 0; int loc_Val = 0; letter = letter.toUpperCase().trim(); loc_RetVal = letter.charAt(letter.length() - 1) - 65; if (letter.length() > 1) { //loc_RetVal++; //A //AA ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int convertRowColToIndex(int row, int col) {\n return (row - 1) * this.size + (col - 1);\n }", "ColumnInfoTransformer getColumnInfoTransformer();", "java.lang.String getColumn();", "String getColumn();", "private int create(int row) throws FileNotFoundException {\n\t\tXSSFRow row0 = in.cr...
[ "0.5482164", "0.53171724", "0.5201905", "0.5194406", "0.51710516", "0.51599723", "0.514348", "0.5023331", "0.4987002", "0.49195486", "0.49110028", "0.48816228", "0.48731002", "0.48716217", "0.48670235", "0.48668364", "0.4853728", "0.48492607", "0.4848177", "0.48224074", "0.48...
0.0
-1
Process actions related with the servers. Potential actions: CreationRequest the request to create the server has been sent CreationReady the server has been created and configured successfully CreationFailed the server creation has failed server has not been created or server configuration returned error
public Server processAction(Long serverId, ApiV1ServerActionDTO action) { Optional<Server> optionalServer = serverRepository.findById(serverId); Server server = optionalServer.orElse(null); if ( server == null ) { log.error("Server not found"); return null; } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ResponseDTO performServerActions();", "public Event execute() {\n Customer c = super.getCustomer();\n List<Server> s = super.getServers();\n ListIterator<Server> li = s.listIterator();\n\n while (li.hasNext()) {\n Server server = li.next();\n\n if (server.getIden...
[ "0.6080248", "0.5454787", "0.5411963", "0.53855985", "0.53412515", "0.5339934", "0.53211707", "0.5315209", "0.52618587", "0.52599764", "0.5235711", "0.52066225", "0.5188432", "0.51787025", "0.51644546", "0.51376086", "0.512395", "0.511635", "0.5110363", "0.5086018", "0.508169...
0.70635515
0
Programa que pide que se introduzcan caracteres por teclado y los muestra por pantalla
public static void main(String[] args) throws IOException { BufferedReader stdin=null; stdin=new BufferedReader(new InputStreamReader(System.in)); System.out.print("Introduzca caracteres y pulse Intro: "); String linea=stdin.readLine(); System.out.println("Ha escrito: " + linea); stdin.close(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void CasoChar(String caracter) throws IOException, Exception\r\n {\r\n String palabra = caracter + leerCaracter() + leerCaracter() + leerCaracter();\r\n switch (palabra.toUpperCase())\r\n {\r\n case \"CHR(\":\r\n String[] numero = leerPalabra(leerCaracter(),...
[ "0.69222075", "0.68049943", "0.678763", "0.67319727", "0.6721295", "0.66934025", "0.65984124", "0.6442328", "0.64008164", "0.63495606", "0.63248897", "0.62675154", "0.625307", "0.6193184", "0.618457", "0.6182028", "0.6170189", "0.6166869", "0.61604434", "0.61595345", "0.61473...
0.0
-1
Computer computer = new Computer(); computer.setCPU("AMD R9"); computer.setDisk("sanxing"); computer.setMemory(1024); System.out.println(computer.getDetail());
public static void main(String[] args) { PC pc = new PC(); pc.setCPU("AMD R9"); pc.setDisk("sanxing"); pc.setMemory(1024); pc.setBrand("macbook"); pc.printInfo(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Computer getBasicComputer() {\n // Build and return a basic computer\n return new Computer.Builder(\"2GB\", \"2TB\", \"Intel i7\").setBluetoothEnabled(true).build();\n }", "public Computer(int itemNum, String name, double price, String brand, String cpu, int ram, int hard_drive, do...
[ "0.68060035", "0.673271", "0.66980994", "0.66603804", "0.6475029", "0.6404259", "0.6374046", "0.6275492", "0.6252197", "0.62026834", "0.61227095", "0.60567725", "0.6051011", "0.5998749", "0.5993989", "0.5987308", "0.5983756", "0.5964659", "0.5959174", "0.5932901", "0.59218323...
0.67593855
1
Se encarga de obtener un recurso por su id
public G obtener(Long id) throws AppException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public TreeNode findTreeNodeById(int id) {\n if (this.selfId == id) {\n return this;\n }\n if (childList.isEmpty()) {//check\n return null;\n } else {\n for (TreeNode child : childList) {\n TreeNode resultNode = child.findTreeNodeById(id);...
[ "0.6447861", "0.64098203", "0.62952423", "0.6283196", "0.62756014", "0.61266035", "0.59875965", "0.5918313", "0.5904624", "0.58782256", "0.58642745", "0.5860818", "0.5834331", "0.5833899", "0.5832436", "0.57746315", "0.576682", "0.57566476", "0.5746734", "0.57417244", "0.5736...
0.0
-1
Se encarga de insertar un nuevo recurso
public G insertar(G entity, HttpServletRequest httpRequest) throws AppException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void agregarNodo(Nodo nuevo){\n agregarNodoRec(root, nuevo);//la primera vez inicia en la raiz \n }", "public void insertarOrden(Object dato) {\n Nodo nuevo = new Nodo(dato);\n int res = 0;\n // System.out.println(\"esxa\"+res);\n if (primero == null) {\n ...
[ "0.6917432", "0.6475217", "0.64354783", "0.62799203", "0.6258545", "0.61179435", "0.6116147", "0.6098622", "0.5997656", "0.5900724", "0.5892287", "0.58641183", "0.5842538", "0.5796372", "0.57947123", "0.5793337", "0.578084", "0.57661515", "0.57435685", "0.5726894", "0.5717001...
0.0
-1
Se encarga de eliminar un recurso.
public void eliminar(Long id) throws AppException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void removerFinal() {\n switch (totalElementos()) {\n case 0:\n System.out.println(\"lista esta vazia\");\n break;\n case 1:\n this.primeiro = this.ultimo = null;\n this.total--;\n break;\n def...
[ "0.6481892", "0.6463476", "0.6388616", "0.635999", "0.6323356", "0.62620217", "0.62009656", "0.61889505", "0.61825633", "0.6163663", "0.6080177", "0.60792303", "0.60606223", "0.60595316", "0.6046753", "0.6017642", "0.6013664", "0.59889364", "0.59738696", "0.5960428", "0.59358...
0.0
-1
Se encarga de modificar un recurso.
public void modificar(Long id, G entity, HttpServletRequest httpRequest) throws AppException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void addRecurso(Recurso recurso) {\n\t\t\n\t}", "public void agregarNodo(Nodo nuevo){\n agregarNodoRec(root, nuevo);//la primera vez inicia en la raiz \n }", "private Long modificarDireccion(Direccion direccion) {\n\t\t\ttry {\n\t\t\t\tgDireccion.modify(direccion);\n\t\t\t} catch ...
[ "0.6094673", "0.58493054", "0.58108044", "0.5635136", "0.55706507", "0.5554412", "0.54572845", "0.53495634", "0.5306717", "0.5236774", "0.5175328", "0.51238966", "0.5120859", "0.5115536", "0.50694025", "0.5041886", "0.50252", "0.50150484", "0.50073713", "0.4978979", "0.497523...
0.0
-1
Se encarga de recuperar la lista paginada y ordenado de recursos.
public ListaResponse<G> listar(HashMap<String, Object> filtros);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ResultMap<BaseNode> listChildren(Pagination pagination);", "@Override // Métodos que fazem a anulação\n\tpublic void pagaIR() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "List<Registration> allRegTrailPagination(long idTrail, int currentPage, int elementPerPage);", "List<Registration> allRe...
[ "0.62856895", "0.6170135", "0.6099991", "0.59257877", "0.5925083", "0.5860622", "0.5801208", "0.5794122", "0.57271624", "0.57227135", "0.5713196", "0.56409204", "0.56372786", "0.5633591", "0.56270796", "0.560472", "0.5600611", "0.5596433", "0.55943066", "0.5585984", "0.556847...
0.0
-1
Se encarga de recuperar la lista paginada y ordenado de recursos.
public ListaResponse<G> listar();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ResultMap<BaseNode> listChildren(Pagination pagination);", "@Override // Métodos que fazem a anulação\n\tpublic void pagaIR() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "List<Registration> allRegTrailPagination(long idTrail, int currentPage, int elementPerPage);", "List<Registration> allRe...
[ "0.62866455", "0.61699396", "0.6099559", "0.5924592", "0.59223014", "0.5859627", "0.57984036", "0.579237", "0.57267153", "0.5721768", "0.57107085", "0.56381935", "0.5638089", "0.56317157", "0.5627069", "0.560265", "0.55997187", "0.55960184", "0.5594018", "0.5585099", "0.55666...
0.0
-1
Provide a suitable constructor (depends on the kind of dataset)
public PersoAdapter(List<Characters> myDataset){ compteur = 0; mDataset = myDataset.toArray(new Characters[0]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DataSet() {\r\n \r\n }", "public abstract DataType<T> newInstance();", "public abstract DataType<T> newInstance(String format);", "public AzureDataLakeStoreDataset() {\n }", "public DoubleMatrixDataset() {\r\n }", "protected abstract D createData();", "public AnalysisDatasets() ...
[ "0.6981773", "0.6863296", "0.67124796", "0.66222185", "0.65560454", "0.64244574", "0.6375118", "0.6374292", "0.63458383", "0.631461", "0.62963146", "0.624239", "0.6199679", "0.6154991", "0.61230665", "0.61189586", "0.61189586", "0.6094706", "0.6057815", "0.6029099", "0.601939...
0.0
-1
Create new views (invoked by the layout manager)
@Override public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { // create a new view View v = LayoutInflater.from(parent.getContext()).inflate(R.layout.content_adapter, parent, false); ViewHolder vh = new ViewHolder(v); return vh; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "View createView();", "private void addViews() {\n\t}", "@Override\n public void Create() {\n\n initView();\n }", "ViewContainer createViewContainer();", "private void createView() {\n\t\tTabWidget tWidget = (TabWidget) findViewById(android.R.id.tabs);\r\n\t\tshowLayout = (LinearLayout) LayoutI...
[ "0.73328626", "0.72904646", "0.72535104", "0.6896283", "0.6842287", "0.6789703", "0.67565185", "0.669897", "0.66757303", "0.66693926", "0.65974694", "0.6590284", "0.657908", "0.6563214", "0.65365493", "0.64850044", "0.64722437", "0.64562106", "0.6448075", "0.6448075", "0.6396...
0.0
-1
Replace the contents of a view (invoked by the layout manager)
@Override public void onBindViewHolder(ViewHolder holder, int position) { // - get element from your dataset at this position // - replace the contents of the view with that element Picasso.get().load(mDataset[position].getImgUrl()).into(holder.imageView); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setView(View view);", "void updateView();", "void updateView();", "void setView(View v);", "@Override\n\tpublic void setView(View view) {\n\n\t}", "public void refreshView(){\n\t\tView v = getView();\n\t\tif(v != null){\n\t\t\tv.invalidate();\n\t\t}\n\t}", "public void replaceView(){\n ...
[ "0.70212805", "0.69806224", "0.69806224", "0.69289434", "0.68319106", "0.67423284", "0.6719235", "0.66682535", "0.6551954", "0.65405315", "0.64150465", "0.6410784", "0.6404721", "0.6383419", "0.6347588", "0.62931347", "0.62602854", "0.6247691", "0.6201184", "0.6193189", "0.61...
0.0
-1
Return the size of your dataset (invoked by the layout manager)
@Override public int getItemCount() { return mDataset.length; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int dimensions() {\n return this.data[0].length;\n }", "Dimension getSize();", "Dimension getSize();", "public int getDataSize() {\n\t\treturn (int)this.getSize(data);\n\t}", "public int getSize() {\n\t\treturn width + length;\n\t}", "public int get_size() {\r\n return this.dimens...
[ "0.719257", "0.7191435", "0.7191435", "0.71319205", "0.70511466", "0.703889", "0.70376277", "0.70316404", "0.69887304", "0.6944777", "0.6941705", "0.6907277", "0.6902444", "0.6875115", "0.6853177", "0.6835908", "0.6815191", "0.6796607", "0.67855346", "0.67652303", "0.67640096...
0.0
-1
TODO Find correct name
@ReflectiveMethod(name = "I", types = {}) public boolean I(){ return (boolean) NMSWrapper.getInstance().exec(nmsObject); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "protected abstract String name ();", "abstract public String named();", "@Override\n\tString name();", "@Override\n protected String getName() {return _parms.name;}", "@Override\n String getName();", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpro...
[ "0.5991456", "0.5880368", "0.58532566", "0.58496195", "0.5740335", "0.57321703", "0.56900704", "0.5684384", "0.5682005", "0.5682005", "0.567981", "0.5672165", "0.56573975", "0.565536", "0.5643238", "0.56334233", "0.5630895", "0.56235874", "0.5622865", "0.5618608", "0.5590941"...
0.0
-1
TODO Find correct name
@ReflectiveMethod(name = "a", types = {NMSWorld.class, int.class}) public NMSTileEntity a(NMSWorld world, int i){ return new NMSTileEntity(NMSWrapper.getInstance().exec(nmsObject, world, i)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "protected abstract String name ();", "abstract public String named();", "@Override\n\tString name();", "@Override\n protected String getName() {return _parms.name;}", "@Override\n String getName();", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpro...
[ "0.5991456", "0.5880368", "0.58532566", "0.58496195", "0.5740335", "0.57321703", "0.56900704", "0.5684384", "0.5682005", "0.5682005", "0.567981", "0.5672165", "0.56573975", "0.565536", "0.5643238", "0.56334233", "0.5630895", "0.56235874", "0.5622865", "0.5618608", "0.5590941"...
0.0
-1
TODO Find correct name
@ReflectiveMethod(name = "b", types = {}) public int b(){ return (int) NMSWrapper.getInstance().exec(nmsObject); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "protected abstract String name ();", "abstract public String named();", "@Override\n\tString name();", "@Override\n protected String getName() {return _parms.name;}", "@Override\n String getName();", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpro...
[ "0.5991456", "0.5880368", "0.58532566", "0.58496195", "0.5740335", "0.57321703", "0.56900704", "0.5684384", "0.5682005", "0.5682005", "0.567981", "0.5672165", "0.56573975", "0.565536", "0.5643238", "0.56334233", "0.5630895", "0.56235874", "0.5622865", "0.5618608", "0.5590941"...
0.0
-1
TODO Find correct name
@ReflectiveMethod(name = "c", types = {}) public boolean c(){ return (boolean) NMSWrapper.getInstance().exec(nmsObject); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "protected abstract String name ();", "abstract public String named();", "@Override\n\tString name();", "@Override\n protected String getName() {return _parms.name;}", "@Override\n String getName();", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpro...
[ "0.5991456", "0.5880368", "0.58532566", "0.58496195", "0.5740335", "0.57321703", "0.56900704", "0.5684384", "0.5682005", "0.5682005", "0.567981", "0.5672165", "0.56573975", "0.565536", "0.5643238", "0.56334233", "0.5630895", "0.56235874", "0.5622865", "0.5618608", "0.5590941"...
0.0
-1
TODO Find correct name
@ReflectiveMethod(name = "d", types = {}) public boolean d(){ return (boolean) NMSWrapper.getInstance().exec(nmsObject); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "protected abstract String name ();", "abstract public String named();", "@Override\n\tString name();", "@Override\n protected String getName() {return _parms.name;}", "@Override\n String getName();", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpro...
[ "0.5991456", "0.5880368", "0.58532566", "0.58496195", "0.5740335", "0.57321703", "0.56900704", "0.5684384", "0.5682005", "0.5682005", "0.567981", "0.5672165", "0.56573975", "0.565536", "0.5643238", "0.56334233", "0.5630895", "0.56235874", "0.5622865", "0.5618608", "0.5590941"...
0.0
-1
Removes only our private highlights
public void removeHighlights(JTextComponent textComp) { Highlighter hilite = textComp.getHighlighter(); Highlighter.Highlight[] hilites = hilite.getHighlights(); for (int i=0; i<hilites.length; i++) { if (hilites[i].getPainter() instanceof MyHighlightPainter) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void removeAllHighlights() {}", "@Override\n public void removeHighlight()\n {\n }", "public void removeHighlight() {\n if (highlightWord == null) {\r\n return;\r\n }\r\n \r\n for (int i = 0; i < highlightWord.length(); i++) {\r\n if...
[ "0.7664994", "0.7344703", "0.67764384", "0.669842", "0.63936776", "0.6383417", "0.6265745", "0.6262969", "0.619809", "0.60155714", "0.5901876", "0.5858836", "0.58517194", "0.5823537", "0.5624865", "0.56097245", "0.5556393", "0.5525043", "0.55152845", "0.54855615", "0.54227465...
0.6553517
4
methode qui fait les suggestions
public void sug() { texttt.addMouseListener( new MouseAdapter() { public void mouseClicked(MouseEvent e) { if ( SwingUtilities.isLeftMouseButton(e) ) { try { int offset = texttt.viewToMo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void findSuggestions(String query) {\n \t\tif (suggestionsLoaderClient != null) {\n \t\t\tif (query.length() == 0) {\n \t\t\t\tsuggestionsLoaderClient.doLoadSuggestions(\"default-query\",\n \t\t\t\t\t\tlimit);\n \t\t\t} else {\n \t\t\t\tsuggestionsLoaderClient.doLoadSuggestions(query, limit);\n \t\t\t}\n \t\t}\n \...
[ "0.69448435", "0.6917489", "0.67831314", "0.6753838", "0.668573", "0.6580611", "0.6560577", "0.6535319", "0.6515792", "0.65066", "0.64775", "0.6459303", "0.64523435", "0.6441421", "0.63866436", "0.6353077", "0.63521934", "0.6348765", "0.63352144", "0.6304979", "0.6303775", ...
0.5882632
60
Called when the activity is first created.
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.regist); signupbutton = (ImageView) findViewById(R.id.regist_okbutton); id = (EditText) findViewById(R.id.regist_userid); password = (Edit...
{ "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.791686", "0.77270156", "0.7693263", "0.7693263", "0.7693263", "0.7693263", "0.7693263", "0.7693263", "0.7637394", "0.7637394", "0.7629958", "0.76189965", "0.76189965", "0.7543775", "0.7540053", "0.7540053", "0.7539505", "0.75269467", "0.75147736", "0.7509639", "0.7500879",...
0.0
-1
Created by RookieWangZhiWei on 2018/7/26.
public interface ActionService { boolean add(ActionDto actionDto); boolean remove(Long id); boolean modify(ActionDto actionDto); ActionDto getById(Long id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\...
[ "0.6237934", "0.6110282", "0.58466095", "0.58440113", "0.5831396", "0.5831396", "0.5783648", "0.57823515", "0.57525706", "0.57416445", "0.5740759", "0.5719454", "0.571015", "0.567804", "0.5677113", "0.56700313", "0.5658321", "0.56476676", "0.56389123", "0.5635297", "0.5635297...
0.0
-1
static hier weghalen veranderd de uitkomst van 333 naar 3.
public MijnKlasse() { mijnMethode(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int nonStatic( int x ) {\n return x * 3;\n }", "static int getInt(){\n return j;\n }", "public int mo3356c() {\n return 0;\n }", "private int aleatorizarNaipe() {\n\t\tint aux;\n\t\taux = r.getIntRand(4);\n\t\treturn aux;\n\t}", "static void feladat3() {...
[ "0.6142994", "0.6017995", "0.58093405", "0.58092576", "0.57079506", "0.5685249", "0.5683568", "0.5660025", "0.5660025", "0.5586454", "0.557498", "0.55690056", "0.55487454", "0.55051494", "0.5496327", "0.5479342", "0.547049", "0.5444995", "0.54422003", "0.5431913", "0.5420697"...
0.0
-1
fill combobox on initialize
public void initialize() { fillCombobox(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initCombobox() {\n comboConstructeur = new ComboBox<>();\n comboConstructeur.setLayoutX(100);\n comboConstructeur.setLayoutY(250);\n\n\n BDDManager2 bddManager2 = new BDDManager2();\n bddManager2.start(\"jdbc:mysql://localhost:3306/concession?characterEncoding=utf8\"...
[ "0.8462818", "0.82958466", "0.8218005", "0.79889977", "0.7898145", "0.78331834", "0.7793709", "0.77345234", "0.7685164", "0.7619531", "0.7612522", "0.7597053", "0.75406355", "0.75258046", "0.7388195", "0.7371811", "0.73049617", "0.73029274", "0.7299047", "0.7272465", "0.72671...
0.8790238
0
opens the new person dialog to add a new person
public void act_newPerson(ActionEvent actionEvent) { try { Parent root = FXMLLoader.load(getClass().getClassLoader().getResource("newPersonGUI.fxml")); Stage stage = new Stage(); stage.setTitle("New Person"); stage.setScene(new Scene(root, 400, 300)); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@FXML\n private void handleNewPerson() {\n Shops tempShops = new Shops();\n boolean okClicked = mainApp.showPersonEditDialog(tempShops);\n if (okClicked) {\n mainApp.getPersonData().add(tempShops);\n }\n }", "public Dialog createAddPersonDialog(String title, String ms...
[ "0.76880664", "0.691988", "0.6833796", "0.67212677", "0.667176", "0.65718555", "0.65353996", "0.6529483", "0.65003127", "0.64871985", "0.6472421", "0.6281034", "0.62680674", "0.6217627", "0.6215071", "0.6203304", "0.62020934", "0.6188822", "0.618359", "0.6177302", "0.6172185"...
0.63196063
11
fill combobox with persons
public void fillCombobox() { List<String> list = new ArrayList<String>(); list.add("don't link"); if (dataHandler.persons.size() == 0) { list.add("No Persons"); ObservableList obList = FXCollections.observableList(list); cmb_linkedPerson.setItems(obList); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void fillComboBox() {\r\n\t\ttry {\r\n\t\t\tStatement statement = connection.createStatement();\r\n\t\t\tresults = statement.executeQuery(\"Select PeopleName from people \");\r\n\t\t\twhile (results.next()) {\r\n\t\t\t\tString peopleName = results.getString(\"PeopleName\");\r\n\t\t\t\tcomboBox.addIt...
[ "0.8459618", "0.73503", "0.73214465", "0.7260643", "0.7137049", "0.7000498", "0.6979443", "0.69500285", "0.6914347", "0.6907064", "0.6868959", "0.6808377", "0.67946315", "0.6743316", "0.67203575", "0.6718636", "0.671581", "0.6691324", "0.6685827", "0.66854846", "0.6682449", ...
0.81794786
1
onPostExecute displays the results of the AsyncTask.
@Override protected void onPostExecute(String result) { // Toast.makeText(getBaseContext(), "Data Sent!", Toast.LENGTH_LONG).show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void onPostExecute() {\n }", "protected void onPostExecute() {\r\n\t}", "protected void onPostExecute() {\n }", "protected void onPostExecute() {\n }", "@Override\n protected void onPostExecute(String result) {\n // tvResult.setText(result);\n }", "prote...
[ "0.7649192", "0.76296836", "0.75975955", "0.75975955", "0.7501419", "0.748076", "0.748076", "0.7468351", "0.74647146", "0.7443889", "0.7442882", "0.7421545", "0.7395976", "0.7393925", "0.7393925", "0.7391538", "0.7391538", "0.7391538", "0.7375527", "0.7374658", "0.7366173", ...
0.70629716
55
Cek x1 between x2 sama x3 apa ga
private boolean between(int x1, int x2, int x3) { return (x1 >= x3 && x1 <= x2) || (x1 <= x3 && x1 >= x2); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n int a;\n int b;\n int c;\n a = doDai(\"Nhap canh a\");\n b = doDai(\"Nhap canh b\");\n c = doDai(\"Nhap canh c\");\n if (((a + b) < c) || ((a + c) < b) || ((c + b) < a)) {\n System.out.println(\"khong the la 3 ca...
[ "0.5382248", "0.5318756", "0.52966875", "0.5239349", "0.5209848", "0.5172905", "0.5168737", "0.50598013", "0.49837464", "0.49728185", "0.49648148", "0.49550506", "0.49414697", "0.4938312", "0.49329272", "0.4904218", "0.48940074", "0.48822242", "0.4876995", "0.48686206", "0.48...
0.58908767
0
Cek apakah cell diisi oleh worm lain
private boolean isCellOccupied(Cell c) { Worm[] opponentWorms = opponent.worms; Worm[] playerWorms = player.worms; int i = 0; int j = 0; boolean foundOpponentWorm = false; boolean foundPlayerWorm = false; while ((i < opponentWorms.length) && (!foundOpponentWorm)) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setCellGrid(){\n count=0;\n status.setText(\"Player 1 Move\");\n field = new ArrayList<>();\n for (int i=0; i< TwoPlayersActivity.CELL_AMOUNT; i++) {\n field.add(new Cell(i));\n }\n }", "public void echantillon_zone(){\n\n JLabel lbl_Echantillo...
[ "0.66393876", "0.6599299", "0.6520953", "0.6339712", "0.6334278", "0.6309627", "0.63094586", "0.6307593", "0.62905794", "0.6259299", "0.625329", "0.6239566", "0.62293345", "0.6178133", "0.6170946", "0.6169891", "0.61662096", "0.61396575", "0.6069441", "0.60595316", "0.6059181...
0.0
-1
Cek apakah cell surrounded by dirt
private boolean isSurroundedByDirtAndLava() { List<Cell> surrounding = getSurroundingCells(currentWorm.position.x, currentWorm.position.y); int i = 0; boolean isAllDirt = true; while (i < surrounding.size() && (isAllDirt)) { if (!isDirt(surrounding.get(i)) && !isLava(surround...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static void drawCellID() { // draws a cross at each cell centre\n\t\tfloat xc,yc;\n\t\t//GeneralPath path = new GeneralPath();\n\t\tif (currentStage[currentSlice-1]>1)\n\t\t{\n\t\t\tfor (int i=0;i<pop.N;i++)\n\t\t\t{\n\t\t\t\txc = (float) ( (Balloon)(pop.BallList.get(i)) ).x0;\n\t\t\t\tyc = (float) ( (Balloon)(p...
[ "0.6289478", "0.6240765", "0.6055103", "0.5952884", "0.5941357", "0.593108", "0.5912544", "0.5910715", "0.5864401", "0.58552456", "0.58551013", "0.58427227", "0.5834613", "0.58307636", "0.58176345", "0.5801446", "0.5757662", "0.57106656", "0.5673035", "0.5659197", "0.56533164...
0.0
-1
Cek apakah cell surrounded by deep space
private boolean isSurroundedByDeepSpace() { List<Cell> surrounding = getSurroundingCells(currentWorm.position.x, currentWorm.position.y); int i = 0; boolean isAllDeepSpace = true; while (i < surrounding.size() && (isAllDeepSpace)) { if (!isDeepSpace(surrounding.get(i))) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic boolean takeCellSpace() {\n\t\treturn true;\n\t}", "@Override\n\tpublic void createCellStructure() {\n\t\t\n\t}", "public void addNotDefinedCells()\r\n {\r\n if (getCrosstabElement() == null) return;\r\n\r\n // First of all we have to calc what cells we have and in what po...
[ "0.6259073", "0.6203919", "0.6155627", "0.61238414", "0.6108305", "0.60720736", "0.60071707", "0.591616", "0.5901456", "0.5839755", "0.5799108", "0.57850397", "0.5778539", "0.5752612", "0.57256943", "0.5665148", "0.56591296", "0.5631325", "0.5631236", "0.5614948", "0.5607268"...
0.0
-1
Cari posisi worm lawan yang health nya minimum
private Position getPositionWormMinHealth(ArrayList<Worm> worms) { Worm wormWithMinHealth = worms.get(0); int i; for (Worm worm : worms) { if (worm.health < wormWithMinHealth.health) { wormWithMinHealth = worm; } } return (wormWithMinHealth...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double minimumDue(){\n return ((this.creditHours*this.feePerCreditHour)-this.scholarshipAmount+((this.healthInsurancePerAnnum*4)/12))/2;\n }", "private void setMinThreshold() {\n minThreshold = value + value * postBoundChange / 100;\n }", "protected abstract float _getGrowth...
[ "0.62218803", "0.6197779", "0.61816657", "0.6179069", "0.6174933", "0.61311305", "0.61254174", "0.61153466", "0.61113137", "0.6097045", "0.6096761", "0.6096761", "0.60962164", "0.60922956", "0.608403", "0.60823137", "0.6078594", "0.606191", "0.60598737", "0.6022473", "0.60194...
0.6161279
5
Mencari target untuk dilempar snowball
private Cell getSnowballTarget() { Cell[][] blocks = gameState.map; int mostWormInRange = 0; Cell chosenCell = null; for (int i = currentWorm.position.x - 5; i <= currentWorm.position.x + 5; i++) { for (int j = currentWorm.position.y - 5; j <= currentWorm.position.y + 5; j++...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void target() {\n\t\t// find distance to flower\n\t\tdouble dist = grid.getDistance(grid.getLocation(this),\n\t\t\t\t\t\t\t\t\t grid.getLocation(targetFlower));\n\t\t// if close to flower start harvesting nectar\n\t\tif(dist < 3) {\n\t\t\tstate = \"HARVESTING\";\n\t\t}\n\t\t// if VERY far from flower, it...
[ "0.6707348", "0.6294612", "0.6283718", "0.6072719", "0.60175127", "0.5935137", "0.59272116", "0.59171873", "0.5878305", "0.586592", "0.58566654", "0.5845434", "0.58185875", "0.58183855", "0.58180773", "0.57798636", "0.5761515", "0.5758705", "0.57578695", "0.57552195", "0.5743...
0.62163574
3
Mencari target untuk dilempar banana bomb
private Cell getBananaTarget() { Cell[][] blocks = gameState.map; int mostWormInRange = 0; Cell chosenCell = null; boolean wormAtCenter; for (int i = currentWorm.position.x - currentWorm.bananaBomb.range; i <= currentWorm.position.x + currentWorm.bananaBomb.range; i++){ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void baptism() {\n for (Card targetCard : Battle.getInstance().getActiveAccount().getActiveCardsOnGround().values()) {\n if (targetCard instanceof Minion) {\n targetCard.setHolyBuff(2, 1);\n }\n }\n }", "public Tile diveBomb() {\n List<Tile> tar...
[ "0.64476013", "0.630486", "0.6034359", "0.60337514", "0.60249746", "0.6007852", "0.58734095", "0.586343", "0.58628726", "0.5851951", "0.5843623", "0.582788", "0.5820788", "0.58144236", "0.58070827", "0.5756838", "0.57048", "0.57021517", "0.5689534", "0.5667478", "0.5664562", ...
0.5363884
50
Mencari cell yang terdapat power up
private Cell searchPowerUp() { for (Cell[] row : gameState.map) { for (Cell column : row) { if (column.powerUp != null) return column; } } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void powerdown() {\n monitor.sendPowerdown();\n }", "void powerOn();", "public void power()\r\n {\r\n powerOn = true;\r\n }", "@Override\n\tpublic void powerUp(int PowerId) {\n\n\t}", "public void power() {\r\n\t\tpowerOn = !powerOn;\r\n\t}", "public void setPowerUp(object_t...
[ "0.6815057", "0.664108", "0.6527553", "0.6511345", "0.64032495", "0.63413256", "0.6329486", "0.63148886", "0.6280256", "0.6230064", "0.6228317", "0.61648154", "0.61327064", "0.61023164", "0.6092503", "0.60702306", "0.59931755", "0.59590584", "0.59452426", "0.59331286", "0.591...
0.54711616
65
Dari surrounding cells, dipilih cell buat move/dig
private Cell chooseCell(List<Cell> surroundingCells, int destinationX, int destinationY) { boolean diagonalChosen = false; Cell chosenCell = surroundingCells.get(0); int i = 0; // Mencari cell yang bisa membawa ke cell tujuan while (i < surroundingCells.size() && !diagonalChose...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int cellFromDistance(int d) {\n int d2 = d - GUTTER_SIZE;\n if (d2 < 0) {\n return -1;\n } else {\n d2 /= (CELL_SIZE + GUTTER_SIZE);\n int next = cellDistance(d2 + 1);\n if (next - d <= GUTTER_SIZE)\n return -1;\n else\n ...
[ "0.64605373", "0.64526755", "0.6378933", "0.6299775", "0.62199265", "0.61604124", "0.6157432", "0.6140022", "0.6133769", "0.60870147", "0.60786545", "0.6070697", "0.6064324", "0.6053474", "0.60476035", "0.6036219", "0.6034969", "0.59887296", "0.5986618", "0.5976107", "0.59726...
0.61754423
5
Mencari worm lawan yang paling dekat dengan worm pemain
private Worm getClosestWorm() { Worm closestEnemy = null; double closestDistance = 1000; for (Worm enemyWorms : opponent.worms) { if (enemyWorms.health > 0) { double distance = 0; for (Worm myWorm : player.worms) { if (myWorm.heal...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void ektypwsiFarmakou() {\n\t\t// Elegxw an yparxoun farmaka\n\t\tif(numOfMedicine != 0)\n\t\t{\n\t\t\tfor(int i = 0; i < numOfMedicine; i++)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"INFO FOR MEDICINE No.\" + (i+1) + \":\");\n\t\t\t\tmedicine[i].print();\n\t\t\t\tSystem.out.prin...
[ "0.642213", "0.64075005", "0.6391391", "0.6278171", "0.626237", "0.6236296", "0.6223493", "0.6222797", "0.6212173", "0.6186881", "0.6184031", "0.61324924", "0.6096297", "0.609425", "0.6075505", "0.60699284", "0.6059027", "0.60522765", "0.6051621", "0.6047542", "0.60457265", ...
0.0
-1
Mencari cell yang terkena damage dari banana bomb
private List<Cell> getBananaAffectedCell(int x, int y) { ArrayList<Cell> cells = new ArrayList<>(); for (int i = x - 2; i <= x + 2; i++) { for (int j = y - 2; j <= y + 2; j++) { // Don't include the current position if (isValidCoordinate(i, j) && euclideanDist...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void damage(){\n\n LevelMap.getLevel().damage(dmg);\n //System.out.println(\"died\");\n setDie();\n }", "public int useBomb(){\n //do harm while the animation start\n //cause harm to the boss\n println(\"BEFORE Main.boss.health: \"+Main.boss.health);\n ...
[ "0.68088627", "0.65948457", "0.65839285", "0.6574748", "0.6494501", "0.6465288", "0.64378124", "0.643472", "0.63839376", "0.6340939", "0.63347894", "0.6257957", "0.6243476", "0.62047875", "0.62047875", "0.62047875", "0.62047875", "0.62047875", "0.61953276", "0.6193333", "0.61...
0.0
-1
Mengecek apakah terdapat worm pemain di arah d
private boolean isMyWormInShootingRange(Direction d) { MyWorm currentWorm = getCurrentWorm(gameState); // direction N(0, -1), NE(1, -1), E(1, 0), SE(1, 1), S(0, 1), SW(-1, 1), W(-1,0), NW(-1, -1) Worm[] myWorms = player.worms; int i = 0; boolean found = false; while ((i <...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void atakuj() {\n\n System.out.println(\"to metoda atakuj z klasy Potwor \");\n\n }", "private void hienThiMaPDK(){\n ThuePhongService thuePhongService = new ThuePhongService();\n thuePhongModels = thuePhongService.layToanBoPhieuDangKyThuePhong();\n cbbMaPDK.removeAllItems();\n...
[ "0.6594296", "0.6451902", "0.64358133", "0.6433283", "0.6401013", "0.6400323", "0.6345458", "0.6280457", "0.6274441", "0.6260273", "0.625635", "0.62327194", "0.62303406", "0.62226266", "0.6196746", "0.6194739", "0.61802083", "0.61677957", "0.61619854", "0.61608154", "0.613469...
0.0
-1
Mengecek apakah worm 1 dan worm 2 diagonal
private boolean isDiagonal(Worm worm1, Worm worm2){ return Math.abs(worm1.position.x - worm2.position.x) == Math.abs(worm1.position.y - worm2.position.y); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testCuatroEnRayaDiag2() {\n\t\t\n\t\tint []posX = new int[4];\n\t\tint []posY = new int[4];\n\t\tfor (int i = 1; i <= 12; ++i) {\n\t\t\tint sx = Math.min(i, 7);\n\t\t\tint sy = Math.min(13 - i, 6);\n\t\t\twhile ((sy - 4 >= 0) && (sx - 4 >= 0)) {\n\t\t\t\tfor (int l = 0; l < 4; ++l) {\n\t\t\t\...
[ "0.6559045", "0.6428849", "0.6428136", "0.64119303", "0.6283477", "0.6227664", "0.6174776", "0.6158128", "0.606643", "0.6023626", "0.6018881", "0.59729224", "0.596554", "0.58902365", "0.58656466", "0.58217335", "0.5814681", "0.58009446", "0.5786907", "0.57576215", "0.5748543"...
0.57366884
21
Mencari cell di sekitar currentWorm yang kosong
private Cell searchEmptySurrounding(){ List <Cell> blocks = getSurroundingCells(currentWorm.position.x, currentWorm.position.y); for (Cell block : blocks){ if(!isCellOccupied(block)) return block; } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setCellGrid(){\n count=0;\n status.setText(\"Player 1 Move\");\n field = new ArrayList<>();\n for (int i=0; i< TwoPlayersActivity.CELL_AMOUNT; i++) {\n field.add(new Cell(i));\n }\n }", "public void update(GameModel model) {\n assert model.getR...
[ "0.62069976", "0.6008625", "0.5894852", "0.5887114", "0.5886005", "0.58567196", "0.5851223", "0.5722695", "0.57186234", "0.57184947", "0.5641433", "0.56232065", "0.5621388", "0.56163436", "0.5608603", "0.55915177", "0.55439806", "0.5529476", "0.55133045", "0.5500982", "0.5488...
0.0
-1
TODO Autogenerated method stub
public void endContact(Contact contact) { }
{ "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
public void preSolve(Contact contact, Manifold oldManifold) { }
{ "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
public void postSolve(Contact contact, ContactImpulse impulse) { }
{ "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
User: PangYi Date: 20191130 Time: 9:02 Description:
public interface AirHistoryMapper extends BaseMapper<AirHistory> { /** * 获取每日的空气站参数浓度值 * * @param tableName 表名 * @param deviceNo 设备号 * @param start 开始时间 * @param end 结束时间 * @return 信息 */ AirAvgModel getAvgToDay(@Param("tableName") String tableName, @Param("dev...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static String getTime() {\n\t\tDate getDate = new Date();\n\t\tString timeFormat = \"M/d/yy hh:mma\";\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(timeFormat);\n\t\treturn \"[\" + sdf.format(getDate) + \"]\\t\";\n\t}", "public static void main(String[] args) throws Exception {\n Calendar cal =...
[ "0.6188952", "0.61672103", "0.6139154", "0.6096982", "0.6086093", "0.60723037", "0.60056585", "0.593095", "0.59185123", "0.59055793", "0.5895581", "0.5849547", "0.5848497", "0.5836265", "0.5836265", "0.5832943", "0.580598", "0.580598", "0.5771698", "0.57696366", "0.57670367",...
0.0
-1
Adjust the size of the video so it fits on the screen
private void setDimension() { float videoProportion = getVideoProportion(); int screenWidth = getResources().getDisplayMetrics().widthPixels; int screenHeight = getResources().getDisplayMetrics().heightPixels; float screenProportion = (float) screenHeight / (float) screenWidth; V...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onVideoSizeChanged(MediaPlayer mp, int width, int height) {\n adjustSize(mVideoView, width, height, DisplayType.CENTER_INSIDE);\n //adjustSize(mVideoView, width, height, DisplayType.CENTER_CROP);\n ...
[ "0.780383", "0.7289982", "0.7071185", "0.7020116", "0.7020116", "0.67517483", "0.67335826", "0.670226", "0.6685272", "0.66461104", "0.6547677", "0.6506225", "0.6363502", "0.6343906", "0.63048", "0.61217874", "0.6103383", "0.609394", "0.6065931", "0.60241765", "0.6021636", "...
0.8113865
0
Control whether the EGL context is preserved when the GLSurfaceView is paused and resumed. If set to true, then the EGL context may be preserved when the GLSurfaceView is paused. Whether the EGL context is actually preserved or not depends upon whether the Android device that the program is running on can support an ar...
public void preserveEGLContextOnPause(boolean preserveOnPause) { int sdkVersion = android.os.Build.VERSION.SDK_INT; if (sdkVersion >= 11) { try { this.getClass().getMethod("setPreserveEGLContextOnPause", boolean.class).invoke(this, preserveOnPause); } catch (Excep...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean swap() {\r\n if (! mEgl.eglSwapBuffers(mEglDisplay, mEglSurface)) {\r\n\r\n /*\r\n * Check for EGL_CONTEXT_LOST, which means the context\r\n * and all associated data were lost (For instance because\r\n * the device went to sleep). We need to sle...
[ "0.5651159", "0.55831075", "0.5560332", "0.5550565", "0.5519614", "0.5515531", "0.5515531", "0.5418922", "0.53542113", "0.5303119", "0.529968", "0.52873445", "0.5285267", "0.5285267", "0.5266547", "0.52208406", "0.52018285", "0.52000934", "0.5198786", "0.5134557", "0.5114113"...
0.716435
0
Called if the user changed the selection during the NEW or UPDATE state of the related table record.
public void onSelect(IClientContext context, IComboBox emitter) throws Exception { String comboState =emitter.getValue(); ISingleDataGuiElement field = (ISingleDataGuiElement)context.getGroup().findByName("requestOwner"); field.setRequired(!"New".equals(comboState)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void selectionChanged() {\r\n int fila = menuCursos.tablaCursos.getSelectedRow();\r\n try {\r\n actual=(Cursos) rs.get(fila);\r\n if(actual.getCodigo()!=null){\r\n MostrarRegistro();\r\n menuCursos.botonCursosBorrar.setEnabled(fila != -1);\r\...
[ "0.67247427", "0.6439475", "0.632956", "0.6156801", "0.61177105", "0.60266787", "0.60085595", "0.5987219", "0.5938364", "0.5880255", "0.58781636", "0.58611685", "0.5852221", "0.5831496", "0.58187044", "0.57883817", "0.5762883", "0.5762374", "0.57438993", "0.57371354", "0.5721...
0.0
-1
first is setup for testfind matches this string has only one word the findmatches should recognize Next is setup for testtostring
@Before public void setUp() { dict = new Dictionary(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void StringFinder()\n {\n // String to be scanned to find the pattern.\n String TargetString = \"Find me in me this string me, test me\";\n String SearchExpression_literal = \"me\"; // Default Pattern (RegEx ) group\n\n // Create a Pattern object\n Pattern r = P...
[ "0.64625996", "0.6191497", "0.60960513", "0.5998174", "0.5940486", "0.58955026", "0.5883988", "0.5868994", "0.5847637", "0.58411235", "0.5837426", "0.5826407", "0.5821284", "0.5821254", "0.5787448", "0.57670957", "0.5765454", "0.5763264", "0.5742689", "0.57237804", "0.5722369...
0.0
-1
TODO Autogenerated method stub
@Override public Shape getHitbox() { 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
volume of a sphere (class method)
public static double volume(double radius){ return 4.0 / 3.0 * Math.PI * Math.pow(radius,3.0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract float volume();", "public abstract double volume();", "@Override\n\tpublic float volume() {\n\t\treturn (float) ((4/3) * Math.PI * Math.pow(radius, 3));\n\t}", "public double volume () {return (4/3)*Math.PI*this.r*this.r*this.r;}", "public abstract double calcVolume();", "public abstract ...
[ "0.784995", "0.781405", "0.7747753", "0.7651648", "0.7556452", "0.7556452", "0.75471157", "0.7543277", "0.75290763", "0.74653", "0.74058324", "0.73883206", "0.7296775", "0.7276736", "0.72330314", "0.7118379", "0.70778465", "0.7065962", "0.6993731", "0.69514847", "0.6950927", ...
0.6801002
28
volume of a sphere (class method)
public static double surfaceArea(double radius){ return Math.PI * Math.pow(radius,2.0) * 4; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract float volume();", "public abstract double volume();", "@Override\n\tpublic float volume() {\n\t\treturn (float) ((4/3) * Math.PI * Math.pow(radius, 3));\n\t}", "public double volume () {return (4/3)*Math.PI*this.r*this.r*this.r;}", "public abstract double calcVolume();", "public abstract ...
[ "0.78471684", "0.78109497", "0.7745064", "0.7648354", "0.75532717", "0.75532717", "0.7543771", "0.7540382", "0.75289315", "0.74621296", "0.74024004", "0.738512", "0.72936136", "0.7273168", "0.72298926", "0.71150476", "0.7079249", "0.7062493", "0.6990335", "0.69480854", "0.694...
0.0
-1