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
Get whether the session is connected or not.
public boolean isConnected() { return connectionId != GatewayProcess.NO_CONNECTION_ID; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isConnected() {\n return (this.session != null && this.session.isConnected());\n }", "public static boolean isConnected()\r\n\t{\r\n\t\t return Globals.connected ;\r\n\t}", "public boolean isConnected() {\n\t\treturn conn != null;\n\t}", "public boolean isConnected() {\n if (m...
[ "0.8677639", "0.78783596", "0.7872739", "0.78229725", "0.7822865", "0.78194904", "0.78093034", "0.7795745", "0.776317", "0.776317", "0.776317", "0.776317", "0.776317", "0.7761872", "0.7754449", "0.7739927", "0.77165574", "0.77075136", "0.7704421", "0.76973504", "0.7689004", ...
0.76442015
33
Gets whether the session is slow or not. If the session is not currently connected then this method will return true.
public boolean isSlow() { return isSlow; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isHighPerformanceNeeded() { return highPerformanceNeeded; }", "public boolean isNetworkSlow() {\n long nanoTime = System.nanoTime();\n if (nanoTime - this.mLastUpdateTime > 2000000000) {\n this.mIsNetworkSlow = ImageInitBusinss.getInstance() != null && ImageInitBusinss.get...
[ "0.6375545", "0.6344724", "0.61864835", "0.6060473", "0.6052299", "0.59635544", "0.5952106", "0.5952106", "0.5952106", "0.5952106", "0.5952106", "0.5952106", "0.59471065", "0.5883393", "0.5859438", "0.5857664", "0.58187413", "0.58127403", "0.5775565", "0.57337826", "0.5731948...
0.72138196
0
/ renamed from: a
public final void mo77070a(String str, String str2, String str3, View view) { C32569u.m150519b(str, C6969H.m41409d("G6B96C613B135B83AD217804D")); C32569u.m150519b(str2, C6969H.m41409d("G7A88C033BB")); C32569u.m150519b(str3, C6969H.m41409d("G658ADB118A22A7")); C32569u.m150519b(view, C6969H.m41409d("G7F8AD00D")); C30167Za.log(ZaLogEntry.EnumC31331b.Event).mo122570a(new C14699b(str, str2, str3)).mo122569a(view).mo122575a(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.6249669", "0.6242452", "0.61399835", "0.6117525", "0.61137056", "0.6089649", "0.6046804", "0.6024678", "0.6020427", "0.5975322", "0.59474325", "0.5912173", "0.5883731", "0.58788097", "0.58703065", "0.58670723", "0.5864566", "0.58566767", "0.5830755", "0.58286554", "0.58273...
0.0
-1
/ renamed from: a
public final void mo77069a(String str) { C32569u.m150519b(str, C6969H.m41409d("G658ADB118A22A7")); C30167Za.log(ZaLogEntry.EnumC31331b.CardShow).mo122570a(new C14698a(str)).mo122575a(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
/ArrayList cores = new ArrayList(); cores.add("Vermelho"); cores.add("Azul"); cores.add("Verde");
@FXML public void initialize() { cbCores.getItems().add("Azul"); cbCores.getItems().add("Vermelho"); cbCores.getItems().add("Verde"); cbCores1.getItems().add("Azul"); cbCores1.getItems().add("Vermelho"); cbCores1.getItems().add("Verde"); //cbCores.setItems(FXCollections.observableArrayList(cbCores)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ArrayList<String> listarProgramas();", "public static void main(String[] args) {\n List<String> res = lcs(\"LCLC\",\"CLCL\");\r\n for(String s:res){\r\n \t System.out.print(s +\",\");\r\n }\r\n\t}", "public static void main(String[] args) {\n\r\n\t\tArrayList<String> l=new ArrayList<>...
[ "0.5495486", "0.54661685", "0.537602", "0.5356463", "0.52427924", "0.5224411", "0.52210516", "0.5220104", "0.52168953", "0.5181123", "0.5148032", "0.51256776", "0.51186913", "0.5115936", "0.5100612", "0.50868106", "0.50826174", "0.5071229", "0.50550187", "0.5021227", "0.50149...
0.0
-1
/ public ElasticSearchDictator createSearchDictator(AggregateRequestDto dto, String tenant) throws Exception ; public ElasticSearchDictator createSearchDictator(AggregateRequestDto dto, String indexName, String documentType, String filterDateField) throws Exception ;
public ElasticSearchDictator createSearchDictatorV2(AggregateRequestDto dto, String indexName, String documentType, String filterDateField);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void factory(Dictionary dictionary, Suggester suggester, IndexFacade aprioriIndex, String aprioriIndexField, Analyzer aprioriAnalyzer, IndexWriter.MaxFieldLength mfl) throws IOException, QueryException;", "public static Map<String, Object> getDocumentMapping(String indexPrefix, String indexPostfi...
[ "0.56579524", "0.51336765", "0.4789629", "0.47443652", "0.47167933", "0.47076207", "0.46923736", "0.46709412", "0.4648345", "0.46293518", "0.46012333", "0.4594815", "0.45815456", "0.45794192", "0.45652428", "0.4542786", "0.453294", "0.45201677", "0.44971937", "0.44963014", "0...
0.9065199
0
public ElasticSearchDictator createSearchDictator(String indexName, String documentType, CummulativeDataRequestDto dto, String tenant) throws Exception ;
MultiSearchResponse executeMultiSearchRequest(List<SearchRequest> searchRequestList, Boolean primaryOrNot);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ElasticSearchDictator createSearchDictatorV2(AggregateRequestDto dto, String indexName, String documentType,\n\t\t\tString filterDateField);", "public abstract void factory(Dictionary dictionary, Suggester suggester, IndexFacade aprioriIndex, String aprioriIndexField, Analyzer aprioriAnalyzer, IndexWriter...
[ "0.81231385", "0.5324913", "0.5122484", "0.50509113", "0.49718976", "0.49679413", "0.4826913", "0.48149475", "0.47866356", "0.4728662", "0.47124654", "0.4680633", "0.46245152", "0.46139035", "0.46102902", "0.45850065", "0.45579", "0.4542748", "0.44940677", "0.44860622", "0.44...
0.0
-1
============================== totalList ajax ==========================================
@ResponseBody @RequestMapping(value="/listChoice", method=RequestMethod.POST) public List<AuctionDTO> listChoice(String search, String category, int startNum, int lastNum )throws Exception{ System.out.println(search); System.out.println(category); System.out.println(startNum); System.out.println(lastNum); List<AuctionDTO> l=auctionService.listChoice(search, category, startNum, lastNum); System.out.println(l.size()); return l; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic String doAdapt(List list, int total) {\n\t\tJsonConfig jconfig = new JsonConfig();\n\t\tJSONArray ja = new JSONArray();\n\t\tjconfig.setIgnoreDefaultExcludes(false);\n\t\tjconfig.registerJsonValueProcessor(java.util.Date.class,\n\t\t\t\tnew DateJsonValueProcessor(\"yyyy-MM-dd\"));\n\n\t\t\n\n\t...
[ "0.6202066", "0.6166837", "0.6092051", "0.6003145", "0.59673107", "0.59470016", "0.5854769", "0.5851842", "0.5832377", "0.58156663", "0.57973516", "0.57772666", "0.5746274", "0.57362694", "0.57259744", "0.572169", "0.5705048", "0.5696659", "0.5692963", "0.5692963", "0.5688084...
0.0
-1
Dimension abstractSyntaxSize = abstractSyntaxFigure.getPreferredSize(); abstractSyntaxSize.width = Math.min(abstractSyntaxSize.width, MAX_BOX_WIDTH); Dimension treeConcreteSyntaxSize = treeConcreteSyntaxFigure.getPreferredSize(); treeConcreteSyntaxSize.width = Math.min(treeConcreteSyntaxSize.width, MAX_BOX_WIDTH); Dimension staticSemanticsSize = staticSemanticsFigure.getPreferredSize(); staticSemanticsSize.width = Math.min(staticSemanticsSize.width, MAX_BOX_WIDTH); Dimension checkerSize = checkerFigure.getPreferredSize(); checkerSize.width = Math.min(checkerSize.width, MAX_BOX_WIDTH); Dimension interpreterSize = interpreterFigure.getPreferredSize(); interpreterSize.width = Math.min(interpreterSize.width, MAX_BOX_WIDTH); Dimension compilerSize = compilerFigure.getPreferredSize(); compilerSize.width = Math.min(compilerSize.width, MAX_BOX_WIDTH);
protected LayoutData getLayoutData() { LayoutData data = new LayoutData(); // boxes // int abstractSyntaxY = BOX_SPACING; // int treeConcreteSyntaxY = abstractSyntaxY +abstractSyntaxSize.height + BOX_SPACING; // System.out.println("abstractSyntaxSize.height = "+abstractSyntaxSize.height); // int checkerY = treeConcreteSyntaxY +treeConcreteSyntaxSize.height + BOX_SPACING; // int staticSemanticsX = BOX_SPACING; // int abstractSyntaxX = BOX_SPACING; // int compilerX = BOX_SPACING; // int interpreterX = BOX_SPACING; // data.abstractSyntaxBox = new Rectangle(abstractSyntaxX, abstractSyntaxY, abstractSyntaxSize.width, abstractSyntaxSize.height); // data.treeConcreteSyntaxBox = new Rectangle(0, treeConcreteSyntaxY, treeConcreteSyntaxSize.width, treeConcreteSyntaxSize.height); // data.staticSemanticsBox = new Rectangle(staticSemanticsX, treeConcreteSyntaxY, staticSemanticsSize.width, staticSemanticsSize.height); // data.checkerBox = new Rectangle(staticSemanticsX + 30, checkerY, checkerSize.width, checkerSize.height); // data.compilerBox = new Rectangle(compilerX, treeConcreteSyntaxY, compilerSize.width, compilerSize.height); // data.interpreterBox = new Rectangle(interpreterX, treeConcreteSyntaxY, interpreterSize.width, interpreterSize.height); for(int i = 0; i<taskFigures.size(); i++){ data.boxes.add(new Rectangle(BOX_SPACING, BOX_SPACING + i*(60 + BOX_SPACING) ,taskFigures.get(i).getPreferredSize().width,taskFigures.get(i).getPreferredSize().height)); } return data; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSize(double width, double height){\r\n double topLaneHeight=height/100*myInformation.upperToDownPercent;\r\n double bottomLaneHeight=height-topLaneHeight;\r\n double leftSideWidth=width/100*myInformation.leftToRightPercent;\r\n double rightSideWidth=width-leftSideWidth-1;...
[ "0.55926996", "0.55829656", "0.5561993", "0.5559394", "0.5523282", "0.55046964", "0.548386", "0.5479016", "0.5449269", "0.5447728", "0.54377335", "0.54046655", "0.5383054", "0.53563464", "0.53544", "0.5347118", "0.5342737", "0.53385466", "0.5332949", "0.5320948", "0.5317224",...
0.50174725
61
public Rectangle abstractSyntaxBox; public Rectangle treeConcreteSyntaxBox; public Rectangle staticSemanticsBox; public Rectangle checkerBox; public Rectangle interpreterBox; public Rectangle compilerBox;
public void apply(Point offset) { // abstractSyntaxFigure.setBounds(abstractSyntaxBox.getTranslated(offset)); // treeConcreteSyntaxFigure.setBounds(treeConcreteSyntaxBox.getTranslated(offset)); // staticSemanticsFigure.setBounds(staticSemanticsBox.getTranslated(offset)); // checkerFigure.setBounds(checkerBox.getTranslated(offset)); // interpreterFigure.setBounds(interpreterBox.getTranslated(offset)); // compilerFigure.setBounds(compilerBox.getTranslated(offset)); for(int i = 0; i < taskFigures.size(); i++){ taskFigures.get(i).setBounds(boxes.get(i).getTranslated(offset)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Box(){\n System.out.println(\"constructing box\");\n width = 10;\n height = 10;\n depth = 10;\n}", "void setBox();", "public abstract ModuleJiffyBoxes jiffyBoxes();", "public BoxNode() {\n initProperties();\n }", "public interface IBox {\r\n void process();\r\n void add(IBox box);\r\n void...
[ "0.5912644", "0.58468324", "0.577701", "0.57260156", "0.5659504", "0.5656259", "0.56333536", "0.5612145", "0.5571207", "0.5505296", "0.54796684", "0.5465019", "0.5431701", "0.5428598", "0.5401753", "0.5392079", "0.5372429", "0.536037", "0.53483254", "0.53335536", "0.53309166"...
0.0
-1
bounds.union(abstractSyntaxBox); bounds.union(treeConcreteSyntaxBox); bounds.union(staticSemanticsBox); bounds.union(checkerBox); bounds.union(interpreterBox); bounds.union(compilerBox);
public Dimension getSize() { for(Rectangle rec : boxes){ bounds.union(rec); } return bounds.getSize(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public NodeUnion<? extends DeclaredTypeListNode> getUnionForBounds();", "public void checkBounds(Scope scope) {\n}", "public DeclaredTypeListNode getBounds()throws ClassCastException;", "public void setUnionForBounds(NodeUnion<? extends DeclaredTypeListNode> bounds) throws NullPointerException;", "public B...
[ "0.5921536", "0.5849192", "0.5633087", "0.55260134", "0.5228007", "0.5187048", "0.51862234", "0.51292396", "0.509661", "0.5083071", "0.5083071", "0.5083071", "0.5059632", "0.50481474", "0.50434494", "0.5010894", "0.49024442", "0.48874983", "0.48858535", "0.48858535", "0.48828...
0.0
-1
Default constructor for test class RelationBuilderContainsTest
public RelationBuilderContainsTest() { builder = new BiMap<Integer, Integer>(); builder.put(zero, one); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public RelationPredicate(){}", "private Builder() {\n super(org.apache.gora.cascading.test.storage.TestRow.SCHEMA$);\n }", "public KoleksiRelationExample() {\r\n oredCriteria = new ArrayList<Criteria>();\r\n }", "@Test\n public void constructorStoreSucceed()\n {\n // arrange\n ...
[ "0.65575016", "0.6426779", "0.6390693", "0.6150579", "0.60172224", "0.59504044", "0.59351766", "0.58822864", "0.57924473", "0.57924473", "0.5762381", "0.57348484", "0.56956244", "0.56815666", "0.5661649", "0.5649284", "0.5634269", "0.56283104", "0.56194353", "0.5599703", "0.5...
0.7175267
0
survey date of the inventory data; last time the inventory job has checked the live folder Date of the inventory data. Value is UTC timestamp in ISO 8601 YYYYMMDDThh:mm:ss.sZ
@JsonProperty("surveyDate") public Date getSurveyDate() { return surveyDate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Date getTestListingDateTimeStamp() {\n TimeZone.setDefault(TimeZone.getTimeZone(\"Europe/London\"));\n\n GregorianCalendar calendar = new GregorianCalendar(2010, 0, 1, 17, 0);\n return new Date(calendar.getTimeInMillis());\n }", "private void getDateForAnalysisReport() {\n \tAr...
[ "0.60997975", "0.59706444", "0.57963353", "0.57282805", "0.549821", "0.5492792", "0.5461751", "0.5415844", "0.5391802", "0.53768235", "0.5367549", "0.53650594", "0.5351532", "0.5344295", "0.53139675", "0.53139675", "0.52931726", "0.5284155", "0.5280741", "0.52732354", "0.5270...
0.53541106
12
survey date of the inventory data; last time the inventory job has checked the live folder Date of the inventory data. Value is UTC timestamp in ISO 8601 YYYYMMDDThh:mm:ss.sZ
@JsonProperty("surveyDate") public void setSurveyDate(Date surveyDate) { this.surveyDate = surveyDate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Date getTestListingDateTimeStamp() {\n TimeZone.setDefault(TimeZone.getTimeZone(\"Europe/London\"));\n\n GregorianCalendar calendar = new GregorianCalendar(2010, 0, 1, 17, 0);\n return new Date(calendar.getTimeInMillis());\n }", "private void getDateForAnalysisReport() {\n \tAr...
[ "0.6097181", "0.59694326", "0.5795552", "0.57267594", "0.5496759", "0.5490069", "0.5460737", "0.5414111", "0.5391656", "0.53762096", "0.5366044", "0.536555", "0.53524494", "0.5349078", "0.53410196", "0.5313208", "0.5313208", "0.52918273", "0.52829957", "0.5279541", "0.5271497...
0.0
-1
path absolute path based on live folder of a JobScheduler object.
@JsonProperty("path") public String getPath() { return path; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Path getAppointmentScheduleFilePath();", "public File getJobFilePath() {\n Preferences prefs = Preferences.userNodeForPackage(MainApp.class);\n String filePath = prefs.get(powerdropshipDir, null);\n if (filePath != null) {\n return new File(filePath);\n } else {\n ...
[ "0.634813", "0.6279269", "0.6147922", "0.6040809", "0.5988992", "0.5781191", "0.5781191", "0.5781191", "0.5781191", "0.5781191", "0.5776998", "0.5776998", "0.5776998", "0.5773869", "0.57242286", "0.5721403", "0.56409097", "0.56153065", "0.5602627", "0.557247", "0.55531836", ...
0.0
-1
path absolute path based on live folder of a JobScheduler object.
@JsonProperty("path") public void setPath(String path) { this.path = path; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Path getAppointmentScheduleFilePath();", "public File getJobFilePath() {\n Preferences prefs = Preferences.userNodeForPackage(MainApp.class);\n String filePath = prefs.get(powerdropshipDir, null);\n if (filePath != null) {\n return new File(filePath);\n } else {\n ...
[ "0.6349114", "0.62813634", "0.61489797", "0.60409963", "0.598922", "0.578192", "0.578192", "0.578192", "0.578192", "0.578192", "0.5777166", "0.5777166", "0.5777166", "0.5774265", "0.57247037", "0.57228935", "0.5640372", "0.5615858", "0.56028205", "0.5571774", "0.5553831", "...
0.0
-1
path absolute path based on live folder of a JobScheduler object.
@JsonProperty("processClass") public String getProcessClass() { return processClass; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Path getAppointmentScheduleFilePath();", "public File getJobFilePath() {\n Preferences prefs = Preferences.userNodeForPackage(MainApp.class);\n String filePath = prefs.get(powerdropshipDir, null);\n if (filePath != null) {\n return new File(filePath);\n } else {\n ...
[ "0.6349114", "0.62813634", "0.61489797", "0.60409963", "0.598922", "0.578192", "0.578192", "0.578192", "0.578192", "0.578192", "0.5777166", "0.5777166", "0.5777166", "0.5774265", "0.57247037", "0.57228935", "0.5640372", "0.5615858", "0.56028205", "0.5571774", "0.5553831", "...
0.0
-1
path absolute path based on live folder of a JobScheduler object.
@JsonProperty("processClass") public void setProcessClass(String processClass) { this.processClass = processClass; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Path getAppointmentScheduleFilePath();", "public File getJobFilePath() {\n Preferences prefs = Preferences.userNodeForPackage(MainApp.class);\n String filePath = prefs.get(powerdropshipDir, null);\n if (filePath != null) {\n return new File(filePath);\n } else {\n ...
[ "0.63487995", "0.6280246", "0.61490184", "0.6042232", "0.59909326", "0.5781497", "0.5781497", "0.5781497", "0.5781497", "0.5781497", "0.5777242", "0.5777242", "0.5777242", "0.5773964", "0.57259035", "0.57240355", "0.5641205", "0.56161773", "0.56043464", "0.5573436", "0.555414...
0.0
-1
Only relevant for order jobs when called /jobs/p/... or job/p/...
@JsonProperty("jobChains") public List<String> getJobChains() { return jobChains; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void sortBasedPendingJobs();", "protected void beforeJobExecution() {\n\t}", "public abstract List<C_result> processJob(C_request processing_cmd);", "public GetJobs() {\r\n\t\tsuper();\r\n\t}", "@Override\r\n\tpublic void doBeforeJob() {\n\r\n\t}", "public int getJobId() ;", "@Override\n\tpublic...
[ "0.72813994", "0.65729755", "0.64813393", "0.63725847", "0.63569957", "0.6201579", "0.6143224", "0.59362274", "0.5917904", "0.59019715", "0.5893574", "0.5892373", "0.5876584", "0.58415186", "0.58343786", "0.5812951", "0.5771297", "0.5770664", "0.57691246", "0.5763566", "0.576...
0.0
-1
Only relevant for order jobs when called /jobs/p/... or job/p/...
@JsonProperty("jobChains") public void setJobChains(List<String> jobChains) { this.jobChains = jobChains; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void sortBasedPendingJobs();", "protected void beforeJobExecution() {\n\t}", "public abstract List<C_result> processJob(C_request processing_cmd);", "public GetJobs() {\r\n\t\tsuper();\r\n\t}", "@Override\r\n\tpublic void doBeforeJob() {\n\r\n\t}", "public int getJobId() ;", "@Override\n\tpublic...
[ "0.7280945", "0.65719396", "0.6482772", "0.63717043", "0.6355916", "0.6200917", "0.6142213", "0.59366447", "0.59177667", "0.59022266", "0.5892288", "0.58914137", "0.5875291", "0.5841605", "0.5833369", "0.5811408", "0.577029", "0.5770279", "0.5768596", "0.5762732", "0.5759875"...
0.0
-1
path absolute path based on live folder of a JobScheduler object.
@JsonProperty("documentation") public String getDocumentation() { return documentation; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Path getAppointmentScheduleFilePath();", "public File getJobFilePath() {\n Preferences prefs = Preferences.userNodeForPackage(MainApp.class);\n String filePath = prefs.get(powerdropshipDir, null);\n if (filePath != null) {\n return new File(filePath);\n } else {\n ...
[ "0.6349114", "0.62813634", "0.61489797", "0.60409963", "0.598922", "0.578192", "0.578192", "0.578192", "0.578192", "0.578192", "0.5777166", "0.5777166", "0.5777166", "0.5774265", "0.57247037", "0.57228935", "0.5640372", "0.5615858", "0.56028205", "0.5571774", "0.5553831", "...
0.0
-1
path absolute path based on live folder of a JobScheduler object.
@JsonProperty("documentation") public void setDocumentation(String documentation) { this.documentation = documentation; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Path getAppointmentScheduleFilePath();", "public File getJobFilePath() {\n Preferences prefs = Preferences.userNodeForPackage(MainApp.class);\n String filePath = prefs.get(powerdropshipDir, null);\n if (filePath != null) {\n return new File(filePath);\n } else {\n ...
[ "0.63487995", "0.6280246", "0.61490184", "0.6042232", "0.59909326", "0.5781497", "0.5781497", "0.5781497", "0.5781497", "0.5781497", "0.5777242", "0.5777242", "0.5777242", "0.5773964", "0.57259035", "0.57240355", "0.5641205", "0.56161773", "0.56043464", "0.5573436", "0.555414...
0.0
-1
timestamp Value is UTC timestamp in ISO 8601 YYYYMMDDThh:mm:ss.sZ or empty
@JsonProperty("configurationDate") public Date getConfigurationDate() { return configurationDate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "UtcT time_stamp () throws BaseException;", "@ExecFunction(name = \"utc_timestamp\", argTypes = {}, returnType = \"INT\")\n public static Expression utcTimestamp() {\n return DateTimeLiteral.fromJavaDateType(LocalDateTime.now(ZoneId.of(\"UTC+0\")));\n }", "private static ZonedDateTime toUTCDateTime...
[ "0.6622973", "0.65936214", "0.6524294", "0.6519672", "0.6496213", "0.64276296", "0.64187765", "0.6409378", "0.63715667", "0.6327755", "0.6327755", "0.6297599", "0.6286238", "0.62680215", "0.62680215", "0.62184757", "0.61940384", "0.61584544", "0.6108", "0.6108", "0.61059314",...
0.0
-1
timestamp Value is UTC timestamp in ISO 8601 YYYYMMDDThh:mm:ss.sZ or empty
@JsonProperty("configurationDate") public void setConfigurationDate(Date configurationDate) { this.configurationDate = configurationDate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "UtcT time_stamp () throws BaseException;", "@ExecFunction(name = \"utc_timestamp\", argTypes = {}, returnType = \"INT\")\n public static Expression utcTimestamp() {\n return DateTimeLiteral.fromJavaDateType(LocalDateTime.now(ZoneId.of(\"UTC+0\")));\n }", "private static ZonedDateTime toUTCDateTime...
[ "0.6624212", "0.6593925", "0.652477", "0.6521898", "0.64959556", "0.64292264", "0.64203656", "0.6409464", "0.6373137", "0.6329702", "0.6329702", "0.62975276", "0.6288404", "0.62697685", "0.62697685", "0.62215257", "0.619706", "0.61587834", "0.610923", "0.610923", "0.61075807"...
0.0
-1
This method will return roles of given user.
@Override public List<LdapGranntedAuthority> getUserAuthorities(String userName) { AndFilter groupFilter = new AndFilter(); groupFilter.and(new EqualsFilter("objectclass","groupOfNames")); groupFilter.and(new EqualsFilter("member","uid="+userName+",ou=users,o=packtPublisher")); List<LdapGranntedAuthority> userRoleLst = ldapTemplate.search(LdapQueryBuilder.query().filter(groupFilter),new LdapRoleMapper()); return userRoleLst; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<SysRole> getUserRoles(int userId);", "public List<SecRole> getRolesByUser(SecUser aUser);", "public List<String> getRoles(String userId) throws UserManagementException;", "@Override\r\n\tpublic List<Role> getUserRoles(String userId) {\n\t\treturn userMapper.getRoles(userId);\r\n\t}", "@OneToMany(mappe...
[ "0.7713926", "0.754339", "0.754056", "0.74728024", "0.7085622", "0.70705765", "0.70274967", "0.699822", "0.6968087", "0.6915042", "0.6910345", "0.6862887", "0.6858925", "0.6856216", "0.682739", "0.6818166", "0.6815415", "0.6773381", "0.6749988", "0.6727175", "0.6722643", "0...
0.0
-1
Constructs a default card object.
public PlayingCard(){ super(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Card () {}", "public CardGameFramework()\n {\n this(1, 0, 0, null, 4, 13);\n }", "public CardGameFramework() {\n this(1, 0, 0, null, 4, 13);\n }", "public card(){\n\t\tname = \"blank\";\n\t\ttype = \"blank\";\n\t\tcost = 0;\n\t\tgold = 0;\n\t\tvictory_points = 0;\n\t\taction = 0;\n\t\t...
[ "0.79039556", "0.7816986", "0.77866673", "0.77004033", "0.76703775", "0.75872076", "0.7494896", "0.74278355", "0.73428357", "0.73177624", "0.7288874", "0.72837335", "0.72795033", "0.7215011", "0.7162244", "0.71554965", "0.7087984", "0.7046526", "0.7046127", "0.7031395", "0.69...
0.71537423
16
Constructs a card object with the specified face_value value.
public PlayingCard(int newFace){ super(newFace); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Card(String faceName, String suit, int faceValue) {\n\n setFaceName(faceName);\n setSuit(suit);\n setFaceValue(faceValue);\n }", "public Card(Suit suit, CardValue value,boolean isFaceDown) {\n this.suit = suit;\n this.cardValue = value;\n this.isFaceDown = isFa...
[ "0.75411946", "0.718372", "0.7105061", "0.6816742", "0.6514912", "0.65013474", "0.6490924", "0.64573586", "0.6402973", "0.6345058", "0.63153803", "0.6295361", "0.6285209", "0.62558514", "0.62493217", "0.62383693", "0.6227106", "0.621484", "0.6186025", "0.6174065", "0.6140346"...
0.57098955
31
Constructs a card object with the specified face_value, and suit values.
public PlayingCard(int newFace, int newSuit){ super(newFace, newSuit); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Card(Suit suit, CardValue value) {\n this.suit = suit;\n this.cardValue = value;\n isFaceDown = true;\n }", "public Card(String faceName, String suit, int faceValue) {\n\n setFaceName(faceName);\n setSuit(suit);\n setFaceValue(faceValue);\n }", "public Car...
[ "0.81569695", "0.80777717", "0.7930015", "0.7816109", "0.7746628", "0.77247506", "0.7703994", "0.7671628", "0.7654301", "0.7547881", "0.74657995", "0.7420369", "0.73018736", "0.72990716", "0.7275876", "0.7232568", "0.7229707", "0.7184961", "0.694859", "0.6905927", "0.68710786...
0.5667926
98
Constructs a card object with the specified face_value, suit, and faceUp values.
public PlayingCard(int newFace, int newSuit, boolean newUp){ super(newFace, newSuit, newUp); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Card(Suit suit, CardValue value,boolean isFaceDown) {\n this.suit = suit;\n this.cardValue = value;\n this.isFaceDown = isFaceDown;\n }", "public Card(Suit suit, CardValue value) {\n this.suit = suit;\n this.cardValue = value;\n isFaceDown = true;\n }", "p...
[ "0.79750127", "0.79010993", "0.7735792", "0.75518626", "0.7448972", "0.7339664", "0.73266286", "0.7326509", "0.72192264", "0.72028553", "0.7152149", "0.70383245", "0.7007701", "0.6968556", "0.6908577", "0.6885942", "0.6878877", "0.6875985", "0.6765614", "0.67470646", "0.67369...
0.6206084
43
This method was generated by MyBatis Generator. This method returns the value of the database column eshop_order_item.id
public String getId() { return id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getID(OrderItem oi){\n int id;\n id=findID(oi);\n return id;\n }", "public Integer getOrderItemId() {\n return orderItemId;\n }", "public int getId() {\n return orderID;\n }", "OrderItemDto getOrderItem(long id) throws SQLException;", "public Integer\t...
[ "0.72500956", "0.7186681", "0.6583137", "0.6514762", "0.62929153", "0.61975974", "0.6179759", "0.614897", "0.6134655", "0.6124596", "0.6109043", "0.61052835", "0.6073973", "0.6060058", "0.6057571", "0.6040317", "0.6040317", "0.60236454", "0.59927404", "0.59926", "0.59819156",...
0.0
-1
This method was generated by MyBatis Generator. This method sets the value of the database column eshop_order_item.id
public void setId(String id) { this.id = id == null ? null : id.trim(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setOrderItemId(Integer orderItemId) {\n this.orderItemId = orderItemId;\n }", "public Integer getOrderItemId() {\n return orderItemId;\n }", "public void setItem_order_code_id(int item_order_code_id) {\n this.item_order_code_id = item_order_code_id;\n }", "public voi...
[ "0.67498386", "0.6527157", "0.6445432", "0.6241611", "0.6022422", "0.6022422", "0.6006152", "0.59328556", "0.5924497", "0.5911344", "0.5895054", "0.5887565", "0.5867069", "0.58662677", "0.5826229", "0.5771573", "0.57667774", "0.5744456", "0.5710685", "0.56953764", "0.5653461"...
0.0
-1
This method was generated by MyBatis Generator. This method returns the value of the database column eshop_order_item.is_del
public Integer getIsDel() { return isDel; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Integer getIsdelete() {\n return isdelete;\n }", "public Integer getIsdelete() {\r\n return isdelete;\r\n }", "public Boolean getIsDel() {\n return isDel;\n }", "@Override\n\tpublic int getIsDelete() {\n\t\treturn _dmGTShipPosition.getIsDelete();\n\t}", "public Integer ...
[ "0.626232", "0.62603986", "0.6249889", "0.6242196", "0.61297506", "0.6109397", "0.61044586", "0.61044586", "0.6102041", "0.60716987", "0.6069832", "0.6046683", "0.59618556", "0.59618556", "0.59618556", "0.59463406", "0.591047", "0.58930516", "0.5817271", "0.5817271", "0.57729...
0.64701855
0
This method was generated by MyBatis Generator. This method sets the value of the database column eshop_order_item.is_del
public void setIsDel(Integer isDel) { this.isDel = isDel; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setIsDelete( Integer isDelete ) {\n this.isDelete = isDelete;\n }", "@Override\n\tpublic void setIsDelete(int isDelete) {\n\t\t_dmGTShipPosition.setIsDelete(isDelete);\n\t}", "public void setIsDel(Boolean isDel) {\n this.isDel = isDel;\n }", "public void setIsdelete(Integer is...
[ "0.62173724", "0.6152867", "0.61467993", "0.60830474", "0.606074", "0.60065365", "0.5983391", "0.5965233", "0.5940702", "0.591164", "0.58858097", "0.5884442", "0.58548033", "0.58326864", "0.57339907", "0.5706987", "0.56929547", "0.5692173", "0.5692173", "0.5672201", "0.565580...
0.64242834
0
This method was generated by MyBatis Generator. This method returns the value of the database column eshop_order_item.update_time
public Date getUpdateTime() { return updateTime; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Date getUpdate_time() {\n return update_time;\n }", "public Date getUpdate_time() {\n return update_time;\n }", "public Long getUpdateDatetime() {\n return updateDatetime;\n }", "public Date getUpdatetime() {\r\n return updatetime;\r\n }", "public Date getUpda...
[ "0.7385578", "0.7385578", "0.73620236", "0.7299406", "0.7296152", "0.7296152", "0.7267638", "0.7267638", "0.71287304", "0.71080434", "0.71080434", "0.71080434", "0.70644087", "0.70322895", "0.70322895", "0.7007267", "0.69986993", "0.69957954", "0.69328046", "0.6895198", "0.68...
0.67301625
80
This method was generated by MyBatis Generator. This method sets the value of the database column eshop_order_item.update_time
public void setUpdateTime(Date updateTime) { this.updateTime = updateTime; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setUpdate_time(Date update_time) {\n this.update_time = update_time;\n }", "public void setUpdate_time(Date update_time) {\n this.update_time = update_time;\n }", "public void setUpdatetime(Date updatetime) {\r\n this.updatetime = updatetime;\r\n }", "public void set...
[ "0.72809315", "0.72809315", "0.70077986", "0.6993276", "0.6986861", "0.6986861", "0.68519247", "0.68140984", "0.67563176", "0.675112", "0.675112", "0.675112", "0.674653", "0.674653", "0.66982996", "0.66982996", "0.66982996", "0.66982996", "0.66437995", "0.6639686", "0.6614389...
0.66340244
50
This method was generated by MyBatis Generator. This method returns the value of the database column eshop_order_item.create_time
public Date getCreateTime() { return createTime; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Long getCreatetime() {\n return createtime;\n }", "public Integer getCreateTime() {\r\n return createTime;\r\n }", "public Integer getCreateTime() {\n return createTime;\n }", "public Date getCreate_time() {\n return create_time;\n }", "public Date getCreate_t...
[ "0.7284367", "0.71982205", "0.71748155", "0.71543133", "0.71543133", "0.71389204", "0.712962", "0.712962", "0.7116182", "0.7098702", "0.70768356", "0.7064763", "0.7064763", "0.7064763", "0.7064763", "0.7064763", "0.7064763", "0.70354414", "0.7030343", "0.70288485", "0.7019221...
0.7046006
88
This method was generated by MyBatis Generator. This method sets the value of the database column eshop_order_item.create_time
public void setCreateTime(Date createTime) { this.createTime = createTime; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCreate_time(Date create_time) {\n this.create_time = create_time;\n }", "public void setCreate_time(Date create_time) {\n this.create_time = create_time;\n }", "public void setCreatetime(Date createtime) {\r\n this.createtime = createtime;\r\n }", "public void set...
[ "0.72452563", "0.72452563", "0.6930892", "0.6930892", "0.6930892", "0.6911622", "0.69026184", "0.68872106", "0.68872106", "0.68872106", "0.68872106", "0.68872106", "0.68872106", "0.68872106", "0.68872106", "0.6861615", "0.68412316", "0.68391657", "0.68385524", "0.68385524", "...
0.676718
97
This method was generated by MyBatis Generator. This method returns the value of the database column eshop_order_item.order_id
public String getOrderId() { return orderId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Integer getOrderItemId() {\n return orderItemId;\n }", "public int getId() {\n return orderID;\n }", "public int getID(OrderItem oi){\n int id;\n id=findID(oi);\n return id;\n }", "public Long getOrderid() {\r\n return orderid;\r\n }", "public in...
[ "0.73290336", "0.72311294", "0.69740534", "0.6960223", "0.6869498", "0.68031865", "0.67564356", "0.6705161", "0.6704188", "0.6665033", "0.6637559", "0.6616474", "0.6608901", "0.6591435", "0.6588944", "0.6588944", "0.6587681", "0.6550151", "0.6453395", "0.6305276", "0.6302706"...
0.64539576
18
This method was generated by MyBatis Generator. This method sets the value of the database column eshop_order_item.order_id
public void setOrderId(String orderId) { this.orderId = orderId == null ? null : orderId.trim(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setIdOrder(Long idOrder) {\n this.idOrder = idOrder;\n }", "public void setOrderItemId(Integer orderItemId) {\n this.orderItemId = orderItemId;\n }", "public void setOrderID(int orderID)\n {\n synchronized (monitor())\n {\n check_orphaned();\n ...
[ "0.7143681", "0.697228", "0.69691676", "0.69534147", "0.6871746", "0.6762265", "0.6716741", "0.6716741", "0.66143477", "0.6597528", "0.6597528", "0.6542699", "0.65177894", "0.64492935", "0.64299256", "0.6391408", "0.6355278", "0.6272795", "0.626656", "0.6191187", "0.6167122",...
0.6420445
16
This method was generated by MyBatis Generator. This method returns the value of the database column eshop_order_item.color_id
public String getColorId() { return colorId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getColorId() {\n return colorId;\n }", "public Integer getProductColorId() {\r\n return productColorId;\r\n }", "public int getmColorId() {\n return mColorId;\n }", "public String getColor() {\n return colorID;\n }", "public int getColor() {\n\t\treturn ge...
[ "0.73670965", "0.7099974", "0.70326734", "0.6757101", "0.62337726", "0.6148176", "0.61379623", "0.60968417", "0.6090776", "0.6080914", "0.60733056", "0.605305", "0.6051732", "0.6051732", "0.60400844", "0.6004631", "0.59218717", "0.59101206", "0.58950245", "0.5844141", "0.5790...
0.71516883
1
This method was generated by MyBatis Generator. This method sets the value of the database column eshop_order_item.color_id
public void setColorId(String colorId) { this.colorId = colorId == null ? null : colorId.trim(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setProductColorId(Integer productColorId) {\r\n this.productColorId = productColorId;\r\n }", "public void setColor(int color){\n this.color = color;\n }", "public void setColor(int color) {\n this.color = color;\n }", "public void setColor(Integer color) {\n\t\tthis...
[ "0.6506218", "0.6418446", "0.63583726", "0.63442945", "0.6323876", "0.6321862", "0.63207316", "0.6247124", "0.62065905", "0.60897994", "0.60897994", "0.60645366", "0.60629964", "0.6056776", "0.6022548", "0.60036916", "0.5998151", "0.5995651", "0.59930706", "0.5943292", "0.593...
0.66234165
0
This method was generated by MyBatis Generator. This method returns the value of the database column eshop_order_item.size_id
public String getSizeId() { return sizeId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Integer getSizeId() {\n return sizeId;\n }", "public int reproduct_sizes() {\n int prosize_id = 0;\n try (Connection con = DBUtil.getConnection();\n Statement stm = con.createStatement();\n ResultSet rs = stm.executeQuery(\"select size_id from sizes or...
[ "0.71216166", "0.6692829", "0.65512997", "0.62721306", "0.62190664", "0.6138533", "0.6090741", "0.6039432", "0.59361345", "0.5927038", "0.59251124", "0.5924614", "0.58270407", "0.5822772", "0.5805071", "0.58048886", "0.58009434", "0.5784884", "0.57836944", "0.5773266", "0.576...
0.6904729
1
This method was generated by MyBatis Generator. This method sets the value of the database column eshop_order_item.size_id
public void setSizeId(String sizeId) { this.sizeId = sizeId == null ? null : sizeId.trim(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSizeId(Integer sizeId) {\n this.sizeId = sizeId;\n }", "@Modifying(clearAutomatically = true)\n @Transactional\n @Query(\"update Site s set s.size = ?3 where s.userId = ?1 and s.id = ?2\")\n void updateSiteSize(Long userId, Long id, int size);", "private void set_size(int size...
[ "0.710664", "0.686768", "0.64163154", "0.6408809", "0.6391079", "0.6294744", "0.6277926", "0.6229492", "0.62253904", "0.62113875", "0.6202177", "0.6190221", "0.6186833", "0.6186833", "0.61736983", "0.6148077", "0.6144387", "0.6144387", "0.6144387", "0.6144387", "0.6129356", ...
0.6570087
2
This method was generated by MyBatis Generator. This method returns the value of the database column eshop_order_item.order_item_name
public String getOrderItemName() { return orderItemName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getName() {\n return item.getName();\n }", "public String getName()\r\n\t{\r\n\t\treturn theItem.getName();\r\n\t}", "public String getOrderitem() {\n\t\treturn orderitem;\n\t}", "public String getName() {\n\t\treturn itemName;\n\t}", "public static String getNameByID(int itemID) {\...
[ "0.6366841", "0.6334884", "0.630393", "0.626241", "0.6236518", "0.62035453", "0.61268365", "0.6086999", "0.6086999", "0.6086999", "0.60821754", "0.6036783", "0.60275483", "0.60275483", "0.60275483", "0.60275483", "0.60275483", "0.6016309", "0.59986097", "0.59986097", "0.59931...
0.74820846
0
This method was generated by MyBatis Generator. This method sets the value of the database column eshop_order_item.order_item_name
public void setOrderItemName(String orderItemName) { this.orderItemName = orderItemName == null ? null : orderItemName.trim(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getOrderItemName() {\n return orderItemName;\n }", "public void setOrderitem(String orderitem) {\n\t\tthis.orderitem = orderitem == null ? null : orderitem.trim();\n\t}", "public void setItemName(String itemName) {\n this.itemName = itemName;\n }", "public void setItemName(S...
[ "0.67456806", "0.63839054", "0.6236184", "0.6236184", "0.6193564", "0.604717", "0.5985069", "0.5945049", "0.5837307", "0.567157", "0.5608432", "0.54431653", "0.54371744", "0.54297805", "0.53926265", "0.5388896", "0.53100395", "0.53100395", "0.5296236", "0.52846634", "0.527836...
0.7243789
0
This method was generated by MyBatis Generator. This method returns the value of the database column eshop_order_item.order_item_proice
public BigDecimal getOrderItemProice() { return orderItemProice; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setOrderItemProice(BigDecimal orderItemProice) {\n this.orderItemProice = orderItemProice;\n }", "public java.lang.String getPO_ITEM() {\r\n return PO_ITEM;\r\n }", "public String getOrderitem() {\n\t\treturn orderitem;\n\t}", "public Number getPromoProdukId() {\n retur...
[ "0.6786861", "0.61681336", "0.5894534", "0.58255625", "0.57494086", "0.5703873", "0.56429076", "0.5632902", "0.56110847", "0.5551456", "0.55297714", "0.55090594", "0.54961926", "0.54636127", "0.54632413", "0.54319483", "0.54218954", "0.5410397", "0.53121215", "0.5285545", "0....
0.7196638
0
This method was generated by MyBatis Generator. This method sets the value of the database column eshop_order_item.order_item_proice
public void setOrderItemProice(BigDecimal orderItemProice) { this.orderItemProice = orderItemProice; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BigDecimal getOrderItemProice() {\n return orderItemProice;\n }", "public void setPO_ITEM(java.lang.String PO_ITEM) {\r\n this.PO_ITEM = PO_ITEM;\r\n }", "@Override\n\tpublic void modifypro(ProductBean p) {\n\t\tsession.update(namespace+\".modifypro\", p);\n\t}", "public void setOr...
[ "0.6232403", "0.58358437", "0.569274", "0.55281883", "0.5518435", "0.5412086", "0.53435963", "0.52681804", "0.5207228", "0.5170163", "0.51256", "0.5118774", "0.51116043", "0.51048064", "0.50703555", "0.5041971", "0.50340027", "0.5030318", "0.5020703", "0.500035", "0.4999396",...
0.75241446
0
This method was generated by MyBatis Generator. This method returns the value of the database column eshop_order_item.order_item_amount
public Integer getOrderItemAmount() { return orderItemAmount; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.math.BigDecimal getITEM_AMOUNT() {\r\n return ITEM_AMOUNT;\r\n }", "@Transient\n public Double getTotalOrderPrice() {\n double sum = 0;\n for (OrderItem oi : getOrderItems()) {\n sum += oi.getTotalPrice();\n }\n return sum;\n }", "public void s...
[ "0.6778896", "0.63641757", "0.6026166", "0.6021075", "0.6012208", "0.5944597", "0.5866393", "0.58438426", "0.58401114", "0.5838094", "0.5838094", "0.5838094", "0.58233064", "0.5813187", "0.58061147", "0.58003944", "0.5799641", "0.5799641", "0.5799641", "0.5799641", "0.5799471...
0.7361127
0
This method was generated by MyBatis Generator. This method sets the value of the database column eshop_order_item.order_item_amount
public void setOrderItemAmount(Integer orderItemAmount) { this.orderItemAmount = orderItemAmount; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Integer getOrderItemAmount() {\n return orderItemAmount;\n }", "public void setITEM_AMOUNT(java.math.BigDecimal ITEM_AMOUNT) {\r\n this.ITEM_AMOUNT = ITEM_AMOUNT;\r\n }", "public java.math.BigDecimal getITEM_AMOUNT() {\r\n return ITEM_AMOUNT;\r\n }", "public void setAmoun...
[ "0.6529", "0.64190245", "0.5792944", "0.578043", "0.5772789", "0.57644105", "0.57095", "0.57095", "0.57095", "0.5649925", "0.56147987", "0.5586677", "0.5583918", "0.55662656", "0.55328953", "0.5501767", "0.55014086", "0.54999435", "0.54988706", "0.5479418", "0.5474501", "0....
0.72909963
0
This method was generated by MyBatis Generator. This method returns the value of the database column eshop_order_item.order_item_url
public String getOrderItemUrl() { return orderItemUrl; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setOrderItemUrl(String orderItemUrl) {\n this.orderItemUrl = orderItemUrl == null ? null : orderItemUrl.trim();\n }", "@Schema(description = \"Link to get this item\")\n public String getUrl() {\n return url;\n }", "public String getItemURL() {\n String shownAt = jsonParent.getStr...
[ "0.62240696", "0.6162419", "0.56939745", "0.5614647", "0.5518857", "0.5460448", "0.54004663", "0.5387106", "0.5344415", "0.5238275", "0.5212669", "0.5207578", "0.52057695", "0.5190006", "0.5150672", "0.5142922", "0.5142515", "0.5129044", "0.5127459", "0.5120835", "0.5120835",...
0.7170966
0
This method was generated by MyBatis Generator. This method sets the value of the database column eshop_order_item.order_item_url
public void setOrderItemUrl(String orderItemUrl) { this.orderItemUrl = orderItemUrl == null ? null : orderItemUrl.trim(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getOrderItemUrl() {\n return orderItemUrl;\n }", "public void setOrderitem(String orderitem) {\n\t\tthis.orderitem = orderitem == null ? null : orderitem.trim();\n\t}", "void setURL(int index, URL value) throws SQLException;", "protected void setLinkToUrl(UiAction uiAction, ResultSet ...
[ "0.6392612", "0.5665146", "0.55747396", "0.544376", "0.53782445", "0.5376989", "0.52337265", "0.51925474", "0.51836723", "0.5080247", "0.5077796", "0.50396186", "0.4996698", "0.49628714", "0.49597853", "0.49464074", "0.49242315", "0.4920189", "0.48912737", "0.48672125", "0.48...
0.7250964
0
This method was generated by MyBatis Generator. This method returns the value of the database column eshop_order_item.product_id
public String getProductId() { return productId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getProduct_id() {\r\n\t\treturn product_id;\r\n\t}", "public int getProduct_id() {\n\t\treturn product_id;\n\t}", "public Integer getProductId() {\r\n return productId;\r\n }", "public Integer getProductId() {\r\n return productId;\r\n }", "public int getM_Product_ID() {\n\t\...
[ "0.70988405", "0.7020138", "0.6911321", "0.6911321", "0.6875195", "0.6875195", "0.6875195", "0.6861903", "0.6861903", "0.6861903", "0.6861903", "0.6861903", "0.6861903", "0.6848228", "0.6848228", "0.6745218", "0.66935515", "0.6653076", "0.6653076", "0.66522783", "0.66286665",...
0.66540474
21
This method was generated by MyBatis Generator. This method sets the value of the database column eshop_order_item.product_id
public void setProductId(String productId) { this.productId = productId == null ? null : productId.trim(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setProductId(int productId) {\n this.productId = productId;\n }", "public void setProductId(int productId) {\n this.productId = productId;\n }", "public void setM_Product_ID (int M_Product_ID);", "public void setM_Product_ID (int M_Product_ID);", "public void setProduct_id(i...
[ "0.7025234", "0.7025234", "0.7014021", "0.7014021", "0.69851416", "0.6968231", "0.6968231", "0.695249", "0.69450647", "0.69450647", "0.69450647", "0.69450647", "0.69450647", "0.69450647", "0.6902946", "0.6788284", "0.67036617", "0.6617477", "0.6601437", "0.6510071", "0.648452...
0.6492498
22
This method was generated by MyBatis Generator. This method corresponds to the database table eshop_order_item
@Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").append(hashCode()); sb.append(", id=").append(id); sb.append(", isDel=").append(isDel); sb.append(", updateTime=").append(updateTime); sb.append(", createTime=").append(createTime); sb.append(", orderId=").append(orderId); sb.append(", colorId=").append(colorId); sb.append(", sizeId=").append(sizeId); sb.append(", orderItemName=").append(orderItemName); sb.append(", orderItemProice=").append(orderItemProice); sb.append(", orderItemAmount=").append(orderItemAmount); sb.append(", orderItemUrl=").append(orderItemUrl); sb.append(", productId=").append(productId); sb.append(", serialVersionUID=").append(serialVersionUID); sb.append("]"); return sb.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "OrderItemDto getOrderItem(long id) throws SQLException;", "io.opencannabis.schema.commerce.OrderItem.Item getItem(int index);", "public List<OrderItem> searchOrderItem() throws SQLException, Exception {\n\n List<OrderItem> lista = new ArrayList<OrderItem>();\n String query = \"SELECT * FROM order...
[ "0.67173195", "0.61220187", "0.6023239", "0.60001504", "0.59771234", "0.5893141", "0.5888202", "0.58662295", "0.5844385", "0.5736397", "0.5695209", "0.56934094", "0.56871617", "0.5670401", "0.56508803", "0.5632582", "0.562337", "0.56204325", "0.5603306", "0.5602965", "0.56012...
0.0
-1
Function call to invoke the method vertical("hey now");} /This function accepts a string as its parameter and prints each letter of the string on separate lines.
public static void main(String[] args) { public static void vertical (String str)) system.out.println("The call of vertical (\"" +strt"\") produce the followin output:"); for (int i=o;i<str.length(); i++) { //Display the output Syste.out.println(str.charAt(i)); } */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void t(){\n System.out.println( \"Some text \"); \n }", "public void displayTextToConsole();", "public void haha(){\n System.out.println(\"thavasi\");\n }", "@Override\r\n\tpublic void alimentar() {\n\t\tSystem.out.print(\" como carne, yummy, yummy\");\...
[ "0.60399026", "0.5918733", "0.58541393", "0.57745856", "0.57398134", "0.5678024", "0.5618655", "0.55902326", "0.55276686", "0.5512663", "0.5507656", "0.5473453", "0.54729867", "0.5446319", "0.5440366", "0.5424404", "0.54220176", "0.54191107", "0.5414117", "0.5410601", "0.5399...
0.8036765
0
TODO Autogenerated method stub
@Override public int describeContents() { return 0; }
{ "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
/ this will be called once when the agent starts and can be used for initialization work note that when this method is executed, (a) it is not guaranteed that all the other agents are already started and/or their actions are known, and (b) the agent's execution has not yet started, so do not wait for any actions to be completed in this method (you can invoke actions, though, if they are already known to the agent) if you want to use a SpaceObserver to listen to messages, this is might be a good place to add it, but you could also check messages in execute() and only temporarily attach a SpaceObserver for specific purposes
@Override public void doStart() throws Exception { log.info("starting..."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void setup() {\n\t\tSystem.out.println(\"Messenger agent \"+getAID().getName()+\" is ready.\");\r\n\t\tagentList = new ArrayList();\r\n\t\trefreshActiveAgents();\r\n\r\n\t\tmessageGUI = new MessageAgentGui(this);\r\n\t\tmessageGUI.displayGUI();\r\n\r\n\t\tDFAgentDescription dfd = new DFAgentDescription()...
[ "0.65650463", "0.6433548", "0.6316348", "0.6226614", "0.62156534", "0.62010556", "0.6194444", "0.6191234", "0.61623317", "0.61325705", "0.6042222", "0.59962523", "0.5987287", "0.596843", "0.5920479", "0.59194255", "0.59121525", "0.5908909", "0.5908361", "0.5903139", "0.585946...
0.0
-1
/ this is executed periodically by the agent; use the executeInterval in the XML file to configure how often exactly this is probably where the bulk of your logic will go; if you are not using a listener to receive messages (see WorkerBean.java), you can use memory.readAll or memory.removeAll to get messages from the memory, where they are stored when received; make sure to remove messages from memory to not create a memory leak you may find the methods thisAgent::getAgentNode and thisAgent::searchAllAgents useful for finding your fellow Worker agents. Examples are included in here
@Override public void execute() { log.info("running..."); /* example for finding the server agent */ IAgentDescription serverAgent = thisAgent.searchAgent(new AgentDescription(null, "ServerAgent", null, null, null, null)); if (serverAgent != null) { this.server = serverAgent.getMessageBoxAddress(); // TODO if (!hasGameStarted) { StartGameMessage startGameMessage = new StartGameMessage(); startGameMessage.brokerId = thisAgent.getAgentId(); startGameMessage.gridFile = "/grids/h_01.grid"; // Send StartGameMessage(BrokerID) sendMessage(server, startGameMessage); reward = 0; this.hasGameStarted = true; } } else { System.out.println("SERVER NOT FOUND!"); } /* example of handling incoming messages without listener */ for (JiacMessage message : memory.removeAll(new JiacMessage())) { Object payload = message.getPayload(); if (payload instanceof StartGameResponse) { /* do something */ // TODO StartGameResponse startGameResponse = (StartGameResponse) message.getPayload(); this.maxNum = startGameResponse.initialWorkers.size(); this.agentDescriptions = getMyWorkerAgents(this.maxNum); this.gameId = startGameResponse.gameId; /** * * DEBUGGING * */ System.out.println("SERVER SENDING " + startGameResponse.toString()); // TODO handle movements and obstacles this.gridworldGame = new GridworldGame(); this.gridworldGame.obstacles.addAll(startGameResponse.obstacles); // TODO nicht mehr worker verwenden als zur Verfügung stehen /** * Initialize the workerIdMap to get the agentDescription and especially the * MailBoxAdress of the workerAgent which we associated with a specific worker * for (Worker worker: startGameResponse.initialWorkers) { workerIdMap.put(worker.id, this.agentDescriptions.get(startGameResponse.initialWorkers.indexOf(worker))); workerIdReverseAId.put(this.agentDescriptions.get(startGameResponse.initialWorkers.indexOf(worker)).getAid(), worker.id); } */ /** * Send the Position messages to each Agent for a specific worker * PositionMessages are sent to inform the worker where it is located * additionally put the position of the worker in the positionMap */ for (Worker worker: startGameResponse.initialWorkers) { positionMap.put(worker.id, worker.position); workerIdMap.put(worker.id, this.agentDescriptions.get(startGameResponse.initialWorkers.indexOf(worker))); workerIdReverseAID.put(this.agentDescriptions.get(startGameResponse.initialWorkers.indexOf(worker)).getAid(), worker.id); IAgentDescription agentDescription = workerIdMap.get(worker.id); ICommunicationAddress workerAddress = agentDescription.getMessageBoxAddress(); // Send each Agent their current position PositionMessage positionMessage = new PositionMessage(); positionMessage.workerId = agentDescription.getAid(); positionMessage.gameId = startGameResponse.gameId; positionMessage.position = worker.position; positionMessage.workerIdForServer = worker.id; //System.out.println("ADDRESS IS " + workerAddress); sendMessage(workerAddress, positionMessage); //break; } hasAgents = true; for (Order order: savedOrders) { // 3 Runden anfangs zum Initialisieren ICommunicationAddress workerAddress = decideOrderAssigment(order); Position workerPosition = null; for (IAgentDescription agentDescription: agentDescriptions) { if (agentDescription.getMessageBoxAddress().equals(workerAddress)) { String workerId = workerIdReverseAID.get(agentDescription.getAid()); workerPosition = positionMap.get(workerId); break; } } int steps = workerPosition.distance(order.position) + 2; int rewardMove = (steps > order.deadline)? 0 : order.value - steps * order.turnPenalty; System.out.println("REWARD: " + rewardMove); if(rewardMove > 0) { TakeOrderMessage takeOrderMessage = new TakeOrderMessage(); takeOrderMessage.orderId = order.id; takeOrderMessage.brokerId = thisAgent.getAgentId(); takeOrderMessage.gameId = gameId; sendMessage(server, takeOrderMessage); // Save order into orderMap this.orderMap.put(order.id, order); } } } if (payload instanceof PositionConfirm) { PositionConfirm positionConfirm = (PositionConfirm) message.getPayload(); if(positionConfirm.state == Result.FAIL) { String workerId = workerIdReverseAID.get(positionConfirm.workerId); IAgentDescription agentDescription = workerIdMap.get(workerId); ICommunicationAddress workerAddress = agentDescription.getMessageBoxAddress(); PositionMessage positionMessage = new PositionMessage(); positionMessage.workerId = agentDescription.getAid(); positionMessage.gameId = positionConfirm.gameId; positionMessage.position = positionMap.get(workerId); positionMessage.workerIdForServer = workerId; sendMessage(workerAddress, positionMessage); } else { activeWorkers.add(message.getSender()); for (String orderId: orderMessages) { ICommunicationAddress workerAddress = decideOrderAssigment(this.orderMap.get(orderId)); if(workerAddress.equals(message.getSender())){ AssignOrderMessage assignOrderMessage = new AssignOrderMessage(); assignOrderMessage.order = this.orderMap.get(orderId); assignOrderMessage.gameId = gameId; assignOrderMessage.server = this.server; if(activeWorkers.contains(workerAddress)){ sendMessage(workerAddress, assignOrderMessage); } } } } } if (payload instanceof OrderMessage) { // TODO entscheide, ob wir die Order wirklich annehmen wollen / können OrderMessage orderMessage = (OrderMessage) message.getPayload(); if (!hasAgents){ savedOrders.add(orderMessage.order); continue; }else { Order thisOrder = orderMessage.order; ICommunicationAddress workerAddress = decideOrderAssigment(thisOrder); Position workerPosition = null; for (IAgentDescription agentDescription: agentDescriptions) { if (agentDescription.getMessageBoxAddress().equals(workerAddress)) { String workerId = workerIdReverseAID.get(agentDescription.getAid()); workerPosition = positionMap.get(workerId); break; } } // 3 Runden anfangs zum Initialisieren int steps = workerPosition.distance(thisOrder.position) + 1; int rewardMove = (steps > thisOrder.deadline)? 0 : thisOrder.value - steps * thisOrder.turnPenalty; System.out.println("REWARD: " + rewardMove); if(rewardMove > 0) { TakeOrderMessage takeOrderMessage = new TakeOrderMessage(); takeOrderMessage.orderId = orderMessage.order.id; takeOrderMessage.brokerId = thisAgent.getAgentId(); takeOrderMessage.gameId = orderMessage.gameId; sendMessage(server, takeOrderMessage); // Save order into orderMap Order order = ((OrderMessage) message.getPayload()).order; this.orderMap.put(order.id, order); } } /** * * DEBUGGING * */ System.out.println("SERVER SENDING " + orderMessage.toString()); // Save order into orderMap } if (payload instanceof TakeOrderConfirm) { // TODO // Got Order ?! TakeOrderConfirm takeOrderConfirm = (TakeOrderConfirm) message.getPayload(); Result result = takeOrderConfirm.state; /** * * DEBUGGING * */ System.out.println("SERVER SENDING " + takeOrderConfirm.toString()); if (result == Result.FAIL) { // Handle failed confirmation // Remove order from orderMap as it was rejected by the server this.orderMap.remove(takeOrderConfirm.orderId); continue; } // TODO send serverAddress // Assign order to Worker(Bean) // Send the order to the first agent AssignOrderMessage assignOrderMessage = new AssignOrderMessage(); assignOrderMessage.order = this.orderMap.get(takeOrderConfirm.orderId); assignOrderMessage.gameId = takeOrderConfirm.gameId; assignOrderMessage.server = this.server; ICommunicationAddress workerAddress = decideOrderAssigment(assignOrderMessage.order); if(activeWorkers.contains(workerAddress)){ sendMessage(workerAddress, assignOrderMessage); } else { orderMessages.add(takeOrderConfirm.orderId); } } if (payload instanceof AssignOrderConfirm) { // TODO AssignOrderConfirm assignOrderConfirm = (AssignOrderConfirm) message.getPayload(); Result result = assignOrderConfirm.state; if (result == Result.FAIL) { // Handle failed confirmation // TODO ICommunicationAddress alternativeWorkerAddress = getAlternativeWorkerAddress(((AssignOrderConfirm) message.getPayload()).workerId); reassignOrder(alternativeWorkerAddress, assignOrderConfirm); continue; } orderMessages.remove(assignOrderConfirm.orderId); // TODO Inform other workers that this task is taken - notwendig?? } if (payload instanceof OrderCompleted) { OrderCompleted orderCompleted = (OrderCompleted) message.getPayload(); Result result = orderCompleted.state; if (result == Result.FAIL) { // TODO Handle failed order completion -> minus points for non handled rewards reward += orderCompleted.reward; continue; } reward += orderCompleted.reward; // TODO remove order from the worker specific order queues } if (payload instanceof PositionUpdate) { PositionUpdate positionUpdate = (PositionUpdate) message.getPayload(); updateWorkerPosition(positionUpdate.position, positionUpdate.workerId); } if (payload instanceof EndGameMessage) { EndGameMessage endGameMessage = (EndGameMessage) message.getPayload(); // TODO lernen lernen lernen lol System.out.println("Reward: " + endGameMessage.totalReward); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"unchecked\")\n \t@Override\n \tpublic void run() {\n \t\tif (--interval > 0) {\n\t\t\tinterval = 1;\n \t\t\treturn;\n \t\t}\n \n \t\t// First try to connect\n \t\tif (!mbeanClient.isConnected()) {\n \t\t\tmbeanClient.connect();\n \t\t}\n \n \t\t// If it can not be connected, make an error messa...
[ "0.5365421", "0.524071", "0.5238131", "0.5052642", "0.5018494", "0.4988456", "0.49696782", "0.48763627", "0.4867188", "0.48564935", "0.48138654", "0.47982335", "0.47802556", "0.47689614", "0.47344464", "0.47304937", "0.4694586", "0.4690885", "0.46769446", "0.46720257", "0.466...
0.50320184
4
/ You can implement some functions and helper methods here. get a different workerAddress than the one passed as the argument
private void updateWorkerPosition(Position position, String workerAgentId) { String workerId = workerIdReverseAID.get(workerAgentId); positionMap.replace(workerId, position); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private ICommunicationAddress getAlternativeWorkerAddress(String workerId) {\n\t\tICommunicationAddress workerAddress = null;\n\t\tfor(IAgentDescription agentDescription: this.agentDescriptions) {\n\n\t\t\t// TODO add datastructure to find most likely alternative for assigning an order to alternative worker\n\t \t...
[ "0.7180606", "0.6911513", "0.67166805", "0.6145593", "0.6137217", "0.60565615", "0.60565615", "0.60565615", "0.60565615", "0.60565615", "0.60565615", "0.6006913", "0.59798104", "0.5976859", "0.59736127", "0.59736127", "0.5920321", "0.58700174", "0.58646536", "0.5841446", "0.5...
0.0
-1
get a different workerAddress than the one passed as the argument
private ICommunicationAddress decideOrderAssigment(Order order) { ICommunicationAddress workerAddress = null; Position orderPosition = order.position; Position currentWorkerPosition = null; int minimum = Integer.MAX_VALUE; int currentDistance = 0; String[] workerAgentId = workerIdReverseAID.values().toArray(new String[0]); for (String currentWorkerId: workerAgentId) { currentWorkerPosition = positionMap.get(currentWorkerId); currentDistance = orderPosition.distance(currentWorkerPosition); if (orderPosition.distance(currentWorkerPosition) < minimum) { minimum = currentDistance; workerAddress = workerIdMap.get(currentWorkerId).getMessageBoxAddress(); } } return workerAddress; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private ICommunicationAddress getAlternativeWorkerAddress(String workerId) {\n\t\tICommunicationAddress workerAddress = null;\n\t\tfor(IAgentDescription agentDescription: this.agentDescriptions) {\n\n\t\t\t// TODO add datastructure to find most likely alternative for assigning an order to alternative worker\n\t \t...
[ "0.69680905", "0.6644712", "0.6469867", "0.6073851", "0.60495883", "0.60495883", "0.60490096", "0.5998105", "0.59902763", "0.5882829", "0.585939", "0.58357173", "0.579588", "0.579588", "0.579588", "0.579588", "0.579588", "0.579588", "0.57284844", "0.57052535", "0.5695844", ...
0.0
-1
get a different workerAddress than the one passed as the argument
private ICommunicationAddress getAlternativeWorkerAddress(String workerId) { ICommunicationAddress workerAddress = null; for(IAgentDescription agentDescription: this.agentDescriptions) { // TODO add datastructure to find most likely alternative for assigning an order to alternative worker String workerAgentId = workerIdReverseAID.get(workerId); if (agentDescription.getAid().equals(workerAgentId)) { continue; } workerAddress = agentDescription.getMessageBoxAddress(); break; } return workerAddress; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Value worker(String main, String address);", "public String getAddress(){\r\n\t\ttry {\r\n\t\t\treturn this.workerobj.getString(WorkerController.ADDRESS);\r\n\t\t} catch (JSONException e) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "java.lang.String getWorkerId();", "InetAddress getAddress();", "InetAddress ...
[ "0.6644712", "0.6469867", "0.6073851", "0.60495883", "0.60495883", "0.60490096", "0.5998105", "0.59902763", "0.5882829", "0.585939", "0.58357173", "0.579588", "0.579588", "0.579588", "0.579588", "0.579588", "0.579588", "0.57284844", "0.57052535", "0.5695844", "0.5695844", "...
0.69680905
0
get a different workerAddress than the one passed as the argument
private void reassignOrder(ICommunicationAddress workerAddress, AssignOrderConfirm assignOrderConfirm) { // TODO AssignOrderMessage assignOrderMessage = new AssignOrderMessage(); assignOrderMessage.order = this.orderMap.get(assignOrderConfirm.orderId); assignOrderMessage.gameId = assignOrderConfirm.gameId; assignOrderMessage.server = this.server; sendMessage(workerAddress, assignOrderMessage); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private ICommunicationAddress getAlternativeWorkerAddress(String workerId) {\n\t\tICommunicationAddress workerAddress = null;\n\t\tfor(IAgentDescription agentDescription: this.agentDescriptions) {\n\n\t\t\t// TODO add datastructure to find most likely alternative for assigning an order to alternative worker\n\t \t...
[ "0.6967113", "0.66437554", "0.6468692", "0.60706913", "0.6048389", "0.604805", "0.604805", "0.5996791", "0.59887975", "0.58810335", "0.58585554", "0.58344233", "0.5795183", "0.5795183", "0.5795183", "0.5795183", "0.5795183", "0.5795183", "0.57284576", "0.5703494", "0.5693232"...
0.0
-1
example function for using getAgentNode() and retrieving a list of all worker agents
private List<IAgentDescription> getMyWorkerAgents(int maxNum) { String nodeId = thisAgent.getAgentNode().getUUID(); return thisAgent.searchAllAgents(new AgentDescription(null, null, null, null, null, nodeId)).stream() .filter(a -> a.getName().startsWith("WorkerAgent")) .limit(maxNum) .collect(Collectors.toList()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<JavaAgent> getJavaAgents();", "List<AgentReference> getCurrentAgents();", "public java.util.List<org.biocatalogue.x2009.xml.rest.Agent> getAgentList()\r\n {\r\n final class AgentList extends java.util.AbstractList<org.biocatalogue.x2009.xml.rest.Agent>\r\n {\r\n public org.bioc...
[ "0.6825142", "0.6550877", "0.63142145", "0.6306193", "0.60218024", "0.5992649", "0.59484977", "0.58506006", "0.5770537", "0.5766439", "0.57499546", "0.5671119", "0.563823", "0.5634647", "0.5629522", "0.56282413", "0.55224913", "0.5493111", "0.54637194", "0.54185843", "0.54011...
0.67737705
1
example function to send messages to other agents
private void sendMessage(ICommunicationAddress receiver, IFact payload) { Action sendAction = retrieveAction(ICommunicationBean.ACTION_SEND); JiacMessage message = new JiacMessage(payload); invoke(sendAction, new Serializable[] {message, receiver}); System.out.println("BROKER SENDING " + payload); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void send(Message msg);", "void sendMessage(String msg);", "public void message(String from,String msg,String to);", "void sendMessage() {\n\n\t}", "private void sendMessage(String content, String room) {\n }", "public boolean message( Who sender, Message msg ) throws Exception;", "@Override\...
[ "0.7351372", "0.7151302", "0.7140463", "0.7016317", "0.69483346", "0.6941165", "0.6930654", "0.68461466", "0.68215364", "0.68182606", "0.68144363", "0.6811061", "0.67776716", "0.6746597", "0.6732765", "0.6693555", "0.6684653", "0.66777724", "0.6674068", "0.66672856", "0.66628...
0.626663
74
you cannot have more than 1 public class public class has the same name as a file
public static void main(String[] args) { System.out.println("Class 1"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String getClassName(String fileName){\n String className = FilenameUtils.getBaseName(fileName);\n return className;\n }", "private static boolean isClassFile(WebFile aFile)\n {\n String path = aFile.getPath();\n if (!path.endsWith(\".class\"))\n return false;\n i...
[ "0.5885593", "0.55906063", "0.5586122", "0.5567926", "0.5563033", "0.55342656", "0.5508908", "0.54744184", "0.54734343", "0.54518163", "0.5445115", "0.5427275", "0.53529686", "0.53480434", "0.5343703", "0.5314971", "0.53025395", "0.5299794", "0.5299743", "0.52838105", "0.5260...
0.0
-1
Test for with just Exclude list
public void test5() throws Exception { //$NON-NLS-1$ IFolder buildFolder = newTest("test5"); //$NON-NLS-1$ String buildXMLPath = buildFolder.getFile("build.xml").getLocation().toOSString(); Properties properties = new Properties(); //$NON-NLS-1$ //$NON-NLS-2$ properties.put("reference_location", buildFolder.getFile("before").getLocation().toOSString()); //$NON-NLS-1$ //$NON-NLS-2$ properties.put("current_location", buildFolder.getFile("after").getLocation().toOSString()); //$NON-NLS-1$ properties.put("report_location", buildFolder.getLocation().toOSString()); //$NON-NLS-1$ runAntScript(buildXMLPath, new String[] { "run" }, buildFolder.getLocation().toOSString(), properties); //$NON-NLS-1$ //$NON-NLS-2$ assertFalse("allNonApiBundles must not exist", buildFolder.getFolder("allNonApiBundles").exists()); //$NON-NLS-1$ IFolder folder = buildFolder.getFolder("deltatest"); //$NON-NLS-1$ assertTrue("deltatest folder must exist", folder.exists()); //$NON-NLS-1$ folder = buildFolder.getFolder("deltatest1"); //$NON-NLS-1$ assertTrue("deltatest1 folder must exist", folder.exists()); //$NON-NLS-1$ //$NON-NLS-2$ assertTrue("report.xml file must be there", folder.getFile("report.xml").exists()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isExcluded();", "static public boolean excludesAll(Collection source, Collection arg) {\n\t\tIterator it = arg.iterator();\n\t\twhile ( it.hasNext() ) {\n\t\t\tObject elem = it.next();\n\t\t\tif ( source.contains(elem) ) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public void set...
[ "0.7621308", "0.6857722", "0.67650336", "0.6674922", "0.66341263", "0.65977865", "0.6536632", "0.6517297", "0.6437787", "0.6283926", "0.6210879", "0.62051344", "0.61924267", "0.6179424", "0.6156248", "0.6069186", "0.60099226", "0.60092324", "0.60038835", "0.6001229", "0.59990...
0.0
-1
Test for with just Include list
public void test6() throws Exception { //$NON-NLS-1$ IFolder buildFolder = newTest("test6"); //$NON-NLS-1$ String buildXMLPath = buildFolder.getFile("build.xml").getLocation().toOSString(); Properties properties = new Properties(); //$NON-NLS-1$ //$NON-NLS-2$ properties.put("reference_location", buildFolder.getFile("before").getLocation().toOSString()); //$NON-NLS-1$ //$NON-NLS-2$ properties.put("current_location", buildFolder.getFile("after").getLocation().toOSString()); //$NON-NLS-1$ properties.put("report_location", buildFolder.getLocation().toOSString()); //$NON-NLS-1$ runAntScript(buildXMLPath, new String[] { "run" }, buildFolder.getLocation().toOSString(), properties); //$NON-NLS-1$ //$NON-NLS-2$ assertFalse("allNonApiBundles must not exist", buildFolder.getFolder("allNonApiBundles").exists()); //$NON-NLS-1$ IFolder folder = buildFolder.getFolder("deltatest2"); //$NON-NLS-1$ assertTrue("deltatest2 folder must exist", folder.exists()); //$NON-NLS-1$ //$NON-NLS-2$ assertTrue("report.xml file must be there", folder.getFile("report.xml").exists()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setIncludes(String includes)\n {\n this.includes = includes;\n }", "public void setIncludes( List<IncludeClasses> includes )\n {\n this.includes = includes;\n }", "public boolean getIncluded();", "public boolean isIncluded(IResource included) {\n ensureInitialized();\n ...
[ "0.6944547", "0.6831093", "0.6710978", "0.6621914", "0.6587452", "0.6508415", "0.64230853", "0.63687444", "0.6351816", "0.63049513", "0.62709117", "0.62417346", "0.6240719", "0.6233289", "0.6206808", "0.6202088", "0.6186156", "0.6166132", "0.61474985", "0.61378336", "0.613189...
0.0
-1
Test for with both Exclude and Include list
public void test7() throws Exception { //$NON-NLS-1$ IFolder buildFolder = newTest("test7"); //$NON-NLS-1$ String buildXMLPath = buildFolder.getFile("build.xml").getLocation().toOSString(); Properties properties = new Properties(); //$NON-NLS-1$ //$NON-NLS-2$ properties.put("reference_location", buildFolder.getFile("before").getLocation().toOSString()); //$NON-NLS-1$ //$NON-NLS-2$ properties.put("current_location", buildFolder.getFile("after").getLocation().toOSString()); //$NON-NLS-1$ properties.put("report_location", buildFolder.getLocation().toOSString()); //$NON-NLS-1$ runAntScript(buildXMLPath, new String[] { "run" }, buildFolder.getLocation().toOSString(), properties); //$NON-NLS-1$ //$NON-NLS-2$ assertFalse("allNonApiBundles must not exist", buildFolder.getFolder("allNonApiBundles").exists()); //$NON-NLS-1$ IFolder folder = buildFolder.getFolder("deltatest"); //$NON-NLS-1$ assertTrue("deltatest folder must exist", folder.exists()); //$NON-NLS-1$ //$NON-NLS-2$ assertTrue("report.xml file must be there", folder.getFile("report.xml").exists()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isExcluded();", "private boolean isIncluded(StackTraceElementProxy step) {\n if (!excludes.isEmpty()) {\n StackTraceElement stackTraceElement = step.getStackTraceElement();\n String testString = stackTraceElement.getClassName() + \".\" + stackTraceElement.getMethodName();\n ...
[ "0.71429867", "0.64198047", "0.62950754", "0.6288808", "0.6181019", "0.6170492", "0.60858613", "0.6077032", "0.59699184", "0.5909083", "0.58225703", "0.57817787", "0.57680273", "0.57451427", "0.5742474", "0.57369375", "0.5726583", "0.56981385", "0.564295", "0.5586625", "0.554...
0.0
-1
Convert upper camel SDK field names to lower camel
static String normalizedNameOf(SdkField<?> field) { String name = field.memberName(); return name.length() > 1 && Ascii.isLowerCase(name.charAt(1)) ? Ascii.toLowerCase(name.charAt(0)) + name.substring(1) : name.toLowerCase(Locale.ROOT); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String upFirstLetter(){\n\t\tString firstLetter = nameField.substring(0,1);\n\t\tfirstLetter = firstLetter.toUpperCase();\n\t\treturn firstLetter + nameField.substring(1,nameField.length());\n\t}", "public static String getFieldUpperCase(String name) {\r\n\t\tString aux = name.substring(0, 1);\r\n\t\tSt...
[ "0.67715377", "0.6680607", "0.6512355", "0.6398486", "0.6309279", "0.6284367", "0.62154096", "0.61340296", "0.6101502", "0.60986227", "0.6094252", "0.60901195", "0.606606", "0.5995498", "0.5976948", "0.5914572", "0.5895382", "0.5875452", "0.58577096", "0.5856027", "0.5791691"...
0.7580473
0
Unsafe operation, wrapping bytes directly as done by core for byte arrays / buffers
private static SdkBytes toSdkBytes(Object sdkBytes) { return SdkBytes.fromByteArrayUnsafe((byte[]) sdkBytes); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface IUnsafe {\n\n byte getByte(long address);\n\n void putByte(long address, byte x);\n\n short getShort(long address);\n\n void putShort(long address, short x);\n\n char getChar(long address);\n\n void putChar(long address, char x);\n\n int getInt(long address);\n\n void putIn...
[ "0.6189816", "0.60551023", "0.5889787", "0.581462", "0.5807963", "0.5805477", "0.5783665", "0.5721651", "0.5639017", "0.563352", "0.56090266", "0.5594449", "0.5578428", "0.5573815", "0.5572615", "0.5572615", "0.5572615", "0.5572615", "0.5572615", "0.5572615", "0.5572615", "...
0.51538086
61
Unsafe operation, exposing bytes directly as done by core for byte arrays / buffers
private static byte[] toBytes(Object sdkBytes) { return ((SdkBytes) sdkBytes).asByteArrayUnsafe(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public native void get(byte[] bytes);", "public interface IUnsafe {\n\n byte getByte(long address);\n\n void putByte(long address, byte x);\n\n short getShort(long address);\n\n void putShort(long address, short x);\n\n char getChar(long address);\n\n void putChar(long address, char x);\n\n ...
[ "0.6613378", "0.6593957", "0.6422782", "0.6344241", "0.61963123", "0.6151552", "0.61502993", "0.61420155", "0.61347866", "0.603276", "0.6013491", "0.6004491", "0.5931675", "0.58251786", "0.58251786", "0.5797728", "0.5794749", "0.57813317", "0.5779569", "0.5773557", "0.5763607...
0.55301327
45
the declaring class is the class this builder produces
private static Class<?> targetClassOf(SdkPojo builder) { return checkArgumentNotNull( builder.getClass().getDeclaringClass(), "Expected nested builder class, but got %s", builder.getClass()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected ClassBuilder getBuilder() {\n return m_classBuilder;\n }", "private Builder() {\n\t\t}", "Object getClass_();", "Object getClass_();", "private Builder() {}", "@Override\n public JDefinedClass apply(String nodeName, JsonNode node, JsonNode parent, JDefinedClass instanceClass, Schema ...
[ "0.6658516", "0.64294046", "0.6397967", "0.6397967", "0.6261471", "0.6120296", "0.61161005", "0.6097799", "0.60537505", "0.60513985", "0.60398114", "0.60398114", "0.60363007", "0.60359603", "0.59965384", "0.59950846", "0.5980074", "0.5952083", "0.5936875", "0.5928524", "0.592...
0.65694135
1
TODO Autogenerated method stub
@Override public String toString() { return "Nombre: "+this.nombre+" Cantidad: "+this.cantidad+" "+this.unidadMedida; }
{ "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 compareTo(Object o) { MateriaPrima mp = (MateriaPrima)o; return this.id - mp.id; }
{ "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
Return the searching area from ChoiceBox
private String getChoice() { return searchChoiceBox.getValue(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getSearchHint();", "void searchUI();", "public String getSearchArea() {\r\n return searchArea;\r\n }", "private void searchBoxUsed(String txt){\n\t\t\tJFrame frame = new JFrame();\n\t\t\tArrayList<location> simLoc = dataBase.search(txt);\n\t\t\tif (simLoc == null) JOptionPane.showMess...
[ "0.6101292", "0.60915285", "0.60742426", "0.60719377", "0.57964796", "0.57472837", "0.57472837", "0.5742709", "0.57340485", "0.5687895", "0.5672183", "0.55940527", "0.5576325", "0.5574394", "0.5568967", "0.55610955", "0.55109626", "0.544128", "0.5409564", "0.5406306", "0.5332...
0.680598
0
INITIALIZE FUNCTIONS : Initialize choiceBox
private void choiceBoxInitializer() { searchChoiceBox.getItems().addAll("Learning Applications", "Learning Categories", "Learning Units"); searchChoiceBox.setValue("Learning Applications"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void populateChoiceBoxes() {\n subjects.setItems(FXCollections.observableArrayList(\"Select\", \"computers\", \"not-computers\", \"subjects\"));\n className.setItems(FXCollections.observableArrayList(\"Select\", \"101\", \"202\", \"303\", \"505\"));\n subjects.getSelectionModel().select...
[ "0.7240923", "0.69382423", "0.68639135", "0.68554926", "0.6732543", "0.6713188", "0.6572513", "0.65270585", "0.65246475", "0.65041816", "0.64961976", "0.647117", "0.6467898", "0.64526385", "0.6448986", "0.6425878", "0.6416316", "0.64101076", "0.6393951", "0.637291", "0.635867...
0.7935089
0
convert an array of bytes to an hexadecimal string
public static String toHexString(byte b[]) { int pos = 0; char[] c = new char[b.length * 2]; for (int i = 0; i < b.length; i++) { c[pos++] = toHex[(b[i] >> 4) & 0x0F]; c[pos++] = toHex[b[i] & 0x0f]; } return new String(c); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String bytesToHex(byte[] array) {\n StringBuffer hexString = new StringBuffer();\n for (int i = 0; i < array.length; i++) {\n String hex = Integer.toHexString(0xff & array[i]);\n if(hex.length() == 1) hexString.append('0');\n hexString.append(hex);\n }\n return hexString.to...
[ "0.8200108", "0.81243706", "0.80722374", "0.79899573", "0.7926233", "0.7890752", "0.78834647", "0.7878727", "0.7844702", "0.78423774", "0.7830724", "0.7818769", "0.7801084", "0.7780483", "0.77411366", "0.77136785", "0.7669858", "0.7649512", "0.7637138", "0.762156", "0.7592566...
0.68838054
80
Put quotes around a string and return it. Any " characters appearing in str are escaped
public static String getQuotedString(String str) { return '"' + str.replace("\"", "\\\"") + '"'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String str(String str) {\n\t\tStringBuffer result = new StringBuffer(\"\\\"\");\n\t\tfor (int i=0; i<str.length(); i++) {\n\t\t\tchar c = str.charAt(i);\n\t\t\tswitch (c) {\n\t\t\t case '\\n':\n\t\t\t\tresult.append(\"\\\\n\");\n\t\t\t\tbreak;\n\t\t\t case '\\t':\n\t\t\t\tresult.append(\"\\\\t\...
[ "0.7867064", "0.771058", "0.72705007", "0.7137976", "0.710426", "0.70967674", "0.7051929", "0.69500804", "0.69279927", "0.689118", "0.68704635", "0.6860525", "0.67633873", "0.6732606", "0.67253596", "0.67191726", "0.668299", "0.6659534", "0.6616277", "0.65799814", "0.6571218"...
0.78774655
0
Squeeze out all white space from a string and return the reduced string.
protected static String reduceString(String input) { String newString = input.toLowerCase(); int len = newString.length(); String retval = ""; for (int i = 0; i < len; i++) { if (newString.charAt(i) == ' ' || newString.charAt(i) == '\t') continue; else retval += newString.charAt(i); } return retval; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String squeezeWhitespace (String input){\r\n return Whitespace.matcher(input).replaceAll(\" \").trim();\r\n }", "protected static String trimWhitespace(String s) {\n int len = s.length();\n StringBuffer buf = new StringBuffer(len);\n for (int ii = 0; ii < len; ii++) {...
[ "0.80196947", "0.7419061", "0.7361601", "0.69824326", "0.6960885", "0.6953307", "0.6940444", "0.6844212", "0.68134654", "0.6813231", "0.680281", "0.67948604", "0.67175895", "0.6696258", "0.6647704", "0.6638677", "0.66368", "0.66213423", "0.6606618", "0.6605178", "0.6605178", ...
0.6679091
14
Generate a call identifier. This is useful when we want to generate a call identifier in advance of generating a message.
public synchronized String generateCallIdentifier(String address) { String date = new Long(System.currentTimeMillis() + callIDCounter++ + rand.nextLong()).toString(); byte cid[] = digester.digest(date.getBytes()); String cidString = Utils.toHexString(cid); return cidString + "@" + address; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String generateNewCallId()\n {\n\n\t\t// Generate the variant number\n\t\tint variable = NumberUtils.getIntRandom();\n\n\t\t// Convert to hex value\n\t\tString hex = NumberUtils.toHexValue(variable);\n\n\t\t// Compose the final call id\n\t\treturn \"{2B073406-65D8-A7B2-5B13-B287\" + hex + \"}\";\n\t}",...
[ "0.8379495", "0.7001227", "0.69783133", "0.6609439", "0.66006774", "0.656842", "0.6564051", "0.64523077", "0.6450595", "0.64445823", "0.6432438", "0.64305025", "0.6312512", "0.6291719", "0.6276618", "0.6268482", "0.62060195", "0.61962795", "0.6152315", "0.6135717", "0.6102395...
0.7780618
1
Generate a tag for a FROM header or TO header. Just return a random 4 digit integer (should be enough to avoid any clashes!) Tags only need to be unique within a call.
public synchronized String generateTag() { return Integer.toHexString(rand.nextInt()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getNewRandomTag() {\n\t\tbyte t[] = new byte[tagLength];\n\t\tfor (int i = 0; i < tagLength; i++) {\n\t\t\tt[i] = (byte) rand('a', 'z');\n\t\t}\n\t\treturn new String(t);\n\t}", "String generateUID();", "public String getFromTag() {\n return fromHeader == null? null: fromHeader.getTag();\n }...
[ "0.59313065", "0.5640508", "0.5522686", "0.5431885", "0.54279536", "0.540811", "0.5383585", "0.5363921", "0.53371793", "0.5237834", "0.522756", "0.52249235", "0.52141154", "0.52118367", "0.51824397", "0.51754606", "0.51753026", "0.51629484", "0.5150503", "0.51474476", "0.5140...
0.6346877
0
Generate a cryptographically random identifier that can be used to generate a branch identifier.
public synchronized String generateBranchId() { long num = rand.nextLong() + Utils.counter++ + System.currentTimeMillis(); byte bid[] = digester.digest(Long.toString(num).getBytes()); return SIPConstants.BRANCH_MAGIC_COOKIE + Utils.toHexString(bid); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String makeRandomID() {\n UUID uuid = UUID.randomUUID();\n return uuid.toString();\n }", "public String generateGUID() {\n Random randomGenerator = new Random();\n String hash = DigestUtils.shaHex(HASH_FORMAT.format(new Date())\n + ...
[ "0.7656533", "0.7401253", "0.7375264", "0.72758365", "0.726692", "0.7143249", "0.7077482", "0.70674914", "0.7048759", "0.7037193", "0.70288503", "0.70265394", "0.69909096", "0.6953004", "0.690671", "0.6887509", "0.68671453", "0.6848221", "0.68426335", "0.67855847", "0.6763505...
0.8233352
0
Created by vtarantik on 10.1.2017. Application component responsible for the dependency injection of the application singletons, such as network client, etc.
@Singleton @Component(modules = {AppModule.class}) public interface AppComponent { void inject(MovieListPresenter movieListPresenter); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Singleton\n@Component(modules = {AppModule.class, AppClientModule.class})\npublic interface AppComponent {\n Application getApplication();\n MainViewInteraction getWeatherInteractor();\n}", "@Singleton\n@Component(modules = {ContextModule.class, BusModule.class, GithubModule.class, GankModule.class, ZhiHu...
[ "0.7712496", "0.74920243", "0.74638724", "0.7453202", "0.74021834", "0.7392715", "0.7207616", "0.7161734", "0.7158684", "0.71481377", "0.7064321", "0.7041459", "0.7026089", "0.70151544", "0.70148623", "0.6963718", "0.6929122", "0.691811", "0.6890072", "0.6879232", "0.6871016"...
0.0
-1
WorldSettings$GameType getGameType(); WorldSettings$GameType getGameTypeById(int var0);
boolean getHardcoreEnabled();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int getGameType()\n\t{\n\t\treturn -1;\n\t}", "public static GameType getGameType() {\n\t\treturn type;\n\t}", "public String getGameType() {\n return gameType;\n }", "public PlayerTypes getPlayerType();", "public int getGameObject (GameObject gameObject){\n\t\tint typeObject =0;\r\...
[ "0.7365358", "0.70685434", "0.6933171", "0.65222627", "0.646938", "0.6457055", "0.6428952", "0.6262903", "0.6256093", "0.6192023", "0.6114626", "0.60880345", "0.6055377", "0.5956182", "0.59315914", "0.58679146", "0.5854683", "0.5852834", "0.5808353", "0.5788", "0.57791823", ...
0.0
-1
Creates and caches a JPEG screenshot of a given URL.
@Cacheable("screenshot-service") public byte[] getScreenshot(String url) { try { final Runpagespeed request = client.pagespeedapi().runpagespeed(url); request.setScreenshot(true); request.setRule(Collections.singletonList("MinifyHTML")); return request.execute().getScreenshot().decodeData(); } catch (IOException ex) { LOG.error("Couldn't get screenshot", ex); return new byte[]{}; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Bitmap download(String url){\n \tSystem.out.println(url);\n \t//url = \"http://140.115.113.164:8080/wardrobe/wardrobedata/pic/15b0cfe6f85d45b9b09d6cc4f8d139b749f1c58c4c8e4ec6982d843116b70aca-R.PNG\";\n \tBitmap bitmap = null;\n \tbitmap = downloadBitmap(url);\n \tif(bitmap == null)\n \tSys...
[ "0.6604563", "0.62885", "0.6153701", "0.6136073", "0.60917664", "0.60836077", "0.6063054", "0.60385096", "0.5978457", "0.59455156", "0.59246755", "0.58894837", "0.57465434", "0.5743744", "0.57412505", "0.57198095", "0.57046884", "0.56818527", "0.56270295", "0.56221664", "0.56...
0.6144937
3
Method: "action.LookupTableFromCache", v1 (2 tasks) Task 1: Undetermined Input: String action.LookupTableFromCache.TableName (tableName) Input: Map action.LookupTableFromCache.SearchParameters (searchParameters) Task 2: Custom code Output: Map action.LookupTableFromCache.Table (results)
public List<ErrorReport> lookupTableFromCache(ActionRequest request, ActionResponse response) throws CSWrapperException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void createLookupCache() {\n }", "TableCache(String paramterName, String tableName) {\n\n cache = new HashMap<>(1);\n cache.put(paramterName, tableName);\n\n }", "protected TableMetadata resolveTable(TableId tableId)\n {\n TableEntry entry = cache.computeIfAbsent(\n ...
[ "0.60607404", "0.5720578", "0.54800296", "0.5351144", "0.5333864", "0.52048844", "0.51677626", "0.50681055", "0.49953452", "0.4957014", "0.4943733", "0.4903865", "0.48656687", "0.48448282", "0.48334882", "0.48186663", "0.48149088", "0.48140904", "0.48060846", "0.48035842", "0...
0.569915
2
Method: "action.LookupTableColumnFromCache", v1 (2 tasks) Task 1: Undetermined Input: String action.LookupTableColumnFromCache.TableName (tableName) Input: String action.LookupTableColumnFromCache.ColumnName (columnName) Input: Map action.LookupTableColumnFromCache.SearchParameters (searchParameters) Task 2: Custom code Output: Array action.LookupTableColumnFromCache.Column (results)
public List<ErrorReport> lookupTableColumnFromCache(ActionRequest request, ActionResponse response) throws CSWrapperException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@RequestMapping(value = \"columns/{srcEnv}/{srcDB}/{table}\", method = {RequestMethod.GET})\n @ResponseBody\n public RestWrapper getColumsnList(@PathVariable(\"srcEnv\") String srcEnv, @PathVariable(\"srcDB\") String srcDB, @PathVariable(\"table\") String tableName) {\n RestWrapper restWrapper = null;...
[ "0.5708389", "0.5594477", "0.5280778", "0.52488846", "0.51681167", "0.5127585", "0.5107934", "0.50965285", "0.5005356", "0.49527687", "0.48998716", "0.489189", "0.486073", "0.479217", "0.4790461", "0.4784692", "0.47763944", "0.47752112", "0.477334", "0.47522944", "0.4752044",...
0.66334933
0
mostrar el bitmap tantos numeros de veces
public void drawBitmapText(Canvas c) { c.drawBitmap(frames[this.getcurrentFrame()], this.getX(),this.getY(),null); c.drawText(this.text, this.getX()+this.getWidth()+10,this.getY()+this.getHeight()+10, this.p); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void showbitmap4() {\n \n \t}", "public void showbitmap3() {\n \n \t}", "public String printImage() {\n StringBuilder builder = new StringBuilder();\n builder.append(\"ID:\" + this.id + \"; Data:\\n\");\n\n for (int i = 1; i <= this.data.length; i++) {\n T t = data[i - 1]...
[ "0.68133", "0.66618747", "0.65208656", "0.6373298", "0.6201388", "0.60281324", "0.59976375", "0.5977666", "0.5933073", "0.5928426", "0.59178776", "0.58446914", "0.5834491", "0.5825623", "0.5798114", "0.5717477", "0.56035286", "0.5585206", "0.55820537", "0.5565843", "0.5548941...
0.0
-1
Test a remote grantor
@Test public void testRemoteGrantor() throws Exception { IgnoredException.addIgnoredException("killing members ds"); final CacheTransactionManager txMgr = getCache().getCacheTransactionManager(); final String rgnName = getUniqueName(); Region rgn = getCache().createRegion(rgnName, getRegionAttributes()); rgn.create("key", null); Invoke.invokeInEveryVM(new SerializableRunnable("testRemoteGrantor: initial configuration") { @Override public void run() { try { Region rgn1 = getCache().createRegion(rgnName, getRegionAttributes()); rgn1.put("key", "val0"); } catch (CacheException e) { Assert.fail("While creating region", e); } } }); Host host = Host.getHost(0); VM vm0 = host.getVM(0); // VM vm1 = host.getVM(1); // VM vm2 = host.getVM(2); vm0.invoke(new SerializableRunnable("testRemoteGrantor: remote grantor init") { @Override public void run() { try { Region rgn1 = getCache().getRegion(rgnName); final CacheTransactionManager txMgr2 = getCache().getCacheTransactionManager(); txMgr2.begin(); rgn1.put("key", "val1"); txMgr2.commit(); assertNotNull(TXLockService.getDTLS()); assertTrue(TXLockService.getDTLS().isLockGrantor()); } catch (CacheException e) { fail("While performing first transaction"); } } }); // fix for bug 38843 causes the DTLS to be created in every TX participant assertNotNull(TXLockService.getDTLS()); assertFalse(TXLockService.getDTLS().isLockGrantor()); assertEquals("val1", rgn.getEntry("key").getValue()); vm0.invoke(new SerializableRunnable("Disconnect from DS, remote grantor death") { @Override public void run() { try { MembershipManagerHelper.crashDistributedSystem(getSystem()); } finally { // Allow getCache() to re-establish a ds connection closeCache(); } } }); // Make this VM the remote Grantor txMgr.begin(); rgn.put("key", "val2"); txMgr.commit(); assertNotNull(TXLockService.getDTLS()); assertTrue(TXLockService.getDTLS().isLockGrantor()); SerializableRunnable remoteComm = new SerializableRunnable("testRemoteGrantor: remote grantor commit") { @Override public void run() { try { Cache c = getCache(); CacheTransactionManager txMgr2 = c.getCacheTransactionManager(); Region rgn1 = c.getRegion(rgnName); if (rgn1 == null) { // This block should only execute on VM0 rgn1 = c.createRegion(rgnName, getRegionAttributes()); } txMgr2.begin(); rgn1.put("key", "val3"); txMgr2.commit(); if (TXLockService.getDTLS() != null) { assertTrue(!TXLockService.getDTLS().isLockGrantor()); } } catch (CacheException e) { Assert.fail("While creating region", e); } } }; Invoke.invokeInEveryVM(remoteComm); // vm1.invoke(remoteComm); // vm2.invoke(remoteComm); assertNotNull(TXLockService.getDTLS()); assertTrue(TXLockService.getDTLS().isLockGrantor()); assertEquals("val3", rgn.getEntry("key").getValue()); rgn.destroyRegion(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void approveGrant() {\n /*\n * Given\n */\n var uid = UID.apply();\n var grantFor = UserAuthorization.random();\n var privilege = DatasetPrivilege.CONSUMER;\n\n var executed = Executed.now(UserId.random());\n var request = AccessRequest.ap...
[ "0.5864683", "0.5767358", "0.5680803", "0.56550217", "0.5618339", "0.55840576", "0.5560663", "0.54996383", "0.54993236", "0.54260516", "0.5401129", "0.53746754", "0.53593814", "0.5300327", "0.5289086", "0.52781725", "0.52738017", "0.52665025", "0.52612734", "0.5245168", "0.52...
0.637144
0
Test the internal callbacks used for what else... testing
@Test public void testInternalCallbacks() throws Exception { final CacheTransactionManager txMgr = getCache().getCacheTransactionManager(); final String rgnName1 = getUniqueName() + "_1"; final String rgnName2 = getUniqueName() + "_2"; final String rgnName3 = getUniqueName() + "_3"; Region rgn1 = getCache().createRegion(rgnName1, getRegionAttributes()); Host host = Host.getHost(0); VM vm0 = host.getVM(0); VM vm1 = host.getVM(1); SerializableRunnable createRgn = new SerializableRunnable("testInternalCallbacks: initial configuration") { @Override public void run() { try { Region rgn1a = getCache().createRegion(rgnName1, getRegionAttributes()); Region rgn2 = getCache().createRegion(rgnName2, getRegionAttributes()); Region rgn3 = getCache().createRegion(rgnName3, getRegionAttributes(Scope.DISTRIBUTED_NO_ACK)); rgn1a.create("key", null); rgn2.create("key", null); rgn3.create("key", null); } catch (CacheException e) { Assert.fail("While creating region", e); } } }; vm0.invoke(createRgn); vm1.invoke(createRgn); // Standard commit check txMgr.begin(); rgn1.put("key", "value0"); txMgr.commit(); SerializableRunnable checkRgn1 = new SerializableRunnable("testInternalCallbacks: check rgn1 valus") { @Override public void run() { Region rgn1a = getCache().getRegion(rgnName1); assertNotNull(rgn1a); assertEquals("value0", rgn1a.getEntry("key").getValue()); } }; vm0.invoke(checkRgn1); vm1.invoke(checkRgn1); { final byte[] cbSensors = {0, 0, 0, 0, 0, 0, 0, 0, 0}; txMgr.begin(); ((TXStateProxyImpl) ((TXManagerImpl) txMgr).getTXState()).forceLocalBootstrap(); setInternalCallbacks(((TXManagerImpl) txMgr).getTXState(), cbSensors); rgn1.put("key", "value1"); txMgr.commit(); for (int i = cbSensors.length - 3; i >= 0; --i) { assertEquals("Internal callback " + i + " was not called the expected number of times!", (byte) 1, cbSensors[i]); } for (int i = cbSensors.length - 1; i > cbSensors.length - 3; --i) { assertEquals( "Internal \"during\" callback " + i + " invoked an unexpected number of times!", (byte) 2, cbSensors[i]); } } SerializableRunnable checkRgn1Again = new SerializableRunnable("testInternalCallbacks: validate remote values") { @Override public void run() { Region rgn1a = getCache().getRegion(rgnName1); assertNotNull(rgn1a); assertEquals("value1", rgn1a.getEntry("key").getValue()); } }; vm0.invoke(checkRgn1Again); vm1.invoke(checkRgn1Again); // Try 2 regions Region rgn2 = getCache().createRegion(rgnName2, getRegionAttributes()); txMgr.begin(); rgn1.put("key", "value2"); rgn2.put("key", "value2"); txMgr.commit(); SerializableRunnable checkRgn12 = new SerializableRunnable("testInternalCallbacks: check rgn1 valus") { @Override public void run() { Region rgn1a = getCache().getRegion(rgnName1); assertNotNull(rgn1a); assertEquals("value2", rgn1a.getEntry("key").getValue()); Region rgn2a = getCache().getRegion(rgnName2); assertNotNull(rgn2a); assertEquals("value2", rgn2a.getEntry("key").getValue()); } }; vm0.invoke(checkRgn12); vm1.invoke(checkRgn12); { final byte[] cbSensors = {0, 0, 0, 0, 0, 0, 0, 0, 0}; txMgr.begin(); ((TXStateProxyImpl) ((TXManagerImpl) txMgr).getTXState()).forceLocalBootstrap(); setInternalCallbacks(((TXManagerImpl) txMgr).getTXState(), cbSensors); rgn1.put("key", "value3"); rgn2.put("key", "value3"); txMgr.commit(); for (int i = cbSensors.length - 3; i >= 0; i--) { assertEquals("Internal callback " + i + " was not called the expected number of times!", (byte) 1, cbSensors[i]); } for (int i = cbSensors.length - 1; i > cbSensors.length - 3; --i) { assertEquals( "Internal \"during\" callback " + i + " invoked an unexpected number of times!", (byte) 2, cbSensors[i]); } } SerializableRunnable checkRgn12Again = new SerializableRunnable("testInternalCallbacks: validate both regions remote values") { @Override public void run() { Region rgn1a = getCache().getRegion(rgnName1); assertNotNull(rgn1a); assertEquals("value3", rgn1a.getEntry("key").getValue()); Region rgn2a = getCache().getRegion(rgnName2); assertNotNull(rgn2a); assertEquals("value3", rgn2a.getEntry("key").getValue()); } }; vm0.invoke(checkRgn12Again); vm1.invoke(checkRgn12Again); // Try a third region (D_NO_ACK) Region rgn3 = getCache().createRegion(rgnName3, getRegionAttributes(Scope.DISTRIBUTED_NO_ACK)); txMgr.begin(); rgn1.put("key", "value4"); rgn2.put("key", "value4"); rgn3.put("key", "value4"); txMgr.commit(); SerializableRunnable checkRgn123 = new SerializableRunnable("testInternalCallbacks: check rgn1 valus") { @Override public void run() { Region rgn1a = getCache().getRegion(rgnName1); assertNotNull(rgn1a); assertEquals("value4", rgn1a.getEntry("key").getValue()); Region rgn2a = getCache().getRegion(rgnName2); assertNotNull(rgn2a); assertEquals("value4", rgn2a.getEntry("key").getValue()); Region rgn3a = getCache().getRegion(rgnName3); assertNotNull(rgn3a); assertEquals("value4", rgn3a.getEntry("key").getValue()); } }; vm0.invoke(checkRgn123); vm1.invoke(checkRgn123); { final byte[] cbSensors = {0, 0, 0, 0, 0, 0, 0, 0, 0}; txMgr.begin(); ((TXStateProxyImpl) ((TXManagerImpl) txMgr).getTXState()).forceLocalBootstrap(); setInternalCallbacks(((TXManagerImpl) txMgr).getTXState(), cbSensors); rgn1.put("key", "value5"); rgn2.put("key", "value5"); rgn3.put("key", "value5"); txMgr.commit(); for (int i = cbSensors.length - 3; i >= 0; i--) { assertEquals("Internal callback " + i + " was not called the expected number of times!", (byte) 1, cbSensors[i]); } for (int i = cbSensors.length - 1; i > cbSensors.length - 3; --i) { assertEquals( "Internal \"during\" callback " + i + " invoked an unexpected number of times!", (byte) 2, cbSensors[i]); } } SerializableRunnable checkRgn123Again = new SerializableRunnable("testInternalCallbacks: validate both regions remote values") { @Override public void run() { Region rgn1a = getCache().getRegion(rgnName1); assertNotNull(rgn1a); assertEquals("value5", rgn1a.getEntry("key").getValue()); Region rgn2a = getCache().getRegion(rgnName2); assertNotNull(rgn2a); assertEquals("value5", rgn2a.getEntry("key").getValue()); Region rgn3a = getCache().getRegion(rgnName3); assertNotNull(rgn3a); assertEquals("value5", rgn3a.getEntry("key").getValue()); } }; vm0.invoke(checkRgn123Again); vm1.invoke(checkRgn123Again); rgn1.destroyRegion(); rgn2.destroyRegion(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void assertCallbacksReset()\n {\n int expectedCalls = 0;\n this.assertCallsExpected(expectedCalls);\n }", "@Test\n public void testRwbmInternal()\n {\n generateEvents(\"dist-rwbm-internal-test\");\n checkEvents(false, true);\n BackingMapListener.INSTANCE.assert...
[ "0.66224474", "0.64852947", "0.62815815", "0.6274758", "0.6213628", "0.6156129", "0.6063455", "0.6053142", "0.60152674", "0.5965846", "0.59598017", "0.5958036", "0.5955695", "0.59298456", "0.5918955", "0.5918955", "0.5884312", "0.5881294", "0.5873374", "0.5864566", "0.585171"...
0.6030139
8
Test distributed ack transactions that consist only of data from loaded values
@Test public void testDACKLoadedMessage() throws Exception { final CacheTransactionManager txMgr = getCache().getCacheTransactionManager(); final String rgnName = getUniqueName(); AttributesFactory factory = new AttributesFactory(); factory.setScope(Scope.DISTRIBUTED_ACK); factory.setEarlyAck(false); factory.setCacheLoader(new CacheLoader() { @Override public Object load(LoaderHelper helper) { return "val" + helper.getArgument(); } @Override public void close() {} }); Region rgn = getCache().createRegion(rgnName, factory.create()); Invoke.invokeInEveryVM(new SerializableRunnable("testDACKLoadedMessage: intial configuration") { @Override public void run() { try { AttributesFactory factory2 = new AttributesFactory(); factory2.setScope(Scope.DISTRIBUTED_ACK); factory2.setEarlyAck(false); // factory.setDataPolicy(DataPolicy.REPLICATE); factory2.setMirrorType(MirrorType.KEYS); getCache().createRegion(rgnName, factory2.create()); } catch (CacheException e) { Assert.fail("While creating region", e); } } }); // Confirm the standard case txMgr.begin(); rgn.put("key1", "val1"); txMgr.commit(); assertEquals("val1", rgn.getEntry("key1").getValue()); Invoke .invokeInEveryVM(new SerializableRunnable("testDACKLoadedMessage: confirm standard case") { @Override public void run() { Region rgn1 = getCache().getRegion(rgnName); assertEquals("val1", rgn1.getEntry("key1").getValue()); } }); // Confirm loaded value case txMgr.begin(); rgn.get("key2", 2); txMgr.commit(); assertEquals("val2", rgn.getEntry("key2").getValue()); Invoke .invokeInEveryVM(new SerializableRunnable("testDACKLoadedMessage: confirm standard case") { @Override public void run() { Region rgn1 = getCache().getRegion(rgnName); assertEquals("val2", rgn1.getEntry("key2").getValue()); } }); // This should use the ack w/ the lockid txMgr.begin(); rgn.put("key3", "val3"); rgn.get("key4", 4); txMgr.commit(); Invoke .invokeInEveryVM(new SerializableRunnable("testDACKLoadedMessage: confirm standard case") { @Override public void run() { Region rgn1 = getCache().getRegion(rgnName); assertEquals("val3", rgn1.getEntry("key3").getValue()); assertEquals("val4", rgn1.getEntry("key4").getValue()); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testAcknowledgeMessageDownloadAcknowledgeText() {\n Session session = HibernateUtil.getSessionFactory().openSession();\n session.beginTransaction();\n FrinmeDbText msgtext = new FrinmeDbText();\n msgtext.setText(textmsg_org);\n session.save(msgtext);\n ...
[ "0.5793896", "0.5668538", "0.564763", "0.56390756", "0.5625518", "0.5512688", "0.54683185", "0.54362166", "0.52882695", "0.5274667", "0.52455294", "0.5236565", "0.5220103", "0.52163315", "0.52155274", "0.52147335", "0.51852626", "0.51648384", "0.5163942", "0.51572263", "0.514...
0.69354045
0
Returns the GemFire system ID of the VM on which this method is run
public static Serializable getSystemId() { Serializable ret = null; if (getSystemStatic() != null) { ret = getSystemStatic().getDistributionManager().getId(); } return ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getVirtualSystemIdentifier() {\n return virtualSystemIdentifier;\n }", "public String getSystemId() {\n return agentConfig.getSystemId();\n }", "java.lang.String getMachineId();", "int getVmNum();", "public Long getVmInstanceId() {\n return vmInstanceId;\n }", "public S...
[ "0.7163737", "0.6876142", "0.68188274", "0.67059714", "0.6673966", "0.66327757", "0.6582266", "0.65240264", "0.64430815", "0.6430499", "0.63993055", "0.6370495", "0.6368639", "0.6321506", "0.62671787", "0.61826956", "0.61342865", "0.6109426", "0.6086754", "0.6063413", "0.6049...
0.6623501
6
Test update of lock batch participants (needed when new members are discovered between a commit's locking phase and the applicatoin of the Region's data. See bug 32999
@Test public void testLockBatchParticipantsUpdate() throws Exception { final String rgnName = getUniqueName(); Region rgn = getCache().createRegion(rgnName, getRegionAttributes()); rgn.create("key", null); Host host = Host.getHost(0); VM vm0 = host.getVM(0); VM vm1 = host.getVM(1); VM vm2 = host.getVM(2); SerializableRunnable initRegions = new SerializableRunnable("testLockBatchParticipantsUpdate: initial configuration") { @Override public void run() { try { Region rgn1 = getCache().createRegion(rgnName, getRegionAttributes()); rgn1.create("key", null); } catch (CacheException e) { Assert.fail("While creating region", e); } } }; vm0.invoke(initRegions); vm1.invoke(initRegions); rgn.put("key", "val1"); // Connect vm2 also since it may have been shutdown when logPerTest // is turned on vm2.invoke(new SerializableRunnable("connect vm2 if not connected") { @Override public void run() { getCache(); } }); // Make VM0 the Grantor vm0.invoke(new SerializableRunnable("testLockBatchParticipantsUpdate: remote grantor init") { @Override public void run() { try { Region rgn1 = getCache().getRegion(rgnName); final CacheTransactionManager txMgr2 = getCache().getCacheTransactionManager(); assertEquals("val1", rgn1.getEntry("key").getValue()); txMgr2.begin(); rgn1.put("key", "val2"); txMgr2.commit(); assertNotNull(TXLockService.getDTLS()); assertTrue(TXLockService.getDTLS().isLockGrantor()); } catch (CacheException e) { fail("While performing first transaction"); } } }); // fix for bug 38843 causes the DTLS to be created in every TX participant assertNotNull(TXLockService.getDTLS()); assertFalse(TXLockService.getDTLS().isLockGrantor()); assertEquals("val2", rgn.getEntry("key").getValue()); // Build sets of System Ids and set them up on VM0 for future batch member checks HashSet txMembers = new HashSet(4); txMembers.add(getSystemId()); txMembers.add(vm0.invoke(TXDistributedDUnitTest::getSystemId)); vm0.invoke(() -> TXDistributedDUnitTest.setPreTXSystemIds(txMembers)); txMembers.add(vm2.invoke(TXDistributedDUnitTest::getSystemId)); vm0.invoke(() -> TXDistributedDUnitTest.setPostTXSystemIds(txMembers)); // Don't include the tx host in the batch member set(s) Serializable vm1HostId = vm1.invoke(TXDistributedDUnitTest::getSystemId); vm0.invoke(() -> TXDistributedDUnitTest.setTXHostSystemId(vm1HostId)); // Create a TX on VM1 (such that it will ask for locks on VM0) that uses the callbacks // to pause and give us time to start a GII process on another VM vm1.invoke(new SerializableRunnable( "testLockBatchParticipantsUpdate: slow tx (one that detects new member)") { @Override public void run() { // fix for bug 38843 causes the DTLS to be created in every TX participant assertNotNull(TXLockService.getDTLS()); assertFalse(TXLockService.getDTLS().isLockGrantor()); PausibleTX pauseTXRunnable = new PausibleTX(); pauseTXRunnable.rgnName = rgnName; pauseTXRunnable.myCache = getCache(); pauseTXRunnable.key = "key"; pauseTXRunnable.value = "val3"; new Thread(pauseTXRunnable, "PausibleTX Thread").start(); synchronized (PausibleTX.class) { while (!pauseTXRunnable.getIsRunning()) { try { PausibleTX.class.wait(); } catch (InterruptedException ie) { fail("Did not expect " + ie); } } } } }); // Verify that the lock batch exists VM0 and has the size we expect vm0.invoke(new SerializableRunnable( "testLockBatchParticipantsUpdate: Verify lock batch exists on VM0 with expected size") { @Override public void run() { getCache().getRegion(rgnName); TXLockServiceImpl dtls = (TXLockServiceImpl) TXLockService.getDTLS(); assertNotNull(dtls); assertTrue(dtls.isLockGrantor()); DLockService dLockSvc = dtls.getInternalDistributedLockService(); assertNotNull(TXDistributedDUnitTest.txHostId); DLockBatch[] batches = dLockSvc.getGrantor() .getLockBatches((InternalDistributedMember) TXDistributedDUnitTest.txHostId); assertEquals(batches.length, 1); TXLockBatch txLockBatch = (TXLockBatch) batches[0]; assertNotNull(txLockBatch); assertNotNull(TXDistributedDUnitTest.preTXSystemIds); assertTrue( "Members in lock batch " + txLockBatch.getParticipants() + " not the same as " + TXDistributedDUnitTest.preTXSystemIds, txLockBatch.getParticipants().equals(TXDistributedDUnitTest.preTXSystemIds)); } }); // Start a GII process on VM2 vm2.invoke(new SerializableRunnable("testLockBatchParticipantsUpdate: start GII") { @Override public void run() { try { AttributesFactory factory = new AttributesFactory(); factory.setScope(Scope.DISTRIBUTED_ACK); factory.setEarlyAck(false); factory.setDataPolicy(DataPolicy.REPLICATE); getCache().createRegion(rgnName, factory.create()); } catch (CacheException e) { Assert.fail("While creating region", e); } } }); // Notify TX on VM1 so that it can continue vm1.invoke( new SerializableRunnable("testLockBatchParticipantsUpdate: Notfiy VM1 TX to continue") { @Override public void run() { synchronized (PausibleTX.class) { // Notify VM1 that it should proceed to the TX send PausibleTX.class.notifyAll(); // Wait until VM1 has sent the TX try { PausibleTX.class.wait(); } catch (InterruptedException ie) { fail("Did not expect " + ie); } } } }); // Verify that the batch on VM0 has added VM2 into the set vm0.invoke(new SerializableRunnable( "testLockBatchParticipantsUpdate: Verify lock batch contains VM2") { @Override public void run() { getCache().getRegion(rgnName); TXLockServiceImpl dtls = (TXLockServiceImpl) TXLockService.getDTLS(); assertNotNull(dtls); assertTrue(dtls.isLockGrantor()); DLockService dLockSvc = dtls.getInternalDistributedLockService(); assertNotNull(TXDistributedDUnitTest.txHostId); DLockBatch[] batches = dLockSvc.getGrantor() .getLockBatches((InternalDistributedMember) TXDistributedDUnitTest.txHostId); assertEquals(batches.length, 1); TXLockBatch txLockBatch = (TXLockBatch) batches[0]; assertNotNull(txLockBatch); assertNotNull(TXDistributedDUnitTest.preTXSystemIds); assertTrue( "Members in lock batch " + txLockBatch.getParticipants() + " not the same as " + TXDistributedDUnitTest.postTXSystemIds, txLockBatch.getParticipants().equals(TXDistributedDUnitTest.postTXSystemIds)); } }); // fix for bug 38843 causes the DTLS to be created in every TX participant assertNotNull(TXLockService.getDTLS()); assertFalse(TXLockService.getDTLS().isLockGrantor()); assertEquals("val3", rgn.getEntry("key").getValue()); // Notify TX on VM1 that it can go ahead and complete the TX vm1.invoke( new SerializableRunnable("testLockBatchParticipantsUpdate: Notfiy VM1 TX to finish") { @Override public void run() { synchronized (PausibleTX.class) { // Notify VM1 that it should finish the TX PausibleTX.class.notifyAll(); } } }); rgn.destroyRegion(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int updateParticipant(TccTransaction tccTransaction);", "public void test2_updateSingletonList() {\n ArrayList<Participant> dummyList = new ArrayList<>();\n Participant dummy1 = new Participant(\"UpdateDummy1\");\n Participant dummy2 = new Participant(\"UpdateDummy2\");\n Participant ...
[ "0.59308535", "0.5820273", "0.5756388", "0.5662491", "0.5633997", "0.5585301", "0.55777454", "0.55528116", "0.54999596", "0.54809433", "0.54615533", "0.5437349", "0.5294243", "0.529269", "0.5291293", "0.5285004", "0.52546626", "0.5219582", "0.51851404", "0.51743984", "0.51690...
0.75593203
0
fix for bug 38843 causes the DTLS to be created in every TX participant
@Override public void run() { assertNotNull(TXLockService.getDTLS()); assertFalse(TXLockService.getDTLS().isLockGrantor()); PausibleTX pauseTXRunnable = new PausibleTX(); pauseTXRunnable.rgnName = rgnName; pauseTXRunnable.myCache = getCache(); pauseTXRunnable.key = "key"; pauseTXRunnable.value = "val3"; new Thread(pauseTXRunnable, "PausibleTX Thread").start(); synchronized (PausibleTX.class) { while (!pauseTXRunnable.getIsRunning()) { try { PausibleTX.class.wait(); } catch (InterruptedException ie) { fail("Did not expect " + ie); } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void writeToTransport(INetworkContext context, ByteBuffer buffer) throws MqttsnException {\n if(context.getReceivePort() == options.getSecurePort()){\n\n //-- use the DTLS version...\n\n } else {\n super.writeToTransport(context, buffer);\n }\n }", "private st...
[ "0.56608546", "0.5649102", "0.54663396", "0.54315734", "0.5424284", "0.5405531", "0.5390632", "0.53705657", "0.5330268", "0.5299093", "0.52577883", "0.5219361", "0.5204013", "0.5175257", "0.5172295", "0.51624346", "0.51567006", "0.5155743", "0.511638", "0.51135904", "0.510117...
0.47249335
71
private final Region r;
@Override public void call(LocalRegion r, Operation op, RegionEntry re) { if (TROUBLE_KEY.equals(re.getKey())) { throw new DiskAccessException(TROUBLE_KEY, r); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Region region();", "Region region();", "Region region();", "Region region();", "IRegion getRegion();", "public Region getRegion() {\n return region;\n }", "public CoordinateRadius getRegion();", "public Region() { }", "public Region() {\n }", "public EnumRegion getRegion()\n {\n ...
[ "0.7627276", "0.7627276", "0.7627276", "0.7627276", "0.72616607", "0.7146784", "0.7084651", "0.70411545", "0.6872719", "0.6731915", "0.66665304", "0.666629", "0.6656427", "0.64966995", "0.64966995", "0.64966995", "0.64917535", "0.64917535", "0.6461667", "0.6431708", "0.641319...
0.0
-1
metodo setter establece valor de propiedad el void no hace return
public void setColor(String color) { this.color=color; //el this se coloca a la propiedad de la clase // para diferenciarla del parametro }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setValor(String valor)\n/* 22: */ {\n/* 23:34 */ this.valor = valor;\n/* 24: */ }", "public void setdat()\n {\n }", "@Test\r\n public void testSetValor() {\r\n \r\n }", "private void setData() {\n\n }", "public void setEmpresa(Empresa empresa)\r\n/* 89: */ ...
[ "0.7072895", "0.69805866", "0.6781016", "0.6780077", "0.67322654", "0.66929114", "0.66425663", "0.66194934", "0.66194934", "0.66002804", "0.6591011", "0.65888125", "0.6573267", "0.65531254", "0.654646", "0.6529701", "0.6499512", "0.64905846", "0.64805514", "0.64731455", "0.64...
0.0
-1
metodo getter que devuelve valor de propiedad
public String getColor() { return "Elcolor del vehiculo es: "+color; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Object getValor();", "public String getValor()\n/* 17: */ {\n/* 18:27 */ return this.valor;\n/* 19: */ }", "public String get();", "public String getProperty();", "public java.lang.String getValor();", "@Override\n String get();", "Property getProperty();", "Property getProperty();", ...
[ "0.7213525", "0.69438964", "0.6821853", "0.67908645", "0.6784822", "0.6782854", "0.67219657", "0.67219657", "0.6711908", "0.6711908", "0.6711908", "0.66527843", "0.6627222", "0.6608377", "0.65968776", "0.65967333", "0.6578258", "0.65699184", "0.65637416", "0.6523895", "0.6522...
0.0
-1
TODO update patient id
private void updateComposition(String uid, CompositionContent content) throws Exception { Map<String, Object> acont = content.getContent(); composition.set("/uid", acont); for (String path : acont.keySet()) { Object cont = acont.get(path); if (cont == null) { cont = new DvCodedText("unknown", new CodePhrase( TerminologyService.OPENEHR, "253")); } composition.set(path, cont); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPatientId(int patientId) {\n\t\t\t\n\t\tthis.patientId=patientId;\t\t\n\t}", "public void setPatientId(String patientId)\n {\n this.patientId = patientId;\n }", "public void setPatientId(String patientId){\n\t\tthis.patientId = patientId;\n\t}", "public void setPatientID(java.lang...
[ "0.7268636", "0.7220609", "0.7044608", "0.6897892", "0.6897892", "0.68391734", "0.68346995", "0.6810576", "0.6791298", "0.6790791", "0.6777771", "0.67756015", "0.67529094", "0.67133874", "0.66838366", "0.6680464", "0.66625285", "0.6649986", "0.6643298", "0.6626605", "0.660139...
0.0
-1
Created by Abhishek on 30032017.
public interface ApplyInternshipCallback { void onSuccess(ApplyInternData applyInternData); void onFailure(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "public final void mo51373a() {\n }", "private stendhal() {\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Overri...
[ "0.6035106", "0.5941473", "0.5938361", "0.58452576", "0.58423066", "0.5785802", "0.5729627", "0.5723349", "0.5705711", "0.5705711", "0.56891584", "0.5685691", "0.5680849", "0.5650604", "0.56486726", "0.5646901", "0.563643", "0.563643", "0.563643", "0.563643", "0.563643", "0...
0.0
-1
A new socket connection has been opened on the server.
public void acceptedSocket(long socketId) {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void openServer() {\n try {\n this.serverSocket = new ServerSocket(this.portNumber);\n } catch (IOException ex) {\n System.out.println(ex);\n }\n }", "private void openConnection() throws IOException, CorruptedPacketException {\n ExecutorService executo...
[ "0.69632393", "0.6886508", "0.67753005", "0.6764306", "0.6756639", "0.6723944", "0.67069745", "0.6671824", "0.6616077", "0.66123635", "0.65710586", "0.6570942", "0.6559668", "0.65388906", "0.64947116", "0.64827603", "0.6476927", "0.6446936", "0.64439046", "0.6405289", "0.6371...
0.0
-1