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
This method was generated by MyBatis Generator. This method returns the value of the database column homage_genealogy.source
@ApiModelProperty(value = "族谱来源") public String getSource() { return source; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getSource(){\n\t\treturn source.getEvaluatedValue();\n\t}", "@HippoEssentialsGenerated(internalName = \"katharsisexampleshippo:source\")\n public String getSource() {\n return getProperty(SOURCE);\n }", "public StrColumn getSource() {\n return delegate.getColumn(\"source\", De...
[ "0.6197753", "0.5997031", "0.5837818", "0.5821048", "0.57829326", "0.5691762", "0.5675073", "0.5623711", "0.562077", "0.55942893", "0.557893", "0.5563839", "0.55582553", "0.55474734", "0.55442584", "0.5532512", "0.5532458", "0.5519418", "0.5514822", "0.55033773", "0.5488206",...
0.52558464
47
This method was generated by MyBatis Generator. This method sets the value of the database column homage_genealogy.source
public void setSource(String source) { this.source = source == null ? null : source.trim(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void setSource(Object arg0) {\n\t\tdefaultEdgle.setSource(arg0);\n\t}", "public void setGeneSetName(String name) {\r\n\t\tgeneSetName=name;\r\n\r\n\t}", "public void setSource(String value) {\n/* 304 */ setValue(\"source\", value);\n/* */ }", "public void setGenealogyName(String...
[ "0.560299", "0.55723107", "0.52382034", "0.5177441", "0.5154985", "0.51488185", "0.5094869", "0.5091877", "0.50782824", "0.50653684", "0.50454617", "0.5044639", "0.49906763", "0.4981824", "0.49439123", "0.49375737", "0.4934771", "0.49091902", "0.49067235", "0.48912206", "0.48...
0.44941023
64
This method was generated by MyBatis Generator. This method returns the value of the database column homage_genealogy.description
@ApiModelProperty(value = "描述") public String getDescription() { return description; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Column(name = \"DESCRIPTION\", length = 200 )\n public String getDescription() {\n return description;\n }", "public String getDescription(){\n\n //returns the value of the description field\n return this.description;\n }", "@Column(name = \"description\", nullable = false)\n public Str...
[ "0.6400121", "0.6176508", "0.6125349", "0.6120397", "0.601646", "0.5979335", "0.59627426", "0.59600204", "0.5952731", "0.58915055", "0.58915055", "0.58915055", "0.58915055", "0.582264", "0.5820676", "0.58060515", "0.5794866", "0.578338", "0.57678366", "0.57664514", "0.5757166...
0.0
-1
This method was generated by MyBatis Generator. This method sets the value of the database column homage_genealogy.description
public void setDescription(String description) { this.description = description == null ? null : description.trim(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setDescription(String description) {\n this.description = description;\r\n // changeSupport.firePropertyChange(\"description\", oldDescription, description);\r\n }", "public void setDescription(String newDesc){\n\n //assigns the value of newDesc to the description field\n this.d...
[ "0.6164832", "0.61182463", "0.6094185", "0.6075441", "0.6060184", "0.60358244", "0.6030531", "0.60060716", "0.6005918", "0.5995683", "0.5992335", "0.5976341", "0.59738076", "0.5969648", "0.5963852", "0.5963852", "0.5963852", "0.5963852", "0.5963852", "0.59613264", "0.59613264...
0.0
-1
This method was generated by MyBatis Generator. This method returns the value of the database column homage_genealogy.row_add_time
@ApiModelProperty(value = "创建时间") public Date getRowAddTime() { return rowAddTime; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@ApiModelProperty(value = \"添加时间\")\n\tpublic Date getRowAddTime() {\n\t\treturn rowAddTime;\n\t}", "public Integer getAddTime() {\n return addTime;\n }", "public void setRowAddTime(Date rowAddTime) {\n this.rowAddTime = rowAddTime;\n }", "public Date getAddTime() {\n return addTim...
[ "0.7462721", "0.68625957", "0.658502", "0.64910614", "0.64844674", "0.64751226", "0.6424929", "0.6076546", "0.5967661", "0.5967661", "0.5967661", "0.5664962", "0.5655199", "0.5653515", "0.5514585", "0.5458505", "0.5418853", "0.5415254", "0.53790295", "0.5370225", "0.5350415",...
0.71470696
1
This method was generated by MyBatis Generator. This method sets the value of the database column homage_genealogy.row_add_time
public void setRowAddTime(Date rowAddTime) { this.rowAddTime = rowAddTime; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setRowAddTime(Date rowAddTime) {\n\t\tthis.rowAddTime = rowAddTime;\n\t}", "@ApiModelProperty(value = \"添加时间\")\n\tpublic Date getRowAddTime() {\n\t\treturn rowAddTime;\n\t}", "public void setAddTime(Integer addTime) {\n this.addTime = addTime;\n }", "@ApiModelProperty(value = \"创建时间\")...
[ "0.73589516", "0.6742724", "0.6505264", "0.64095265", "0.6347822", "0.6310253", "0.61668956", "0.5789038", "0.5789038", "0.5789038", "0.56858456", "0.56658053", "0.5620409", "0.5584148", "0.5466335", "0.5436862", "0.53374845", "0.5243341", "0.5208393", "0.51923925", "0.516239...
0.7506577
0
This method was generated by MyBatis Generator. This method returns the value of the database column homage_genealogy.row_update_time
@ApiModelProperty(value = "修改时间") public Date getRowUpdateTime() { return rowUpdateTime; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@ApiModelProperty(value = \"更新时间\")\n\tpublic Date getRowUpdateTime() {\n\t\treturn rowUpdateTime;\n\t}", "int getUpdateTriggerTime();", "public java.sql.Timestamp getUpdateTime () {\r\n\t\treturn updateTime;\r\n\t}", "public int getUpdateTriggerTime() {\n return updateTriggerTime_;\n }", "public S...
[ "0.6913593", "0.66721684", "0.66476136", "0.66370255", "0.6580838", "0.6580838", "0.6522369", "0.6489417", "0.6482856", "0.64297146", "0.64297146", "0.6413298", "0.6409858", "0.6382894", "0.6382894", "0.6378927", "0.63729215", "0.6316624", "0.62894773", "0.624526", "0.624526"...
0.6772085
1
This method was generated by MyBatis Generator. This method sets the value of the database column homage_genealogy.row_update_time
public void setRowUpdateTime(Date rowUpdateTime) { this.rowUpdateTime = rowUpdateTime; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setRowUpdateTime(Date rowUpdateTime) {\n\t\tthis.rowUpdateTime = rowUpdateTime;\n\t}", "public void setUpdate_time(Date update_time) {\n this.update_time = update_time;\n }", "public void setUpdate_time(Date update_time) {\n this.update_time = update_time;\n }", "public void s...
[ "0.6580087", "0.6292855", "0.6292855", "0.62270135", "0.6191134", "0.6191134", "0.6164612", "0.61568743", "0.61498713", "0.60364336", "0.6006499", "0.6006499", "0.5922883", "0.5802973", "0.5767473", "0.5767473", "0.57491696", "0.5748633", "0.5725332", "0.57163894", "0.5689140...
0.66772
0
Function will create index folders from parsed files
public CreateIndex(File selectedFolder) { File selectedFilePeople = new File(selectedFolder + Settings.nameOfPeopleFile); File selectedFileEvents = new File(selectedFolder + Settings.nameOfEventsFile); try { peopleAndEventsCreate(selectedFolder, selectedFilePeople, Settings.nameOfLuceneIndexPeople); p...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createIndex(String dataDirPath){\n\t\tFile[] files = new File(dataDirPath).listFiles();\n\n\t\tfor (File file : files) {\n\t\t\tif(!file.isDirectory()\n\t\t\t\t\t&& !file.isHidden()\n\t\t\t\t\t&& file.exists()\n\t\t\t\t\t){\n\t\t\t\t//add to Map\n\t\t\t\t// m.put(file.getAbsolutePath(), new RankModel(f...
[ "0.71745634", "0.68898505", "0.6836785", "0.6357817", "0.6230799", "0.6058634", "0.6048467", "0.6018934", "0.5983646", "0.5978925", "0.5953576", "0.59445786", "0.5897393", "0.58669704", "0.58454657", "0.5844878", "0.58402437", "0.5795248", "0.5789412", "0.5768013", "0.5738026...
0.63347083
4
Will create index to selected folder. Data will be from selectedFile and name of Index (new folder) will be nameOfLuceneIndex
private static void peopleAndEventsCreate(File selectedFolder, File selectedFile, String nameOfLuceneIndex) throws Exception { StandardAnalyzer analyzer = new StandardAnalyzer(); /* Where to store index */ File directoryOfIndex = new File(selectedFolder + nameOfLuceneIndex); deleteDirectory(directoryOfIndex...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public CreateIndex(File selectedFolder) {\n\n\t\tFile selectedFilePeople = new File(selectedFolder + Settings.nameOfPeopleFile);\n\t\tFile selectedFileEvents = new File(selectedFolder + Settings.nameOfEventsFile);\n\t\t\n\t\ttry {\n\t\t\tpeopleAndEventsCreate(selectedFolder, selectedFilePeople, Settings.nameOfLu...
[ "0.78359765", "0.6728681", "0.6452862", "0.62704676", "0.62294245", "0.61172783", "0.5874578", "0.58612394", "0.5812239", "0.5692981", "0.568663", "0.56395334", "0.5630062", "0.56291986", "0.5619839", "0.5579793", "0.5524402", "0.5511485", "0.54995215", "0.54382646", "0.54342...
0.76960844
1
Adds index data name, birthDate and deathDate to IndexWriter
private static void addDoc(IndexWriter w, String name, String birthDate, String deathDate) { Document doc = new Document(); doc.add(new TextField("name", name, Field.Store.YES)); doc.add(new StringField("birthStartDate", birthDate, Field.Store.YES)); // use a string field for isbn because we don't want it tok...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addIndex() throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"index\",\n null,\n childrenNames());\n }", "public void createIndex() throws IOException {\n\t\tindexWriter.commit();\n\t\ttaxoWriter.commit();\n\n\t\t// categories\n\t\tfor (Article.Facets f...
[ "0.61298937", "0.59758145", "0.5957394", "0.58798164", "0.58374035", "0.58003205", "0.57591957", "0.5742078", "0.5737121", "0.5681831", "0.560849", "0.560139", "0.55855393", "0.5540242", "0.55362725", "0.54931945", "0.54621124", "0.5461731", "0.5459894", "0.5457712", "0.54399...
0.7173744
0
Directory will be deleted (function is recursive)
private static boolean deleteDirectory(File directory) { if(directory.exists()){ File[] files = directory.listFiles(); if(null!=files){ for(int i=0; i<files.length; i++) { if(files[i].isDirectory()) { deleteDirectory(files[i]); }...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void deleteDirectory(String path, boolean recursive) throws IOException;", "void deleteTagDirectory() {\n\n try {\n\n Log.i(\"Deleting Tag Directory\", tag_directory.toString());\n FileUtils.deleteDirectory(tag_directory);\n } catch (IOException e) {\n\n ...
[ "0.767948", "0.75184494", "0.7458778", "0.7323502", "0.73232114", "0.72170746", "0.71292454", "0.7094492", "0.7049103", "0.70349884", "0.7031021", "0.70046926", "0.6986416", "0.6963181", "0.69602275", "0.69545597", "0.6943569", "0.6916882", "0.6912825", "0.68856823", "0.68646...
0.6815208
26
default. do not use public for reflection
public CMLVector3() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "private Default()\n {}", "private MApi() {}", "private ReflectionUtil()\n {\n }", "@Override\n protected void prot() {\n }", "Reproducible newInstance();", "public static void main(String[] args) throws ClassNotFoundException, IllegalAccessException, Inst...
[ "0.65368706", "0.64572865", "0.6321706", "0.627894", "0.6219524", "0.6208774", "0.61821985", "0.6154574", "0.6154574", "0.61459786", "0.602045", "0.60063195", "0.59831417", "0.5978406", "0.597405", "0.5933479", "0.5933479", "0.59250695", "0.59206545", "0.59075636", "0.5874137...
0.0
-1
create new instance in context of parent, overridable by subclasses.
public CMLElement makeElementInContext(Element parent) { return new CMLVector3(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void makeContext();", "protected abstract void construct();", "protected abstract SelfChainingDataObject getNewIndependentInstance();", "@Override\n \t\t\t\tpublic void doNew() {\n \n \t\t\t\t}", "@Override\n public Animal newChild() {\n return new Fox(0);\n }", "public Paren...
[ "0.64948773", "0.6476694", "0.64073724", "0.6398482", "0.62298226", "0.6229513", "0.61102045", "0.6067016", "0.60320705", "0.60104525", "0.59827834", "0.59761363", "0.59754735", "0.5940589", "0.5940589", "0.5910906", "0.59035534", "0.587829", "0.58678246", "0.58678246", "0.58...
0.0
-1
check vector is OK. must have 3 double components
public void finishMakingElement(Element parent) throws RuntimeException { double[] array = this.getXMLContent(); if (array == null) { throw new RuntimeException("vector must not be empty"); } else if (array.length != 3) { throw new RuntimeException("vector must have ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Object isValidColumnVector(List<List<Double>> vector) {\n\t\tInteger nrows = vector.size();\n\n\t\tList<Integer> rowLengths = vector.stream().map(List::size).toList();\n\t\tInteger ncols = rowLengths.stream().mapToInt(Integer::intValue).sum() / rowLengths.size();\n\n\t\treturn (nrows == 3) && (ncols == 1);...
[ "0.73698986", "0.65002704", "0.64836854", "0.6288372", "0.62549114", "0.60916436", "0.6027132", "0.6017956", "0.59666765", "0.5961535", "0.5959933", "0.5929496", "0.59201646", "0.5908814", "0.5844376", "0.5827997", "0.57938397", "0.5786779", "0.5783172", "0.5748479", "0.57449...
0.0
-1
=========================== additional constructors ======================== create from primitive components. this can be used with jumbo.euclid.Vector3.getArray()
public CMLVector3(double[] array) { this.setXYZ3(array); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public\n\tVector3()\n\t{\n\t\tdata = new double[3];\n\t\tdata[0] = 0;\n\t\tdata[1] = 0;\n\t\tdata[2] = 0;\n\t}", "public Vector(float[] axis){ this.axis = axis;}", "public CMLVector3(CMLPoint3 p) {\r\n Vector3 v = new Vector3(p.getEuclidPoint3());\r\n this.setXYZ3(v.getArray());\r\n }", "...
[ "0.6069258", "0.5910019", "0.58891517", "0.58758354", "0.5861211", "0.5840451", "0.58260995", "0.5805349", "0.5795347", "0.5792357", "0.5746348", "0.56740016", "0.56358117", "0.56026983", "0.5593945", "0.5581845", "0.5555415", "0.55306345", "0.5507638", "0.55033255", "0.54966...
0.6105072
0
create from origin to CMLPoint3. vector is from origin to point owning document is taken from CMLPoint3
public CMLVector3(CMLPoint3 p) { Vector3 v = new Vector3(p.getEuclidPoint3()); this.setXYZ3(v.getArray()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "DVector3C getPosition();", "protected abstract BaseVector3d createBaseVector3d(double x, double y, double z);", "public CMLVector3() {\r\n }", "@Override\r\n\t\tpublic void translate(Point3D vec) {\r\n\t\t\t// TODO Auto-generated method stub \r\n\t\t\tMyCoords mc= new MyCoords();\r\n\t\t\tPoint3D p=new Po...
[ "0.66551584", "0.65203714", "0.6447537", "0.639135", "0.6306199", "0.6248825", "0.6248198", "0.6217993", "0.6209205", "0.61923736", "0.61747295", "0.61492246", "0.6140567", "0.612573", "0.6123914", "0.60971165", "0.6056647", "0.60490817", "0.60383016", "0.602629", "0.6020597"...
0.6788679
0
assumes vector3 != null get euclid primitive.
public Vector3 getEuclidVector3() { // does CMLVector contain array elements? return new Vector3(this.getXMLContent()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "IVec3 div(IVec3 v);", "public CMLVector3 subtract(CMLVector3 v3) {\r\n Vector3 veucl3 = this.getEuclidVector3();\r\n Vector3 v = (veucl3 == null) ? null : veucl3.subtract(v3\r\n .getEuclidVector3());\r\n return (v == null) ? null : CMLVector3.createCMLVector3(v);\r\n }", ...
[ "0.6242363", "0.61042416", "0.59898925", "0.5980335", "0.59211695", "0.5911086", "0.5846447", "0.58198255", "0.58026856", "0.5748605", "0.57248706", "0.5698544", "0.56419945", "0.56055456", "0.55964464", "0.55322546", "0.5475095", "0.5464439", "0.5452762", "0.54522043", "0.54...
0.7316962
0
====================== subsidiary accessors ===================== sets components.
public void setXYZ3(double[] xyz3) throws RuntimeException { if (xyz3.length != 3) { throw new RuntimeException("xyz3 must be of length 3; found: " + xyz3.length); } this.setXMLContent(xyz3); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void setComponent(Component newComponent) {\n\tcomponent = newComponent;\n}", "private void initComponents() {\n\t\t\n\t}", "private void initComponents() {\n\t\t\n\t}", "public void setUIComponent(Component c) {}", "private void setComponents() {\n datumPanel.setLayout(new GridLayout(9,2)...
[ "0.6649312", "0.65885013", "0.65885013", "0.6537292", "0.64762074", "0.6394325", "0.6325198", "0.630271", "0.62200254", "0.6207781", "0.6154597", "0.6080854", "0.6080854", "0.60780996", "0.6064937", "0.60555863", "0.60394806", "0.6038915", "0.6034718", "0.59945935", "0.598887...
0.0
-1
====================== functionality ===================== are two vectors equal. uses EPS to test all differences. vectors are NOT normalized
public boolean isEqualTo(CMLVector3 v) { return isEqualTo(v, EPS); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n\tpublic void newVectorTest() {\r\n\t\tfor (int x = -10; x<10; x++) {\r\n\t\t\tfor (int y = -10; y<10; y++) {\r\n\t\t\t\tVector v = new Vector(x,y);\r\n\t\t\t\tVector v2 = new Vector(v);\r\n\t\t\t\tv2.add(v);\r\n\t\t\t\tv2 = v2.add(v);\r\n\t\t\t\tv2 = v2.add(v2);\r\n\t\t\t\tassertTrue(v.equals(new Vector(...
[ "0.6916876", "0.67574453", "0.6735053", "0.665552", "0.6652667", "0.6613491", "0.65303576", "0.6522241", "0.6509495", "0.65077245", "0.65070415", "0.647339", "0.64072436", "0.61842704", "0.61735266", "0.61646986", "0.61328524", "0.61132187", "0.60962176", "0.6093609", "0.6085...
0.55614
50
are two vectors equal. vectors are NOT normalized
public boolean isEqualTo(CMLVector3 v, double eps) { boolean ok = true; for (int i = 0; i < 3; i++) { if (Math.abs(this.getXYZ3()[i] - v.getXYZ3()[i]) > eps) { ok = false; break; } } return ok; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static boolean Match(Vector a, Vector b){\n return a.axis.length == b.axis.length;\n }", "public static boolean equal(VectorIntf x, VectorIntf y) {\r\n if (x==null && y==null) \r\n\t\t\tthrow new IllegalArgumentException(\"both args null\");\r\n if (x==null || y==null) return false;\r\n ...
[ "0.7454537", "0.69481117", "0.6795198", "0.6784128", "0.6748193", "0.6603182", "0.65347356", "0.6438219", "0.6428559", "0.636238", "0.6272405", "0.62549067", "0.6152348", "0.61319023", "0.6096431", "0.60903215", "0.6053904", "0.60482347", "0.5996878", "0.59607816", "0.593586"...
0.0
-1
is one vector longer than another.
public boolean longerThan(CMLVector3 v) { Vector3 veucl3 = this.getEuclidVector3(); return (veucl3 == null) ? false : veucl3.longerThan(v .getEuclidVector3()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static boolean Match(Vector a, Vector b){\n return a.axis.length == b.axis.length;\n }", "private static void _assertSizeAlignment(boolean[] one, boolean[] other){\r\n assert one.length==other.length:\r\n String.format(\"Incompatible Arrays %s / %s\",one.length,other.length);\...
[ "0.6667502", "0.5950158", "0.59482574", "0.5890991", "0.5881958", "0.5771925", "0.57696646", "0.5755733", "0.5689136", "0.56544614", "0.5642553", "0.56239146", "0.56109977", "0.5601266", "0.5556539", "0.55435795", "0.5528109", "0.5515691", "0.5504507", "0.5503813", "0.5503738...
0.6050998
1
scalar multiplication. create new vector vector = thisf does not alter this
public CMLVector3 multiplyBy(double f) { Vector3 veucl3 = this.getEuclidVector3(); Vector3 v = (veucl3 == null) ? null : veucl3.multiplyBy(f); return (v == null) ? null : CMLVector3.createCMLVector3(v); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Vector<T> multiply(T aScalar);", "public Vector2f mul(float scalar) {\n return mul(new Vector2f(scalar, scalar));\n }", "@Override\n\tpublic IVector scalarMultiply(double number){\n\t\tfor(int i=this.getDimension()-1; i>=0; i--){\n\t\t\tthis.set(i, this.get(i)*number);\n\t\t}\n\t\treturn this;...
[ "0.75726646", "0.73063296", "0.7182", "0.71262884", "0.6968036", "0.69629586", "0.69518423", "0.69344157", "0.6933734", "0.6866215", "0.6843595", "0.6806559", "0.6794836", "0.6750663", "0.67417955", "0.67116475", "0.66738063", "0.6665698", "0.66483027", "0.66132194", "0.65427...
0.6799155
12
vector addition. create new vector result = this + v3 does not alter this
public CMLVector3 plus(CMLVector3 v3) { Vector3 veucl3 = this.getEuclidVector3(); Vector3 v = (veucl3 == null) ? null : veucl3 .plus(v3.getEuclidVector3()); return (v == null) ? null : CMLVector3.createCMLVector3(v); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Vector add(Vector v){\n return new Vector(this.getX()+v.getX(), this.getY()+v.getY(), this.getZ()+v.getZ());\n }", "public Vector3D addVector(Vector3D u, Vector3D v) {\n\t\treturn new Vector3D(this.x = u.x + v.x, this.y = u.y + v.y, \n\t\t\t\tthis.z = u.z + v.z);\n\t}", "final public Vector3 a...
[ "0.7583598", "0.73393494", "0.7334711", "0.7327258", "0.72396576", "0.72044635", "0.72038937", "0.7036542", "0.7015454", "0.69755", "0.6970638", "0.6945012", "0.6925659", "0.69007975", "0.6862667", "0.6835124", "0.6821464", "0.6768554", "0.6757709", "0.6709495", "0.6700475", ...
0.7184111
7
vector subtraction. create new vector result = this v3 does not alter this
public CMLVector3 subtract(CMLVector3 v3) { Vector3 veucl3 = this.getEuclidVector3(); Vector3 v = (veucl3 == null) ? null : veucl3.subtract(v3 .getEuclidVector3()); return (v == null) ? null : CMLVector3.createCMLVector3(v); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void subtract() {\n assertEquals(\"Wrong vector subtract\", new Vector(1, 1, 1),\n new Vector(new Point3D(2, 3, 4)).subtract(new Vector(new Point3D(1, 2, 3))));\n\n }", "public Vector subtract(Vector other){\n\t\treturn new Vector(x-other.x, y-other.y, z-other.z);\n\t}", "p...
[ "0.7447024", "0.72921526", "0.72484255", "0.72184306", "0.71950585", "0.7113243", "0.70942247", "0.70869637", "0.7045175", "0.7032136", "0.70053166", "0.6994181", "0.6975175", "0.6954497", "0.6943465", "0.68740445", "0.68726224", "0.6858603", "0.68482554", "0.6833746", "0.681...
0.653353
31
is vector of zero length. uses Real.isEqual
public boolean isZero() { Vector3 veucl3 = this.getEuclidVector3(); return (veucl3 == null) ? false : veucl3.isZero(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic boolean isEmpty() {\n\t\tif(this.vector.isEmpty()) return true;\n\t\treturn false;\n\t}", "public boolean isEmpty() {\n\t\treturn vector.isEmpty();\n\t}", "public boolean isVector() {\n\t\treturn numeros.length == 1 || numeros[0].length == 1;\n\t}", "public boolean isVector() {\n r...
[ "0.68989784", "0.689401", "0.6891685", "0.6726034", "0.6709521", "0.6582406", "0.64789057", "0.6478212", "0.645867", "0.64513814", "0.6435577", "0.6275574", "0.6232172", "0.6228518", "0.6200976", "0.6200819", "0.6152301", "0.6123173", "0.6032278", "0.60125387", "0.5985537", ...
0.6588004
5
create transformed vector. does not alter this.
public CMLVector3 transform(CMLTransform3 t) { Vector3 veucl3 = this.getEuclidVector3(); Vector3 v = (veucl3 == null) ? null : veucl3.transform(t .getEuclidTransform3()); return (v == null) ? null : CMLVector3.createCMLVector3(v); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Vector transform(Vector v) {\n\t\treturn new Vector(a * v.x + c, b * v.y + d);\n\t}", "public void transform(Vector3D V) {\r\n\t\tVector3D rv = new Vector3D();\r\n\t\trv.x = V.x * M11 + V.y * M21 + V.z * M31 + V.w * M41;\r\n\t\trv.y = V.x * M12 + V.y * M22 + V.z * M32 + V.w * M42;\r\n\t\trv.z = V.x * M13 ...
[ "0.732893", "0.6365584", "0.63511264", "0.632268", "0.6315958", "0.629888", "0.62296677", "0.61820364", "0.61719894", "0.61233604", "0.61232734", "0.60122275", "0.599411", "0.5982521", "0.5963954", "0.59042174", "0.589697", "0.58870494", "0.5877218", "0.5871523", "0.58703876"...
0.0
-1
normalize vector. alters this this = this.normalize() if zero vector throws CMLRuntim
public CMLVector3 normalize() throws RuntimeException { if (this.isZero()) { throw new RuntimeException("Cannot normalize zero vector"); } Vector3 veucl3 = this.getEuclidVector3(); if (veucl3 != null) { veucl3.normalize(); setXMLContent(veucl3.g...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Vector normalize ( );", "public void normalize() {\n\t\tdouble norm = norm();\n\t\tif (DoubleComparison.eq(norm, 0)) {\n\t\t\tthrow new RuntimeException(\"Failed to normalize: length is zero\");\n\t\t}\n\t\tthis.x = this.x / norm;\n\t\tthis.y = this.y / norm;\n\t\tthis.z = this.z / norm;\n\t}", "public ...
[ "0.8542028", "0.7891413", "0.77567893", "0.7637737", "0.7592709", "0.75392884", "0.7533487", "0.7525765", "0.75156564", "0.7463884", "0.7436708", "0.74039584", "0.73300815", "0.73295116", "0.7325179", "0.7295534", "0.7294321", "0.72483265", "0.72258717", "0.72099876", "0.7191...
0.71334803
21
create dot product. result = this . v3 does not alter this.
public double dot(CMLVector3 v3) { Vector3 veucl3 = this.getEuclidVector3(); return (veucl3 == null) ? Double.NaN : veucl3 .dot(v3.getEuclidVector3()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double dot(Vec vthat);", "float dot(IVec3 v);", "public double dotProduct(Coordinates vectorA, Coordinates vectorB);", "public T dotProduct(Vector<T> aVector) throws VectorSizeException;", "private double calcDotProduct(Point2D.Double a, Point2D.Double b)\n\t{\t\n\t\treturn (a.getX() * b.getX()) + (...
[ "0.6535538", "0.6319199", "0.6173752", "0.61518973", "0.61319864", "0.60820645", "0.6030064", "0.59295547", "0.58816636", "0.58777976", "0.58671254", "0.5805784", "0.5770423", "0.57009035", "0.569002", "0.56060576", "0.5568984", "0.55357015", "0.55325425", "0.552987", "0.5521...
0.0
-1
calculate unsigned angle between vectors result = angle between this and v2 uses acos(this.dot.v2) so angle is unsigned does not alter this.
public Angle getAngleMadeWith(CMLVector3 v2) { Vector3 veucl3 = this.getEuclidVector3(); return (veucl3 == null) ? null : veucl3.getAngleMadeWith(v2 .getEuclidVector3()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static double angle(ThreeVector v1,ThreeVector v2) {\r\n\t\tdouble a = (scalarProduct(v1,v2))/(v1.magnitude()*v2.magnitude());\r\n\t\tdouble b = Math.acos(a);\r\n\t\treturn Math.toDegrees(b);\r\n\t}", "public double angle(Vector2D v)\n\t{\n\t\treturn Math.toDegrees(Math.acos(this.dot(v)/v.length()/this.le...
[ "0.7717125", "0.74849826", "0.74318504", "0.74234253", "0.73790705", "0.7236832", "0.70211625", "0.6971012", "0.68841827", "0.6803433", "0.67893505", "0.677231", "0.6687467", "0.66754425", "0.6623949", "0.6608462", "0.65917104", "0.65770596", "0.656539", "0.65363604", "0.6516...
0.6751425
12
calculate scalar triple product between vectors. result = this.(v2 x v3) does not alter this.
public double getScalarTripleProduct(CMLVector3 v2, CMLVector3 v3) { Vector3 veucl3 = this.getEuclidVector3(); return (veucl3 == null) ? null : veucl3.getScalarTripleProduct(v2 .getEuclidVector3(), v3.getEuclidVector3()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static double scalarProduct(ThreeVector v1,ThreeVector v2) {\r\n\t\treturn v1.x * v2.x + v1.y * v2.y + v1.z * v2.z;\r\n\t}", "public double scalarProductNS(ThreeVector v1) {\r\n\t\treturn scalarProduct(v1, this);\r\n\t}", "public static float ScalarTripleProduct(final Vector U, final Vector V, final Vec...
[ "0.76647055", "0.74597687", "0.7004041", "0.69928485", "0.6984135", "0.69354963", "0.6890205", "0.6768054", "0.67022663", "0.66363454", "0.6625056", "0.66220677", "0.6587868", "0.658721", "0.6556791", "0.64805585", "0.64454496", "0.6433596", "0.6399388", "0.6397406", "0.63800...
0.71740854
2
projection of this onto vector. does not alter this. result = vector.norm() (this.norm() dot vector.norm())
public CMLVector3 projectOnto(CMLVector3 v) { Vector3 veucl3 = this.getEuclidVector3(); Vector3 vv = null; try { vv = (veucl3 == null) ? null : veucl3.projectOnto(v .getEuclidVector3()); } catch (EuclidRuntimeException je) { } retur...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Vector projection(Vector b){\n Vector result = new Vector();\n result.norm= (this.x*b.x+this.y*b.y) / b.getNorm();\n result.x = b.x/b.getNorm();\n result.y = b.y/b.getNorm();\n return result;\n }", "public Vector normalize ( );", "public Vec...
[ "0.6987292", "0.69233716", "0.6739773", "0.6706753", "0.64485204", "0.64418375", "0.6406856", "0.6361168", "0.63268006", "0.63246447", "0.6319656", "0.63144773", "0.62793523", "0.62787974", "0.6277609", "0.62775403", "0.6261638", "0.6257721", "0.6256865", "0.6240993", "0.6178...
0.0
-1
are two vectors colinear. also returns true if one or more vectors are zero
public boolean isColinearVector(CMLVector3 v) { Vector3 veucl3 = this.getEuclidVector3(); return (veucl3 == null) ? false : veucl3.isColinearVector(v .getEuclidVector3()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static boolean Match(Vector a, Vector b){\n return a.axis.length == b.axis.length;\n }", "Boolean isCollinearTo(IVec3 v);", "protected static boolean areAllCollinear(List<Point2D.Float> points) {\n\n\t\tif (points.size() < 2) {\n\t\t\treturn true;\n\t\t}\n\n\t\tfinal Point2D.Float a = points.g...
[ "0.6882369", "0.65536845", "0.640403", "0.63979226", "0.6343956", "0.618722", "0.61700624", "0.61324626", "0.6087715", "0.60606885", "0.60533506", "0.6050936", "0.6049561", "0.60406744", "0.59688896", "0.593371", "0.5910599", "0.586159", "0.58428735", "0.582674", "0.57988846"...
0.6239078
5
get any vector not colinear with this. returns any axis which is not colinear with this
public CMLVector3 getNonColinearVector() { Vector3 v = this.getEuclidVector3().getNonColinearVector(); return (v == null) ? null : CMLVector3.createCMLVector3(v); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected double[] negate(ColumnVector vector) {\r\n double[] v = vector.getVector();\r\n for(int i = 0; i < v.length; i++) {\r\n v[i] *= -1.0;\r\n }\r\n return v;\r\n }", "Boolean isCollinearTo(IVec3 v);", "List<CalibratedAxis> getAxesNonPlanar();", "public boolean ...
[ "0.5857541", "0.56982875", "0.56236184", "0.5597535", "0.55086297", "0.5418403", "0.5393838", "0.5360817", "0.53247684", "0.52639455", "0.52226233", "0.5181985", "0.514104", "0.513996", "0.51373017", "0.5120021", "0.51156455", "0.5078652", "0.5077305", "0.50453496", "0.504375...
0.6322538
0
get any vector perpendicular to this. useful for creating cartesian axes containing this
public CMLVector3 getPerpendicularVector() { Vector3 v = this.getEuclidVector3().getPerpendicularVector(); return (v == null) ? null : CMLVector3.createCMLVector3(v); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void perpendicular() {\r\n\t\tset(y, x * -1);\r\n\t}", "public static void getPerpendicular(Vector3 result, Vector3 v)\n\t{\n\t\tif (Math.abs(v.x) < Math.abs(v.y)) {\n\t\t\tresult.set(0, v.z, -v.y);\n\t\t} else {\n\t\t\tresult.set(-v.z, 0, v.x);\n\t\t}\n\t}", "public Line perpendicularLine(){\n\t\tLine ...
[ "0.76303303", "0.71373767", "0.7022348", "0.6598414", "0.64812696", "0.6480186", "0.63711095", "0.6351405", "0.62087", "0.62082624", "0.61407226", "0.60986906", "0.5993508", "0.59773713", "0.5903877", "0.587693", "0.58589923", "0.58555704", "0.5845449", "0.5822748", "0.582123...
0.81724614
0
/ access modifiers changed from: private / renamed from: b
public static final boolean m18411b(ConnectivityManager connectivityManager) { NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo(); return activeNetworkInfo != null && activeNetworkInfo.isConnected(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void func_104112_b() {\n \n }", "@Override\n public void b() {\n }", "public np a()\r\n/* 33: */ {\r\n/* 34:49 */ return this.b;\r\n/* 35: */ }", "@Override\n\tpublic void b() {\n\n\t}", "public void b() {\r\n }", "protected b(int mb) {\n/* 87 */ t...
[ "0.7224839", "0.69518054", "0.68448514", "0.68045336", "0.6729634", "0.66892576", "0.6667949", "0.6666382", "0.66440094", "0.6614186", "0.66016066", "0.66016066", "0.6589728", "0.6487956", "0.6466085", "0.6466085", "0.645071", "0.6444203", "0.6424545", "0.64207315", "0.641609...
0.0
-1
/ String filePath = TestContext.getProperty("dataDriven_file_path" + "/" + excelFileName); InputStream in = ExcelUtils.class.getClassLoader().getResourceAsStream(filePath);
public static void setExcelFile(String excelFileName) throws Exception { try { InputStream excelFile = new FileInputStream(excelFileName); log.debug("excel file path: " + excelFileName); excelWBook = new XSSFWorkbook(excelFile); log.info("<font color='green'><b>成功加载测试文件:[ " + excelFileName + " ]<...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public FileInputStream getFileInputStream(){\n\t\t//String filePath=System.getProperty((\"user.dir\")+\"\\\\src\\\\test\\\\java\\\\data\\\\userData.xlsx\");\n\t\tString filePath=System.getProperty(\"user.dir\")+\"/src/test/java/data/userData.xlsx\";\n\t\t//String filePath=System.getProperty((\"user.dir\")+\"src/te...
[ "0.66941804", "0.6563357", "0.6285007", "0.6059978", "0.5972175", "0.5946363", "0.5907842", "0.5874916", "0.58655816", "0.5860011", "0.58536446", "0.58469784", "0.58164847", "0.580022", "0.57773626", "0.57206494", "0.57027245", "0.5702688", "0.5687878", "0.568654", "0.5683235...
0.5337766
53
Sets up the processors for the test using all constructor combinations.
@Before public void setUp() { processor = new ParseBigDecimal(); processor2 = new ParseBigDecimal(ENGLISH_SYMBOLS); processor3 = new ParseBigDecimal(GERMAN_SYMBOLS); processorChain = new ParseBigDecimal(new IdentityTransform()); processorChain2 = new ParseBigDecimal(ENGLISH_SYMBOLS, new IdentityTransform());...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void runAllTheTests() {\n\t\ttestConstructorAndGetters();\n\t}", "public static void runAllTheTests() {\n\t\ttestConstructorAndGetters();\n\t}", "@Before\n\tpublic void setup() {\n\t\tinit(rule.getProcessEngine());\n\t}", "public SwerveAutoTest() {\n // Initialize base classes.\n ...
[ "0.64938885", "0.64938885", "0.63366354", "0.6172497", "0.61057067", "0.5997797", "0.5991595", "0.5920481", "0.5900941", "0.5877489", "0.5852591", "0.58245677", "0.5801583", "0.5795642", "0.5773811", "0.5738185", "0.5730556", "0.5721825", "0.56948125", "0.5691834", "0.568534"...
0.65092885
0
Test unchained/chained execution with a valid positive input.
@Test public void testValidInput() { String normalInput = "1357.459"; String germanInput = "1357,459"; BigDecimal expectedOutput = new BigDecimal(normalInput); // normal input for( final CellProcessor p : Arrays.asList(processor, processor2, processorChain, processorChain2) ) { assertExecution(p, no...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void isInputDataValidTestWithBadInput() {\n boolean invoke = Deencapsulation.invoke(modificationFibonacci, \"isInputDataValid\", \"a\");\n assertFalse(invoke);\n }", "public void testImproperUseOfTheCircuit() {\n \t fail(\"testImproperUseOfTheCircuit\");\n }", "public boolean validat...
[ "0.6210182", "0.6087562", "0.6049291", "0.59299225", "0.590056", "0.5883779", "0.58764815", "0.5873642", "0.5853951", "0.5811321", "0.57586956", "0.5748076", "0.57454354", "0.57234234", "0.571263", "0.569866", "0.565999", "0.56427467", "0.5640801", "0.56265026", "0.5621732", ...
0.0
-1
Test unchained/chained execution with a valid negative input.
@Test public void testValidNegativeInput() { String normalInput = "-1357.459"; String germanInput = "-1357,459"; BigDecimal expectedOutput = new BigDecimal(normalInput); // normal input for( final CellProcessor p : Arrays.asList(processor, processor2, processorChain, processorChain2) ) { assertExecu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void validateStringNegativeTest() {\n\t\tPercentageInputValidator percentInputValidator = new PercentageInputValidator();\n\t\tString name = \"codeCoverageThreshold\";\n\t\tString value = \"abc\";\n\t\tString referenceResult = \"valid argument\";\n\t\tString result = referenceResult;\n\t\ttry {\n\t\t\tperce...
[ "0.6307875", "0.615532", "0.61448264", "0.6115778", "0.6099837", "0.6092391", "0.6083053", "0.6045328", "0.6008856", "0.5993588", "0.5977525", "0.5944467", "0.59318435", "0.58990526", "0.5870807", "0.58095974", "0.57362324", "0.57291925", "0.5725182", "0.5667584", "0.56404215...
0.5928614
13
Tests that grouping separators are handled correctly for positive numbers.
@Test public void testValidInputWithGroupingSeparator() { String normalInput = "1,357.459"; String germanInput = "1.357,459"; BigDecimal expectedOutput = new BigDecimal("1357.459"); // 'no symbols' processors should choke on grouping separators for( CellProcessor p : Arrays.asList(processor, processorChai...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testValidNegativeInputWithGroupingSeparator() {\n\t\tString normalInput = \"-1,357.459\";\n\t\tString germanInput = \"-1.357,459\";\n\t\tBigDecimal expectedOutput = new BigDecimal(\"-1357.459\");\n\t\t\n\t\t// 'no symbols' processors should choke on grouping separators\n\t\tfor( CellProcessor ...
[ "0.68831277", "0.61776465", "0.5933609", "0.57527226", "0.57197726", "0.56095326", "0.5541078", "0.55341756", "0.5485538", "0.54055446", "0.5404588", "0.53864646", "0.5368316", "0.53531444", "0.53414613", "0.5340443", "0.5338425", "0.53383946", "0.5336767", "0.53367037", "0.5...
0.6462454
1
Tests that grouping separators are handled correctly for negative numbers.
@Test public void testValidNegativeInputWithGroupingSeparator() { String normalInput = "-1,357.459"; String germanInput = "-1.357,459"; BigDecimal expectedOutput = new BigDecimal("-1357.459"); // 'no symbols' processors should choke on grouping separators for( CellProcessor p : Arrays.asList(processor, pr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testValidInputWithGroupingSeparator() {\n\t\tString normalInput = \"1,357.459\";\n\t\tString germanInput = \"1.357,459\";\n\t\tBigDecimal expectedOutput = new BigDecimal(\"1357.459\");\n\t\t\n\t\t// 'no symbols' processors should choke on grouping separators\n\t\tfor( CellProcessor p : Arrays....
[ "0.62648416", "0.6065441", "0.58628833", "0.5648904", "0.56177735", "0.55767286", "0.5557724", "0.5526522", "0.5483808", "0.54079485", "0.5360439", "0.52928907", "0.52892655", "0.5160777", "0.5155214", "0.5146242", "0.51447475", "0.5098361", "0.50619084", "0.5053646", "0.5042...
0.72301304
0
Tests execution with a nonString input (should throw an exception).
@Test(expected = SuperCsvCellProcessorException.class) public void testWithNonString() { processor.execute(1234, ANONYMOUS_CSVCONTEXT); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testInvalidInput(){\n\t\tString input = \"bye\";\n\t\tString actual = operation.processOperation(input);\n\t\tString expected = \"bye bye could not be performed\";\n\t\tassertEquals(expected,actual);\n\t}", "@Test(expected = InvalidCommandException.class)\n public void testInvalidCommand() {\n in...
[ "0.7665368", "0.7052803", "0.69780934", "0.6854847", "0.6606927", "0.659819", "0.6593455", "0.6509934", "0.6455343", "0.64535797", "0.64535797", "0.64023906", "0.64023906", "0.6382775", "0.637566", "0.63031584", "0.62868816", "0.62854046", "0.6280189", "0.6226354", "0.6196900...
0.68954104
3
Tests execution with a null input (should throw an Exception).
@Test(expected = SuperCsvCellProcessorException.class) public void testWithNull() { processor.execute(null, ANONYMOUS_CSVCONTEXT); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n public void testExecute_inputNull() {\r\n \r\n assertThat((Object)processor.execute(null, ANONYMOUS_CSVCONTEXT)).isNull();\r\n \r\n }", "@Test\n public void noneNullArgumentIsNullTest() throws GeneralException {\n for (String noneNullArgument : SAMLCorrelationRule.N...
[ "0.7908146", "0.7357814", "0.7194215", "0.66759974", "0.667414", "0.66687614", "0.66418034", "0.6592925", "0.65493053", "0.65493053", "0.6507607", "0.6498705", "0.64757246", "0.6472354", "0.6468578", "0.6466129", "0.64519453", "0.6449579", "0.643634", "0.6427573", "0.64261997...
0.6850842
3
Tests execution with an emptyString input (should throw an Exception).
@Test(expected = SuperCsvCellProcessorException.class) public void testWithEmptyString() { processor.execute("", ANONYMOUS_CSVCONTEXT); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testCheckString_EmptyArg() {\n try {\n Util.checkString(\" \", \"Test\");\n\n fail(\"IllegalArgumentException expected.\");\n } catch (IllegalArgumentException iae) {\n //good\n }\n }", "public void testCheckString_EmptyArg() {\n try {\n...
[ "0.7719299", "0.7719299", "0.7441977", "0.7428113", "0.7350597", "0.7258324", "0.7063337", "0.7041052", "0.70143765", "0.70110834", "0.6882934", "0.68120414", "0.68037176", "0.67485416", "0.67163944", "0.6605642", "0.65747607", "0.6539211", "0.65163875", "0.64849687", "0.6454...
0.6938853
10
Tests construction with null symbols (should throw an Exception).
@Test(expected = NullPointerException.class) public void testWithNullSymbols() { new ParseBigDecimal((DecimalFormatSymbols) null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void testConstructorNPE2() {\r\n try {\r\n new SimpleCreditCardValidator(null, new ValidationLUHN());\r\n fail(\"an NPE is expected\");\r\n }\r\n catch (NullPointerException npe) {\r\n //pass\r\n }\r\n }", "@Test(expected = IllegalArgumentExc...
[ "0.73974055", "0.7350274", "0.73433936", "0.73203915", "0.71499896", "0.7145705", "0.7066402", "0.7023537", "0.69897723", "0.69874406", "0.68863565", "0.688448", "0.68659806", "0.68583125", "0.6849802", "0.68330115", "0.68105626", "0.67867166", "0.6774794", "0.67704034", "0.6...
0.63306236
76
TODO Autogenerated method stub
public static void main(String[] args) { Scanner sc = new Scanner(System.in); int T = sc.nextInt(); for(int test_case = 0; test_case < T; test_case++) { int number = sc.nextInt(); int[] stones = new int[number]; int location = 0; int max_leap = 0; for(int i = 0; i < number; i++){ s...
{ "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.66713095", "0.6567948", "0.652319", "0.648097", "0.64770466", "0.64586824", "0.64132667", "0.6376419", "0.62759", "0.62545097", "0.62371093", "0.62237984", "0.6201738", "0.619477", "0.619477", "0.61924416", "0.61872935", "0.6173417", "0.613289", "0.6127952", "0.6080854", ...
0.0
-1
The catch block clears the isInterrupted flog (sets is to false)
@Override public void run() { try { sleep(duration); } catch(InterruptedException e) { System.out.println(getName() + " was interrupted. isInterrupted(): " + isInterrupted()); return; } System.out.println(getName() + " has awakened"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isInterrupted();", "public void interrupt() {\n\t\tinterrupted = true;\n\t}", "synchronized void setInterrupted() {\n stopped = true;\n inputGiven = true;\n notifyAll();\n }", "protected void interrupted() {\r\n\t\t \tP.println(Tt.getClassName(this) + \" interrupted\...
[ "0.7315582", "0.7144833", "0.7087363", "0.699821", "0.68990797", "0.68970984", "0.6892056", "0.6854422", "0.68220025", "0.6785422", "0.6785422", "0.6749157", "0.6749157", "0.6749157", "0.6749157", "0.6749157", "0.6749157", "0.6720039", "0.6670517", "0.6653159", "0.6653159", ...
0.0
-1
Gets the list of all the companies from the database.
@Override public List<Company> getAllCompanies() { String methodName = "getAllCompanies()"; log.info(className+","+methodName); return companyRepository.findAll(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Company> getCompanys() {\n\t\treturn companyDao.findAll();\n//\t\treturn companies;\n\t}", "public List<Company> companies() {\n StandardServiceRegistry registry = new StandardServiceRegistryBuilder().configure().build();\n SessionFactory sessionFactory = null;\n try {\n\n ...
[ "0.8660769", "0.8560023", "0.8373527", "0.83205056", "0.83106583", "0.8297648", "0.8203071", "0.81294525", "0.81280315", "0.81017536", "0.80638677", "0.80466264", "0.79737675", "0.79665995", "0.7894897", "0.7874001", "0.7868653", "0.7850497", "0.7834262", "0.78295434", "0.771...
0.82356334
6
Gets the company information from repository interface based on auto generated Id
@Override public Company getAllCompaniesById(Integer id) { String methodName = "getAllCompaniesById(Integer id)"; log.info(className+","+methodName); log.debug("id value is::"+id); return companyRepository.findCompanyById(id.longValue()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Company getCompany(int id);", "public Company findCompany(long id);", "Optional<Company> getCompany(long id);", "public abstract Company get(int id);", "public long getCompanyId();", "public long getCompanyId();", "public long getCompanyId();", "public long getCompanyId();", "public long getCompany...
[ "0.8216618", "0.78359145", "0.75423867", "0.7517638", "0.75065875", "0.75065875", "0.75065875", "0.75065875", "0.75065875", "0.7339596", "0.7332592", "0.7261712", "0.7250055", "0.7250055", "0.724992", "0.724992", "0.724992", "0.724992", "0.7206133", "0.7206133", "0.7184923", ...
0.6975278
32
Gets the company information from repository interface based on company code
@Override public Company getAllCompaniesByCode(Integer code) { String methodName = "getAllCompaniesById(Integer id)"; log.info(className+","+methodName); log.debug("company code is::"+code); return companyRepository.findCompanyByCode(code.longValue()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getCompany();", "public static final String getCompany() { return company; }", "public String getCompany() {\n return (String) get(\"company\");\n }", "public Company getCompany(String companyShortName);", "Company getCompany(int id);", "public String getCompany() {\n return compa...
[ "0.76209635", "0.736015", "0.7308921", "0.72857565", "0.7210415", "0.71510816", "0.71510816", "0.71296394", "0.71296394", "0.71254474", "0.71222323", "0.71045697", "0.71045697", "0.7006671", "0.6993768", "0.6912842", "0.6912842", "0.6888764", "0.68844783", "0.68828946", "0.68...
0.69023955
17
Primarily for unit tests only
public void setHttpDriver(HttpDriver httpDriver) { this.httpDriver = httpDriver; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "private void test() {\n\n\t}", "private ProtomakEngineTestHelper() {\r\n\t}", "private JacobUtils() {}", "@Override\n @Before\n public void setUp() throws IOException {\n }", "private Mocks() { }", "private Util() { }...
[ "0.6516577", "0.6477741", "0.6464324", "0.6430179", "0.63670194", "0.6310284", "0.62575495", "0.6246896", "0.6201035", "0.61860836", "0.61374664", "0.60905915", "0.60905915", "0.60905915", "0.60905915", "0.60695654", "0.605083", "0.6023476", "0.6018556", "0.5980934", "0.59809...
0.0
-1
Exchanges the ZTS ID token with Google STD Exchange Token which then we'll use to get our access token as described in the GCP docs:
GcpExchangeTokenResponse getExchangeToken(DomainDetails domainDetails, final String idToken, ExternalCredentialsRequest externalCredentialsRequest) throws IOException { Map<String, String> attributes = externalCredentialsRequest.getAttributes(); final String gcpTokenScope = getRequestAttrib...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String getToken() {\n String keyFilePath = System.getenv(\"APE_API_KEY\");\n if (Strings.isNullOrEmpty(keyFilePath)) {\n File globalKeyFile = GlobalConfiguration.getInstance().getHostOptions().\n getServiceAccountJsonKeyFiles().get(GLOBAL_APE_API_KEY);\n i...
[ "0.58794874", "0.5821667", "0.5781953", "0.56768256", "0.56768256", "0.5542199", "0.5528275", "0.53846776", "0.5348348", "0.5271173", "0.520914", "0.5145781", "0.5133855", "0.51293325", "0.5098626", "0.508026", "0.50758296", "0.5047527", "0.50324255", "0.49978423", "0.4981204...
0.62392414
0
First, we're going to get our exchange token based on our ZTS ID token and then request an access token for the given scope as described in the GCP docs:
@Override public ExternalCredentialsResponse getCredentials(Principal principal, DomainDetails domainDetails, String idToken, ExternalCredentialsRequest externalCredentialsRequest) throws ResourceException { // first make sure that our required components are available and configured i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static String getAccessToken() throws IOException {\n\t\t \t\n\t\t GoogleCredential googleCredential = GoogleCredential\n\t .fromStream(new FileInputStream(path))\n\t .createScoped(Arrays.asList(SCOPES));\n\t\t \tgoogleCredential.refreshToken();\n\t\t \treturn googleCredential.getAccessTo...
[ "0.62671316", "0.60957026", "0.59962845", "0.5994731", "0.59247905", "0.59247905", "0.58724284", "0.58611965", "0.5832384", "0.58090246", "0.58049023", "0.5773218", "0.5768402", "0.57665396", "0.57442844", "0.57141054", "0.5697818", "0.5673181", "0.56301975", "0.56278765", "0...
0.643587
0
start or stop record
private void onRecord(boolean start) { Log.w(TAG, "Inside on record"); if (start) { startRecording(); } else { stopRecording(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void onStartRecord();", "ButEnd getStart();", "public void onRecord(boolean start) {\n if (start) {\n startRecording();\n } else {\n stopRecording();\n }\n }", "public void setStart(long start) { this.start = start; }", "public void streamRecordStart(IBroadcast...
[ "0.6356236", "0.6177513", "0.6029848", "0.5946047", "0.5858671", "0.5816636", "0.5777537", "0.57527757", "0.5736889", "0.5713229", "0.5654868", "0.5637992", "0.5630687", "0.56184256", "0.56167334", "0.5600909", "0.55994385", "0.55761427", "0.5503128", "0.5473152", "0.5452926"...
0.6064958
2
Creates a new instance of CustomerManagedBean
public CustomerManagedBean() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Customer createCustomer() {\r\n\t\ttry {\r\n\t\t\treturn manager.createCustomer();\t\t\t\r\n\t\t}catch(SQLException e) {\r\n\t\t\tJOptionPane.showMessageDialog(null, \"The manager was unable to create a new customer\");\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public Customer createCustomer() {\n ret...
[ "0.66145897", "0.65029705", "0.64617133", "0.64617133", "0.64617133", "0.64617133", "0.63691014", "0.63447183", "0.6278844", "0.6205294", "0.6192006", "0.6188611", "0.61814135", "0.6158189", "0.6146828", "0.61356217", "0.61220866", "0.6114438", "0.60895693", "0.60852015", "0....
0.81623447
0
TODO Autogenerated method stub
@Override public void onColorChange(int color) { int r = Color.red(color); int g = Color.green(color); int b = Color.blue(color); Log.w("CameraEngineActivity", "R:" + r + " G:" + g + " B:" + b); colorText.setBackgroundColor(colo...
{ "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
on click, start the Map activity startActivity(new Intent(MainActivity.this, MapActivity.class));
public void onClick(View v) { Intent intent = new Intent(MainActivity.this, ShowDetails.class); intent.putExtra("placeReference",placeReference); startActivity(intent); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onClickToMap(View view){\n startActivity(new Intent(MainActivity.this, MapsActivity.class));\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(getApplicationContext(), MapActivity.class);\n startActivity(intent);\n ...
[ "0.9192171", "0.90113074", "0.863221", "0.8415538", "0.8176433", "0.8134589", "0.79646593", "0.79644185", "0.7947858", "0.79112947", "0.7906562", "0.7896397", "0.7889286", "0.7885622", "0.78247386", "0.7812491", "0.7785562", "0.77654463", "0.768561", "0.76718175", "0.76292896...
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.activity_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.7249256", "0.72037125", "0.7197713", "0.7180111", "0.71107703", "0.70437056", "0.70412415", "0.7014533", "0.7011124", "0.6983377", "0.69496083", "0.69436663", "0.69371194", "0.69207716", "0.69207716", "0.6893342", "0.6886841", "0.6879545", "0.6877086", "0.68662405", "0.686...
0.0
-1
Gets a list of Announcements that the current user hasn't read yet
@RequestMapping(value = "/user/unread") public String getUnreadAnnouncementsForUser(final Model model, Principal principal) { User user = userService.getUserByUsername(principal.getName()); List<Announcement> unreadAnnouncements = announcementService.getUnreadAnnouncementsForUser(user); Co...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic List<Article> getNotReviewed() {\n\t\treturn articleRepository.findArticleForReviewByProfessions();\n\t}", "List<UserContentChanges> getNoChangesPerUser(int months);", "@Override\n\tpublic List<Announcement> getAnnoun() {\n\t\tList<Announcement> announ = announceMapper.getAnnoun();\n\t\tret...
[ "0.587486", "0.58212316", "0.5473642", "0.54656935", "0.5412704", "0.5354357", "0.53471893", "0.5328335", "0.5266825", "0.52289975", "0.52259856", "0.5223571", "0.5214011", "0.52108", "0.5198884", "0.51750946", "0.51577556", "0.515291", "0.5147759", "0.5141855", "0.5133791", ...
0.6214845
0
Get the adminaccessible announcement control page
@RequestMapping(value = "/admin") public String getControlCentreAdminPage(final Model model) { List<Announcement> announcements = announcementService.getAllAnnouncements(); logger.trace("Announcements list size: " + announcements.size()); model.addAttribute("announcements", announcements); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getAdmin();", "@GET\n\t@RequestMapping(value = \"/admin\")\n\t@Secured(value = { \"ROLE_ADMIN\" })\n\tpublic String openAdminMainPage() {\n\t\t\n\t\treturn \"admin/admin\";\n\t}", "public static String getAdminStatusPage (String accountName, String permaName)\n {\n return BASE + \"ad...
[ "0.6088578", "0.6079797", "0.593089", "0.57542086", "0.57291025", "0.568706", "0.5667676", "0.5651848", "0.55834526", "0.55610096", "0.5558652", "0.55577743", "0.5541921", "0.55410963", "0.5529184", "0.55277336", "0.55055535", "0.54994977", "0.54994977", "0.5497888", "0.54551...
0.7011395
0
Updates an existing announcement object in the database
@RequestMapping(value = "/{announcementID}/details", method = RequestMethod.POST) @PreAuthorize("hasRole('ROLE_ADMIN')") public String submitUpdatedAnnouncement(@PathVariable long announcementID, @RequestParam String title, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int updateByPrimaryKey(AnnouncementDO record);", "public static com.gleo.plugins.hexiagon.model.Announcement updateAnnouncement(\n com.gleo.plugins.hexiagon.model.Announcement announcement)\n throws com.liferay.portal.kernel.exception.SystemException {\n return getService().updateAnnouncemen...
[ "0.7350503", "0.6715107", "0.64898825", "0.63577026", "0.62602156", "0.6257281", "0.62123495", "0.61434567", "0.61324334", "0.61008996", "0.6094656", "0.6059865", "0.6044588", "0.603968", "0.60230505", "0.5993837", "0.59367716", "0.5911457", "0.59015703", "0.5873618", "0.5853...
0.6406182
3
Delete an announcement from the database
@RequestMapping(value = "/{announcementID}/delete") @PreAuthorize("hasRole('ROLE_ADMIN')") public String deleteAnnouncement(final Model model, @PathVariable long announcementID) { try { announcementService.delete(announcementID); } catch (Excepti...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int deleteByPrimaryKey(Integer announceid);", "public static com.gleo.plugins.hexiagon.model.Announcement deleteAnnouncement(\n com.gleo.plugins.hexiagon.model.Announcement announcement)\n throws com.liferay.portal.kernel.exception.SystemException {\n return getService().deleteAnnouncement(a...
[ "0.78967804", "0.69047904", "0.6816221", "0.673487", "0.66899014", "0.66479224", "0.66006076", "0.65651953", "0.6484799", "0.6461", "0.6411595", "0.639905", "0.63565695", "0.6337585", "0.6328471", "0.6319306", "0.6296224", "0.6293381", "0.627312", "0.6257821", "0.6257655", ...
0.6789013
3
Get the details page for a particular announcement
@RequestMapping(value = "/{announcementID}/details", method = RequestMethod.GET) @PreAuthorize("hasRole('ROLE_ADMIN')") public String getAnnouncementDetailsPage(@PathVariable long announcementID, Model model) { Announcement announcement = announcementService.read(announcementID); long numberOfR...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getAnnouncement();", "public static com.gleo.plugins.hexiagon.model.Announcement getAnnouncement(\n long announcementId)\n throws com.liferay.portal.kernel.exception.PortalException,\n com.liferay.portal.kernel.exception.SystemException {\n return getService().getAnn...
[ "0.61765814", "0.59223306", "0.5900247", "0.57956785", "0.5711747", "0.569814", "0.55964935", "0.55796206", "0.54357153", "0.5428423", "0.54052967", "0.54052967", "0.53971213", "0.53838736", "0.53681123", "0.5353343", "0.53492934", "0.53492934", "0.53492934", "0.53492934", "0...
0.75356835
0
Adds a team to the database if it is new, otherwise edits existing team.
public static void addTeam(TeamForm tf) { Team team; long id = tf.id; if (!isTeam(id)) { team = new Team(tf.teamName, tf.location, tf.teamType, tf.skillLevel, tf.roster, tf.description, tf.imageUrl); team.save(); } else { team = getTeam(id); team.setTeamName(tf.teamName); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void addMyTeam(Team team) throws HasTeamAlreadyException;", "@Override\r\n\t@Transactional(propagation=Propagation.REQUIRED)\r\n\tpublic void add(Team team) {\n\t\tentityManager.createQuery(\"insert into Team(id, name) values (team.id, team.name)\");\r\n\t}", "@WebMethod public Team addTeam(String name) throws...
[ "0.7504392", "0.7410613", "0.71535873", "0.6935538", "0.6895444", "0.6880424", "0.67968714", "0.678788", "0.6775517", "0.67606074", "0.66590124", "0.6616476", "0.6570365", "0.6459184", "0.6453636", "0.6406517", "0.63933444", "0.6370329", "0.63688964", "0.6359463", "0.634035",...
0.7064743
3
Returns a Java list of teams.
public static List<Team> getTeams() { return find().all(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@WebMethod public List<Team> getAllTeams();", "public ArrayList<Team> getList(){\n\t\treturn this.teams;\n\t}", "public static List<String> getAllTeams() throws URISyntaxException, IOException {\n HttpClient httpClient = HttpClientBuilder.create().build();\n URIBuilder uriBuilder = new URIBuilder...
[ "0.8169899", "0.7543482", "0.75430626", "0.75279135", "0.73969823", "0.73935926", "0.73736906", "0.70983607", "0.70970535", "0.70303285", "0.6967513", "0.6943751", "0.68690974", "0.6816406", "0.6786953", "0.6776468", "0.66892236", "0.66285765", "0.659373", "0.65759325", "0.65...
0.79425746
1
Returns the team associated with the name.
public static Team getTeam(long id) { return find().where().eq("id", id).findUnique(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Team getTeamByName(String name) {\n\t\tTeam t = null;\n\t\ttry {\n\t\t\tPreparedStatement statement = null;\n\t\t\tResultSet rs = null;\n\t\t\tString teamRecords_sql = \"SELECT * FROM \" + team_table + \" WHERE name='\" + name + \"'\";\n\t\t\tconnection = connector.getConnection();\n\t\t\tstatement = connec...
[ "0.8124412", "0.80340236", "0.79963064", "0.7884689", "0.7661304", "0.7533698", "0.73021835", "0.72842056", "0.72842056", "0.71917963", "0.7070747", "0.70351726", "0.6744629", "0.67437416", "0.67312056", "0.6729789", "0.6708215", "0.6668017", "0.6647252", "0.6635226", "0.6620...
0.64196664
28
Searches the Team database with the terms.
public static Page<Team> find(String term, String sort, int page) { term = "%" + term + "%"; Query<Team> q = Ebean.createQuery(Team.class); q.where().disjunction().add(Expr.ilike("teamName", term)).add(Expr.ilike("location", term)) .add(Expr.ilike("skillLevel", term)); return q.orderBy(sort).fin...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void termQuerySearch(String[] terms) {\n for (String term : terms) {\n LinkedList<TermPositions> postingLists = indexMap.get(analyzeTerm(term));\n if (postingLists != null) {\n for (TermPositions matches : postingLists) {\n double score = (doub...
[ "0.63753605", "0.6269777", "0.59958726", "0.59931743", "0.5896208", "0.5858082", "0.5853634", "0.5818719", "0.5803225", "0.5778245", "0.576533", "0.57635564", "0.5737136", "0.5709723", "0.5688329", "0.566643", "0.5623134", "0.5620943", "0.5614767", "0.5593001", "0.5592962", ...
0.5291454
51
Checks if teamName belongs to a team.
public static boolean isTeam(long id) { Team team = getTeam(id); return !(team == null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean teamExist(String teamName) {\n boolean doesExist = false;\n for (Team team : scoreboard.getTeams()) if (team.getName().equals(teamName)) doesExist = true;\n return doesExist;\n }", "public boolean teamExist(Team t) {\n return getTeam(t.getName()) != null;\n }", ...
[ "0.7706797", "0.7077964", "0.6900572", "0.67732257", "0.67406315", "0.6686737", "0.6501452", "0.6441663", "0.63222307", "0.61816746", "0.614906", "0.60900867", "0.60886014", "0.6047623", "0.6047604", "0.5990788", "0.59888667", "0.595653", "0.5924846", "0.5875964", "0.5856371"...
0.6197107
9
Returns a list of types associated with a team.
public static List<String> typeOfTeam() { String[] types = { "Mens", "Womens", "Co-ed" }; return java.util.Arrays.asList(types); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static List<Team> getTeams() {\n return find().all();\n }", "@WebMethod public List<Team> getAllTeams();", "List<ReportType> findTypes();", "public List<SecTyp> getAllTypes();", "public void printTeamsInLeague(){\n for (T i : teams){\n System.out.println(i.getTeamName());\n ...
[ "0.6695476", "0.6602442", "0.6308446", "0.62860537", "0.6233198", "0.61948997", "0.60783577", "0.6002078", "0.59502095", "0.5919565", "0.5864794", "0.58226204", "0.57868534", "0.5778318", "0.5776851", "0.5710043", "0.5656047", "0.56560385", "0.56151", "0.5610011", "0.56068295...
0.7645183
0
Returns the roster as a java list.
public List<String> getRosterList() { // TODO check if player name is related to a player profile List<String> rosterList = java.util.Arrays.asList(roster.split("\\s*,\\s*")); return rosterList; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<List<DutyRosterItem>> getRosterAsList() {\n return new ArrayList<>(new TreeMap<>(roster).values());\n }", "public String[][] getRoster(){\r\n\t\treturn roster;\r\n\t}", "java.lang.String getRaceList();", "public LinkedList getList() {\n\treturn this.roomList;\n}", "public ArrayList<Ri...
[ "0.68492705", "0.65211", "0.65018696", "0.6264839", "0.6189367", "0.6091538", "0.609071", "0.6056717", "0.6055787", "0.60361725", "0.5979796", "0.5970445", "0.59682715", "0.59619087", "0.59079075", "0.5894206", "0.588263", "0.5875202", "0.5863027", "0.58537817", "0.5847069", ...
0.6928213
0
Returns a list of the player names that don't have a profile within the site.
public List<String> getNoProfile() { return noProfile; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static List<String> getOnlinePlayerNames() {\n Iterable<User> onlineUsers = SlapPlugin.getInstance().getEssentials().getOnlineUsers();\n return StreamSupport.stream(onlineUsers.spliterator(), false)\n .map(user -> StringUtils.isEmpty(user.getNickname()) ? user.getName() : user.g...
[ "0.6754081", "0.63030005", "0.6236239", "0.6046707", "0.59871525", "0.5960642", "0.5867456", "0.567574", "0.5657716", "0.5630177", "0.56132436", "0.5466744", "0.5433197", "0.54284763", "0.5427151", "0.5420538", "0.54160374", "0.5374336", "0.5335254", "0.5317623", "0.529224", ...
0.6285921
2
Adds a comment to the team's list.
public void addComment(Comment comment) { this.comments.add(comment); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addComment(CommentInfo comment) {\n \tcomments.add(comment);\n }", "public void addComment(CommentDTO comment) {\n\t\tif (comments == null)\n\t\t\tcomments = new ArrayList<CommentDTO>();\n\t\tcomments.add(comment);\n\t}", "@Override\n\tpublic void add(CommentModel comment) {\n\t\tcomments.add...
[ "0.71701926", "0.6912942", "0.6843259", "0.6787953", "0.66694045", "0.6550417", "0.6550417", "0.6549024", "0.6543746", "0.6404498", "0.6372144", "0.63188934", "0.62962", "0.6288043", "0.6190817", "0.6167625", "0.6088042", "0.6087935", "0.60257196", "0.601392", "0.59237796", ...
0.69866353
1
Returns a java list of comments related to the team.
public List<Comment> getComments() { return this.comments; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Comment> getComments() {\n fetchComments();\n return Collections.unmodifiableList(comments);\n }", "List<Comment> getCommentsOfProject(int projectId) throws SQLException;", "public List<CommentDTO> getComments() {\n\t\treturn comments;\n\t}", "public List<CommentInfo> getComments...
[ "0.686245", "0.6853968", "0.67043895", "0.66034836", "0.65490025", "0.6470317", "0.6464087", "0.64389914", "0.6419223", "0.63555044", "0.6304133", "0.6284083", "0.6284083", "0.6265973", "0.61607057", "0.6151804", "0.61508274", "0.614011", "0.60877633", "0.6081025", "0.6061222...
0.66803044
3
Activity that is a result of MedicineInfoActivity, will enable the user to register certain meds to his/her account in dosage and frequency along with the option to get notifications from the app when it's time to take medication
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_register_medicine); drug = getIntent().getParcelableExtra("SelectedDrug"); drugName = (TextView) findViewById(R.id.drug_name); drugName.setTex...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onReceive(Context context, Intent intent) {\n\n NotificationChannel notificationChannel = new NotificationChannel(\"CHANNELID\", \"name\", NotificationManager.IMPORTANCE_HIGH );\n NotificationManager notificationManager = context.getSystemService(NotificationManager.class);...
[ "0.6026738", "0.58189374", "0.5540429", "0.55242425", "0.5464016", "0.5383283", "0.53355926", "0.5295995", "0.5181638", "0.51697415", "0.5167282", "0.5165625", "0.51652324", "0.5163774", "0.5158421", "0.5138063", "0.5089824", "0.50667524", "0.5065284", "0.5061617", "0.5061484...
0.54415756
5
TODO: save to database
@Override public void onClick(View v) { Toast.makeText(v.getContext(), "Registration success", Toast.LENGTH_LONG).show(); finish(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void save() {\n \n }", "@Override\n\tpublic void save() {\n\t\t\n\t}", "@Override\n\tpublic void save() {\n\t\t\n\t}", "@Override\n public void save()\n {\n \n }", "@Override\r\n\tpublic void save() {\n\r\n\t}", "@Override\r\n\tpublic void save() {\n\r\n\t}...
[ "0.6876499", "0.68601084", "0.68601084", "0.6818979", "0.669026", "0.669026", "0.66315985", "0.6603755", "0.6579247", "0.6544743", "0.6520846", "0.6390849", "0.6255686", "0.6227085", "0.6227085", "0.6227085", "0.62170774", "0.62170774", "0.62170774", "0.62170774", "0.6201236"...
0.0
-1
/logic is like this here: if our number is any odd number, sum of each element of this number is even!!!(13 = 1+3(4); 15 = 1+5(6); if out number is any even number , sum of each elemant of this number is even also!! 20 = 2+0(2); 26 =2+6(8) and so on it is gonna continue: because of having limit 200000(not inclusive lik...
public static void main(String[] args) { int n = 0; for(int i=0; i<100; i++){ if(i%2==1){ n =i; } else n =i; } System.out.println(n); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\n\t\tfor (int i = 15; i <= 35; i++) {\n\n\t\t\tif (i % 6 == 0) {\n\n\t\t\t\tcontinue;\n\n\t\t\t}\n\t\t\tSystem.out.print(i + \" \");\n\n\t\t}\n\t\tSystem.out.println();\n\n\t\tfor (int a = 15; a < 36; a++) {\n\t\t\tif (a % 2 == 0 && a % 3 == 0) {\n\t\t\t\tcontinue;\n\t\t\...
[ "0.7001154", "0.69122285", "0.69000477", "0.6769295", "0.673746", "0.6639282", "0.6596492", "0.6565432", "0.6536551", "0.6473299", "0.64606214", "0.6421133", "0.6384926", "0.6366847", "0.63370967", "0.6318837", "0.6313202", "0.6303094", "0.62978643", "0.6293718", "0.62765205"...
0.0
-1
This method was generated by Apache iBATIS ibator. This method corresponds to the database table WK_BSC_CORE
public WkBscCoreDAOImpl() { super(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<IkrInstanceData> fetchDBMS_SYBASE_TABLE()\r\n\tthrows ConnectorException, FetchException, PersistenceException {\t \r\n\t\tList<IkrInstanceData> res = new ArrayList<IkrInstanceData>();\r\n\t\t\r\n\t\tSybaseTableMeasurement measurement = (SybaseTableMeasurement)client.getMeasurement(\"DBMS_SYBASE_TABLE\...
[ "0.53606534", "0.5273242", "0.52709705", "0.5210963", "0.5152298", "0.5119404", "0.51055884", "0.50820315", "0.5069529", "0.5067419", "0.50531805", "0.50469756", "0.50437504", "0.50348353", "0.5033258", "0.49965456", "0.4990416", "0.49870643", "0.49402338", "0.49369815", "0.4...
0.5303755
1
This method was generated by Apache iBATIS ibator. This method corresponds to the database table WK_BSC_CORE
public int deleteByPrimaryKey(String bscid, Integer week, Integer year) { WkBscCore key = new WkBscCore(); key.setBscid(bscid); key.setWeek(week); key.setYear(year); int rows = getSqlMapClientTemplate().delete("WK_BSC_CORE.ibatorgenerated_deleteByPrimaryKey", key); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<IkrInstanceData> fetchDBMS_SYBASE_TABLE()\r\n\tthrows ConnectorException, FetchException, PersistenceException {\t \r\n\t\tList<IkrInstanceData> res = new ArrayList<IkrInstanceData>();\r\n\t\t\r\n\t\tSybaseTableMeasurement measurement = (SybaseTableMeasurement)client.getMeasurement(\"DBMS_SYBASE_TABLE\...
[ "0.5358734", "0.53030777", "0.52737594", "0.52691156", "0.5210498", "0.51496553", "0.5120017", "0.51011074", "0.5079821", "0.50658935", "0.50647366", "0.5054387", "0.5046013", "0.50408804", "0.50369257", "0.503305", "0.4996893", "0.49857834", "0.4983073", "0.494213", "0.49358...
0.0
-1
This method was generated by Apache iBATIS ibator. This method corresponds to the database table WK_BSC_CORE
public void insert(WkBscCore record) { getSqlMapClientTemplate().insert("WK_BSC_CORE.ibatorgenerated_insert", record); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<IkrInstanceData> fetchDBMS_SYBASE_TABLE()\r\n\tthrows ConnectorException, FetchException, PersistenceException {\t \r\n\t\tList<IkrInstanceData> res = new ArrayList<IkrInstanceData>();\r\n\t\t\r\n\t\tSybaseTableMeasurement measurement = (SybaseTableMeasurement)client.getMeasurement(\"DBMS_SYBASE_TABLE\...
[ "0.5359187", "0.5302035", "0.5274904", "0.52697295", "0.52107364", "0.5149667", "0.5120205", "0.5103196", "0.50807923", "0.5067874", "0.5066653", "0.5054995", "0.5047335", "0.50418675", "0.5037026", "0.49980548", "0.49880207", "0.49839315", "0.49407482", "0.49353442", "0.4934...
0.50318813
15
This method was generated by Apache iBATIS ibator. This method corresponds to the database table WK_BSC_CORE
public void insertSelective(WkBscCore record) { getSqlMapClientTemplate().insert("WK_BSC_CORE.ibatorgenerated_insertSelective", record); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<IkrInstanceData> fetchDBMS_SYBASE_TABLE()\r\n\tthrows ConnectorException, FetchException, PersistenceException {\t \r\n\t\tList<IkrInstanceData> res = new ArrayList<IkrInstanceData>();\r\n\t\t\r\n\t\tSybaseTableMeasurement measurement = (SybaseTableMeasurement)client.getMeasurement(\"DBMS_SYBASE_TABLE\...
[ "0.5359718", "0.5302503", "0.5276327", "0.5271529", "0.52113056", "0.5151795", "0.51212895", "0.51038235", "0.5081521", "0.5068188", "0.5067125", "0.5056341", "0.50469667", "0.5043276", "0.5038923", "0.50328445", "0.4997268", "0.4988621", "0.4985194", "0.4940498", "0.49361214...
0.0
-1
This method was generated by Apache iBATIS ibator. This method corresponds to the database table WK_BSC_CORE
public WkBscCore selectByPrimaryKey(String bscid, Integer week, Integer year) { WkBscCore key = new WkBscCore(); key.setBscid(bscid); key.setWeek(week); key.setYear(year); WkBscCore record = (WkBscCore) getSqlMapClientTemplate().queryForObject("WK_BSC_CORE.ibatorgenerated_se...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<IkrInstanceData> fetchDBMS_SYBASE_TABLE()\r\n\tthrows ConnectorException, FetchException, PersistenceException {\t \r\n\t\tList<IkrInstanceData> res = new ArrayList<IkrInstanceData>();\r\n\t\t\r\n\t\tSybaseTableMeasurement measurement = (SybaseTableMeasurement)client.getMeasurement(\"DBMS_SYBASE_TABLE\...
[ "0.53606534", "0.5303755", "0.5273242", "0.52709705", "0.5210963", "0.5152298", "0.5119404", "0.51055884", "0.50820315", "0.5069529", "0.5067419", "0.50531805", "0.50469756", "0.50437504", "0.50348353", "0.5033258", "0.49965456", "0.4990416", "0.49870643", "0.49369815", "0.49...
0.49402338
19
This method was generated by Apache iBATIS ibator. This method corresponds to the database table WK_BSC_CORE
public int updateByPrimaryKeySelective(WkBscCore record) { int rows = getSqlMapClientTemplate().update("WK_BSC_CORE.ibatorgenerated_updateByPrimaryKeySelective", record); return rows; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<IkrInstanceData> fetchDBMS_SYBASE_TABLE()\r\n\tthrows ConnectorException, FetchException, PersistenceException {\t \r\n\t\tList<IkrInstanceData> res = new ArrayList<IkrInstanceData>();\r\n\t\t\r\n\t\tSybaseTableMeasurement measurement = (SybaseTableMeasurement)client.getMeasurement(\"DBMS_SYBASE_TABLE\...
[ "0.5358734", "0.53030777", "0.52737594", "0.52691156", "0.5210498", "0.51496553", "0.5120017", "0.51011074", "0.5079821", "0.50658935", "0.50647366", "0.5054387", "0.5046013", "0.50408804", "0.50369257", "0.503305", "0.4996893", "0.49857834", "0.4983073", "0.494213", "0.49358...
0.0
-1
This method was generated by Apache iBATIS ibator. This method corresponds to the database table WK_BSC_CORE
public int updateByPrimaryKey(WkBscCore record) { int rows = getSqlMapClientTemplate().update("WK_BSC_CORE.ibatorgenerated_updateByPrimaryKey", record); return rows; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<IkrInstanceData> fetchDBMS_SYBASE_TABLE()\r\n\tthrows ConnectorException, FetchException, PersistenceException {\t \r\n\t\tList<IkrInstanceData> res = new ArrayList<IkrInstanceData>();\r\n\t\t\r\n\t\tSybaseTableMeasurement measurement = (SybaseTableMeasurement)client.getMeasurement(\"DBMS_SYBASE_TABLE\...
[ "0.5359187", "0.5302035", "0.5274904", "0.52697295", "0.52107364", "0.5149667", "0.5120205", "0.5103196", "0.50807923", "0.5067874", "0.5066653", "0.5054995", "0.5047335", "0.50418675", "0.5037026", "0.50318813", "0.49980548", "0.49880207", "0.49839315", "0.49407482", "0.4935...
0.0
-1
constructors Construct an XmlElementAdapter.
public XmlElementAdapter(XmlBean.BeanInfo infoBean, Class clzType, String sName, String sXml, XmlElement xml) { super(infoBean, clzType, sName, sXml, xml); azzert(XmlElement.class.isAssignableFrom(clzType)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public XmlElement() {\n }", "@VisibleForTesting\n ElementAdapterFactory(AdapterFactory<CustomElementAdapter, CustomElement> customElementFactory,\n AdapterFactory<ChunkedTextElementAdapter, Element> chunkedTextElementFactory,\n AdapterFactory<ParameterizedTextElementAdapter, Element>\...
[ "0.67933124", "0.63111824", "0.6188116", "0.59580165", "0.5948149", "0.59195083", "0.58048826", "0.5787029", "0.56868076", "0.5667657", "0.5657254", "0.557276", "0.5561593", "0.55522734", "0.55522734", "0.55522734", "0.55522734", "0.55522734", "0.55522734", "0.55522734", "0.5...
0.55503017
46
XmlSerializable helpers Deserialize an object from an XML element.
public Object fromXml(XmlElement xml) { // TODO: copy the relevant namespaces declared by the parent // should that be done by clone? return xml == null ? null : xml.clone(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Object objectFromXmlElement(XmlElement element) throws XmlParseException\n {\n return PLIST.parseObject(element);\n }", "private Object parseElement(XmlElement element) throws XmlParseException\n {\n try\n {\n return parseElementRaw(element);\n }\n ...
[ "0.6415213", "0.6125468", "0.5767841", "0.56715953", "0.56161505", "0.5601276", "0.55964524", "0.5596338", "0.5573023", "0.5548238", "0.5518874", "0.5511254", "0.54754984", "0.54550034", "0.54349923", "0.53198403", "0.5284938", "0.5278224", "0.52651805", "0.52466714", "0.5244...
0.5299676
16
Serialize an object into an XML element.
public XmlElement toXml(Object o) { if (o == null) { return null; } return (XmlElement) ((XmlElement) o).clone(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Element toXML();", "private void jaxbObjectToXML(Object object, Writer outputWriter) throws JAXBException {\r\n \r\n JAXBContext context = JAXBContext.newInstance(object.getClass());\r\n Marshaller marshaller = context.createMarshaller();\r\n \r\n // for pretty-print XML in JAX...
[ "0.668396", "0.6537591", "0.6502446", "0.6385279", "0.6317034", "0.63007945", "0.62820977", "0.6259097", "0.6235107", "0.61730313", "0.6150733", "0.61334014", "0.6085385", "0.6085385", "0.6054681", "0.6014805", "0.6009433", "0.59618086", "0.5916805", "0.5838792", "0.58255845"...
0.5992746
17
ExternalizableLite helpers Read a value from the passed DataInput object.
public Object readExternal(DataInput in) throws IOException { return readObject(in, getBeanInfo().getType().getClassLoader()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Object readValue();", "protected abstract ContentValues getDataFromInput();", "public abstract void read(DataInput input) throws IOException;", "@Override\r\n\tpublic void read(DataInput in) throws IOException {\n\t\t\r\n\t}", "public void readExternal(ObjectInput in) throws IOException, FileNotFoundExcept...
[ "0.68585086", "0.6339319", "0.62346554", "0.605002", "0.60288095", "0.5874311", "0.58369887", "0.5835868", "0.58308566", "0.57677895", "0.57499325", "0.5739193", "0.5732985", "0.571443", "0.57062376", "0.5698333", "0.56901014", "0.5689363", "0.5646086", "0.56326663", "0.56284...
0.6289348
2
Write the specified data to the passed DataOutput object.
public void writeExternal(DataOutput out, Object o) throws IOException { writeObject(out, o); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void write(DataOutput dataOutput) throws IOException {\n }", "public abstract void writeData(DataOutput dout) throws IOException;", "@Override\n public int writeData(OutputStream out, T data) throws Exception\n {\n OutputStreamWriter w = new OutputStreamWriter(out, \"UTF-8\");\n ...
[ "0.78957504", "0.74740005", "0.7344652", "0.71222687", "0.69298714", "0.6832626", "0.68217367", "0.67795235", "0.67524886", "0.6733494", "0.6729066", "0.6672002", "0.66579217", "0.6604992", "0.6588124", "0.65676564", "0.6538594", "0.6504548", "0.6481288", "0.64007866", "0.637...
0.58888364
51
Creates a new serializer.
public WorkspaceSerializer(final Workspace workspace) { this.workspace = workspace; this.desktop = SimbrainDesktop.getDesktop(workspace); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "MessageSerializer<T> create();", "SerializeFactory getSerializeFactory();", "public interface SerializerFactory<T> {\n\t\n\t/** the method creates a new MessageSerializer.\n\t * \n\t * @return new object that implements the MessageSerializer interface. \n\t */\n MessageSerializer<T> create();\n}", "private...
[ "0.7637796", "0.6771289", "0.66709316", "0.6628916", "0.6570279", "0.654963", "0.6357565", "0.62540936", "0.6029793", "0.5978852", "0.588042", "0.58712274", "0.58712083", "0.58244926", "0.5801245", "0.56599104", "0.560859", "0.55617994", "0.5549773", "0.553746", "0.55154437",...
0.0
-1
Serializes the workspace to a zip compressed stream.
public void serialize(final OutputStream output) throws IOException { ZipOutputStream zipStream = new ZipOutputStream(output); WorkspaceComponentSerializer serializer = new WorkspaceComponentSerializer( zipStream); ArchiveContents archive = new ArchiveContents(workspace, seri...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void tozip() {\r\n\t\t//session.setAttribute(Constant.USER_SESSION_KEY, null);\r\n\t\tList<Netlog> result = null;\r\n\t\tInteger total = null;\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\t\tresult = (List<Netlog>)netlogDao.findNetlogByPage(1,10000);\r\n\t\t\t\ttotal= result.size();\r\n\t\t\t\t//total= netlogDao.findNetl...
[ "0.6420933", "0.6114214", "0.56095165", "0.55643684", "0.5509961", "0.54577565", "0.5407218", "0.5280173", "0.5202834", "0.51684815", "0.51398325", "0.5112899", "0.5106625", "0.509366", "0.49442238", "0.49297222", "0.48860544", "0.48625815", "0.4827808", "0.48118168", "0.4811...
0.5768827
2
Serializes all the components to the given archive and zipstream.
private void serializeComponents( final WorkspaceComponentSerializer serializer, final ArchiveContents archive, final ZipOutputStream zipStream) throws IOException { for (WorkspaceComponent component : workspace.getComponentList()) { ArchiveContents.Archi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private ZipCompressor(){}", "public void tozip() {\r\n\t\t//session.setAttribute(Constant.USER_SESSION_KEY, null);\r\n\t\tList<Netlog> result = null;\r\n\t\tInteger total = null;\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\t\tresult = (List<Netlog>)netlogDao.findNetlogByPage(1,10000);\r\n\t\t\t\ttotal= result.size();\r\n\t\t...
[ "0.5894386", "0.5817253", "0.55823284", "0.5545152", "0.55120575", "0.5500386", "0.53736174", "0.5341859", "0.5300554", "0.5250506", "0.5229274", "0.52139366", "0.5193814", "0.51838744", "0.5168108", "0.5168011", "0.5159928", "0.5154351", "0.5125055", "0.51242805", "0.5119908...
0.745212
0
Deserializes all the entries in the provided stream.
public void deserialize(final InputStream stream) throws IOException { Collection<? extends String> empty = Collections.emptySet(); deserialize(stream, empty); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "T deserialize(InputStream stream) throws IOException;", "private void readObject(java.io.ObjectInputStream stream)\n throws IOException, ClassNotFoundException {\n trackers = new ArrayList<>();\n }", "void deserialize(@NotNull InputStream in) throws IOException;", "private void readObject(fina...
[ "0.62015975", "0.6129541", "0.6021126", "0.59476924", "0.59185773", "0.5902829", "0.5861574", "0.5821489", "0.57946235", "0.5771737", "0.57413226", "0.56908596", "0.5672662", "0.5625679", "0.5621113", "0.5592973", "0.5578308", "0.5538243", "0.5534355", "0.55149424", "0.547061...
0.7047187
0
Creates a workspace from a zip compressed input stream.
@SuppressWarnings("unchecked") public void deserialize(final InputStream stream, final Collection<? extends String> exclude) throws IOException { Map<String, byte[]> entries = new HashMap<String, byte[]>(); ByteArrayOutputStream bytes = new ByteArrayOutputStream(); byte[] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void newZipEntry(ZipEntry zipEntry, InputStream inputStream);", "public static DBMaker openZip(String zip) {\n DBMaker m = new DBMaker();\n m.location = \"$$ZIP$$://\"+zip;\n return m;\n }", "public StreamUnzipper(InputStream zipStream, File destDir)\n {\n if (zipStream...
[ "0.5953294", "0.58637756", "0.576788", "0.5661004", "0.5595584", "0.5588421", "0.5534015", "0.5429545", "0.52275574", "0.5216642", "0.52161896", "0.5195712", "0.5007349", "0.49982312", "0.4962653", "0.4928336", "0.4882866", "0.48171788", "0.4805315", "0.48013932", "0.47908184...
0.4819678
17
Helper method that will read the InputStream repeatedly until the given array is filled.
private static void read(final InputStream istream, final byte[] bytes) throws IOException { int pos = 0; while (pos < bytes.length) { int read = istream.read(bytes, pos, bytes.length - pos); if (read < 0) { throw new RuntimeException("premature ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int readFill(InputStream stream, byte[] buffer)\n throws IOException {\n int r = buffer.length;\n while (r > 0) {\n int p = buffer.length - r;\n int c = stream.read(buffer, p, r);\n if (c == -1) {\n break;\n }\n ...
[ "0.6499417", "0.56382877", "0.56382173", "0.56013256", "0.54887545", "0.54860413", "0.5477923", "0.5360798", "0.5359938", "0.5336982", "0.5286645", "0.5268641", "0.5267976", "0.5232172", "0.5222133", "0.5203769", "0.5199673", "0.5187273", "0.5158085", "0.51429033", "0.5135571...
0.5495549
4
Helper method for openings workspace components from a file. A call might look like this NetworkComponent networkComponent = (NetworkComponent) WorkspaceFileOpener(NetworkComponent.class, new File("Net.xml"));
public static WorkspaceComponent open(final Class<?> fileClass, final File file) { String extension = file.getName() .substring(file.getName().indexOf(".")); try { Method method = fileClass.getMethod("open", InputStream.class, String.clas...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void actionPerformed(ActionEvent e) {\n \tJFileChooser jfc = new JFileChooser();\n int retValue = jfc.showOpenDialog(KrokiMockupToolApp.getInstance().getKrokiMockupToolFrame());\n if (retValue == JFileChooser.APPROVE_OPTION) {\n File file = jfc.getSelectedFile();\n Sys...
[ "0.58929616", "0.56340414", "0.54990435", "0.53888893", "0.53149045", "0.52867347", "0.5276375", "0.52662325", "0.5222472", "0.5213264", "0.5194502", "0.51717514", "0.5127009", "0.50905186", "0.50473404", "0.5034114", "0.5033199", "0.5018105", "0.50076085", "0.49904642", "0.4...
0.66955394
0
Helper method to save a specified file.
public static void save(File file, Workspace workspace) { if (file != null) { // System.out.println("Workspace Save -->" + file); try { FileOutputStream ostream = new FileOutputStream(file); try { WorkspaceSerializer serializer = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void save(File file);", "public void save (File argFile) throws IOException;", "void save(String filename);", "public boolean save(String file);", "void save(String fileName);", "void saveToFile(String filename) throws IOException;", "public void save(String fileName) throws IOException;", "default v...
[ "0.81945926", "0.76869", "0.7676862", "0.7658101", "0.7628279", "0.7609932", "0.746922", "0.72834253", "0.7266632", "0.7172352", "0.7162842", "0.7078725", "0.7067175", "0.7062231", "0.70336163", "0.69722843", "0.6883668", "0.68366957", "0.67500615", "0.6749421", "0.6608054", ...
0.0
-1
/ This function directs to the LogIn Page
@FXML private void goLogIn() throws IOException{ Main.showStudent(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void goToLoginPage()\n\t{\n\t\tclickAccountNameIcon();\n\t\tclickSignInLink();\n\t}", "void redirectToLogin();", "@Override\n\tpublic void goToLogin() {\n\t\t\n\t}", "@Public\n\t@Get(\"/login\")\n\tpublic void login() {\n\t\tif (userSession.isLogged()) {\n\t\t\tresult.redirectTo(HomeController.class)....
[ "0.77916175", "0.75563836", "0.7480461", "0.7161947", "0.69909334", "0.69734716", "0.693115", "0.68506366", "0.6826267", "0.678853", "0.6753687", "0.67365015", "0.67174935", "0.67106605", "0.6708845", "0.6706518", "0.6670409", "0.66639084", "0.6662238", "0.6659941", "0.664537...
0.0
-1
/ This function makes request for the room at a particular time and date
@FXML private void RequestRoom() throws IOException, ClassNotFoundException{ ArrayList<String[]> hello = new ArrayList<String[]>(); String[] request = new String[9]; String status = "processing"; BufferedReader br = new BufferedReader(new FileReader("request.csv")); String line=""; while ((l...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean checkRoomAvailabilty(String date,String startTime,String endTime ,String confID);", "public static void requestMenuForEateryAtTime(Eatery eatery, Date date) {\n final Map<String, String> parameters = new HashMap<>();\n parameters.put(\"client_id\", CLIENT_ID);\n parameters.put...
[ "0.64805055", "0.58754694", "0.5737294", "0.56970143", "0.5644913", "0.5631502", "0.5622483", "0.55750966", "0.55750966", "0.55429184", "0.5513064", "0.5460051", "0.54370654", "0.5432366", "0.5432121", "0.5416662", "0.5409032", "0.540533", "0.53902954", "0.5387523", "0.537903...
0.0
-1
Public Methods Starts the algorithm for solving the 1Center and 1Highway problem for the version of locating a turnpike with fixed length. This algorithm is solved in O(n^2) time.
public void runAlgorithm(PointList customers, int highwayLength, int velocity) { if (!customers.isEmpty()){ this._highwayLength = highwayLength; this._velocity = velocity; _maxDist = customers.maxDist(); // for drawing purposes only facilityPoints = new ArrayList<Point>(); turnpikePoints = ne...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void solucioInicial2() {\n int grupsRecollits = 0;\n for (int i=0; i<numCentres*helisPerCentre; ++i) {\n Helicopter hel = new Helicopter();\n helicopters.add(hel);\n }\n int indexHelic = 0;\n int indexGrup = 0;\n int places = 15;\n while...
[ "0.61015326", "0.6014106", "0.5850418", "0.5826583", "0.5825994", "0.5816496", "0.56015515", "0.5600226", "0.55880624", "0.5554044", "0.55524707", "0.55022013", "0.5458888", "0.54339457", "0.54104835", "0.5409067", "0.54067594", "0.54061574", "0.5400807", "0.5391795", "0.5373...
0.56333864
6