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
Creates a new IndexedProgram.
public IndexedProgram(int index, Program program) { this.index = index; this.program = program; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Program createProgram();", "Program createProgram();", "Program createProgram();", "Program program() throws SyntaxException {\r\n\t\tToken first = t;\r\n\t\tToken progName = match(IDENTIFIER);\r\n\t\tBlock block = block();\r\n\t\treturn new Program (first, progName, block);\r\n\t}", "public Program progra...
[ "0.7017969", "0.7017969", "0.7017969", "0.6298247", "0.60550725", "0.5879775", "0.5553273", "0.55333287", "0.54488707", "0.5316871", "0.5296491", "0.526659", "0.5223908", "0.517145", "0.51596254", "0.51270986", "0.5121779", "0.5095094", "0.50109094", "0.5005311", "0.4972158",...
0.74109745
0
query group flow control rule
public StringBuilder adminQueryGroupFlowCtrlRule(HttpServletRequest req, StringBuilder sBuffer, ProcessResult result) { // build query entity GroupResCtrlEntity qryEntity = new GroupResCtrlEntity(); // get queried operation info, for createUser, modifyUser, dataVersionId ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testGroup() throws Exception {\n HepProgramBuilder programBuilder = HepProgram.builder();\n programBuilder.addGroupBegin();\n programBuilder.addRuleInstance( CalcMergeRule.INSTANCE );\n programBuilder.addRuleInstance( ProjectToCalcRule.INSTANCE );\n program...
[ "0.635682", "0.60655856", "0.5623399", "0.5543905", "0.54812086", "0.5428142", "0.5397508", "0.5375558", "0.5348539", "0.5311582", "0.5281297", "0.52477705", "0.5193039", "0.5192272", "0.51360846", "0.5118435", "0.51120406", "0.50902814", "0.5073531", "0.5062864", "0.505839",...
0.6079583
1
add group flow control rule
public StringBuilder adminSetGroupFlowCtrlRule(HttpServletRequest req, StringBuilder sBuffer, ProcessResult result) { return innAddOrUpdGroupFlowCtrlRule(req, sBuffer, result, true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private StringBuilder innAddOrUpdGroupFlowCtrlRule(HttpServletRequest req,\n StringBuilder sBuffer,\n ProcessResult result,\n boolean isAddOp) {\n // check and get operation info\n if (!WebParameterUtils.getAUDBaseInfo(req, isAddOp, null, sBuffer, result)) {\n ...
[ "0.6538334", "0.6166792", "0.60908633", "0.59642607", "0.5911365", "0.5547393", "0.55456746", "0.55391", "0.5529446", "0.55161536", "0.55093235", "0.54997593", "0.54841655", "0.54261947", "0.54181606", "0.540661", "0.5393932", "0.53762543", "0.5358298", "0.5350123", "0.530601...
0.5650901
5
modify group flow control rule
public StringBuilder adminUpdGroupFlowCtrlRule(HttpServletRequest req, StringBuilder sBuffer, ProcessResult result) { return innAddOrUpdGroupFlowCtrlRule(req, sBuffer, result, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private StringBuilder innAddOrUpdGroupFlowCtrlRule(HttpServletRequest req,\n StringBuilder sBuffer,\n ProcessResult result,\n boolean isAddOp) {\n // check and get operation info\n if (!WebParameterUtils.getAUDBaseInfo(req, isAddOp, null, sBuffer, result)) {\n ...
[ "0.61825943", "0.5874147", "0.5797916", "0.5652809", "0.56200695", "0.55222017", "0.5464077", "0.546091", "0.543518", "0.53896916", "0.5376197", "0.5348393", "0.53434646", "0.5294865", "0.52712905", "0.5260483", "0.5246179", "0.5232246", "0.51983654", "0.51818913", "0.5169765...
0.52544194
16
delete group flow control rule
public StringBuilder adminDelGroupFlowCtrlRule(HttpServletRequest req, StringBuilder sBuffer, ProcessResult result) { // check and get operation info if (!WebParameterUtils.getAUDBaseInfo(req, false, null, sBuffer, result)) { WebParameterUtils.buildFailResult(sBuffer,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void deleteRuleAfterFirstMvt() {\n\t\t\n\t}", "void deleteTAlgmntBussRule(Integer ruleId);", "@Override\n public void deleteRuleAR() {\n }", "@Override\n public void deleteVisRuleAR() {\n }", "void deleteRule(long ruleID, boolean dropPendingCmdlets) throws IOException;", "...
[ "0.6881371", "0.67776954", "0.6744463", "0.6744246", "0.65558887", "0.6513221", "0.64975625", "0.619319", "0.5980651", "0.58838165", "0.58386505", "0.5718615", "0.56925505", "0.56813693", "0.5675605", "0.56631875", "0.5659618", "0.5616919", "0.5581415", "0.5566422", "0.554640...
0.6160118
8
add or modify flow control rule
private StringBuilder innAddOrUpdGroupFlowCtrlRule(HttpServletRequest req, StringBuilder sBuffer, ProcessResult result, boolean isAddOp) { // check and get operation info if (!WebParameterUtils.getAUDBaseInfo(req, isAddOp, null, sBuffer, result)) { WebPara...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void add_rule(Rule rule) throws Exception;", "void setRule(Rule rule);", "private void applyRules(boolean install, FlowRule rule) {\n FlowRuleOperations.Builder ops = FlowRuleOperations.builder();\n\n ops = install ? ops.add(rule) : ops.remove(rule);\n flowRuleService.apply(ops.buil...
[ "0.698925", "0.6631194", "0.63761157", "0.6324022", "0.6163767", "0.5989485", "0.5898685", "0.58918726", "0.5841771", "0.58412117", "0.5782621", "0.57420486", "0.5720321", "0.570344", "0.5674527", "0.5669205", "0.5665805", "0.5656831", "0.5656831", "0.5656831", "0.56481725", ...
0.57842064
10
Initialize all the fields via constructor performing deep copy.
public Person(String fn, String ln, Set<String> pns) { this.firstName = fn; this.lastName = ln; Collection<E> oldSet = pns; TreeSet<E> tempPhone = new TreeSet<E>(pns); this.phoneNumbers = tempPhone; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void copyConstructor(){\n\t}", "private ImmutablePerson(ImmutablePerson other) {\n firstName = other.firstName;\n middleName = other.middleName;\n lastName = other.lastName;\n nickNames = new ArrayList<>(other.nickNames);\n }", "private void initialize()\n {\n a...
[ "0.6631527", "0.61600024", "0.61242044", "0.6050419", "0.599207", "0.5939931", "0.5915114", "0.58601314", "0.58004194", "0.5793185", "0.57684714", "0.5760259", "0.5693737", "0.56656003", "0.56471723", "0.56306785", "0.5610825", "0.55910957", "0.5586706", "0.5576121", "0.55486...
0.0
-1
/ Access modifiers changed, original: final|synthetic
public final /* synthetic */ void lambda$logout$1$SettingViewModel(Boolean bool) { if (bool.booleanValue()) { this.navigator.logout(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void func_104112_b() {\n \n }", "private stendhal() {\n\t}", "public final void mo51373a() {\n }", "@Override\n protected void prot() {\n }", "@Override\n public void perish() {\n \n }", "private void m50366E() {\n }", "@Override\n\tpublic vo...
[ "0.68617284", "0.6812668", "0.65955913", "0.6578562", "0.64915705", "0.64714926", "0.64693224", "0.6417546", "0.6378301", "0.6370781", "0.63683546", "0.6352732", "0.6339567", "0.6336902", "0.6329724", "0.6309058", "0.629981", "0.62498575", "0.6243633", "0.62333345", "0.621898...
0.0
-1
/ Access modifiers changed, original: final|synthetic
public final /* synthetic */ void lambda$withdrawal$3$SettingViewModel(Boolean bool) { if (bool.booleanValue()) { this.navigator.withdrawal(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void func_104112_b() {\n \n }", "private stendhal() {\n\t}", "public final void mo51373a() {\n }", "@Override\n protected void prot() {\n }", "@Override\n public void perish() {\n \n }", "private void m50366E() {\n }", "@Override\n\tpublic vo...
[ "0.68617284", "0.6812668", "0.65955913", "0.6578562", "0.64915705", "0.64714926", "0.64693224", "0.6417546", "0.6378301", "0.6370781", "0.63683546", "0.6352732", "0.6339567", "0.6336902", "0.6329724", "0.6309058", "0.629981", "0.62498575", "0.6243633", "0.62333345", "0.621898...
0.0
-1
/ Access modifiers changed, original: final|synthetic
public final /* synthetic */ void lambda$showTheme$4$SettingViewModel(Integer num) { this.navigator.showTheme(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void func_104112_b() {\n \n }", "private stendhal() {\n\t}", "public final void mo51373a() {\n }", "@Override\n protected void prot() {\n }", "@Override\n public void perish() {\n \n }", "private void m50366E() {\n }", "@Override\n\tpublic vo...
[ "0.68617284", "0.6812668", "0.65955913", "0.6578562", "0.64915705", "0.64714926", "0.64693224", "0.6417546", "0.6378301", "0.6370781", "0.63683546", "0.6352732", "0.6339567", "0.6336902", "0.6329724", "0.6309058", "0.629981", "0.62498575", "0.6243633", "0.62333345", "0.621898...
0.0
-1
/ Access modifiers changed, original: final|synthetic
public final /* synthetic */ void lambda$information$5$SettingViewModel(Integer num) { this.navigator.information(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void func_104112_b() {\n \n }", "private stendhal() {\n\t}", "public final void mo51373a() {\n }", "@Override\n protected void prot() {\n }", "@Override\n public void perish() {\n \n }", "private void m50366E() {\n }", "@Override\n\tpublic vo...
[ "0.68617284", "0.6812668", "0.65955913", "0.6578562", "0.64915705", "0.64714926", "0.64693224", "0.6417546", "0.6378301", "0.6370781", "0.63683546", "0.6352732", "0.6339567", "0.6336902", "0.6329724", "0.6309058", "0.629981", "0.62498575", "0.6243633", "0.62333345", "0.621898...
0.0
-1
101tom 118no0086.01 202tomas 217no0075.02 215no00523.12
@Override protected void reduce(CompKey key, Iterable<Text> values, Reducer<CompKey, Text, Text, NullWritable>.Context context) throws IOException, InterruptedException { Iterator<Text> it = values.iterator(); String cinfo = it.next().toString(); while(it.hasNext()){ String oinfo = it.next().toString()...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String Interpretar(String num) {\r\n\t\tif(num.length() > 3)\r\n\t\t\treturn \"\";\r\n\t\tString salida=\"\";\r\n\t\t\r\n\t\tif(Dataposi(num,2) != 0)\r\n\t\t\tsalida = Centenas[Dataposi(num,2)-1];\r\n\t\t\r\n\t\tint k = Integer.parseInt(String.valueOf(Dataposi(num,1))+String.valueOf(Dataposi(num,0)));\r\n\...
[ "0.53827643", "0.532901", "0.528323", "0.5281253", "0.52775556", "0.52627677", "0.52500784", "0.524243", "0.5224361", "0.5220588", "0.5192319", "0.51649034", "0.5140426", "0.5113028", "0.51059616", "0.5105291", "0.51038444", "0.5097169", "0.5096319", "0.50893384", "0.5058536"...
0.0
-1
String link = url(null, Double.toString(mLatitude), Double.toString(mLongitude)); Intent sendIntent = new Intent(getBaseContext(), PhoneToWatchService.class); sendIntent.putExtra("NAMES", names); sendIntent.putExtra("WEBSITES", websites); sendIntent.putExtra("EMAILS", emails); startService(sendIntent);
@Override public void onClick(View v) { Intent activityIntent = new Intent(MainActivity.this, LocalList.class); // activityIntent.putExtra("reps", getInfo(MainActivity.this, link)); activityIntent.putExtra("zipcode", zipcode.getText().toString()); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onStart() {\n super.onStart();\n Intent intent = new Intent(this, DownloadResponseService.class);\n intent.putExtra(LONGITUDE, longitude);\n intent.putExtra(LATITUDE, latitude);\n startService(intent);//start service with input as longitude/latitude\n ...
[ "0.6493563", "0.62526035", "0.6190652", "0.61808705", "0.61371493", "0.6134779", "0.5942841", "0.5915345", "0.58944196", "0.5854501", "0.58513314", "0.58506966", "0.5847591", "0.5844714", "0.58443743", "0.58368605", "0.58199626", "0.58131635", "0.581255", "0.58111733", "0.580...
0.5637829
38
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu_main, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {...
[ "0.7246102", "0.7201358", "0.7194834", "0.7176498", "0.71066517", "0.7039537", "0.7037961", "0.70112145", "0.70094734", "0.69807225", "0.6944953", "0.69389373", "0.6933199", "0.6916928", "0.6916928", "0.6891486", "0.68831646", "0.68754137", "0.68745375", "0.68621665", "0.6862...
0.0
-1
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); //noinspection SimplifiableIfStatement if (id == R.id.action_settings) { return true; } return super.onOptionsItemSelected(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n ...
[ "0.79041183", "0.7805934", "0.77659106", "0.7727251", "0.7631684", "0.7621701", "0.75839096", "0.75300384", "0.74873656", "0.7458051", "0.7458051", "0.7438486", "0.742157", "0.7403794", "0.7391802", "0.73870087", "0.7379108", "0.7370295", "0.7362194", "0.7355759", "0.73454577...
0.0
-1
useful for verbose logging output don't commit this with this property enabled, or any 'mvn test' will be really verbose System.setProperty("org.slf4j.simpleLogger.log.nifi.processors.standard", "debug"); create a Jetty server on a random port
@BeforeClass public static void beforeClass() throws Exception { server = createServer(); server.startServer(); // this is the base url with the random port url = server.getUrl(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void traceSettingInfo() {\n log(\"Setting proxy to \"\n + (proxyHost != null ? proxyHost : \"''\")\n + \":\" + proxyPort,\n Project.MSG_VERBOSE);\n }", "@Parameter(optional=true, description=\"Port number for the embedded Jetty HTTP server, default: ...
[ "0.5857505", "0.5805846", "0.5549582", "0.55355537", "0.53982246", "0.5382786", "0.53487235", "0.5316536", "0.5313089", "0.5276604", "0.5274847", "0.5264332", "0.52597183", "0.5241863", "0.52142847", "0.5207851", "0.51909375", "0.51639205", "0.51546025", "0.51472694", "0.5143...
0.0
-1
Currently InvokeHttp does not support Proxy via Https
@Test public void testProxy() throws Exception { addHandler(new MyProxyHandler()); URL proxyURL = new URL(url); runner.setProperty(InvokeHTTP.PROP_URL, "http://nifi.apache.org/"); // just a dummy URL no connection goes out runner.setProperty(InvokeHTTP.PROP_PROXY_HOST, proxyURL.getH...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Proxy getProxy();", "public void setHttpProxyHost(String host);", "public String getHttpProxyHost();", "String getHttpProxyHost();", "public interface ProxyConnector {\n\n /**\n * Comprueba que se cumplan los requisitos para la conexi&oacute;n con el servicio proxy.\n * @throws IOException Cuand...
[ "0.66530013", "0.6598556", "0.6581025", "0.65266526", "0.62619", "0.62054306", "0.61900926", "0.6142183", "0.6054889", "0.6033931", "0.60088086", "0.59523547", "0.5883925", "0.5872875", "0.58498627", "0.5832227", "0.5825054", "0.5798359", "0.5774111", "0.5773588", "0.5750774"...
0.5851118
14
/ Get a Transaction by Id from database
@Override public Optional<Seq> getbyid(int id) { Connection conn = null; PreparedStatement pstmt=null; ResultSet rs; Seq seq=null; ProcessesDAO pdao = new ProcessesDAO(); try { String url = "jdbc:sqlite:src\\database\\AT2_Mobile.db"; conn = DriverManager.getConnection(ur...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Transaction get(String id) throws Exception;", "public Transaction getById(String id) throws Exception;", "Transaction findTransactionById(Long id);", "Transaction getTransctionByTxId(String txId);", "public Transaction getTransactionById(Integer id) throws MiddlewareQueryException;", "Transaction select...
[ "0.8722722", "0.8712065", "0.85512227", "0.8347415", "0.8333308", "0.8092789", "0.796512", "0.77627385", "0.7712489", "0.7641145", "0.75331163", "0.7335328", "0.7235204", "0.72196454", "0.7041455", "0.70354074", "0.69765055", "0.6961301", "0.69452745", "0.694039", "0.6823534"...
0.0
-1
/ Get All Transactions from database
@Override public List<Seq> getAll() { Connection conn = null; Statement stmt = null; List<Seq> listSeqs = new ArrayList<>(); try { String url = "jdbc:sqlite:src\\database\\AT2_Mobile.db"; conn = DriverManager.getConnection(url); stmt = conn.create...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Collection<Transaction> getAllTransactions();", "public List<Transaction> getAllTransactions(){\n Cursor cursor = fetchAllRecords();\n List<Transaction> transactions = new ArrayList<Transaction>();\n if (cursor != null){\n while(cursor.moveToNext()){\n transa...
[ "0.8463736", "0.81969374", "0.8117521", "0.80256116", "0.7887686", "0.78512406", "0.7786291", "0.765574", "0.76404136", "0.7638676", "0.75803673", "0.74309605", "0.7301221", "0.7144813", "0.7116727", "0.71103674", "0.7069469", "0.70500594", "0.7048989", "0.7016193", "0.693041...
0.0
-1
/ Save a Transaction into a database
@Override public void save(Seq s) { // TODO Auto-generated method stub //Establish cnx Connection conn = null; String url = "jdbc:sqlite:src\\database\\AT2_Mobile.db"; try { conn = DriverManager.getConnection(url); PreparedStatement myStmt; String query = "insert into seq(identifier,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Transaction save(Transaction transaction);", "void commit(Transaction transaction);", "void commitTransaction();", "@Override\n\tpublic void createTransaction(Transaction t) { \n\t\t/* begin transaction */ \n\t\tSession session = getCurrentSession(); \n\t\tsession.beginTransaction(); \n\n\t\t/* save */ \n\t\...
[ "0.8357147", "0.7535662", "0.7514782", "0.74051464", "0.72096187", "0.69924146", "0.696304", "0.69442666", "0.6910661", "0.68904287", "0.67936236", "0.67878956", "0.67872524", "0.6769175", "0.66904896", "0.6689252", "0.6660041", "0.66265416", "0.66265416", "0.6597348", "0.659...
0.0
-1
TODO Autogenerated method stub Establish cnx
public void create_seq(String identifier) { Connection conn = null; String url = "jdbc:sqlite:src\\database\\AT2_Mobile.db"; try { conn = DriverManager.getConnection(url); PreparedStatement myStmt; String query = "insert into seq(identifier, seq_number) values(?,?)"; myStmt = conn.prepareStatement(qu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Map<String, Object> getXNetComponent() {\n if (!init()) {\n Log.info(LifeCARDAdmin.class.getName() + \":getXNetComponent():Initialization failed.\");\n return null;\n }\n Map<String, Object> xnetComp = new HashMap<>();\n xnetComp.put(\"XNETStarted\", false);\n ActiveMQComponent amqC...
[ "0.53064364", "0.5220932", "0.51949483", "0.5146956", "0.51329076", "0.50948656", "0.50758404", "0.50438434", "0.49969062", "0.499373", "0.4981579", "0.49767327", "0.4972163", "0.49536583", "0.4929786", "0.49046612", "0.48441488", "0.4831414", "0.4830681", "0.48295915", "0.48...
0.0
-1
/ Update a Transaction into a database
@Override public void update(Seq s, String[] param) { // TODO Auto-generated method stub Connection conn = null; String url = "jdbc:sqlite:src\\database\\AT2_Mobile.db"; try { conn = DriverManager.getConnection(url); PreparedStatement myStmt; String query = "update seq set identifier=?...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateTransaction(Transaction trans);", "public void UpdateTransaction() {\n\t\tgetUsername();\n\t\tcol_transactionID.setCellValueFactory(new PropertyValueFactory<Account, Integer>(\"transactionID\"));\n\t\tcol_date.setCellValueFactory(new PropertyValueFactory<Account, Date>(\"date\"));\n\t\tcol_desc...
[ "0.8205174", "0.7232187", "0.72252876", "0.72190833", "0.70870656", "0.69781154", "0.6940977", "0.68710315", "0.6856298", "0.6814272", "0.67905974", "0.67241716", "0.65370065", "0.6390577", "0.6341139", "0.62662256", "0.6259554", "0.6257114", "0.62443835", "0.62442213", "0.62...
0.0
-1
TODO Autogenerated method stub Establish cnx
public void updatebyseq_number(String identifier, int new_seq) { Connection conn = null; String url = "jdbc:sqlite:src\\database\\AT2_Mobile.db"; try { conn = DriverManager.getConnection(url); PreparedStatement myStmt; String query = "update seq set seq_number=? where identifier = ?"; myStmt = con...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Map<String, Object> getXNetComponent() {\n if (!init()) {\n Log.info(LifeCARDAdmin.class.getName() + \":getXNetComponent():Initialization failed.\");\n return null;\n }\n Map<String, Object> xnetComp = new HashMap<>();\n xnetComp.put(\"XNETStarted\", false);\n ActiveMQComponent amqC...
[ "0.53064364", "0.5220932", "0.51949483", "0.5146956", "0.51329076", "0.50948656", "0.50758404", "0.50438434", "0.49969062", "0.499373", "0.4981579", "0.49767327", "0.4972163", "0.49536583", "0.4929786", "0.49046612", "0.48441488", "0.4831414", "0.4830681", "0.48295915", "0.48...
0.0
-1
/ Delete a Transaction from a database
@Override public void delete(Seq s) { // TODO Auto-generated method stub //Establish cnx Connection conn = null; String url = "jdbc:sqlite:src\\database\\AT2_Mobile.db"; try { conn = DriverManager.getConnection(url); PreparedStatement myStmt; String query = "delete from seq where id ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void deleteTransaction() {\n\t\tconn = MySqlConnection.ConnectDb();\n\t\tString sqlDelete = \"delete from Account where transactionID = ?\";\n\t\ttry {\n\t\t\t\n\t\t\tps = conn.prepareStatement(sqlDelete);\n\t\t\tps.setString(1, txt_transactionID.getText());\n\t\t\tps.execute();\n\n\t\t\tUpdateTransaction()...
[ "0.7987224", "0.79402834", "0.7884129", "0.77736926", "0.73399645", "0.7277107", "0.7218799", "0.69951195", "0.685263", "0.6852366", "0.661323", "0.66066396", "0.6596783", "0.6592654", "0.6557053", "0.6526412", "0.6490731", "0.6487719", "0.64681685", "0.6459139", "0.64576375"...
0.0
-1
TODO Autogenerated method stub Establish cnx
public void deletebyidentifier(String identifier) { Connection conn = null; String url = "jdbc:sqlite:src\\database\\AT2_Mobile.db"; try { conn = DriverManager.getConnection(url); PreparedStatement myStmt; String query = "delete from seq where identifier = ?"; myStmt = conn.prepareStatement(query)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Map<String, Object> getXNetComponent() {\n if (!init()) {\n Log.info(LifeCARDAdmin.class.getName() + \":getXNetComponent():Initialization failed.\");\n return null;\n }\n Map<String, Object> xnetComp = new HashMap<>();\n xnetComp.put(\"XNETStarted\", false);\n ActiveMQComponent amqC...
[ "0.53064364", "0.5220932", "0.51949483", "0.5146956", "0.51329076", "0.50948656", "0.50758404", "0.50438434", "0.49969062", "0.499373", "0.4981579", "0.49767327", "0.4972163", "0.49536583", "0.4929786", "0.49046612", "0.48441488", "0.4831414", "0.4830681", "0.48295915", "0.48...
0.0
-1
TODO Autogenerated method stub
@Override public Seq getbyidentifier(String identifier) { Connection conn = null; PreparedStatement pstmt=null; ResultSet rs; Seq seq=null;List<Seq> seqs=new ArrayList<>(); ProcessesDAO pdao = new ProcessesDAO(); try { String url = "jdbc:sqlite:src\\database\\AT2_Mobile.db"; c...
{ "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 int plus(int x, int y) { return x + y; }
{ "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 int multi(int x, int y) { return x * y; }
{ "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
name of shared resource This constructor creates a token that can be passed from node to node on the network
public Token(int TTL, String extraTimeHost, String startNodeID, String skipNode, String customFileName) { this.TTL = TTL; this.extraTimeHost = extraTimeHost; this.startNodeID = startNodeID; this.skipNode = skipNode; this.customFileName = customFileName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ConceptToken(String token) {\n _multiToken = false;\n _text = \"\";\n _tokens = new String[]{token};\n }", "@Override\r\n\tpublic Token createToken() {\n\t\tToken token = new Token();\r\n\t\treturn token;\r\n\t}", "public void setToken(java.lang.String param){\n ...
[ "0.587614", "0.5837173", "0.5772362", "0.5766106", "0.57480574", "0.57068074", "0.56916124", "0.566429", "0.5622927", "0.56028926", "0.56026787", "0.5598312", "0.55871916", "0.5571116", "0.555906", "0.55305713", "0.54834473", "0.5466122", "0.5444411", "0.5437957", "0.5421188"...
0.5103136
61
end of constructor Token This is an overloaded constructor that creates a kill token. This will terminate all nodes on the current network.
public Token(boolean killNode) { this.killNode = killNode; //sets local killNode variable to true }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Token() {\n }", "public Token() {\n token = new Random().nextLong();\n }", "public Token() {\n this.clitic = \"none\";\n }", "public Token() {\n }", "private Token () { }", "public Token newToken() {\r\n\t\tString value = UUID.randomUUID().toString();\r\n\t\treturn new Toke...
[ "0.639739", "0.63928086", "0.6388191", "0.6385388", "0.62574357", "0.6011722", "0.6002115", "0.5953099", "0.57222646", "0.56720746", "0.56660753", "0.5641501", "0.5578558", "0.55605525", "0.5533036", "0.55060846", "0.5491263", "0.5491263", "0.5491263", "0.5491263", "0.5491263...
0.7808443
0
end of constructor Token (killNode) The section below contains the code that enables the skip processing behaviour This allows a host to skip its processing time using the token every second pass
public boolean setSkips(String host) { if(skipNode.equals(host)) { if(skips == 1) { skips = 0; System.out.println("Skipping token usage"); return true; } skips++; return false; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Token(boolean killNode)\r\n {\r\n this.killNode = killNode; //sets local killNode variable to true\r\n\r\n }", "public void skipToken() {\t\t\n\t\t//remove token from line\n\t\tif (token != null)\n\t\t{\n\t\t\tline = line.substring(token.length());\n\t\t}\n\t\t//check if new token in line\n\t...
[ "0.7258314", "0.6466044", "0.5832698", "0.57495177", "0.56783074", "0.556037", "0.5533162", "0.54706925", "0.5466864", "0.5384442", "0.53746045", "0.5332439", "0.52939856", "0.52847564", "0.5279081", "0.5277059", "0.52767056", "0.5206558", "0.5200677", "0.51947224", "0.518374...
0.5378222
10
The section below section deals with the behaviour of the kill token Returns the type of token the node is dealing with.
public boolean checkKillToken() { return killNode; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Token(boolean killNode)\r\n {\r\n this.killNode = killNode; //sets local killNode variable to true\r\n\r\n }", "void unexpectedTokenDeleted(Term token);", "public TYPE tokenType(){\n\n return currentTokenType;\n }", "@Override\n\tpublic void kill() {\n\n\t}", "@Override\n pu...
[ "0.65880466", "0.6120097", "0.5898941", "0.5802045", "0.57455933", "0.56594574", "0.56594574", "0.5423274", "0.5411077", "0.5379752", "0.5376395", "0.53742063", "0.5356294", "0.5346163", "0.5333865", "0.5323339", "0.53167284", "0.5309838", "0.53080654", "0.5305823", "0.528603...
0.6531564
1
This returns true if the node has already been visited and false if it has not.
public boolean getVisitedNodes(String currentNodeID) { if(visitedNodes.contains(currentNodeID)) { visitedNodes.remove(visitedNodes.indexOf(currentNodeID)); return true; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean hasBeenVisited() {\n\t\treturn visited; // Replace with your code\n\t}", "public boolean isVisited()\n\t{\n\t\treturn visited;\n\t}", "public boolean isVisited() {\n return visited;\n }", "public boolean isVisited() {\n return visited;\n }", "public boolean isVisi...
[ "0.775649", "0.7644149", "0.76187843", "0.7601885", "0.75906736", "0.7557473", "0.7320062", "0.727989", "0.7243263", "0.7231002", "0.7194186", "0.71518326", "0.71098214", "0.703635", "0.70281833", "0.7013036", "0.7013036", "0.6971668", "0.69631356", "0.69238305", "0.69222754"...
0.6724191
21
Adds the current node to the node network map
public void addCurrentNode(String currentNodeID) { visitedNodes.add(currentNodeID); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void addNode(Node n) {\n nodes.put(n.id, n);\n }", "public void addNode(DijkstraNode node) {\n\t\tthis.cache.put(node.getCoordinate(), node);\n\t}", "public void addNode() {\r\n \r\n Nod nod = new Nod(capacitate_noduri);\r\n numar_noduri++;\r\n noduri.add(nod);\r\n }", ...
[ "0.69948566", "0.6895437", "0.6865558", "0.6856973", "0.68143266", "0.6808802", "0.6808296", "0.673078", "0.6710786", "0.66002285", "0.65964794", "0.65559566", "0.6545353", "0.6529924", "0.6516353", "0.65141046", "0.6479535", "0.64777654", "0.6477201", "0.6452292", "0.6438181...
0.6854798
4
Checking to see if the current node is the last node in the sequence
public boolean checkLastNodeStatus() { return visitedNodes.isEmpty(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isLast() {\n\t\treturn (next == null);\n\t}", "private boolean isNodeLast(TreeNode node)\n\t{\n\t\tTreeNode parent = node.getParent();\n\t\tif (parent == null)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn parent.getChildAt(parent.getChildCount() - 1).equals(node);\n\t\t}\n\t}",...
[ "0.77768534", "0.7740075", "0.7614342", "0.7135589", "0.7125574", "0.7121309", "0.7096765", "0.7083299", "0.6994391", "0.69939715", "0.6790701", "0.6745663", "0.66936946", "0.6624881", "0.6591465", "0.6580721", "0.6573178", "0.657157", "0.65707505", "0.65490186", "0.6512942",...
0.7241346
3
The section below contains all of the get and set methods needed to update and interrogate the token Returns the name of the shared resource used by the network
public String getCustomFileName() { return customFileName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.lang.String getToken(){\r\n return localToken;\r\n }", "public java.lang.String getToken(){\n return localToken;\n }", "java.lang.String getRemoteToken();", "public void setToken(java...
[ "0.6313591", "0.6156787", "0.6140457", "0.5969857", "0.5963719", "0.5963696", "0.59067637", "0.59067637", "0.5900027", "0.58824396", "0.58305377", "0.58305377", "0.58305377", "0.5812603", "0.578538", "0.57831216", "0.57831216", "0.57831216", "0.57831216", "0.57831216", "0.577...
0.0
-1
Returns the Id of the host designated for extra time
public String getExtraTimeHost() { return extraTimeHost; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Integer getHostId() {\n return hostId;\n }", "public String getHostID() { return hostID; }", "public static int getLastMeetingHostId() {\n return SP_UTILS.getInt(SPDataConstant.KEY_LAST_MEETING_HOST_ID, SPDataConstant.VALUE_LAST_MEETING_HOST_ID_DEFAULT);\n }", "private static final...
[ "0.649679", "0.6405826", "0.6405718", "0.617522", "0.61575454", "0.61308026", "0.59584373", "0.57363725", "0.5681322", "0.56574595", "0.562846", "0.557764", "0.5551666", "0.55192107", "0.55192107", "0.55192107", "0.5408639", "0.5378102", "0.53661466", "0.53626204", "0.5356987...
0.690543
0
Returns the value of the extra time given (by default this value is 6000)
public int getExtraTimeGiven() { return extraTimeGiven; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getSecs( );", "public double getUserTimeSec() {\n\treturn getUserTime() / Math.pow(10, 9);\n}", "public int getEat_time()\n\t{\n\t\treturn eat_time;\n\t}", "int getTtiSeconds();", "Double getRemainingTime();", "BigInteger getResponse_time();", "public int getET()\n {\n return ex...
[ "0.6561197", "0.64791715", "0.64394814", "0.6422602", "0.64141536", "0.6220639", "0.61706245", "0.61271274", "0.6117664", "0.6098455", "0.60651886", "0.6064409", "0.60522044", "0.6048652", "0.6021848", "0.5960605", "0.5960605", "0.5940122", "0.59228057", "0.591925", "0.591652...
0.7603975
0
Returns the node at injection point This is only used in the TTL via circulations
public String getStartNodeID() { return startNodeID; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "entities.Torrent.NodeId getNode();", "entities.Torrent.NodeId getNode();", "ControllerNode localNode();", "public DEPNode getNode()\n\t{\n\t\treturn node;\n\t}", "@Override\n public Cluster.Node getNode() {\n return node;\n }", "public V getOriginator() {\r\n\r\n\t\tV result = null;\r\n\t\ti...
[ "0.5964984", "0.5964984", "0.54407763", "0.54139805", "0.5336579", "0.5331722", "0.5317463", "0.5298514", "0.5294123", "0.52858186", "0.5268091", "0.5218122", "0.5218106", "0.5171359", "0.515552", "0.51497275", "0.51353455", "0.5134313", "0.51135725", "0.5111667", "0.51014405...
0.47719187
57
Increments the pass counter whenever a token is passed from node to node
public void setPassCounter() { passCounter++; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void passToken(String token, int procNo){\r\n if(procNo>6) {\r\n \tprocNo = procNo - 6;\r\n }\r\n try {\r\n socket = new Socket(\"127.0.0.1\", 8080+procNo);\r\n out = new PrintWriter(socket.getOutputStream());\r\n out.println(token);\r\n ...
[ "0.5922855", "0.5876679", "0.57884216", "0.5760443", "0.574912", "0.57089823", "0.5675831", "0.5625591", "0.5568372", "0.54981434", "0.5461055", "0.54304135", "0.5402358", "0.5402358", "0.53995466", "0.5374876", "0.5367993", "0.536448", "0.535964", "0.5330433", "0.53235215", ...
0.6897803
0
Returns the total number of passes between nodes This is printed as diagnostic output and also used to calculate the TTL via hops for token expiry.
public int getPassCounter() { return passCounter; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getTotalNodeCount() {\n return this.node.getFullNodeList().values().stream()\n .filter(BaseNode::checkIfConsensusNode).count();\n }", "int totalNumberOfNodes();", "public String getNumberOfNodesEvaluated(){return Integer.toString(NumberOfVisitedNodes);}", "public int ge...
[ "0.62789494", "0.61808294", "0.61727494", "0.616587", "0.58596677", "0.5845657", "0.5813038", "0.5812088", "0.57468057", "0.56957006", "0.56791395", "0.56583786", "0.5638335", "0.5638335", "0.5586043", "0.55809146", "0.55809146", "0.5574243", "0.55686045", "0.5565908", "0.555...
0.5445222
28
Returns the Time To Live of the token
public int getTTL() { return TTL; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long getTimeToLive() {\n return timeToLive;\n }", "Duration getTokenExpiredIn();", "@Override\n\tpublic long getTokenExpiryTime() {\n\t\treturn 0;\n\t}", "public long getTokenValidityInSeconds() {\n return tokenValidityInSeconds;\n }", "public long getToke...
[ "0.75463885", "0.73371464", "0.7298816", "0.7179071", "0.69711286", "0.6872059", "0.68339425", "0.67863315", "0.6586208", "0.6573015", "0.65163326", "0.6496423", "0.64907515", "0.6478488", "0.6456748", "0.64425397", "0.64123905", "0.6402425", "0.6394461", "0.6374924", "0.6357...
0.0
-1
Increments the number of full circulations of the node network
public void setCirculations() { circulations++; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void incrementNumConnects() {\n this.numConnects.incrementAndGet();\n }", "public final void incNodeCount() {\n nodeCount++;\n if (depth > maxDepth) {\n maxDepth = depth;\n }\n }", "public void incrementNumDisconnects() {\n this.numDisconnects.incremen...
[ "0.63183796", "0.61922574", "0.6166608", "0.61075294", "0.6102007", "0.6078767", "0.594404", "0.5904918", "0.5882657", "0.58627546", "0.58537227", "0.58348054", "0.5712691", "0.56668955", "0.5663387", "0.5635498", "0.5607494", "0.55863506", "0.55845743", "0.55721986", "0.5560...
0.7389293
0
Returns the number of circulations the token has performed
public int getCirculations() { return circulations; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCirculations()\r\n {\r\n circulations++;\r\n }", "long tokenCount();", "int getTokenSegmentCount();", "public long getCancellations() {\r\n\t\tlong result = 0;\r\n\t\tfor (TransitionMode mode : transitionModes) {\r\n\r\n\t\t\tresult = result + mode.getCancellations();\r\n\t\t}\r\n...
[ "0.66894495", "0.652583", "0.6393574", "0.60746735", "0.60537106", "0.60229164", "0.59954137", "0.5958434", "0.59518164", "0.59439176", "0.59371454", "0.58718354", "0.5864563", "0.58231074", "0.58029485", "0.57695204", "0.5768787", "0.57584554", "0.5746331", "0.5742197", "0.5...
0.72651273
0
Interface to handle game spawns
public interface IGameSpawn { /** * @return the {@link BaseGame} of this spawn */ @NotNull BaseGame getGame(); /** * Checks if this spawn are ready for use or not. * * @return true if ready */ boolean isReady(); /** * Returns an unmodifiable list of spawn locations. * * @return an unmodifia...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void spawn(Location loc) {\n\t\t\n\t}", "@Override\r\n\tpublic void spawn(Location location) {\n\t\t\r\n\t}", "public void control(Spawn spawn) {}", "@Override\n public String getName() {\n return \"sspawn:spawn\";\n }", "abstract public void initSpawn();", "private void ...
[ "0.70844746", "0.6994607", "0.68196297", "0.66611314", "0.6545034", "0.6534206", "0.64668643", "0.645632", "0.63916606", "0.6360027", "0.6338542", "0.63331616", "0.6311012", "0.62862015", "0.62501687", "0.62317395", "0.62307817", "0.6211999", "0.6166014", "0.6165554", "0.6144...
0.6917517
2
Checks if this spawn are ready for use or not.
boolean isReady();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void checkIfAlive()\n {\n if(this.health<=0)\n {\n targetable=false;\n monstersWalkDistanceX=0;\n monstersWalkDistanceY=0;\n this.health=0;\n new TextureChanger(this,0);\n isSelected=false;\n if(monsterType==1)\n ...
[ "0.7089524", "0.690854", "0.68837184", "0.68427086", "0.68369603", "0.6771642", "0.673449", "0.6719595", "0.6719595", "0.67098695", "0.6705428", "0.6697722", "0.665013", "0.66465914", "0.66439646", "0.66415507", "0.66387683", "0.66387683", "0.65975606", "0.65851283", "0.65675...
0.66978735
13
Returns an unmodifiable list of spawn locations.
@NotNull java.util.List<@NotNull Location> getSpawnLocations();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Location> getSpawns(){\n\t\treturn spawns;\n\t}", "public ArrayList<Integer[]> getMineLocations()\n {\n return mineLocations;\n }", "public ArrayList<Location> getLocations()\n {\n ArrayList<Location> locs = new ArrayList<>();\n for (int row = 0; row < squares.length; ...
[ "0.7417547", "0.69567794", "0.689372", "0.68860596", "0.67930967", "0.6685461", "0.66074836", "0.6559281", "0.6508373", "0.65066475", "0.6491946", "0.6460814", "0.64523005", "0.644078", "0.6355418", "0.6354624", "0.63370717", "0.6323639", "0.6320592", "0.6275313", "0.62521976...
0.8917397
0
Removes all cached spawns locations.
void removeAllSpawn();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static void wipeLocations(){\n\t \tfor (int i= 0; i < places.length; i++){\n\t\t\t\tfor (int j = 0; j < places[i].items.size(); j++)\n\t\t\t\t\tplaces[i].items.clear();\n\t\t\t\tfor (int k = 0; k < places[i].receptacle.size(); k++)\n\t\t\t\t\tplaces[i].receptacle.clear();\n\t \t}\n\t \tContainer.emptyCont...
[ "0.7063609", "0.62833875", "0.61765", "0.61747944", "0.6109243", "0.6081602", "0.6040359", "0.60285217", "0.60242546", "0.60222906", "0.595726", "0.5946792", "0.5867644", "0.58546555", "0.5852107", "0.5843758", "0.5839115", "0.58220553", "0.5821258", "0.5806293", "0.5803483",...
0.7106161
0
Checks if the game have any spawn saved.
boolean haveAnySpawn();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean checkGameState() {\n\t\tint numberOfPlayers = this.manSys.lockedNavmap.size();\n\t\tfor (int i = 0; i < numberOfPlayers; i++) {\n\t\t\tif (!snakesList.get(i).isDestroyed()) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "private void checkSave() {\n if (view.getSave()) {...
[ "0.69099146", "0.6824999", "0.6450677", "0.6319066", "0.6295607", "0.62945986", "0.6272302", "0.62243915", "0.6214359", "0.6169711", "0.6157948", "0.61425364", "0.6129391", "0.6094433", "0.6089509", "0.60840535", "0.6081013", "0.6075256", "0.6063707", "0.60210353", "0.6018042...
0.72474134
0
On send image view click
private void onSendImageClick() { Intent intent = new Intent(); intent.putExtra(Constants.SELECTED_IMAGE, mediaPath); intent.putExtra(Constants.CHAT_TYPE, messageType); setResult(Activity.RESULT_OK, intent); finish(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void imageclick(View view)\n {\n //for logo image upload\n\n\n Intent i =new Intent();\n i.setType(\"image/*\");\n i.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(i,\"select an image\"),imagerequestco...
[ "0.748085", "0.74494797", "0.7334241", "0.7315795", "0.7190242", "0.7143525", "0.70987016", "0.70560515", "0.7033613", "0.7026161", "0.7024848", "0.6986872", "0.6940247", "0.68808776", "0.6880096", "0.6876107", "0.68576115", "0.68535143", "0.6829027", "0.67747396", "0.6770717...
0.7653066
0
On play video view click
private void onPlayVideoClick() { Intent intent = new Intent(Intent.ACTION_VIEW); intent.setDataAndType(Uri.parse("file://" + mediaPath), "video/mp4"); startActivity(intent); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onClick(View v) {\n playVideo();\n }", "public void playVideo(View view) {\n ImageView video = (ImageView) view;\n String tag = video.getTag().toString();\n listener.playVideo(tag);\n }", "@Override\n\t\tpublic void onClick(Vi...
[ "0.8295278", "0.79904455", "0.7816933", "0.7797292", "0.76742125", "0.76716894", "0.7670099", "0.7592008", "0.754407", "0.74986213", "0.74662876", "0.7459294", "0.74586606", "0.74537235", "0.7404018", "0.73502535", "0.72932553", "0.7292208", "0.7262085", "0.72432315", "0.7238...
0.7746955
4
showing the preview of the selected image from the gallery using BitmapFactory decode the string path to bitmap
private void showPreview(File mediaPath) { Bitmap scaledBitmap = BitmapFactory.decodeFile(String.valueOf(mediaPath)); if (scaledBitmap != null) { int bitmapHeight = (int) (scaledBitmap.getHeight() * (512.0 / scaledBitmap.getWidth())); scaledBitmap = Bitmap.createScaledBitmap(sca...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void previewCapturedImage(){\n \ttry{\n \t\timgPreview.setVisibility(View.VISIBLE);\n \t\t\n \t\t//Bitmap Factory\n \t\tBitmapFactory.Options options = new BitmapFactory.Options();\n \t\t\n \t\t//Downsizing image as it throws OutOfMemory Exception for large images\n \t\toptions.inSa...
[ "0.72183686", "0.69495", "0.67072386", "0.6688963", "0.6626971", "0.66224647", "0.66132194", "0.6595018", "0.65776306", "0.6546691", "0.6538793", "0.6531416", "0.6506789", "0.64898837", "0.6465785", "0.64588904", "0.6458578", "0.64386606", "0.64290094", "0.64284545", "0.64250...
0.6799135
2
TODO Autogenerated method stub
@Override public void actionPerformed(ActionEvent e) { System.out.println("addActionListener"); Database db = new Database(); SuppliersDAO suppDAO = new SuppliersDAO(db); SuppliersModel suppModel = new SuppliersModel(); String suppName = textSuppName.getText(); String suppAddr = textSuppAddr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void actionPerformed(ActionEvent e) { System.out.println("btnUpdate"); int i = table.getSelectedRow(); if (i >= 0) { System.out.println("row-update-select" + i); System.out.println("row-update-supp-id" + textSuppD.getText()); int suppID = Integer.parseInt(textSuppD.getText...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void actionPerformed(ActionEvent e) { System.out.println("btnDelete"); int i = table.getSelectedRow(); if (i >= 0) { System.out.println("row-Delete" + i); System.out.println("row-Delete" + textSuppD.getText()); int suppID = Integer.parseInt(textSuppD.getText().trim()); ...
{ "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
Created by sandheepgr on 28/3/14.
public interface UserAccessRightService extends BaseService<UserAccessRight> { public List<UserAccessRight> findByUarUserNo(Long uarUserNo); public UserAccessRight findByUarUarId(Long uarUarId); public UserAccessRight findByUarUserNoAndUarFunctionCode(Long uarUserNo,Long uarFunctionCode); public boolea...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", ...
[ "0.60626084", "0.5880278", "0.58451086", "0.58147717", "0.5774271", "0.5743422", "0.5742063", "0.5705565", "0.5705565", "0.569128", "0.5681212", "0.5670661", "0.5662814", "0.5637994", "0.56258094", "0.56140983", "0.559741", "0.5588736", "0.5588736", "0.5588736", "0.5588736", ...
0.0
-1
Test of addRent method, of class ReserveDB.
@Test public void testAddRent() { System.out.println("addRent"); ReserveInfo reserveInfo = new ReserveInfo(); reserveInfo.setGuestIDnumber("test"); reserveInfo.setGuestName("test"); reserveInfo.setRentType("test"); reserveInfo.setRoomType("test"); reserveInfo....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void test() {\n\n Reservation res1 =\n new Reservation(\n -1,\n \"Standard\",\n \"0000111\",\n Timestamp.valueOf(\"2019-06-11 16:10:00\"),\n Timestamp.valueOf(\"2019-06-15 09:00:00\"),\n \"525 W Broadway\",\n \"Van...
[ "0.6678715", "0.64294046", "0.63298464", "0.6295324", "0.62663895", "0.6258702", "0.624007", "0.6174418", "0.60989076", "0.6090941", "0.607622", "0.6045493", "0.6035803", "0.6018604", "0.60128117", "0.600809", "0.59907067", "0.5990255", "0.59778947", "0.5975939", "0.5952209",...
0.7206433
0
Test of getRentList method, of class ReserveDB.
@Test public void testGetRentList() { System.out.println("getRentList"); ReserveInfo reserveInfo = new ReserveInfo(); reserveInfo.setGuestName("test"); BookingController instance = new BookingController(); boolean expResult=true; boolean result=false; if(insta...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void test() {\n\n Reservation res1 =\n new Reservation(\n -1,\n \"Standard\",\n \"0000111\",\n Timestamp.valueOf(\"2019-06-11 16:10:00\"),\n Timestamp.valueOf(\"2019-06-15 09:00:00\"),\n \"525 W Broadway\",\n \"Van...
[ "0.67192084", "0.6453253", "0.6318118", "0.60396427", "0.5975838", "0.593367", "0.5909683", "0.58425856", "0.58253187", "0.57936084", "0.5741169", "0.57236624", "0.569869", "0.5688129", "0.56807905", "0.56776077", "0.5663094", "0.5639663", "0.563141", "0.56235653", "0.5600092...
0.67856437
0
Test of getReserveResult method, of class ReserveDB.
@Test public void testGetReserveResult() { System.out.println("getReserveResult"); ReserveInfo reserveInfo = new ReserveInfo(); reserveInfo.setGuestIDnumber("test"); reserveInfo.setResult(true); BookingController instance = new BookingController(); boolean ex...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void doReserve() {\n pickParkingLot();\n pickParkingSpot();\n pickTime();\n pickDuration();\n int amount = pickedparkinglot.getPrice() * pickedduration;\n if (pickedAccount.getBalance() >= amount) {\n currentReservation = new Reservation(pickedparkingspo...
[ "0.6265897", "0.6227824", "0.6139199", "0.59492415", "0.5896389", "0.58608973", "0.5858692", "0.5806035", "0.57796437", "0.5672485", "0.56403226", "0.5562168", "0.55310535", "0.5519987", "0.5445944", "0.53742534", "0.5357812", "0.53544885", "0.53441817", "0.53351754", "0.5333...
0.73276097
0
Test of delete method, of class ReserveDB.
@Test public void testDelete() { System.out.println("delete"); String guestIDnumber = "test"; BookingController instance = new BookingController(); boolean expResult = true; boolean result = instance.delete(guestIDnumber); assertEquals(expResult, result); // T...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void deleteTest() throws SQLException {\n manager = new TableServizioManager(mockDb);\n manager.delete(1);\n Servizio servizio= manager.retriveById(1);\n assertNull(servizio,\"Should return true if delete Servizio\");\n }", "@Test\n void deleteSuccess() {\n dao.delete(dao.g...
[ "0.7896117", "0.76900864", "0.76586866", "0.7657055", "0.76313907", "0.76207536", "0.76186126", "0.76084304", "0.7543278", "0.75038034", "0.7451752", "0.7408626", "0.737398", "0.73719066", "0.73461396", "0.7325193", "0.7309504", "0.7286333", "0.7273887", "0.7252576", "0.72487...
0.6874152
48
TODO Autogenerated method stub
@Override public Map<File, List<String>> grep(File directory, String fileSelectionPattern, String substringSelectionPattern, boolean recursive) { File[] fileList=directory(directory,recursive,fileSelectionPattern); //Map<File, List<String>> grepped=new HashMap<File, List<String>>(); return PatternMatcher(file...
{ "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
Created by IntelliJ IDEA. User: cyril Date: 12/19/11 Time: 1:59 PM To change this template use File | Settings | File Templates.
public interface IConditionBuilder { public <T> ICondition<T> list( ICondition<T>... list ); public <T> ICondition<T> not( ICondition<T> condition ); public <T> ICondition<T> and( ICondition<T> left, ICondition<T> right ); public <T> ICondition<T> or( ICondition<T> left, ICondition<T...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "public void mo38117a() {\n }", "@Override\n public void perish() {\n \n }", "@Override\n public void settings() {\n // TODO Auto-generated method stub\n \n }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {...
[ "0.6102181", "0.5934621", "0.5923935", "0.5878662", "0.58505636", "0.58417356", "0.5840689", "0.58138764", "0.58069557", "0.58069557", "0.5778265", "0.5774765", "0.57649153", "0.5761415", "0.5751363", "0.5751363", "0.571848", "0.5717914", "0.5709283", "0.5706327", "0.5693478"...
0.0
-1
Makes a gui Hallway01 location Sends name, desciption, exits and map file name
public Hallway01(Boolean gui){ super( "Hallway01", "Hallway connecting Personal, Laser and Net.", new Exit('S', "Personal"), new Exit('E', "Laser"), new Exit('E', "Net"), null, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void makeGUI()\n\t{\n\t\tbuttonPanel = new ButtonPanel(this,ship,planet);\n\t\tgamePanel = new GamePanel(this,ship,planet);\n\n\t\tJMenuBar menubar = new JMenuBar();\n\t\tJMenu menuHelp = new JMenu(\"Help\");\n\t\thelpItem = new JMenuItem(\"Help\");\n\t\tmenuHelp.add(helpItem);\n\t\tmenubar.add(menuHelp);\n...
[ "0.63488334", "0.6343645", "0.62703216", "0.623675", "0.6168266", "0.6123709", "0.6050118", "0.601863", "0.60095894", "0.60089034", "0.6005152", "0.60034853", "0.5991637", "0.5988258", "0.59866154", "0.5974642", "0.59507746", "0.5942646", "0.5919659", "0.59118336", "0.5906290...
0.7728255
0
Makes a CLI Hallway location by adding rooms to a location
@Override protected void createLocationCLI() { /*The rooms in the hallway01 location are created---------------------*/ /*Hallway-------------------------------------------------------------*/ Room hallway = new Room("Hallway 01", "This hallway connects the Personal, Laser and Net")...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createRooms()\n {\n Room outside, garden, kitchen, frontyard, garage, livingroom,\n upperhallway, downhallway, bedroom1, bedroom2, toilet,teleporter;\n\n // create the rooms\n outside = new Room(\"outside the house\",\"Outside\");\n garden = new Room(\"in the Gard...
[ "0.6337494", "0.63038176", "0.62747794", "0.6273916", "0.6273916", "0.6273916", "0.5999597", "0.59764445", "0.5951872", "0.59430766", "0.58903927", "0.5864555", "0.57974666", "0.57865185", "0.57683873", "0.5756449", "0.57467586", "0.573434", "0.5697683", "0.56973946", "0.5678...
0.8556825
0
Get current weather for any given city.
@Override public String getWeatherDataCity(String city, String country) throws IOException { return connectAPICity(city, country); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void getWeather(String city, String units);", "@Cacheable(\"weather\")\r\n\tpublic Weather getWeatherByCityAndCountry(String country, String city) {\n\t\tlogger.info(\"Requesting current weather for {}/{}\", country, city);\r\n\t\t\r\n\t\tURI url = new UriTemplate(WEATHER_URL).expand(city, country, this.a...
[ "0.80972105", "0.7586606", "0.7499402", "0.74280417", "0.72590804", "0.7113707", "0.7083284", "0.69891965", "0.6980956", "0.6950459", "0.69482464", "0.6928035", "0.6826329", "0.6810303", "0.6788367", "0.6768201", "0.6767672", "0.6747137", "0.67429215", "0.6741812", "0.6739484...
0.7634182
1
Get a five day forecast in 3 hour increments for any given city.
@Override public String getHourlyWeatherData(String city, String country) throws IOException { return connectFiveDayForecast(city, country); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract WeatherData[] getHourlyWeatherForecast(LocationCoordinate _location) throws Exception;", "public synchronized void getWeeklyForecast(String city){\r\n\t\t// Create a new Handler\r\n\t\tHandlerThread handlerThread = new HandlerThread(\"Weekly_Forecast\");\r\n\t\thandlerThread.start();\r\n\t\tHandl...
[ "0.5988832", "0.5880584", "0.5806552", "0.5779802", "0.5729594", "0.5606808", "0.55668634", "0.5525065", "0.55196583", "0.54711634", "0.5365364", "0.53408617", "0.52838355", "0.5262539", "0.5257765", "0.52459556", "0.52318376", "0.52318347", "0.52195007", "0.52125025", "0.520...
0.71254957
0
Gets weather data for current time
private String connectAPICity(String city, String country) throws IOException { OkHttpClient client = new OkHttpClient(); Request request; if(country.isEmpty()) { request = new Request.Builder() .url("https://community-open-weather-map.p.rapidapi.com/weather?q=" + city) .get() .addHeader("x-r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void getWeatherData() {\n System.out.println(\"at getWeather\");\n String url = \"https://api.openweathermap.org/data/2.5/onecall/timemachine?lat=\";\n url += databaseHandler.getSingleExperimentInfoValue(experimentNumber, DatabaseHandler.SENDER_LATITUDE);\n url += \"&lon=\" + da...
[ "0.74861765", "0.6896385", "0.6773417", "0.6739232", "0.67329866", "0.6641617", "0.6624548", "0.6583085", "0.65347147", "0.6520862", "0.65154225", "0.64872265", "0.64705646", "0.6423554", "0.6416689", "0.6403352", "0.6394522", "0.6351407", "0.6332905", "0.6294551", "0.6266319...
0.0
-1
inputValidation method Purpose: Verify number of args is correct and if args[0] is a file or directory
public static ArrayList<String> inputValidation(String[] myArgs){ //Variables ArrayList<String> filesInFolder = new ArrayList<>(); File file_DirectoryFromArgs = new File(myArgs[0]); File[] files = file_DirectoryFromArgs.listFiles(); //Error check the input //Check if number of arguments are as expected and...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n public void testCheckInput() throws Exception {\r\n System.out.println(\"checkInput\");\r\n System.out.println(\"test1\");\r\n String[] arguments = {\"1k2h3u\",\"test.txt\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\"};\r\n CommandLineArgumentParser instance =new CommandLineArgument...
[ "0.76541805", "0.7555588", "0.7542235", "0.74159485", "0.7295901", "0.7258106", "0.70353574", "0.6846199", "0.6753999", "0.67049664", "0.6699397", "0.66980433", "0.6673965", "0.656911", "0.6526132", "0.6499561", "0.6433336", "0.6408257", "0.6400424", "0.639122", "0.6376545", ...
0.6476229
16
end validation method main method Purpose is to start program and validate input and run threads method
public static void main(String[] args) { //Variables int chunkSize = Integer.parseInt(args[1]); int numThreads = Integer.parseInt(args[2]); BufferedReader br = null; ReadFromFile rf = new ReadFromFile(); ArrayList<String> filesInFolder = inputValidation(args); //Delete the output folder if it exists Fi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void run()\n {\n\tString[] info = null;\n\tnumber = new Stack<String>();\n\totherNumber = new Stack<String>();\n\tScanner scan = new Scanner(System.in);\n\twhile(scan.hasNext())\n\t{\n\t info = scan.nextLine().trim().split(\"\\\\s+\");\n\t if(info.length == 2)\n\t {\n\t\tnum1 = isValid(info[0])...
[ "0.6422227", "0.64017624", "0.63186127", "0.6243433", "0.62162423", "0.6186145", "0.61633277", "0.6131119", "0.6126561", "0.61101687", "0.610493", "0.6104082", "0.60933757", "0.60897535", "0.60709995", "0.6004309", "0.60009754", "0.5927128", "0.5921656", "0.59107083", "0.5867...
0.0
-1
end main method Method getResults Purpose: Read chunk files back into an ArrayList
private static void getResults() { //Variables File directoryOfChunks = new File("output"); File[] files = directoryOfChunks.listFiles(); ArrayList<String> filesInFolder = new ArrayList<>(); ArrayList<String> chunkResults = new ArrayList<>(); BufferedReader br = null; ReadFromFile rf = new ReadFromFile();...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ArrayList<String> readFromFile(){\n ArrayList<String> results = new ArrayList<>();\n //Wrap code in a try/ catch to help with exception handling.\n try{\n //Create a object of Scanner class\n Scanner s = new Scanner(new FileReader(path));\n //While loop f...
[ "0.65348774", "0.6311678", "0.62003183", "0.6179356", "0.6166174", "0.61024266", "0.6045928", "0.5983536", "0.596552", "0.5926924", "0.5917928", "0.58939636", "0.5860449", "0.58398974", "0.5814752", "0.58136255", "0.5803285", "0.5774292", "0.5774292", "0.5772641", "0.57577795...
0.82343173
0
end getResults method Method sanitizeAndSplit Purpose: Split the key value pairs back up and save into String Array Read in all chunk file into one StringArray and combine counts for like keys Save into a hashMap
public static void sanitizeAndSplit(ArrayList<String> myChunk){ //Variables String myStringArray[] = {}; try { //step through string array and put key value pairs into a string for(String temp : myChunk){ //Split the key and values as put into hashMap if(temp != null) { myStringArray = temp.sp...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private HashMap<Object, Object> HashMapTransform(List<String> lines) {\n\n HashMap<Object, Object> keypair = new HashMap<>();\n\n for (String line : lines) {\n if (line.contains(pairDelimiter)) {\n String[] intermediate = line.split(pairDelimiter, maxSplitSize);\n ...
[ "0.6178443", "0.6177328", "0.56115896", "0.5560277", "0.55490553", "0.5540764", "0.5531466", "0.5451072", "0.54373497", "0.539844", "0.5396529", "0.5394862", "0.5372515", "0.5353583", "0.53344095", "0.5284017", "0.5283196", "0.52382725", "0.5225148", "0.52207667", "0.5214945"...
0.66840035
0
end sanitize method Method writeResults Purpose: Sort hashmap into a treeMap and write out to results.txt file
private static void writeResults() { //Sort hashMap before sending to file TreeSet<Word> mySet = new TreeSet<>(hm.values()); //Create result.txt file and write treeMap out to it Writer writer = null; try { //System.out.println("Here"); writer = new BufferedWriter(new OutputStreamWriter(new FileOutputSt...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void write(HashMap<String, List<String>> result, String filename) {\n\t\ttry {\n\t\t\tBufferedWriter bw = new BufferedWriter(new FileWriter(filename));\n\n\t\t\tfor (String word : result.keySet()) {\n\t\t\t\tbw.write(String.format(\"%s: %s\\n\", word, result.get(word)));\n\t\t\t}\n\n\t\t\tbw.close();\n\t\t...
[ "0.63585144", "0.62688047", "0.624726", "0.61159664", "0.6055236", "0.59027755", "0.58866245", "0.5884582", "0.58828336", "0.58604187", "0.5860154", "0.5829848", "0.5701575", "0.5670339", "0.56695914", "0.56519204", "0.56481725", "0.564027", "0.56400466", "0.562276", "0.56041...
0.85719454
0
Spring Data repository for the MaterialDeExame entity.
@SuppressWarnings("unused") @Repository public interface MaterialDeExameRepository extends JpaRepository<MaterialDeExame, Long> { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Repository\npublic interface RedeemRepo extends JpaRepository<Redeem , Long> {\n}", "public interface CategoriaMaterialData extends JpaRepository<CategoriaMaterial, Integer> {\n List<CategoriaMaterial> findByNomeContaining(String nome);\n}", "public interface ExpositionRepository extends JpaRepository<Expo...
[ "0.6536988", "0.6487922", "0.60888255", "0.6053221", "0.6052317", "0.60188526", "0.5926171", "0.58688617", "0.58581716", "0.5841058", "0.5837459", "0.58210546", "0.5805219", "0.5801327", "0.579696", "0.5775582", "0.5770676", "0.5769646", "0.5764864", "0.5764808", "0.576012", ...
0.7284513
0
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View rootView = inflater.inflate(R.layout.fragment_my_messge, container, false); TextView tv = rootView.findViewById(R.id.textMessage); tv.setText(Messag...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup...
[ "0.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.66251...
0.0
-1
Constructor for bounded size scalar array.
public BaseScalarBoundedArray(ScalarType elementType, int size) { super(Type.scalarArray); if (elementType==null) throw new NullPointerException("elementType is null"); if (size<=0) throw new IllegalArgumentException("size <= 0"); this.elementType = elementType; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public GenericDynamicArray() {this(11);}", "public DynamicArray() {\n this(16);\n }", "public IntArrays()\n\t{\n\t\tthis(10);\n\t}", "public Array(int capacity)\n {\n array = new Object[capacity];\n }", "public ArrayQueue() {\n\t\tthis(Integer.MAX_VALUE);\n\t}", "public MyArray() {...
[ "0.6240503", "0.61472404", "0.61023164", "0.60621583", "0.5969763", "0.5915769", "0.58843416", "0.5856291", "0.5763943", "0.5742988", "0.5741512", "0.573747", "0.5708769", "0.5688646", "0.5619242", "0.56162554", "0.55783474", "0.55397964", "0.5530074", "0.55277014", "0.550795...
0.66541386
0
This Interface is used to notify the fragment about the connection of google fit.
public interface GooglefitCallback { /** * when google fir is connected this method is called. */ public void connect(); /** * when google fit is disconnected this method is callled. */ public void disconnect(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onConnection();", "public abstract void onConnect();", "void onConnect();", "protected void onConnect() {}", "@Override\n public void gattConnected() {\n mConnected = true;\n updateConnectionState(R.string.connected);\n getActivity().invalidateOptionsMenu();\n }", "...
[ "0.67900246", "0.65705633", "0.6543745", "0.6542278", "0.6501899", "0.6494296", "0.6406355", "0.64043903", "0.63841015", "0.6301431", "0.62992555", "0.6268014", "0.6192264", "0.6185991", "0.61797094", "0.6174832", "0.6158322", "0.614188", "0.6116051", "0.6116051", "0.61106426...
0.6969935
0
when google fir is connected this method is called.
public void connect();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n protected void onConnected() {\n \r\n }", "private void requestConnection() {\n getGoogleApiClient().connect();\n }", "protected void onConnect() {}", "@Override\n public void onConnected(Bundle bundle) {\n Wearable.DataApi.addListener(go...
[ "0.6874185", "0.6787685", "0.6765211", "0.67629987", "0.6685005", "0.6684898", "0.6675886", "0.65558773", "0.65068674", "0.6504071", "0.6495644", "0.64528894", "0.64466614", "0.6414994", "0.63884985", "0.63111156", "0.63007414", "0.62939143", "0.62811667", "0.6253023", "0.625...
0.0
-1
when google fit is disconnected this method is callled.
public void disconnect();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic void disconnected() {\n\t\t\tsuper.disconnected();\n\t\t}", "public void onDisconnected() {\n\t\t\r\n\t}", "@Override\n\tpublic void onDisconnected() {\n\t\t\n\t}", "@Override\n\tpublic void onDisconnected() {\n\t\t\n\t}", "@Override\n\tpublic void onDisconnected() {\n\t\t\n\t}", "@...
[ "0.71668565", "0.711412", "0.70762366", "0.70762366", "0.70762366", "0.7072898", "0.7021448", "0.70086104", "0.69764996", "0.6692002", "0.66813844", "0.66735125", "0.66589475", "0.66589475", "0.6644223", "0.6594948", "0.65940726", "0.65918386", "0.65910894", "0.65138626", "0....
0.0
-1
Test if the list is logically empty.
public boolean isEmpty() { return header.next == null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean empty() {\n\t\treturn list.size() == 0;\n\t}", "public static boolean empty() {\n\n if (list.size() != 0){\n return false;\n }\n return true;\n }", "public boolean empty() {\n if (list.size() == 0) {\n return true;\n }\n else {\n...
[ "0.85714245", "0.85023427", "0.83950883", "0.8366544", "0.8366544", "0.8343574", "0.83216643", "0.83084595", "0.8279152", "0.8261107", "0.8257073", "0.82374734", "0.8214442", "0.8177673", "0.816518", "0.8161321", "0.8130502", "0.8103628", "0.80914176", "0.7968573", "0.7904299...
0.0
-1
Make the list logically empty.
public void makeEmpty() { header.next = null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void makeEmpty() {\r\n\t\tArrays.fill(list, -1);\r\n\t}", "public void makeEmpty() {\n // remove Squares until empty\n while (!exploreList.isEmpty()) {\n exploreList.getNext();\n }\n }", "public void makeEmpty() {\n System.out.println(\"List is now empty\");\n ...
[ "0.8347902", "0.77435076", "0.7662039", "0.7646384", "0.7630714", "0.737597", "0.73434687", "0.7301509", "0.7217419", "0.7193709", "0.7193709", "0.7175485", "0.7149702", "0.71272135", "0.7109339", "0.70930296", "0.701245", "0.7010303", "0.70054424", "0.699306", "0.69812185", ...
0.67279905
40
Return an iterator representing the header node.
public LinkedListIterator<AnyType> zeroth() { return new LinkedListIterator<AnyType>(header); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ListIterator getHeaders()\n { return headers.listIterator(); }", "public ListIterator getHeaderNames() {\n ListIterator li = this.headers.listIterator();\n LinkedList retval = new LinkedList();\n while (li.hasNext()) {\n SIPHeader sipHeader = (SIPHeader) li.next...
[ "0.7547807", "0.7223722", "0.6943666", "0.69106495", "0.6592624", "0.65584123", "0.64848894", "0.6247986", "0.61993086", "0.61544365", "0.60952926", "0.6058907", "0.60422957", "0.60001403", "0.5980112", "0.5969269", "0.5969007", "0.5959527", "0.5948375", "0.5946342", "0.58927...
0.612524
10
Return an iterator representing the first node in the list. This operation is valid for empty lists.
public LinkedListIterator<AnyType> first() { return new LinkedListIterator<AnyType>(header.next); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ListIterator iterator()\n {\n return new ListIterator(firstLink);\n }", "public Node<T> getFirst() \r\n {\r\n if (isEmpty()) return sentinel;\r\n return sentinel.next;\r\n }", "@Override\n public Iterator<Item> iterator() {\n return new HeadFirstIterator();\n }", "pub...
[ "0.7123867", "0.7111558", "0.7091444", "0.70593405", "0.70199674", "0.69903314", "0.69640404", "0.6933932", "0.69233686", "0.68605477", "0.67681044", "0.67280704", "0.67087966", "0.6613684", "0.66098034", "0.66000444", "0.6592002", "0.6579116", "0.65327555", "0.6486831", "0.6...
0.73012
0
Return iterator corresponding to the first node containing an item.
public LinkedListIterator<AnyType> find(AnyType x) { ListNode<AnyType> itr = header.next; while (itr != null && !itr.element.equals(x)) { itr = itr.next; } return new LinkedListIterator<AnyType>(itr); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public Iterator<Item> iterator() {\n return new HeadFirstIterator();\n }", "public Item next() throws XPathException {\n while (true) {\n NodeInfo next = (NodeInfo)iterator.next();\n if (next == null) {\n current = null;\n positi...
[ "0.68406", "0.65867954", "0.6360681", "0.61710036", "0.614789", "0.6116339", "0.608013", "0.6047644", "0.6042532", "0.6041796", "0.60021615", "0.5966405", "0.5960213", "0.58645934", "0.5843374", "0.58330923", "0.5819942", "0.58177227", "0.5791457", "0.5789251", "0.5787441", ...
0.5298334
82
/ finds the last occurrence of x in a list
public LinkedListIterator<AnyType> findLast(AnyType x) { ListNode<AnyType> itr = header.next; ListNode<AnyType> lastitr = new ListNode<AnyType>(x); int counter = 0; int pos = 0; while (itr != null) { if (itr.element.equals(x)) { lastitr = itr; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int lastOccurrence(int a[], int x) {\n\t\tint low = 0;\n\t\tint high = a.length - 1;\n\t\tint result = -1;\n\t\twhile (low <= high) {\n\t\t\tint mid = (low + high) / 2;\n\t\t\tif (a[mid] == x) {\n\t\t\t\tresult = mid;\n\t\t\t\tlow = mid + 1;\n\t\t\t} else if (x > a[mid]) {\n\t\t\t\tlow = mid + 1;\n\t\t\t} e...
[ "0.7401948", "0.68629014", "0.6852278", "0.68385226", "0.6808231", "0.6706529", "0.66097647", "0.6502628", "0.64928794", "0.64901054", "0.6436059", "0.63688177", "0.6363594", "0.63626873", "0.6288935", "0.6256889", "0.6251982", "0.62164307", "0.62064207", "0.619172", "0.61905...
0.72494125
1
Return iterator prior to the first node containing an item.
public LinkedListIterator<AnyType> findPrevious(AnyType x) { ListNode<AnyType> itr = header; while (itr.next != null && !itr.next.element.equals(x)) { itr = itr.next; } return new LinkedListIterator<AnyType>(itr); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public Iterator<Item> iterator() {\n return new HeadFirstIterator();\n }", "OIterator<V> before();", "public Item next() throws XPathException {\n while (true) {\n NodeInfo next = (NodeInfo)iterator.next();\n if (next == null) {\n current = n...
[ "0.6534326", "0.61520994", "0.6139945", "0.60605454", "0.6060217", "0.6048254", "0.59793967", "0.58963525", "0.58615947", "0.58472884", "0.5841375", "0.5834266", "0.57981837", "0.5783341", "0.5735775", "0.57341254", "0.5718054", "0.56917167", "0.5689135", "0.56815726", "0.562...
0.579607
13
Remove the first occurrence of an item.
public void remove(AnyType x) { LinkedListIterator<AnyType> p = findPrevious(x); if (p.current.next != null) { p.current.next = p.current.next.next; // Bypass deleted node } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public Item removeFirst() {\n nextFirst = moveForward(nextFirst, 1);\n Item output = items[nextFirst];\n items[nextFirst] = null;\n size -= 1;\n return output;\n }", "Object removeFirst();", "public Item removeFirst() {\r\n if (isEmpty()) {\r\n ...
[ "0.8124812", "0.77813673", "0.7642432", "0.7637581", "0.75555396", "0.74784", "0.73648924", "0.73228943", "0.73153096", "0.72929865", "0.7280261", "0.7173665", "0.7112929", "0.7095792", "0.70660245", "0.7061142", "0.70455295", "0.70293605", "0.7020801", "0.7019287", "0.701816...
0.0
-1
Clone: replicate a list in another list.
public LinkedList<AnyType> clone() { LinkedList<AnyType> clone = new LinkedList<AnyType>(); LinkedListIterator<AnyType> itr = this.first(); LinkedListIterator<AnyType> cloneitr = clone.zeroth(); while (itr.current != null) { clone.insert(itr.current.element, cloneitr); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<E> clone();", "public MultiList<R,S> copy(){\n MultiList<R,S> retVal = new MultiList<R,S>();\n retVal.putAll_forCopy(this);\n return retVal;\n }", "public static <T> List<T> clone(List<T> a) {\n\t\tList<T> newList = new ArrayList<T>();\n\t\t\n\t\tfor (T elt : a)\n\t\t\tnewLi...
[ "0.7271108", "0.68785596", "0.67550516", "0.6614276", "0.65419686", "0.6466117", "0.6462305", "0.6398051", "0.6389744", "0.6373206", "0.6365013", "0.63634056", "0.6347991", "0.6326754", "0.6319286", "0.6237317", "0.6231725", "0.6175381", "0.614144", "0.60948193", "0.6084246",...
0.64547724
7
FindMinimum: find the smallest element in the list
public AnyType findMinimum(Comparator<AnyType> cmp) { LinkedListIterator<AnyType> itr = first(); AnyType minimum = itr.current.element; while (itr.current.next != null) { //System.out.println(front.element); if (cmp.compare(itr.current.next.element, minimum) < 0) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int min(ArrayList<Integer> list) {\r\n int minValue = Integer.MAX_VALUE;\r\n\r\n for (int i : list) {\r\n if (i < minValue) {\r\n minValue = i;\r\n\r\n }\r\n\r\n }\r\n return minValue;\r\n }", "public T findMin();", "public int findMin(...
[ "0.79499006", "0.78106", "0.76992613", "0.7679457", "0.7636719", "0.7585943", "0.7490005", "0.741718", "0.7406841", "0.7405406", "0.7383102", "0.7322413", "0.7319519", "0.73173", "0.7266102", "0.7258135", "0.7251738", "0.7240444", "0.7205912", "0.7187289", "0.71789455", "0....
0.7129497
24
In this routine, LinkedList and LinkedListIterator are the classes written in Section 17.2.
public static <AnyType> int listSize(LinkedList<AnyType> theList) { LinkedListIterator<AnyType> itr; int size = 0; for (itr = theList.first(); itr.isValid(); itr.advance()) { size++; } return size; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public LinkedListIterator(){\n position = null;\n previous = null; \n isAfterNext = false;\n }", "@Override\n\tpublic Iterator<T> iterator() {\n\t\treturn new LinkedListIterator();\n\t}", "public Iterator iterator() {\n\t\treturn new LinkedListIterator();\n\t}", "public Iterator<T...
[ "0.7574821", "0.7442649", "0.7177548", "0.6982175", "0.67684", "0.6636765", "0.66136765", "0.6612276", "0.6603501", "0.6599473", "0.65815043", "0.6578796", "0.6575678", "0.65133405", "0.64347154", "0.64268136", "0.64212567", "0.6407822", "0.6344436", "0.6335413", "0.63292646"...
0.0
-1
properties // constructors //
private CostHelper() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Properties(){\n\n }", "public Property()\r\n {\r\n }", "public Property() {}", "private ReadProperty()\r\n {\r\n\r\n }", "private PropertyAccess() {\n\t\tsuper();\n\t}", "public Property() {\n this(0, 0, 0, 0);\n }", "public void setupProperties() {\n //...
[ "0.7945789", "0.77341944", "0.77177525", "0.7467753", "0.7385593", "0.7223875", "0.7101025", "0.70992255", "0.70787", "0.70332557", "0.7028856", "0.69796103", "0.69681823", "0.6890184", "0.68743634", "0.68084824", "0.67338204", "0.6717554", "0.6686516", "0.66792303", "0.66244...
0.0
-1
/ After becoming famous, the CodeBots decided to move into a new building together. Each of the rooms has a different cost, and some of them are free, but there's a rumour that all the free rooms are haunted! Since the CodeBots are quite superstitious, they refuse to stay in any of the free rooms, or any of the rooms b...
public static int exerciseEightSolution(int[][] matrix) { int sum = 0; /*Populate the matrix with random values between 0 and maxNumber and print the *generated matrix. Just to facilitate test. Not a part of the given problem. * *If you want to use your own values just change or comm...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void findMaxSumMatrix(int[][] matrix) {\n int maxSum = Integer.MIN_VALUE;\n int row = 0;\n int col = 0;\n for (int rows = 0; rows <matrix.length - 2; rows++) {\n for (int column = 0; column <matrix[rows].length - 2; column++) {\n int currentItem ...
[ "0.70809174", "0.6879698", "0.68571377", "0.6238069", "0.6187121", "0.609984", "0.6096749", "0.604917", "0.6034185", "0.5997336", "0.5781629", "0.57420313", "0.5730133", "0.57282573", "0.56888175", "0.5666347", "0.56595343", "0.5655266", "0.5651733", "0.5647619", "0.5640412",...
0.7700112
0
TODO from preferences Set up the sync adapter
public SyncAdapter(Context context, boolean autoInitialize) { super(context, autoInitialize); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void sync(){\n }", "public void sync()\n {\n setAutoSync(false);\n // simply send sync command\n super.executionSync(Option.SYNC);\n }", "public void setSync(boolean sync) {\n this.sync = sync;\n }", "private SYNC(String strSyn...
[ "0.6604015", "0.6405529", "0.6284443", "0.6280184", "0.6255137", "0.62215656", "0.60931766", "0.60523146", "0.6031033", "0.60179824", "0.60144955", "0.60082906", "0.5995546", "0.5978868", "0.59371895", "0.59011835", "0.58740306", "0.58576035", "0.5826042", "0.57975304", "0.57...
0.57845145
20
Set up the sync adapter. This form of the constructor maintains compatibility with Android 3.0 and later platform versions
public SyncAdapter(Context context, boolean autoInitialize, boolean allowParallelSyncs) { super(context, autoInitialize, allowParallelSyncs); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SyncAdapter(Context context, boolean autoInitialize) {\n super(context, autoInitialize);\n /*\n * If your app uses a content resolver, get an instance of it\n * from the incoming Context\n */\n mContentResolver = context.getContentResolver();\n }", "public S...
[ "0.72511625", "0.71979177", "0.7173795", "0.6999782", "0.69307554", "0.6650295", "0.59665793", "0.58177984", "0.58041143", "0.57923037", "0.57108724", "0.56942976", "0.5684242", "0.5656644", "0.5634655", "0.5631552", "0.5625187", "0.55347496", "0.5521022", "0.55140877", "0.55...
0.66475505
6
Don't use it when you need Interstitial Ads
@Override public void onInterstitialRewarded(FluteInterstitial fluteInterstitial, String s, int i) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onInterstitialDisplayed(Ad ad) {\n }", "@Override\n public void onInterstitialDisplayed(Ad ad) {\n }", "private void loadInterstitial() {\n AdRequest adRequest = new AdRequest.Builder()\n .setRequestAgent(\"android_studi...
[ "0.7526264", "0.7526264", "0.7310152", "0.7191705", "0.71367335", "0.7062655", "0.70289195", "0.70258033", "0.70008236", "0.6910964", "0.68681896", "0.6864014", "0.6800984", "0.67867255", "0.6786036", "0.6785094", "0.67603886", "0.6740797", "0.6718219", "0.6667522", "0.664543...
0.0
-1
Maximum size of echo datagram
public static void main(String[] args) throws IOException { if (args.length != 1) // Test for correct argument list throw new IllegalArgumentException("Parameter(s): <Port>"); int servPort = Integer.parseInt(args[0]); // Create a selector to multiplex client connections. S...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getPayloadLength() {\n return buffer.limit() - 12;\n }", "int getServerPayloadSizeBytes();", "private int zzMaxBufferLen() {\n return Integer.MAX_VALUE;\n }", "private int zzMaxBufferLen() {\n return Integer.MAX_VALUE;\n }", "long getFullMessageLength();", "public int getMaxS...
[ "0.66174996", "0.65733016", "0.65664566", "0.65664566", "0.65339947", "0.6466071", "0.645116", "0.6440086", "0.63859874", "0.6385126", "0.63721603", "0.6348405", "0.6302085", "0.6258907", "0.6258907", "0.6256472", "0.6242429", "0.6242429", "0.6242429", "0.6236503", "0.6168759...
0.0
-1
TODO Autogenerated method stub
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Mint.initAndStartSession(this, "e45fc306"); setContentView(R.layout.local_song_list_dialog); db = new SongsTable(this); pref = PreferenceManager.getDefaultSharedPreferences(getApplicationContext()); Boolean i...
{ "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 protected void onResume() { super.onResume(); //makeList(); TextView text = findViewById(R.id.local_songTitle); text.setText("Folder"); //text.setBackground(null); ImageView search = findViewById(R.id.local_music_search); search.setVisibility(View.INVISIBLE); ImageView back = findViewById(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void onClick(View v) { finish(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { Intent intent = new Intent(folderActivity.this, MyDialogFragment.class); ArrayList<SongInfo> item = listMap.get(list.get(position)); intent.putExtra("abcd",item); startActivity(intent); }
{ "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
Given scores of N athletes, find their relative ranks and the people with the top three highest scores, who will be awarded medals: "Gold Medal", "Silver Medal" and "Bronze Medal". Input: [5, 4, 3, 2, 1] Output: ["Gold Medal", "Silver Medal", "Bronze Medal", "4", "5"] Explanation: The first three athletes got the top t...
public static void main(String[] args) { for( String s : findRelativeRanks(new int[]{5,4,3,2,1})){ System.out.println(s); } for( String s : findRelativeRanksPriorityQueue(new int[]{5,4,3,2,1})){ System.out.println(s); } for( String s : findRelativeRanksTreeMap(new int[]{5,4,3,2,1})){ System.o...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static int[] climbingLeaderboard(int[] scores, int[] alice) {\n\t\tint[] ranks = new int[scores.length];\n\t\tint[] aliceRanks = new int[alice.length];\n\n\t\tint endIndex = -1;\n\t\tint currentElement = Integer.MIN_VALUE;\n\n\t\tfor (int i = 0; i < ranks.length; i++) {\n\t\t\tif (currentElement != scores[i]) {\n\...
[ "0.60127056", "0.59960747", "0.58228606", "0.58220965", "0.5809294", "0.57620317", "0.57136923", "0.5710021", "0.56925136", "0.5691664", "0.5665958", "0.5550308", "0.5518425", "0.5483636", "0.5448221", "0.54207635", "0.5408112", "0.5391431", "0.53897107", "0.5361097", "0.5323...
0.0
-1