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
Retourne le solde du compte.
public int getSomme() { return somme; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void afficheSolde() \r\n\t\t\t\t\t\t{ // d�but de la fonction\r\n\t\t\t\t\t\tSystem.out.println(\"Valeur du solde : \" + this.solde);\t\t\r\n\t\t\t\t\t\t}", "public void consulterSoldes() {\n\t\tint i=0;\n\t\tfor (Compte compte : listeComptes) {\n\t\t\ti++;\n\t \tSystem.out.println(i+\". Compte n°\"+co...
[ "0.7187706", "0.63070035", "0.61499155", "0.6103374", "0.60897344", "0.60804516", "0.60740525", "0.6066307", "0.6045591", "0.6001524", "0.5966037", "0.59585917", "0.59274346", "0.5872123", "0.58506083", "0.5842332", "0.583898", "0.5823196", "0.5821631", "0.58111864", "0.58020...
0.0
-1
Registers a shutdown hook for the Neo4j instance so that it shuts down nicely when the VM exits (even if you "CtrlC" the running application).
private static void registerShutdownHook( final GraphDatabaseService graphDb ) { Runtime.getRuntime().addShutdownHook( new Thread() { @Override public void run() { graphDb.shutdown(); } } ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void registerShutdownHook() {\r\n\t\t// Registers a shutdown hook for the Neo4j instance so that it\r\n\t // shuts down nicely when the VM exits (even if you \"Ctrl-C\" the\r\n\t // running application).\r\n\t Runtime.getRuntime().addShutdownHook( new Thread()\r\n\t {\r\n\t @Overr...
[ "0.8533637", "0.75183195", "0.7100708", "0.6970848", "0.6818391", "0.67898774", "0.676077", "0.6706226", "0.6706226", "0.6659673", "0.6656801", "0.6656801", "0.6656801", "0.6656801", "0.6598788", "0.6579343", "0.6579343", "0.6579343", "0.65754014", "0.6515996", "0.6494269", ...
0.6886678
4
Create contents of the window.
protected void createContents() { DelAllShell = new Shell(SWT.CLOSE | SWT.MIN); final int WIDTH=java.awt.Toolkit.getDefaultToolkit().getScreenSize().width; final int HEIGHT=java.awt.Toolkit.getDefaultToolkit().getScreenSize().height; DelAllShell.setBounds((WIDTH-441)/2,(HEIGHT-300)/2,441, 177); DelAllShell...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setSize(450, 300);\r\n\t\tshell.setText(\"SWT Application\");\r\n\r\n\t}", "void createWindow();", "private void createContents() {\r\n\t\tshell = new Shell(getParent(), SWT.TITLE);\r\n\r\n\t\tgetParent().setEnabled(false);\r\n\r\n\t\ts...
[ "0.78568476", "0.770408", "0.77024", "0.75711876", "0.747748", "0.7446512", "0.7418617", "0.74041", "0.7305366", "0.72465086", "0.7217618", "0.7171157", "0.71683043", "0.7142865", "0.71213007", "0.71075344", "0.7094211", "0.7083325", "0.707515", "0.69683087", "0.69569373", ...
0.0
-1
Created by zhujianheng on 6/1/16.
public interface ApiService { /** * 问题列表 * @param city * @return */ @GET(URLs.QUESTIONS) Call<Result<ArrayList<Question>>> questions(@Query("city") String city); /** * 用户登录 * @param mobile * @param password * @return */ @FormUrlEncoded @POST(URLs.LO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@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\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@O...
[ "0.6316391", "0.62598467", "0.61403024", "0.6136913", "0.6112278", "0.6112278", "0.6078009", "0.6073088", "0.6050938", "0.6041363", "0.60026836", "0.59875405", "0.59864587", "0.59843457", "0.5949988", "0.59275377", "0.59264106", "0.59181553", "0.5907238", "0.5898688", "0.5881...
0.0
-1
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.splash, 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
TODO Autogenerated method stub
@Override public void onClick(View arg0) { prTab.setBackgroundDrawable(context.getResources().getDrawable(R.drawable.grid_selected_bg)); if(Constants.connect.isConnectingToInternet(context)){ new RetrievePRList().execute(""); } else { Toast.makeText(context, Constan...
{ "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) { poTab.setBackgroundDrawable(context.getResources().getDrawable(R.drawable.grid_selected_bg)); if(Constants.connect.isConnectingToInternet(context)){ new RetrievePOApproval().execute(""); } else { Toast.makeText(context, Consta...
{ "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.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0...
0.0
-1
a list of all items.
public static Items[] listAllItems() { List<Items> items = dao().listAllItems(); return items.toArray(new Items[items.size()]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void listAllItems() {\n\t\t\n\t}", "public ArrayList<Item> getAllItems(){\n\t\treturn itemList; \n\t}", "public List<Item> getAllItems() {\r\n \t\tList<Item> items = persistenceManager.getAllItems();\r\n \t\tCollections.sort(items, Comparators.ITEM_COMPARATOR);\r\n \t\treturn items;\r\n \t}...
[ "0.7921071", "0.7896998", "0.78265333", "0.7793254", "0.7711429", "0.76923794", "0.76421154", "0.76256424", "0.7518444", "0.74796253", "0.7475333", "0.746717", "0.7418141", "0.7407078", "0.7386788", "0.7386788", "0.73585826", "0.7342663", "0.73229015", "0.73157215", "0.731198...
0.77755314
4
details of a particular item.
public static Items listItemDetails(final int argItemId) { Items item = dao().listItemDetails(argItemId); return item; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getItemDetailName() {\n return itemDetailName;\n }", "public String getItemInformation()\n {\n return this.aDescription + \" qui a un poids de \" + this.aWeight;\n\n }", "public synchronized String getItemDetails(){\n \tString s = \"\\n===================================...
[ "0.72659487", "0.72489727", "0.7235225", "0.71834797", "0.70207274", "0.7010496", "0.68622464", "0.684638", "0.6841649", "0.6834001", "0.6820761", "0.67776275", "0.6744819", "0.6701304", "0.66665816", "0.65841204", "0.65683347", "0.6560602", "0.6560602", "0.65567243", "0.6515...
0.6810459
11
to update the price.
public static String updatePrice(final double price, final int argItemId) { String msg = "Update Unsuccessful"; int res = dao().updateItemPrice(price, argItemId); if (res > 0) { msg = "Price updated successfully"; } return msg; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPrice(double newPrice) {\r\n price = newPrice;\r\n }", "public void priceUpdate(){\n \n double attractionPrices = 0;\n Attraction attraction;\n for(int i=0; i< getAttractionsList().size();i++)\n {\n attraction = (Attraction) getAttractionsLis...
[ "0.7802245", "0.769267", "0.7648065", "0.7628473", "0.7532752", "0.75131565", "0.7475249", "0.74576", "0.7455191", "0.74444145", "0.74444145", "0.74444145", "0.7434668", "0.7429608", "0.7428664", "0.7407453", "0.7407453", "0.7407453", "0.7407453", "0.7407453", "0.7407453", ...
0.0
-1
to add a new item.
public static int uploadItem(final int argItemId, final String argItemName, final double argPrice, final String argItemCat, final int argSupplierId) { int res = dao().uploadNewItem(argItemId, argItemName, argPrice, argItemCat, argSupplierId); return res; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void add(Item item);", "void addItem (Item toAdd){\n\t\t\tthis.items.add(toAdd);}", "public abstract void addItem(AbstractItemAPI item);", "public void add() {\n\t\tcart.add(item.createCopy());\n\t}", "public void addItem(Item item) {\n items.add(item);\n }", "public void addItem(Item item) {\n...
[ "0.839818", "0.82415444", "0.79081327", "0.7810034", "0.7769183", "0.7769183", "0.77196974", "0.7648108", "0.7571845", "0.7571022", "0.7552313", "0.75395495", "0.7523731", "0.7504735", "0.74918026", "0.7485683", "0.7485236", "0.74238425", "0.74149615", "0.739027", "0.7381523"...
0.0
-1
to get the last row.
public static Items findLastRow() { Items item = dao().findLastRow(); return item; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getEndRow();", "private Line getLastLine() {\n\t\treturn doily.lines.get(doily.lines.size()-1);\n\t}", "public int getLast() {\n\treturn _last;\n }", "public int getLast() {\n\t\treturn last;\n\t}", "public String getLastCell() {\n\t\treturn lastCell;\n\t}", "public abstract int getLastCage...
[ "0.7860828", "0.73454624", "0.7268084", "0.7257062", "0.722845", "0.71535736", "0.70997083", "0.7098597", "0.7091197", "0.7082798", "0.70565814", "0.7050381", "0.7048838", "0.7047834", "0.7047503", "0.7033623", "0.7030284", "0.70250505", "0.7021034", "0.70166576", "0.690187",...
0.8200434
0
to get the list of items for a particular supplier.
public static Items[] retrieveItemsList(final int argSupplier) { List<Items> items = dao().listSupplierItems(argSupplier); return items.toArray(new Items[items.size()]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String supplierList(SupplierDetails s);", "public List<Supplier> getSuppliers(){ \n\t List<Supplier> list=new ArrayList<Supplier>(); \n\t list=template.loadAll(Supplier.class); \n\t return list; \n\t}", "@Override\n\tpublic List<Supplier> getAllSupplier() {\n\t\tString sql=\"SELECT * FROM s...
[ "0.74263495", "0.73481053", "0.71174467", "0.7041294", "0.68918884", "0.682338", "0.6739046", "0.66694486", "0.662023", "0.6608386", "0.65126294", "0.6432048", "0.63904977", "0.6328803", "0.6302069", "0.6298196", "0.62963665", "0.6292642", "0.62021166", "0.6187032", "0.616609...
0.71915954
2
Implement this interface in order to receive the flow of Mutations
public interface MutationListener { void accept(Mutation mutation); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void introduceMutations() {\n }", "public abstract void mutate();", "public interface Mutation {\n void apply(Collection<PartType> parts);\n}", "public interface IMutationOperator extends IDescriptable, Opcodes {\n\t/**\n\t * Gets all possible points in given class (bytecode) where different\n\t ...
[ "0.6260846", "0.6175893", "0.586564", "0.573373", "0.5600513", "0.5598968", "0.55977416", "0.55260104", "0.5476897", "0.54425436", "0.5434153", "0.53716874", "0.5329163", "0.5258573", "0.52456427", "0.5241168", "0.5221643", "0.5181067", "0.51574683", "0.5129573", "0.5124379",...
0.52358806
16
Stores a schema change for a table
void storeSchema(LogSequenceNumber lsn, Table table);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\t\tpublic void setSchema(String schema) throws SQLException {\n\t\t\t\r\n\t\t}", "private void processAlterTable() throws HsqlException {\n\n String tableName = tokenizer.getName();\n String schema =\n session.getSchemaNameForWrite(tokenizer.getLongNameFirst());\n Ta...
[ "0.6108253", "0.60760987", "0.60322434", "0.5969665", "0.59596235", "0.57938415", "0.5750076", "0.57238984", "0.5704376", "0.56502414", "0.56499684", "0.5622826", "0.5615353", "0.55795324", "0.5519535", "0.5518644", "0.54999167", "0.54903436", "0.5418514", "0.54162854", "0.54...
0.6782002
0
Return the schema at the given log sequence number
Table fetchSchema(LogSequenceNumber lsn, String tableName);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void storeSchema(LogSequenceNumber lsn, Table table);", "public MetaSchema getMetaSchema(int iSchema);", "public SchemaInfo getSchema () throws Exception;", "S getSchema();", "public static Schema loadSchema(Configuration conf) {\n SchemaWritable schema = new SchemaWritable();\n try {\n ...
[ "0.59169006", "0.544042", "0.5207841", "0.51963633", "0.5156373", "0.49758896", "0.4922038", "0.4908676", "0.48727655", "0.48601294", "0.48327264", "0.48297387", "0.48297387", "0.48111185", "0.47464612", "0.47428992", "0.4729392", "0.47207883", "0.47207883", "0.47174904", "0....
0.6311464
0
Creates a new instance of CellBackup
private CellBackup(CellRevision cellRevision, TechPool techPool, boolean modified) { this.cellRevision = cellRevision; this.techPool = techPool; this.modified = modified; cellBackupsCreated++; if (Job.getDebug()) check(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static CellBackup newInstance(ImmutableCell d, TechPool techPool) {\n if (d.cellId.idManager != techPool.idManager)\n throw new IllegalArgumentException();\n if (techPool.getTech(d.techId) == null)\n throw new IllegalArgumentException();\n CellRevision cellRev...
[ "0.64367115", "0.6017605", "0.5985853", "0.59154814", "0.5756277", "0.54724705", "0.5445727", "0.53970873", "0.5302568", "0.5231002", "0.521997", "0.5210545", "0.5187615", "0.5175822", "0.5149038", "0.5035004", "0.5024127", "0.50082827", "0.498169", "0.4944441", "0.4937502", ...
0.63274944
1
Creates a new instance of CellBackup
public static CellBackup newInstance(ImmutableCell d, TechPool techPool) { if (d.cellId.idManager != techPool.idManager) throw new IllegalArgumentException(); if (techPool.getTech(d.techId) == null) throw new IllegalArgumentException(); CellRevision cellRevision = ne...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private CellBackup(CellRevision cellRevision, TechPool techPool, boolean modified) {\n this.cellRevision = cellRevision;\n this.techPool = techPool;\n this.modified = modified;\n cellBackupsCreated++;\n if (Job.getDebug())\n check();\n }", "public CellBacku...
[ "0.63274944", "0.6017605", "0.5985853", "0.59154814", "0.5756277", "0.54724705", "0.5445727", "0.53970873", "0.5302568", "0.5231002", "0.521997", "0.5210545", "0.5187615", "0.5175822", "0.5149038", "0.5035004", "0.5024127", "0.50082827", "0.498169", "0.4944441", "0.4937502", ...
0.64367115
0
Creates a new instance of CellBackup which differs from this CellBackup. Four array parameters are supplied. Each parameter may be null if its contents is the same as in this Snapshot.
public CellBackup with(ImmutableCell d, ImmutableNodeInst[] nodesArray, ImmutableArcInst[] arcsArray, ImmutableExport[] exportsArray, TechPool superPool) { CellRevision newRevision = cellRevision.with(d, nodesArray, arcsArray, exportsArray); TechPool restrictedPool = superPoo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private CellBackup(CellRevision cellRevision, TechPool techPool, boolean modified) {\n this.cellRevision = cellRevision;\n this.techPool = techPool;\n this.modified = modified;\n cellBackupsCreated++;\n if (Job.getDebug())\n check();\n }", "public static Ce...
[ "0.57085377", "0.5437258", "0.5390818", "0.52563286", "0.48526952", "0.48439628", "0.47962663", "0.45957166", "0.45912787", "0.45820835", "0.45343956", "0.45343956", "0.45343956", "0.45343956", "0.45301414", "0.44881538", "0.44746575", "0.44546455", "0.4441523", "0.44076666", ...
0.53305835
3
Creates a new instance of CellBackup which differs from this CellBackup by revision date.
public CellBackup withRevisionDate(long revisionDate) { CellRevision newRevision = cellRevision.withRevisionDate(revisionDate); if (newRevision == cellRevision) return this; return new CellBackup(newRevision, this.techPool, true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private CellBackup(CellRevision cellRevision, TechPool techPool, boolean modified) {\n this.cellRevision = cellRevision;\n this.techPool = techPool;\n this.modified = modified;\n cellBackupsCreated++;\n if (Job.getDebug())\n check();\n }", "public CellBacku...
[ "0.6628871", "0.58714074", "0.58630973", "0.5769069", "0.47231615", "0.4718271", "0.46656173", "0.4623528", "0.4617655", "0.46007505", "0.45688382", "0.45568913", "0.45517212", "0.45516968", "0.45212102", "0.45197836", "0.45087945", "0.44998997", "0.44900995", "0.44879693", "...
0.78400177
0
Creates a new instance of CellBackup with modified flag off.
public CellBackup withoutModified() { if (!this.modified) return this; return new CellBackup(this.cellRevision, this.techPool, false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private CellBackup(CellRevision cellRevision, TechPool techPool, boolean modified) {\n this.cellRevision = cellRevision;\n this.techPool = techPool;\n this.modified = modified;\n cellBackupsCreated++;\n if (Job.getDebug())\n check();\n }", "public static Ce...
[ "0.67033947", "0.58929306", "0.55815804", "0.55228317", "0.5355775", "0.52533776", "0.52262706", "0.5091471", "0.4948002", "0.48849827", "0.4875953", "0.48475528", "0.48121047", "0.47750422", "0.47750422", "0.47750422", "0.47750422", "0.4758603", "0.4756976", "0.47502872", "0...
0.78205913
0
Returns CellBackup which differs from this CellBackup by TechPool.
public CellBackup withTechPool(TechPool techPool) { TechPool restrictedPool = techPool.restrict(cellRevision.techUsages, this.techPool); if (this.techPool == restrictedPool) return this; if (techPool.idManager != this.techPool.idManager) throw new IllegalArgumentException(); // ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public CellBackup withoutModified() {\n if (!this.modified) return this;\n return new CellBackup(this.cellRevision, this.techPool, false);\n }", "static CellBackup read(IdReader reader, TechPool techPool) throws IOException {\n CellRevision newRevision = CellRevision.read(reader);\n ...
[ "0.68990165", "0.60998446", "0.60694677", "0.55691993", "0.5442357", "0.5420464", "0.52474046", "0.52133644", "0.51579714", "0.51475537", "0.5129809", "0.5126889", "0.5119874", "0.5085943", "0.50579995", "0.5002538", "0.4985167", "0.49662688", "0.4964991", "0.49526665", "0.49...
0.62828285
1
Returns CellBackup which differs from this CellBackup by renamed Ids.
CellBackup withRenamedIds(IdMapper idMapper, CellName newGroupName) { CellRevision newRevision = cellRevision.withRenamedIds(idMapper, newGroupName); if (newRevision == cellRevision) return this; return new CellBackup(newRevision, this.techPool, true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getBackupId();", "java.lang.String getBackupId();", "java.lang.String getBackupId();", "java.lang.String getBackupId();", "public CellBackup withoutModified() {\n if (!this.modified) return this;\n return new CellBackup(this.cellRevision, this.techPool, false);\n }", ...
[ "0.52480966", "0.52480966", "0.52480966", "0.52480966", "0.5158591", "0.49701664", "0.4952708", "0.4952708", "0.4952708", "0.4952708", "0.49057207", "0.4891133", "0.48786798", "0.48786798", "0.48786798", "0.48786798", "0.48310378", "0.48015738", "0.48015738", "0.48015738", "0...
0.6803618
0
Writes this CellBackup to IdWriter.
void write(IdWriter writer) throws IOException { cellRevision.write(writer); writer.writeBoolean(modified); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void write(String id);", "@Override\r\n\tpublic void write(DataOutput out) throws IOException {\n\t\tWritableUtils.writeVInt(out, this.id);\r\n\t}", "com.google.protobuf.ByteString\n getBackupIdBytes();", "com.google.protobuf.ByteString\n getBackupIdBytes();", "com.google.protobuf.Byte...
[ "0.59342784", "0.56783664", "0.51089525", "0.51089525", "0.51089525", "0.51089525", "0.5098465", "0.50946087", "0.50745493", "0.50745493", "0.50745493", "0.50745493", "0.50322115", "0.50322115", "0.50322115", "0.50322115", "0.50297594", "0.50237083", "0.5015215", "0.5013993", ...
0.64435625
0
Reads CellBackup from SnapshotReader.
static CellBackup read(IdReader reader, TechPool techPool) throws IOException { CellRevision newRevision = CellRevision.read(reader); boolean modified = reader.readBoolean(); TechPool restrictedPool = techPool.restrict(newRevision.techUsages, techPool); return new CellBackup(newRevis...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void initFromBackup(InputStream is) throws IOException {\n try (GzipCompressorInputStream gzIn = new GzipCompressorInputStream(is);\n JournalEntryStreamReader reader = new JournalEntryStreamReader(gzIn)) {\n List<Master> masters = mRegistry.getServers();\n\n // Executor for applying back...
[ "0.52914184", "0.50477064", "0.48002392", "0.47167847", "0.46904248", "0.46700493", "0.46373275", "0.45902982", "0.45527136", "0.45205528", "0.4516004", "0.45044485", "0.44370976", "0.4425822", "0.44248804", "0.44090223", "0.43620175", "0.43536037", "0.43448177", "0.43430522", ...
0.6492289
0
Returns data for size computation (connectivity etc).
public Memoization getMemoization() { Memoization m = this.m; if (m != null) return m; return this.m = new Memoization(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long getDataSize() {\n return dataSize;\n }", "public int size() {\n return dataSize;\n }", "public abstract String get_size(DataRequest source) throws ConnectorOperationException;", "public int getDataSize() {\n\t\treturn (int)this.getSize(data);\n\t}", "public int dataSize() {\n\t\tr...
[ "0.7673035", "0.7456245", "0.7418065", "0.7375475", "0.7330785", "0.7265858", "0.71649057", "0.7096637", "0.7078756", "0.7078756", "0.7078756", "0.7078756", "0.7078756", "0.7058092", "0.7038984", "0.703168", "0.7020919", "0.6986825", "0.6977249", "0.6977249", "0.6977249", "...
0.0
-1
Returns data for arc shrinkage computation.
public AbstractShapeBuilder.Shrinkage getShrinkage() { if (shrinkage == null) shrinkage = new AbstractShapeBuilder.Shrinkage(this); return shrinkage; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "double[][][] getReduced(){\n \n return A4;\n }", "double getCostArc(K idVertexIni, K idVertexFin);", "@Override\n \tpublic double[] getdata(List<Pair<String, String>> alin, MoleculeManager manager, GapManager gap) {\n \n \n \tdouble S_max;\n \tdouble[][] p;\n \tdouble[] data;\n \tint N;\n \tin...
[ "0.5029142", "0.49799925", "0.49681062", "0.49367857", "0.48824275", "0.48804224", "0.48282048", "0.48028937", "0.4744255", "0.47279477", "0.47018513", "0.47000194", "0.4696581", "0.46754256", "0.4663152", "0.46596825", "0.4652455", "0.4628449", "0.46232393", "0.46095005", "0...
0.0
-1
Returns bounds of all primitive arcs in this Cell or null if there are not primitives.
public ERectangle getPrimitiveBounds() { ERectangle primitiveBounds = this.primitiveBounds; if (primitiveBounds != null) return primitiveBounds; return this.primitiveBounds = computePrimitiveBounds(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BoundsObject getBounds() {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic Area getBoundsArea() {\n\t\treturn null;\r\n\t}", "public Rectangle getBounds() {\n return null;\n }", "public List<Float> getBoundingsOfCell() {\n\n\t\tfloat minXPoint = Float.POSITIVE_INFINITY;\n\t\tfloat maxXPoint ...
[ "0.6106499", "0.59640217", "0.5693991", "0.56693375", "0.5667383", "0.56238246", "0.5610793", "0.5578929", "0.55092597", "0.5413268", "0.5412256", "0.5401711", "0.537545", "0.53737485", "0.5370916", "0.5350002", "0.5333197", "0.53296804", "0.53231734", "0.5318467", "0.5318467...
0.6874601
0
Returns true of there are Exports on specified NodeInst.
public boolean hasExports(ImmutableNodeInst originalNode) { int startIndex = searchExportByOriginalPort(originalNode.nodeId, 0); if (startIndex >= exportIndexByOriginalPort.length) return false; ImmutableExport e = exportIndexByOriginalPort[startIndex]; return e.origi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasExports() {\n return !exportedNamespacesToSymbols.isEmpty();\n }", "boolean isNoExport();", "public boolean isExport() {\n return export;\n }", "public boolean canExport(Grid grid) {\n return true;\n }", "private boolean peekExportDeclaration() {\n return peek(Toke...
[ "0.6978599", "0.62273896", "0.5661884", "0.55540985", "0.5525934", "0.5438852", "0.540202", "0.5376906", "0.5362205", "0.528502", "0.52737045", "0.5196464", "0.51825887", "0.51822835", "0.51746297", "0.51415807", "0.5089617", "0.50865406", "0.50677955", "0.5058984", "0.503122...
0.67835003
1
Method to return the number of Exports on specified NodeInst.
public int getNumExports(int originalNodeId) { int startIndex = searchExportByOriginalPort(originalNodeId, 0); int j = startIndex; for (; j < exportIndexByOriginalPort.length; j++) { ImmutableExport e = exportIndexByOriginalPort[j]; if (e.original...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getNumVisits() {\n return this.numVisits;\n }", "@Exported\n public int getNumberOfOfflineSlaves() {\n int count = 0;\n for (Slave s : slaves) {\n if (s.getComputer().isOffline()) {\n count++;\n }\n }\n return count;\n }"...
[ "0.5859007", "0.5376692", "0.53682137", "0.5350829", "0.52975374", "0.5247955", "0.5247955", "0.52352947", "0.52352947", "0.52352947", "0.52288425", "0.52288425", "0.52288425", "0.5213374", "0.51849073", "0.51849073", "0.51849073", "0.5174261", "0.5165307", "0.51498234", "0.5...
0.6472967
0
Method to return an Iterator over all ImmutableExports on specified NodeInst.
public Iterator<ImmutableExport> getExports(int originalNodeId) { int startIndex = searchExportByOriginalPort(originalNodeId, 0); int j = startIndex; for (; j < exportIndexByOriginalPort.length; j++) { ImmutableExport e = exportIndexByOriginalPort[j]; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Collection<IExport> getOcilExports(IScapContext ctx) throws OcilException {\r\n \tMap<String, List<String>> qMap = new HashMap<String, List<String>>();\r\n \tMap<String, Variables> vMap = new HashMap<String, Variables>();\r\n \tfor (RuleType rule : ctx.getSelectedRules()) {\r\n \t if (rule.isSetCh...
[ "0.5279234", "0.52001435", "0.5139005", "0.50596637", "0.5051516", "0.5044035", "0.49290922", "0.49261805", "0.49109972", "0.48953116", "0.4884042", "0.4869719", "0.4868857", "0.4824509", "0.4812233", "0.48099697", "0.4789008", "0.47830722", "0.47729093", "0.474356", "0.47430...
0.71114933
0
Method to determine whether the display of specified pin NodeInst should be supressed. In Schematics technologies, pins are not displayed if there are 1 or 2 connections, but are shown for 0 or 3 or more connections (called "Steiner points").
public boolean pinUseCount(ImmutableNodeInst pin) { int numConnections = getNumConnections(pin); if (numConnections > 2) return false; if (hasExports(pin)) return true; if (numConnections == 0) return false; return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean needPIN() {\n return datafacade.getInt(\"pin\")!=-1;\n }", "boolean isHiddenNeuron();", "private boolean pptIsAvailable() {\n try {\n pinpoint = new pinpointInterface(true);\n } catch (NoConnectionException ex) {\n JOptionPane.showMessageDialog(RACA...
[ "0.55261517", "0.54281145", "0.5380783", "0.53595173", "0.53364456", "0.53278255", "0.52071005", "0.52071005", "0.516322", "0.5147615", "0.5144493", "0.5118257", "0.51040375", "0.50860053", "0.50630313", "0.50494504", "0.5031759", "0.50069493", "0.5006054", "0.49805802", "0.4...
0.560923
0
Method to return a list of arcs connected to speciefed or all ports of specified ImmutableNodeInst.
public List<ImmutableArcInst> getConnections(BitSet headEnds, ImmutableNodeInst n, PortProtoId portId) { ArrayList<ImmutableArcInst> result = null; if (headEnds != null) headEnds.clear(); int myNodeId = n.nodeId; int chronIndex = 0; if (p...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Port> getPorts(ISchemaInfo info);", "public ArrayList<AStarNode> getConnections() {\n return connected;\n }", "List<IConnector> getConnectors();", "public Connector[] getConnectors() {\n Enumeration connectorsEnum = elements();\n Connector[] connectorsArray...
[ "0.58138746", "0.5647173", "0.5646988", "0.54925686", "0.53744674", "0.5321344", "0.5316164", "0.5308914", "0.52818114", "0.52760535", "0.5263024", "0.52400964", "0.5213639", "0.5191659", "0.51896405", "0.5183049", "0.5182887", "0.51749545", "0.5174787", "0.51138556", "0.5067...
0.6039666
0
Returns true of there are Connections on specified ImmutableNodeInst connected either to specified port or to all ports
public boolean hasConnections(ImmutableNodeInst n, PortProtoId portId) { int i = searchConnectionByPort(n.nodeId, 0); if (i >= connections.length) return false; int con = connections[i]; ImmutableArcInst a = getArcs().get(con >>> 1); boolean end = (con & 1...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean getOpenPorts() {\n // Declare variables\n Socket sock;\n InetSocketAddress isa;\n\n // Check if port range is valid\n if(mEndPort-mStartPort < 0 ) {\n return false;\n }\n else if(iStack.size() == 0){\n return false;\n }\n\...
[ "0.6387172", "0.63082737", "0.61389595", "0.61165124", "0.61147255", "0.61147255", "0.6104565", "0.6039556", "0.60312754", "0.60041684", "0.59925884", "0.5965306", "0.5913888", "0.5913888", "0.5913888", "0.5913888", "0.5913888", "0.5913888", "0.5913888", "0.5913888", "0.58946...
0.74961776
0
Method to return the number of Connections on specified ImmutableNodeInst.
public int getNumConnections(ImmutableNodeInst n) { int myNodeId = n.nodeId; int i = searchConnectionByPort(myNodeId, 0); int j = i; for (; j < connections.length; j++) { int con = connections[j]; ImmutableArcInst a = getArcs().get(co...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getConnectionsCount();", "public int numofConnections() {\n\t\tint numberofconnection = 0;\n\t\tString node;\n\t\tfor (String key : Nodeswithconnect.keySet()) {\n\t\t\tfor (int i = 0; i < Nodeswithconnect.get(key).length; i++) {\n\t\t\t\tnode = Nodeswithconnect.get(key)[i];\n\t\t\t\tif (!node.equals(\"null\"...
[ "0.7598872", "0.73881376", "0.7232613", "0.7228431", "0.71980166", "0.7177374", "0.7131094", "0.7002807", "0.6986345", "0.69481", "0.69119954", "0.68952096", "0.68400913", "0.68388945", "0.68246204", "0.68226373", "0.68095696", "0.68095696", "0.67979974", "0.67896754", "0.677...
0.77619976
0
Method to tell whether the specified ImmutableNodeInst is wiped. Wiped ImmutableNodeInsts are erased. Typically, pin ImmutableNodeInsts can be wiped. This means that when an arc connects to the pin, it is no longer drawn. In order for a ImmutableNodeInst to be wiped, its prototype must have the "setArcsWipe" state, and...
public boolean isWiped(ImmutableNodeInst n) { return wiped.get(n.nodeId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isPinned();", "boolean isHiddenNeuron();", "public boolean isSwimming ( ) {\n\t\treturn extract ( handle -> handle.isSwimming ( ) );\n\t}", "public boolean isFrozen ( ) {\n\t\treturn extract ( handle -> handle.isFrozen ( ) );\n\t}", "public boolean canBeSwappedOut();", "public boolean isJu...
[ "0.51096743", "0.4917783", "0.48913243", "0.48647872", "0.48309812", "0.48307928", "0.4811124", "0.4811124", "0.47432196", "0.47173622", "0.4702422", "0.46850935", "0.46836805", "0.46659946", "0.46437153", "0.4623367", "0.46109888", "0.45945865", "0.44918784", "0.44761062", "...
0.77518755
0
Khoi tao contructor de mapping 'driver' cua tang Test Case vs 'driver' cua tang Page Object thong qua mappingDriver
public LoginPageObject(WebDriver mappingDriver) { driver = mappingDriver; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SearchPageObject(WebDriver driver) {\n this.driver = driver;\n }", "public PageObject(WebDriver driver) {\n this.driver = driver;\n PageFactory.initElements(driver, this);\n }", "public Page(WebDriver driver) {\n this.driver = driver;\n }", "public Page(WebDriver driver)...
[ "0.6663328", "0.6606033", "0.658254", "0.6526439", "0.65153515", "0.65123725", "0.6430994", "0.64202946", "0.63915426", "0.63698566", "0.6354216", "0.635414", "0.6320802", "0.63128173", "0.6292587", "0.62015057", "0.61892045", "0.6168743", "0.61508316", "0.60677", "0.60626847...
0.73815924
0
A simple service method.
public String sayHello() { return "hello"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void service() {\n\t}", "Service newService();", "public void doService() {\n }", "private static interface Service {}", "public interface Service {\n // Service-specific methods go here\n }", "@Override\r\n\t\t\tpublic String doService(String param) {\n\t\t\t\treturn null;\r\n\t\t\t}...
[ "0.8104889", "0.77395886", "0.7707464", "0.7633129", "0.7247926", "0.71458924", "0.70356244", "0.70109016", "0.69967157", "0.6963439", "0.69564456", "0.69221514", "0.6915184", "0.6913653", "0.6893706", "0.6893555", "0.6893555", "0.6825689", "0.6809933", "0.6800109", "0.679946...
0.0
-1
Created by Dartlen on 31.12.2017.
public interface Condition { boolean isSatisfied(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "public final void mo51373a() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Overri...
[ "0.5836824", "0.57229733", "0.56198186", "0.5581588", "0.5577702", "0.55331296", "0.5518959", "0.5518959", "0.5491614", "0.541637", "0.54148227", "0.53975284", "0.5384085", "0.53780967", "0.53780967", "0.53780967", "0.53780967", "0.53780967", "0.53688157", "0.53677726", "0.53...
0.0
-1
the host and the port to connect to
public static void main(String[] args) throws Exception { final String hostname; final int port; try { final ParameterTool params = ParameterTool.fromArgs(args); //reads the arguments hostname = params.has("hostname") ? params.get("hostname") : "localhost"; //@ Tushar: here we are providing port as ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ReaderHelper connectNet(final String host, final int port);", "public void newConnection(String hostname, int port) throws Exception;", "public void connect() {\n\t\ttry {\n\t\t\tsocket = new Socket(host, port);\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"Error connecting: \" + e.getMessage());\...
[ "0.75442475", "0.7324502", "0.69915074", "0.68805635", "0.68383074", "0.68312174", "0.680285", "0.66660035", "0.66541153", "0.6650362", "0.6645727", "0.66390425", "0.6634232", "0.6595718", "0.6579921", "0.6578314", "0.65706354", "0.6569653", "0.65629226", "0.6529826", "0.6529...
0.0
-1
TODO Autogenerated method stub
@Override public void showItems(JZMatchBean bean, LinearLayout parent_layout) { }
{ "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
Diese Methode wird beim Start des Portlets aufgerufen Initialisiert das Portlet.
@Override public void init() { super.init(); setTheme("xtreemfs"); initLayout(); initTable(); initFileDetails(); initButtons(); initFilteringControls(); initUploadState(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void init() throws PortletException{\r\n\t\tsuper.init();\r\n\t}", "public PortletContainer() {\n }", "public Portlets() \r\n {\r\n super();\r\n _portletList = new Vector();\r\n }", "public void start(int port);", "StartPort createStartPort();", "public PortletContext() {\...
[ "0.7198272", "0.7096832", "0.6961099", "0.68145937", "0.6665758", "0.66068333", "0.65836036", "0.65298146", "0.6520917", "0.65201646", "0.65114737", "0.6509011", "0.6487018", "0.6440214", "0.6440214", "0.64341456", "0.6431874", "0.6429213", "0.6425971", "0.6425971", "0.642597...
0.0
-1
Tabelle mit Dateilisting initialisieren
public void initTable() { this.table.setSelectable(true); this.table.setImmediate(true); this.table.setWidth("100%"); this.table.addListener(this); this.table.setDropHandler(this); this.table.addActionHandler(this); this.table.setDragMode(TableDragMode.ROW); this.table.setSizeFull(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private FundList() {\n initFields();\n }", "public Jahresrangliste() {\r\n\t\tLaeufe = new ArrayList<Lauf>();\r\n\t\tRennfahrer = new ArrayList<Fahrer>();\r\n\t}", "private void initDate(){\n\n owa = findViewById(R.id.OWA);\n sda = findViewById(R.id.SWA);\n fida = findViewById(R.id...
[ "0.64068425", "0.63786507", "0.63720804", "0.6344174", "0.62747324", "0.62660986", "0.6219399", "0.6198776", "0.6187131", "0.6170776", "0.61674815", "0.61621207", "0.6140257", "0.6138281", "0.61223996", "0.610526", "0.60689104", "0.60608906", "0.60574", "0.6044023", "0.604294...
0.5915643
37
this method gets called several times during the update
public void updateProgress(long readBytes, long contentLength) { Xtreemfs_portletApplication.this.subwindow.pi.setValue(new Float(readBytes / (float) contentLength)); Xtreemfs_portletApplication.this.subwindow.textualProgress.setValue(+ readBytes/1024 + " out of " + contentLength/1024 + "KiB uploaded.")...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void update() {\n\t\t\t\r\n\t\t}", "@Override\r\n\t\tpublic void update() {\n\t\t\t\r\n\t\t}", "@Override\n\t\tpublic void update() {\n\n\t\t}", "@Override\n\t\tpublic void update() {\n\n\t\t}", "@Override\n\t\tpublic void updat...
[ "0.7435005", "0.74157524", "0.74157524", "0.73705685", "0.73705685", "0.73705685", "0.7237872", "0.7237872", "0.7237872", "0.7237872", "0.7237872", "0.7221968", "0.7183868", "0.7148037", "0.7120781", "0.7115957", "0.7100344", "0.70919746", "0.69993544", "0.69993544", "0.69989...
0.0
-1
Liefert die Datei als Stream zur Weiterverarbeitung
private StreamSource getFileSource(final File requestedFile) { StreamSource fileSource = new StreamSource() { private static final long serialVersionUID = 3275933556191707490L; public InputStream getStream() { try { return new org.xtreemfs.portlet.util.BufferedFileInputStream(requested...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void openStream ()\n {\n stream = Util.stream (entry, \"Holder.java\");\n }", "default void refreshStream() {}", "public InputStream getStream();", "@Override\n public InputStream openStream() throws IOException\n {\n return new FileInputStream(temp);\n }", "public long getStream(...
[ "0.7041749", "0.6377359", "0.6101395", "0.6086114", "0.60353106", "0.59561306", "0.5947163", "0.5920993", "0.5906887", "0.5831259", "0.58232594", "0.5815241", "0.5803719", "0.57830286", "0.57457054", "0.5743575", "0.57385695", "0.57362825", "0.57057756", "0.5672943", "0.56527...
0.0
-1
Packt ein Verzeichnis als ZIP und liefert es als Stream zur Weiterverarbeitung.
private StreamSource getZipSource(final File requestedDirectory) { StreamSource zippedDirSource = new StreamSource() { private static final long serialVersionUID = 7060525220398731933L; public InputStream getStream() { // Pipe bauen, um Steam als Download umzulenken final CircularByteBuf...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void createZipArchiv(String xmlStream, String path, String name) {\r\n\t\ttry {\r\n\t\t\tFile file = new File(path, name + \".xml\");\r\n\t\t\tif (!file.exists()) {\r\n\t\t\t\tfile.createNewFile();\r\n\t\t\t}\r\n\t\t\t//XMLStream in Datei schreiben\r\n\t\t\tPrintWriter writer = new PrintWriter(file)...
[ "0.6323671", "0.6035866", "0.60247934", "0.59616494", "0.5936781", "0.59099334", "0.58462167", "0.5801726", "0.5752098", "0.5730325", "0.5720923", "0.5717383", "0.566638", "0.5592621", "0.55805135", "0.5578604", "0.5558645", "0.5555896", "0.55483574", "0.5491832", "0.5469115"...
0.5166906
47
Pipe bauen, um Steam als Download umzulenken
public InputStream getStream() { final CircularByteBuffer cbb = new CircularByteBuffer(1024); new Thread( new Runnable(){ public void run(){ ZipOutputStream zos = new ZipOutputStream(cbb.getOutputStream()); Utils.zipDir(getVolume(), requestedDire...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface FileDownloader {\n boolean setInputSteam(String sourceUrl);\n void downloadFileFromStream();\n String getFileName();\n\n}", "List<Transfer> requestDownloads(Leecher leecher);", "@Override\n protected Void call() {\n if(download_queue.isEmpty()) return null;\n...
[ "0.5790897", "0.57125324", "0.5698376", "0.5670838", "0.55456203", "0.54065144", "0.53687817", "0.536023", "0.53228086", "0.53202134", "0.5311175", "0.528039", "0.5275499", "0.5202823", "0.5177051", "0.51628053", "0.51499224", "0.5142163", "0.5114001", "0.5087467", "0.5082720...
0.0
-1
Liefert die Datei mit dem Namen 'fileName' aus dem aktuellen Verzeichnis.
private File getFile(String fileName) { String path = ""; if (fileName.equals(PREV_DIRECTORY)) { if (getCurrentDir().lastIndexOf("/") >= 0) { path = getCurrentDir().substring(0, getCurrentDir().lastIndexOf("/")); if (fileName.length() > PREV_DIRECTORY.length()) { path += fileName...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setFileName(String fileName) {\n this.fileName = fileName;\n }", "public void setFileName(String fileName) {\r\n this.fileName = fileName;\r\n }", "public void setFileName(String fileName) {\n this.fileName = fileName;\n }", "public void setFileName(String fileName) {\n ...
[ "0.6475379", "0.6437958", "0.6403888", "0.6403888", "0.6403888", "0.6403888", "0.6403888", "0.63756764", "0.63756764", "0.6353476", "0.6322771", "0.6317287", "0.6315836", "0.6315836", "0.61417043", "0.61386824", "0.6121568", "0.6117894", "0.61163694", "0.6116044", "0.6116044"...
0.6054098
38
Laden des Inhalts des aktuellen XtreemFSVerzeichnisses
private void loadXtreemFSData() { IndexedContainer xtreemFSData = createFields(); // Die IDs werden zum Verschieben von Dateien gebraucht. VaadinXtreemFSSession.setDirectoryIds(new ArrayList<Object>()); if (getVolume() != null) { try { int i = 1; // Alle Elemente einfügen ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void getListOfAllFileVarianta2() {\n\t\tPath pathToSrc = Paths.get(\"D:\\\\TorrentsMd\");\r\n\t\ttry {\r\n\t\t\t//cu method references\r\n//\t\t\tFiles.walk(pathToSrc)\r\n//\t\t\t\t.map(Path::toFile)\r\n//\t\t\t\t.filter(File::isFile)\r\n//\t\t\t\t.map(File::getName)\r\n//\t\t\t\t.sorted()\r\n//\t\t\...
[ "0.58303034", "0.55938745", "0.5531319", "0.5453461", "0.54481965", "0.5381681", "0.53646845", "0.5325024", "0.529618", "0.5257775", "0.525299", "0.5227034", "0.5223768", "0.5214715", "0.5211143", "0.5207958", "0.5181605", "0.5177682", "0.51712126", "0.51587635", "0.5155693",...
0.6004824
0
Hochladen einer Datei nach XtreemFS
private OutputStream uploadFile(String filename) { try { // Output stream to write to File file = getFile(getCurrentDir() + "/" + filename, getCredentials()); return new BufferedFileOutputStream(file); } catch (IOException e) { showNotification("Error", e.toString(), Notification.TYPE_E...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "org.apache.xmlbeans.XmlString xgetFoundingDate();", "org.apache.xmlbeans.XmlDateTime xgetLastrun();", "public static String getUltimaFiesta() {\n Map<String, DiaFiestaMeta> diasFiestas;\n Iterator<String> itDiasFiestasMeta;\n SimpleDateFormat formatoDelTexto ;\n Map<String, Date> ma...
[ "0.6254189", "0.60019267", "0.5914707", "0.5804776", "0.5655562", "0.56402725", "0.5614629", "0.5558512", "0.5525723", "0.5489473", "0.5487319", "0.5484395", "0.5477006", "0.54742795", "0.5468655", "0.5468104", "0.5467255", "0.5465597", "0.5457741", "0.5452305", "0.5450533", ...
0.0
-1
Aktion nach Upload. Die Datei wird auf ReadOnly gesetzt und die Tabelle wird aktuallisiert.
private void uploadFileFinished(SucceededEvent event) { try { // String fileName = event.getFilename(); // File f = getFile(fileName); // f.setReadOnly(READONLY_REPLICATION_MODE); } catch (Exception e) { Logging.logMessage(Logging.LEVEL_WARN, this,"%s, %s, %s", "Readonly E...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public UploadedFile() {\n date = new Date();\n }", "private void setReadOnlyMode() {\n// mFileTitleEditText.setEnabled(false);\n// mDocContentEditText.setEnabled(false);\n mOpenFileId = null;\n }", "@Override\r\n\tpublic boolean isSaveAsAllowed() {\r\n\t\treturn false;\r\n\t}"...
[ "0.60839695", "0.5914487", "0.591219", "0.58473253", "0.58320796", "0.57066673", "0.57033956", "0.5665612", "0.5643011", "0.5612388", "0.55796975", "0.5565551", "0.5565551", "0.5544405", "0.5504947", "0.54729044", "0.547184", "0.54350996", "0.5352334", "0.53431964", "0.534252...
0.67092943
0
Herunterladen eines Verzeichnisses als ZIPDatei
private void downloadZippedDirectory(String selectedFolder) { if (selectedFolder != null) { File file = getFile(selectedFolder); StreamSource zipSource = getZipSource(file); getMainWindow().open(new VaadinFileDownloadResource(zipSource, selectedFolder+".zip", 0, getMainWindow().getApplication()), ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract String getUpDateZip();", "@AutoEscape\n\tpublic String getZip();", "public String getZip() {\r\n return zip;\r\n }", "public String getZip() {\r\n return zip;\r\n }", "@Override\n\tpublic String getZip() {\n\t\treturn this.zip;\n\t}", "public String getZip() {\r\n\t...
[ "0.70088637", "0.64633083", "0.6314968", "0.6314968", "0.6273657", "0.6237212", "0.6019596", "0.5861185", "0.58517057", "0.58334637", "0.58103484", "0.5799573", "0.5797663", "0.57915896", "0.5779746", "0.5776924", "0.5766762", "0.5754575", "0.5752473", "0.5682919", "0.5645132...
0.0
-1
Dialog zum Anlegen eines Verzeichnisses und Operationen in XtreemFS.
private void createNewDirectory() { getMainWindow().addWindow( new TextInputDialog( "Create Directory", "Create Directory", "New Folder", new TextInputDialog.Callback() { public void onDialogResult(boolean happy, String newDirectory) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void showFileManagerDialog();", "private void showVMDialog(int msgStatus) {\n switch (msgStatus) {\n case MSG_VM_EXCEPTION:\n showDialog(VM_RESPONSE_ERROR);\n break;\n case MSG_VM_NOCHANGE:\n showDialog(VM_NOCHANGE_ERROR);\n ...
[ "0.6582604", "0.5878382", "0.57809615", "0.5772198", "0.569543", "0.5677036", "0.5634019", "0.55736154", "0.55396956", "0.55237484", "0.5483734", "0.54207414", "0.5392133", "0.5380858", "0.53657687", "0.5332252", "0.5305", "0.53012305", "0.5284085", "0.52721685", "0.5269401",...
0.0
-1
Creacion de una entrada de Points Translation
public static boolean createPointForEvent(int eventType, int points) { PointsTranslation pointsTranslation = new PointsTranslation(); pointsTranslation.eventTypeId = eventType; pointsTranslation.points = points; pointsTranslation.createdAt = GlobalDate.getCurrentDate(); pointsTra...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void CreaCoordinate(){\n \n this.punto = new Point(80, 80);\n \n }", "private void transformPoints() {\r\n\r\n\t\t// angle between x-axis and the line between start and goal\r\n//\t\tthis.angle = inverse_tan (slope)\r\n\t\tthis.angle = (int) Math.toDegrees(Math.atan2(goal.getY()-r...
[ "0.6462968", "0.6332243", "0.6309131", "0.6165951", "0.6132393", "0.61318505", "0.610002", "0.5967395", "0.59541655", "0.593472", "0.59307015", "0.5819674", "0.5798564", "0.5795094", "0.57531804", "0.57340384", "0.5681981", "0.5669415", "0.5656776", "0.56555957", "0.5654861",...
0.6132584
4
Edicion de una entrada de Points Translation
public static boolean editPointForEvent(ObjectId pointsTranslationId, int points) { Model.pointsTranslation().update(pointsTranslationId).with("{$set: {points: #, lastModified: #}}", points, GlobalDate.getCurrentDate()); OpsLog.onChange(OpsLog.ActingOn.POINTS_TRANSLATION, ImmutableMap.of( ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void sauvegarderPointPartie (){\n\t\t\n\t\tint menage = (Integer) pointPartieEnCours.get(THEMES.MENAGE);\n\t\tint maths = (Integer) pointPartieEnCours.get(THEMES.MATHS);\n\t\tint francais = (Integer) pointPartieEnCours.get(THEMES.FRANCAIS);\n\t\t\n\t\tmenage += (Integer) level.get(THEMES.MENAGE);\n\t\tmath...
[ "0.6351686", "0.6309013", "0.62257403", "0.6054044", "0.6012565", "0.59984237", "0.59927607", "0.59630007", "0.59552574", "0.5913813", "0.58059084", "0.5793192", "0.5720852", "0.5704597", "0.5635449", "0.56276464", "0.5626223", "0.5575867", "0.5556145", "0.5538216", "0.553506...
0.5870891
10
========================================================================= GETTERS & SETTERS =========================================================================
public int getHttpCode() { return httpCode; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void get() {\n\t\t\r\n\t}", "String setValue();", "@Override\n public void get() {}", "protected abstract Set method_1559();", "public int\t\tget() { return value; }", "public T get() {\n return value;\n }", "public T get() {\n return value;\n }", "public T get() ...
[ "0.657703", "0.6449824", "0.64442474", "0.64404577", "0.62172633", "0.6183475", "0.6168504", "0.6168504", "0.61240995", "0.60714406", "0.60444874", "0.59874547", "0.5973332", "0.59726346", "0.5954604", "0.5950236", "0.59339654", "0.59257454", "0.587815", "0.5858975", "0.58482...
0.0
-1
Since motors are initialized in this class, they can be cleaned and closed in this class when exiting the arbitrator, clean and close are made for the CloseAndExit class
public static void cleanMotor(RMIRegulatedMotor motor) throws RemoteException { System.out.println("Cleanup: Closing Motors"); closeMotor(motor); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void clearMotors() {\n\t\tmotors.clear();\n\t}", "public void closeArms() {\n\t\tleftArmMotor.setSpeed(100);\n\t\trightArmMotor.setSpeed(100);\n\t\t\n\t\trightArmMotor.rotate(80, true);\n\t\tleftArmMotor.rotate(80, false);\n\t}", "public void stopMotors() {\n\t\tRobotMap.frontLeft.set(0);\n\t\tRobotMap....
[ "0.6207299", "0.6190132", "0.61417246", "0.6063176", "0.6020285", "0.59731", "0.59531283", "0.5898723", "0.58918154", "0.58884513", "0.5873103", "0.5854486", "0.58499485", "0.5847334", "0.5846992", "0.58205867", "0.58139694", "0.57968825", "0.5795501", "0.5781672", "0.5771757...
0.5691735
28
Log.i("MV", "_openDevice_"); loger.addRecordToLog("_openDevice_ inicio");
public void openDevice() { new Thread() { @Override public void run() { //loger.addRecordToLog("_openDevice_ inicio run"); //openDeviceEnEjecucion = Boolean.TRUE; showProgressDialog(getString(R.string.mns_titulo), getString(R.string.pre...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void logDeviceInfo() {\n logDeviceLevel();\n }", "private void logDeviceInfo() {\n logDeviceLevel();\n }", "public void enableSDKLog() {\r\n\t\tString path = null;\r\n\t\tpath = Environment.getExternalStorageDirectory().toString() + \"/IcatchWifiCamera_SDK_Log\";\r\n\t\tEnvironment....
[ "0.7106142", "0.7106142", "0.6576046", "0.6413774", "0.6413774", "0.63041055", "0.6213357", "0.61986154", "0.6060427", "0.6019595", "0.60006183", "0.5991407", "0.59619445", "0.5956516", "0.5948287", "0.5942062", "0.59363383", "0.5935428", "0.59168905", "0.5915263", "0.5880335...
0.5351569
88
loger.addRecordToLog("_openDevice_ inicio run"); openDeviceEnEjecucion = Boolean.TRUE;
@Override public void run() { showProgressDialog(getString(R.string.mns_titulo), getString(R.string.preparing_device)); int error; if ((error = mHuellaScanner.powerOn()) != FingerprintScanner.RESULT_OK) { //showErrorDialog(getString(R.str...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void logDeviceInfo() {\n logDeviceLevel();\n }", "private void logDeviceInfo() {\n logDeviceLevel();\n }", "private void startRecording() {\n\n }", "public void enableSDKLog() {\r\n\t\tString path = null;\r\n\t\tpath = Environment.getExternalStorageDirectory().toString() + \"/I...
[ "0.6395703", "0.6395703", "0.61891866", "0.61018455", "0.5851056", "0.581408", "0.5788961", "0.5767729", "0.5767729", "0.5764752", "0.57545567", "0.5687258", "0.5675918", "0.5672429", "0.5659051", "0.5652185", "0.564531", "0.56403214", "0.5626824", "0.56042284", "0.55666035",...
0.0
-1
loger.addRecordToLog("updateFingerprintImage : " + fi);
private void updateFingerprintImage(FingerprintImage fi) { try { byte[] fpBmp = null; Bitmap bitmap; if (fi == null || (fpBmp = fi.convert2Bmp()) == null || (bitmap = BitmapFactory.decodeByteArray(fpBmp, 0, fpBmp.length)) == null) { //loger.addRecordToLog("up...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void onFingerprintEntered();", "public void recordFingerprint(MavenBuild build) throws IOException {\n FingerprintMap map = Hudson.getInstance().getFingerprintMap();\n map.getOrCreate(build,fileName,md5sum);\n }", "void storeLogMessage(String log)\n {\n logImage += log + \"\\n\";\n ...
[ "0.6105804", "0.60916096", "0.60759026", "0.58872676", "0.5879937", "0.5730423", "0.56231654", "0.55838805", "0.5515361", "0.54955214", "0.54315513", "0.54265094", "0.5420566", "0.54196346", "0.5396053", "0.5367548", "0.5349293", "0.53228146", "0.53106827", "0.5310464", "0.53...
0.64986277
0
loger.addRecordToLog("UnicaCompraActivity.actualizarDatosComprador : " + idUsuarioAratek); logger.addRecordToLog("idUsuarioAratek : " + idUsuarioAratek); logger.addRecordToLog("valorCompra : " + this.mValorCompra.getText().toString());
public void actualizarDatosComprador(Integer idUsuarioAratek) { ServicioBDD servicioBDD = new ServicioBDD(this); servicioBDD.abrirBD(); EmpleadoVO empleadoVO = servicioBDD.obtenerNombreUsuario( idUsuarioAratek.toString() ); servicioBDD.cerrarBD(); if( empleadoVO==null ){ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void saveLog() {\n TextInputLayout dateInput = (TextInputLayout) findViewById(R.id.input_date);\n TextInputLayout timeInput = (TextInputLayout) findViewById(R.id.input_time);\n TextInputLayout fromSiteInput = (TextInputLayout) findViewById(R.id.input_from_site);\n TextInputLayou...
[ "0.63487554", "0.6106972", "0.607603", "0.600398", "0.59983855", "0.59501344", "0.5940629", "0.5834063", "0.5822977", "0.58095396", "0.579281", "0.574699", "0.5734002", "0.5717644", "0.5698651", "0.5673293", "0.567037", "0.56536525", "0.5641747", "0.5632097", "0.5629877", "...
0.58190936
9
Intent intent = new Intent(context, MenuActivity.class); startActivity(intent); finish();
public void onClick(DialogInterface dialog, int id) { return; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void iniciaTelaMenu(View view){\n Intent tela = new Intent(getApplicationContext(), MainActivity.class);\n startActivity(tela);\n finish();\n }", "private void backToMenu()\n {\n Intent i = new Intent(this, HomeScreen.class);\n startActivity(i);\n }", "@Overri...
[ "0.7934722", "0.7560077", "0.75060683", "0.7498109", "0.7447177", "0.7409902", "0.73993444", "0.738012", "0.7327465", "0.7312754", "0.7311021", "0.7296439", "0.72918594", "0.72895426", "0.72842866", "0.72823554", "0.7267848", "0.725806", "0.72440773", "0.7216965", "0.71663207...
0.0
-1
Students' answers to the questions
public static void main(String[] args) { char[][] answers = { {'A', 'B', 'A', 'C', 'C', 'D', 'E', 'E', 'A', 'D'}, {'D', 'B', 'A', 'B', 'C', 'A', 'E', 'E', 'A', 'D'}, {'E', 'D', 'D', 'A', 'C', 'B', 'E', 'E', 'A', 'D'}, {'C', 'B', 'A', 'E', 'D', 'C',...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ArrayList<Integer> getStudentAnswer() {\r\n return this.studentAnswer;\r\n }", "public ArrayList<StudentAnswer> getAnswers() {\n TeacherDBCommands tdbc = new TeacherDBCommands(ctx);\n QuestionDBCommands qdbc = new QuestionDBCommands(ctx);\n\n ArrayList<StudentAnswer> answers...
[ "0.6820319", "0.67668843", "0.66955215", "0.66727054", "0.65507185", "0.6538062", "0.6512828", "0.6465021", "0.63881063", "0.6353131", "0.6291679", "0.6291255", "0.6282826", "0.62781584", "0.62650937", "0.6258798", "0.624194", "0.624032", "0.6223562", "0.6206105", "0.61925775...
0.57468885
82
returns total number of words in the text file
public int getTotalNumberOfWords(File file) throws Exception{ BufferedReader br = new BufferedReader(new FileReader(file)); String line; int count = 0; while((line=br.readLine())!=null){ String[] tokens = line.split(" "); count+=tokens.length; } br.close(); return count; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int totalWord(File file) throws FileNotFoundException {\r\n Scanner scan = new Scanner(file); // scanner for scanning the file\r\n int count = 0;\r\n while (scan.hasNext()) // scan until end\r\n {\r\n String word = scan.next();\r\n if (isWord(word...
[ "0.8033092", "0.7967324", "0.7609377", "0.75623155", "0.7556632", "0.7553493", "0.72258484", "0.7218837", "0.71799976", "0.7152409", "0.7135665", "0.69522667", "0.6861195", "0.6840112", "0.6748651", "0.67246985", "0.6635413", "0.6601774", "0.65876496", "0.6577427", "0.6563077...
0.81921834
0
returns total unique words in a file
public int getTotalUniqueWords(File file) throws Exception{ BufferedReader br = new BufferedReader(new FileReader(file)); String line; Set<String> set = new HashSet<>(); while((line=br.readLine())!=null){ String[] tokens = line.split(" "); for(String token : tokens){ if(!set.contains(token)){ set...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int distinctCount(){\r\n int distinct = 0;\r\n //Loop through each key in words\r\n for(String key: words.keySet()){\r\n //If they appear in the file\r\n if(words.get(key) != 0){\r\n //count it\r\n distinct+...
[ "0.831895", "0.7363984", "0.6811787", "0.68084836", "0.676439", "0.6759347", "0.66774404", "0.65923846", "0.6485155", "0.64306337", "0.6404873", "0.6304407", "0.62841874", "0.6283787", "0.6271617", "0.6244139", "0.61893725", "0.6173178", "0.6130164", "0.61222124", "0.61048126...
0.82803637
1
returns top 20 frequent words with frequencies
public Object[][] get20MostFrequentWords(File file) throws Exception{ Object[][] ans = new Object[20][2]; HashMap<String,Integer> map = new HashMap<>(); PriorityQueue<String> queue = new PriorityQueue<>(new Comparator<String>(){ public int compare(String s1,String s2){ return map.get(s1) - map.get(s2); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String[] topHotWords( int count ){\r\n //If the number put in the arguments is greater than the number of distinct hotwords\r\n //in the document, limit it to distinctCount\r\n if (count > distinctCount()){\r\n count = distinctCount();\r\n }\r\n ...
[ "0.75917596", "0.75375485", "0.712213", "0.7019639", "0.6941886", "0.67856395", "0.6749034", "0.6722514", "0.6663473", "0.65435785", "0.6540387", "0.64018875", "0.6352426", "0.63397753", "0.633525", "0.6330475", "0.629919", "0.6239115", "0.62028426", "0.6168569", "0.6144345",...
0.71258736
2
return top 20 most interesting frequent words
public Object[][] get20MostInterestingFrequentWords(File file) throws Exception{ Object[][] ans = new Object[20][2]; HashMap<String,Integer> map = new HashMap<>(); PriorityQueue<String> queue = new PriorityQueue<>(new Comparator<String>(){ public int compare(String s1,String s2){ return map.get(s1) - map.g...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void printMostUsedWords(){\n\t\tMap<String, Integer> words = getWords();\n\t\t\n\t\tString max_count_string[] = new String[3];\n\t\tint max_counts[] = new int[3];\n\t\t\n\t\tfor(String str : words.keySet()){\n\t\t\tint count = words.get(str);\n\t\t\tint index = getMinIndex(max_counts);\n\t\t\t\n\t\t...
[ "0.7681558", "0.7669305", "0.72500056", "0.7207187", "0.68462205", "0.68076855", "0.67381346", "0.65925705", "0.65176296", "0.65055", "0.64617735", "0.6450031", "0.6410723", "0.631178", "0.6294867", "0.6276551", "0.62327695", "0.6225723", "0.62138516", "0.6204233", "0.6155973...
0.7367295
2
returns least 20 frequent words
public Object[][] get20LeastFrequentWords(File file) throws Exception{ Object[][] ans = new Object[20][2]; HashMap<String,Integer> map = new HashMap<>(); PriorityQueue<String> queue = new PriorityQueue<>(new Comparator<String>(){ public int compare(String s1,String s2){ return -(map.get(s1) - map.get(s2));...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String[] topHotWords( int count ){\r\n //If the number put in the arguments is greater than the number of distinct hotwords\r\n //in the document, limit it to distinctCount\r\n if (count > distinctCount()){\r\n count = distinctCount();\r\n }\r\n ...
[ "0.7283334", "0.70374274", "0.6994593", "0.6827094", "0.6814877", "0.6744936", "0.63254046", "0.63041264", "0.6289487", "0.62664455", "0.6239517", "0.62134874", "0.62113047", "0.60922486", "0.6072606", "0.602451", "0.60242015", "0.6014236", "0.6009533", "0.6009434", "0.598988...
0.69671214
3
method to populate most commonly used words in a set
public Set<String> getStopWords() throws Exception{ File file = new File("stopWords/stopwords.txt"); HashSet<String> stopwords = new HashSet<>(); BufferedReader br = new BufferedReader(new FileReader(file)); String line; while((line=br.readLine())!=null){ String[] tokens = line.split(" "); for(String token : t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void fillSet() {\r\n\t\tString regex = \"\\\\p{L}+\";\r\n\t\tMatcher matcher = Pattern.compile(regex).matcher(body);\r\n\t\twhile (matcher.find()) {\r\n\t\t\tif (!matcher.group().isEmpty()) {\r\n\t\t\t\twords.add(matcher.group());\r\n\t\t\t}\r\n\t\t}\r\n\t}", "void addWordToCandidatesSet(String word) {\n...
[ "0.68167204", "0.62357724", "0.62323505", "0.6225075", "0.62243724", "0.6144336", "0.6111064", "0.6078224", "0.60661405", "0.60139513", "0.5966626", "0.5946943", "0.59342426", "0.5914515", "0.5888118", "0.58874506", "0.5858773", "0.582985", "0.5804909", "0.5768792", "0.576060...
0.0
-1
page = 1; xiala = 0;
@Override public void onPullDownToRefresh(PullToRefreshBase<ListView> refreshView) { new DataTask().execute(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setThisManual()\n { \n actual = 1;\n \n nextPage = new Label();\n addObject(nextPage, 1132, 2001);\n \n prePage = new Label();\n addObject(prePage, 122, 2007);\n \n prePage.setImage(new GreenfootImage(\"\", 0, null, null));\n n...
[ "0.59788316", "0.5906136", "0.57717127", "0.5708561", "0.5690006", "0.56684214", "0.5652142", "0.5639709", "0.55620396", "0.5545064", "0.55211425", "0.55045295", "0.5500875", "0.545073", "0.5405951", "0.5401357", "0.5397184", "0.5385495", "0.535011", "0.53376234", "0.5335792"...
0.0
-1
page++; xiala = 1;
@Override public void onPullUpToRefresh(PullToRefreshBase<ListView> refreshView) { new DataTask().execute(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "manExp15(){ \r\n\r\n\tcount++; \r\n\r\n\tSystem.out.println(count); \r\n\r\n\t}", "public void iniciar(){\nSystem.out.println(\"El primer contador comenzara en el número 0\");\ncontador=0;\nSystem.out.println(\"El segundo contador comenzara en el número 100\");\ncontador2=100;}", "private static void setCou...
[ "0.6377674", "0.62777615", "0.60320926", "0.60162026", "0.5958705", "0.59188426", "0.5891989", "0.58839864", "0.5875603", "0.5863468", "0.583328", "0.5823433", "0.5820795", "0.58064747", "0.5778922", "0.5767247", "0.57555014", "0.5752914", "0.5752914", "0.5745798", "0.5739721...
0.0
-1
Simulates a background job.
@Override protected String[] doInBackground(Void... params) { try { Thread.sleep(2000); } catch (InterruptedException e) { } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void scheduleJob() {\n\n }", "private void backgroundExecution() {\n // This moves the time consuming operation to a child thread.\n Thread thread=new Thread(null, doBackgroundThreadProcessing, \"Background\");\n thread.start();\n }", "public void backgroundProcess();", "vo...
[ "0.65596265", "0.63640285", "0.6346608", "0.625504", "0.6223231", "0.6136318", "0.6134095", "0.6056807", "0.59102213", "0.5873411", "0.58626723", "0.5843962", "0.5830519", "0.5801023", "0.57894534", "0.5788195", "0.5772872", "0.5687358", "0.56393415", "0.5622726", "0.5616332"...
0.0
-1
Should not render variable inside section.
@Test void shouldNotRenderVariableInside() throws Exception { MatcherAssert.assertThat( new Variable( new SquareIndicate() ).render( "[[#2]][[1]][[/2]][[^4]][[5]][[/4]] [[#7]][[6]][[>9]][[/7]]", new MapOf<>( new MapE...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n void shouldNotRenderVariableInsideNested() throws Exception {\n MatcherAssert.assertThat(\n new Variable(\n new SquareIndicate()\n ).render(\n \"[[#2]][[11]] [[^4]][[15]][[/4]] [[/2]]\",\n new MapOf<CharSequence, Object>(\n ...
[ "0.6481793", "0.59695286", "0.53771186", "0.5152658", "0.5134701", "0.5094508", "0.5072066", "0.5043655", "0.50329405", "0.50047565", "0.50047565", "0.50047565", "0.50047565", "0.49986696", "0.499085", "0.4981514", "0.49084884", "0.49019873", "0.48997435", "0.48867267", "0.48...
0.6515125
0
Should not render variable inside nested section.
@Test void shouldNotRenderVariableInsideNested() throws Exception { MatcherAssert.assertThat( new Variable( new SquareIndicate() ).render( "[[#2]][[11]] [[^4]][[15]][[/4]] [[/2]]", new MapOf<CharSequence, Object>( ne...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n void shouldNotRenderVariableInside() throws Exception {\n MatcherAssert.assertThat(\n new Variable(\n new SquareIndicate()\n ).render(\n \"[[#2]][[1]][[/2]][[^4]][[5]][[/4]] [[#7]][[6]][[>9]][[/7]]\",\n new MapOf<>(\n ...
[ "0.6631525", "0.53359026", "0.52622694", "0.51503515", "0.5109612", "0.5086291", "0.50853825", "0.5055587", "0.50047237", "0.50029105", "0.50017405", "0.4988266", "0.49804866", "0.4974046", "0.49711975", "0.4967463", "0.49622482", "0.49622482", "0.49601835", "0.49601835", "0....
0.7229694
0
Should render valid tags.
@Test void shouldRenderValidTags() throws Exception { MatcherAssert.assertThat( new Variable( new SquareIndicate() ).render( "[[ aA0._ ]] ", new MapOf<>("aA0._", "XX") ), Matchers.is("XX ") ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tpublic void testTournamentTagsFormat() {\r\n\t\tassertTrue(cl.checkTournamentTagsFormat(tags));\r\n\t\tassertFalse(cl.checkTournamentTagsFormat(tags2));\r\n\t}", "private boolean checkTagPattern(TextInputLayout tags) {\n if (!Objects.requireNonNull(tags.getEditText()).getText().toString().match...
[ "0.61598", "0.6122031", "0.59659207", "0.58742535", "0.5865626", "0.58405626", "0.581156", "0.57782435", "0.57082266", "0.55355906", "0.55174863", "0.54802", "0.5478917", "0.54682934", "0.54582626", "0.54575825", "0.5378124", "0.53586966", "0.53452885", "0.5333904", "0.530027...
0.7103792
0
/http .authorizeRequests() .antMatchers("/CascadingStyleSheets/", "/js/", "/register", "/loginpage").permitAll() .antMatchers("/productlist").hasAnyAuthority("admin","user") .anyRequest().authenticated() .and() .formLogin() .loginPage("/loginpage") .permitAll() .and() .logout() .permitAll();
@Override protected void configure(HttpSecurity http) throws Exception { http.authorizeRequests().antMatchers("/login","/register","/addtocart","/view","/","/removecart","/cart").permitAll(). antMatchers("/checkout").hasAnyAuthority("user"). antMatchers("/product").hasAnyAuth...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void configure(HttpSecurity http) throws Exception {\n\n\n http\n .csrf().disable()\n .authorizeRequests()\n .antMatchers(\"/admin/**\").hasRole(\"ADMIN\")\n .antMatchers(\"/anonymous*\").anonymous()\n .antMa...
[ "0.80845", "0.80526006", "0.76551986", "0.76231056", "0.759509", "0.742309", "0.73179084", "0.7288372", "0.72838706", "0.71776384", "0.70928216", "0.70344007", "0.69964015", "0.6980794", "0.69712406", "0.6941467", "0.6898145", "0.6896896", "0.687533", "0.68208617", "0.6819552...
0.78940505
2
Displays the details of the order
private String getOrderDetails(Order order) { String message = getString(R.string.total) + "\n" + getString(R.string.name) + ": " + order.getCustomerName() + "\n" + getString(R.string.add_cream) + "? " + String.valueOf(order.isHasWhippedCream()) + "\n" + getString(R.string.add_ch...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void viewOrderDetails(){\n\t\tlibManhattanCommonFunctions.clickAnyElement(getPageElement(\"StatisticsTab\"), \"StatisticsTab\");\n\t\tlibManhattanCommonFunctions.clickAnyElement(getPageElement(\"OrdersTab\"), \"OrdersTab\");\n\t\tlibManhattanCommonFunctions.clickAnyElement(getPageElement(\"BtnOrderDetails\"...
[ "0.78774416", "0.75746065", "0.75376064", "0.730151", "0.71241665", "0.6980099", "0.6931306", "0.67961305", "0.67526346", "0.6684945", "0.6628145", "0.66272306", "0.65555364", "0.6470067", "0.64533645", "0.64427257", "0.643451", "0.6367323", "0.63602763", "0.63574994", "0.635...
0.67453283
9
Opens a post app with the filled fields
public void sendOrder(View view) { Intent gIntent = new Intent(); gIntent.setAction(Intent.ACTION_SENDTO); gIntent.setData(Uri.parse("mailto:")); gIntent.putExtra(Intent.EXTRA_SUBJECT, "StarBox order for " + order.getCustomerName()); gIntent.putExtra(Intent.EXTRA_TEXT, getOrderDe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void newPost() {\n\t\tIntent intent = new Intent(this, EditTopicActivity.class);\n\t\tintent.putExtra(EditPostActivity.IS_NEW, true);\n\n\t\tstartActivity(intent);\n\t}", "public void Post(View V) {\n Intent intent = new Intent(getApplicationContext(), PostActivity.class);\n startActivity...
[ "0.61062324", "0.5934314", "0.5891674", "0.5619966", "0.5610581", "0.5552256", "0.5548374", "0.5482533", "0.54438585", "0.54165125", "0.5392921", "0.5389614", "0.53756446", "0.5332392", "0.5323969", "0.5315167", "0.5310544", "0.5299023", "0.5295557", "0.52899367", "0.52882814...
0.0
-1
Get a connection to our SQLite database.
public static Connection getConnection() throws SQLException { Connection conn = DriverManager.getConnection(DB_URL, DB_USERNAME, DB_PASSWORD); System.out.println("Connection to SQLite has been established."); return conn; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Connection getConnection() {\n try {\n return DriverManager.getConnection(\"jdbc:sqlite:\" + dbName);\n } catch (SQLException e) {\n return null;\n }\n }", "private Connection connect() {\n String url = \"jdbc:sqlite:\" + dbPath + dbName;\n Conne...
[ "0.81897515", "0.79797155", "0.7928559", "0.78769046", "0.7747184", "0.7746095", "0.77130556", "0.76507086", "0.7607046", "0.7602146", "0.75096875", "0.74486107", "0.7438923", "0.74337816", "0.74122643", "0.7373237", "0.7363082", "0.7362976", "0.73074055", "0.7222664", "0.721...
0.77653533
4
TODO: Warning this method won't work in the case the id fields are not set
@Override public boolean equals(Object object) { if (!(object instanceof Tk25)) { return false; } Tk25 other = (Tk25) object; if ((this.tknummer == null && other.tknummer != null) || (this.tknummer != null && !this.tknummer.equals( other.tknummer))) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setId(Integer id) { this.id = id; }", "private Integer getId() { return this.id; }", "public void setId(int id){ this.id = id; }", "public void setId(Long id) {this.id = id;}", "public void setId(Long id) {this.id = id;}", "public void setID(String idIn) {this.id = idIn;}", "public void se...
[ "0.6896886", "0.6838461", "0.67056817", "0.66419715", "0.66419715", "0.6592331", "0.6579151", "0.6579151", "0.6574321", "0.6574321", "0.6574321", "0.6574321", "0.6574321", "0.6574321", "0.65624106", "0.65624106", "0.65441847", "0.65243006", "0.65154546", "0.6487427", "0.64778...
0.0
-1
Create a new repository assignment POJO
public RepositoryAssignment() { teamMembers = new ArrayList<String>(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Assignment createAssignment();", "Assignment createAssignment();", "Assign createAssign();", "Policy_Repository createPolicy_Repository();", "TRepo createRepo();", "RepositoryType createRepositoryType();", "SourceBuilder createRepository();", "void setRepository(Repository repository);", "@Test\n ...
[ "0.69625", "0.69625", "0.6712645", "0.6710585", "0.6570327", "0.6266032", "0.6152828", "0.6116344", "0.59691197", "0.5946063", "0.58611465", "0.58383644", "0.5783573", "0.5743921", "0.5689286", "0.5643586", "0.56142044", "0.55845", "0.55817693", "0.5557134", "0.5432064", "0...
0.60157156
8
Return the team name
public String getTeamId() { return teamName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getName() {\r\n\t\treturn \"[\" + teamNo + \"] \" + name;\r\n\t}", "public String getTeamName() {\r\n return teamName;\r\n }", "@Override\n\tpublic String toString() {\n\t\treturn teamName;\n\t}", "public String getProjectTeamName(){\n return \"The name of the project of this r...
[ "0.83718127", "0.8302313", "0.81429857", "0.8040645", "0.79852605", "0.79852605", "0.75481606", "0.75140554", "0.7456863", "0.7452218", "0.73920214", "0.7358873", "0.7357559", "0.73330665", "0.73330665", "0.73205847", "0.7237387", "0.72040814", "0.7172358", "0.7111914", "0.70...
0.7536609
7
Set the team name
public void setTeamId(String teamId) { this.teamName = teamId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTeamName(String name) {\n\t\tteamName = name;\n\t}", "public void setName(String name){\n\t\tthis.tournamentName = name;\n\t}", "public void setTeamName(String teamName) {\r\n this.teamName = teamName;\r\n }", "private void setName(String nameIn){\r\n\t\tplayerName = nameIn;\r\n\t}",...
[ "0.7989557", "0.7855458", "0.77984023", "0.74417883", "0.74411535", "0.7384282", "0.73659635", "0.72651887", "0.7202818", "0.71291745", "0.7066221", "0.7062859", "0.7055154", "0.70395833", "0.7005092", "0.69706476", "0.6954885", "0.6953086", "0.6939963", "0.6939398", "0.69168...
0.0
-1
Return the list of team member IDs
public List<String> getTeamMembers() { return teamMembers; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ArrayList<Integer> getMemberIDs() {\n return memberIDs;\n }", "java.util.List<java.lang.Long> getParticipantsList();", "public java.util.List<java.lang.Long>\n getPlayerIdsList() {\n return playerIds_;\n }", "public java.util.List<java.lang.Long>\n getPlayerIdsList() {\n ...
[ "0.7049354", "0.68085676", "0.6793475", "0.66440564", "0.6454343", "0.64182425", "0.64111435", "0.6283327", "0.6283327", "0.6283327", "0.6283327", "0.6283327", "0.6283327", "0.6248815", "0.6240958", "0.62235606", "0.6222252", "0.6206105", "0.6204812", "0.6192655", "0.61490065...
0.6810143
1
Add a team member ID to the list of team members
public void addTeamMember(String teamMember) { teamMembers.add(teamMember); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void memberAdded(final String id);", "public static void registerMember(int character_id, int team_id) {\n team_members.put(character_id, team_id);\n }", "public void addMember()\r\n\t{\r\n\t\tlistOfMembers.add(new Member(\r\n\t\t\t\tgetUserString(\"Enter Member's First Name\"),\r\n\t\t\t\tgetUserStr...
[ "0.6702218", "0.6687797", "0.6406423", "0.63920933", "0.63432187", "0.6326017", "0.62589073", "0.62038046", "0.6140903", "0.61247", "0.61216545", "0.61207634", "0.61079806", "0.60787046", "0.60687363", "0.6065134", "0.604397", "0.59936875", "0.5944043", "0.59379953", "0.58942...
0.6946473
0
Create the NotificationChannel, but only on API 26+ because the NotificationChannel class is new and not in the support library
private void createNotificationChannel() { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { CharSequence name = getString(R.string.channel_name); String description = getString(R.string.channel_description); int importance = NotificationManager.IMPORTANCE_DEFAULT; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createNotificationChannel(){\n // Create the NotificationChannel, but only on API 26+ because\n // the NotificationChannel class is new and not in the support library\n if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.O){\n Log.v(\"notification_channel \", \"true\");\n ...
[ "0.8664989", "0.8571009", "0.8557506", "0.854956", "0.85185015", "0.85140026", "0.85118574", "0.84991014", "0.8488404", "0.8488404", "0.8481756", "0.8478001", "0.84752333", "0.8468807", "0.8443895", "0.8429045", "0.8416299", "0.8413787", "0.8368849", "0.83556217", "0.834722",...
0.85113966
8
check to see if patient is actually dead
private Date getdDay() { return this.dDay; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isDead();", "@Override\n\tpublic boolean isDead() {\n\t\treturn mProgress>mLife && mLife>=0;\n\t}", "public boolean checkDeath() {\r\n\t\tif (death) {\r\n\t\t\tdeath = false;\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "@Override\n public boolean isDead() ...
[ "0.7031985", "0.6979182", "0.69700575", "0.69627005", "0.68603605", "0.6853731", "0.679652", "0.677824", "0.6720231", "0.67155695", "0.66915345", "0.66728795", "0.6660212", "0.6645349", "0.6600418", "0.65894365", "0.6578813", "0.655393", "0.65452105", "0.6521762", "0.6492679"...
0.0
-1
the last physician in the ArrayList is the current physician make a different class for doctor to add start and stop dates for patients?
private Physician getPhysician() { return this.physician; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addPatient()\n {\n Scanner sc=new Scanner(System.in);\n System.out.println(\"Enter name of patient\");\n String name=sc.nextLine();\n int pos,id;\n\n do\n {\n System.out.println(\"Enter doctor id to assign to\");\n id=sc.nextInt();\n ...
[ "0.52910596", "0.52863514", "0.5134139", "0.51217735", "0.5072127", "0.5060358", "0.50438744", "0.5037297", "0.50358796", "0.5032081", "0.5030144", "0.5007906", "0.49944368", "0.49931052", "0.49738216", "0.4951164", "0.49478477", "0.49456578", "0.4940431", "0.49144638", "0.49...
0.0
-1
if != null, ask for start date of new doctor and calculate stop date of old doctor. Also remove patient from physician active patient list with a stop date
private void setPhysician(Physician physician) { this.physician = physician; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setStudAccPeriod() throws IOException {\n\n Scanner sc = new Scanner(System.in);\n\n String startDateTime,endDateTime=null;\n Calendar startCal = null, endCal = null;\n String[] dateTimeSplit;\n\n do {\n System.out.println(\"\\nPlease enter start date and ...
[ "0.5709972", "0.5408926", "0.5326161", "0.523557", "0.5132673", "0.50694555", "0.5058854", "0.50544226", "0.50320244", "0.5032015", "0.5016871", "0.5008406", "0.49585557", "0.49405926", "0.49319863", "0.49269065", "0.48861864", "0.4877558", "0.48613", "0.48323697", "0.4829244...
0.0
-1
call this from the PatientManager
private void addStudy(Study study) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void showPatients() {\n\t\t\t\n\t}", "public void careForPatient(Patient patient);", "protected void recordPatientVisit() {\r\n\r\n\t\t// obtain unique android id for the device\r\n\t\tString android_device_id = Secure.getString(getApplicationContext().getContentResolver(),\r\n Secure.ANDROID_ID...
[ "0.65992665", "0.6474254", "0.64202815", "0.63381666", "0.62839955", "0.6250932", "0.62239254", "0.6223296", "0.62109435", "0.62109435", "0.6191185", "0.61457235", "0.6142659", "0.61296463", "0.61148643", "0.6113893", "0.6042545", "0.603445", "0.60218227", "0.6017084", "0.601...
0.0
-1
make sure there is a study to remove first in StudyManager call this from the PatientManager
private void removeStudy(int studyID) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void unsetPatient()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(PATIENT$2, 0);\n }\n }", "protected void deleteStudyTool() {\n regularPresenter.selectStudyToolToDeletePrompt();\n String studyToolID = sca...
[ "0.6155786", "0.6151266", "0.6029756", "0.60127765", "0.58688", "0.58666116", "0.58663243", "0.58511406", "0.5843834", "0.57948697", "0.5778949", "0.5760194", "0.57469136", "0.57469136", "0.5722453", "0.56368196", "0.56351", "0.5620889", "0.5604611", "0.5601281", "0.55965996"...
0.74011934
0
TODO Autogenerated method stub
@Override public int signUp(userData user) { String pwd = user.getUser_pwd(); System.out.println(user.getUser_phone()+" get "+ pwd + "key:"+user.getKey()+" phone:"+user.getUser_phone()); pwd = MD5.md5_salt(pwd); System.out.println(user.getUser_phone()+" final: "+ pwd); HashMap<String,String> t = new Has...
{ "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 login(userData user) { String pwd = user.getUser_pwd(); System.out.println(user.getUser_phone()+" get "+ pwd + "key:"+user.getKey()+" phone:"+user.getUser_phone()); pwd = MD5.md5_salt(pwd); System.out.println(user.getUser_phone()+" final: "+ pwd); HashMap<String,String> t = new Hash...
{ "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 forget_pwd(userData user) { try { String pwd = MD5.md5_salt(user.getUser_pwd()); HashMap<String,String> t = new HashMap(); t.put("key", user.getKey()); t.put("value", user.getUser_phone()); String phone = AES.decode(t); System.out.println("修改密码phone:"+phone+"final: "+ pw...
{ "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 String showIdentity(String phone) { user_table t = this.userRespository.findByUserphone(phone); return t.getIdentity(); }
{ "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.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0...
0.0
-1
Processes requests for both HTTP GET and POST methods.
protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html;charset=UTF-8"); response.setCharacterEncoding("UTF-8"); request.setCharacterEncoding("UTF-8"); String nascim...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void doPost(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException {\n final String method = req.getParameter(METHOD);\n if (GET.equals(method)) {\n doGet(req, resp);\n } else {\n resp.setStatus(HttpServletResponse.SC_METHOD_NOT_...
[ "0.7004024", "0.66585696", "0.66031146", "0.6510023", "0.6447109", "0.64421695", "0.64405906", "0.64321136", "0.6428049", "0.6424289", "0.6424289", "0.6419742", "0.6419742", "0.6419742", "0.6418235", "0.64143145", "0.64143145", "0.6400266", "0.63939095", "0.63939095", "0.6392...
0.0
-1
Handles the HTTP GET method.
@Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { //processRequest(request, response); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void doGet( )\n {\n \n }", "@Override\n\tprotected void executeGet(GetRequest request, OperationResponse response) {\n\t}", "@Override\n\tprotected Method getMethod() {\n\t\treturn Method.GET;\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) thro...
[ "0.7589609", "0.71665615", "0.71148175", "0.705623", "0.7030174", "0.70291144", "0.6995984", "0.697576", "0.68883485", "0.6873811", "0.6853569", "0.6843572", "0.6843572", "0.6835363", "0.6835363", "0.6835363", "0.68195957", "0.6817864", "0.6797789", "0.67810035", "0.6761234",...
0.62125194
87
Handles the HTTP POST method.
@Override protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { processRequest(request, response); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void doPost(Request request, Response response) {\n\n\t}", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) {\n }", "public void doPost( )\n {\n \n }", "@Override\n public String getMethod() {\n return \"POST\";\n ...
[ "0.73289514", "0.71383566", "0.7116213", "0.7105215", "0.7100045", "0.70236707", "0.7016248", "0.6964149", "0.6889435", "0.6784954", "0.67733276", "0.67482096", "0.66677034", "0.6558593", "0.65582114", "0.6525548", "0.652552", "0.652552", "0.652552", "0.65229493", "0.6520197"...
0.0
-1
Returns a short description of the servlet.
@Override public String getServletInfo() { return "Short description"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getServletInfo()\n {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short d...
[ "0.8763708", "0.8732414", "0.8732414", "0.8732414", "0.8732414", "0.8732414", "0.8732414", "0.8732414", "0.8732414", "0.8732414", "0.8732414", "0.86993164", "0.86993164", "0.86993164", "0.86993164", "0.86993164", "0.86993164", "0.85319316", "0.85319316", "0.85287464", "0.8528...
0.0
-1
Creates new form ConfEGTaskPanel
public ConfEGTaskPanel() { initComponents(); initListenerButton(); initState(); initApplyCellCheckBox(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void makePanelTask() {\r\n if (panelTask == null) {\r\n panelTask = makePanel(jframe, BorderLayout.CENTER,\r\n \"Task Details\", 180, 50, 200, 25);\r\n\r\n JLabel createLabelName = makeJLabel(\"Name: \", 10, 100, 80, 25);\r\n JLabel createLabelDesc...
[ "0.7525725", "0.68904847", "0.67805356", "0.6475142", "0.64118326", "0.6409885", "0.6392955", "0.63642657", "0.634878", "0.63337207", "0.63266486", "0.62331235", "0.61740613", "0.6152718", "0.61370325", "0.6112055", "0.6091963", "0.6061451", "0.603846", "0.6035744", "0.601957...
0.70091635
1