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
Add a first tab.
public void Add0(String[] ss, String s) { theList0 = Add(ss, s); theSelected0 = new boolean[ss.length]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void addTab(Tab tab) {\n\t\t\n\t}", "public void addTab(String filename) {\n\t\t\n\t\tMinLFile nminl = new MinLFile(filename);\n\t\tJComponent panel = nminl;\n\t\t\n\t\ttabbedPane.addTab(filename, null, panel,\n\t\t\t\tfilename);\t\t\n\t\ttabbedPane.setMnemonicAt(0, 0);\n\t}", "private void...
[ "0.7016202", "0.7004047", "0.69706905", "0.6889334", "0.6874861", "0.68553925", "0.6822275", "0.6683881", "0.6630864", "0.6548178", "0.65428835", "0.6374662", "0.6315695", "0.6303467", "0.629407", "0.62188184", "0.62154824", "0.6194327", "0.6158398", "0.61498564", "0.60604286...
0.0
-1
Add a second tab.
public void Add1(String[] ss, String s) { theList1 = Add(ss, s); theSelected1 = new boolean[ss.length]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void addTab(Tab tab) {\n\t\t\n\t}", "public void addNewTab() {\n int count = workspaceTabs.getComponentCount() + 1;\n String title = \"Workspace \" + count;\n WorkspacePanel panel = new WorkspacePanel(title);\n DropHandler dropHandler = searchMenu.createDropHandler...
[ "0.72846246", "0.7052276", "0.6992522", "0.69910526", "0.6879947", "0.6535454", "0.6511171", "0.6459328", "0.6428293", "0.64147145", "0.6408477", "0.63907903", "0.63609296", "0.62691283", "0.6252594", "0.615374", "0.61531657", "0.614245", "0.61360633", "0.61212766", "0.609459...
0.0
-1
Add a third tab.
public void Add2(String[] ss, String s) { theList2 = Add(ss, s); theSelected2 = new boolean[ss.length]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void addTab(Tab tab, int position) {\n\t\t\n\t}", "@Override\n\tpublic void addTab(Tab tab) {\n\t\t\n\t}", "public void addNewTab() {\n int count = workspaceTabs.getComponentCount() + 1;\n String title = \"Workspace \" + count;\n WorkspacePanel panel = new WorkspacePane...
[ "0.70770913", "0.7049795", "0.689835", "0.67706245", "0.6611072", "0.6604117", "0.6598366", "0.6584225", "0.64079666", "0.64038765", "0.62979335", "0.6218183", "0.61731786", "0.6161303", "0.6156926", "0.6147759", "0.6094071", "0.6081948", "0.60573953", "0.60493284", "0.598508...
0.0
-1
Add a fourth tab.
public void Add3(String[] ss, String s) { theList3 = Add(ss, s); theSelected3 = new boolean[ss.length]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void addTab(Tab tab, int position) {\n\t\t\n\t}", "@Override\n\tpublic void addTab(Tab tab) {\n\t\t\n\t}", "public void addTab(String filename) {\n\t\t\n\t\tMinLFile nminl = new MinLFile(filename);\n\t\tJComponent panel = nminl;\n\t\t\n\t\ttabbedPane.addTab(filename, null, panel,\n\t\t\t\tf...
[ "0.70048225", "0.6840428", "0.6640053", "0.6622929", "0.662043", "0.6444349", "0.64113957", "0.63789463", "0.6358721", "0.63323957", "0.6260171", "0.62406945", "0.6227377", "0.62190515", "0.60625386", "0.6017993", "0.59625155", "0.59558636", "0.5955161", "0.5934383", "0.59282...
0.0
-1
Add the Save tab.
public void Add9(String s) { // theFileChooser.setCurrentDirectory(new File(".")); // theFileChooser.setFileFilter(new CsvFileFilter()); // theFileChooser.setControlButtonsAreShown(false); // theFileChooser.setDialogType(JFileChooser.SAVE_DIALOG); // thePanel9.removeAll(); // thePanel9.add(theFileChooser, BorderLayout.CENTER); // thePanel9.add(theSaveButton, BorderLayout.SOUTH); // theFileChooser.addActionListener(this); // theSaveButton.addActionListener(this); // theTabbedPane.addTab(s, thePanel9); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void clickSaveFile(Editor editor, Tab tab) {\n editor.addSaveHandler(createClickSavaHandler(editor, tab));\n }", "void saveSet() {\n if( file==null ) {\n int returnVal = fc.showSaveDialog(this);\n if (returnVal != JFileChooser.APPROVE_OPTION) {\n Syst...
[ "0.68164235", "0.63112575", "0.62924504", "0.6269359", "0.62509906", "0.61960614", "0.60745764", "0.5986274", "0.5961428", "0.5961004", "0.59607804", "0.5929525", "0.591305", "0.5903476", "0.5877616", "0.5855774", "0.58321494", "0.58200055", "0.58132297", "0.5806771", "0.5787...
0.5992376
7
Return whether the ith item on the first tab is selected.
public boolean IsSelected0(int i) { return theSelected0[i]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean IsSelected1(int i) {\n\t\treturn theSelected1[i];\n\t}", "public abstract boolean isIndexSelected(int i);", "public boolean isSelectedIndex(int index)\r\n {\r\n return (avatarIndex == index);\r\n }", "public boolean isIndexSelected(int idx) {\n return getElement().isIndexSe...
[ "0.7129192", "0.6849058", "0.65392596", "0.64286035", "0.63974434", "0.63263", "0.61729115", "0.6162143", "0.61548287", "0.61249715", "0.6103604", "0.61004084", "0.6087963", "0.6064352", "0.60270315", "0.60125655", "0.60125655", "0.60125655", "0.59964305", "0.59927225", "0.59...
0.6895708
1
Return whether the ith item on the second tab is selected.
public boolean IsSelected1(int i) { return theSelected1[i]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean IsSelected2(int i) {\n\t\treturn theSelected2[i];\n\t}", "public abstract boolean isIndexSelected(int i);", "public boolean isSelectedIndex(int index)\r\n {\r\n return (avatarIndex == index);\r\n }", "public boolean isMultiSelection()\n\t{\n\t\treturn this.isMultiple();\n\t}", "...
[ "0.74508214", "0.63747656", "0.5943569", "0.5835749", "0.5807412", "0.5769542", "0.5766539", "0.5736588", "0.5720886", "0.57132", "0.5680804", "0.5669001", "0.56445885", "0.56445885", "0.56445885", "0.5639065", "0.563264", "0.55416816", "0.5497332", "0.54859936", "0.54859936"...
0.6404447
1
Return whether the ith item on the third tab is selected.
public boolean IsSelected2(int i) { return theSelected2[i]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean IsSelected3(int i) {\n\t\treturn theSelected3[i];\n\t}", "public abstract boolean isIndexSelected(int i);", "public boolean IsSelected1(int i) {\n\t\treturn theSelected1[i];\n\t}", "public boolean isSelectedIndex(int index)\r\n {\r\n return (avatarIndex == index);\r\n }", "publi...
[ "0.7924765", "0.6757161", "0.63234174", "0.6085049", "0.60710955", "0.60356885", "0.5993026", "0.59505314", "0.5846112", "0.5834728", "0.5822951", "0.5759197", "0.5719274", "0.568443", "0.56658816", "0.5609672", "0.5609672", "0.5609672", "0.56058043", "0.55486506", "0.5521635...
0.6304233
3
Return whether the ith item on the fourth tab is selected.
public boolean IsSelected3(int i) { return theSelected3[i]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract boolean isIndexSelected(int i);", "public boolean isIndexSelected(int idx) {\n return getElement().isIndexSelected(idx);\n }", "public boolean IsSelected1(int i) {\n\t\treturn theSelected1[i];\n\t}", "public boolean isSelectedIndex(int index)\r\n {\r\n return (avatarIndex ...
[ "0.700356", "0.63786227", "0.63684297", "0.632929", "0.6195744", "0.60482204", "0.5901595", "0.5830533", "0.5823425", "0.5785597", "0.5747695", "0.5747695", "0.5747695", "0.5741721", "0.57184076", "0.56176066", "0.56128174", "0.5606141", "0.5604915", "0.5594909", "0.5591742",...
0.72821534
0
Convert the array with selected indices to an array of booelans.
private boolean[] SetSelected(boolean[] selected, JList list) { int[] indices = list.getSelectedIndices(); for (int i = 0; i < selected.length; i++) { selected[i] = false; } for (int i = 0; i < indices.length; i++) { selected[indices[i]] = true; } return selected; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static byte[] b(int... array) {\n if (array == null) {\n return null;\n }\n byte[] ret = new byte[array.length];\n for (int i = 0; i < ret.length; i++) {\n ret[i] = (byte) array[i];\n }\n return ret;\n }", "public boolean[] getBooleans(){\...
[ "0.45825097", "0.45668283", "0.45382386", "0.44742066", "0.44473344", "0.44035313", "0.4396488", "0.43742397", "0.43623254", "0.4360441", "0.4338845", "0.4325342", "0.43195358", "0.43041152", "0.42920274", "0.4290712", "0.42815736", "0.42768618", "0.42757684", "0.42702082", "...
0.0
-1
Create the power system
private void setupPowerSystem() { ps = new PowerSystem(PowerSystemSolutionMethod.ANL_OPF); // Create nodes & register with power system NodeData nodeWindGenerator = new NodeData(1,1.0,0,false,true); ps.addNode(nodeWindGenerator); NodeData nodeSubstation2 = new NodeData(2,1.0,0,false); ps.addNode(nodeSubstation2); NodeData nodeCityResidential = new NodeData(3,1.0,0,false); ps.addNode(nodeCityResidential); NodeData nodeCityIndustrial = new NodeData(4,1.0,0,false); ps.addNode(nodeCityIndustrial); NodeData nodeCityCommercial = new NodeData(5,1.0,0,false); ps.addNode(nodeCityCommercial); NodeData nodeCoalGenerator = new NodeData(7,1.0,0,false,true); ps.addNode(nodeCoalGenerator); NodeData nodeSubstation3 = new NodeData(8,1.0,0,false); ps.addNode(nodeSubstation3); NodeData nodeGasGenerator = new NodeData(11,1.0,0,false,true); ps.addNode(nodeGasGenerator); NodeData nodeWindStorage = new NodeData(9,1.0,0,false); ps.addNode(nodeWindStorage); NodeData nodeSubstation1 = new NodeData(0,1.0,0,false); ps.addNode(nodeSubstation1); // Create lines & register with power system MWTimeSeries branchTimeSeries = null; BranchData branchWindGeneratorToLocalSubstation = new BranchData(nodeWindGenerator,nodeSubstation1,0.01,0,1500.0,true); branchTimeSeries = new MWTimeSeries(simClock,branchWindGeneratorToLocalSubstation,"Wind Generator to Substation 1"); branchFlowInformation.add(branchTimeSeries); circuitpanel.getAnimatables().add(branchTimeSeries); ps.addBranch(branchWindGeneratorToLocalSubstation); BranchData branchWindStorageToLocalSubstation = new BranchData(nodeWindStorage,nodeSubstation1,0.01,0,1500.0,false); branchTimeSeries = new MWTimeSeries(simClock,branchWindStorageToLocalSubstation,"Storage to Substation 1"); branchFlowInformation.add(branchTimeSeries); circuitpanel.getAnimatables().add(branchTimeSeries); ps.addBranch(branchWindStorageToLocalSubstation); branchWindLocalSubstationToCitySubstation = new BranchData(nodeSubstation1,nodeSubstation2,0.01,0,125.0,false); branchTimeSeries = new MWTimeSeries(simClock,branchWindLocalSubstationToCitySubstation,"Substation 1 to Substation 2"); branchFlowInformation.add(branchTimeSeries); circuitpanel.getAnimatables().add(branchTimeSeries); ps.addBranch(branchWindLocalSubstationToCitySubstation); BranchData branchWindToResidential = new BranchData(nodeSubstation2,nodeCityResidential,0.01,0,1500.0,true); branchTimeSeries = new MWTimeSeries(simClock,branchWindToResidential,"Substation 2 to Residential"); branchFlowInformation.add(branchTimeSeries); circuitpanel.getAnimatables().add(branchTimeSeries); ps.addBranch(branchWindToResidential); BranchData branchWindToCommercial = new BranchData(nodeSubstation2,nodeCityCommercial,0.01,0,1500.0,true); branchTimeSeries = new MWTimeSeries(simClock,branchWindToCommercial,"Substation 2 to Commercial"); branchFlowInformation.add(branchTimeSeries); circuitpanel.getAnimatables().add(branchTimeSeries); ps.addBranch(branchWindToCommercial); BranchData branchWindToIndustrial = new BranchData(nodeSubstation2,nodeCityIndustrial,0.01,0,1500.0,true); branchTimeSeries = new MWTimeSeries(simClock,branchWindToIndustrial,"Substation 2 to Industrial"); branchFlowInformation.add(branchTimeSeries); circuitpanel.getAnimatables().add(branchTimeSeries); ps.addBranch(branchWindToIndustrial); BranchData branchCoalGeneratorToSubstation = new BranchData(nodeCoalGenerator,nodeSubstation3,0.01,0,1500.0,true); branchTimeSeries = new MWTimeSeries(simClock,branchCoalGeneratorToSubstation,"Coal Generator to Substation 3"); branchFlowInformation.add(branchTimeSeries); circuitpanel.getAnimatables().add(branchTimeSeries); ps.addBranch(branchCoalGeneratorToSubstation); BranchData branchGasToSubstation = new BranchData(nodeGasGenerator,nodeSubstation3,0.01,0,1500.0,true); branchTimeSeries = new MWTimeSeries(simClock,branchGasToSubstation,"Natural Gas Generator to Substation 3"); branchFlowInformation.add(branchTimeSeries); circuitpanel.getAnimatables().add(branchTimeSeries); ps.addBranch(branchGasToSubstation); BranchData branchCoalToResidential = new BranchData(nodeSubstation3,nodeCityResidential,0.01,0,1500.0,true); branchTimeSeries = new MWTimeSeries(simClock,branchCoalToResidential,"Substation 3 to Residential"); branchFlowInformation.add(branchTimeSeries); circuitpanel.getAnimatables().add(branchTimeSeries); ps.addBranch(branchCoalToResidential); BranchData branchCoalToIndustrial = new BranchData(nodeSubstation3,nodeCityIndustrial,0.01,0,1500.0,true); branchTimeSeries = new MWTimeSeries(simClock,branchCoalToIndustrial,"Substation 3 to Industrial"); branchFlowInformation.add(branchTimeSeries); circuitpanel.getAnimatables().add(branchTimeSeries); ps.addBranch(branchCoalToIndustrial); BranchData branchCoalToCommercial = new BranchData(nodeSubstation3,nodeCityCommercial,0.01,0,1500.0,true); branchTimeSeries = new MWTimeSeries(simClock,branchCoalToCommercial,"Substation 3 to Commercial"); branchFlowInformation.add(branchTimeSeries); circuitpanel.getAnimatables().add(branchTimeSeries); ps.addBranch(branchCoalToCommercial); // Create loads MWTimeSeries loadTimeSeries = null; loadResidential = new LoadData(nodeCityResidential,100.0,0,true); loadTimeSeries = new MWTimeSeries(simClock,loadResidential,"Residential load"); circuitpanel.getAnimatables().add(loadTimeSeries); loadInformation.add(loadTimeSeries); ps.addLoad(loadResidential); loadCommercial = new LoadData(nodeCityCommercial,100.0,0,true); loadTimeSeries = new MWTimeSeries(simClock,loadCommercial,"Commercial load"); circuitpanel.getAnimatables().add(loadTimeSeries); loadInformation.add(loadTimeSeries); ps.addLoad(loadCommercial); loadIndustrial = new LoadData(nodeCityIndustrial,100.0,0,true); loadTimeSeries = new MWTimeSeries(simClock,loadIndustrial,"Industrial load"); circuitpanel.getAnimatables().add(loadTimeSeries); loadInformation.add(loadTimeSeries); ps.addLoad(loadIndustrial); // Create gens MWTimeSeries genTimeSeries = null; gensWithCostsAndEmissions = new ArrayList<CostAndEmissionsProvider>(); GeneratorDataWithLinearCostAndEmissions genCoal = new GeneratorDataWithLinearCostAndEmissions(nodeCoalGenerator,600,0,2000,0,0,9999,true,2000,20.0,0,1.0,includeFixedCostsAndEmissions); gensWithCostsAndEmissions.add(genCoal); costAndEmissionsTimeSeries.addCostAndEmissionsProvider(genCoal); genTimeSeries = new MWTimeSeries(simClock,genCoal,"Coal generation"); circuitpanel.getAnimatables().add(genTimeSeries); generatorInformation.add(genTimeSeries); ps.addGenerator(genCoal); GeneratorDataWithLinearCostAndEmissions genGas = new GeneratorDataWithLinearCostAndEmissions(nodeGasGenerator,200,0,2000,0,0,9999,true,700.0,70.0,0,0.5,includeFixedCostsAndEmissions); gensWithCostsAndEmissions.add(genGas); costAndEmissionsTimeSeries.addCostAndEmissionsProvider(genGas); genTimeSeries = new MWTimeSeries(simClock,genGas,"Natural gas generation"); circuitpanel.getAnimatables().add(genTimeSeries); generatorInformation.add(genTimeSeries); ps.addGenerator(genGas); genWind = new WindGeneratorDataWithLinearCostAndEmissions(nodeWindGenerator,initialWindGen,0,210,initialWindVariation,true,200.0,0,0,0,includeFixedCostsAndEmissions); genWind.setAnimating(false); costAndEmissionsTimeSeries.addCostAndEmissionsProvider(genWind); genTimeSeries = new MWTimeSeries(simClock,genWind,"Wind generation"); windGenTimeSeries = genTimeSeries; circuitpanel.getAnimatables().add(genTimeSeries); generatorInformation.add(genTimeSeries); gensWithCostsAndEmissions.add(genWind); ps.addGenerator(genWind); genStorage = new StorageDevice(nodeWindStorage,0,0,0,0,0,0,true,genWind,branchWindLocalSubstationToCitySubstation,simClock,1000,100); genTimeSeries = new MWTimeSeries(simClock,genStorage,"Storage generation"); costAndEmissionsTimeSeries.addCostAndEmissionsProvider(genStorage); circuitpanel.getAnimatables().add(genTimeSeries); circuitpanel.getAnimatables().add(genStorage); generatorInformation.add(genTimeSeries); gensWithCostsAndEmissions.add(genStorage); ps.addGenerator(genStorage); ps.solve(); ArrayList<LineAndDistanceInfoProvider> lines; FlowArrowsForBranchData fA; SimpleLineDisplay line; BranchColorProvider branchColorProvider = new BranchColorDynamic(Color.BLACK,0.85,Color.ORANGE,1.0,Color.RED); BranchThicknessProvider branchThicknessProvider = new BranchThicknessDynamic(1.0,0.85,2.0,1.0,3.0); FlowArrowColorProvider flowArrowColorProvider = new FlowArrowColorDynamic(new Color(0,255,0,255/2),0.85,new Color(255,128,64,255/2),1.0,new Color(255,0,0,255/2)); double switchthickness = 5.0; // Line Coal Generator to Fossil Substation & flow label ArrayList<Point2D.Double> pointsCoalGenToCoalSubstation = new ArrayList<Point2D.Double>(); line = new SimpleLineDisplay(new Point2D.Double(710 - 70,350),new Point2D.Double(710 - 70,212),1); pointsCoalGenToCoalSubstation.add(line.getFromPoint()); pointsCoalGenToCoalSubstation.add(DrawUtilities.getPointAtDistanceOnLine(line,line.getLength()/3)); pointsCoalGenToCoalSubstation.add(DrawUtilities.getPointAtDistanceOnLine(line,2*line.getLength()/3)); pointsCoalGenToCoalSubstation.add(line.getToPoint()); lines = DrawUtilities.addLineWithSwitchToAnimatedPanel(pointsCoalGenToCoalSubstation, 0, branchThicknessProvider, switchthickness, 1, Math.PI/20, branchCoalGeneratorToSubstation, branchColorProvider, circuitpanel, true, overloadMonitorParams); fA = new FlowArrowsForBranchData(branchCoalGeneratorToSubstation,lines,0.05,20.0,10.0,flowArrowColorProvider); circuitpanel.getMiddleLayerRenderables().add(fA); circuitpanel.getAnimatables().add(fA); //circuitpanel.getMiddleLayerRenderables().add(new BranchMWFlowLabel(new Point2D.Double(640,260),12,new Color(0f,0f,0f,1f),0,branchCoalGeneratorToSubstation)); // Line Gas Generator to Fossil Substation & flow label ArrayList<Point2D.Double> pointsGasGenToFossilSubstation = new ArrayList<Point2D.Double>(); line = new SimpleLineDisplay(new Point2D.Double(710 - 70,112.5),new Point2D.Double(765 - 70,160),1); pointsGasGenToFossilSubstation.add(line.getFromPoint()); pointsGasGenToFossilSubstation.add(DrawUtilities.getPointAtDistanceOnLine(line,line.getLength()/3)); pointsGasGenToFossilSubstation.add(DrawUtilities.getPointAtDistanceOnLine(line,2*line.getLength()/3)); pointsGasGenToFossilSubstation.add(line.getToPoint()); pointsGasGenToFossilSubstation.add(new Point2D.Double(710 - 70,212)); lines = DrawUtilities.addLineWithSwitchToAnimatedPanel(pointsGasGenToFossilSubstation, 0, branchThicknessProvider, switchthickness, 1, Math.PI/20, branchGasToSubstation, branchColorProvider, circuitpanel, overloadMonitorParams); fA = new FlowArrowsForBranchData(branchGasToSubstation,lines,0.05,20.0,10.0,flowArrowColorProvider); circuitpanel.getMiddleLayerRenderables().add(fA); circuitpanel.getAnimatables().add(fA); //circuitpanel.getMiddleLayerRenderables().add(new BranchMWFlowLabel(new Point2D.Double(660,170),12,new Color(0f,0f,0f,1f),0,branchGasToSubstation)); // Line Wind Generator to Wind Substation & flow label ArrayList<Point2D.Double> pointsWindGenToWindSubstation = new ArrayList<Point2D.Double>(); line = new SimpleLineDisplay(new Point2D.Double(89,281),new Point2D.Double(89,150),1); pointsWindGenToWindSubstation.add(line.getFromPoint()); pointsWindGenToWindSubstation.add(DrawUtilities.getPointAtDistanceOnLine(line,line.getLength()/3)); pointsWindGenToWindSubstation.add(DrawUtilities.getPointAtDistanceOnLine(line,2*line.getLength()/3)); pointsWindGenToWindSubstation.add(line.getToPoint()); lines = DrawUtilities.addLineWithSwitchToAnimatedPanel(pointsWindGenToWindSubstation, 0, branchThicknessProvider, switchthickness, 1, Math.PI/20, branchWindGeneratorToLocalSubstation, branchColorProvider, circuitpanel, overloadMonitorParams); fA = new FlowArrowsForBranchData(branchWindGeneratorToLocalSubstation,lines,0.05,20.0,10.0,flowArrowColorProvider); circuitpanel.getMiddleLayerRenderables().add(fA); circuitpanel.getAnimatables().add(fA); circuitpanel.getMiddleLayerRenderables().add(new BranchMWFlowLabel(new Point2D.Double(100,200),12,new Color(0f,0f,0f,1f),0,branchWindGeneratorToLocalSubstation)); // Line storage to Wind Substation & flow label ArrayList<Point2D.Double> pointsWindStorageToWindSubstation = new ArrayList<Point2D.Double>(); pointsWindStorageToWindSubstation.add(new Point2D.Double(210,25)); pointsWindStorageToWindSubstation.add(new Point2D.Double(85,25)); pointsWindStorageToWindSubstation.add(new Point2D.Double(85,55)); pointsWindStorageToWindSubstation.add(new Point2D.Double(85,95)); pointsWindStorageToWindSubstation.add(new Point2D.Double(85,140)); lines = DrawUtilities.addLineWithSwitchToAnimatedPanel(pointsWindStorageToWindSubstation, 0, branchThicknessProvider, switchthickness, 2, Math.PI/20, branchWindStorageToLocalSubstation, branchColorProvider, circuitpanel, true, overloadMonitorParams); fA = new FlowArrowsForBranchData(branchWindStorageToLocalSubstation,lines,0.05,20.0,10.0,flowArrowColorProvider); circuitpanel.getMiddleLayerRenderables().add(fA); circuitpanel.getAnimatables().add(fA); circuitpanel.getMiddleLayerRenderables().add(new BranchMWFlowLabel(new Point2D.Double(100,75),12,new Color(0f,0f,0f,1f),0,branchWindStorageToLocalSubstation)); // Line substation 2 to Residential load ArrayList<Point2D.Double> pointsWindStationToResidential = new ArrayList<Point2D.Double>(); pointsWindStationToResidential.add(new Point2D.Double(351 - 70,212.5)); pointsWindStationToResidential.add(new Point2D.Double(419 - 70,212.5)); pointsWindStationToResidential.add(new Point2D.Double(457 - 70,212.5)); pointsWindStationToResidential.add(new Point2D.Double(525 - 70,212.5)); lines = DrawUtilities.addLineWithSwitchToAnimatedPanel(pointsWindStationToResidential, 0, branchThicknessProvider, switchthickness, 1, Math.PI/20, branchWindToResidential, branchColorProvider, circuitpanel, true, overloadMonitorParams); fA = new FlowArrowsForBranchData(branchWindToResidential,lines,0.05,20.0,10.0,flowArrowColorProvider); circuitpanel.getMiddleLayerRenderables().add(fA); circuitpanel.getAnimatables().add(fA); circuitpanel.getMiddleLayerRenderables().add(new BranchMWFlowLabel(new Point2D.Double(413 - 70,180),12,new Color(0f,0f,0f,1f),0,branchWindToResidential)); // Line substation 3 to Residential load ArrayList<Point2D.Double> pointsFossilStationToResidential = new ArrayList<Point2D.Double>(); pointsFossilStationToResidential.add(new Point2D.Double(710 - 70,212.5)); pointsFossilStationToResidential.add(new Point2D.Double(631 - 70,212.5)); pointsFossilStationToResidential.add(new Point2D.Double(592 - 70,212.5)); pointsFossilStationToResidential.add(new Point2D.Double(525 - 70,212.5)); lines = DrawUtilities.addLineWithSwitchToAnimatedPanel(pointsFossilStationToResidential, 0, branchThicknessProvider, switchthickness, 1, Math.PI/20, branchCoalToResidential, branchColorProvider, circuitpanel, overloadMonitorParams); fA = new FlowArrowsForBranchData(branchCoalToResidential,lines,0.05,20.0,10.0,flowArrowColorProvider); circuitpanel.getMiddleLayerRenderables().add(fA); circuitpanel.getAnimatables().add(fA); circuitpanel.getMiddleLayerRenderables().add(new BranchMWFlowLabel(new Point2D.Double(585 - 70,180),12,new Color(0f,0f,0f,1f),0,branchCoalToResidential)); // Line Substation 3 to Industrial load & flow label ArrayList<Point2D.Double> pointsFossilSubstationToIndustrial = new ArrayList<Point2D.Double>(); line = new SimpleLineDisplay(new Point2D.Double(710 - 70,212.5),new Point2D.Double(525 - 70,365),1); pointsFossilSubstationToIndustrial.add(line.getFromPoint()); pointsFossilSubstationToIndustrial.add(DrawUtilities.getPointAtDistanceOnLine(line,line.getLength()/3)); pointsFossilSubstationToIndustrial.add(DrawUtilities.getPointAtDistanceOnLine(line,2*line.getLength()/3)); pointsFossilSubstationToIndustrial.add(line.getToPoint()); lines = DrawUtilities.addLineWithSwitchToAnimatedPanel(pointsFossilSubstationToIndustrial, 0, branchThicknessProvider, switchthickness, 1, Math.PI/20, branchCoalToIndustrial, branchColorProvider, circuitpanel, overloadMonitorParams); fA = new FlowArrowsForBranchData(branchCoalToIndustrial,lines,0.05,20.0,10.0,flowArrowColorProvider); circuitpanel.getMiddleLayerRenderables().add(fA); circuitpanel.getAnimatables().add(fA); circuitpanel.getMiddleLayerRenderables().add(new BranchMWFlowLabel(new Point2D.Double(585 - 70,280),12,new Color(0f,0f,0f,1f),-Math.PI/5,branchCoalToIndustrial)); // Line Substation 3 to Commercial load & flow label ArrayList<Point2D.Double> pointsSub3ToCommercial = new ArrayList<Point2D.Double>(); line = new SimpleLineDisplay(new Point2D.Double(710 - 70,212.5),new Point2D.Double(525 - 70,55),1); pointsSub3ToCommercial.add(line.getFromPoint()); pointsSub3ToCommercial.add(DrawUtilities.getPointAtDistanceOnLine(line,line.getLength()/3)); pointsSub3ToCommercial.add(DrawUtilities.getPointAtDistanceOnLine(line,2*line.getLength()/3)); pointsSub3ToCommercial.add(line.getToPoint()); lines = DrawUtilities.addLineWithSwitchToAnimatedPanel(pointsSub3ToCommercial, 0, branchThicknessProvider, switchthickness, 1, Math.PI/20, branchCoalToCommercial, branchColorProvider, circuitpanel, overloadMonitorParams); fA = new FlowArrowsForBranchData(branchCoalToCommercial,lines,0.05,20.0,10.0,flowArrowColorProvider); circuitpanel.getMiddleLayerRenderables().add(fA); circuitpanel.getAnimatables().add(fA); circuitpanel.getMiddleLayerRenderables().add(new BranchMWFlowLabel(new Point2D.Double(615 - 70,105),12,new Color(0f,0f,0f,1f),Math.PI/5,branchCoalToCommercial)); // Line Substation 2 to Industrial load & flow label ArrayList<Point2D.Double> pointsWindSubstationToIndustrial = new ArrayList<Point2D.Double>(); line = new SimpleLineDisplay(new Point2D.Double(351 - 70,212.5),new Point2D.Double(525 - 70,365),1); pointsWindSubstationToIndustrial.add(line.getFromPoint()); pointsWindSubstationToIndustrial.add(DrawUtilities.getPointAtDistanceOnLine(line,line.getLength()/3)); pointsWindSubstationToIndustrial.add(DrawUtilities.getPointAtDistanceOnLine(line,2*line.getLength()/3)); pointsWindSubstationToIndustrial.add(line.getToPoint()); lines = DrawUtilities.addLineWithSwitchToAnimatedPanel(pointsWindSubstationToIndustrial, 0, branchThicknessProvider, switchthickness, 1, Math.PI/20, branchWindToIndustrial, branchColorProvider, circuitpanel, overloadMonitorParams); fA = new FlowArrowsForBranchData(branchWindToIndustrial,lines,0.05,20.0,10.0,flowArrowColorProvider); circuitpanel.getMiddleLayerRenderables().add(fA); circuitpanel.getAnimatables().add(fA); circuitpanel.getMiddleLayerRenderables().add(new BranchMWFlowLabel(new Point2D.Double(399 - 70,273),12,new Color(0f,0f,0f,1f),Math.PI/4,branchWindToIndustrial)); // Line Substation 2 to Commercial load & flow label ArrayList<Point2D.Double> pointsWindSubstationToCommercial = new ArrayList<Point2D.Double>(); line = new SimpleLineDisplay(new Point2D.Double(351 - 70,212.5),new Point2D.Double(525 - 70,55),1); pointsWindSubstationToCommercial.add(line.getFromPoint()); pointsWindSubstationToCommercial.add(DrawUtilities.getPointAtDistanceOnLine(line,line.getLength()/3)); pointsWindSubstationToCommercial.add(DrawUtilities.getPointAtDistanceOnLine(line,2*line.getLength()/3)); pointsWindSubstationToCommercial.add(line.getToPoint()); lines = DrawUtilities.addLineWithSwitchToAnimatedPanel(pointsWindSubstationToCommercial, 0, branchThicknessProvider, switchthickness, 1, Math.PI/20, branchWindToCommercial, branchColorProvider, circuitpanel, true, overloadMonitorParams); fA = new FlowArrowsForBranchData(branchWindToCommercial,lines,0.05,20.0,10.0,flowArrowColorProvider); circuitpanel.getMiddleLayerRenderables().add(fA); circuitpanel.getAnimatables().add(fA); circuitpanel.getMiddleLayerRenderables().add(new BranchMWFlowLabel(new Point2D.Double(396 - 70,140),12,new Color(0f,0f,0f,1f),-Math.PI/4,branchWindToCommercial)); // Line Substation 1 to Substation 2 ArrayList<Point2D.Double> pointsSub0ToSub1 = new ArrayList<Point2D.Double>(); pointsSub0ToSub1.add(new Point2D.Double(85,140)); pointsSub0ToSub1.add(new Point2D.Double(175,140)); pointsSub0ToSub1.add(new Point2D.Double(175,156)); pointsSub0ToSub1.add(new Point2D.Double(175,196)); pointsSub0ToSub1.add(new Point2D.Double(175,212)); pointsSub0ToSub1.add(new Point2D.Double(190,212)); pointsSub0ToSub1.add(new Point2D.Double(230,212)); pointsSub0ToSub1.add(new Point2D.Double(351 - 70,212)); lines = DrawUtilities.addLineWithSwitchToAnimatedPanel(pointsSub0ToSub1, 0, branchThicknessProvider, switchthickness, 2, Math.PI/20, branchWindLocalSubstationToCitySubstation, branchColorProvider, circuitpanel, true, overloadMonitorParams); fA = new FlowArrowsForBranchData(branchWindLocalSubstationToCitySubstation,lines,0.05,20.0,10.0,flowArrowColorProvider); circuitpanel.getMiddleLayerRenderables().add(fA); circuitpanel.getAnimatables().add(fA); circuitpanel.getMiddleLayerRenderables().add(new BranchMWFlowLabel(new Point2D.Double(195,141),12,new Color(0f,0f,0f,1f),0,branchWindLocalSubstationToCitySubstation)); // Coal plant display try { CoalPlantDisplay coaldisplay = new CoalPlantDisplay(new Point2D.Double(650 - 70,300),0,0.0,genCoal); circuitpanel.getMiddleLayerRenderables().add(coaldisplay); circuitpanel.addMouseListener(coaldisplay); CostAndEmissionsOverlay coaloverlay = new CostAndEmissionsOverlay(new Point2D.Double(700 - 70,450),genCoal); costOverlays.add(coaloverlay); circuitpanel.getTopLayerRenderables().add(coaloverlay); } catch (IOException ie) { System.out.println(ie); } // Gas plant display try { GasPlantDisplay gasdisplay = new GasPlantDisplay(new Point2D.Double(650 - 70,40),0.0,genGas); circuitpanel.getMiddleLayerRenderables().add(gasdisplay); circuitpanel.addMouseListener(gasdisplay); CostAndEmissionsOverlay gasoverlay = new CostAndEmissionsOverlay(new Point2D.Double(700 - 70,20),genGas); costOverlays.add(gasoverlay); circuitpanel.getTopLayerRenderables().add(gasoverlay); } catch (IOException ie) { System.out.println(ie); } // Wind plant display try { winddisplay = new WindPlantDisplay(new Point2D.Double(50,240),0.0,genWind); circuitpanel.getMiddleLayerRenderables().add(winddisplay); circuitpanel.getAnimatables().add(winddisplay); circuitpanel.addMouseListener(winddisplay); CostAndEmissionsOverlay windoverlay = new CostAndEmissionsOverlay(new Point2D.Double(100,450),genWind); costOverlays.add(windoverlay); circuitpanel.getTopLayerRenderables().add(windoverlay); } catch (IOException ie) { System.out.println(ie); } // Storage display // try { //SubstationDisplay storagedisplay = new SubstationDisplay(new Point2D.Double(160,0),"Storage"); //circuitpanel.getMiddleLayerRenderables().add(storagedisplay); StorageDisplay storagedisplay = new StorageDisplay(genStorage,StorageDisplay.Alignment.LEFT,StorageDisplay.Alignment.TOP,new Point2D.Double(170,0)); circuitpanel.getMiddleLayerRenderables().add(storagedisplay); // } catch (IOException ie) { // System.out.println(ie); // } // Commercial load try { CityDisplay commercetonLoad = new CityDisplay(new Point2D.Double(475 - 70,25),CityDisplay.CityType.COMMERCIAL,"Commercial",loadCommercial,0); circuitpanel.getBottomLayerRenderables().add(commercetonLoad); circuitpanel.addMouseListener(commercetonLoad); } catch (IOException ie) { System.err.println(ie.toString()); } // Residential load try { CityDisplay residentialLoad = new CityDisplay(new Point2D.Double(475 - 70,175),CityDisplay.CityType.RESIDENTIAL,"Residential",loadResidential,0); circuitpanel.getBottomLayerRenderables().add(residentialLoad); circuitpanel.addMouseListener(residentialLoad); } catch (IOException ie) { System.err.println(ie.toString()); } // Industrial load try { CityDisplay industrialLoad = new CityDisplay(new Point2D.Double(475 - 70,329),CityDisplay.CityType.INDUSTRIAL,"Industrial",loadIndustrial,0); circuitpanel.getBottomLayerRenderables().add(industrialLoad); circuitpanel.addMouseListener(industrialLoad); } catch (IOException ie) { System.err.println(ie.toString()); } // Substation 3 try { circuitpanel.getMiddleLayerRenderables().add(new SubstationDisplay(new Point2D.Double(660 - 70,212 - 25.0),3)); } catch (IOException ie) { System.out.println(ie); } // Substation 2 try { circuitpanel.getMiddleLayerRenderables().add(new SubstationDisplay(new Point2D.Double(305 - 70,212 - 25.0),2)); } catch (IOException ie) { System.out.println(ie); } // Substation 1 try { circuitpanel.getMiddleLayerRenderables().add(new SubstationDisplay(new Point2D.Double(39,120.0),1)); } catch (IOException ie) { System.out.println(ie); } circuitpanel.getMiddleLayerRenderables().add(new StoredEnergyLabel(new Point2D.Double(230,56),12,Color.BLACK,0,genStorage)); /* totalloadplot = new TotalLoadPlot( new Point2D.Double(10,10), 700,200, ps, minutesPerAnimationStep, 0,24, 0,3000); */ /* MouseCoordinateLabel mclabel = new MouseCoordinateLabel(new Point2D.Double(0,20),12,Color.BLACK,0); circuitpanel.getTopLayerRenderables().add(mclabel); circuitpanel.addMouseMotionListener(mclabel); MouseCoordinateLabel mclabel = new MouseCoordinateLabel(new Point2D.Double(0,0),12,Color.BLACK,0); circuitpanel.getMiddleLayerRenderables().add(mclabel); circuitpanel.addMouseMotionListener(mclabel); */ WindMaxDisplay windMaxLabel = new WindMaxDisplay(new Point2D.Double(144,384),12,Color.BLACK,0,genWind); circuitpanel.getMiddleLayerRenderables().add(windMaxLabel); WindCurtailedDisplay windCurtailedLabel = new WindCurtailedDisplay(new Point2D.Double(144,404),12,Color.BLACK,0,genWind); circuitpanel.getMiddleLayerRenderables().add(windCurtailedLabel); circuitpanel.getTopLayerRenderables().add(new BlackoutDisplay(ps)); circuitpanel.getAnimatables().add(ps); circuitpanel.getTopLayerRenderables().add( new SimClockDisplay(new Point2D.Double(350,5),12,Color.BLACK,0,simClock)); // Wind plant at node sixteen // try { // WindPlantDisplay winddisplay = new WindPlantDisplay(new Point2D.Double(650,340),0.0,genWind); // circuitpanel.getMiddleLayerRenderables().add(winddisplay); // circuitpanel.getAnimatables().add(winddisplay); // circuitpanel.addMouseListener(winddisplay); // CostAndEmissionsOverlay windoverlay = new CostAndEmissionsOverlay(new Point2D.Double(689,462),genWind); // costOverlays.add(windoverlay); // circuitpanel.getTopLayerRenderables().add(windoverlay); // } catch (IOException ie) { // System.out.println(ie); // } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createSignalSystems() {\r\n\r\n createSignalSystemAtNode(this.scenario.getNetwork().getNodes().get(Id.createNodeId(2)));\r\n createSignalSystemAtNode(this.scenario.getNetwork().getNodes().get(Id.createNodeId(3)));\r\n createSignalSystemAtNode(this.scenario.getNetwork().getNodes()....
[ "0.66570765", "0.6647398", "0.60286", "0.5980184", "0.5888061", "0.5800359", "0.5762194", "0.56893885", "0.5683429", "0.5612099", "0.56102633", "0.5603371", "0.5569284", "0.551225", "0.5507921", "0.5506984", "0.5503435", "0.5482771", "0.54630905", "0.5449776", "0.54374695", ...
0.7545964
0
This interface is used to gain access to descriptors of the Descriptor class which are associated with a JMX component, i.e. MBean, MBeanInfo, MBeanAttributeInfo, MBeanNotificationInfo, MBeanOperationInfo, MBeanParameterInfo. ModelMBeans make extensive use of this interface in ModelMBeanInfo classes.
public interface DescriptorAccess extends DescriptorRead { /** * Sets Descriptor (full replace). * * @param inDescriptor replaces the Descriptor associated with the * component implementing this interface. If the inDescriptor is invalid for the * type of Info object it is being set for, an exception is thrown. If the * inDescriptor is null, then the Descriptor will revert to its default value * which should contain, at a minimum, the descriptor name and descriptorType. * * @see #getDescriptor */ public void setDescriptor(Descriptor inDescriptor); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final Descriptor getDescriptor() throws MdsException {\n return Descriptor.deserialize(this.getBuffer());\n }", "public MBeanInfo getMBeanInfo() {\n buildDynamicMBeanInfo();\n return dMBeanInfo;\n }", "public interface PaxosMBeanInfo {\n /**\n * @return a string identifying ...
[ "0.6440372", "0.64095664", "0.62361085", "0.61762846", "0.6174984", "0.6142447", "0.6057478", "0.60564375", "0.59977454", "0.5991215", "0.59877884", "0.5986581", "0.5986581", "0.596951", "0.59661657", "0.59661657", "0.5957587", "0.5944344", "0.5881747", "0.58244866", "0.58178...
0.5801921
21
Sets Descriptor (full replace).
public void setDescriptor(Descriptor inDescriptor);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setDescriptor(UtfConstant descriptor)\n {\n m_descriptor = descriptor;\n }", "public void setDescriptor(ClassDescriptor descriptor) {\n this.descriptor = descriptor;\n }", "public interface DescriptorAccess extends DescriptorRead\n{\n /**\n * Sets Descriptor (fu...
[ "0.69116277", "0.68341005", "0.64729065", "0.63811076", "0.63506377", "0.63045824", "0.6046589", "0.5922682", "0.5859617", "0.58417094", "0.5769108", "0.5732636", "0.5721456", "0.560782", "0.560782", "0.5563992", "0.5563992", "0.5552664", "0.5552664", "0.55506635", "0.5550274...
0.8088063
0
Declaratives Services activation of instance.
void activate(Map<String, Object> config) { this.config = config; log.debug(bundleMarker, "Activating..."); for (Map.Entry<String, Object> entry : config.entrySet()) { log.debug(bundleMarker, "Property key={} value={}", entry.getKey(), entry.getValue()); } this.animalTemplate = getAnimal(getConfigString(ANIMAL_TEMPLATE_URI)); this.scope = getProducerScope(); this.triggerOnID = getConfigBoolean(TRIGGER_ON_ID_NAME); this.state = new State(getConfigInteger(CONTROL_STATE_VALUE), getConfigString(CONTROL_STATE_NAME)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void activate()\n {\n }", "public void activate(IActivator activator);", "public void activate() {\n\t\t// TODO Auto-generated method stub\n\t}", "public void activate() {\n\t\tactivated = true;\n\t}", "public void activate() {\n\n serviceTracker = new ServiceTracker<>(bundleContext, Bluepr...
[ "0.6385781", "0.63394463", "0.63181734", "0.6317195", "0.6232299", "0.62172294", "0.61971974", "0.6195615", "0.61850584", "0.6133997", "0.61139673", "0.61139673", "0.59931463", "0.59803706", "0.59722465", "0.59579766", "0.59537524", "0.59343094", "0.59343094", "0.593338", "0....
0.0
-1
Declaratives Services activation of instance.
void deactivate() { animalTemplate = null; scope=null; triggerOnID=false; state = null; log.debug(bundleMarker, "deactivating..."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void activate()\n {\n }", "public void activate(IActivator activator);", "public void activate() {\n\t\t// TODO Auto-generated method stub\n\t}", "public void activate() {\n\t\tactivated = true;\n\t}", "public void activate() {\n\n serviceTracker = new ServiceTracker<>(bundleContext, Bluepr...
[ "0.6385781", "0.63394463", "0.63181734", "0.6317195", "0.6232299", "0.62172294", "0.61971974", "0.6195615", "0.61850584", "0.6133997", "0.61139673", "0.61139673", "0.59931463", "0.59803706", "0.59722465", "0.59579766", "0.59537524", "0.59343094", "0.59343094", "0.593338", "0....
0.0
-1
Overrides the superclass to add all Position and Measurement types of envelopes and to allow for triggering on eids.
@Override public void add(Envelope envelope) { if ((envelope.getValue() instanceof State) && (!triggerOnID)) { if (state == null) { if (((State) envelope.getValue()).getValue() == 1) { forwardConditionMet(); } } else if (state.equals(envelope.getValue())) { forwardConditionMet(); } } else if (envelope.getValue() instanceof Long) { id = (Long) envelope.getValue(); log.debug(bundleMarker(), "Set id={}", id); if (triggerOnID) { forwardConditionMet(); } } else { log.warn( bundleMarker(), "id={}, scope={} has unsupported value of {}", new Object[] { id, envelope.getScope(), envelope.getValue() }); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setEnvelope() {\n this.envelope = new Envelope(this.roomCards.get(0), this.weaponCards.get(0), this.suspectCards.get(0));\n }", "public void setEnvelope(Envelope envelope) {\n this.envelope = envelope;\n }", "public abstract SOAPEnvelope getEnvelope() throws SOAPException;", "public...
[ "0.6050284", "0.5697936", "0.5126551", "0.50544274", "0.5043509", "0.49930328", "0.4934741", "0.49139762", "0.48825184", "0.4862691", "0.4858354", "0.4841546", "0.48370582", "0.48303938", "0.4798459", "0.47628406", "0.46799448", "0.46592638", "0.46574646", "0.46418583", "0.46...
0.47665548
15
Output the event in an envelope that is tagged with the ID associated with the Transaction to the EventProducer
private void output(Animal animal) { Envelope envelope = new BasicEnvelope(animal, id.toString(), scope); transactionProducer.produce(envelope); int i = totalAnimals.incrementAndGet(); lastEnvelope = envelope; log.info(bundleMarker, "Sent animal #{} of type={} and id={} to the producer service with scope {}", new Object[] { i, animal.eClass().getName(), id, envelope.getScope() }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void output(String scope, Measurement measurement, Long id){\n\t\tmeasurementTransaction = \n\t\t\tMeasurementTransaction.newInstance(measurement, scope, id);\n\t\t\n\t\tMap<String, Object> table = new HashMap<String, Object>();\n\t\ttable.put(IROUTER_PAYLOAD.toProp(),\n\t\t\t\tmeasurementTransaction);\n\t...
[ "0.5746264", "0.54423183", "0.54031336", "0.5400106", "0.52861905", "0.52574027", "0.52113414", "0.5199271", "0.5170505", "0.5128102", "0.5123317", "0.5019437", "0.50020826", "0.4983364", "0.49581844", "0.49239928", "0.49131384", "0.4890231", "0.4886977", "0.48704824", "0.485...
0.5762931
0
use ASTParse to parse string
protected void parse(ComponentInstance componentInstance) { try { componentInstance.clearDependencies(); ICompilationUnit element = (ICompilationUnit) JavaCore.create(componentInstance.getResource()); ASTParser parser = ASTParser.newParser(AST.JLS8); parser.setSource(element); parser.setKind(ASTParser.K_COMPILATION_UNIT); parser.setResolveBindings(true); final CompilationUnit cu = (CompilationUnit) parser.createAST(null); componentInstance.setCompilationUnitAST(cu); componentInstance.setType(element.getTypes()[0]);// TODO - Considera apenas um tipo por arquivo... ASMLReosurceJavaVisitor reosurceJavaVisitor = asmlContext.getReosurceJavaVisitor(); reosurceJavaVisitor.setComponentInstance(componentInstance); reosurceJavaVisitor.setProject(iProject); cu.accept(reosurceJavaVisitor); } catch (JavaModelException e) { e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void parse(String string) {\n\t\t\n\t}", "public abstract T parse(String str);", "public abstract T parse(String s);", "public static Expr parse(String str) {\r\n\t\tExprBinary at = new ExprBinary(null, null); // the root of the tree\r\n\t\tStringBuilder opstore = new StringBuilder(); // stores operat...
[ "0.6951169", "0.6890166", "0.68732315", "0.6750542", "0.65023917", "0.647148", "0.6410876", "0.63824457", "0.63534236", "0.62742764", "0.62720263", "0.6239982", "0.6158983", "0.6142368", "0.6127143", "0.6089197", "0.6088859", "0.60494673", "0.6014764", "0.5977628", "0.5957498...
0.0
-1
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu_main, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {...
[ "0.7246102", "0.7201358", "0.7194834", "0.7176498", "0.71066517", "0.7039537", "0.7037961", "0.70112145", "0.70094734", "0.69807225", "0.6944953", "0.69389373", "0.6933199", "0.6916928", "0.6916928", "0.6891486", "0.68831646", "0.68754137", "0.68745375", "0.68621665", "0.6862...
0.0
-1
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); //noinspection SimplifiableIfStatement if (id == R.id.action_settings) { return true; } return super.onOptionsItemSelected(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n ...
[ "0.79043454", "0.7805307", "0.7766523", "0.7726966", "0.76315224", "0.7621912", "0.758477", "0.75306976", "0.74880254", "0.74575543", "0.74575543", "0.7438532", "0.7421883", "0.7402763", "0.73917615", "0.7386916", "0.7379295", "0.7370095", "0.7362524", "0.7355668", "0.7345373...
0.0
-1
Copyright (C) 2004 2019 UCWeb Inc. All Rights Reserved. Description : GitHubService.java Creation : 2019/8/4 Author : cangui.ccg
public interface GitHubService { @GET("users/{user}/repos") Call<String> listRepos(@Path("user") String user); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface GitHubApi {\n\nString CALL_BACK = \"gitdroid\";\n // GitHub开发者,申请就行\n String CLIENT_ID = \"42da7ad27e1072117a76\";\n String CLIENT_SECRET = \"0d6c0947115aa6ec24498e96fa912ca02fc0457a\";\n\n // 授权时申请的可访问域\n String INITIAL_SCOPE = \"user,public_repo,repo\";\n\n // WebView来加载此URL,用来...
[ "0.70986205", "0.67865497", "0.6572974", "0.6520631", "0.63442737", "0.63109964", "0.6282231", "0.62785107", "0.62624437", "0.6253412", "0.61390424", "0.59772074", "0.59680146", "0.59496194", "0.59407717", "0.5931927", "0.59089446", "0.5856665", "0.58512866", "0.58443063", "0...
0.6182047
10
TODO use a different step to check the home title
@Given("The dealer open the MilesWeb portal Dealer home page {string}") public void the_dealer_open_the_MilesWeb_portal_Dealer_home_page(String url) { navigateTo.milesWebHomePage(url, "MilesWeb portale Dealer"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test \n\tpublic void homePageTitleTest() {\n\t\tHomePage homePage = new HomePage(driver);\n\t\thomePage.OpenPage();\n\t\t\n\t\t//Fetch title \n\t\tString title = homePage.getTitle();\n\t\t\n\t\t//Assert title content \n\t\tAssert.assertTrue(title.equals(\"Lorem Ipsum - All the facts - Lipsum generator\"));\n\t}",...
[ "0.7704381", "0.7600453", "0.73747116", "0.7197442", "0.70769656", "0.7006296", "0.6937634", "0.6918983", "0.6907315", "0.6901001", "0.6900813", "0.684262", "0.6824472", "0.67961955", "0.6792222", "0.6755956", "0.67150176", "0.6680237", "0.66679037", "0.6643609", "0.66422623"...
0.0
-1
TODO Autogenerated method stub
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { doGet(request, response); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jLabel1 = new javax.swing.JLabel(); jTextField1 = new javax.swing.JTextField(); jLabel2 = new javax.swing.JLabel(); jButton1 = new javax.swing.JButton(); jLabel3 = new javax.swing.JLabel(); jTextField2 = new javax.swing.JTextField(); jLabel4 = new javax.swing.JLabel(); jTextField3 = new javax.swing.JTextField(); jButton2 = new javax.swing.JButton(); jButton3 = new javax.swing.JButton(); jButton4 = new javax.swing.JButton(); jScrollPane1 = new javax.swing.JScrollPane(); jTextArea1 = new javax.swing.JTextArea(); jButton5 = new javax.swing.JButton(); jLabel5 = new javax.swing.JLabel(); jComboBox1 = new javax.swing.JComboBox<>(); addInternalFrameListener(new javax.swing.event.InternalFrameListener() { public void internalFrameActivated(javax.swing.event.InternalFrameEvent evt) { formInternalFrameActivated(evt); } public void internalFrameClosed(javax.swing.event.InternalFrameEvent evt) { } public void internalFrameClosing(javax.swing.event.InternalFrameEvent evt) { } public void internalFrameDeactivated(javax.swing.event.InternalFrameEvent evt) { } public void internalFrameDeiconified(javax.swing.event.InternalFrameEvent evt) { } public void internalFrameIconified(javax.swing.event.InternalFrameEvent evt) { } public void internalFrameOpened(javax.swing.event.InternalFrameEvent evt) { } }); jLabel1.setFont(new java.awt.Font("Arial", 1, 10)); // NOI18N jLabel1.setText("* Vehiculo"); jTextField1.setFont(new java.awt.Font("Arial", 0, 10)); // NOI18N jLabel2.setFont(new java.awt.Font("Arial", 1, 10)); // NOI18N jLabel2.setText("Color"); jButton1.setBackground(new java.awt.Color(255, 255, 255)); jButton1.setFont(new java.awt.Font("Arial", 1, 10)); // NOI18N jButton1.setText(" "); jButton1.setFocusable(false); jButton1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton1ActionPerformed(evt); } }); jLabel3.setFont(new java.awt.Font("Arial", 1, 10)); // NOI18N jLabel3.setText("* Serie"); jTextField2.setFont(new java.awt.Font("Arial", 0, 10)); // NOI18N jLabel4.setFont(new java.awt.Font("Arial", 1, 10)); // NOI18N jLabel4.setText("Placas"); jTextField3.setFont(new java.awt.Font("Arial", 0, 10)); // NOI18N jButton2.setBackground(new java.awt.Color(255, 255, 255)); jButton2.setFont(new java.awt.Font("Arial", 1, 10)); // NOI18N jButton2.setText("Agregar"); jButton2.setFocusable(false); jButton2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton2ActionPerformed(evt); } }); jButton3.setBackground(new java.awt.Color(255, 255, 255)); jButton3.setFont(new java.awt.Font("Arial", 1, 10)); // NOI18N jButton3.setText("Cancelar"); jButton3.setFocusable(false); jButton3.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton3ActionPerformed(evt); } }); jButton4.setBackground(new java.awt.Color(255, 255, 255)); jButton4.setFont(new java.awt.Font("Arial", 1, 10)); // NOI18N jButton4.setText("Actualizar"); jButton4.setFocusable(false); jButton4.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton4ActionPerformed(evt); } }); jTextArea1.setColumns(20); jTextArea1.setFont(new java.awt.Font("Dialog", 0, 10)); // NOI18N jTextArea1.setLineWrap(true); jTextArea1.setRows(5); jTextArea1.setWrapStyleWord(true); jTextArea1.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Comentario", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Dialog", 1, 8))); // NOI18N jScrollPane1.setViewportView(jTextArea1); jButton5.setBackground(new java.awt.Color(255, 255, 255)); jButton5.setFont(new java.awt.Font("Arial", 1, 10)); // NOI18N jButton5.setText("Eliminar"); jButton5.setFocusable(false); jLabel5.setFont(new java.awt.Font("Dialog", 1, 10)); // NOI18N jLabel5.setText("Agencia"); jComboBox1.setFont(new java.awt.Font("Dialog", 1, 10)); // NOI18N jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" })); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addComponent(jLabel1) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)) .addGroup(layout.createSequentialGroup() .addComponent(jLabel3) .addGap(29, 29, 29))) .addGroup(layout.createSequentialGroup() .addComponent(jLabel5) .addGap(22, 22, 22))) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addGroup(layout.createSequentialGroup() .addComponent(jTextField1) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel4) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, 121, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(layout.createSequentialGroup() .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 230, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel2) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 64, javax.swing.GroupLayout.PREFERRED_SIZE))) .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, 230, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 406, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addComponent(jButton5) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jButton3) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jButton4) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jButton2)))) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel1) .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel4) .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel2) .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 17, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel3) .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel5) .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jButton4) .addComponent(jButton3) .addComponent(jButton2) .addComponent(jButton5)) .addContainerGap(15, Short.MAX_VALUE)) ); pack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n ...
[ "0.7319975", "0.7291426", "0.7291426", "0.7291426", "0.7286372", "0.7249133", "0.72134817", "0.7208172", "0.7196412", "0.7190365", "0.7184679", "0.71593916", "0.7147999", "0.7093026", "0.7080469", "0.7056178", "0.69875216", "0.69774026", "0.69545585", "0.69538534", "0.6945255...
0.0
-1
allocate a new file (structure) table entry for this file name allocate/retrieve and register the corresponding inode using dir increment this inode's count immediately write back this inode to the disk return a reference to this file (structure) table entry
public synchronized FileTableEntry falloc( String filename, String mode ) { short iNum = -1; Inode inode = null; // if not directory assign to the inumber corresponding to the file if (filename.equals("/") == false){ iNum = directory.namei(filename); }else{ // if its the directory assign iNum to 0 iNum = 0; } // file not found if (iNum == -1){ // checks to see if file mode is equal to "r" if(mode.compareTo("r") == 0) { // return null since you cannot create a file in read mode return null; // file not in read mode, therefore create a new file } else { // allocate a new file (structure) table entry for this file name iNum = directory.ialloc(filename); //unable to create file return if(iNum == -1) { return null; } // assign iNodes array by iNum to inode inode = new Inode(); iNodes[iNum] = inode; } // file was found }else { inode = iNodes[iNum]; } // in read mode if (mode.compareTo("r") == 0) { // wait until the flag is in write mode while (inode.flag > 1) { try { wait(); } catch (InterruptedException e) {} } //set flag to read inode.flag = 1; inode.count++; }else{ while (inode.flag > 0) { try { wait(); } catch (InterruptedException e) {} } inode.flag = 2; // increment this inode's count inode.count++; } // immediately write back this inode to the disk inode.toDisk(iNum); // make new file table entry FileTableEntry ftEnt = new FileTableEntry(inode, iNum, mode); // add the new entry to the table table.addElement(ftEnt); // return a reference to this file (structure) table entry return ftEnt; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized FileTableEntry falloc(String filename, String mode) {\n\t\tshort iNumber = -1; //inode number\n\t\tInode inode = null;//set null for inode\n\t\t\n\t\twhile (true) {\n\t\t\t//get iNumber from file name\n\t\t\tiNumber = (filename.equals(\"/\")) ? (short) 0 : dir.namei(filename);\n\t\t\t\n\t\t\t//...
[ "0.7032593", "0.690927", "0.67638373", "0.6360543", "0.59841424", "0.5885336", "0.5760627", "0.56790465", "0.56427836", "0.55384475", "0.5507714", "0.5436079", "0.542415", "0.5417252", "0.5402111", "0.53985405", "0.53655815", "0.5354263", "0.5335675", "0.5311128", "0.5306201"...
0.7109772
0
receive a file table entry reference save the corresponding inode to the disk free this file table entry. return true if this file table entry found in my table
public synchronized boolean ffree(FileTableEntry ftEnt) { // count is zero so return false if (ftEnt.inode.count == 0) { return false; } // subtract 1 from the count ftEnt.inode.count -= 1; // if the count is zero after the decrement // then it can be cahnged to unused mode if (ftEnt.inode.count == 0) { ftEnt.inode.flag = 0; notify(); } //remove the file table entry return table.removeElement(ftEnt); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized boolean ffree(FileTableEntry entry) {\n\t\tInode inode = new Inode(entry.iNumber);//set the reference from file table\n\t\t\n\t\t if (table.remove(entry))\n\t {\n\t\t\t //check the table for read data\n\t if (inode.flag == READ)\n\t {\n\t if (inode.co...
[ "0.81548893", "0.79867923", "0.77234733", "0.6464103", "0.59019226", "0.5840855", "0.57541823", "0.57195604", "0.55509895", "0.5326646", "0.5323786", "0.5312824", "0.53082764", "0.526155", "0.52170813", "0.51740175", "0.516526", "0.5152707", "0.51386946", "0.5099432", "0.5070...
0.7064114
3
copied from assignment description
public synchronized boolean fempty() { return table.isEmpty( ); // return if table is empty }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void assignment() {\n\n\t\t\t}", "public void getAssignment() {\n \n }", "assign_op getAssign_op();", "Assignment createAssignment();", "Assignment createAssignment();", "private void processAssignment(String line) {\n\t\t//TODO: fill\n\t}", "VarAssignment createVarAssignment();", "...
[ "0.79252124", "0.7136139", "0.68191004", "0.65520716", "0.65520716", "0.6419094", "0.6407437", "0.6398055", "0.63079405", "0.6277124", "0.6209967", "0.6182541", "0.61797273", "0.61609894", "0.61395305", "0.61274934", "0.6126531", "0.61262566", "0.6121327", "0.611859", "0.6095...
0.0
-1
Create an entity for this test. This is a static method, as tests for other entities might also need it, if they test an entity which requires the current entity.
public static TypeOeuvre createEntity(EntityManager em) { TypeOeuvre typeOeuvre = new TypeOeuvre() .intitule(DEFAULT_INTITULE); return typeOeuvre; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Entity createEntity();", "T createEntity();", "protected abstract ENTITY createEntity();", "void create(E entity);", "void create(T entity);", "E create(E entity);", "E create(E entity);", "TestEntity buildEntity () {\n TestEntity testEntity = new TestEntity();\n testEntity.setName(\"Te...
[ "0.772318", "0.75051135", "0.74880123", "0.7361846", "0.7314592", "0.71563506", "0.71563506", "0.715137", "0.7150589", "0.70789564", "0.70169926", "0.68033403", "0.6752896", "0.67390555", "0.67390555", "0.6711267", "0.6681522", "0.66659015", "0.6640632", "0.6624671", "0.66241...
0.6067396
66
Create an updated entity for this test. This is a static method, as tests for other entities might also need it, if they test an entity which requires the current entity.
public static TypeOeuvre createUpdatedEntity(EntityManager em) { TypeOeuvre typeOeuvre = new TypeOeuvre() .intitule(UPDATED_INTITULE); return typeOeuvre; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Student createUpdatedEntity(EntityManager em) {\n Student student = new Student()\n .firstName(UPDATED_FIRST_NAME)\n .middleName(UPDATED_MIDDLE_NAME)\n .lastName(UPDATED_LAST_NAME)\n .studentRegNumber(UPDATED_STUDENT_REG_NUMBER)\n .dateOfB...
[ "0.69449216", "0.67896795", "0.67879814", "0.67179096", "0.6694456", "0.66922057", "0.66643107", "0.66368437", "0.6620929", "0.6514777", "0.6509406", "0.6446852", "0.6423282", "0.6420849", "0.6420615", "0.64165777", "0.6411613", "0.6408787", "0.6403848", "0.63932365", "0.6390...
0.6275718
31
Creates a new instance.
public ModelInstanceImpl(String name, String type, String uid) { super(name, uid); String splitName = CommonUtilities.splitCases(name); names = Lists.mutable.with(splitName.split(" ")); if (names.size() > 1) { names.add(name); } String splitType = CommonUtilities.splitCases(type); types = Lists.mutable.with(splitType.split(" ")); if (types.size() > 1) { types.add(type); } this.uid = uid; fullName = name; fullType = type; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Instance createInstance();", "public void create(){}", "public Instance() {\n }", "private Instantiation(){}", "private Object createInstance() throws InstantiationException, IllegalAccessException {\n\t\treturn classType.newInstance();\n\t}", "void create(T instance) throws IOException;", "public v...
[ "0.7834167", "0.72893584", "0.70771503", "0.7048765", "0.70209944", "0.6839274", "0.67782235", "0.6770133", "0.67429745", "0.6701039", "0.6690158", "0.6630354", "0.66046286", "0.6600776", "0.6600776", "0.6597608", "0.6592152", "0.6564594", "0.65268713", "0.652679", "0.6475239...
0.0
-1
Returns the longest name of the instance.
@Override public String getFullName() { return fullName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getLongName();", "public static int LongestName () {\n int result = 0;\r\n\r\n // LOOP THROUGH THE PLAYERS\r\n for (int i = 0; i < player_count; i++) {\r\n // DID WE FIND A LONGER NAME?\r\n if (player[i].GetName().length() > result)\r\n result = pl...
[ "0.6664392", "0.6560489", "0.6556341", "0.6531818", "0.65237164", "0.65199894", "0.64980274", "0.6464121", "0.6439512", "0.6439512", "0.6434203", "0.64217144", "0.64217144", "0.6420784", "0.6409567", "0.6407535", "0.6391122", "0.6391122", "0.63305146", "0.6328148", "0.621718"...
0.0
-1
Returns the longest type of the instance.
@Override public String getFullType() { return fullType; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Class getType() {\n\t if ( type != null )\n\t return type;\n\t return long.class;\n\t }", "public MaximumLabelType getMaximumLabelType() {\n return this.maximumLabelType;\n }", "public MaxInstancesTypeElements getMaxInstancesTypeAccess() {\n\t\treturn pM...
[ "0.60414433", "0.603462", "0.5968782", "0.59248793", "0.59077966", "0.58757013", "0.58757013", "0.58757013", "0.58757013", "0.58757013", "0.58757013", "0.58757013", "0.58757013", "0.5841502", "0.5794731", "0.5794731", "0.5794731", "0.5794731", "0.5794731", "0.5794731", "0.579...
0.0
-1
Returns all name parts of the instance.
@Override public ImmutableList<String> getNameParts() { return names.toImmutable(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String[] getNameParts() {\n return field.getName().split(\"_\");\n }", "EList<String> getQualifiedNameParts();", "Collection<String> names();", "@Override\n\tpublic String getName() {\n\t\treturn name + instanceName;\n\t}", "@Override\n public String toString() {\n String name = this....
[ "0.7629371", "0.7016057", "0.64321303", "0.63949746", "0.63635653", "0.62413764", "0.6176603", "0.6176603", "0.6176603", "0.6176603", "0.6176603", "0.6176603", "0.6176603", "0.6176603", "0.6176603", "0.6176603", "0.6176603", "0.6176603", "0.6176603", "0.6176603", "0.6176603",...
0.7259431
1
Returns all type parts of the instance.
@Override public ImmutableList<String> getTypeParts() { return types.toImmutable(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List getTypeSpecifiers() {\n return member.getTypeSpecifiers();\n }", "public List<__Type> getTypes() {\n return (List<__Type>) get(\"types\");\n }", "UsedTypes getTypes();", "public List<Type> getAll();", "public String[] getTypes() {\n return impl.getTypes();\n }", ...
[ "0.64748585", "0.6460436", "0.6333992", "0.62716866", "0.620837", "0.6200934", "0.61635464", "0.61515963", "0.61079", "0.60887986", "0.60566324", "0.6052871", "0.6029943", "0.60271066", "0.596985", "0.59597844", "0.5948913", "0.59261286", "0.5877908", "0.5876592", "0.5872179"...
0.71395767
0
Returns the unique identifier of the instance.
@Override public String getUid() { return uid; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getInstanceID();", "public String getInstanceIdentifier();", "long getInstanceID();", "public java.lang.String getInstanceGuid() {\r\n return instanceGuid;\r\n }", "public String createUniqueScriptInstanceIdentifier() {\n\n\t\tLOGGER.debug(\"Creating a unique script instance identifier\");...
[ "0.7974227", "0.7918756", "0.77689433", "0.7642001", "0.7590915", "0.7580161", "0.75744563", "0.75338167", "0.7510794", "0.75075775", "0.746668", "0.7418938", "0.73841023", "0.73687804", "0.7368192", "0.7368192", "0.7368192", "0.7368192", "0.7368192", "0.7368192", "0.7368192"...
0.0
-1
this is a number guessing game that have 5 trials, the more trials left the more points the player can get
private static int guessing() { System.out.println("Guess a number between 1 and 100, you have 5 trials: "); int trials = 5; Scanner input = new Scanner(System.in); //set a random number as the number to be guessed int num = (int)(100 * Math.random()) + 1; int points = 0; //use a flag to check if player guess the correct number or not boolean flag = false; while ( trials > 0) { int guess = input.nextInt(); trials--; if ( guess == num ) { points = trials == 0? 20 : trials * 20; //System.out.println("You guess the number with"+trials+"trials left, congratulation! +"+ (points = trials == 0? 20 : trials * 20)+" points"); flag = true; break; }else if ( guess < num ) { System.out.println("The guess is too small, please try again, you have "+trials+" trials left."); }else { System.out.println("The guess is too large, please try again, you have "+trials+" trials left."); } } if ( !flag ) System.out.println("Trials used up, + 0 points"); return points; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Main()\n {\n \n Random rand = new Random();\n int n = rand.nextInt(10);\n n+=1;\n \n Scanner sc = new Scanner(System.in);\n int i = 0;\n do {\n \n i = sc.nextInt();\n\n //System.out.println(i);\n if(i<n){\n System.out.println(\"too small\");...
[ "0.70052564", "0.670886", "0.66226816", "0.65950763", "0.659257", "0.6542861", "0.65351105", "0.6480482", "0.64619845", "0.6415861", "0.64106905", "0.6374987", "0.6364657", "0.63344073", "0.6307628", "0.6295152", "0.6291858", "0.6277281", "0.6270997", "0.62640613", "0.6248396...
0.8421666
0
this is a coin flip game to guess if a coin is head or tail set a random number as the coin result, 1 for h, 2 for tail
private static int coinFlip() { int num = (Math.random() <= 0.5) ? 1 : 2; String answer; if ( num == 1) { answer = "h"; }else { answer = "t"; } Scanner input = new Scanner(System.in); System.out.print("Enter you guess (h = heads, t = tails):"); String guess = input.next(); //change the guess to lower case to accept both capital or lower case answer guess.toLowerCase(); //gain 50 points if win the toss if ( guess.equals(answer)) { //System.out.println("You won the toss, congratulation! +50 points"); return 50; }else { //System.out.println("Wrong guess! 0 points"); return 0; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void CoinFlip(int totalFlip) {\n\n //variables\n int count = 0;\n int head = 0;\n int tail = 0;\n\n //computation\n while (count != totalFlip) {\n double flip = Math.random();\n System.out.println(flip);\n\n if (flip < 0.5) {\n ...
[ "0.72804266", "0.7184349", "0.71302456", "0.70404977", "0.7035902", "0.7010875", "0.66937083", "0.6502938", "0.65000314", "0.6463962", "0.641587", "0.64142495", "0.6381827", "0.6182689", "0.6118211", "0.57360226", "0.57280135", "0.57164186", "0.5710599", "0.5705047", "0.56868...
0.75450724
0
CONSTRUCTORES TRAER TIPOS DE USUARIOS
public TipoUsuario(int id_tipousuario, String usuario) { this.id_tipousuario = id_tipousuario; this.usuario = usuario; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Tequisquiapan()\n {\n nivel = new Counter(\"Barrio Tequisquiapan: \");\n \n nivel.setValue(5);\n hombre.escenario=5;\n\n casa5.creaCasa(4);\n addObject(casa5, 2, 3);\n \n arbol2.creaArbol(2);\n addObject(arbol2, 20, 3);\n arbol3.creaAr...
[ "0.6177747", "0.595704", "0.58330077", "0.5821874", "0.5805115", "0.5775473", "0.57496256", "0.5719084", "0.56859255", "0.5680836", "0.5678049", "0.5648893", "0.56292003", "0.56227267", "0.5573949", "0.5557286", "0.5551808", "0.5517571", "0.5502964", "0.54862386", "0.5473774"...
0.5571585
15
PARA USAR EN CLASE USUARIO Y CREAR UN USUARIO NUEVO
public TipoUsuario(int id_tipousuario) { this.id_tipousuario = id_tipousuario; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void crearUsuario(String cedula,String name ,String lastname ,String phone , String city ,String email,String password) throws BLException;", "Secuencia createSecuencia();", "public void altaUsuario();", "OperacionColeccion createOperacionColeccion();", "Utilizator createUser(String username, String...
[ "0.7141991", "0.7066228", "0.6785011", "0.6732753", "0.67246777", "0.65717286", "0.6551392", "0.65411025", "0.6531841", "0.6516735", "0.65112484", "0.6498209", "0.6458662", "0.645543", "0.64391416", "0.6346701", "0.63249516", "0.63209534", "0.6319831", "0.6281222", "0.6276401...
0.0
-1
TODO Autogenerated method stub
private URL resolveRecaptcha(CharSequence content) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public boolean estaElemento(String elemento) { return false; }
{ "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
Use this factory method to create a new instance of this fragment using the provided parameters.
public static Fragment_home newInstance(String imei, String param2) { Fragment_home fragment = new Fragment_home(); Bundle bundle=new Bundle(); bundle.putString("imei",imei); fragment.setArguments(bundle); return fragment; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static FragmentTousWanted newInstance() {\n FragmentTousWanted fragment = new FragmentTousWanted();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "protected abstract Fragment createFragment();", "public void createFragment() {\n\n ...
[ "0.72621447", "0.7232083", "0.7112217", "0.6991051", "0.6990589", "0.6834896", "0.6830138", "0.68136847", "0.6801746", "0.68014497", "0.67672217", "0.6741153", "0.6741153", "0.6730413", "0.6717659", "0.6707773", "0.6691707", "0.66907436", "0.6690217", "0.6663584", "0.6645943"...
0.0
-1
TODO Autogenerated method stub
@Override public void onClick(DialogInterface arg0, int arg1) { }
{ "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: Rename method, update argument and hook method into UI event
public void onButtonPressed(Uri uri) { if (mListener != null) { mListener.onFragmentInteraction(uri); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void handle(ActionEvent event) {\n\n\t\t\t\t}", "@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\n\t\t\t}", "@...
[ "0.6619879", "0.65252125", "0.64742106", "0.64742106", "0.6435789", "0.63233054", "0.6237398", "0.6190151", "0.61593384", "0.6144328", "0.6123186", "0.6107672", "0.61000156", "0.60933954", "0.6049657", "0.6049657", "0.6045916", "0.60418254", "0.60418254", "0.6007766", "0.5999...
0.0
-1
This interface must be implemented by activities that contain this fragment to allow an interaction in this fragment to be communicated to the activity and potentially other fragments contained in that activity. See the Android Training lesson Communicating with Other Fragments for more information.
public interface OnFragmentInteractionListener { // TODO: Update argument type and name void onFragmentInteraction(Uri uri); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface OnFragmentInteractionListener {\n void onFragmentMessage(String TAG, Object data);\n}", "public interface FragmentInteraction {\n void switchToBoardView();\n void switchToPinsView();\n void switchToPins(PDKBoard pdkBoard);\n void switchToDescription(PDKPin pin);\n}", "public int...
[ "0.732486", "0.7209621", "0.71364164", "0.7125353", "0.7123662", "0.7015166", "0.69779605", "0.69779605", "0.69779605", "0.6975094", "0.69687355", "0.6966749", "0.6961368", "0.6954976", "0.6944469", "0.693585", "0.6931194", "0.6928626", "0.69238746", "0.69117075", "0.6904201"...
0.0
-1
TODO: Update argument type and name
void onFragmentInteraction(Uri uri);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public String getFirstArg() {\n return name;\r\n }", "@Override\n public int getNumberArguments() {\n return 1;\n }", "java.lang.String getArg();", "@Override\n public int getArgLength() {\n return 4;\n }", "Argument createArgument();", "@Override\r\n\tpublic ...
[ "0.7164074", "0.6946075", "0.6714363", "0.65115863", "0.63969076", "0.6375468", "0.63481104", "0.63162106", "0.6260299", "0.6208487", "0.6208487", "0.62070644", "0.6197276", "0.61806154", "0.6177103", "0.61530507", "0.61472267", "0.61243707", "0.60771817", "0.6054482", "0.599...
0.0
-1
TODO Autogenerated method stub
@Override public void handleMessage(Message msg) { super.handleMessage(msg); switch (msg.what) { case 911: queryMsg(); 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
protected void queryMsg() { if (currentPosition == 0) {//LIVE obtainLiveData(true, currentPosition, liveMaxChatId); } else {//CHAT obtainChatData(true, currentPosition, chatModels.get(0).getChatId()); } }
{ "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 initNavBar() { setTitle(R.string.live_detail); }
{ "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 findViewById() { mIndicator = (SimpleViewPagerIndicator) findViewById(R.id.id_stickynavlayout_indicator); mViewPager = (ViewPager) findViewById(R.id.id_stickynavlayout_viewpager); stickyNavLayout = (StickyNavLayout) findViewById(R.id.stickynavlayout); iv_user_logo = (ImageView) findViewById(R.id.iv_user_logo); tv_main_title = (TextView) findViewById(R.id.tv_main_title); tv_subtitle = (TextView) findViewById(R.id.tv_subtitle); tv_look_num = (TextView) findViewById(R.id.tv_look_num); tv_status = (TextView) findViewById(R.id.tv_status); iv_shuohua = (ImageView) findViewById(R.id.iv_shuohua); iv_operate = (ImageView) findViewById(R.id.iv_operate); }
{ "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 initView() { setShuohuaTouchListener(); iv_shuohua.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { // TODO Auto-generated method stub iv_operate.setSelected(!iv_operate.isSelected()); iv_shuohua.setSelected(!iv_shuohua.isSelected()); } }); mViewPager.setOnPageChangeListener(new OnPageChangeListener() { @Override public void onPageSelected(int position) { currentPosition = position; if (position == 0) {// 直播 ZhiBoFragment fragment = ((ZhiBoFragment) fragments .get(position)); if (liveModels == null || liveModels.size() == 0) { //暂停计时器查询 stopTimeTask(); squareLiveDetailLiveRequest(fragment, false,0); } } else if (position == 1) {// 聊天 LiaotianFragment fragment = ((LiaotianFragment) fragments .get(position)); if (chatModels == null || chatModels.size()==0) { //暂停计时器查询 stopTimeTask(); squareLiveDetailChatRequest(fragment, false,0); } } } @Override public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) { mIndicator.scroll(position, positionOffset); } @Override public void onPageScrollStateChanged(int state) { } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void onClick(View v) { iv_operate.setSelected(!iv_operate.isSelected()); iv_shuohua.setSelected(!iv_shuohua.isSelected()); }
{ "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
protected void stopTimeTask() { if (chatAsyncTask!=null) { chatAsyncTask.cancel(true); } if (liveAsyncTask!=null) { liveAsyncTask.cancel(true); } if (timerTask!=null) { timerTask.cancel(); timerTask = null; } if (timer!=null) { timer.cancel(); timer = null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override protected void initData() { isSearch = (boolean) getIntent().getExtras().getBoolean(Constant.IntentKey.isSearch,false); if (isSearch) {//非来自直播列表 articleID = getIntent().getExtras().getLong(Constant.IntentKey.articleID); // progressActivity.showLoading(); // 查询发现详情 obtainDetailRequest(); } else { squareLiveModel = (SquareLiveModel) getIntent().getExtras().getSerializable(Constant.IntentKey.squareLiveModel); initLoadView(); } //启动定时器 // initTimerTask(); }
{ "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 onCallback(Exception e) { ToastUtils.showCustomToast(e.getLocalizedMessage()); // mPullRefreshListView.onRefreshComplete(); // String errorMsg = e.getMessage(); // if ("无网络".equals(errorMsg)) { // refreshComplete(true,true); // } else { // refreshComplete(true,false); // } }
{ "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 onCallback(String result) { squareLiveModel = (SquareLiveModel) GsonUtils.jsonToBean( result, SquareLiveModel.class); initLoadView(); }
{ "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
private void initTimerTask() { timerTask = new TimerTask() { @Override public void run() { // TODO Auto-generated method stub if (isCompleteQuery) { isCompleteQuery = !isCompleteQuery; Message message = new Message(); message.what = 911; handler.sendMessage(message); LogUtils.i("*****************定时任务查询"); } } }; if (timer == null) { timer = new Timer(); } timer.schedule(timerTask, 10000, 5000);//延迟10秒查询,每5秒执行一次 }
{ "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 run() { if (isCompleteQuery) { isCompleteQuery = !isCompleteQuery; Message message = new Message(); message.what = 911; handler.sendMessage(message); LogUtils.i("*****************定时任务查询"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
private void initLayoutData() { ImageLoader.getInstance().displayImage(squareLiveModel.getVideoIco(), iv_user_logo, BaseApp.circleOptions); if (squareLiveModel!=null && squareLiveModel.getTitle().split(" ").length>1) { tv_main_title.setText(squareLiveModel.getTitle().split(" ")[1]); } else { tv_main_title.setText(squareLiveModel.getTitle()); } tv_subtitle.setText(squareLiveModel.getSubTitle()); tv_look_num.setText(squareLiveModel.getChatPeopleCount()+""); //0:未开始,1:进行中 2:已结束 if (squareLiveModel.getEventsProgress() == 0) {//未开始 tv_status.setText("距离开始"+ DateHelper.getIntervalDays(squareLiveModel.getEventsStart())); } else if (squareLiveModel.getEventsProgress() == 1) {//进行中 tv_status.setText("进行中"); } else if (squareLiveModel.getEventsProgress() == 2) {//已结束 tv_status.setText("已经结束"); } }
{ "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
private void initFragments() { ZhiBoFragment zhiBoFragment = ZhiBoFragment.newInstance(null); zhiBoFragment.setSquareFragmentListener(this); LiaotianFragment liaotianFragment = LiaotianFragment.newInstance(null); liaotianFragment.setSquareFragmentListener(this); fragments.add(zhiBoFragment); fragments.add(liaotianFragment); }
{ "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 startActivity(SquareFoundDetailReplyActivity.class);
@Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { Utily.go2Activity(this, SquareFoundDetailReplyActivity.class); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onClick(View v) {\n Log.d(TAG, \"onResume: reply has been clicked \");\n ((globalShared) activity.getApplicationContext()).setPassingReply(tempReply);\n Intent profileViewer = new Intent(activity, activity_reply_reply.class);\n ...
[ "0.6427092", "0.589986", "0.57408214", "0.56974673", "0.56451744", "0.5614447", "0.5581406", "0.5555131", "0.5509728", "0.5479703", "0.54703933", "0.54276764", "0.5349837", "0.53010577", "0.52924687", "0.52762717", "0.5249224", "0.5247378", "0.5242783", "0.5242206", "0.523570...
0.7048732
0
TODO Autogenerated method stub
@Override public void onItemClick(int position) { mViewPager.setCurrentItem(position); }
{ "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 int getViewId() { return R.layout.layout_square_live; }
{ "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 rightNavClick() { }
{ "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() { if (timerTask!=null) { timerTask.cancel(); timerTask = null; } if (timer!=null) { timer.cancel(); timer = null; } super.onDestroy(); }
{ "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 ToastUtils.showMyToast(e.getLocalizedMessage());
@Override public void onCallback(Exception e) { fragment.refreshComplete(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\tpublic void onCallback(Exception e) {\n\t\t\t\t ToastUtils.showCustomToast(e.getLocalizedMessage());\n\t\t\t}", "@Override\n\t\t\tpublic void onCallback(Exception e) {\n\t\t\t\t ToastUtils.showCustomToast(e.getLocalizedMessage());\n\t\t\t}", "@Override\n\t\t\tpublic void onCallback(Exception e...
[ "0.77303106", "0.77303106", "0.77303106", "0.7236297", "0.70881593", "0.70879096", "0.69903", "0.69186294", "0.67032796", "0.6677052", "0.66751105", "0.66638976", "0.6660971", "0.66596824", "0.6650699", "0.6646778", "0.66296744", "0.6563662", "0.6559429", "0.6547665", "0.6547...
0.0
-1
TODO Autogenerated method stub
@SuppressWarnings("unchecked") @Override public void onCallback(String result) { LogUtils.i(result); fragment.refreshComplete(); isCompleteQuery = true; Type type = new TypeToken<ArrayList<SquareLiveChatModel>>() { }.getType(); ArrayList<SquareLiveChatModel> tempSquareLiveChatModels = (ArrayList<SquareLiveChatModel>) GsonUtils.jsonToList(result, type); boolean isComplete = false; if (!isRefresh) {//上拉加载更多 if (tempSquareLiveChatModels.size()<Constant.pageNum10) { isComplete = true; } liveModels.addAll(tempSquareLiveChatModels); if (liveMaxChatId==0) { //获取最大chatId obtainLiveMaxChatId(); } } else { // if (tempSquareLiveChatModels!=null && tempSquareLiveChatModels.size()>0) { // liveModels.addAll(0, tempSquareLiveChatModels); // } //读取最新数据时,会把置顶的消息也传过来,1、首先清理已经存储数据中置顶的消息,2、把查询的数据添加到已经处理过后的数据中 //清理置顶数据 removeTopDataFromLiveModels(); //合并最新的数据 liveModels.addAll(0, tempSquareLiveChatModels); //获取最大chatId obtainLiveMaxChatId(); } fragment.updateContentData(liveModels, isRefresh,isComplete); if (timer == null) { initTimerTask(); } }
{ "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
protected void obtainLiveMaxChatId() { for (int i = 0; i < liveModels.size();i++) { SquareLiveChatModel squareLiveChatModel = liveModels.get(i); if (squareLiveChatModel.getIsTop() == 0) {//置顶 long tempLiveMaxChatId = squareLiveChatModel.getChatId(); if (tempLiveMaxChatId>liveMaxChatId) { liveMaxChatId = tempLiveMaxChatId; } 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
protected void removeTopDataFromLiveModels() { for (int i = 0; i < liveModels.size();) { SquareLiveChatModel squareLiveChatModel = liveModels.get(i); if (squareLiveChatModel.getIsTop() == 1) {//置顶 liveModels.remove(i); } else { i++; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
private void squareLiveDetailChatRequest(final LiaotianFragment fragment, final boolean isRefresh, long chatId) { BaseRequest baseRequest = new BaseRequest();// 其它参数需要继承此类 // baseRequest.requestMethod = "get";//默认为get // 请求地址 String requestID; if (isRefresh) {//刷新 requestID = String.format( Constant.RequestContstants.Request_Live_detail_chat_down_List, squareLiveModel.getArticleId(), chatId); } else { requestID = String.format( Constant.RequestContstants.Request_Live_detail_chat_up_List, Constant.pageNum10, squareLiveModel.getArticleId(), chatId); } chatAsyncTask = doAsync(false, requestID, baseRequest, new Callback<Exception>() { @Override public void onCallback(Exception e) { // TODO Auto-generated method stub // ToastUtils.showMyToast(e.getLocalizedMessage()); fragment.refreshComplete(); } }, new Callback<String>() { @SuppressWarnings("unchecked") @Override public void onCallback(String result) { // TODO Auto-generated method stub LogUtils.i(result); fragment.refreshComplete(); isCompleteQuery = true; Type type = new TypeToken<ArrayList<SquareLiveChatModel>>() { }.getType(); ArrayList<SquareLiveChatModel> tempSquareLiveChatModels = (ArrayList<SquareLiveChatModel>) GsonUtils.jsonToList(result, type); boolean isComplete = false; if (!isRefresh) {//上拉加载更多 if (tempSquareLiveChatModels.size()<Constant.pageNum10) { isComplete = true; } chatModels.addAll(tempSquareLiveChatModels); } else {//下拉刷新、加载未读数据 if (tempSquareLiveChatModels!=null && tempSquareLiveChatModels.size()>0) { chatModels.addAll(0, tempSquareLiveChatModels); } } fragment.updateContentData(chatModels, isRefresh,isComplete); if (timer == null) { initTimerTask(); } } }); }
{ "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 ToastUtils.showMyToast(e.getLocalizedMessage());
@Override public void onCallback(Exception e) { fragment.refreshComplete(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\tpublic void onCallback(Exception e) {\n\t\t\t\t ToastUtils.showCustomToast(e.getLocalizedMessage());\n\t\t\t}", "@Override\n\t\t\tpublic void onCallback(Exception e) {\n\t\t\t\t ToastUtils.showCustomToast(e.getLocalizedMessage());\n\t\t\t}", "@Override\n\t\t\tpublic void onCallback(Exception e...
[ "0.7730195", "0.7730195", "0.7730195", "0.7235426", "0.7087556", "0.70874023", "0.69886005", "0.6917642", "0.6702825", "0.66768456", "0.6674517", "0.66637546", "0.66613925", "0.6659124", "0.66497463", "0.6647045", "0.6629191", "0.65622276", "0.65591633", "0.6549591", "0.65460...
0.0
-1
TODO Autogenerated method stub
@SuppressWarnings("unchecked") @Override public void onCallback(String result) { LogUtils.i(result); fragment.refreshComplete(); isCompleteQuery = true; Type type = new TypeToken<ArrayList<SquareLiveChatModel>>() { }.getType(); ArrayList<SquareLiveChatModel> tempSquareLiveChatModels = (ArrayList<SquareLiveChatModel>) GsonUtils.jsonToList(result, type); boolean isComplete = false; if (!isRefresh) {//上拉加载更多 if (tempSquareLiveChatModels.size()<Constant.pageNum10) { isComplete = true; } chatModels.addAll(tempSquareLiveChatModels); } else {//下拉刷新、加载未读数据 if (tempSquareLiveChatModels!=null && tempSquareLiveChatModels.size()>0) { chatModels.addAll(0, tempSquareLiveChatModels); } } fragment.updateContentData(chatModels, isRefresh,isComplete); if (timer == null) { initTimerTask(); } }
{ "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 onCallback(Exception e) { ToastUtils.showCustomToast(e.getLocalizedMessage()); }
{ "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 onCallback(Exception e) { ToastUtils.showCustomToast(e.getLocalizedMessage()); }
{ "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
@SuppressWarnings("unchecked") @Override public void onCallback(String result) { LogUtils.i(result); QiNiuTokenModel qiNiuTokenModel = (QiNiuTokenModel) GsonUtils.jsonToBean(result, QiNiuTokenModel.class); //获取到 token 时,调用七牛接口把数据上传到七牛服务器 uploadAudio(qiNiuTokenModel); }
{ "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 onCallback(Exception e) { ToastUtils.showCustomToast(e.getLocalizedMessage()); }
{ "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
private SquareLiveChatModel initLiveChatModel() { SquareLiveChatModel squareLiveChatModel = new SquareModel().new SquareLiveChatModel(); squareLiveChatModel.setArticleId(squareLiveModel.getArticleId()); squareLiveChatModel.setChatContent(null); squareLiveChatModel.setUserId(dataManager.userModel.UserId); squareLiveChatModel.setUserRole(userRole); squareLiveChatModel.setParentId(0); squareLiveChatModel.setUserAvatar(dataManager.userModel.Avatar); squareLiveChatModel.setUserNickName(dataManager.userModel.NickName); return squareLiveChatModel; }
{ "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
Instantiates a new CJ frame clump search.
public CJFrameClumpSearch(JFrameMain parent) { this.parent = parent; EventQueue.invokeLater(new Runnable() { @Override public void run() { try { view = new JFrameClumpSearch(); view.setVisible(true); view.addButtonSearchAL(new BtnListener()); } catch (Exception e) { } } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Controller(FrameSearch frameSearch) {\n this.frameSearch = frameSearch;\n this.criteria = new Criteria();\n search = new Search();\n getCriteriaSaved();\n frameSearch.getTpDataBase().getBtLoad().addMouseListener(new MouseAdapter() {\n public void mouseClicked(Mo...
[ "0.5710311", "0.5692092", "0.5551521", "0.54911774", "0.5382751", "0.53346723", "0.5319655", "0.52824926", "0.52791786", "0.5276979", "0.5234525", "0.51970696", "0.5193646", "0.5159177", "0.5111848", "0.510405", "0.5103808", "0.51036364", "0.51036364", "0.51036364", "0.510363...
0.6161215
0
Sign up a Person in the system
@PostMapping public ResponseEntity<Response<SignUpPersonDto>> signUp(@Valid @RequestBody SignUpPersonDto signUpPersonDto, BindingResult result) throws NoSuchAlgorithmException{ Response<SignUpPersonDto> response = new Response<SignUpPersonDto>(); log.info("Signing up Person {}", signUpPersonDto); //check if this Person already exists checkIfPersonAlreadyExists(signUpPersonDto, result); //check if result has errors and return the response with the errors if(result.hasErrors()) { log.error("Error validating Person sign up: {}", result.getAllErrors()); result.getAllErrors().forEach(er -> response.addErrors(er.getDefaultMessage())); return ResponseEntity.badRequest().body(response); } //convert SignUpPersonDto into Person Person person = convertSignUpPersonDtoIntoPerson(signUpPersonDto); //persist person in the database using PersonService personService.persist(person); //complete the dto with the new info from Person signUpPersonDto.setId(person.getId()); //return the response with the dto response.setData(signUpPersonDto); return ResponseEntity.ok(response); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void signUpAttempt(String email, String password, String firstName, String lastName);", "void signUp(SignUpRequest signupRequest);", "private void saveNewPerson() {\r\n\r\n\t\tSystem.out.println(\"Start Save new Patient...\");\r\n\r\n\t\ttry {\r\n\t\t\tIPerson p1 = new Person(\"admin\", new Role(Roles.ADMINIST...
[ "0.7220531", "0.7027089", "0.68611294", "0.6856639", "0.681934", "0.6804739", "0.6724218", "0.6715497", "0.6687072", "0.66854596", "0.6648085", "0.6628545", "0.65509343", "0.65281886", "0.6524966", "0.6512257", "0.64841765", "0.64791435", "0.64694226", "0.6464894", "0.6462192...
0.6346811
33
Created by Ezequiel Suarez Buitrago, Thomas Tibebu, Innocent Kateba, shuling he, Wenxin He, Tram Ly Date April 20, 2019
public interface AES { public String encrypt(String strToEncrypt); public String decrypt(String strToDecrypt); public String getSecretKeyWord(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void cajas() {\n\t\t\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n public void func_104112_b() {\n \n }", "public final void mo51373a() {\n }", "@Override\n protected void getExras() {\n }", "public void mo38117a() {\n }", "privat...
[ "0.5307462", "0.5288799", "0.5276887", "0.52583754", "0.5252223", "0.51988304", "0.51667124", "0.51580584", "0.5155413", "0.5149978", "0.5122967", "0.5113463", "0.5113463", "0.5113463", "0.5113463", "0.5113463", "0.5113463", "0.5113463", "0.5069121", "0.5052415", "0.503952", ...
0.0
-1
TODO Autogenerated method stub
@Override public List<String> viewAllProjects(String userId) { return fileDao.getUserAllProjectsName(userId); }
{ "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 List<String> viewUndoData(String userId, String projectId) { return fileDao.viewUndoData(userId, projectId); }
{ "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 List<String> viewDoneData(String userId, String projectId) { return fileDao.viewDoneData(userId, projectId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public String getAData(String userId, String projectId, String dataId) { return fileDao.getAData(userId, projectId, dataId); }
{ "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 Tag getATag(String userId, String projectId, String tagId) { return fileDao.getATag(userId, projectId, tagId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public String uploadDataSet(String userId, MultipartFile dataSet) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public boolean uploadTag(String userId, String projectId, String tagId, Tag tag) { return fileDao.uploadTag(userId, projectId, tagId, tag); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
Name of the Test :QTH12_CQTValidateSoftwareLicenseFields Migration Author : Cigniti Technologies Date of Migration : OCT 2019 DESCRIPTION : This method is to perform Quote History search with date operations. Parameters : StartRow ,EndRow , nextTestJoin
@Parameters({ "StartRow", "EndRow", "nextTestJoin" }) @Test public void TC_QTH12(int StartRow, String EndRow, boolean nextTestJoin) throws Throwable { int counter = 0; try { int intStartRow = StartRow; int intEndRow = ReportControl.fnGetEndRowCunt(EndRow, "QTH12_CQTValidateSoftwareLicenseFields", TestDataInsight, "Quote_History"); for (int intCounter = intStartRow; intCounter <= intEndRow; intCounter++) { try { counter = intCounter; fnOpenTest(); ReportStatus.fnDefaultReportStatus(); ReportControl.intRowCount = intCounter; Hashtable<String, String> data = TestUtil.getDataByRowNo("QTH12_CQTValidateSoftwareLicenseFields", TestDataInsight, "Quote_History", intCounter); TestEngineWeb.reporter.initTestCaseDescription("CQTValidateSoftwareLicenseFields"); ShipBillPayLib sbpLib=new ShipBillPayLib(); navigateToApplication("SMART"); Thread.sleep(4000); loginlib.loginIntoSmartApplication(data.get("UserName"),data.get("Password"));//QTPSVC,!OffShore!​ Thread.sleep(4000); Homelib.EnterSalesDocNumber(data.get("SalesDoc"));//0219334395 Homelib.clickOnSalesDocSearch(); Homelib.clickSalesDocDropdown(data.get("DDOption"));//Copy to Quote Thread.sleep(4000); Homelib.clickYesButtontocloseDocument(); Thread.sleep(4000); Homelib.clickSideBarSmart(); Homelib.clickonSaveasQuote(); Homelib.enterCancelButtonInPoupHdr(); Thread.sleep(4000); String QuoteNum= Homelib.getSaveQuoteNumber(); Thread.sleep(4000); Homelib.clickSideBarSmart(); Homelib.clickClosthedocument(QuoteNum); Homelib.clickYesButtontocloseDocument(); Thread.sleep(4000); cmtLib.loginToCMT(data.get("Header")); cmtLib.loginToCMTSearchWebGrpAndUser(data.get("Header"), data.get("WebGrp"), data.get("LnameEmailUname"), data.get("ContactName")); // Enable Quotes Check Box cmtLib.setPermissions(data.get("Menu_Name"), data.get("Set_Permission")); cmtLib.clickOnloginAs(); switchToChildWindow(); cmtLib.loginVerification(data.get("ContactName")); clickToolsMenu(data.get("Tools_Menu"), data.get("Tools_Menu_DD")); verifyQuoteHistory(); quickSearchAndVerifySearchResults(data.get("SearchBy"),QuoteNum); verifyAndClickQuoteNumberOnHistory(); verifyQuoteDetails(); orderLib.convertQuote(); cartLib.verifyCartBreadCrumb(); // Proceed to checkout orderLib.proceedToCheckout(); addAdditionalInformation(data.get("BUSINESSUNIT"),data.get("OPERATINGUNIT"),data.get("LOCATIONCODE"),data.get("DEPARTMENT"),data.get("ACCOUNT"),data.get("ENTITYNAME"),data.get("ENDUSERCONTACT"),data.get("ORDERCONTACT"),data.get("LICENCE")); orderLib.shippingBillPayContinueButton(); // Click continue on shipping address orderLib. shippingBillPayContinueButton(); orderLib.clickOnReviewOrderButton(); // Place Order String summaryAmount = cartLib.getSummaryAmountInCart(); orderLib.placeOrderAndVerifyReceiptOrderAndDate(summaryAmount); // Verify Receipt orderLib.verifyReceiptVerbiage(); String ReferenceNumber = sbpLib.getReferenceNum(); orderLib.clickOrderDetailsLinkOnReceiptPage(); verifyContactName(data.get("ContactName")); canadaLib.clickOnInvoiceHistory(); canadaLib.clickOnSideMenuSelectAccountToolOptions(data.get("Tools_Menu"), data.get("Tools_Menu_DD")); quickSearchAndVerifySearchResults(data.get("SearchBy1"),ReferenceNumber); commonLib.clickLogOutLink(data.get("Logout_Header")); } catch (Exception e) { ReportStatus.blnStatus = false; gErrorMessage = e.getMessage(); gTestStatus = false; } } } catch (Exception e) { e.printStackTrace(); ReportStatus.blnStatus = false; gErrorMessage = e.toString(); gTestStatus = false; ReportStatus.fnUpdateResultStatus("CQTValidateSoftwareLicenseFields", "TC_QTH12", ReportStatus.strMethodName, 1, browser); throw new RuntimeException(e); } finally { ReportControl.fnEnableJoin(); ReportStatus.fnUpdateResultStatus("CQTValidateSoftwareLicenseFields", "TC_QTH12", ReportStatus.strMethodName, counter, browser); fnCloseTest(); ReportControl.fnNextTestJoin(nextTestJoin); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Parameters({ \"StartRow\", \"EndRow\", \"nextTestJoin\" })\n\t\t@Test\n\t\tpublic void TC_ROD06(int StartRow,String EndRow, boolean nextTestJoin) throws Throwable {\n\t\t\ttry {\n\t\t\t\tint intStartRow = StartRow;\n\t\t\t\tint intEndRow = ReportControl.fnGetEndRowCunt(EndRow, \"ROD06_FCTWebReviewExport\", TestDa...
[ "0.6488662", "0.58631366", "0.57328415", "0.5514515", "0.5484928", "0.54646856", "0.5439483", "0.543595", "0.5370049", "0.53562653", "0.53541386", "0.5335053", "0.53345424", "0.53304595", "0.533028", "0.53169775", "0.53082114", "0.53070676", "0.5303753", "0.5298044", "0.52842...
0.7776544
0
This method handles the case of making an already built SensorML aggregate process executable, hence it is not valid to provide an implementation of IProcessChainExec that already contains child processes and/or connections.
@Override public void setExecutableImpl(IProcessExec processExec) throws ProcessException { Asserts.checkArgument(processExec instanceof IProcessChainExec, "Executable implementation must be a process chain implementation"); // assign exec implementation IProcessChainExec processChain = (IProcessChainExec)processExec; super.setExecutableImpl(processChain); // case where SML description contains child process definitions // and chain exec implementation doesn't have any if (processChain.getChildProcesses().isEmpty() && processChain.getInternalConnections().isEmpty()) { // add child processes to exec impl for (OgcProperty<AbstractProcess> processProp: getComponentList().getProperties()) addProcessToExec(processProp.getName(), processProp.getValue()); // add connections to exec impl for (Link link: getConnectionList()) addConnectionToExec(link); } // case where chain exec implementation contains executable child processes // and SML aggregate description doesn't have any else if (getNumComponents() == 0 && getNumConnections() == 0) { // wrap and add child processes to SML description for (Entry<String, IProcessExec> entry: processChain.getChildProcesses().entrySet()) { AbstractProcess smlProcess = SMLUtils.wrapWithProcessDescription(entry.getValue()); components.add(entry.getKey(), smlProcess); } // add links to SML description for (IDataConnection connection: processChain.getInternalConnections()) addConnection(processChain, connection); } else throw new IllegalStateException("Executable implementation must be an empty process chain implementation"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static SimpleProcessExecutor newSimpleProcessExecutor() {\n return new SimpleProcessExecutor(new TestProcessManagerFactory().newProcessManager());\n }", "@Override\n public int execute(Parameters parameters) {\n\n final List<String> command = new ArrayList<>();\n final String b = bin...
[ "0.5629643", "0.5629049", "0.5590915", "0.55460286", "0.5530759", "0.55082667", "0.54307014", "0.54292786", "0.5396005", "0.5385172", "0.53674614", "0.5357244", "0.5275024", "0.5273018", "0.521717", "0.52160466", "0.5210161", "0.5179879", "0.5136753", "0.5134866", "0.51216626...
0.7150929
0
/ / Autogenerated Getters and Setters / Gets the list of components
@Override public OgcPropertyList<AbstractProcess> getComponentList() { return components; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<LComponent> getComponents()\n\t{\n\t\treturn this.components;\n\t}", "public List<GComponent> getComponents()\n {\n return this.components;\n }", "public ArrayList<String> getComponents() {\n\t\treturn this.components;\n\t}", "public CachetComponentList getComponents() {\n JsonNode ro...
[ "0.8236949", "0.811838", "0.80852693", "0.78121686", "0.77906746", "0.76757467", "0.7448924", "0.7377217", "0.72936106", "0.72503644", "0.7183993", "0.7136564", "0.7104413", "0.70481616", "0.70392334", "0.6967478", "0.68086404", "0.6793861", "0.67437017", "0.66933376", "0.665...
0.78153545
3
Returns number of components
@Override public int getNumComponents() { return components.size(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getNumberOfComponents();", "int countComponents() throws Exception;", "public int getNumberOfComponents() {\n return components;\n }", "public int components() {\n return numOfComponents;\n }", "public int getNumberOfComponents() {\n\t\t\treturn nComponents;\n\t\t}", "public a...
[ "0.88997597", "0.8379175", "0.8340667", "0.8154518", "0.81440556", "0.7704418", "0.717097", "0.71179265", "0.71179265", "0.7012394", "0.69865483", "0.6886258", "0.6878581", "0.6806332", "0.6771219", "0.6771219", "0.6769161", "0.67448825", "0.67333215", "0.67143655", "0.671436...
0.8082331
5
Gets the component with the given name
@Override public AbstractProcess getComponent(String name) { return components.get(name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Component getComponent(String name) {\n Optional<Component> component = elements.getComponent(name);\n\n if(component.isPresent()) {\n return component.get();\n } else {\n Assert.fail(\"Missing component \" + name);\n return null;\n }\n\n }", ...
[ "0.84762293", "0.81886446", "0.73016566", "0.7175024", "0.71191114", "0.71162105", "0.71162105", "0.70095706", "0.69868517", "0.65870017", "0.6535281", "0.65247166", "0.64980406", "0.6464322", "0.6461174", "0.6443699", "0.6374033", "0.63552976", "0.6326128", "0.6322457", "0.6...
0.7449018
2
Adds a new component
@Override public void addComponent(String name, AbstractProcess component) { components.add(name, component); addProcessToExec(name, component); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void addComponent(Component component);", "public void addComponent(Component c);", "public void add(Component c){}", "public void addComponent(String name, Component newComp);", "public void addComponent(Component component){\n components.add(component);\n }", "public abstract void add(KitComp...
[ "0.87033427", "0.8512116", "0.838362", "0.81532234", "0.81275535", "0.79064685", "0.7683292", "0.76173997", "0.7454587", "0.72507477", "0.72488844", "0.716393", "0.7148656", "0.7142532", "0.71235055", "0.7005448", "0.6974088", "0.69133765", "0.69113916", "0.68856806", "0.6872...
0.67929417
26
Gets the list of connections
@Override public List<Link> getConnectionList() { return connections; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Connections getConnections();", "public ArrayList<Connection> getConnections(){\n\t\treturn manager.getConnectionsWith(this);\n\t}", "java.util.List<io.netifi.proteus.admin.om.Connection> \n getConnectionsList();", "public List<Connection> getConnections() {\n\t\treturn new ArrayList<Connection>(...
[ "0.87197834", "0.8686922", "0.86818206", "0.8448748", "0.84363765", "0.8153708", "0.81271815", "0.8082547", "0.8054896", "0.79367703", "0.7894477", "0.77921087", "0.7776632", "0.77171", "0.766136", "0.7644766", "0.76388335", "0.76248133", "0.761859", "0.7560383", "0.74985427"...
0.83074015
5
Returns number of connections
@Override public int getNumConnections() { return connections.size(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getConnectionsCount();", "public int numConnections(){\n return connections.size();\n }", "public int numofConnections() {\n\t\tint numberofconnection = 0;\n\t\tString node;\n\t\tfor (String key : Nodeswithconnect.keySet()) {\n\t\t\tfor (int i = 0; i < Nodeswithconnect.get(key).length; i++) {\n\t...
[ "0.9094433", "0.8916262", "0.86503065", "0.8643983", "0.86223054", "0.85591364", "0.8505418", "0.8337616", "0.8299881", "0.8252038", "0.81882906", "0.81455344", "0.8086504", "0.79566526", "0.7943946", "0.7898288", "0.7794246", "0.7672595", "0.7627449", "0.75910604", "0.751978...
0.83289933
8
Adds a new connection
@Override public void addConnection(Link link) { connections.add(link); if (executableProcess != null) addConnectionToExec(link); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addConnection(Connection connection) {\n connection.start();\n connections.put(keyCounter, connection);\n keyCounter++;\n }", "@Override\n public void addConnection(Connection connection) {\n Connection originConn = this.connectionPoolTable.get(connection.getUniqueKe...
[ "0.75691175", "0.7479456", "0.7464365", "0.745639", "0.68760043", "0.675949", "0.669693", "0.6636009", "0.6561523", "0.65591085", "0.6500684", "0.63065183", "0.6215506", "0.62037086", "0.6170449", "0.60788316", "0.60508215", "0.6050774", "0.60395616", "0.6020729", "0.6014223"...
0.6781207
5
TODO Autogenerated method stub
@Override public void Write_text(String CustomerCode, String Device, String Lot, String CP, File DataSorce,String FileName) throws IOException { File[] Filelist=DataSorce.listFiles(); for (int k = 0; k < Filelist.length; k++) { parseRawdata parseRawdata=new parseRawdata(Filelist[k]); LinkedHashMap<String, String> properties=parseRawdata.getProperties(); String Wafer_ID_R=properties.get("Wafer ID"); String waferid=properties.get("Wafer ID"); String[][] MapCell_R=parseRawdata.getAllDiesDimensionalArray(); String Flat_R=null; String notch=properties.get("Notch"); if (notch.equals("0-Degree")) { Flat_R="Up"; }else if (notch.equals("90-Degree")) { Flat_R="Right"; }else if (notch.equals("180-Degree")) { Flat_R="Down"; }else { Flat_R="Left"; } Integer PassDie_R=Integer.parseInt(properties.get("Pass Die")); Integer RightID_R=Integer.valueOf(properties.get("RightID")); Integer Col_R=(Integer.parseInt(properties.get("Map Cols"))) ; Integer Row_R=(Integer.parseInt(properties.get("Map Rows"))); MapCell_R=TurnNighteenDegree.turnNegativeNighteen(MapCell_R, Row_R, Col_R); Integer temp=Row_R; Row_R=Col_R; Col_R=temp; String FailDie_R=properties.get("Fail Die"); String FinalID=RightID_R.toString(); String TestStartTime_R=properties.get("Test Start Time"); String Wafer_Load_Time_R=properties.get("Test Start Time"); TreeMap<Integer, Integer> Bin_Summary_R=parseRawdata.getBinSummary(); String OPerater_R=properties.get("Operator"); String Yeild_R=properties.get("Wafer Yield"); String TestEndTime_R=properties.get("Test End Time"); Integer gross_die=Integer.parseInt(properties.get("Gross Die")); String waferSize_R=properties.get("WF_Size"); String slotId=properties.get("Slot"); TextReportModel9TurnN90 model1=new TextReportModel9TurnN90(); String VERSION="NA"; if (RightID_R<10) { FinalID="0"+RightID_R.toString(); } HashMap<String, String> NameMap=model1.InitMap(Lot, FinalID, CP, Wafer_Load_Time_R, Device, Wafer_ID_R, VERSION); Set<String> keyset1=NameMap.keySet(); String FinalName=FileName; for (String key : keyset1) { if (FinalName.contains(key)) { FinalName=FinalName.replace(key, NameMap.get(key)); } } File Result_Text=new File(reportBath+CustomerCode+"/"+Device+"/"+Lot+"/"+CP+"/"+FinalName); PrintWriter out=null; try { out=new PrintWriter(new FileWriter(Result_Text)); } catch (IOException e) { // TODO: handle exception e.printStackTrace(); } out.print(" "); for(int i = 1;i<Col_R;i++) { if (i<10) { out.print(" 0"+i); }else { out.print(" "+i); } } out.print("\r\n"); out.print(" "); for(int i = 1;i<Col_R;i++) { out.print("++-"); } out.print("\r\n"); for (int i = 0; i < Row_R; i++) { if (i<10) { out.print("00"+i+"|"); }else if (i>9&&i<100) { out.print("0"+i+"|"); }else { out.print(i+"|"); } for (int j = 0; j < Col_R; j++) { if (MapCell_R[i][j]==null) { out.print(String.format("%3s"," ")); }else if (MapCell_R[i][j].equals("S")||MapCell_R[i][j].equals("M")) { out.print(String.format("%3s"," ")); }else { if (Integer.valueOf(MapCell_R[i][j])>9) { out.print(String.format("%3s", MapCell_R[i][j])); }else { out.print(String.format("%3s", "0"+MapCell_R[i][j])); } } } out.print("\r\n"); } out.print("============ Wafer Information () ==========="+"\r\n"); out.print(" Device: "+Device+"\r\n"); out.print(" Lot NO: "+Lot+"\r\n"); out.print(" Slot No: "+(slotId.length()==1?"0"+slotId:slotId)+"\r\n"); out.print(" Wafer ID: "+waferid+"\r\n"); out.print(" Operater: "+OPerater_R+"\r\n"); out.print(" Wafer Size: "+waferSize_R+" Inch"+"\r\n"); out.print(" Flat Dir: "+Flat_R+"\r\n"); // if (Flat_R.equals("LEFT")) { // out.print(" Flat Dir: "+270+"-Degree"+"\r\n"); // } // if (Flat_R.equals("RIGHT")) { // out.print(" Flat Dir: "+90+"-Degree"+"\r\n"); // } // if (Flat_R.equals("UP")) { // out.print(" Flat Dir: "+0+"-Degree"+"\r\n"); // } // if (Flat_R.equals("DOWN")) { // out.print(" Flat Dir: "+180+"-Degree"+"\r\n"); // } out.print(" Wafer Test Start Time: "+TestStartTime_R+"\r\n"); out.print(" Wafer Test Finish Time: "+TestEndTime_R+"\r\n"); out.print(" Wafer Load Time: "+TestStartTime_R+"\r\n"); out.print(" Wafer Unload Time: "+TestEndTime_R+"\r\n"); out.print(" Total test die: "+gross_die+"\r\n"); out.print(" Pass Die: "+PassDie_R+"\r\n"); out.print(" Fail Die: "+FailDie_R+"\r\n"); out.print(" Yield: "+Yeild_R+"\r\n"); out.print("\r\n"); out.print("\r\n"); out.print(" Bin (0~63) Data Deatil Summary"+"\r\n"); out.print("======================================================================="+"\r\n"); String Bin_Sum=""; String Bin_yield_percent=""; for (int i = 0; i < 64; i++) { String Every_Bininfor=""; Integer Sum=0; if (Bin_Summary_R.containsKey(i+1)) { Sum=Bin_Summary_R.get(i+1); } for(int j=0;j<5-(""+Sum).length();j++) { Every_Bininfor+="0"; } Bin_Sum+=Every_Bininfor+Sum+" | "; String percent=String.format("%.2f", ((double)Sum*100/gross_die)); if (percent.length()!=5) { percent="0"+percent; } Bin_yield_percent+= percent+"% | "; if ((i+1)>9) { out.print("Bin "+(i+1)+" | "); }else { out.print("Bin "+(i+1)+" | "); } if ((i+1)%8==0) { out.print("\r\n"); out.print(Bin_Sum); Bin_Sum=""; out.print("\r\n"); out.print(Bin_yield_percent); Bin_yield_percent=""; } if ((i+1)%8==0) { out.print("\r\n"); out.print("======================================================================="+"\r\n"); } } out.flush(); out.close(); FTP_Release(CustomerCode, Device, Lot, CP, Result_Text); } }
{ "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
provide info for map
public GameMapHashMap() { HashMap<String, HashMap<String, String>> temporaryMap = new HashMap<>(); instantiateIndividualRooms(); temporaryMap.put("Atrium", atrium); temporaryMap.put("Breakfast Nook", breakfastNook); temporaryMap.put("Menagerie", menagerie); temporaryMap.put("Conservatory", conservatory); temporaryMap.put("Panic Room", panicRoom); temporaryMap.put("Fire Swamps", fireSwamps); temporaryMap.put("Hall", hall); temporaryMap.put("Dining Room", diningRoom); temporaryMap.put("Arcade", arcade); temporaryMap.put("Observatory", observatory); temporaryMap.put("Courtyard", courtyard); temporaryMap.put("Library", library); temporaryMap.put("Garden", garden); temporaryMap.put("Laboratory", laboratory); temporaryMap.put("Kitchen", kitchen); rooms = Collections.unmodifiableMap(temporaryMap); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Map<String, Object> getInfo();", "@Override\n\tpublic void getStat(Map<String, String> map) {\n\t\t\n\t}", "@Override\n public void addMapInfo(GameMapInfo mapInfo) {\n }", "@Override\r\n\tpublic IMapInfo getMapInfo() {\r\n\t\treturn replay.mapInfo;\r\n\t}", "public HashMap getMetaData() ;", ...
[ "0.77643716", "0.6903895", "0.68321526", "0.6805047", "0.668849", "0.66572595", "0.65730727", "0.6563462", "0.6520829", "0.6513654", "0.6511373", "0.6509486", "0.6503648", "0.64261883", "0.63935816", "0.6371588", "0.63591784", "0.62229156", "0.62165", "0.6207716", "0.61485463...
0.0
-1
8 / \ 6 10 / \ / \ 5 7 9 11
public static void main(String[] args) { BinaryTreeNode root = new BinaryTreeNode(); root.value = 8; root.left = new BinaryTreeNode(); root.left.value = 6; root.left.left = new BinaryTreeNode(); root.left.left.value = 5; root.left.right = new BinaryTreeNode(); root.left.right.value = 7; root.right = new BinaryTreeNode(); root.right.value = 10; root.right.left = new BinaryTreeNode(); root.right.left.value = 9; root.right.right = new BinaryTreeNode(); root.right.right.value = 11; printFromToBottom(root);}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int parent(int i){return (i-1)/2;}", "public static void main(String[] args) {\n TreeNode n0 = new TreeNode(0); \n TreeNode n1 = new TreeNode(1); \n TreeNode n2 = new TreeNode(2); \n TreeNode n3 = new TreeNode(3); \n TreeNode n4 = new TreeNode(4); \n TreeNode n5...
[ "0.5554225", "0.54051524", "0.5372197", "0.53655994", "0.53623027", "0.5302431", "0.5252153", "0.52521205", "0.5193881", "0.51376224", "0.5122183", "0.510819", "0.5082794", "0.5078782", "0.5072029", "0.50672853", "0.50450015", "0.5040706", "0.5033602", "0.50051695", "0.499349...
0.0
-1
Constructs a new board, that take no parameters, and initialize the game board as a 5 row game empty slot at (0,0). Added in Abstract model, thus passing in new Triangle board as parameter to super.
public TriangleSolitaireModelImpl() { super(new TriangleBoard()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Board()\r\n\t{\r\n\t\tsuper(8, 8);\r\n\t}", "public Board() {\n\t\tintializeBoard(_RowCountDefault, _ColumnCountDefault, _CountToWinDefault);\n\t}", "public Board() {\n initialize(3, null);\n }", "public Board()\r\n\t{\r\n\t\tfor(int x = 0; x < 9; x++)\r\n\t\t\tfor(int y = 0 ; y < 9; y++)\r\...
[ "0.7519167", "0.7218207", "0.71840733", "0.7054072", "0.70500326", "0.7048329", "0.698117", "0.69507855", "0.694428", "0.6922172", "0.6913548", "0.690321", "0.6855228", "0.683781", "0.681332", "0.68085176", "0.6785734", "0.67614305", "0.67604935", "0.6735923", "0.6724791", ...
0.6372326
64