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
update fields mapping ppd
public FieldsTemplateLibrary templateFieldLibraryUpdate(FieldsTemplateLibrary entity) { FieldsTemplateLibraryDAO dao = new FieldsTemplateLibraryDAO(); return dao.save(entity); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateNonDynamicFields() {\n\n\t}", "@Override\r\n\tpublic void update( UserFields oldFields, UserFields newFields ) {\n\t\t\r\n\t}", "protected abstract boolean saveFields(Map changedFields_p) throws Exception;", "@Override\n\tpublic void update(finalDataBean t, String[] fields) throws Exception...
[ "0.7054353", "0.618109", "0.6167793", "0.60917205", "0.60785925", "0.6011482", "0.59822565", "0.5893844", "0.58928823", "0.583559", "0.5754741", "0.574119", "0.5701175", "0.56790847", "0.5662066", "0.56349003", "0.5626534", "0.55785394", "0.55678546", "0.5523326", "0.55160874...
0.0
-1
methods template folders get all entities by Parent
public ArrayList<FolderDTO> templateGetFoldersByParent(Long idParent) { ArrayList<FolderDTO> returnList = new ArrayList<>(); FolderDAO dao = new FolderDAO(); Collection<Folder> folderSub = dao.getByParent(idParent); for(Folder folder:folderSub){ FolderDTO folderDto = new FolderDTO(); folderDto.setId(folder.getId()); folderDto.setTitle(folder.getTitle()); returnList.add(folderDto); } return returnList; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Collection findTemplatesByOwner(Agent owner);", "List<FileEntity> findByParentFile(FileEntity parentFile);", "@Override\r\n public List<Folder> getAllFolder() {\n return folderRepository.findAll();\r\n }", "@Override\r\n public List<EntityPath> getAllEntityPaths(boolean recursive) {\n ...
[ "0.6001752", "0.59686476", "0.58679163", "0.5840998", "0.5838206", "0.5772609", "0.57361555", "0.56851894", "0.56815344", "0.5666647", "0.5526647", "0.5492345", "0.54694265", "0.5387912", "0.53293246", "0.532303", "0.52316576", "0.5180785", "0.51406544", "0.5134626", "0.51260...
0.6200476
0
methods template folders methods Metadata Insert metadata template
public void templateMetadataInsert(Long idTemplate,Long idFieldLib) { FieldsTemplateLibrary lib = new FieldsTemplateLibrary(); lib.setId(idFieldLib); FieldsMappingMeta metadata = new FieldsMappingMeta(); metadata.setTemplateId(idTemplate); metadata.setFieldsTemplateLibrary(lib); FieldsMappingMetaDAO metaDao = new FieldsMappingMetaDAO(); metaDao.saveNew(metadata); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface CreateInfo {\n\n /**\n * 创建目录容器\n */\n void superContextPath();\n\n}", "public abstract String getImportFromFileTemplate( );", "public abstract String getTemplateName();", "public abstract void mo32008e(TemplateInfo templateInfo);", "public interface IPSTemplateService extend...
[ "0.5581962", "0.55654895", "0.55431056", "0.54977936", "0.54126936", "0.54063636", "0.5382827", "0.5378468", "0.52986604", "0.5289915", "0.5280485", "0.5244584", "0.52299786", "0.5201039", "0.5177456", "0.5177456", "0.51678336", "0.5164087", "0.5140442", "0.5132747", "0.51138...
0.5212549
13
Get list Metadata Template
public List<String> getMetadataTemplate(Long id,Boolean loadNameMetadata){ List<String> metadata = new ArrayList<>(); FieldsMappingMetaDAO dao = new FieldsMappingMetaDAO(); FieldsTemplateLibraryDAO fieldDao = new FieldsTemplateLibraryDAO(); Collection<FieldsMappingMeta>fields = dao.getAllByIdTemplate(id); FieldsTemplateLibrary ftl = new FieldsTemplateLibrary(); if(fields!=null && !fields.isEmpty()) { for (FieldsMappingMeta item : fields) { if(loadNameMetadata) metadata.add(item.getFieldsTemplateLibrary().getNameSource().toString()); else metadata.add(item.getFieldsTemplateLibrary().getId().toString()); } } return metadata; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.util.List<java.lang.String>\n getMetadataList();", "java.util.List<java.lang.String>\n getMetadataList();", "com.google.dataflow.v1beta3.TemplateMetadata getMetadata();", "public List<VueMetadataElement> getMetadata() { return dataList; }", "public static ArrayList<Metadata> getMetadata() {\...
[ "0.70591384", "0.70591384", "0.69499713", "0.6323503", "0.6304838", "0.62723154", "0.62723154", "0.62723154", "0.62723154", "0.62723154", "0.6250294", "0.60727584", "0.6059256", "0.5971653", "0.5971653", "0.594879", "0.59110695", "0.58765197", "0.58238137", "0.58207256", "0.5...
0.6869153
3
TODO Autogenerated method stub
public static void main(String[] args) { Object a = new ClassObj(); ((A) a).Calling(); }
{ "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
========================================================= === Redundant code ====================================== ========================================================= === This code's the same in all instruction classes, ==== === But Java lacks the mechanism to allow stuffing it === === in super() where it belongs. ======================== =========================================================
public static Instruction getInstance() { return staticInstance; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void method_6191() {\r\n super.method_6191();\r\n }", "@Override\n\tpublic void processingInstruction() {\n\t\t\n\t}", "public void method_6349() {\r\n super.method_6349();\r\n }", "protected void method_3848() {\r\n super.method_3848();\r\n }", "public /* bridge */ /* synthetic...
[ "0.6451167", "0.6363185", "0.63262373", "0.6299552", "0.6247741", "0.61594784", "0.61044043", "0.60725284", "0.6010411", "0.6010411", "0.6010411", "0.5944918", "0.5922746", "0.59199125", "0.5918691", "0.5917217", "0.58878136", "0.585011", "0.5836845", "0.58099145", "0.5804624...
0.0
-1
Calls the Instance(String,int) constructor to track this instruction.
private USI_ADRC(boolean ignored) { super(opId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Instance() {\n }", "public TestMe()\r\n/* 11: */ {\r\n/* 12:10 */ this.myNumber = (instanceCounter++);\r\n/* 13: */ }", "Instruction createInstruction();", "public MyMemory(){\n super();\n this.instruction = new Instruction(); //Only the IR register will use this attribute...
[ "0.66067994", "0.63238096", "0.61963606", "0.6129345", "0.603348", "0.6019667", "0.59329814", "0.58172446", "0.573974", "0.5704302", "0.56475246", "0.5644165", "0.5636056", "0.56138504", "0.56138504", "0.56138504", "0.5607225", "0.55920583", "0.55873746", "0.5583796", "0.5560...
0.0
-1
Default constructor; does nothing.
private USI_ADRC() {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }", "void DefaultConstructor(){}", "defaultConstructor(){}", "private Default()\n {}", "Constructor() {\r\n\t\t \r\n\t }", "private Instantiation(){}", "ConstructorPractice () {\n\t\tSystem.out.println...
[ "0.8228421", "0.78405815", "0.78091526", "0.76478904", "0.73765695", "0.7319655", "0.7294747", "0.729128", "0.7256915", "0.7252719", "0.7107432", "0.70759386", "0.70756143", "0.70189667", "0.6995993", "0.69906056", "0.69902295", "0.69599766", "0.6946805", "0.6942554", "0.6940...
0.0
-1
Returns the lower bound of data.
public abstract double[] getLowerBound();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getLowerBound() {\r\n return lowerBound;\r\n }", "public String getLower() {\n return lowerBound;\n }", "public int getLowerBound ();", "public float getLimit_lin_x_lower() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readFloat(__io__ad...
[ "0.79914546", "0.73704106", "0.72783595", "0.72484696", "0.724199", "0.7235916", "0.7164531", "0.7089576", "0.70561755", "0.7016823", "0.69977546", "0.6852932", "0.6848016", "0.67816114", "0.6748891", "0.6744286", "0.6728228", "0.6713928", "0.6686747", "0.6684574", "0.6664732...
0.7074913
8
Returns the upper bound of data.
public abstract double[] getUpperBound();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getUpperBound() {\r\n return upperBound;\r\n }", "public int getUpperBound() {\n\t\treturn upperBound;\n\t}", "public int getUpperBound() {\n\t\treturn this.upperBound;\n\t}", "public int upperBound() {\n\t\tif(step > 0)\n\t\t\treturn last;\n\t\telse\n\t\t\treturn first;\n\t}", "public...
[ "0.8104707", "0.7975678", "0.7970075", "0.7649027", "0.73729205", "0.7353143", "0.7296148", "0.71782875", "0.7131769", "0.71259505", "0.70564723", "0.69525635", "0.67851686", "0.6784993", "0.6744516", "0.66773987", "0.66558355", "0.6641307", "0.66271955", "0.66211236", "0.661...
0.7255567
7
Returns a canvas of the plot.
public Canvas canvas() { Canvas canvas = new Canvas(getLowerBound(), getUpperBound()); canvas.add(this); return canvas; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private JPanel createCanvas() {\n return new JPanel() {\n\n @Override\n protected void paintComponent(Graphics g) {\n super.paintComponent(g);\n element.drawMe((Graphics2D) g);\n }\n\n };\n }", "public Canvas getCanvas()\n {\n ...
[ "0.7109528", "0.68439007", "0.68300927", "0.6771629", "0.67627877", "0.6704089", "0.6488942", "0.6487569", "0.6389526", "0.63350594", "0.625699", "0.60831493", "0.60028166", "0.59995764", "0.5986783", "0.5944532", "0.59148973", "0.5894884", "0.5858215", "0.5845107", "0.583651...
0.6845924
1
Returns the optional name of shape, which will be used to draw a legend outside the box.
public Optional<Legend[]> legends() { return Optional.empty(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getShapeName();", "String getLayerShapeName();", "String getShapeLabel();", "public String whatShape();", "IShape getShape(String name);", "void setShapeLabel(String Label);", "ShapeType getShapeType();", "@Override\n public Shape getShape(String shapeType){\n\t\treturn null;\n }", "pu...
[ "0.7734384", "0.7285879", "0.70694894", "0.6543786", "0.6446187", "0.6313153", "0.6136382", "0.59814614", "0.5926498", "0.5906175", "0.587012", "0.58673894", "0.58637494", "0.58426034", "0.5836138", "0.56631565", "0.56570345", "0.5647842", "0.56338865", "0.5615239", "0.560179...
0.0
-1
Returns a optional tool tip for the object at given coordinates.
public Optional<String> tooltip(double[] coord) { return Optional.empty(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract String getToolTip();", "@Override\n public void setTooltip(String arg0)\n {\n \n }", "@Override\n public String getTooltip()\n {\n return null;\n }", "public interface ToolTipable {\n String getInfoFromPosition(int i, Part part);\n}", "public String getToo...
[ "0.65493935", "0.64340323", "0.6255045", "0.6229804", "0.6144436", "0.61344934", "0.6111609", "0.61080223", "0.6099578", "0.609742", "0.6080118", "0.6079216", "0.6070029", "0.60558486", "0.6051058", "0.60296184", "0.5979603", "0.5974502", "0.59458977", "0.5935963", "0.5912428...
0.735524
0
Returns an optional list of components in tool bar to control the plot.
public Optional<JComponent[]> toolbar() { return Optional.empty(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private JToolBar getToolsToolBar() {\r\n\t\tif (toolsToolBar == null) {\r\n\t\t\ttoolsToolBar = new JToolBar();\r\n\t\t\ttoolsToolBar.setPreferredSize(new Dimension(87, 24));\r\n\t\t\tif(flag){\r\n\t\t\t\ttoolsToolBar.add(getOpenButton());\r\n\t\t\t\ttoolsToolBar.add(getSaveButton());\r\n\t\t\t}\r\n\t\t\ttoolsTool...
[ "0.5986132", "0.5929", "0.5779862", "0.567958", "0.56753224", "0.5666957", "0.5633191", "0.56244016", "0.5624054", "0.56126654", "0.55984074", "0.5568193", "0.5557671", "0.5557535", "0.55374473", "0.5532098", "0.5522351", "0.54944915", "0.5459827", "0.5456749", "0.5452488", ...
0.6395499
0
/ access modifiers changed from: packageprivate
public abstract StoreInfo getInfo();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n protected void prot() {\n }", "public void method_4270() {}", "@Override\n public void func_104112_b() {\n \n }", "private void m50366E() {\n }", "private void kk12() {\n\n\t}", "public final void mo51373a...
[ "0.71513015", "0.6686406", "0.6558315", "0.6482832", "0.6430476", "0.63856333", "0.63838816", "0.63487375", "0.6330605", "0.62764114", "0.626384", "0.62509346", "0.6237325", "0.62340367", "0.6228612", "0.6197973", "0.6197973", "0.61952", "0.6183631", "0.61797863", "0.6157397"...
0.0
-1
/ access modifiers changed from: packageprivate
public abstract Object toDexFile();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n protected void prot() {\n }", "public void method_4270() {}", "@Override\n public void func_104112_b() {\n \n }", "private void m50366E() {\n }", "private void kk12() {\n\n\t}", "public final void mo51373a...
[ "0.71513015", "0.6686406", "0.6558315", "0.6482832", "0.6430476", "0.63856333", "0.63838816", "0.63487375", "0.6330605", "0.62764114", "0.626384", "0.62509346", "0.6237325", "0.62340367", "0.6228612", "0.6197973", "0.6197973", "0.61952", "0.6183631", "0.61797863", "0.6157397"...
0.0
-1
/ access modifiers changed from: protected
public Object toDexListElement(DexLoader.ElementConstructor elementConstructor) { Object dexFile = toDexFile(); if (dexFile == null) { return null; } return elementConstructor.newInstance(this.mFile, dexFile); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override...
[ "0.7375736", "0.7042321", "0.6922649", "0.6909494", "0.68470824", "0.6830288", "0.68062353", "0.6583185", "0.6539446", "0.65011257", "0.64917654", "0.64917654", "0.64733833", "0.6438831", "0.64330196", "0.64330196", "0.64295477", "0.6426414", "0.6420484", "0.64083177", "0.640...
0.0
-1
/ access modifiers changed from: packageprivate
public abstract DexHolder toFasterHolder();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n protected void prot() {\n }", "public void method_4270() {}", "@Override\n public void func_104112_b() {\n \n }", "private void m50366E() {\n }", "private void kk12() {\n\n\t}", "public final void mo51373a...
[ "0.71513015", "0.6686406", "0.6558315", "0.6482832", "0.6430476", "0.63856333", "0.63838816", "0.63487375", "0.6330605", "0.62764114", "0.626384", "0.62509346", "0.6237325", "0.62340367", "0.6228612", "0.6197973", "0.6197973", "0.61952", "0.6183631", "0.61797863", "0.6157397"...
0.0
-1
Project Name: 52WeekChallenge Created by Okilipa Antony on 5/10/2019 at 2:10 PM
@Component(modules = { AndroidSupportInjectionModule.class, AppModule.class, ActivityBuilder.class }) @Singleton public interface AppComponent{ /* * This builder interface is called from our Application class. * This will set our application object to the AppComponent * So inside the AppComponent the application instance is available. * So this application instance can be accessed by our modules * such as ApiModule when needed * */ @Component.Builder interface Builder{ @BindsInstance Builder application(Application application); AppComponent build(); } /* * This is our Application class * */ void inject(BaseApplication application); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getProjectName();", "String getProjectName();", "public String getProjectTeamName(){\n return \"The name of the project of this researcher is \"+\n name_of_project_team +\n \"\\n*******\\n\";\n }", "@Override\r\n\tString getProjectName();", "public String getProject...
[ "0.69745076", "0.6861383", "0.68541527", "0.6710827", "0.66432154", "0.66432154", "0.6536017", "0.64566374", "0.63461006", "0.6325055", "0.62588483", "0.62527174", "0.624959", "0.62394756", "0.6196507", "0.61896324", "0.61680025", "0.6132177", "0.6132177", "0.6128478", "0.608...
0.0
-1
/ This builder interface is called from our Application class. This will set our application object to the AppComponent So inside the AppComponent the application instance is available. So this application instance can be accessed by our modules such as ApiModule when needed
@Component.Builder interface Builder{ @BindsInstance Builder application(Application application); AppComponent build(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Component(modules = {\n AndroidSupportInjectionModule.class,\n AppModule.class,\n ActivityBuilder.class\n})\n@Singleton\npublic interface AppComponent{\n\n /*\n * This builder interface is called from our Application class.\n * This will set our application object to the AppCompone...
[ "0.70833534", "0.70358527", "0.68466246", "0.6791559", "0.6784482", "0.66878515", "0.6673714", "0.66502964", "0.66289157", "0.6620026", "0.6572947", "0.65691423", "0.65409005", "0.6505239", "0.6503278", "0.64019614", "0.640113", "0.6386187", "0.63840437", "0.6357039", "0.6356...
0.6758201
5
/ This is our Application class
void inject(BaseApplication application);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Application getApplication();", "public App() {\n\t\tLog.d(\"App\", \"App created\");\n\t\tinstance = this;\n\t}", "public DefaultApplication() {\n\t}", "public MTApplication(){\r\n\t\tsuper();\r\n\t}", "public BazaarApplicationImpl() {\r\n\t\tsuper();\r\n\r\n\t}", "public void setApp(Main application) {...
[ "0.73404413", "0.72447836", "0.721458", "0.7197921", "0.71732295", "0.7068219", "0.70085007", "0.6898877", "0.68368703", "0.6704236", "0.662496", "0.6607684", "0.6589939", "0.6543325", "0.653139", "0.6529293", "0.65285426", "0.6526716", "0.64506346", "0.6445167", "0.6444349",...
0.0
-1
/ F4 The system shall determine the remaining useful life using different models.
@Test public void f4RULModelsTest() { //Parts of this test uses f12 (Associate asset type) //Go to first asset clickOn("#thumbnailTab"); FlowPane root = (FlowPane) scene.getRoot().lookup("#assetsThumbPane"); clickOn(root.getChildren().get(0)).sleep(1000); clickOn("#modelOutput").sleep(3000); Text firstModel = (Text) scene.getRoot().lookup("#modelOutput"); String modelBefore = firstModel.getText(); //Go to asset type info clickOn("#assetTypeMenuBtn").sleep(2000); //select first asset type Node node = lookup("#columnName").nth(1).query(); clickOn(node).sleep(1000); clickOn("#associatedModelLabel").sleep(1000); //go to model tab clickOn(scene.getRoot().lookup("#modelTab")).sleep(1000); FlowPane models = (FlowPane) scene.getRoot().lookup("#modelsThumbPane"); //change to LSTM clickOn(models.getChildren().get(1)).sleep(1000); clickOn("#modelSaveBtn").sleep(1000); //Go back to first asset to check the model again clickOn("#assetMenuBtn").sleep(1000); clickOn("#thumbnailTab").sleep(1000); root = (FlowPane) scene.getRoot().lookup("#assetsThumbPane"); //Check that the model of first asset changed clickOn(root.getChildren().get(0)).sleep(1000); clickOn("#modelOutput").sleep(3000); Text secondModel = (Text) scene.getRoot().lookup("#modelOutput"); String modelAfter = secondModel.getText(); assertNotSame("Models should be different after updating", modelBefore, modelAfter); clickOn("#backBtn").sleep(2000); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void cmdInfoModel() throws NoSystemException {\n MSystem system = system();\n MMVisitor v = new MMPrintVisitor(new PrintWriter(System.out, true));\n system.model().processWithVisitor(v);\n int numObjects = system.state().allObjects().size();\n System.out.println(numObject...
[ "0.59450805", "0.5818587", "0.5754108", "0.57510465", "0.57049423", "0.55624336", "0.5538818", "0.5536976", "0.5520041", "0.5514377", "0.5486528", "0.54820144", "0.5477373", "0.5468502", "0.54616886", "0.54421824", "0.5415279", "0.53643197", "0.5358826", "0.53555596", "0.5340...
0.4984822
98
/ F8 The system shall display the selected RUL model parameters.
@Test public void f8DisplayParametersTest() { clickOn("#assetTypeMenuBtn").sleep(1000); //select first asset type Node node = lookup("#columnName").nth(1).query(); clickOn(node).sleep(1000); //go to model tab clickOn(scene.getRoot().lookup("#modelTab")).sleep(1000); FlowPane models = (FlowPane) scene.getRoot().lookup("#modelsThumbPane"); VBox parameters = (VBox) scene.getRoot().lookup("#modelParameters"); int i; //Iterate through all the models and their parameters for (int j = 0; j < models.getChildren().size(); j++) { i = 0; clickOn(models.getChildren().get(j)); if (j == 4) { scroll(90, VerticalDirection.UP); } while (i < parameters.getChildren().size()) { clickOn(parameters.getChildren().get(i++)).sleep(500); if (i == 10) { scroll(60, VerticalDirection.UP); } } } assertEquals("There should be 8 models", 8, models.getChildren().size()); assertNotNull("Parameters exist", parameters); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void display() { System.err.println(\"Train parameters: smooth=\" + smoothing + \" PA=\" + PA + \" GPA=\" + gPA + \" selSplit=\" + selectiveSplit + \" (\" + selectiveSplitCutOff + (deleteSplitters != null ? \"; deleting \" + deleteSplitters : \"\") + \")\" + \" mUnary=\" + markUnary + \" mUnaryTags=\...
[ "0.62007856", "0.59233195", "0.5874952", "0.57537824", "0.5726322", "0.56738484", "0.5617615", "0.55596536", "0.5558557", "0.5557732", "0.555719", "0.552012", "0.5497854", "0.5455956", "0.54297155", "0.5422841", "0.5368375", "0.5348159", "0.5328167", "0.5323258", "0.5295167",...
0.5932099
1
/ F9 The system shall provide the ability to edit a selected RUL model parameters.
@Test public void f9EditParametersTest() { clickOn("#assetTypeMenuBtn").sleep(1000); //select 1st asset type Node node = lookup("#columnName").nth(1).query(); clickOn(node).sleep(1000); //go to model tab clickOn(scene.getRoot().lookup("#modelTab")).sleep(1000); FlowPane allModels = (FlowPane) scene.getRoot().lookup("#modelsThumbPane"); Pane selectedModel = (Pane) allModels.getChildren().get(0); clickOn(selectedModel).sleep(1000); //Changing Parameters VBox paraBox = (VBox) scene.getRoot().lookup("#modelParameters"); Pane batchSizePara = (Pane) paraBox.getChildren().get(0); TextField batchSizeVal = (TextField) batchSizePara.getChildren().get(1); clickOn(batchSizeVal).type(KeyCode.BACK_SPACE).sleep(500).type(KeyCode.BACK_SPACE).sleep(500).write("60").sleep(1500); Pane qrPara = (Pane) paraBox.getChildren().get(1); CheckBox qrVal = (CheckBox) qrPara.getChildren().get(1); clickOn(qrVal).sleep(1500); Pane collinearPara = (Pane) paraBox.getChildren().get(2); CheckBox colinearVal = (CheckBox) collinearPara.getChildren().get(1); clickOn(colinearVal).sleep(1500); //Parameter after changing it from the default value should be 160 assertEquals("Batch Size value is a now 160", "160", batchSizeVal.getText()); //reset to default clickOn(scene.getRoot().lookup("#modelDefaultBtn")).sleep(1000); clickOn(paraBox.getChildren().get(0)).sleep(1500); //Now go to the last model (Multilayer Perceptron) selectedModel = (Pane) allModels.getChildren().get(allModels.getChildren().size() - 1); clickOn(scene.getRoot().lookup("#modelTab")).sleep(1000); moveBy(0, 200).scroll(65, VerticalDirection.UP); clickOn(selectedModel).sleep(1000); clickOn(scene.getRoot().lookup("#modelDefaultBtn")).sleep(2000); //Change parameters Pane autoBuildPara = (Pane) paraBox.getChildren().get(0); CheckBox autoBuildVal = (CheckBox) autoBuildPara.getChildren().get(1); clickOn(autoBuildVal).sleep(1500); Pane showGUIPara = (Pane) paraBox.getChildren().get(2); CheckBox showGUIVal = (CheckBox) showGUIPara.getChildren().get(1); clickOn(showGUIVal).sleep(1500); Pane momentumPara = (Pane) paraBox.getChildren().get(3); TextField momentumVal = (TextField) momentumPara.getChildren().get(1); clickOn(momentumVal).type(KeyCode.BACK_SPACE).sleep(500).write("1").sleep(1500); //Momentum after changing shouldn't be the default 0.2 value anymore assertFalse("Momentum is default 0.2", momentumVal.getText().equals("0.2")); Pane decayPara = (Pane) paraBox.getChildren().get(9); CheckBox decayVal = (CheckBox) decayPara.getChildren().get(1); clickOn(decayVal).sleep(1500); // //Go to RandomForest Model selectedModel = (Pane) allModels.getChildren().get(2); clickOn(selectedModel).sleep(1000); clickOn(scene.getRoot().lookup("#modelDefaultBtn")).sleep(2000); // //Change parameters Pane execPara = (Pane) paraBox.getChildren().get(1); TextField execVal = (TextField) execPara.getChildren().get(1); clickOn(execVal).sleep(1500); // Pane calcBagPara = (Pane) paraBox.getChildren().get(3); CheckBox calcBagVal = (CheckBox) calcBagPara.getChildren().get(1); clickOn(calcBagVal).sleep(1500); // Pane bagSizePara = (Pane) paraBox.getChildren().get(6); TextField bagSizeVal = (TextField) bagSizePara.getChildren().get(1); clickOn(bagSizeVal).type(KeyCode.BACK_SPACE).sleep(500).type(KeyCode.BACK_SPACE).sleep(500).write("0").sleep(1500); //Bag Size after changing shouldn't be the default 100 value anymore assertFalse("Bag size is default 100", bagSizeVal.getText().equals("100")); //Have parameters VBox assertNotNull("Parameters box for the model exists", paraBox); clickOn(scene.getRoot().lookup("#modelDefaultBtn")).sleep(2000); clickOn(paraBox.getChildren().get(0)).sleep(2000); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void editSimulationParameters() {\r\n \t\tdialogFactory.getDialog(new SimulationPanel(model, model, model, this), \"Define Simulation Parameters\");\r\n \t}", "public void editPAParameters() {\r\n \t\tdialogFactory.getDialog(new ParametricAnalysisPanel(model, model, model, this), \"Define What-if analysis...
[ "0.65231013", "0.64729995", "0.6465983", "0.6109104", "0.6094989", "0.6080432", "0.58622915", "0.57998997", "0.57893103", "0.5786668", "0.5777713", "0.57704693", "0.57174134", "0.5716992", "0.5642707", "0.5629132", "0.56216246", "0.5585655", "0.54530966", "0.5435318", "0.5426...
0.61387753
3
/ F10 The system shall display a selected RUL model performance (RMSE).
@Test public void f10ModelPerformanceTest() { clickOn("#assetTypeMenuBtn").sleep(1000); //select first asset type Node node = lookup("#columnName").nth(1).query(); clickOn(node).sleep(1000); //go to model tab clickOn(scene.getRoot().lookup("#modelTab")).sleep(1000); //Modify sliders Slider trainSlider = (Slider) scene.getRoot().lookup("#trainSlider"); clickOn(trainSlider); type(KeyCode.TAB).type(KeyCode.RIGHT); type(KeyCode.TAB).type(KeyCode.RIGHT); moveBy(0, 10).clickOn().sleep(500).moveBy(0, 100).scroll(80, VerticalDirection.UP); FlowPane models = (FlowPane) scene.getRoot().lookup("#modelsThumbPane"); Pane additiveRegModel = (Pane) models.getChildren().get(5); Button evalButton = (Button) additiveRegModel.getChildren().get(additiveRegModel.getChildren().size() - 1); Text rmse = (Text) additiveRegModel.getChildren().get(additiveRegModel.getChildren().size() - 2); clickOn(rmse).sleep(3000); String oldRmseVal = rmse.getText(); int i = 0; clickOn(evalButton); //incrementally check for 30 seconds to see if rmse has been updated do { if (rmse.getText().equals(oldRmseVal)) { sleep(2000); } else { break; } } while (++i < 15); clickOn(rmse).sleep(3000); assertNotNull("Evaluate button exists", evalButton); assertNotNull("RMSE exists", rmse); assertFalse("Assert current RMSE is different than old RMSE", rmse.getText().equals(oldRmseVal)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void modelShow() {\n\t\tSystem.out.println(\"秀衣服\");\n\t}", "public MVSR() {\n clg = \"MVSR\";\n cmax = 10000;\n mmax = 12000;\n eemax = 13033;\n emax = 18520;\n imax = 20204;\n }", "private static void showSpr(MicroBlazeProcessor mb) {\r\n SpecialPu...
[ "0.5747913", "0.57087165", "0.55736125", "0.54126155", "0.53939104", "0.5311854", "0.5287497", "0.52865636", "0.5272431", "0.52652985", "0.52389276", "0.5224544", "0.52034694", "0.51999754", "0.51633626", "0.5149013", "0.5146759", "0.51290834", "0.51207644", "0.5113878", "0.5...
0.652384
0
/ F11 The system shall provide the ability to add and remove a asset type
@Test @SuppressWarnings("unchecked") public void f11AddRemoveAssetTypeTest() { clickOn("#assetTypeMenuBtn").sleep(1000).moveBy(100, 0); clickOn("#assetName").moveBy(40, 200); TableView<AssetTypeList> assetTypes = (TableView<AssetTypeList>) scene.getRoot().lookup("#tableView"); int assetTypesDefaultSize = assetTypes.getItems().size(); //default size should be 4 assetTypes.scrollTo(assetTypesDefaultSize); Button button = (Button) scene.getRoot().lookup("#addAssetTypeBtn"); sleep(2000).clickOn(button).sleep(2000); //Enter info for new asset type clickOn("#assetTypeName").write("My New Engine").sleep(1000); clickOn("#assetTypeDescription").write("Adding a new asset for system testing.").sleep(1000); clickOn("#thresholdAdvisoryValue").write("300").sleep(1000); clickOn("#thresholdCautionValue").write("200").sleep(1000); clickOn("#thresholdWarningValue").write("100").sleep(1000); clickOn("#thresholdFailedValue").write("50").sleep(1000); clickOn("#saveBtn").sleep(1000); assetTypes = (TableView<AssetTypeList>) scene.getRoot().lookup("#tableView"); clickOn("#assetName").sleep(1000); assertEquals("Asset list contains an additional asset", assetTypes.getItems().size(), (assetTypesDefaultSize + 1)); //should now have default size + 1 item //Select last row Node node = lookup("#columnName").nth(assetTypes.getItems().size()).query(); clickOn(node).sleep(1000); //Delete the new asset type clickOn("#assetTypeName").sleep(1000); clickOn("#deleteBtn").sleep(500); type(KeyCode.SPACE).sleep(500); assetTypes = (TableView<AssetTypeList>) scene.getRoot().lookup("#tableView"); moveBy(0, 200); assetTypes.scrollTo(assetTypesDefaultSize); //back to original table sleep(3000); //Table should return to original size (of rows) after deleting the newly added asset. assertEquals("Asset list contains the same number of assets as before adding and deleting.", assetTypes.getItems().size(), assetTypesDefaultSize); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void f17AddRemoveAssetTest() {\n Button button = (Button) scene.getRoot().lookup(\"#addAssetBtn\");\n\n assertNotNull(\"Button to add asset exists\", button);\n assertEquals(\"Add Asset\", button.getText());\n\n clickOn(button).sleep(1000);\n //Enter info for ne...
[ "0.6526167", "0.61671275", "0.61590314", "0.5798925", "0.5748833", "0.5729117", "0.57228684", "0.56750363", "0.56049114", "0.5447244", "0.5438705", "0.54355145", "0.542679", "0.53845406", "0.5373044", "0.5368006", "0.5337393", "0.5322285", "0.532034", "0.53057945", "0.5305794...
0.5766328
4
/ F12 The system shall provide the ability to associate a asset type with RUL model
@Test public void f12AssociateAssetTypeWithModelTest() { clickOn("#assetTypeMenuBtn").sleep(2000); //select second asset type Node node = lookup("#columnName").nth(2).query(); clickOn(node).sleep(1000); clickOn("#associatedModelLabel").sleep(1000); Label label = (Label) scene.getRoot().lookup("#associatedModelLabel"); String modelBefore = label.getText(); //go to model tab clickOn(scene.getRoot().lookup("#modelTab")).sleep(1000); FlowPane models = (FlowPane) scene.getRoot().lookup("#modelsThumbPane"); //change to RandomForest clickOn(models.getChildren().get(2)).sleep(1000); clickOn("#modelSaveBtn").sleep(1000); node = lookup("#columnName").nth(2).query(); clickOn(node); label = (Label) scene.getRoot().lookup("#associatedModelLabel"); String modelAfter = label.getText(); clickOn("#associatedModelLabel").sleep(3000); //model after changing should not be the same assertFalse("Model after changing is the same as it was before.", modelBefore.equals(modelAfter)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String assetType() {\n return assetType;\n }", "String getAssetTypeRestriction();", "@Override\n public String getDescription() {\n return \"Asset issuance\";\n }", "public String relatedAssetType() {\n return relatedAssetType;\n }", "default AssetType ge...
[ "0.644101", "0.5891871", "0.5780955", "0.5773444", "0.5739082", "0.573814", "0.5562218", "0.54770225", "0.542961", "0.54278654", "0.53727275", "0.5325767", "0.52540284", "0.5170802", "0.51692766", "0.51653564", "0.51647407", "0.51558095", "0.5155429", "0.51444465", "0.5124066...
0.6437921
1
/ F13 The system shall display a monitored asset in RUL order (lowest RUL first)
@Test public void f13OrderRULTest() { clickOn("#thumbnailTab").moveBy(90, 200); scroll(50, VerticalDirection.UP).sleep(1000); scroll(50, VerticalDirection.DOWN).sleep(1000); clickOn("#sortAsset").type(KeyCode.DOWN).type(KeyCode.ENTER); sleep(1000).moveBy(-90, 200).scroll(50, VerticalDirection.UP).sleep(1000); boolean isOrdered = true; double[] ruls = getRuls(); //Check if the ascending ruls are ordered for (int i = 0; i < ruls.length - 1; i++) { if (ruls[i] > ruls[i + 1]) { isOrdered = false; break; } } sleep(1000).scroll(50, VerticalDirection.DOWN).sleep(1000); assertTrue("All RULs after sorting by ascending are ordered from smallest to largest.", isOrdered); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void printRestocks(){\n\t\tint i;\n\t\tint listSize = inventoryOrdersDone.size();\n\t\tRoll temp;\n\t\tString outputText;\n\t\toutputText = \"\\nInventory Restock Orders Per Roll: \";\n\t\t//outputText = inventoryOrdersDone.get(0).getRoll().getType() + \" Roll Current stock: \" + inventoryOrdersDone.get(0)....
[ "0.55300474", "0.530368", "0.529919", "0.5231585", "0.51995206", "0.5140797", "0.5118752", "0.5067053", "0.49974066", "0.49960023", "0.49708652", "0.49628842", "0.49482602", "0.4926311", "0.49202785", "0.48950368", "0.48945224", "0.48866907", "0.4886047", "0.48858643", "0.487...
0.59646475
0
get double[] RUL values after it's been sorted in ascending order.
public double[] getRuls() { FlowPane root = (FlowPane) scene.getRoot().lookup("#assetsThumbPane"); double[] ruls = new double[root.getChildren().size()]; int i = 0; do { Pane pane = (Pane) root.getChildren().get(i); //each pane HBox hBox = (HBox) pane.getChildren().get(3); Text text = (Text) hBox.getChildren().get(0); //rul ruls[i] = Double.parseDouble(text.getText()); //add to array } while (++i < ruls.length); return ruls; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double[] getDoubleList();", "private static double[] toArray(ArrayList<Double> dbls) {\n double[] r = new double[dbls.size()];\n int i = 0;\n for( double d:dbls ) r[i++] = d;\n return r;\n }", "double[] getReferenceValues();", "public double[] getDoubles()\r\n {\r\n return resultDoubl...
[ "0.6541136", "0.63212657", "0.6301921", "0.6231547", "0.60978085", "0.59999454", "0.5979771", "0.5945767", "0.58784384", "0.58691865", "0.5840384", "0.5819648", "0.580237", "0.578773", "0.57865626", "0.57826835", "0.5749187", "0.5745098", "0.57278836", "0.5713228", "0.5708185...
0.6632383
0
/ F14 The system shall provide the ability to select a asset
@Test public void f14SelectAssetTest() { FlowPane assets; int i = 0; Random random = new Random(); //select 4 random assets out of the first 12 visible assets in the window do { clickOn("#thumbnailTab").moveBy(300, 500); scroll(10, VerticalDirection.UP).sleep(2000); assets = (FlowPane) scene.getRoot().lookup("#assetsThumbPane"); clickOn(assets.getChildren().get(random.nextInt(12))); sleep(1000).clickOn("#serialNumberOutput").sleep(1000); clickOn("#backBtn"); } while (++i < 4); assertTrue("There are selectable assets on the main page.", assets.getChildren().size() > 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onClick(View view) {\n selectedAsset = null;\n changeActivity(Activities.DAP_ASSET_EDITOR_ACTIVITY.getCode(), getAssetForEdit());\n }", "public void checkAssetSelected() throws ParameterValuesException {\n\t\tif (gridTaiSan.getItemCount(...
[ "0.5966289", "0.5863818", "0.5828685", "0.5685124", "0.55463874", "0.55443776", "0.55396926", "0.5519045", "0.55030245", "0.5487593", "0.54823375", "0.5475122", "0.54741246", "0.54703224", "0.5448164", "0.54480493", "0.54359084", "0.54302585", "0.5425349", "0.54228276", "0.54...
0.6291444
0
/ F15 The system shall display a selected asset raw data
@Test @SuppressWarnings("unchecked") public void f15DisplayRawDataTest() { clickOn("#thumbnailTab").sleep(1000); FlowPane root = (FlowPane) scene.getRoot().lookup("#assetsThumbPane"); //Go to the 2nd asset clickOn(root.getChildren().get(1)).sleep(2000); clickOn("#rawDataTab").sleep(1000); moveBy(90, 200).sleep(1000); TableView<ObservableList<String>> table = (TableView<ObservableList<String>>) scene.getRoot().lookup("#RawDataTable"); table.scrollToColumnIndex(15); //scroll to show the end columns sleep(3000).clickOn("#backBtn").sleep(1000); assertTrue("There is a raw data table for the selected asset.", table.getItems().size() > 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\t\t\tpublic void onClick(View v) \r\n\t\t\t{\n\r\n\t\t\t\tAssetManager am = context.getAssets();\r\n\t\t\t\ttry {\r\n\t\t\t\t\tInputStream is = am.open(\"syb11.txt\"); \r\n\t\t\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(is));\r\n\t\t\t\t\tString inputLine;\r\n\t\t\t\t\twhile ((...
[ "0.5745219", "0.56515026", "0.55781704", "0.5557102", "0.5485156", "0.54614544", "0.54564834", "0.5432517", "0.54208326", "0.541378", "0.5396714", "0.5378611", "0.53620225", "0.53050184", "0.52910495", "0.5206755", "0.5192719", "0.5170744", "0.51583743", "0.5145856", "0.51397...
0.59290683
0
/ F16 The system shall display a selected asset information
@Test public void f16DisplayAssetInfoTest() { clickOn("#thumbnailTab").sleep(1000); FlowPane root; FlowPane totalAttributes; boolean isValidAttributesAmount = true; int i = 0; //test the first 3 assets: while (i < 3) { root = (FlowPane) scene.getRoot().lookup("#assetsThumbPane"); clickOn(root.getChildren().get(i)); sleep(2000).clickOn("#informationTab"); moveBy(200, 500).scroll(150, VerticalDirection.UP); totalAttributes = (FlowPane) scene.getRoot().lookup("#attributeFlowPane"); //should have 26 total attributes if (totalAttributes.getChildren().size() != 26) { isValidAttributesAmount = false; break; } clickOn("#backBtn").sleep(1000); i++; } assertTrue("Assets have 26 attributes.", isValidAttributesAmount); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public String getDescription() {\n return \"Asset issuance\";\n }", "public void display_inventory() {\n\t\t// displays all identified crystals\n\t\tfor(int i = 0;i<maxInvSize;i++) {\n\t\t\tif(identifiedArray[i] != null) {\n\t\t\t\tcrystal_description(identifiedAr...
[ "0.58396846", "0.57344747", "0.5675579", "0.565523", "0.56124717", "0.5610437", "0.55915207", "0.5589209", "0.55719423", "0.5546618", "0.55280685", "0.55044377", "0.5501648", "0.55013007", "0.54937047", "0.54919773", "0.54734457", "0.546684", "0.54446805", "0.54321283", "0.54...
0.54465795
18
/ F17 The system shall provide the ability to add or remove a asset.
@Test public void f17AddRemoveAssetTest() { Button button = (Button) scene.getRoot().lookup("#addAssetBtn"); assertNotNull("Button to add asset exists", button); assertEquals("Add Asset", button.getText()); clickOn(button).sleep(1000); //Enter info for new asset clickOn("#assetNameInput").write("My New Asset").sleep(1000); clickOn("#assetTypeChoiceBox").type(KeyCode.DOWN).sleep(1000).type(KeyCode.ENTER).sleep(1000); clickOn("#assetDescriptionInput").write("Adding a new asset for system testing").sleep(1000); clickOn("#serialNumberInput").write("192837465").sleep(1000); clickOn("#manufacturerInput").write("Asset in good condition").sleep(1000); clickOn("#categoryInput").write("Category 2").sleep(1000); clickOn("#siteInput").write("Regularly checked").sleep(1000); clickOn("#locationInput").write("Montreal Qc").sleep(1000); // TODO: Complete the test (save button) once Add Asset bug is fixed. clickOn(scene.getRoot().lookup("#cancelBtn")).sleep(3000); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void addToMyAssets(String userId,\n String assetGUID) throws InvalidParameterException,\n PropertyServerException,\n UserNotAuthorizedException;", "public static void putAsset(Asset asset) {\n ...
[ "0.63746345", "0.62155205", "0.61063427", "0.5860429", "0.58469146", "0.5798075", "0.5751032", "0.57099766", "0.5636821", "0.55928797", "0.5498845", "0.5486502", "0.5473161", "0.5461573", "0.545047", "0.54318434", "0.5430704", "0.53940487", "0.5344006", "0.53357774", "0.53271...
0.71681696
0
Publish message to each enabled service
@Async public void publishMessage(QPEvent event) throws Exception { if(webhookService.isEnabled()) { log.debug("Webhook service enabled, publishing..."); webhookService.publishMessage(event); } if(websocketService.isEnabled()) { log.debug("Websocket service enabled, publishing..."); websocketService.publishMessage(event); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int publishToAll(Message message);", "Collection<Service> getAllSubscribeService();", "protected void connectEnrichers() {\n \n subscribeToMembers(this, SERVICE_UP, new SensorEventListener<Boolean>() {\n @Override public void onEvent(SensorEvent<Boolean> event) {\n se...
[ "0.60192686", "0.59572417", "0.5844085", "0.57764", "0.5756414", "0.5690808", "0.564587", "0.5575479", "0.5560885", "0.5558923", "0.55569845", "0.5542719", "0.55268496", "0.5502864", "0.5453705", "0.54286516", "0.5418467", "0.541035", "0.5401309", "0.53641987", "0.5284994", ...
0.5332665
20
Returns the output file wrapped in one Output object.
public Output getOutput() { return OutputFactory.of(outputFile.toPath()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public File getOutputFilePath() {\n return outputFile;\n }", "public File getOutput(){\n return outputDir;\n }", "@Override\r\n\tpublic String getOutputFile() {\n\t\t\r\n\t\treturn fileOutputPath;\r\n\t}", "public final File getOutPutFile() {\n\t\treturn outPutFile;\n\t}", "public File get...
[ "0.7231809", "0.71503305", "0.7022816", "0.6979239", "0.6932194", "0.68139297", "0.6765719", "0.6755831", "0.67246455", "0.66611654", "0.65597016", "0.655372", "0.6506053", "0.64572453", "0.6446237", "0.63494676", "0.6348015", "0.63457805", "0.63234967", "0.63215625", "0.6287...
0.8236479
0
Gets the output file
public File getFile() { return outputFile; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getFileOutput();", "public File getOutputFilePath() {\n return outputFile;\n }", "@Override\r\n\tpublic String getOutputFile() {\n\t\t\r\n\t\treturn fileOutputPath;\r\n\t}", "public final File getOutPutFile() {\n\t\treturn outPutFile;\n\t}", "public File getOutput(){\n return outputDi...
[ "0.78078246", "0.76411813", "0.7627881", "0.7417555", "0.7327701", "0.72726554", "0.72225785", "0.7207681", "0.7145499", "0.71295893", "0.70999575", "0.69453555", "0.6938212", "0.6891512", "0.6839908", "0.681333", "0.6780079", "0.6718443", "0.67013323", "0.6698312", "0.669418...
0.7169738
8
Handles the bulk of the processing, mostly delegating to other methods.
public void visit(ASTNode[] nodes, SourceUnit source) { checkNodesForAnnotationAndType(nodes[0], nodes[1]); addDataSourceHandlerIfNeeded(source, (AnnotationNode) nodes[0], (ClassNode) nodes[1]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void additionalProcessing() {\n\t}", "@Override\n\tpublic void processing() {\n\n\t}", "private void processBulk()\n {\n File inDir = new File(m_inDir);\n String [] fileList = inDir.list();\n \n for (int j=0; j<fileList.length; j++)\n {\n String file =...
[ "0.67894065", "0.65959734", "0.6482761", "0.64402175", "0.64053446", "0.6360184", "0.6314711", "0.6294154", "0.6290593", "0.62393385", "0.6126983", "0.6114898", "0.5970323", "0.59418887", "0.59242797", "0.5913001", "0.5907433", "0.5886983", "0.5881392", "0.5817099", "0.580409...
0.0
-1
Adds the necessary field and methods to support dataSource handling.
public static void apply(@Nonnull ClassNode declaringClass) { injectInterface(declaringClass, DATA_SOURCE_HANDLER_CNODE); Expression dataSourceHandler = injectedField(declaringClass, DATA_SOURCE_HANDLER_CNODE, "this$" + DATA_SOURCE_HANDLER_PROPERTY); addDelegateMethods(declaringClass, DATA_SOURCE_HANDLER_CNODE, dataSourceHandler); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected void initDataSource() {\n\t}", "@Override\n\tpublic void setDataSource(DataSource dataSource) {\n\t}", "@Override\n public void setDataSource(DataSource dataSource) {\n }", "@Override\n public void setDataSource(DataSource dataSource) {\n }", "@Override\n public void s...
[ "0.73683435", "0.68078995", "0.6753908", "0.6753908", "0.6753908", "0.673116", "0.67056006", "0.65025896", "0.6373229", "0.6373229", "0.6373229", "0.6331272", "0.63046384", "0.62818277", "0.62803644", "0.62730426", "0.62469965", "0.62469965", "0.62469965", "0.62469965", "0.62...
0.0
-1
TODO Autogenerated method stub
@Override public int compare(Arco o1, Arco o2) { return o2.getW()-o1.getW(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
public void execute(Scanner sc, Map<Integer, Integer> wc) { List<Menu>list = MenuDao.menuList(wc.get(wc.keySet().hashCode())); // System.out.println(list); System.out.println("---------------------------------------"); System.out.printf("| %2s | %-17s | %4s |\n", "번호", "음식명", "가격"); System.out.println("---------------------------------------"); int a = 1; for (Menu m : list) { System.out.printf("| %4d ", a++); System.out.printf("| %-10s ", m.getMenuName()); for (int i = 0; i < 10 - m.getMenuName().length(); i++) { System.out.printf(" "); } System.out.printf("| %6d |\n", m.getMenuPrice()); System.out.println("---------------------------------------"); } System.out.println(); System.out.println("메뉴 번호를 입력해주세요"); int result = MenuDao.menuDelete(sc.nextInt()); if(result != 0){ System.out.println("메뉴 삭제에 성공하셨습니다"); }else { System.out.println("메뉴 삭제에 실패하셨습니다"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void clicked(ItemMenuIcon icon, Player p) { }
{ "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
Fold given source file and return folded file
public static String foldSourceFileVSM(final File file, final int compressionRatio, final File outFile) { System.out .println("TASSAL VSM: Tree-based Autofolding Software Summarization ALgorithm"); System.out .println("==============================================================="); System.out.println("\nFolding file " + file.getName() + "...\n"); // Set paths and default code folder settings final Settings set = new Settings(); // Main code folder settings set.profitType = "CSimFile"; set.compressionRatio = 100 - compressionRatio; // Generate AST final CompilationUnit cu = CodeUtils.getAST(file); // Create file term vector System.out.println("Creating file term vector..."); final SimpleNameFileVisitor snfv = new SimpleNameFileVisitor(); snfv.process(cu, set.splitTokens); final TokenVector fileVec = new TokenVector(snfv.tf); // Create folded tree final ASTVisitors.TreeCreatorVisitor tcv = new TreeCreatorVisitor(); tcv.process(cu, file, fileVec, null, set); // Run selected algorithm on folded tree and return regions to unfold final ArrayList<Range<Integer>> unfoldedFolds = UnfoldAlgorithms .unfoldTree(tcv.getTree(), new GreedyVSMAlgorithm(), false); // Convert folds to HashMap<Range,isFolded> final HashMap<Range<Integer>, Boolean> folds = Maps.newHashMap(); for (final Range<Integer> r : tcv.allFolds) { if (unfoldedFolds.contains(r)) folds.put(r, false); else folds.put(r, true); } System.out.println("done."); // Get folded file final String fileString = CodeUtils.readFileString(file); final String foldedFile = CodeUtils.getFolded(fileString, folds, tcv); System.out.println("\nFolded file " + file.getName() + ": \n\n" + foldedFile); // Save folded file if requested if (outFile != null) { System.out.print("Saving folded file in " + outFile + "..."); CodeUtils.saveStringFile(foldedFile, outFile); } System.out.println("done."); return foldedFile; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getSourceFile();", "private String readFile(String source) throws IOException {\n StringBuilder contentBuilder = new StringBuilder();\n try (Stream<String> stream = Files.lines(Paths.get(source), StandardCharsets.UTF_8)) {\n stream.forEach(s -> contentBuilder.append(s));...
[ "0.4939878", "0.49006134", "0.48899502", "0.48790407", "0.48688245", "0.48028138", "0.47632876", "0.46971774", "0.4682508", "0.46294203", "0.4611283", "0.45179805", "0.4511089", "0.45024303", "0.44392434", "0.44180354", "0.44138485", "0.4400152", "0.43618217", "0.43540412", "...
0.46461436
9
Default constructor for test class EnvironmentPanelTest
public EnvironmentPanelTest() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Vending_MachineTest()\n {\n // initialise instance variables\n \n \n }", "protected TeststepRunner() {}", "public BazaarTests() {\r\n\t\tsuper();\r\n\t}", "private StressTestHelper() {\n // Empty constructor.\n }", "public AllLaboTest() {\n }", "public TestP...
[ "0.67931753", "0.677418", "0.6598873", "0.6534021", "0.65253055", "0.6521244", "0.6509334", "0.6494881", "0.64834476", "0.64731246", "0.64688325", "0.6466864", "0.64419234", "0.6426863", "0.64188355", "0.63544226", "0.6350641", "0.6323848", "0.63217455", "0.63126355", "0.6294...
0.9029687
0
Sets up the test fixture. Called before every test case method.
protected void setUp() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Before public void setUp() { }", "protected void setUp() {\n\t}", "protected void setUp() {\n\n }", "@Before public void setUp() {\n }", "@Before public void setUp() {\n }", "@Before public void setUp() {\n }", "@Before public void setUp() {\n }", "@Before public void setUp() {\n }", ...
[ "0.7875802", "0.78508884", "0.77189946", "0.7699059", "0.7699059", "0.7699059", "0.7699059", "0.7699059", "0.768649", "0.76622325", "0.7629051", "0.7627999", "0.7623902", "0.76179224", "0.76017296", "0.7595511", "0.7594185", "0.7586097", "0.75814986", "0.75737566", "0.7557952...
0.7750591
3
Tears down the test fixture. Called after every test case method.
protected void tearDown() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@After\n public void tearDown() {\n fixture.cleanUp();\n }", "@After\n public void tearDown() {\n fixture = null;\n }", "@AfterClass\r\n\tpublic static void testCleanup() {\r\n\t\tConfig.teardown();\r\n\t}", "@AfterTest\n\tpublic void teardown()\n\t{\n\t\t\n\t\tdriver.close();\n\t}", "pro...
[ "0.8343327", "0.8295237", "0.80239624", "0.80069876", "0.79356796", "0.79144764", "0.78988177", "0.78834516", "0.78801274", "0.7873192", "0.7862262", "0.7791972", "0.7791972", "0.77516323", "0.773132", "0.77117425", "0.7695534", "0.7691877", "0.767808", "0.76658434", "0.76589...
0.0
-1
KEEP FIELDS put your custom fields here KEEP FIELDS END
@Generated public Anotacion() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected String[] ignoreFields() {\n\t\treturn null;\n\t}", "public void formatFields() {\r\n\t}", "private static String db2selectFields() {\n return \"ID, EXTERNAL_ID, CREATED, CLAIMED, COMPLETED, MODIFIED, PLANNED, RECEIVED, DUE, NAME, \"\n + \"CREATOR, DESCRIPTION, NOTE, PRIORITY, M...
[ "0.59416205", "0.5639585", "0.5415948", "0.5414844", "0.5337502", "0.5317737", "0.5300493", "0.52835107", "0.528257", "0.52172285", "0.5210397", "0.52023166", "0.5193315", "0.5119721", "0.51156837", "0.5107027", "0.51057434", "0.5083161", "0.50756294", "0.5057746", "0.5047119...
0.0
-1
called by internal mechanisms, do not call yourself.
@Generated public void __setDaoSession(DaoSession daoSession) { this.daoSession = daoSession; myDao = daoSession != null ? daoSession.getAnotacionDao() : null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void mo51373a() {\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\tprotected void run() {\n\t\t\t\r\n\t\t}", "@Override\r\n\tpublic void comer() \r\n\t{...
[ "0.6371722", "0.6260732", "0.6228073", "0.616492", "0.6125714", "0.6042472", "0.5979736", "0.5976913", "0.5956299", "0.5942653", "0.5929282", "0.5929282", "0.5929282", "0.5929282", "0.5929282", "0.5929282", "0.590189", "0.5893604", "0.5893604", "0.58852583", "0.58852583", "...
0.0
-1
Toone relationship, resolved on first access.
@Generated public Anexo getAnexo() { Long __key = this.anexoId; if (anexo__resolvedKey == null || !anexo__resolvedKey.equals(__key)) { __throwIfDetached(); AnexoDao targetDao = daoSession.getAnexoDao(); Anexo anexoNew = targetDao.load(__key); synchronized (this) { anexo = anexoNew; anexo__resolvedKey = __key; } } return anexo; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void oneToOneNoBind() {\n\t\tSystem.out.println(\"============oneToOneNoBind=========\");\n\t\tUser u = new User();\n\t\tAddress a = new Address();\n\t\tList<User> users = Dao.queryForEntityList(User.class, select(), u.all(), \",\", a.all(), from(), u.table(), \",\",\n\t\t\t\ta.table(), \" where \"...
[ "0.586295", "0.5858311", "0.57361096", "0.56971985", "0.5671697", "0.56491035", "0.5610516", "0.5598799", "0.5569257", "0.5493518", "0.5485247", "0.54806054", "0.5471793", "0.54670626", "0.538438", "0.53736156", "0.5369618", "0.5316193", "0.5285615", "0.52508867", "0.52423453...
0.47454977
94
Delete GPIO Thing Type
public static void migrateGPIOThingType() { ThingTypeTemplate thingTypeTemplateGPIO = getThingTypeTemplateGPIO(); if (thingTypeTemplateGPIO != null) { ThingTypeTemplateService.getInstance().delete(thingTypeTemplateGPIO); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void deleteByType(int type) {\n\t\tsettingDao.deleteByType(type);\n\t}", "@Override\n\tpublic String delFoodType(int typeid) {\n\t\treturn ftb.delFoodType(typeid);\n\t}", "public void removeByType(long typeId);", "@Override\n\tpublic boolean delTypeFood(int typeid) {\n\t\treturn fb.delTyp...
[ "0.6244056", "0.6177737", "0.6055003", "0.5972264", "0.5952692", "0.5884238", "0.5812935", "0.5742511", "0.5714609", "0.5709589", "0.5703514", "0.5689711", "0.5665825", "0.56640047", "0.56446695", "0.56417495", "0.5633049", "0.56223655", "0.5615948", "0.5614644", "0.5610696",...
0.77991736
0
get GPIO Thing Type Template
public static ThingTypeTemplate getThingTypeTemplateGPIO() { HibernateQuery query = ThingTypeTemplateService.getThingTypeTemplateDAO().getQuery(); return query.where(QThingTypeTemplate.thingTypeTemplate.name.eq("GPIO")) .uniqueResult(QThingTypeTemplate.thingTypeTemplate); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getTemplateTypeValue();", "DataType getType_template();", "public static void migrateGPIOThingType() {\n ThingTypeTemplate thingTypeTemplateGPIO = getThingTypeTemplateGPIO();\n if (thingTypeTemplateGPIO != null) {\n ThingTypeTemplateService.getInstance().delete(thingTypeTemplateGPI...
[ "0.64112264", "0.6348152", "0.61875147", "0.61547357", "0.5993273", "0.58909905", "0.58279335", "0.5804653", "0.57742226", "0.5722509", "0.5722509", "0.5722509", "0.5722509", "0.5722509", "0.5722509", "0.5722509", "0.5722509", "0.5722509", "0.5722509", "0.5722509", "0.5722509...
0.7678673
0
An English text needs to be encrypted using the following encryption scheme. First, the spaces are removed from the text. Let L be the length of this text. Then, characters are written into a grid, whose rows and columns have the following constraints: 1. Ceil.L==L
public static void main(String[] args) { String s= "haveaniceday"; s=s.replaceAll(" ", ""); int column= (int) Math.ceil(Math.sqrt(s.length())); int row= (int) Math.floor(Math.sqrt(s.length())); // int i=0, j=0; // while(j<(s.length()-columnCeil)){ // matrix[i]=s.substring(j, j+columnCeil); // j+=columnCeil; // i++; // } // matrix[i]= s.substring(j, s.length()); if(column * row >= s.length()){ encrypt(s, row, column); }else{ row= column+1; encrypt(s, row, column); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void encryptText() {\n\n ArrayList<Character> punctuation = new ArrayList<>(\n Arrays.asList('\\'', ':', ',', '-', '-', '.', '!', '(', ')', '?', '\\\"', ';'));\n\n for (int i = 0; i < text.length(); ++i) {\n\n if (punctuation.contains(this.text.charAt(i))) {\n\n // only remo...
[ "0.6944979", "0.6862196", "0.6593145", "0.6584811", "0.6549072", "0.6542337", "0.649145", "0.639495", "0.63888484", "0.63816005", "0.6274743", "0.6215149", "0.6202276", "0.61863065", "0.60197204", "0.6009748", "0.59504396", "0.58815736", "0.5876283", "0.5854788", "0.5852239",...
0.55624574
44
/ String = adg jbeh kcfil 3 rows, 4 columns a d g j b e h k c f i l abc def ghi jkl
private static void encrypt(String string, int row, int column) { for(int i=0; i< column; i++){ int index=i; for(int j=0; j< row; j++){ if(index <= string.length()-1) System.out.print(string.charAt(index)); index+=column; } System.out.print(" "); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static String encrypt(String str) {\n\n String result = \"\";\n\n /* STEP 1: remove spaces */\n str = str.replaceAll(\"\\\\s+\", \"\");\n\n /* STEP 2: calculate dimensions */\n double dim = Math.sqrt(str.length());\n int rows = (int) Math.floor(dim);\n int c...
[ "0.63638836", "0.613692", "0.5972065", "0.554883", "0.5478978", "0.5451898", "0.54378825", "0.53420234", "0.53071517", "0.53031766", "0.5294269", "0.5291476", "0.5240912", "0.52282286", "0.5180367", "0.51361793", "0.5074929", "0.5070205", "0.50591564", "0.50558496", "0.505176...
0.5238974
13
Creates a CDCollection object and adds some CDs to it. Prints reports on the status of the collection.
public static void main(String[] args) throws Exception { CDCollection collection = new CDCollection(); BufferedReader br = new BufferedReader(new FileReader("E:\\Reading Writing Labs\\bin\\textfile.txt")); String line = null; while ((line = br.readLine()) != null) { // you can use " " to split where white space is String[] values = line.split("-"); // for (String str : values) { // System.out.println(str); //} collection.addCD(values[0], values[1], Double.parseDouble(values[2]) , Integer.parseInt(values[3])); } br.close(); System.out.println (collection); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void writeCollection() throws DvdCollectionDaoException {\n // NOTE FOR APPRENTICES: We are not handling the IOException - but\n // we are translating it to an application specific exception and \n // then simple throwing it (i.e. 'reporting' it) to the code that\n // called us....
[ "0.61670744", "0.60392284", "0.59267336", "0.5903112", "0.584236", "0.5650267", "0.56233454", "0.5617235", "0.55292577", "0.54846025", "0.54227215", "0.5400116", "0.5338847", "0.53358346", "0.5303417", "0.5272125", "0.5269892", "0.52516055", "0.52392244", "0.51554763", "0.514...
0.5172037
19
crea ed ordina i gruppi sulla base dei passeggeri
public static Gruppo[] sortGroup(List<Passeggero> lista){ //creo mappa hash contentente id gruppo e gruppo, dimensione iniziale pari al numero di passeggeri //da analizzare (caso peggiore per migliorare le prestaioni) HashMap<ObjectId, Gruppo> map = new HashMap<ObjectId, Gruppo>(lista.size(), 1f); Iterator<Passeggero> i = lista.iterator(); //inserisco passeggeri nei rispettivi gruppi con complessià n (simile ad ordinamento lineare) while (i.hasNext()) { Passeggero passeggero = (Passeggero) i.next(); ObjectId groupId = passeggero.getIdGruppo(); //controllo se il gruppo esiste già nella lista Gruppo g = map.get(groupId); //se non esiste creo un nuovo gruppo if(g == null){ g = new Gruppo(groupId); map.put(groupId, g); } //inserisco il passeggero nella lista di quel gruppo g.add(passeggero); } //ordino gruppi per peso (merge sort) Gruppo[] gruppi = map.values().toArray(new Gruppo[0]); Arrays.sort(gruppi, Collections.reverseOrder()); return gruppi; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void creationGrille();", "public void insertarGrado() {\n \tGrado grado = new Grado();\n \tgrado.setIdSeccion(38);\n \tgrado.setNumGrado(2);\n \tgrado.setUltimoGrado(0);\n \tString respuesta = negocio.insertarGrado(\"\", grado);\n \tSystem.out.println(respuesta);\n }", "pu...
[ "0.67408144", "0.6645665", "0.6447553", "0.6391483", "0.63522166", "0.631647", "0.63057417", "0.6284613", "0.62664235", "0.6236112", "0.62303096", "0.62113154", "0.6199761", "0.61636543", "0.6159346", "0.611859", "0.61182934", "0.6094", "0.6089481", "0.60687274", "0.6052245",...
0.0
-1
mapping tm_customer_ddpay, customerDDPay DAO component
List<CustomerDDPay> selectCustomerDDPay(CustomerDDPay cddp);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void insertCustomerDDPay(CustomerDDPay cddp);", "void updateCustomerDDPay(CustomerDDPay cddp);", "public interface CustomerMapper extends JdMapper<Customer, Long> {\n\t\n\tPage<Customer> selectPageByColumn(Customer customer);\n\t\n\tList<Customer> selectListColumn(Customer customer);\n\tpublic int insertTable(...
[ "0.6625394", "0.63936615", "0.614188", "0.6108422", "0.59960866", "0.59196854", "0.58515656", "0.5756954", "0.574515", "0.57250863", "0.5650262", "0.564074", "0.5633487", "0.56187195", "0.55279446", "0.55278635", "0.5527525", "0.552303", "0.55100375", "0.55098754", "0.550828"...
0.6624717
1
/ // END SELECT AREA / =================================================================================== / INSERT AREA
void insertCustomerDDPay(CustomerDDPay cddp);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public insertExp() throws SQLException {\n this.setExtendedState(JFrame.MAXIMIZED_BOTH);\n initComponents();\n jLabel1.setVisible(false);\n idLable.setVisible(false);\n showNextId();\n showProjCombo();\n detailsText.setComponentOrientation(ComponentOrientation.R...
[ "0.5790609", "0.55849016", "0.5556026", "0.5510461", "0.5510359", "0.5472107", "0.5453911", "0.5436173", "0.54150784", "0.53966916", "0.5334916", "0.5308922", "0.5286916", "0.5248475", "0.5247358", "0.5241224", "0.52247226", "0.5219369", "0.5213582", "0.520565", "0.5191833", ...
0.0
-1
/ // END INSERT AREA / =================================================================================== / UPDATE AREA
void updateCustomerDDPay(CustomerDDPay cddp);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public void insertUpdate(DocumentEvent e) {\n HayCambio();\r\n }", "public void insertUpdate(DocumentEvent e) {\r\n changed();\r\n }", "@Override\n\t\t\t\tpublic void insertUpdate(DocumentEvent e) {\n\t\t\t\t\tchange();\n\t\t\t\t}", ...
[ "0.6047016", "0.5898826", "0.5879393", "0.5729145", "0.56582576", "0.5649689", "0.56495947", "0.5589808", "0.55842316", "0.5573919", "0.5568312", "0.556234", "0.5553689", "0.5552942", "0.554634", "0.55413425", "0.5532783", "0.5532783", "0.5532783", "0.55313087", "0.5528098", ...
0.0
-1
/ // END UPDATE AREA / =================================================================================== / DELETE AREA
void deleteCustomerDDPayById(int id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void delete() {\n AltDatabase.getInstance().getAlts().remove(getCurrentAsEditable());\n if (selectedAccountIndex > 0)\n selectedAccountIndex--;\n updateQueried();\n updateButtons();\n }", "private void removeArea() {\n \t\tthis.set.remove( this.area );\n \t\tthis...
[ "0.6137281", "0.6002579", "0.5897075", "0.579164", "0.5768178", "0.57473564", "0.5737514", "0.5724565", "0.5724565", "0.5724565", "0.5693357", "0.5672905", "0.56578165", "0.56413275", "0.5633485", "0.563197", "0.5587509", "0.5583375", "0.55560815", "0.5523992", "0.54907674", ...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { OrderedTree tree_77, tree_44, tree_99, tree_33, tree_55; // 자식을 갖는 객체 이름 지정 OrderedTree tree_22 = new OrderedTree(22); // root가 22인 단독 트리 생성 OrderedTree tree_66 = new OrderedTree(66); // root가 66인 단독 트리 생성 OrderedTree tree_88 = new OrderedTree(88); // root가 88인 단독 트리 생성 List subtreeOf_33 = new LinkedList(); // root를 33으로 하는 트리의 subtree를 담을 list 객체 subtreeOf_33.add(tree_22); // subtree list에 root가 22인 트리를 넣음 tree_33 = new OrderedTree(33, subtreeOf_33); // subtree로 subtreeOf_33 list에 담겨있는 트리를 갖고 root가 33인 트리 생성 List subtreeOf_55 = new LinkedList(); // root를 55로 하는 트리의 subtree를 담을 list 객체 subtreeOf_55.add(tree_66); // subtree list에 root가 66인 트리를 넣음 tree_55 = new OrderedTree(55, subtreeOf_55); // subtree로 subtreeOf_55 list에 담겨있는 트리를 갖고 root가 55인 트리 생성 List subtreeOf_44 = new LinkedList(); // root를 44로 하는 트리의 subtree를 담을 list 객체 subtreeOf_44.add(tree_33); // subtree list에 root가 33인 트리를 넣음 subtreeOf_44.add(tree_55); // subtree list에 root가 55인 트리를 넣음 tree_44 = new OrderedTree(44, subtreeOf_44); // subtree로 subtreeOf_44 list에 담겨있는 트리를 갖고 root가 44인 트리 생성 List subtreeOf_99 = new LinkedList(); // root를 99로 하는 트리의 subtree를 담을 list 객체 subtreeOf_99.add(tree_88); // subtree list에 root가 88인 트리를 넣음 tree_99 = new OrderedTree(99, subtreeOf_99); // subtree로 subtreeOf_99 list에 담겨있는 트리를 갖고 root가 99인 트리 생성 List subtreeOf_77 = new LinkedList(); // root를 77로 하는 트리의 subtree를 담을 list 객체 subtreeOf_77.add(tree_44); // subtree list에 root가 44인 트리를 넣음 subtreeOf_77.add(tree_99); // subtree list에 root가 99인 트리를 넣음 tree_77 = new OrderedTree(77, subtreeOf_77); // subtree로 subtreeOf_77 list에 담겨있는 트리를 갖고 root가 77인 트리 생성 System.out.print("레벨 순서 순회 : "); tree_77.levelorder(); // 레벨 순서 순회 메소드 호출 }
{ "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
naplni sa dropdownmenu obsahujuce dostupne parkoviska (zoznam miest)
public void getParking() throws SQLException{ ResultSet rs = Datasource.getInstance().openParking(); while(rs.next()){ this.parking.add(rs.getString("town")); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private org.gwtbootstrap3.client.ui.DropDownMenu get_f_DropDownMenu22() {\n return build_f_DropDownMenu22();\n }", "private void cargaLista() {\n this.getTipoApelacionSelecionada().add(new SelectItem(\"Aclaracion\", \"Aclaracion\"));\n this.getTipoApelacionSelecionada().add(new SelectItem(\...
[ "0.64007455", "0.634834", "0.6309038", "0.6308426", "0.6240785", "0.62304705", "0.62114555", "0.6197137", "0.6189498", "0.61814284", "0.6160716", "0.6153428", "0.6128548", "0.61283064", "0.6127644", "0.6119775", "0.6112543", "0.6076114", "0.60678095", "0.6035914", "0.60344756...
0.0
-1
vyrata sa cena za aktualne zvolene hodnoty (mesto a pocet hodin) ak je pouzivatel typu Disabled a parkovisko neobsahuje ziadne ZTP miesta, program vytvori varovnu spravu. ak pouzivatel nema dostatok kreditu na zaplotenie, vytvori sa varovna sprava.
public void onOKclick() throws SQLException { ParkPlace parkPlace = Datasource.getInstance().findParking((String) towns.getValue()); Class pomoc = parkPlace.getClass(); int hour = Integer.parseInt(hours.getText()); basePrice.setText(String.valueOf(parkPlace.getBaseHourPrice())); type.setText(pomoc.getName().replace("ParkPlaces.","").replace("Parking","")); if (this.user instanceof Student){ cost.setText(String.format("%.2f",parkPlace.calculatePrice((Student) this.user,hour)) + " €"); } else if (this.user instanceof DisabledPerson){ cost.setText(String.format("%.2f",parkPlace.calculatePrice((DisabledPerson) this.user,hour)) + " €"); } else { cost.setText(parkPlace.calculatePrice(this.user,hour) + " €"); } if (parkPlace.getNumOfDPPSpots() == 0 && this.user instanceof DisabledPerson) warning.setText("Warning! This parking lot does not have exclusive places for Disabled people!"); if (this.user.getCredit() < Double.parseDouble(cost.getText().replace(" €","")) ){ funds.setText("Insufficient funds, please increase your account balance."); pay.setDisable(true); return; } funds.setText(""); pay.setDisable(false); this.priceToBePaid = Double.parseDouble(cost.getText().replace(" €","")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void Power() {\n if (Estado == false){\r\n Estado = true;\r\n } else if (Estado == true){\r\n Estado = false;\r\n }\r\n }", "private void enableBotonAceptar()\r\n\t{\r\n\t\t\r\n\t}", "public synchronized void ProvjeriPreuzimanje() {\n dopustenoPreuzim...
[ "0.5985927", "0.5927923", "0.5892919", "0.58856124", "0.58614993", "0.5846356", "0.5839878", "0.58017814", "0.57715094", "0.57513654", "0.57391995", "0.5720268", "0.5713692", "0.56774914", "0.5648616", "0.56457764", "0.56416696", "0.5630923", "0.5629092", "0.5614598", "0.5610...
0.0
-1
tlacidlo na zaplatenie sumy a kupy parkovneho listka
public void onPayClick(){ this.user.updateCreditDec(priceToBePaid); Alert alert = new Alert(Alert.AlertType.INFORMATION); alert.setTitle("Information Dialog"); alert.setHeaderText(null); alert.setContentText("Payment successful! You payed " + cost.getText()); alert.showAndWait(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void sumaPuntos() {\r\n int rojo = 0;\r\n int azul = 0;\r\n for (int i = 1; i < 10; i++) {\r\n\r\n if (tablero[1][i].getTipo().equals(\"Rojo\")) {\r\n rojo += tablero[1][i].getValor();\r\n }\r\n\r\n if (tablero[8][i].getTipo().equals(\"Azu...
[ "0.6722087", "0.6635147", "0.65992063", "0.6538475", "0.6528937", "0.65070105", "0.6347317", "0.6315844", "0.6288035", "0.6260883", "0.62121457", "0.62062", "0.6195175", "0.61940366", "0.6182444", "0.6168687", "0.6133472", "0.6114524", "0.6026688", "0.60161036", "0.60053974",...
0.0
-1
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View v= inflater.inflate(R.layout.fragment_customer_list, container, false); pd=new ProgressDialog(getActivity()); pd.setMessage("Please wait..."); pd.setCancelable(false); pd.show(); custListVM = new ViewModelProvider(this).get(CustListVM.class); custListVM.AllCustApiCall("fromcustomerlist"); prepareRecyclerView(v); custListVM.getAllcustObserver().observe(getViewLifecycleOwner(), new Observer<List<CustomerListData>>() { @Override public void onChanged(List<CustomerListData> customerListData) { if(customerListData!=null) { newCustlist=customerListData; allCustomerAdapter.setCusttList(newCustlist); } } }); custListVM.CustloadDoneObserver().observe(getViewLifecycleOwner(), new Observer<String>() { @Override public void onChanged(String s) { if(s.equals("lcomplete")) { pd.dismiss(); }if(s.equals("lincomplete")) { pd.dismiss(); Toast.makeText(getActivity(), "Data Not Loded correctly", Toast.LENGTH_SHORT).show(); } } }); swip_cust.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() { @Override public void onRefresh() { custListVM.AllCustApiCall("fromcustomerlistswip"); swip_cust.setRefreshing(false); } }); return v; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup...
[ "0.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.66251...
0.0
-1
Illegal State Exception errors can be thrown if x, y, or z is null
public Vector3<T> build() { return new Vector3<>(x, y, z); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void checkComponents() throws Exception {\r\n if (InitialData == null) {\r\n throw new Exception(\"Initial data not set.\");\r\n }\r\n if (Oracle == null) {\r\n throw new Exception(\"Oracle not set.\");\r\n }\r\n if (SearchSpace == null) {\r\n ...
[ "0.69523793", "0.6347549", "0.6232948", "0.620454", "0.60577965", "0.6039107", "0.5979352", "0.5978185", "0.59426403", "0.5901818", "0.58915406", "0.58643323", "0.586362", "0.5852694", "0.58423126", "0.58255047", "0.58141094", "0.5810122", "0.5774657", "0.57652324", "0.576198...
0.0
-1
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View inflate = inflater.inflate(R.layout.fragment_notify__setting, container, false); preferences = getActivity().getSharedPreferences("user", Context.MODE_PRIVATE); api_token = preferences.getString("api_token", ""); negative_O = inflate.findViewById(R.id.O_); positive_O = inflate.findViewById(R.id.O); negative_A = inflate.findViewById(R.id.A_); positive_A = inflate.findViewById(R.id.A); negative_AB = inflate.findViewById(R.id.AB_); positive_AB = inflate.findViewById(R.id.AB); recyclerView = inflate.findViewById(R.id.check_rv); btn_save = inflate.findViewById(R.id.btn_setting_save); IDS = new ArrayList<>(); blood_types = new ArrayList<>(); CheckedChangeListener(negative_O); CheckedChangeListener(positive_O); CheckedChangeListener(negative_A); CheckedChangeListener(positive_A); CheckedChangeListener(negative_AB); CheckedChangeListener(positive_AB); btn_save.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { IDS = adapter.IDS; saveSetting(); Toast.makeText(getContext(), "" + IDS, Toast.LENGTH_SHORT).show(); } }); setupRecycle(); cityResponse(); return inflate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup...
[ "0.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.66251...
0.0
-1
/ final Dialog dialog = new Dialog(activity); dialog.setContentView(R.layout.item_recycler); dialog.setTitle("Position " + position); dialog.setCancelable(true); // dismiss when touching outside Dialog set the custom dialog components texts and image TextView name = (TextView) dialog.findViewById(R.id.name); TextView job = (TextView) dialog.findViewById(R.id.job); ImageView icon = (ImageView) dialog.findViewById(R.id.image); setDataToView(name, job, icon, position); dialog.show();
@Override public void onClick(View v) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int position, long l) {\n View dialogView = (View) View.inflate(getApplicationContext(), R.layout.activity_image_view, null);\n AlertDialog.Builder dlg = new AlertDialog.Builder(ImageGridActivity.thi...
[ "0.7046065", "0.70028746", "0.69998103", "0.69998103", "0.6967141", "0.68778443", "0.6847086", "0.684064", "0.6772249", "0.67413205", "0.6662506", "0.6604834", "0.6604829", "0.6514019", "0.65128416", "0.65024", "0.6495997", "0.64866227", "0.647884", "0.647884", "0.6477213", ...
0.0
-1
Runs the simulations for each intervention
private void simulateInterventions(int id, boolean baseCase) { final RepositoryInstance common = secParams.getInstance(); final int nInterventions = interventions.size(); final TimeFreeOfComplicationsView timeFreeListener = new TimeFreeOfComplicationsView(nPatients, nInterventions, false, secParams.getRegisteredComplicationStages()); final HbA1cListener[] hba1cListeners = new HbA1cListener[nInterventions]; final CostListener[] costListeners = new CostListener[nInterventions]; final LYListener[] lyListeners = new LYListener[nInterventions]; final QALYListener[] qalyListeners = new QALYListener[nInterventions]; final AcuteComplicationCounterListener[] acuteListeners = new AcuteComplicationCounterListener[nInterventions]; for (int i = 0; i < nInterventions; i++) { hba1cListeners[i] = new HbA1cListener(nPatients); costListeners[i] = new CostListener(secParams.getCostCalculator(common.getAnnualNoComplicationCost(), common.getCompSubmodels(), common.getAcuteCompSubmodels()), discountCost, nPatients); lyListeners[i] = new LYListener(discountEffect, nPatients); qalyListeners[i] = new QALYListener(secParams.getUtilityCalculator(common.getNoComplicationDisutility(), common.getCompSubmodels(), common.getAcuteCompSubmodels()), discountEffect, nPatients); acuteListeners[i] = new AcuteComplicationCounterListener(nPatients); } final DiabetesIntervention[] intInstances = common.getInterventions(); DiabetesSimulation simul = new DiabetesSimulation(id, intInstances[0], nPatients, common, secParams.getPopulation(), timeHorizon); simul.addInfoReceiver(hba1cListeners[0]); simul.addInfoReceiver(costListeners[0]); simul.addInfoReceiver(lyListeners[0]); simul.addInfoReceiver(qalyListeners[0]); simul.addInfoReceiver(acuteListeners[0]); simul.addInfoReceiver(timeFreeListener); if (patientListener != null) simul.addInfoReceiver(patientListener); if (baseCase) { for (ExperimentListener listener : baseCaseExpListeners) { listener.addListener(simul); } } else { for (ExperimentListener listener : expListeners) { listener.addListener(simul); } } simul.run(); for (int i = 1; i < nInterventions; i++) { simul = new DiabetesSimulation(simul, intInstances[i]); simul.addInfoReceiver(hba1cListeners[i]); simul.addInfoReceiver(costListeners[i]); simul.addInfoReceiver(lyListeners[i]); simul.addInfoReceiver(qalyListeners[i]); simul.addInfoReceiver(acuteListeners[i]); simul.addInfoReceiver(timeFreeListener); if (patientListener != null) simul.addInfoReceiver(patientListener); if (baseCase) { for (ExperimentListener listener : baseCaseExpListeners) { listener.addListener(simul); } } else { for (ExperimentListener listener : expListeners) { listener.addListener(simul); } } simul.run(); } if (printOutputs.contains(Outputs.INDIVIDUAL_OUTCOMES)) { System.out.print("Patient"); for (int i = 0; i < nInterventions; i++) { final String shortName = interventions.get(i).getShortName(); System.out.print("\tCost_" + shortName + "\tLE_" + shortName + "\tQALE_" + shortName); } System.out.println(); for (int i = 0; i < nPatients; i++) { System.out.print(i); for (int j = 0; j < nInterventions; j++) { System.out.print("\t" + costListeners[j].getValues()[i] + "\t" + lyListeners[j].getValues()[i] + "\t" + qalyListeners[j].getValues()[i]); } System.out.println(); } } out.println(print(simul, hba1cListeners, costListeners, lyListeners, qalyListeners, acuteListeners, timeFreeListener)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public void runSimulation(){\r\n initialize();\r\n initialRun();\r\n initialize(\"square\");\r\n initialRun();\r\n initialize(\"circle\");\r\n initialRun();\r\n initialize(\"crack\");\r\n initialRun(); \r\n ...
[ "0.6900568", "0.6693179", "0.6569642", "0.64250654", "0.64195055", "0.62490684", "0.6230554", "0.61942244", "0.61426544", "0.6086622", "0.60644114", "0.6063116", "0.6054216", "0.60521495", "0.6034721", "0.6028032", "0.60163164", "0.60070103", "0.5992627", "0.5968017", "0.5954...
0.65898526
2
Function to remove a course from the courses that were added earlier
@FXML public void remove() { String name=user.getText().split(": ")[1]; Student temp=null; for(int i=0;i<Main.IIITD.getUsers().size();++i) { if(Main.IIITD.getUsers().get(i).getCredentials().getName().equals(name)) { if(Main.IIITD.getUsers().get(i).getCredentials().getUserType().equals("Student")) { temp=(Student) Main.IIITD.getUsers().get(i); } } } Courses temp2=null; String course_name=mycourses.getValue(); for(int i=0;i<temp.getPersonalizedTimetable().getCourses().size();++i) { if(temp.getPersonalizedTimetable().getCourses().get(i).getCoursename().equals(course_name)) { temp2=temp.getPersonalizedTimetable().getCourses().get(i); } } temp.getPersonalizedTimetable().getCourses().remove(temp2); // allcourselist.add(mycourses.getValue()); mycourselist.remove(mycourses.getValue()); allcourselist=FXCollections.observableArrayList(); for(int i=0;i<Main.IIITD.getCourses().size();i++) { if(!hascourse(Main.IIITD.getCourses().get(i).getCoursename()) && !check_clash(Main.IIITD.getCourses().get(i).getCoursename())) { allcourselist.add(Main.IIITD.getCourses().get(i).getCoursename()); } } allcourses.setItems(allcourselist); mycourses.setItems(mycourselist); allcourses.setValue(null); mycourses.setValue(null); if(mycourselist.size()<6) { add_course.setDisable(false); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void removeCourse(Course c) {\n courseList.remove(c);\n numOfCourses--;\n }", "public void removeCourse(String course);", "public void removeBycourse_id(long course_id);", "private void removeFromSavedCourseList() {\n System.out.println(\"The current courses in the saved course list are:...
[ "0.7955122", "0.7907227", "0.74328375", "0.7386941", "0.72989565", "0.7118554", "0.69480395", "0.6879986", "0.67592275", "0.6719383", "0.6608838", "0.65641135", "0.64818585", "0.64525956", "0.6315792", "0.62897444", "0.6201109", "0.61977726", "0.6167668", "0.6085495", "0.6080...
0.646233
13
Initializes the page which enables the student to add or remove courses
@FXML private void initialize() { for(int i=0;i<Main.IIITD.getCourses().size();i++) { if(!hascourse(Main.IIITD.getCourses().get(i).getCoursename()) && !check_clash(Main.IIITD.getCourses().get(i).getCoursename())) { allcourselist.add(Main.IIITD.getCourses().get(i).getCoursename()); } } allcourses.setItems(allcourselist); String name=login_controller.namee; Student temp=null; for(int i=0;i<Main.IIITD.getUsers().size();++i) { if(Main.IIITD.getUsers().get(i).getCredentials().getName().equals(name)) { if(Main.IIITD.getUsers().get(i).getCredentials().getUserType().equals("Student")) { temp=(Student) Main.IIITD.getUsers().get(i); } } } for(int j=0;j<temp.getPersonalizedTimetable().getCourses().size();j++) { mycourselist.add(temp.getPersonalizedTimetable().getCourses().get(j).getCoursename()); } mycourses.setItems(mycourselist); if(mycourselist.size()>5) { add_course.setDisable(true); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public CoursesManagement() {\n initComponents();\n }", "public void init(){\n this.controller = new StudentController();\n SetSection.displayLevelList(grade_comp);\n new DesignSection().designForm(this, editStudentMainPanel, \"mini\");\n }", "public student_homepage() {\n ...
[ "0.73197144", "0.7302587", "0.6756744", "0.6666416", "0.6641635", "0.65840846", "0.6577076", "0.65501016", "0.64868546", "0.64097154", "0.6358573", "0.635538", "0.63534385", "0.63489", "0.6340184", "0.6330666", "0.6315807", "0.62995446", "0.62984204", "0.62897897", "0.622109"...
0.67783034
2
This class was generated by Apache CXF 2.7.1SNAPSHOT 20121205T15:11:52.157+08:00 Generated source version: 2.7.1SNAPSHOT
@WebService(targetNamespace = "http://example.org/signature", name = "SignatureDocumentLiteral") @XmlSeeAlso({ ObjectFactory.class }) @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) public interface SignatureDocumentLiteral { @WebResult(name = "SignatureOut", targetNamespace = "http://example.org/signature", partName = "SignatureOut") @Action(input = "http://example.org/action/SignatureInAlternate", output = "http://example.org/action/SignatureOutAlternate") @WebMethod(operationName = "Sign2", action = "http://example.org/action/SignatureInAlternate") public java.lang.String sign2(@WebParam(partName = "SignatureIn", name = "SignatureIn", targetNamespace = "http://example.org/signature") java.lang.String signatureIn); @WebResult(name = "SignatureOut", targetNamespace = "http://example.org/signature", partName = "SignatureOut") @Action(input = "http://example.org/action/SignatureInEmpty", output = "http://example.org/action/SignatureOutEmpty") @WebMethod(operationName = "Sign3", action = "http://example.org/action/SignatureInEmpty") public java.lang.String sign3(); @WebResult(name = "SignatureOut", targetNamespace = "http://example.org/signature", partName = "SignatureOut") @Action(input = "http://example.org/action/SignatureInAlternateEmpty", output = "http://example.org/action/SignatureOutAlternateEmpty") @WebMethod(operationName = "Sign4", action = "http://example.org/action/SignatureInAlternateEmpty") public java.lang.String sign4(); @WebResult(name = "SignatureOut", targetNamespace = "http://example.org/signature", partName = "SignatureOut") @Action(input = "http://example.org/action/SignatureInMultipart", output = "http://example.org/action/SignatureOutMultipart") @WebMethod(operationName = "Sign6", action = "http://example.org/action/SignatureInMultipart") public java.lang.String sign6(@WebParam(partName = "parameters", name = "SignatureInMultipartMessage", targetNamespace = "http://example.org/signature") SignatureInMultipartMessage parameters); @WebResult(name = "SignatureOut", targetNamespace = "http://example.org/signature", partName = "SignatureOut") @Action(input = "http://example.org/action/SignatureIn", output = "http://example.org/action/SignatureOut") @WebMethod(operationName = "Sign1", action = "http://example.org/action/SignatureIn") public java.lang.String sign1(@WebParam(partName = "SignatureIn", name = "SignatureIn", targetNamespace = "http://example.org/signature") java.lang.String signatureIn); @Action(input = "http://example.org/action/SignatureEmptyPartIn", output = "http://example.org/action/SignatureEmptyPartOut") @WebMethod(operationName = "Sign5", action = "http://example.org/action/SignatureEmptyPartIn") public void sign5(); @WebResult(name = "SignatureOutHeaderMember", targetNamespace = "http://example.org/signature", partName = "SignatureOutHeaderMember") @Action(input = "http://example.org/action/SignatureHeaderIn", output = "http://example.org/action/SignatureHeaderReply", fault = { @FaultAction(className = SignatureDocumentLiteralSign7SignatureHeaderFaultFaultMessage.class, value = "http://example.org/action/SignatureHeaderFault") }) @WebMethod(operationName = "Sign7", action = "http://example.org/action/SignatureHeaderIn") public java.lang.String sign7(@WebParam(partName = "SignatureInHeaderMember", name = "SignatureInHeaderMember", targetNamespace = "http://example.org/signature") java.lang.String signatureInHeaderMember, @WebParam(partName = "HeaderText", mode = WebParam.Mode.INOUT, name = "SignatureOutHeader", targetNamespace = "http://example.org/signature", header = true) javax.xml.ws.Holder<java.lang.String> headerText) throws SignatureDocumentLiteralSign7SignatureHeaderFaultFaultMessage; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@WebService(targetNamespace = \"http://demo.cxf.com/\", name = \"SampleService\")\n@XmlSeeAlso({ObjectFactory.class})\npublic interface SampleService {\n\n @WebMethod\n @RequestWrapper(localName = \"serviceMethod\", targetNamespace = \"http://demo.cxf.com/\", className = \"com.cxf.demo.sample.client.ServiceM...
[ "0.6543887", "0.64725757", "0.63919973", "0.6317389", "0.6303242", "0.6220796", "0.6107054", "0.6102815", "0.60959136", "0.609051", "0.6084516", "0.60796034", "0.6078928", "0.6050802", "0.6046382", "0.60256284", "0.6019383", "0.6016647", "0.6005865", "0.5992212", "0.59907657"...
0.0
-1
Created by linhdq on 5/14/17.
public interface GetService { @GET(API.LIST_STORE) @Headers({API.HEADERS}) Call<List<JSONStoreItem>> callJsonListStore(); @GET(API.LIST_COUPON) @Headers({API.HEADERS}) Call<List<JSONCouponItem>> callJsonListCoupon(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void func_104112_b() {\n \n }", "public final void mo51373a() {\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "protected boolean func_70814_o() { return true; }", "@Override\n public void perish() {\n \n }", "private void m50366E() {\n }...
[ "0.58889836", "0.5726986", "0.5702909", "0.56864136", "0.5686074", "0.56436104", "0.55830646", "0.5533379", "0.5521494", "0.5501907", "0.5500549", "0.5500549", "0.5464475", "0.54453313", "0.5434374", "0.5433575", "0.5421777", "0.541207", "0.53746337", "0.53664964", "0.5358602...
0.0
-1
We don't care about notes in the grid view.
@Override void notesUpdated(int nSlideIndex) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected boolean shouldShowItemNone() {\n return false;\n }", "@Override\n public boolean isCellEditable(int row, int column)\n {\n return column == NOTES;\n }", "public boolean getClearsTestNotes()\n {\n return true;\n }", "@Ove...
[ "0.6136197", "0.5924852", "0.5870883", "0.5790533", "0.5731184", "0.5715598", "0.55968624", "0.55968624", "0.5571606", "0.5545987", "0.55194485", "0.54978645", "0.54970676", "0.5491205", "0.54879475", "0.54840136", "0.54771316", "0.5436075", "0.5434423", "0.5429838", "0.54196...
0.0
-1
Constructor for places you can drive to
Location( String placeName, String placeDescript, String altDescript, boolean canDrive){ locationName = placeName; locationDescription = placeDescript; altDescription = altDescript; drivable = canDrive; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Place(Scanner game) \r\n\t{\r\n\t\t// Initially adding exit and nowhere place to static collection.\r\n\t\tif ( firstTime)\r\n\t\t{\t\r\n\t\t\tif( flag ==0)\r\n\t\t\t{\r\n\t\t\t\tid = 1;\r\n\t\t\t\tname = \"Exit\";\r\n\t\t\t\tdescription = \" Exit\";\r\n\t\t\t\ttm.put(id, this);\r\n\t\t\t\tflag =1;\r\n\t\t\...
[ "0.6856445", "0.6800472", "0.676373", "0.6638182", "0.66111016", "0.6497071", "0.6481255", "0.6455158", "0.64496464", "0.6446618", "0.64185894", "0.63899475", "0.6361831", "0.6331991", "0.63194317", "0.62777257", "0.62263167", "0.6176845", "0.616989", "0.6158063", "0.6137217"...
0.6171707
18
changes isVisited from false to true when the player goes there.
void changeVisited(){ this.isVisited = true;}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setVisited(boolean value){this.visited = value;}", "@Override\r\n\tpublic boolean isVisited() {\n\t\treturn false;\r\n\t}", "public void setVisited(boolean visited) {\n isVisited = visited;\n }", "public void setVisited()\n {\n visited = true;\n }", "public boolean WasVis...
[ "0.7112457", "0.6971345", "0.6871066", "0.6811126", "0.66726094", "0.66515434", "0.66472423", "0.66426504", "0.66388714", "0.663211", "0.6628501", "0.6596029", "0.6584161", "0.6556469", "0.6555041", "0.64768326", "0.6452611", "0.6452611", "0.6452217", "0.63091683", "0.6293024...
0.7161782
0
adds container to location
void addContainer (Container toAdd){ this.receptacle.add(toAdd);}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void addToContainer(Container container);", "@Override\n public void addContainer(Container c) {\n Optional<Container> duplicate = getContainers().filter(\n n -> n.getName().equals(c.getName())\n && n.getOwner().getTenant().equals(c.getOwner().getTenant())\n ...
[ "0.72242093", "0.66991", "0.6416866", "0.6260936", "0.6222639", "0.618644", "0.61778694", "0.61315954", "0.5986768", "0.5953014", "0.59487885", "0.57115054", "0.5689579", "0.5673279", "0.56584495", "0.5630374", "0.55986154", "0.5574497", "0.5549642", "0.546294", "0.5438296", ...
0.6557365
2
adds item to location used to add things initially and when you drop them.
void addItem (Item toAdd){ this.items.add(toAdd);}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void insertItem(Position position, IItem item);", "void add(Item item);", "public void add() {\n\t\tcart.add(item.createCopy());\n\t}", "public void store(Item item) {\n this.items.add(item);\n }", "public void dropItemAtCurrentPlace(Item it)\r\n\t{\r\n\t\tthis.currentPlace.addItem(it);\r\n\t}", ...
[ "0.68502706", "0.6792193", "0.65994877", "0.65231115", "0.64387935", "0.64212155", "0.6412087", "0.6380771", "0.63734907", "0.6372725", "0.63695455", "0.63636506", "0.6315273", "0.63000125", "0.6298893", "0.62688106", "0.6267794", "0.6265828", "0.6265828", "0.62542397", "0.62...
0.6727742
2
subtracts item from location when you pick up an item. replaced by default arraylist.remove list. prints the names of the item(s) in that location.
void examine() { if (!isItEmpty()){ printItemDescriptions(); System.out.println("\nWhat's in " + this.locationName + ": "); examineItems(); //calls the examine items method. examineContainers(); //calls the examine containers method. System.out.println("");} }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void dropItem(Command command) {\n HashMap newInventory = inventory.getInventory();\n Iterator iterator = newInventory.entrySet().iterator();\n String seeItem;\n// int indexItem = -1;\n String nameOfItem = \"\";\n String dropFromInventory = \"debug\";\n\n while (ite...
[ "0.5903504", "0.5828773", "0.58241206", "0.5817749", "0.575095", "0.5704331", "0.5676397", "0.5667134", "0.5652107", "0.5651598", "0.564966", "0.5634282", "0.55949396", "0.5583411", "0.5576932", "0.55752116", "0.55474573", "0.5541865", "0.55409396", "0.5537447", "0.5534735", ...
0.0
-1
looks to see where the player can drive
void getDrivableLocations() { System.out.print("\nPlaces you can drive to: "); for (int i = 0; i < places.length; i++) if (places[i].drivable) //looks to see if you can drive there if ((places[i] != this)) //if it's not you're current location. System.out.print(places[i].locationName + ", "); //prints the name of the location System.out.println("\n"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasDriveFile();", "boolean hasDriveFolder();", "public void teleopArcadeDrive(){\r\n\t\tmyRobot.arcadeDrive(-m_controls.driver_Y_Axis(), -m_controls.driver_X_Axis());\r\n\t}", "public boolean checkPlays(Player player){\n return true;\n }", "protected boolean canTriggerWalking() {\n/* 140 ...
[ "0.5885856", "0.5731682", "0.5701654", "0.56733084", "0.5657727", "0.5595156", "0.55838656", "0.5580602", "0.5567443", "0.55300564", "0.54954195", "0.5474165", "0.5467049", "0.5426589", "0.5421658", "0.5415475", "0.5391842", "0.53779435", "0.5365493", "0.5360934", "0.53431284...
0.6453449
0
prints the names of the items in that location
void examineItems(){ if (!this.items.isEmpty()) for (int i = 0; i < this.items.size(); i++) System.out.print(this.items.get(i).itemName + ", "); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void printItems()\n {\n if (getItems().size()==0){\n System.out.println(\"There are no items in this room.\");\n }\n else{\n System.out.print(\"The item(s) in this room are: \");\n int i=0;\n while(i<getItems().size()){\n if(...
[ "0.7230528", "0.7137542", "0.6979102", "0.6854498", "0.6847246", "0.67380905", "0.6735", "0.6720525", "0.66439635", "0.65805393", "0.65715116", "0.65653414", "0.6542142", "0.6512299", "0.6483715", "0.6436924", "0.6431926", "0.64053625", "0.6405218", "0.6400995", "0.63864577",...
0.7347675
0
prints the names and prices of the items available to be purchased
boolean examinePaidItems(){ int count = 0; if (!this.items.isEmpty()){ for (int i = 0; i < this.items.size(); i++){ if (this.items.get(i).montaryValue != 0){ System.out.print(this.items.get(i).itemName + " ($" + (this.items.get(i).montaryValue * -1) + "), "); count++;} } } if (!this.receptacle.isEmpty()){//if the location has containers. for (int k = 0; k < this.receptacle.size(); k++){//loops through the containers in the location if (!(this.receptacle.get(k) instanceof SpecialtyContainer)){//some containers are hidden, like the depths of the cove. for (int j = 0; j < this.receptacle.get(k).contents.size(); j++){//looks for the items in the non hidden containers if (this.receptacle.get(k).contents.get(j).montaryValue < 0){//if the item needs to be bought System.out.print(this.receptacle.get(k).contents.get(j).itemName + " ($" + (this.receptacle.get(k).contents.get(j).montaryValue * -1) + "), "); count++;} } } } } if (count == 0){//it didn't find any items you need to pay for. System.out.println("There's nothing here that costs money."); return false;} return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void printInventory()\n {\n System.out.println(\"Welcome to \" + storeName + \"! We are happy to have you here today!\");\n System.out.println(storeName + \" Inventory List\");\n System.out.println();\n \n System.out.println(\"Our Books:\");\n System.out.println(...
[ "0.75774705", "0.72539127", "0.72387564", "0.72203445", "0.7144309", "0.710595", "0.7053035", "0.7046473", "0.7006398", "0.6927535", "0.6907373", "0.6841359", "0.68350667", "0.6831242", "0.68270403", "0.67978436", "0.6776292", "0.6773225", "0.67642176", "0.67588705", "0.67238...
0.0
-1
looks to see if there's anything here. Returns true if there isn't
boolean isItEmpty(){ if (this.items.isEmpty() && (this.receptacle.isEmpty() || findSpecialtyContainers())){//if there's nothing in there. System.out.println("\nThere's nothing here to do anything with."); return true;} return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic boolean hasNext() {\n\t\t\treturn (!stack.isEmpty() || localRoot!=null);\n\t\t}", "@Override\r\n\tpublic boolean isEmpty() {\n\t\treturn top==null;\r\n\t}", "public boolean isEmpty() {\n return this.top == null;\n }", "public boolean isEmpty()\r\n {\n return this.top == null;...
[ "0.7337645", "0.7087262", "0.6975525", "0.69684607", "0.6968443", "0.6954908", "0.69533414", "0.6943092", "0.69330126", "0.6895332", "0.688514", "0.688514", "0.68751025", "0.6869777", "0.68460524", "0.684415", "0.68427795", "0.68123436", "0.67842", "0.67738974", "0.67724246",...
0.7319475
1
prints the names of the containers in that location
void examineContainers(){ if (this.receptacle != null)//checks and sees if there's any containers in the location. for (int i = 0; i < this.receptacle.size(); i++) if (!(this.receptacle.get(i) instanceof SpecialtyContainer))//if it's a hidden container, you don't know it's there, but it is... System.out.print(this.receptacle.get(i).contName + ", "); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void getAllContainers() {\n AID ams = getAMS();\n QueryPlatformLocationsAction queryPlatformLocationsAction = new QueryPlatformLocationsAction();\n sendRequest(new Action(ams, queryPlatformLocationsAction));\n MessageTemplate mt = MessageTemplate.and(\n MessageTem...
[ "0.6273955", "0.58936757", "0.57624704", "0.5639263", "0.5634528", "0.562707", "0.55955136", "0.54798603", "0.54765487", "0.547131", "0.5457784", "0.544486", "0.5443085", "0.5397812", "0.53529286", "0.5346174", "0.5321895", "0.5313611", "0.5298186", "0.52975684", "0.5295122",...
0.6609437
0
looks to see if there's any speciality containers in that location
boolean findSpecialtyContainers(){ if (this.receptacle != null)//checks and sees if there's any containers in the location. for (int i = 0; i < this.receptacle.size(); i++) if ((this.receptacle.get(i) instanceof SpecialtyContainer)) return true; return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void examineContainers(){\n\t\t\tif (this.receptacle != null)//checks and sees if there's any containers in the location.\n\t\t\t\tfor (int i = 0; i < this.receptacle.size(); i++)\n\t\t\t\t\tif (!(this.receptacle.get(i) instanceof SpecialtyContainer))//if it's a hidden container, you don't know it's there, but it ...
[ "0.7209521", "0.5727715", "0.5678852", "0.5546181", "0.54989886", "0.5452347", "0.54463875", "0.5443354", "0.5392776", "0.53617597", "0.5360215", "0.5346979", "0.52900285", "0.5186684", "0.5164957", "0.5147674", "0.51437914", "0.51062226", "0.50747854", "0.50621915", "0.50025...
0.7991167
0
Do you get mauled by a goose on the green?
static boolean getMauled(){ if (Person.player.inventory.contains(Item.repellent)) //if you have the goose repellent... return (MainFile.getRandomNumber(240) == 12); //drastically lowers your chance of being mauled. return (MainFile.getRandomNumber(20) == 12);//generates a random number for if you don't have it, and if it's 12 you get mauled }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean monkeyBusiness(Monkey[] monkeys) {\n boolean allSmiles;\n int smiles = 0;\n for(Monkey monkey: monkeys) {\n if(monkey.smile) {\n smiles++;\n }\n }\n allSmiles = smiles >= (double) monkeys.length / 2;\n return allSmiles;\n }",...
[ "0.6820781", "0.662774", "0.6627519", "0.657978", "0.6563985", "0.65327674", "0.6474226", "0.64688677", "0.64615285", "0.64551544", "0.6446795", "0.644268", "0.6424337", "0.6402505", "0.6368584", "0.6355592", "0.6355592", "0.6355592", "0.6355592", "0.6355592", "0.6355592", ...
0.6227479
37
method to run methods to add things to locations and containers for beginning of game.
static void setItemsAndContainers (){ /**Add containers to places*/ Location.places[0].addContainer(Container.depths); Location.places[1].addContainer(Container.secondaryInv); Location.places[4].addContainer(Container.SRCloset); Location.places[6].addContainer(Container.couch1); Location.places[6].addContainer(Container.couch2); Location.places[6].addContainer(Container.couch3); Location.places[6].addContainer(Container.couch4); Location.places[13].addContainer(Container.closetBathroom); Location.places[15].addContainer(Container.K1Couch); Location.places[16].addContainer(Container.fridge); Location.places[23].addContainer(Container.autoAisle); Location.places[24].addContainer(Container.aisle15B); Location.places[26].addContainer(Container.bb); /**Add items to places*/ Location.places[0].addItem(Item.grabber); Location.places[1].addItem(Item.parcans); Location.places[3].addItem(Item.bookbag); Location.places[4].addItem(Item.ladder); Location.places[7].addItem(Item.drill); Location.places[7].addItem(Item.screws); Location.places[7].addItem(Item.pipe); Location.places[7].addItem(Item.twobyfour); Location.places[8].addItem(Item.rope); Location.places[11].addItem(Item.car); Location.places[12].addItem(Item.twentyDollars); Location.places[16].addItem(Item.tupperware); Location.places[18].addItem(Item.bottle); Location.places[19].addItem(Item.plunger); Location.places[20].addItem(Item.map); Location.places[21].addItem(Item.magnet); Location.places[23].addItem(Item.avocados); Location.places[25].addItem(Item.noodles); Location.places[26].addItem(Item.Unibrow); /**test purposes*/ Location.places[10].addItem(Item.otherWrench); // Location.places[0].addItem(Item.repellent); // Location.places[7].addItem(Item.repellent); // Location.places[7].addItem(Item.wrench); Location.places[7].addItem(Item.keys); /**Adds items in containers*/ Container.setItemsInContainers(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void gameStarted() {\n\t\treset();\n\t\tSystem.out.println(\"Game Started\");\n\n\t\t// allow me to manually control units during the game\n\t\tbwapi.enableUserInput();\n\t\t\n\t\t// set game speed to 30 (0 is the fastest. Tournament speed is 20)\n\t\t// You can also change the game speed from within the ga...
[ "0.693191", "0.6886434", "0.67614335", "0.6685574", "0.6613901", "0.65918213", "0.65835804", "0.6548412", "0.6511831", "0.6493108", "0.64729553", "0.64388317", "0.6399428", "0.63740814", "0.6361371", "0.6353735", "0.634578", "0.6345493", "0.6334084", "0.62787485", "0.62461305...
0.60882765
32
method to wipe all of the items and containers in places.
static void wipeLocations(){ for (int i= 0; i < places.length; i++){ for (int j = 0; j < places[i].items.size(); j++) places[i].items.clear(); for (int k = 0; k < places[i].receptacle.size(); k++) places[i].receptacle.clear(); } Container.emptyContainer(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void clearItems(){\n items.clear();\n }", "public void clearItems() {\n grabbedItems.clear();\n }", "public void clear() {\n items.clear();\n update();\n }", "public void clearAll();", "public void clearAll();", "public void clear() {\r\n\t\titems.clear();\r\n\...
[ "0.7057394", "0.70475656", "0.6957205", "0.6909694", "0.6909694", "0.69042873", "0.6857614", "0.6778068", "0.6778068", "0.6748931", "0.67256594", "0.6710542", "0.67095506", "0.6671351", "0.6598497", "0.6598497", "0.6559891", "0.6542657", "0.65275395", "0.65004665", "0.6498434...
0.78116125
0
do nothing, dont want to mock Realm, just do not use it
@Override protected void injectDependencies(Context context) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "IRealm getRealm();", "@Override\n public Realm getRealm(String realmName) {\n return null;\n }", "@Override\n public void execute(Realm realm) {\n }", "private void setUpRealmConfig(){\n\n Realm.init(getApplicationContext());\n\n RealmConfiguration co...
[ "0.6365286", "0.6332539", "0.6315291", "0.59766597", "0.567402", "0.5625336", "0.56057966", "0.5590306", "0.55616987", "0.55233264", "0.5492558", "0.5475659", "0.54443216", "0.5437711", "0.5425187", "0.54168844", "0.5401687", "0.53728545", "0.5361458", "0.528649", "0.5276747"...
0.0
-1
Returns the underlying Querydsl helper instance.
protected Querydsl getQuerydsl() { return this.querydsl; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public QueryExecutorBean getQueryService() {\n return queryService;\n }", "private QueryService getQueryService() {\n return queryService;\n }", "public static QueryInterface createQuery() {\n return new XmlQuery();\n }", "protected JPAQuery<T> createQuery() {\n\t\tJPAQuery<T> q...
[ "0.5957147", "0.5856266", "0.56952125", "0.5692366", "0.5692343", "0.5674317", "0.5658055", "0.5621117", "0.56210184", "0.5602626", "0.5591476", "0.5564984", "0.543291", "0.5417454", "0.53881323", "0.53785974", "0.5349611", "0.5290425", "0.5215918", "0.5197534", "0.51920253",...
0.7710849
0
Processes requests for both HTTP GET and POST methods.
protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html;charset=UTF-8"); Properties props = new Properties(); Session session = Session.getDefaultInstance(props, null); String msgBody = "This is a test message!"; String sendTo = FormUtil.getParamOrEmpty(request, "email"); logger.info("SendTo: " + sendTo); String from = "ch67dev+subscribe@gmail.com"; try { Message message = new MimeMessage(session); message.setFrom(new InternetAddress(from, "The QAF Team")); message.addRecipient(Message.RecipientType.TO, new InternetAddress(sendTo)); message.setSubject("Thank you for your request to join the QAF mailing list!"); message.setText(msgBody); Transport.send(message); } catch (AddressException ex) { logger.warning("Address Exception: " + ex.getMessage()); } catch (MessagingException ex) { logger.warning("Messagings Exception: " + ex.getMessage()); } String returnPage = request.getParameter("return-page"); RequestDispatcher view = request.getRequestDispatcher(returnPage); view.forward(request, response); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void doPost(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException {\n final String method = req.getParameter(METHOD);\n if (GET.equals(method)) {\n doGet(req, resp);\n } else {\n resp.setStatus(HttpServletResponse.SC_METHOD_NOT_...
[ "0.7004024", "0.66585696", "0.66031146", "0.6510023", "0.6447109", "0.64421695", "0.64405906", "0.64321136", "0.6428049", "0.6424289", "0.6424289", "0.6419742", "0.6419742", "0.6419742", "0.6418235", "0.64143145", "0.64143145", "0.6400266", "0.63939095", "0.63939095", "0.6392...
0.0
-1
Handles the HTTP GET method.
@Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { processRequest(request, response); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void doGet( )\n {\n \n }", "@Override\n\tprotected void executeGet(GetRequest request, OperationResponse response) {\n\t}", "@Override\n\tprotected Method getMethod() {\n\t\treturn Method.GET;\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) thro...
[ "0.7589609", "0.71665615", "0.71148175", "0.705623", "0.7030174", "0.70291144", "0.6995984", "0.697576", "0.68883485", "0.6873811", "0.6853569", "0.6843572", "0.6843572", "0.6835363", "0.6835363", "0.6835363", "0.68195957", "0.6817864", "0.6797789", "0.67810035", "0.6761234",...
0.0
-1
Handles the HTTP POST method.
@Override protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { processRequest(request, response); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void doPost(Request request, Response response) {\n\n\t}", "@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) {\n }", "public void doPost( )\n {\n \n }", "@Override\n public String getMethod() {\n return \"POST\";\n ...
[ "0.73289514", "0.71383566", "0.7116213", "0.7105215", "0.7100045", "0.70236707", "0.7016248", "0.6964149", "0.6889435", "0.6784954", "0.67733276", "0.67482096", "0.66677034", "0.6558593", "0.65582114", "0.6525548", "0.652552", "0.652552", "0.652552", "0.65229493", "0.6520197"...
0.0
-1
Returns a short description of the servlet.
@Override public String getServletInfo() { return "Short description"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getServletInfo()\n {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short description\";\n }", "public String getServletInfo() {\n return \"Short d...
[ "0.87634975", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8732279", "0.8699131", "0.8699131", "0.8699131", "0.8699131", "0.8699131", "0.8699131", "0.8531295", "0.8531295", "0.85282224", "0.85282224", ...
0.0
-1
TODO Autogenerated method stub
@Override public void handleMessage(Message msg) { super.handleMessage(msg); switch (msg.what) { case 0: tv_info.setText(getString(R.string.idcard_xm) + info.getName() + "\n" + getString(R.string.idcard_xb) + info.getSex() + "\n" + getString(R.string.idcard_mz) + info.getNation() + "\n" + getString(R.string.idcard_csrq) + info.getBorn() + "\n" + getString(R.string.idcard_dz) + info.getAddress() + "\n" + getString(R.string.idcard_sfhm) + info.getNo() + "\n" + getString(R.string.idcard_qzjg) + info.getApartment() + "\n" + getString(R.string.idcard_yxqx) + info.getPeriod() + "\n" + getString(R.string.idcard_zwxx) + fringerprintData + "\n" + "读卡时间:" + (finishTime - startTime)); try { Bitmap bmp = UsbIdCard.decodeIdCardImage(image); img_head_picture.setImageBitmap(bmp); } catch (TelpoException e) { // TODO Auto-generated catch block e.printStackTrace(); } playSound(1); // findloop = true; break; case 1: tv_info.setText("读卡失败!"); // playSound(5); break; default: break; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_idcard); initData(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override protected void onResume() { super.onResume(); initView(); if (mThread != null && mThread.isAlive()) { btn_read_idcard_loop.setEnabled(false); btn_read_idcard.setEnabled(false); btn_stop_read_loop.setEnabled(true); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override protected void onPause() { super.onPause(); // setPowerOff(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override protected void onDestroy() { super.onDestroy(); PosUtil.setIdCardPower(PosUtil.IDCARD_POWER_OFF);// 身份证上电 }
{ "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
takes input from email form
@RequestMapping(value ="/sendEmail",method = RequestMethod.GET) public String doSendEmail(HttpServletRequest request) { String recipientAddress = "e_pe@hotmail.fr"; String subject = "sujet"; String message = "salut"; // creates a simple e-mail object SimpleMailMessage email = new SimpleMailMessage(); email.setTo(recipientAddress); email.setSubject(subject); email.setText(message); // sends the e-mail mailSender.send(email); // forwards to the view named "Result" return "Result"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String getEmail(){\n System.out.println(\"Enter The Email Address\");\n return sc.next();\n }", "public void inputToEmailTextbox(String email) {\n\t\twaitToElementVisible(driver,RegisterPageUI.EMAIL_TEXTBOX);\n\t\tsendkeyToElement(driver, RegisterPageUI.EMAIL_TEXTBOX, email);\n\t}", "p...
[ "0.6567778", "0.6512212", "0.6467182", "0.64551735", "0.64465016", "0.64392495", "0.6424857", "0.64042836", "0.6178839", "0.6133257", "0.6130814", "0.61197925", "0.6017276", "0.5997578", "0.5983289", "0.59470314", "0.5937311", "0.5935969", "0.59195197", "0.5916333", "0.590980...
0.0
-1
Test validation of Research EditText
@Test public void researchEditTextInputTest() { onView(withId(R.id.network_input_research)) .perform(typeText(INPUT_TEXT)) .check(matches(withText(INPUT_TEXT))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testEditTextContent() throws Exception {\n\n onView(withId(R.id.editText))\n .perform(typeText(LOG_TAG))\n .check(matches(withText(LOG_TAG)));\n }", "@Test\n public void testEditTextExists(){\n ViewInteraction appCompatEditTextView = onView...
[ "0.65922177", "0.63032573", "0.6287078", "0.62742794", "0.6216507", "0.6137836", "0.6126639", "0.61027503", "0.60817575", "0.6054146", "0.60510087", "0.60339195", "0.60140866", "0.60086316", "0.6002291", "0.6001106", "0.5979219", "0.5961128", "0.59559417", "0.5954053", "0.593...
0.7881735
0
Test friends ListView show filtered friends
@Test public void friendsListViewFilterTest(){ onView(withId(R.id.network_input_research)) .perform(typeText(INPUT_TEXT)); onData(allOf(is(instanceOf(BasicItem.class)),withText(INPUT_TEXT))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void populateFriendsListView(List<ParseUser> userFriends) {\n\t\tfriendsList.clear();\n\t\tfacebookIdFirstNameMap.clear();\n\t\tfor(ParseUser friend : userFriends){\n\t\t\tString imageUrl = String.format(StealTheCheeseApplication.FRIEND_CHEESE_COUNT_PIC_URL, friend.getString(\"facebookId\"));\n\t\t\tfriend...
[ "0.6580194", "0.6503647", "0.6311674", "0.6263994", "0.62560743", "0.6200624", "0.6098971", "0.60759443", "0.60737795", "0.6071056", "0.6027031", "0.6001216", "0.5936979", "0.5936979", "0.5935335", "0.5862602", "0.5857666", "0.58409375", "0.5831108", "0.5785971", "0.5767747",...
0.7219396
0