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 |
|---|---|---|---|---|---|---|
Created by wangxiaodan on 2017/12/11. | public interface DeliverDetailDao extends JpaRepository<DeliverDetail, Serializable> , JpaSpecificationExecutor<DeliverDetail>{
DeliverDetail findByDeliverDetailNo(String deliverDetailNo);
@Query(value = "select t.deliver_detail_no from deliver_detail t order by t.deliver_detail_no desc LIMIT 1",nativeQuery ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@O... | [
"0.6208598",
"0.6164835",
"0.59307134",
"0.58960176",
"0.58837026",
"0.58837026",
"0.5881134",
"0.58799785",
"0.58723545",
"0.58296406",
"0.5807524",
"0.5779071",
"0.5745822",
"0.574054",
"0.5739879",
"0.5739879",
"0.5734945",
"0.5723047",
"0.5721522",
"0.5714724",
"0.5709468... | 0.0 | -1 |
creates a RigidBodyForceGenerator with no defined force | public RigidBodyForceGenerator() {
super();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public RigidBodyForceGenerator( Force aForce ) {\n\t\tsuper( aForce );\n\t}",
"void resetForce();",
"public void createBody(){\n this.fuelMass = this.initFuelMass;\n BodyDef def = new BodyDef();\n def.position.set(initPosition);\n def.type = BodyDef.BodyType.DynamicBody;\n bo... | [
"0.66588604",
"0.5624913",
"0.53845966",
"0.519628",
"0.519066",
"0.51428586",
"0.50786024",
"0.4871127",
"0.48561767",
"0.48464382",
"0.4827955",
"0.4821566",
"0.48033014",
"0.47781795",
"0.47643253",
"0.47592437",
"0.47534588",
"0.4746925",
"0.47367",
"0.4733728",
"0.471802... | 0.8086241 | 0 |
creates a RigidBodyForceGenerator that applies a constant force | public RigidBodyForceGenerator( Force aForce ) {
super( aForce );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public RigidBodyForceGenerator() {\n\t\tsuper();\n\t}",
"public void applyForce()\r\n {\n\tVector2d v = new Vector2d();\r\n\tv.sub(x, R.getPosition());\r\n\tdouble L = v.length();\r\n\tv.normalize();\r\n\tVector2d vel = R.getVelocityLinear();//fragile ref\r\n\t//double vn = vel.dot(v);\r\n\tdouble k = Constan... | [
"0.7127426",
"0.5844073",
"0.57287186",
"0.5705257",
"0.5693032",
"0.5688361",
"0.56323993",
"0.5610835",
"0.558381",
"0.553329",
"0.5480548",
"0.545246",
"0.54369605",
"0.5418387",
"0.5391288",
"0.53682303",
"0.53515446",
"0.5296776",
"0.5292503",
"0.5292503",
"0.5292503",
... | 0.63541937 | 1 |
Created by tomyair on 8/21/17. | public interface JobMemcachedKeys {
String JOB_DETAIL = "JOB_DETAIL_";
String JOB_STATUS = "JOB_STATUS_";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"private stendhal() {\n\t}",
"public final void mo51373a() {\n }",
"private... | [
"0.58789766",
"0.5781058",
"0.57167524",
"0.5658384",
"0.56515205",
"0.56212103",
"0.56084627",
"0.56081766",
"0.56081766",
"0.5571791",
"0.55561954",
"0.55420876",
"0.5541618",
"0.55398893",
"0.5484131",
"0.5472366",
"0.54719335",
"0.5463833",
"0.546315",
"0.54500467",
"0.54... | 0.0 | -1 |
Class Constructor to setup an empty obj model | public ModelData(CallBackInterface _myContainer) {
myContainer = _myContainer;
setup();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Model() {\n\t}",
"public Model() {\n\t}",
"public DefaultObjectModel ()\n {\n this (new Schema ());\n }",
"private Model(){}",
"public BaseModel initObj() {\n\t\treturn null;\n\t}",
"public Model() {\n }",
"public Model() {\n }",
"public Model() {\n }",
"public Model() {\n\... | [
"0.75566864",
"0.75566864",
"0.7504754",
"0.7475198",
"0.7275473",
"0.7229418",
"0.7229418",
"0.7229418",
"0.7156488",
"0.7114796",
"0.70868313",
"0.6811128",
"0.68007636",
"0.67738634",
"0.6742507",
"0.67418367",
"0.6703371",
"0.67014354",
"0.66836846",
"0.66721517",
"0.6664... | 0.0 | -1 |
Class Constructor, loads the string as an obj from the data directory | public ModelData(CallBackInterface _myContainer, String filename) {
this(_myContainer);
load(filename);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n void load(String data) {\n }",
"public static Object objectLoader(String filename) throws IOException, ClassNotFoundException {\r\n\t\t// Creat file input stream\r\n\t\tFileInputStream fileInStr = new FileInputStream(filename);\r\n\t\t// Create object input steam\r\n\t\tObjectInputStream objInStr =... | [
"0.6601615",
"0.6555081",
"0.64229965",
"0.6125208",
"0.6102089",
"0.60176337",
"0.6005038",
"0.59020907",
"0.5892278",
"0.58913636",
"0.58713543",
"0.5864712",
"0.5838834",
"0.58034676",
"0.57636434",
"0.5725734",
"0.56670654",
"0.5663061",
"0.56544167",
"0.56492734",
"0.564... | 0.53714716 | 68 |
Class Constructor, loads the string as an obj from the data directory. The boolean decides if local paths should be used when loading the mtl and textures in the mtl. The int sets the draw mode, to the processing draw mode, eg. TRIANGLES, POINTS, POLYGON, LINES, TRIANGLE_STRIP, QUAD_STRIP, QUADS. | public ModelData(CallBackInterface _myContainer, String _fileName, int _shapeMode) {
this(_myContainer, _fileName);
shapeMode(_shapeMode);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void massiveModeLoading( File dataPath );",
"public void loadFromOBJ(Context context, String filename) {\n loadFromOBJThreaded(context, filename);\n loadObjData();\n }",
"public Loader(){\n\t\tthis(PLANETS, NEIGHBOURS);\n\t}",
"public void loadFromOBJThreaded(Context context, String filename... | [
"0.529162",
"0.52835155",
"0.5162745",
"0.50119376",
"0.5004625",
"0.4955292",
"0.48993704",
"0.48813507",
"0.4874034",
"0.48681337",
"0.48635754",
"0.48599645",
"0.48372293",
"0.47872996",
"0.4784473",
"0.47788066",
"0.47605547",
"0.47595233",
"0.47251967",
"0.47077352",
"0.... | 0.44385996 | 59 |
This method picks the closest vertice to the pickray. | public boolean pickModelVertice(Linef pickray){
int shortestIndex = -1;
int oldPickedIndex = -1;
float shortestDistance = -1;
float dist = 0;
Vertice pickVertice;
for(int i = 0; i < getModelVerticesCount(); i++){
pickVertice = getModelVertice(i);
if(pickVertice.isPickable){
if(pickVertice.isPicked... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public PolytopeTriangle findClosest(){\n\t\t//OPTIMIZATION MOVE THIS TO THE ADD FUNCTION AND HAVE IT BE THE RETURN VALUE\n\t\tfloat maxDist = faces.get(0).getDistance();\n\t\tint index = 0;\n\t\tfor(int curIndex = 1; curIndex < faces.size(); curIndex++){\n\t\t\tfloat distance = faces.get(curIndex).getDistance();\n... | [
"0.59870195",
"0.5925496",
"0.57142776",
"0.57129186",
"0.5539857",
"0.5483244",
"0.5453876",
"0.5345575",
"0.5311718",
"0.5310502",
"0.53073436",
"0.52785486",
"0.52732366",
"0.52471596",
"0.52326626",
"0.52317894",
"0.51844126",
"0.5156531",
"0.51295805",
"0.51113784",
"0.5... | 0.64428055 | 0 |
Returns the picked ModelVertice. if there is no picked Vertice, this method returns null. | public Vertice getPickedModelVertice(){
Vertice pickVertice;
for(int i = 0; i < getModelVerticesCount(); i++){
pickVertice = getModelVertice(i);
if(pickVertice.isPicked){
return pickVertice;
}
}
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Vertice selectPickedModelVertice(){\n\t\tunselectAllVertices();\n\t\tVertice pickVertice = getPickedModelVertice();\n\t\tif(pickVertice != null){\n\t\t\tselectModelVertice(pickVertice);\n\t\t\treturn pickVertice;\n\t\t}\n\t\treturn null;\n\t}",
"public Vertice getModelVertice(Vector3f _pos){\n\t\tint shor... | [
"0.8876604",
"0.6736848",
"0.6730109",
"0.6114108",
"0.607085",
"0.5972456",
"0.5966448",
"0.59313315",
"0.5853535",
"0.56558114",
"0.562581",
"0.5589932",
"0.5482267",
"0.54772043",
"0.54648507",
"0.5374468",
"0.5373825",
"0.53589606",
"0.533774",
"0.5336758",
"0.5312115",
... | 0.90089417 | 0 |
Selects the picked Vertice and returns it. if there is no picked Vertice, this method returns null. | public Vertice selectPickedModelVertice(){
unselectAllVertices();
Vertice pickVertice = getPickedModelVertice();
if(pickVertice != null){
selectModelVertice(pickVertice);
return pickVertice;
}
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Vertice getPickedModelVertice(){\n\t\tVertice pickVertice;\n\t\tfor(int i = 0; i < getModelVerticesCount(); i++){\n\t\t\tpickVertice = getModelVertice(i);\n\t\t\tif(pickVertice.isPicked){\n\t\t\t\treturn pickVertice;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"private ItemSlot getSelectedSlot() {\n\t\tfor(I... | [
"0.7540595",
"0.6040921",
"0.5992864",
"0.59802496",
"0.591888",
"0.5852647",
"0.56696117",
"0.55510724",
"0.54909325",
"0.5417886",
"0.54176074",
"0.5415936",
"0.5395257",
"0.5394323",
"0.530395",
"0.5295455",
"0.5290424",
"0.5282577",
"0.5275693",
"0.52579784",
"0.5254113",... | 0.8280488 | 0 |
Returns all the selected vertices. | public Vertice[] getSelectedVertices(){
Vertice selectedVertice;
Vertice[] vertices = new Vertice[getSelectedModelVerticeCount()];
int index = 0;
for(int i = 0; i < getModelVerticesCount(); i++){
selectedVertice = getModelVertice(i);
if(selectedVertice.isSelected)
vertices[index++] = selectedVertice;
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Set<Vertex> getVertices();",
"public List<Vertex> findAllVertices() throws SQLException {\n\t\treturn rDb.findAllVertices();\n\t}",
"public E[] verticesView ()\n {\n E[] allVertices = (E[]) new Object[lastIndex + 1];\n for (int index = 0; index < allVertices.length; index++)\n allVe... | [
"0.7526041",
"0.72978586",
"0.72455865",
"0.72095704",
"0.71612847",
"0.71452045",
"0.71452045",
"0.7133827",
"0.7108127",
"0.71078414",
"0.7045863",
"0.7025769",
"0.70140535",
"0.69344646",
"0.6876221",
"0.68692535",
"0.68539953",
"0.6798173",
"0.6762666",
"0.6747098",
"0.67... | 0.8007966 | 0 |
Select the provided Vertice and also Select corresponding texture Vertices | public void selectModelVertice(Vertice vertice) {
Segment tmpModelSegment;
Face tmpSegmentFace;
Vertice tmpTextureVertice, tmpVertice;
for (int s = 0; s < getSegmentCount(); s++) {
tmpModelSegment = segments.get(s);
for (int f = 0; f < tmpModelSegment.getFaceCount(); f++) {
tmpSegmentFace = tmpModel... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int selectTextureVertices(float x1, float y1, float x2, float y2) {\n\t\tint selectflag = 0;\n\n\t\tSegment tmpModelSegment;\n\t\tFace tmpSegmentFace;\n\t\tVertice tmpTextureVertice, tmpVertice;\n\n\t\tfor (int s = 0; s < getSegmentCount(); s++) {\n\t\t\ttmpModelSegment = segments.get(s);\n\t\t\tfor (int f ... | [
"0.67793584",
"0.62004507",
"0.6048348",
"0.5820134",
"0.5717411",
"0.5668232",
"0.5643137",
"0.55804604",
"0.5541299",
"0.5538349",
"0.55189127",
"0.5380053",
"0.5310415",
"0.5235282",
"0.5234431",
"0.5215944",
"0.51955414",
"0.5144626",
"0.5144626",
"0.51323754",
"0.5120584... | 0.7007994 | 0 |
This method selects all model vertices plus their corresponding texture vertices that are within the range | public int selectModelVertices(int useX, int useY, int useZ, float x1, float y1, float z1, float x2, float y2, float z2) {
int selectflag = 0;
Segment tmpModelSegment;
Face tmpSegmentFace;
Vertice tmpTextureVertice, tmpVertice;
for (int s = 0; s < getSegmentCount(); s++) {
tmpModelSegment = segments.get(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int selectTextureVertices(float x1, float y1, float x2, float y2) {\n\t\tint selectflag = 0;\n\n\t\tSegment tmpModelSegment;\n\t\tFace tmpSegmentFace;\n\t\tVertice tmpTextureVertice, tmpVertice;\n\n\t\tfor (int s = 0; s < getSegmentCount(); s++) {\n\t\t\ttmpModelSegment = segments.get(s);\n\t\t\tfor (int f ... | [
"0.62435704",
"0.55295765",
"0.5523497",
"0.5167066",
"0.5138906",
"0.5118113",
"0.5055209",
"0.5047639",
"0.50421715",
"0.5028854",
"0.50262594",
"0.5005284",
"0.49960023",
"0.4939868",
"0.49282217",
"0.49247128",
"0.49226448",
"0.49146363",
"0.4906152",
"0.488482",
"0.48767... | 0.5325637 | 3 |
this method removes model and texture vertices from the selection. | public int unSelectModelVertices(int useX, int useY, int useZ, float x1, float y1, float z1, float x2, float y2, float z2) {
int unselectflag = 0;
Segment tmpModelSegment;
Face tmpSegmentFace;
Vertice tmpVertice, tmpTextureVertice;
for (int s = 0; s < getSegmentCount(); s++) {
tmpModelSegment = segments.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void unSelect() {\n /** if we had some object selected we need to delete it's Transformation Points. */\n if(this.action.isSelect() && this.curr_obj != null) {\n this.canvas.remove(this.transformPoints);\n this.transformPoints.clear();\n this.curr_obj = null;\... | [
"0.69357824",
"0.6890169",
"0.6433511",
"0.6375955",
"0.63036686",
"0.63033044",
"0.62591696",
"0.62513256",
"0.6251072",
"0.6231121",
"0.62217075",
"0.6216716",
"0.62039447",
"0.6202431",
"0.6149007",
"0.6144367",
"0.6118873",
"0.6096248",
"0.6087754",
"0.6079631",
"0.607324... | 0.64067477 | 3 |
This method selects all model and texture vertices that are within the range | public int selectTextureVertices(float x1, float y1, float x2, float y2) {
int selectflag = 0;
Segment tmpModelSegment;
Face tmpSegmentFace;
Vertice tmpTextureVertice, tmpVertice;
for (int s = 0; s < getSegmentCount(); s++) {
tmpModelSegment = segments.get(s);
for (int f = 0; f < tmpModelSegment.getFa... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int unSelectTextureVertices(float x1, float y1, float x2, float y2) {\n\t\tint unselectflag = 0;\n\n\t\tSegment tmpModelSegment;\n\t\tFace tmpSegmentFace;\n\t\tVertice tmpTextureVertice;\n\n\t\tfor (int s = 0; s < getSegmentCount(); s++) {\n\t\t\ttmpModelSegment = segments.get(s);\n\t\t\tfor (int f = 0; f <... | [
"0.5685102",
"0.5537085",
"0.54144835",
"0.541205",
"0.54100746",
"0.539272",
"0.52758867",
"0.5263875",
"0.5211999",
"0.51620024",
"0.5161296",
"0.5161013",
"0.5125662",
"0.50982255",
"0.509591",
"0.50386524",
"0.50309736",
"0.50274765",
"0.50098693",
"0.49969175",
"0.498427... | 0.6369023 | 0 |
this method removes ONLY texture vertices from the selection. it doesnt affect the model vertice selection, since several texture vertices can be associated with one model vertice (but not the other way around) | public int unSelectTextureVertices(float x1, float y1, float x2, float y2) {
int unselectflag = 0;
Segment tmpModelSegment;
Face tmpSegmentFace;
Vertice tmpTextureVertice;
for (int s = 0; s < getSegmentCount(); s++) {
tmpModelSegment = segments.get(s);
for (int f = 0; f < tmpModelSegment.getFaceCount(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int unSelectModelVertices(int useX, int useY, int useZ, float x1, float y1, float z1, float x2, float y2, float z2) {\n\t\tint unselectflag = 0;\n\n\t\tSegment tmpModelSegment;\n\t\tFace tmpSegmentFace;\n\t\tVertice tmpVertice, tmpTextureVertice;\n\n\t\tfor (int s = 0; s < getSegmentCount(); s++) {\n\t\t\tt... | [
"0.6459548",
"0.6355808",
"0.61685807",
"0.614653",
"0.60839313",
"0.6043705",
"0.6019222",
"0.6007089",
"0.59332156",
"0.5857865",
"0.57926047",
"0.57868576",
"0.57540977",
"0.5750349",
"0.57496774",
"0.5741234",
"0.5625527",
"0.5625107",
"0.56243306",
"0.55844915",
"0.55753... | 0.7233663 | 0 |
Utils A Debug method that prints information about the loaded model This method only prints information if the debugMode is true. V Size = The number of vertex positions Vt Size = The number of UV positions Vn Size = The number of normals G Size = the number of Groups in the model S Size = the number of segments in the... | public void printModelInfo() {
Debug.info("Jay3dModel",
"Obj Name: \t\t" + name + "\n" +
"V Size: \t\t" + modelVertices.size() + "\n" +
"Vt Size: \t\t" + textureVertices.size() + "\n" +
"Vn Size: \t\t" + normalVertices.size() + "\n" +
"G Size: \t\t" + groups.size() + "\n" +
"S Size: \t\t" +... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void cmdInfoModel() throws NoSystemException {\n MSystem system = system();\n MMVisitor v = new MMPrintVisitor(new PrintWriter(System.out, true));\n system.model().processWithVisitor(v);\n int numObjects = system.state().allObjects().size();\n System.out.println(numObject... | [
"0.5954813",
"0.5738347",
"0.53943413",
"0.5358545",
"0.53295994",
"0.53266007",
"0.5288427",
"0.527085",
"0.527008",
"0.5215582",
"0.51406956",
"0.5132485",
"0.5050728",
"0.5045306",
"0.50425833",
"0.5032753",
"0.4983462",
"0.49152908",
"0.489981",
"0.48950318",
"0.4884458",... | 0.76527226 | 0 |
Clears all Vectors ready for loading in a new model. Doing something like this OBJModel model = new OBJModel(this, "myobj.obj"); // do something with model model.clear(); model.load("myobj.obj"); is vastly better for memory use than doing something like this OBJModel model = new OBJModel(this, "myobj.obj"); // do somet... | public void reset() {
modelVertices.clear();
textureVertices.clear();
normalVertices.clear();
groups.clear();
segments.clear();
Debug.info("Jay3dModel","OBJModel is empty");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void clearModel() {\r\n this.model.clear();\r\n resetValuesFromModel();\r\n }",
"public synchronized void clear() {\n _setModel(null);\n _lastParseTime = -1;\n }",
"public void clearCache() {\n textureCache.clear();\n modelCache.clear();\n blockModelCache.cle... | [
"0.6609487",
"0.64385",
"0.6077179",
"0.58524746",
"0.5820758",
"0.58199424",
"0.5803625",
"0.57945895",
"0.57436866",
"0.5735909",
"0.5698542",
"0.56395656",
"0.5633575",
"0.56185704",
"0.5594865",
"0.5594013",
"0.55885047",
"0.5579943",
"0.55496126",
"0.55431575",
"0.552084... | 0.70036983 | 0 |
Set's the beginShape mode for drawing the model. This will vary depending on the model and the export settings. A safe bet is to triangulate the model before exporting and set the drawmode to TRANGLES. Also due to inconsistencies in OPENGL points, the POINTS mode may draw nothing in OPENGL. A common misconception is th... | public void shapeMode(int mode) {
this.shapeMode = mode;
switch (mode) {
case (POINTS):
Debug.info("Jay3dModel","draw mode:\t\tPOINTS");
break;
case (LINES):
Debug.info("Jay3dModel","draw mode:\t\tLINES");
break;
case (POLYGON):
Debug.info("Jay3dModel","draw mode:\t\tPOLYGON");
break;
cas... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void beginDraw(int renderMode)\r\n\t{\r\n\r\n\t\tswitch(renderMode) {\r\n\t\tcase POINT:\r\n\t\t\tgl.glBegin(GL_POINTS);\r\n\t\t\tbreak;\r\n\t\tcase POLYGON:\r\n\t\t\tgl.glBegin(GL_POLYGON);\r\n\t\t\tbreak;\r\n\t\tcase POLYLINE:\r\n\t\t\tgl.glBegin(GL_LINE_STRIP);\r\n\t\t\tbreak;\r\n\t\tcase LINE:\r\n\t\t\t... | [
"0.6363153",
"0.60473955",
"0.5877679",
"0.58606374",
"0.58424807",
"0.5789455",
"0.54724985",
"0.5442998",
"0.54322755",
"0.5415266",
"0.5395645",
"0.53613925",
"0.5267706",
"0.52433574",
"0.5241105",
"0.5229722",
"0.51752084",
"0.51578903",
"0.51378477",
"0.51317245",
"0.50... | 0.7024143 | 0 |
Draw The manual load method for obj files. This method is automaticly called when using Constructors that include the file name The method uses the Processing createReader() function to get a BufferedReader object in order to read the file one line at a time. This is slightly better method than loadStrings() as it's le... | public void load(String filename) {
setup();
parseOBJ(getBufferedReader(filename));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void loadFromOBJThreaded(Context context, String filename) {\n OBJParser objparser = new OBJParser();\n objparser.loadFromOBJ(context, filename);\n SquareCoords = objparser.getVertices();\n UVCoords = objparser.getUVVertices();\n DrawOrder = objparser.getOrder();\n\n ... | [
"0.66140014",
"0.6410042",
"0.61822915",
"0.6148177",
"0.6062654",
"0.60162336",
"0.5986176",
"0.5951255",
"0.58827275",
"0.58704746",
"0.5808178",
"0.5728566",
"0.5704355",
"0.5684207",
"0.5663309",
"0.5657725",
"0.5646525",
"0.56403565",
"0.5617272",
"0.56009847",
"0.558293... | 0.6603044 | 1 |
This creates a 3d model from a list of vertices Lines from the vertices to the indicated plane are drawn | public void create(final ArrayList<Vertice> _vertices, final int _plane){
setup();
Thread t = new Thread(){
public void run(){
defaultGroup = new Group("default");
defaultSegment = new Segment();
groups.clear();
segments.clear();
// adding default variables to the global data table creating ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Object3D() {\n objectVectors = new ArrayList<>();\n linesToDraw = new ArrayList<>();\n }",
"public void setVertices(float x0, float y0, float z0,\n float x1, float y1, float z1,\n float x2, float y2, float z2) {\n x_array[0] = x0;\n ... | [
"0.65756047",
"0.6160857",
"0.6144841",
"0.613779",
"0.60452765",
"0.6004471",
"0.5996791",
"0.59704936",
"0.5897461",
"0.5876641",
"0.58616877",
"0.5804553",
"0.57935536",
"0.5783976",
"0.5713465",
"0.5702555",
"0.5702066",
"0.5665465",
"0.5634055",
"0.5627204",
"0.56014156"... | 0.6832642 | 0 |
Obj Parsing The method that does all the grunt work in reading and processing the obj file. | private void parseOBJ(final BufferedReader bread) {
//create a new thread to fill out darray
Thread t = new Thread(){
public void run()
{
try {
defaultGroup = new Group("default");
defaultSegment = new Segment();
groups.clear();
segments.clear();
// adding default variables to th... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void parse(String objFileName) {\n float start_time = SystemClock.uptimeMillis();\n\n flushAllBuffers();\n inputMaterialTemplateLibrary(objFileName.concat(\".mtl\"));\n parseObjFile(objFileName.concat(\".obj\"));\n\n float elapsed_time = (SystemClock.uptimeMillis() - start... | [
"0.6711144",
"0.62886745",
"0.62886745",
"0.62886745",
"0.61252964",
"0.60870665",
"0.5969684",
"0.59595484",
"0.5944431",
"0.59219956",
"0.5881156",
"0.5830102",
"0.58296055",
"0.5730308",
"0.5725997",
"0.5711698",
"0.5691446",
"0.5691446",
"0.5691446",
"0.5691446",
"0.56914... | 0.61271024 | 4 |
This method updates the complete datastructure. It should only be necessary to be called after reading the modeldata from a file or after a clone. | private void updateSegments(){
for (int i = 0; i < getSegmentCount(); i++) {
Segment s = segments.get(i);
for (int j = 0; j < s.getFaceCount(); j++) {
Face f = s.getFace(j);
int[] vtIndex = f.getVertexIndices();
int[] nmIndex = f.getNormalIndices();
int[] uvIndex = f.getTextureIndices();
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void updateModel() {\n\t\t// Set the mode to validation\n\t\tmode = UPDATE;\n\t\t// Traverses the source and updates the model when UML elements are\n\t\t// missing\n\t\tinspect();\n\t}",
"@Override\r\n\tpublic void updateData() {\n\t\t\r\n\t}",
"public void updateModel() {\n\t\tIterator<Cell> itr = ite... | [
"0.710675",
"0.66652167",
"0.6602204",
"0.6483167",
"0.6319034",
"0.6180138",
"0.6142496",
"0.6137038",
"0.6084589",
"0.6063984",
"0.6046069",
"0.60348845",
"0.59736025",
"0.59438336",
"0.59297675",
"0.59249896",
"0.59189886",
"0.58932674",
"0.5889971",
"0.586347",
"0.585891"... | 0.0 | -1 |
This method refreshes the complete model structure. it should only be called if the model vertices have been manipulated | public void refreshGeometry(){
for (int i = 0; i < getSegmentCount(); i++) {
segments.get(i).refreshGeometry();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void updateModel() {\n\t\tIterator<Cell> itr = iterator();\n\t\twhile(itr.hasNext()) itr.next().update();\n\t\titr = iterator();\n\t\twhile(itr.hasNext()) {\n\t\t\t(itr.next()).nextGeneration();\n\t\t}\n\t\tupdateGraph();\n\t}",
"public void reload() {\n\t\tTextMeshData tmd = font.loadText(this);\n\t\tmod... | [
"0.71619",
"0.67599875",
"0.6495194",
"0.63716835",
"0.6357216",
"0.63509077",
"0.6317457",
"0.6304745",
"0.6280975",
"0.62294805",
"0.6200606",
"0.6173971",
"0.61454517",
"0.6144338",
"0.6143573",
"0.61304945",
"0.61192894",
"0.6046553",
"0.60245436",
"0.59980243",
"0.597092... | 0.61464095 | 12 |
Get and Set Functions | public void setShapeMode(int _shapeMode) {
shapeMode = _shapeMode;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n\tpublic void get_test()\n\t{\n\t\tb.set(1,2,'x');\n\t\tassertEquals(b.get(1,2),'x');\n\t}",
"public void get() {\n }",
"boolean get();",
"protected abstract Set method_1559();",
"String setValue();",
"String get();",
"String get();",
"public String get();",
"public T get() {\n ret... | [
"0.6328697",
"0.6216541",
"0.6204095",
"0.6189252",
"0.618235",
"0.6076129",
"0.6076129",
"0.60719305",
"0.60358536",
"0.6012783",
"0.6012783",
"0.59713805",
"0.59564537",
"0.59532213",
"0.5856841",
"0.5833762",
"0.58087",
"0.5797879",
"0.5792103",
"0.5792103",
"0.5792103",
... | 0.0 | -1 |
Gets the size of the Groups from the obj Model. At the moment groups are an unexplored feature. So you can get the size, but it's not going to do much for you. | public int getGroupCount() {
return this.groups.size();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int Size() {\n return group_.Size();\n }",
"int getGroupingSize() {\n return groupingSize;\n }",
"public AVT getGroupingSize()\n {\n return m_groupingSize_avt;\n }",
"public static int size_group() {\n return (8 / 8);\n }",
"public long getGroupsCount() {\r\n return groupsC... | [
"0.69351465",
"0.664167",
"0.6493698",
"0.6395221",
"0.6240581",
"0.61024785",
"0.6097559",
"0.6071156",
"0.60345393",
"0.5977805",
"0.5801449",
"0.5740803",
"0.5739723",
"0.5713857",
"0.5696714",
"0.5662884",
"0.5646015",
"0.56455487",
"0.5642366",
"0.5626131",
"0.56192636",... | 0.6208196 | 5 |
Returns the group via name Until I find a practical use for Groups this feature isn't going anywhere. | public Group getGroup(String groupName) {
return this.groups.get(groupName);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public Group getUserGroup(String name) {\n return this.store.get(Group.class, \"getName\", name);\n }",
"public String getGroupId(String name);",
"Object getGroupID(String groupName) throws Exception;",
"public String getGroup() {\n return groupName;\n }",
"public String getGro... | [
"0.7788999",
"0.77599776",
"0.77288246",
"0.75953954",
"0.751932",
"0.74589735",
"0.743622",
"0.74085075",
"0.738118",
"0.7346758",
"0.7336761",
"0.7297971",
"0.7288367",
"0.72719187",
"0.72719187",
"0.7223416",
"0.7207311",
"0.71905386",
"0.7188286",
"0.71818215",
"0.7177328... | 0.0 | -1 |
Gets the number of segments in the model. A segment is a unique material and an array of indexes into the vert, norm and uv Vectors | public int getSegmentCount() {
return this.segments.size();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getNumSegments();",
"public int numberOfSegments() {\n return segments.size();\n }",
"public int get_nr_of_segments() {\n return nr_of_segments;\n }",
"public int numberOfSegments() {\n return nOfSegs;\n }",
"public int numberOfSegments() {\n return this.segments.length;\... | [
"0.7562649",
"0.71844083",
"0.70431435",
"0.7027977",
"0.70046693",
"0.69840163",
"0.69837534",
"0.69566035",
"0.6913887",
"0.6851444",
"0.68326527",
"0.68088204",
"0.6774929",
"0.6655847",
"0.6640123",
"0.6635857",
"0.6626862",
"0.6626862",
"0.6623179",
"0.660627",
"0.654049... | 0.738085 | 1 |
Gets the total number of faces in the model. This is the total of the index count across all segments This is mostly used when you need raw verts for physics simulation | public int getFaceCount() {
int count = 0;
for (int i = 0; i < getSegmentCount(); i++) {
count += getIndexCountInSegment(i);
}
return count;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getFaceCount() {\n \tif (indicesBuf == null)\n \t\treturn 0;\n \tif(STRIPFLAG){\n \t\treturn indicesBuf.asShortBuffer().limit();\n \t}else{\n \t\treturn indicesBuf.asShortBuffer().limit()/3;\n \t}\n }",
"public int getFaceCount() {\r\n return faceCount;\r\n\t}",
"publi... | [
"0.76807386",
"0.71662724",
"0.6856725",
"0.67808324",
"0.6675287",
"0.66490954",
"0.66229886",
"0.66177917",
"0.6606081",
"0.6606081",
"0.6605265",
"0.65717244",
"0.6540187",
"0.64655346",
"0.6448003",
"0.6433563",
"0.6423831",
"0.64112157",
"0.63978803",
"0.63696456",
"0.63... | 0.8203898 | 0 |
Gets an array of Vector3fs that make up the position coordinates of the face. This method needs one int that must be between 0 and the getTotalFaceCount() This is mostly used when you need raw verts for physics simulation | public Vector3f[] getFaceVertices(int faceNumber) {
int segmentNumber = 0;
int indexNumber = faceNumber;
// debug.println("segmentNumber, indexNumber = " + segmentNumber + " " +
// indexNumber);
while (indexNumber >= getIndexCountInSegment(segmentNumber)) {
indexNumber -= getIndexCountInSegment(segment... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public float[] getVertices() {\n/* 793 */ COSBase base = getCOSObject().getDictionaryObject(COSName.VERTICES);\n/* 794 */ if (base instanceof COSArray)\n/* */ {\n/* 796 */ return ((COSArray)base).toFloatArray();\n/* */ }\n/* 798 */ return null;\n/* */ }",
"public void comp... | [
"0.6841695",
"0.67154944",
"0.6629103",
"0.6562674",
"0.6545478",
"0.650169",
"0.6483757",
"0.64139426",
"0.6393875",
"0.6367049",
"0.63296574",
"0.6323243",
"0.6138591",
"0.6097701",
"0.60254765",
"0.60202324",
"0.5961724",
"0.5931817",
"0.5908317",
"0.5886758",
"0.5862205",... | 0.6827647 | 1 |
Gets the number of Index count in the Segment. In effect this is the number of faces in the Segment. As each Index is an Array of ints to the vert, normal, or uv Array | public int getIndexCountInSegment(int i) {
return (segments.get(i)).getFaceCount();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getFaceCount() {\n\t\tint count = 0;\n\n\t\tfor (int i = 0; i < getSegmentCount(); i++) {\n\t\t\tcount += getIndexCountInSegment(i);\n\t\t}\n\n\t\treturn count;\n\t}",
"public int getFaceCount() {\n \tif (indicesBuf == null)\n \t\treturn 0;\n \tif(STRIPFLAG){\n \t\treturn indicesBuf.asShor... | [
"0.79149854",
"0.7548749",
"0.71819097",
"0.6894646",
"0.6838808",
"0.6780184",
"0.66934186",
"0.6637356",
"0.6634721",
"0.66124874",
"0.6568975",
"0.656506",
"0.65458447",
"0.6509524",
"0.6507593",
"0.65063614",
"0.65063614",
"0.65017414",
"0.64995366",
"0.64629453",
"0.6459... | 0.7494436 | 2 |
there are just to many casts here. It feels very muddy. Returns an array of ints. Use these ints to get the verts of a single face. | public int[] getModelVerticeIndicesInSegment(int i, int num) {
return ((segments.get(i)).getFace(num)).getVertexIndices();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int[] getVertices() {\n long cPtr = RecastJNI.rcContour_verts_get(swigCPtr, this);\n if (cPtr == 0) {\n return null;\n }\n return Converter.convertToInts(cPtr, getNumberOfVertices() * 4);\n }",
"public int[] getRawVertices() {\n long cPtr = RecastJNI.rcCont... | [
"0.7179979",
"0.68534076",
"0.6814767",
"0.68021506",
"0.67135805",
"0.66323173",
"0.65449643",
"0.65138745",
"0.6449929",
"0.63975185",
"0.63945466",
"0.6317719",
"0.63118947",
"0.6248704",
"0.6153924",
"0.612041",
"0.6074376",
"0.6007409",
"0.6003198",
"0.5953439",
"0.59516... | 0.0 | -1 |
Returns an array of ints. Use these ints to get the normals of a single face. | public int[] getNormalVerticeIndicesInSegment(int i, int num) {
return ((segments.get(i)).getFace(num)).getNormalIndices();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public float[] getNormals() {\r\n\t\treturn normals;\r\n\t}",
"public Vector2f[] getNormals() {\n\t\treturn normals.clone();\n\t}",
"public Vector[] getNormals() {\n\t\treturn this.normals;\n\t}",
"private Vector normal(int[] face) {\n\t\tVector point0 = verts[face[0]];\n\t\tVector point1 = verts[face[1]];\n... | [
"0.7432708",
"0.7207176",
"0.7147121",
"0.6755719",
"0.665955",
"0.64739674",
"0.6465947",
"0.62126005",
"0.62011427",
"0.619384",
"0.6170841",
"0.612337",
"0.6021203",
"0.59051734",
"0.5893201",
"0.588541",
"0.5878186",
"0.5834393",
"0.5833509",
"0.58121586",
"0.57590103",
... | 0.63533896 | 7 |
Returns an array of ints. Use these ints to get the UV's of a single face. | public int[] getTextureVerticeIndicesInSegment(int i, int num) {
return ((segments.get(i)).getFace(num)).getTextureIndices();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void computeTextureUVCoordinates()\n\t{\n\t\tthis.faceTextureUCoordinates = new float[faceCount][];\n\t\tthis.faceTextureVCoordinates = new float[faceCount][];\n\n\t\tfor (int i = 0; i < faceCount; i++)\n\t\t{\n\t\t\tint textureCoordinate;\n\t\t\tif (textureCoordinates == null)\n\t\t\t{\n\t\t\t\ttextureCoor... | [
"0.74537784",
"0.68096393",
"0.6660561",
"0.6515437",
"0.6439442",
"0.62615955",
"0.62305754",
"0.6110882",
"0.6103084",
"0.6087566",
"0.5950763",
"0.59250253",
"0.59148926",
"0.5900758",
"0.5787285",
"0.577086",
"0.57622945",
"0.5738833",
"0.57350105",
"0.5715653",
"0.571424... | 0.60279745 | 10 |
Get's the total number of Normals in the model. It can happen that the Normal count is identical to the Vert count. This will depend on the effecency of the exporter that has been used. In a situation where the count is identical often there is a relationship between a certain numbered Normal and the same numbered Vert... | public int getNormalVerticesCount() {
return this.normalVertices.size();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getNormalCount() {\n \tif (normBuf == null)\n \t\treturn 0;\n \treturn normBuf.asFloatBuffer().limit()/3;\n }",
"public int getVertexCount() {\n \tif (vertBuf == null)\n \t\treturn 0;\n \treturn vertBuf.asFloatBuffer().limit()/3;\n }",
"public void calculateNormals() {\n ... | [
"0.6922991",
"0.5695435",
"0.5619871",
"0.5510084",
"0.55092275",
"0.54930615",
"0.5492045",
"0.54811984",
"0.54676336",
"0.5435953",
"0.54300594",
"0.5415007",
"0.5396291",
"0.5392107",
"0.5319994",
"0.5260595",
"0.52589923",
"0.52583593",
"0.5225788",
"0.522489",
"0.5215456... | 0.7062888 | 0 |
Get's the total number of UVs in the model. | public int getTextureVerticeCount() {
return this.textureVertices.size();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getVdusCount() {\n return vdus_.size();\n }",
"public int getVdusCount() {\n if (vdusBuilder_ == null) {\n return vdus_.size();\n } else {\n return vdusBuilder_.getCount();\n }\n }",
"public int getNumberOfVMOnMobile(){\... | [
"0.7592604",
"0.74073523",
"0.67503154",
"0.6620951",
"0.66192144",
"0.6489154",
"0.63931113",
"0.63781726",
"0.6345786",
"0.63278276",
"0.63260937",
"0.629401",
"0.6207105",
"0.6206358",
"0.6203691",
"0.61686635",
"0.6156994",
"0.61564887",
"0.60963106",
"0.60504425",
"0.604... | 0.5581844 | 73 |
Returns a reference to a numbered Vertex. As this is a reference to the original vertex you can directly manipulate the Vector3f without having to set it back. Vector3f tmp = model.getVertex(0); tmp.x += 10; | public Vertice getModelVertice(int i) {
return modelVertices.get(i);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getVertexNumber() {\n\t\treturn _vertexId;\n\t}",
"public int getvertex() {\n\t\treturn this.v;\n\t}",
"Vertex getVertex(int index);",
"Vertex getVertex();",
"public Vertex getVertex() {\n return curr;\n }",
"public V getVertex(int index);",
"public VertexObject getReferenc... | [
"0.6785759",
"0.67172605",
"0.66957873",
"0.6648687",
"0.65620846",
"0.6460557",
"0.6387435",
"0.6361719",
"0.63149035",
"0.62027925",
"0.61295474",
"0.60635287",
"0.6059213",
"0.603456",
"0.60258496",
"0.5957184",
"0.5955276",
"0.5934471",
"0.59342694",
"0.5844153",
"0.58341... | 0.53901434 | 56 |
Gets the nearest vertice to specified position (local coordinate system) | public Vertice getModelVertice(Vector3f _pos){
int shortestIndex = -1;
float shortestDistance = Float.MAX_VALUE;
float dist = Float.MAX_VALUE;
Vertice pickVertice;
for(int i = 0; i < getModelVerticesCount(); i++){
pickVertice = getModelVertice(i);
dist = _pos.distance(pickVertice);
if(dist < shortest... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Pair<Vertex, Double> closestVertexToPath(Loc pos);",
"public abstract Proximity2DResult getNearestVertex(Geometry geom,\n\t\t\tPoint inputPoint);",
"public void findNearestToMouse(Point2D position) throws NoninvertibleTransformException{\n //Take insets into account when using mouseCoordinates.\n ... | [
"0.67045563",
"0.6245722",
"0.6234485",
"0.60953885",
"0.6025677",
"0.5997269",
"0.5988855",
"0.59754163",
"0.59734017",
"0.5959683",
"0.59484684",
"0.5897144",
"0.5896417",
"0.5769591",
"0.57569623",
"0.5736649",
"0.56893736",
"0.56782585",
"0.56563514",
"0.5644093",
"0.5637... | 0.64828324 | 1 |
Returns a reference to a numbered Normal. As this is a reference to the original normal you can directly manipulate the Vector3f without having to set it back. Vector3f tmp = model.getNormal(0); tmp.mult(1); | public Vector3f getNormalVertice(int i) {
return normalVertices.get(i);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Vector3 getNormal() {\n\t\tdouble mag = this.magnitude();\n\t\tif (mag > 0) {\n\t\t\treturn new Vector3(\n\t\t\t\t\tthis.x/mag,\n\t\t\t\t\tthis.y/mag,\n\t\t\t\t\tthis.z/mag\n\t\t\t\t\t);\n\t\t} else {\n\t\t\treturn new Vector3();\n\t\t}\n\t}",
"@java.lang.Override\n public godot.wire.Wire.Vector3 getNo... | [
"0.73927855",
"0.71174544",
"0.69940716",
"0.69350886",
"0.68689775",
"0.6762545",
"0.67558366",
"0.6725687",
"0.6720074",
"0.6336328",
"0.6232656",
"0.6165838",
"0.6154093",
"0.6112204",
"0.60825056",
"0.6056573",
"0.60397774",
"0.59958375",
"0.59939426",
"0.5986201",
"0.597... | 0.64113235 | 9 |
Returns a reference to a numbered Textured Coordinate. As this is a reference to the original UV you can directly manipulate the Vector3f without having to set it back. It is important to note that the UV's of an obj model are in a NORMALIZED space (between 01). Another important issue is that the native processing ren... | public Vertice getTextureVertice(int i) {
return textureVertices.get(i);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public E3DVector2F getTextureCoordDetail0C(){\r\n return vertices[2].getTextureCoordDetail0();\r\n }",
"public E3DVector2F getTextureCoordC(){\r\n return vertices[2].getTextureCoord();\r\n }",
"public E3DVector2F getTextureCoordDetail0A(){\r\n return vertices[0].getTextureCoordDetail... | [
"0.5537527",
"0.54072255",
"0.53731245",
"0.5229835",
"0.5185733",
"0.5150753",
"0.51496845",
"0.51442933",
"0.51429373",
"0.5123912",
"0.50892365",
"0.50872797",
"0.5054016",
"0.5019899",
"0.5016298",
"0.49655917",
"0.49287397",
"0.4927129",
"0.49202657",
"0.49124748",
"0.48... | 0.5094275 | 10 |
Sets the vert at index i to the Vector3f supplied | public void setModelVertice(int i, Vertice vertex) {
(modelVertices.get(i)).set(vertex);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setModelVertice(int i, float x, float y, float z) {\n\t\t(modelVertices.get(i)).set(x, y, z);\n\t}",
"public void setTextureVertice(int i, Vertice uv) {\n\t\t(textureVertices.get(i)).set(uv);\n\t}",
"public void setVertexAt(int i, Vertex vertex) {\n vertexPositions[3*i] = vertex.position.x;\... | [
"0.753725",
"0.70824957",
"0.69982845",
"0.65694517",
"0.6273537",
"0.6182851",
"0.613532",
"0.60511327",
"0.60101384",
"0.6007561",
"0.5995074",
"0.599305",
"0.5989465",
"0.5958424",
"0.59164935",
"0.58920866",
"0.5852694",
"0.58168435",
"0.57953495",
"0.57708466",
"0.575621... | 0.6529132 | 4 |
Sets the vert at index i to the x,y,z values supplied | public void setModelVertice(int i, float x, float y, float z) {
(modelVertices.get(i)).set(x, y, z);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setVertices(float x0, float y0, float z0,\n float x1, float y1, float z1,\n float x2, float y2, float z2) {\n x_array[0] = x0;\n x_array[1] = x1;\n x_array[2] = x2;\n \n y_array[0] = y0;\n y_array[1] = y1;\n y_array[2] = y2;\n ... | [
"0.7125936",
"0.7053093",
"0.6961779",
"0.6639358",
"0.66139805",
"0.6477725",
"0.6472533",
"0.6401533",
"0.6396903",
"0.6323681",
"0.63220155",
"0.6301883",
"0.6257675",
"0.6221275",
"0.6156472",
"0.61449516",
"0.61438465",
"0.612532",
"0.61022174",
"0.6090373",
"0.6085952",... | 0.7935231 | 0 |
Sets the Normal at index i to the Vector3f supplied | public void setNormalVertice(int i, Vector3f normal) {
(normalVertices.get(i)).set(normal);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Vector3f getNormalVertice(int i) {\n\t\treturn normalVertices.get(i);\n\t}",
"public void normal(PointType n)\r\n {\r\n\t //System.out.println(\"norm: \"+n.x+\", \"+n.y+\", \"+n.z);\r\n\t\tgl.glNormal3d(n.x, n.y, n.z);\t\t\r\n\t}",
"protected void setForceNormalVector() {\n\t\tvn = forceNormalVect... | [
"0.73450285",
"0.6707429",
"0.63560504",
"0.626317",
"0.61731976",
"0.61705697",
"0.6119252",
"0.61106414",
"0.6075694",
"0.5992948",
"0.59530103",
"0.5944667",
"0.58708954",
"0.58410215",
"0.58213025",
"0.5780527",
"0.575079",
"0.571376",
"0.57023036",
"0.5691693",
"0.566494... | 0.7983795 | 0 |
Sets the UV at index i to the Vector3f supplied | public void setTextureVertice(int i, Vertice uv) {
(textureVertices.get(i)).set(uv);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setUV(float u0, float v0,\n float u1, float v1,\n float u2, float v2) {\n // sets & scales uv texture coordinates to center of the pixel\n u_array[0] = (u0 * F_TEX_WIDTH + 0.5f) * 65536f;\n u_array[1] = (u1 * F_TEX_WIDTH + 0.5f) * 65536f;\n u_arra... | [
"0.7064739",
"0.6731075",
"0.66831815",
"0.6116682",
"0.60429233",
"0.5854517",
"0.57835674",
"0.5655965",
"0.5653618",
"0.56354666",
"0.5612636",
"0.5537482",
"0.5530249",
"0.55273265",
"0.5512869",
"0.55079037",
"0.5504762",
"0.54722846",
"0.5465738",
"0.5463822",
"0.545254... | 0.77642053 | 0 |
Used in the loading of obj files and mtl files that come from mtl files. | private BufferedReader getBufferedReader(String filename) {
BufferedReader retval;
try{
retval = createReader(filename);
if (retval != null) {
return retval;
} else {
Debug.error("Jay3DModel", "Unable to load file: " + filename);
}
}catch(NullPointerException e){
Debug.error("Jay3DModel", "... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tprotected void initLoad() {\n\r\n\t}",
"public static void load(){\n StringBuilder maleNamesString = new StringBuilder();\n try (Scanner maleNamesFile = new Scanner(mnames)){\n while (maleNamesFile.hasNext()) {\n maleNamesString.append(maleNamesFile.next());... | [
"0.6074925",
"0.6009358",
"0.59987855",
"0.5960057",
"0.59271634",
"0.58578205",
"0.5852286",
"0.5852286",
"0.5852286",
"0.5811599",
"0.58075565",
"0.58075565",
"0.5801788",
"0.5798445",
"0.5785602",
"0.5771948",
"0.57692015",
"0.57576984",
"0.5747618",
"0.5739538",
"0.571140... | 0.0 | -1 |
This action calculates a total amount of airacrafts parametr | public static void runAction(AirlineManageSystem airlineCompanyManager, Scanner consoleReader) {
while (true) {
try {
if (!airlineCompanyManager.haveAirlinerCompany()) {
throw new NoAirlineCompanyException();
}
if (airlineCompany... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void total() {\n\t\t\n\t}",
"public int getTotalVariables() ;",
"public int getTotalAmount();",
"double getTotal();",
"Integer total();",
"int getSumaAdunata();",
"public int fondMagasin(){\n\tint total =this.jeton;\n\tfor(Caisse c1 : this.lesCaisses){\n\ttotal = c1.getTotal()+total;\n\t}\n\tret... | [
"0.6441949",
"0.6329662",
"0.6120817",
"0.6073445",
"0.6025423",
"0.6024639",
"0.60159874",
"0.59893715",
"0.5985754",
"0.5941732",
"0.5930206",
"0.5925657",
"0.5924467",
"0.5888733",
"0.5886186",
"0.5868714",
"0.5847659",
"0.5832481",
"0.5826584",
"0.58152324",
"0.57937306",... | 0.0 | -1 |
This method ges a total parameter type to calculate | private static TotalParametersEnum getTotalParameterTypeToCalculate(Scanner consoleReader) {
System.out.println(MessagesForUserEnum.getMenuActionCalculateTotalByParametrMessageInString());
String commandAction = consoleReader.nextLine();
TotalParametersEnum getTotalParam = TotalParametersEnum.s... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void countParams() {\n if( paramCount >= 0 ) {\n return;\n }\n Iterator<AnyType> parser = name.getSignature( types );\n paramCount = needThisParameter ? 1 : 0;\n while( parser.next() != null ) {\n paramCount++;\n }\n valueType = parser.... | [
"0.6366192",
"0.60940164",
"0.6057501",
"0.60273963",
"0.5857902",
"0.58447236",
"0.5587234",
"0.551496",
"0.5491598",
"0.5437751",
"0.54282",
"0.5424917",
"0.5375652",
"0.53328353",
"0.5315166",
"0.5288004",
"0.5285781",
"0.52736765",
"0.52720195",
"0.5270642",
"0.52598315",... | 0.6510135 | 0 |
This method show to console a total value of aircrafts weight capacity | private static void showToUserConsoleTotalAircraftsCarryingCapacity(AirlineManageSystem airlineCompanyManager)
throws AirlineEmptyParkException, NoAirlineCompanyException {
System.out.println("A total cargo carrying capacity of all aircrafts at the park is "
+ airlineCompanyManager.g... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double getWeight()\r\n {\r\n return this.weightCapacity;\r\n }",
"public void printCost() {\r\n double cost;\r\n cost = quantity * price;\r\n System.out.printf(\"Total cost = $%.2f\", cost);\r\n }",
"private static void showToUserConsoleTotalAircraftsPassengerCapacit... | [
"0.66096497",
"0.64251244",
"0.6403124",
"0.63789445",
"0.6367526",
"0.6317475",
"0.62963784",
"0.62876576",
"0.62600905",
"0.6247131",
"0.6236046",
"0.62279415",
"0.6219969",
"0.61849064",
"0.6141798",
"0.6130422",
"0.61302406",
"0.61281353",
"0.6103718",
"0.6081287",
"0.607... | 0.6562588 | 1 |
This method show to console a total value of aircrafts passenger capacity | private static void showToUserConsoleTotalAircraftsPassengerCapacity(AirlineManageSystem airlineCompanyManager)
throws AirlineEmptyParkException, NoAirlineCompanyException {
System.out.println("A total passengers capacity of all aircrafts at the park is "
+ airlineCompanyManager.getT... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static void showToUserConsoleTotalAircraftsCarryingCapacity(AirlineManageSystem airlineCompanyManager)\n throws AirlineEmptyParkException, NoAirlineCompanyException {\n System.out.println(\"A total cargo carrying capacity of all aircrafts at the park is \"\n + airlineCompan... | [
"0.7095469",
"0.7079776",
"0.64075106",
"0.63616896",
"0.63007396",
"0.61567473",
"0.61519045",
"0.6138314",
"0.60425305",
"0.6025101",
"0.60245466",
"0.60001403",
"0.5965565",
"0.59530216",
"0.59134316",
"0.5882039",
"0.5881417",
"0.58648366",
"0.5842465",
"0.584097",
"0.582... | 0.763267 | 0 |
/ List employees = employeeDS.getAll(); return AtomUtil.employeeFeed(employees, jaxb2Mashaller); | @RequestMapping(method=RequestMethod.GET, value="/emps", headers="Accept=application/atom+xml")
public @ResponseBody String getEmpFeed() {
return "no supporeted";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static List<Employee> getAllEmployees(){\n\t\t// Get the Datastore Service\n\t\tlog.severe(\"datastoremanager-\" + 366);\n\t\tDatastoreService datastore = DatastoreServiceFactory.getDatastoreService();\n\t\tlog.severe(\"datastoremanager-\" + 368);\n\t\tQuery q = buildAQuery(null);\n\t\tlog.severe(\"datastor... | [
"0.6188119",
"0.6180161",
"0.607802",
"0.607351",
"0.6061269",
"0.6038082",
"0.59805226",
"0.5975553",
"0.597319",
"0.5969998",
"0.5967221",
"0.5911279",
"0.58819896",
"0.58719236",
"0.58484805",
"0.58441913",
"0.58329946",
"0.58184505",
"0.5812895",
"0.580885",
"0.5778671",
... | 0.64921725 | 0 |
Gets the EndSignal from the Initialization Process | @Override
public String evaluateScriptOutput() throws IOException {
return getPythonHandler().getPythonOutput();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"EndEvent createEndEvent();",
"@Override\n\tprotected void onTermination() throws SimControlException {\n\t\t\n\t}",
"public int getPiEnd()\r\n\t{\r\n\t\treturn piEnd;\r\n\t}",
"public void processEnd();",
"String getOnExceptionEnd();",
"public String getEndAction() { return _endAction; }",
"public voi... | [
"0.5385886",
"0.53740317",
"0.5371878",
"0.5369657",
"0.53670704",
"0.53577155",
"0.53126234",
"0.5298973",
"0.52523315",
"0.52522355",
"0.5195117",
"0.5164877",
"0.51536167",
"0.51193166",
"0.5116081",
"0.5100799",
"0.50990456",
"0.5091529",
"0.5082697",
"0.5074748",
"0.5073... | 0.0 | -1 |
Create an entity for this test. This is a static method, as tests for other entities might also need it, if they test an entity which requires the current entity. | public static Category createEntity(EntityManager em) {
Category category = new Category()
.label(DEFAULT_LABEL)
.primaryColor(DEFAULT_PRIMARY_COLOR)
.secondaryColor(DEFAULT_SECONDARY_COLOR);
// Add required entity
User user = UserResourceIT.createEntity(em);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Entity createEntity();",
"T createEntity();",
"protected abstract ENTITY createEntity();",
"void create(E entity);",
"void create(T entity);",
"E create(E entity);",
"E create(E entity);",
"protected abstract EntityBase createEntity() throws Exception;",
"TestEntity buildEntity () {\n TestEn... | [
"0.77234906",
"0.75053483",
"0.7488514",
"0.73619807",
"0.7314892",
"0.715663",
"0.715663",
"0.7150997",
"0.7150329",
"0.707783",
"0.70170516",
"0.68032324",
"0.675297",
"0.67404056",
"0.67404056",
"0.6712416",
"0.6681341",
"0.6665129",
"0.66405314",
"0.662522",
"0.66240084",... | 0.0 | -1 |
Create an updated entity for this test. This is a static method, as tests for other entities might also need it, if they test an entity which requires the current entity. | public static Category createUpdatedEntity(EntityManager em) {
Category category = new Category()
.label(UPDATED_LABEL)
.primaryColor(UPDATED_PRIMARY_COLOR)
.secondaryColor(UPDATED_SECONDARY_COLOR);
// Add required entity
User user = UserResourceIT.createEntit... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static Student createUpdatedEntity(EntityManager em) {\n Student student = new Student()\n .firstName(UPDATED_FIRST_NAME)\n .middleName(UPDATED_MIDDLE_NAME)\n .lastName(UPDATED_LAST_NAME)\n .studentRegNumber(UPDATED_STUDENT_REG_NUMBER)\n .dateOfB... | [
"0.69442946",
"0.67882854",
"0.6787512",
"0.6719051",
"0.6694205",
"0.6690242",
"0.6662419",
"0.6636543",
"0.6621475",
"0.65156305",
"0.6509748",
"0.64480996",
"0.6424324",
"0.64215344",
"0.64207846",
"0.6416994",
"0.6411351",
"0.64103043",
"0.64047676",
"0.63943195",
"0.6390... | 0.5910467 | 98 |
Get already existing entity | @Test
@Transactional
public void getAllCategoriesByOwnerIsEqualToSomething() throws Exception {
User owner = category.getOwner();
categoryRepository.saveAndFlush(category);
Long ownerId = owner.getId();
// Get all the categoryList where owner equals to ownerId
defaultCat... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public E getEntity();",
"Entity getEntityById(Long id);",
"EntityType getEntity();",
"public Entity getEntity() {\n\t\treturn DodgeBlawk.getDataManager().getEntity(getId());\n\t}",
"protected T getEntity() {\r\n\t\treturn entity;\r\n\t}",
"public Entity getEntity() {\n if (entity != null) {\n ... | [
"0.7338229",
"0.7204485",
"0.7166024",
"0.69726723",
"0.6925972",
"0.68884",
"0.68365985",
"0.68365985",
"0.68365985",
"0.6814663",
"0.6752166",
"0.673548",
"0.6700582",
"0.66902137",
"0.66588813",
"0.6635134",
"0.6615917",
"0.66140825",
"0.66118443",
"0.66069174",
"0.6604686... | 0.0 | -1 |
Executes the search, and checks that the default entity is returned. | private void defaultCategoryShouldBeFound(String filter) throws Exception {
restCategoryMockMvc.perform(get("/api/categories?sort=id,desc&" + filter))
.andExpect(status().isOk())
.andExpect(content().contentType(MediaType.APPLICATION_JSON_VALUE))
.andExpect(jsonPath("$.[*].id... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract public boolean performSearch();",
"private void executeSearch() {\n if (!view.getSearchContent().getText().isEmpty()) {\n SearchModuleDataHolder filter = SearchModuleDataHolder.getSearchModuleDataHolder();\n //set search content text for full text search\n filter.... | [
"0.6002343",
"0.5999034",
"0.5818601",
"0.5741583",
"0.57339925",
"0.571722",
"0.5692263",
"0.56442815",
"0.56233823",
"0.55545837",
"0.54915583",
"0.54536253",
"0.5446028",
"0.5443176",
"0.54359627",
"0.5431965",
"0.5399756",
"0.5388856",
"0.5381523",
"0.537965",
"0.53690493... | 0.0 | -1 |
Executes the search, and checks that the default entity is not returned. | private void defaultCategoryShouldNotBeFound(String filter) throws Exception {
restCategoryMockMvc.perform(get("/api/categories?sort=id,desc&" + filter))
.andExpect(status().isOk())
.andExpect(content().contentType(MediaType.APPLICATION_JSON_VALUE))
.andExpect(jsonPath("$").i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract public boolean performSearch();",
"private void executeSearch() {\n if (!view.getSearchContent().getText().isEmpty()) {\n SearchModuleDataHolder filter = SearchModuleDataHolder.getSearchModuleDataHolder();\n //set search content text for full text search\n filter.... | [
"0.601686",
"0.6002167",
"0.5994474",
"0.5872058",
"0.57970196",
"0.57804906",
"0.5770515",
"0.5636761",
"0.55757916",
"0.5573412",
"0.5554509",
"0.5548558",
"0.55403936",
"0.55111706",
"0.55065143",
"0.5460818",
"0.5422821",
"0.5400522",
"0.5346139",
"0.5345745",
"0.5341298"... | 0.0 | -1 |
Created by kartik.hakim on 27/09/20 | @Repository
public interface GuestRepository extends CrudRepository<Guest,Long> {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"private stendhal() {\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@O... | [
"0.5806377",
"0.5659946",
"0.56113744",
"0.5586594",
"0.5528031",
"0.55266416",
"0.55266416",
"0.54614323",
"0.5458936",
"0.5450852",
"0.54404014",
"0.54356915",
"0.54120374",
"0.5409915",
"0.5408122",
"0.5357434",
"0.53417563",
"0.5325827",
"0.5318721",
"0.52940553",
"0.5288... | 0.0 | -1 |
Returns the Date from the given DateTime. | public static Date getDate(DateTime dateTime)
{
Calendar calendar;
Date date = null;
assert (dateTime != null);
if(dateTime != null)
{
calendar = Calendar.getInstance();
if ((dateTime.getStyle() & SWT.CALENDAR) != 0 ||
(dateTime.getStyle() & SWT.DATE) != 0)
{
date = getDate(dateTi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static Date convertToDateTime(long longdatetime) {\n if (longdatetime != 0) {\n Date date = new Date(longdatetime);\n return date;\n }\n return null;\n }",
"public static Date getDate(String datetime, String format) {\n SimpleDateFormat formatter = new ... | [
"0.589867",
"0.5883685",
"0.5789967",
"0.5746935",
"0.5736098",
"0.5667021",
"0.5593121",
"0.55689114",
"0.5567635",
"0.55534947",
"0.55534947",
"0.5550702",
"0.55267596",
"0.5502732",
"0.5497013",
"0.53002703",
"0.5294603",
"0.52589005",
"0.5252144",
"0.5248673",
"0.52286506... | 0.69781536 | 0 |
Creates a Date for the given parameters. | public static Date getDate(int year, int month, int day, int hour, int minute, int second)
{
Calendar calendar = Calendar.getInstance();
calendar.set(year, month, day, hour, minute, second);
Date date = calendar.getTime();
return date;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"DateConstant createDateConstant();",
"public Date createDate()\n {\n Timestamp maxDate = new\n Timestamp(2021 - 1900, 11,\n 31, 23, 59, 59, 0);\n Timestamp minDate = new\n Timestamp(2017 - 1900, 0,\n 1, 0, 0, 0, 0);\n long range ... | [
"0.66889817",
"0.66517335",
"0.6229228",
"0.6175881",
"0.6175881",
"0.6097125",
"0.6091022",
"0.60763884",
"0.60061353",
"0.6004941",
"0.59860903",
"0.59643584",
"0.5960361",
"0.5959842",
"0.5956045",
"0.5873182",
"0.5870965",
"0.5870965",
"0.5870965",
"0.5862574",
"0.5858618... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
protected void onResume() {
super.onResume();
if (!isAppInBackground) {
// app 从后台唤醒,进入前台
isAppInBackground = false;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
protected void onStop() {
super.onStop();
if (!isAppInForeground()) {
//app 进入后台
isAppInBackground = true ;//记录当前已经进入后台
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
legal : check horisontal spelling | @Test
public void TestLegalCorrectInputCheck(){
Assert.assertEquals(player.CorrectInputCheck("horisontal",5,1,1)
,true , " check horisontal "
);
//legal : check vertical spelling
Assert.assertEquals(player.CorrectInputCheck("vertical",5,1,1)
,true , "... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String spellcheck(String word) {\n // Check if the world is already in lcDictionary.\n String lcdictionaryLookup = lcDictionary.get(word.toLowerCase());\n if(lcdictionaryLookup != null) {\n return lcdictionaryLookup;\n }\n String reducedWord = reducedWord(word);\n String rwdictionaryL... | [
"0.6759531",
"0.65697294",
"0.6451443",
"0.6199483",
"0.61487883",
"0.61426073",
"0.60970706",
"0.60495967",
"0.6008831",
"0.6005605",
"0.597847",
"0.5954247",
"0.5875022",
"0.5841049",
"0.5838681",
"0.5783002",
"0.5774937",
"0.576591",
"0.5754564",
"0.57482314",
"0.57400364"... | 0.55837977 | 36 |
illegal : check horisontal spelling | @Test
public void TestIlegalCorrectInputCheck(){
Assert.assertEquals(player.CorrectInputCheck("horisonaz",5,1,1)
,false , " check horisontal spelling"
);
//illegal : check vertical
Assert.assertEquals(player.CorrectInputCheck("verticles",5,1,1)
,false... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String spellcheck(String word) {\n // Check if the world is already in lcDictionary.\n String lcdictionaryLookup = lcDictionary.get(word.toLowerCase());\n if(lcdictionaryLookup != null) {\n return lcdictionaryLookup;\n }\n String reducedWord = reducedWord(word);\n String rwdictionaryL... | [
"0.66452056",
"0.64685583",
"0.6437904",
"0.6363579",
"0.6306759",
"0.6275695",
"0.6259028",
"0.62338114",
"0.62279683",
"0.6227009",
"0.61674",
"0.6112371",
"0.6060542",
"0.59775174",
"0.59356683",
"0.5920206",
"0.5880187",
"0.5869354",
"0.58198655",
"0.5809945",
"0.5806516"... | 0.5662861 | 35 |
Constructor to pass color and add radius | public Circle(String color, double radius)
{
super(color);
mRadius = radius;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Circle(double radius, String color){ // 3 constructor\n this.radius = radius;\n this.color = color;\n }",
"public Circle(double radius){ // 2 constructor\n this.radius = radius;\n this.color = DEFAULT_COLOR;\n }",
"public Circle(SelectedColor color) {\n super(Nam... | [
"0.7951351",
"0.7660303",
"0.76398784",
"0.7579762",
"0.75661606",
"0.75438166",
"0.75369096",
"0.7471467",
"0.7363331",
"0.73530924",
"0.7313886",
"0.7294942",
"0.7214801",
"0.7171145",
"0.71139705",
"0.7069408",
"0.7048146",
"0.695443",
"0.69296134",
"0.68353033",
"0.681559... | 0.7407147 | 8 |
this overriding method computes and returns the Circle object's area value. | public double area()
{
double area;
area = mRadius * mRadius * 3.14159;
return area;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic double area() {\n\t\t\n\t\tdouble area = (Math.PI * Math.pow(radius, 2));\n\t\treturn area;\n\t\t\n\t}",
"public double getCircleArea();",
"@Override\n public double getArea() {\n return (int) this.radiusX * (int) this.radiusY * Math.PI;\n }",
"public double calculateArea()\n... | [
"0.8266548",
"0.82366407",
"0.81314194",
"0.81302214",
"0.81022006",
"0.80967706",
"0.80901444",
"0.8075345",
"0.8041782",
"0.8036478",
"0.8036454",
"0.80332166",
"0.80332166",
"0.80190873",
"0.8013569",
"0.8010252",
"0.7949588",
"0.79147005",
"0.79127216",
"0.7899552",
"0.78... | 0.7961575 | 16 |
This method returns the object's description (color, type, measurements, and area) as a String. | public String toString()
{
return this.getColor() + " Circle " + "with radius of " + mRadius + " and area of "
+ area();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String toString() {\r\n\t\treturn getDescription();\r\n\t}",
"@Override\n public String getDescription() {\n String desc = \"\";\n desc += \"Width: \" + getWidth() + \" Length: \" + getLength() + \"\\n\";\n desc += \"Monsters:\\n\";\n for (Monster m: monsters) {\n ... | [
"0.7232476",
"0.71716315",
"0.7156552",
"0.71560264",
"0.7135576",
"0.71327424",
"0.7100153",
"0.7099926",
"0.70958066",
"0.70615923",
"0.7049763",
"0.7004901",
"0.69829774",
"0.6927054",
"0.69064724",
"0.68870133",
"0.68793213",
"0.6844406",
"0.68401945",
"0.683411",
"0.6828... | 0.6742283 | 50 |
mListView.addHeaderView(new HomeHeaderLayout(mContext, mRecommandData.data.head)); } }); | private void showErrorView() {
Log.d("lodd", "showSuccessView: hjfj91919515");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void initialiseHeader()\n\t{\n\t ListHead head = null;\n\n\t head = super.getListHead();\n\n\t //init only once\n\t if (head != null)\n\t {\n\t \treturn;\n\t }\n\n\t head = new ListHead();\n\n\t // render list head\n\t if (this.getItemRenderer() instanceof WListItemRenderer)\n... | [
"0.6968875",
"0.6744835",
"0.6673344",
"0.66102237",
"0.6470561",
"0.64694667",
"0.62775916",
"0.62446487",
"0.62203187",
"0.6200748",
"0.6185896",
"0.6185213",
"0.6175322",
"0.617373",
"0.61509705",
"0.6123617",
"0.612338",
"0.61109805",
"0.6109593",
"0.6093202",
"0.6091731"... | 0.0 | -1 |
TODO: Rename method, update argument and hook method into UI event | public void onButtonPressed(Uri uri) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\t\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t}",
"@Override\n\t\t\t\tpublic void handle(ActionEvent event) {\n\n\t\t\t\t}",
"@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\n\t\t\t}",
"@... | [
"0.6619185",
"0.65246344",
"0.6473144",
"0.6473144",
"0.64351684",
"0.6325494",
"0.62368196",
"0.6189416",
"0.6158721",
"0.61455715",
"0.6123594",
"0.6107332",
"0.6101038",
"0.6092755",
"0.6049496",
"0.6049496",
"0.60442764",
"0.604003",
"0.604003",
"0.6007846",
"0.59999037",... | 0.0 | -1 |
This interface must be implemented by activities that contain this fragment to allow an interaction in this fragment to be communicated to the activity and potentially other fragments contained in that activity. See the Android Training lesson Communicating with Other Fragments for more information. | public interface OnFragmentInteractionListener {
// TODO: Update argument type and name
void onFragmentInteraction(Uri uri);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface OnFragmentInteractionListener {\n void onFragmentMessage(String TAG, Object data);\n}",
"public interface FragmentInteraction {\n void switchToBoardView();\n void switchToPinsView();\n void switchToPins(PDKBoard pdkBoard);\n void switchToDescription(PDKPin pin);\n}",
"public int... | [
"0.7324027",
"0.7207771",
"0.71360254",
"0.71240944",
"0.712247",
"0.7014617",
"0.6975529",
"0.6975529",
"0.6975529",
"0.69738495",
"0.6967201",
"0.69653356",
"0.6960433",
"0.6953883",
"0.6943047",
"0.6934466",
"0.6930002",
"0.69280016",
"0.6922649",
"0.6909678",
"0.6903297",... | 0.0 | -1 |
TODO: Update argument type and name | void onFragmentInteraction(Uri uri); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n public String getFirstArg() {\n return name;\r\n }",
"@Override\n public int getNumberArguments() {\n return 1;\n }",
"java.lang.String getArg();",
"@Override\n public int getArgLength() {\n return 4;\n }",
"Argument createArgument();",
"@Override\r\n\tpublic ... | [
"0.7164074",
"0.6946075",
"0.6714363",
"0.65115863",
"0.63969076",
"0.6375468",
"0.63481104",
"0.63162106",
"0.6260299",
"0.6208487",
"0.6208487",
"0.62070644",
"0.6197276",
"0.61806154",
"0.6177103",
"0.61530507",
"0.61472267",
"0.61243707",
"0.60771817",
"0.6054482",
"0.599... | 0.0 | -1 |
/Load the driver class related to the DB technology dynamically using forName() method of Class class | public static void main(String[] args) {
try {
Class.forName("com.mysql.cj.jdbc.Driver");
/*Create connection to the required database
by calling getConnection() method of DriverManager class and
storing reference in Connection class object
*/
Connection con = Dri... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private String discoverDriverClassName(URLClassLoader urlClassLoader) throws IOException {\n String className = null;\n URL resource = urlClassLoader.findResource(\"META-INF/services/java.sql.Driver\");\n if (resource != null) {\n BufferedReader br = null;\n try {\n ... | [
"0.7339311",
"0.7206246",
"0.6733701",
"0.6680028",
"0.66309273",
"0.65148944",
"0.64975756",
"0.6441026",
"0.6433817",
"0.63081723",
"0.62866396",
"0.6249276",
"0.623266",
"0.622491",
"0.60974205",
"0.60307765",
"0.60241556",
"0.6011587",
"0.5978085",
"0.5962322",
"0.595295"... | 0.0 | -1 |
Interface that manages user account. | public interface AuthManager {
void signInGoogle(GoogleSignInAccount acct, Subscriber<String> signInSubscriber, CreateUser createUser);
void signOut(Subscriber<String> signOutSubscriber);
boolean isSignedIn();
String getCurrentUserId();
String getCurrentUserEmail();
Uri getPhotoUrl();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface UserAccount {\n\n public String registration(String name, String password);\n\n public String logIn(String name, String password);\n\n public String deleteAccount(String name, String password);\n}",
"public interface UserAccountService {\n public void addUserAccount(UserAccount user)... | [
"0.7198536",
"0.66552526",
"0.66505045",
"0.6609057",
"0.6447268",
"0.64320326",
"0.6409488",
"0.63801587",
"0.6377342",
"0.637353",
"0.63476574",
"0.62818784",
"0.6239773",
"0.62338585",
"0.6229018",
"0.6215066",
"0.6211988",
"0.6189682",
"0.6188024",
"0.6181949",
"0.6168324... | 0.5994462 | 41 |
TODO Autogenerated method stub | @Override
public IBinder onBind(Intent arg0) {
return binder;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void onCreate() {
super.onCreate();
binder = new CaroBinder();
binder.service = this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
This method runs when the file is executed | public static void main(String[] args)
{
Bank bob=new Bank(15);
Scanner sc=new Scanner(System.in);
System.out.println("What do you want the initial value of your account to be?");
bob.money=sc.nextDouble()+0.00;
while(true)
{
if(bob.money<bob.minMoney)
{
bob.overdrawn();
}
//The... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void runFile(String filename) {\n }",
"void PostRun() {\n }",
"public ExecScriptCallback()\n {\n\tchooserTitle = DragonUI.textSource.getI18NText(TextKeys.SPTFILE,\n\t\t\t\t\t\t \"SCRIPT FILE TO RUN\");\n\t}",
"public void execute() throws MojoExecutionException {\n CodeGe... | [
"0.66368085",
"0.66308236",
"0.65749544",
"0.6548494",
"0.6533331",
"0.65292203",
"0.6517952",
"0.64779574",
"0.64568126",
"0.64443904",
"0.64435095",
"0.6382469",
"0.63802093",
"0.63571805",
"0.6349236",
"0.63411903",
"0.6337935",
"0.633198",
"0.633198",
"0.633198",
"0.63300... | 0.0 | -1 |
call when user register | public void addUserIntoPools(String userId){
long timestamp = DateUtil.getCurrentTime()/1000;
client.zadd(newStarDateRedisKey, timestamp, userId);
client.zadd(getRedisKey(), 0, userId);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void register_user() {\n\n\t\tHttpRegister post = new HttpRegister();\n\t\tpost.execute(Config.URL + \"/api/newuser\");\n\n\t}",
"private void registerUser()\n {\n /*AuthService.createAccount takes a Consumer<Boolean> where the result will be true if the user successfully logged in, or false ot... | [
"0.8136059",
"0.7868974",
"0.7671866",
"0.7587398",
"0.75066155",
"0.7453605",
"0.74476874",
"0.74185663",
"0.7363483",
"0.7359129",
"0.72780037",
"0.7225032",
"0.72231513",
"0.72208065",
"0.71964353",
"0.71661824",
"0.7140714",
"0.71185404",
"0.71185404",
"0.7110662",
"0.709... | 0.0 | -1 |
call by a timer, should called before removeInvalidateUsersFromNewStarPool | public void removeInvalidateUsersFromNewStarScorePool(double timestamp){
log.info("<removeInvalidateUsersFromNewStarScorePool> timestamp = " + timestamp);
final Set<String> set = client.zbelowScore(newStarDateRedisKey, timestamp);
if(set.size() != 0){
client.execute(new RedisCallable(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void removeInvalidateUsersFromNewStarPool(double timestamp){\n log.info(\"<removeInvalidateUsersFromNewStarPool> timestamp = \" + timestamp);\n client.zremRangeByScore(newStarDateRedisKey, 0, timestamp);\n }",
"protected void refreshAllUsers() {}",
"private void refreshTokenPool() {\n ... | [
"0.702456",
"0.5954368",
"0.59263134",
"0.5888444",
"0.5832471",
"0.57565933",
"0.5697925",
"0.56352687",
"0.5594171",
"0.55691653",
"0.5557567",
"0.5531235",
"0.5519697",
"0.55075234",
"0.5496921",
"0.54932207",
"0.54862773",
"0.5438582",
"0.54333806",
"0.54210484",
"0.54205... | 0.6442857 | 1 |
call by a timer | public void removeInvalidateUsersFromNewStarPool(double timestamp){
log.info("<removeInvalidateUsersFromNewStarPool> timestamp = " + timestamp);
client.zremRangeByScore(newStarDateRedisKey, 0, timestamp);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"TimerStatus onTimer();",
"public void onTimerEvent();",
"@Override // se crea una clase anonima donde se implementa el metodo run porque Timer task implementa la interfaz runnable\r\n public void run() {\r\n System.out.println(\"Tarea realizada en: \" + new Date() + \" nombre del Thr... | [
"0.70760655",
"0.70337176",
"0.694325",
"0.6939306",
"0.69245356",
"0.6876173",
"0.6842449",
"0.6842284",
"0.6816279",
"0.68046933",
"0.67471606",
"0.6741836",
"0.6738929",
"0.6699371",
"0.6658547",
"0.6657262",
"0.6636015",
"0.663114",
"0.66291314",
"0.6628406",
"0.6627566",... | 0.0 | -1 |
location to save views | public ViewMap(String viewFolder) {
this.viewMap = new HashMap<String,View>();
this.viewFolder = viewFolder;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void save(View view) {\n }",
"void save(ViewDefinition viewDefinition);",
"public void saveInfo(View view) {\n saveInfoHelper();\n }",
"public void saveTask (View view) {\n \t\n \tTask task = gatherTaskInfo();\n \t//calls to crowd sourcer only if a task is returned\n \... | [
"0.7267136",
"0.72258025",
"0.66399926",
"0.65754235",
"0.64961034",
"0.6319314",
"0.6280873",
"0.6203374",
"0.6172925",
"0.61375964",
"0.60644263",
"0.6039468",
"0.59894425",
"0.5985424",
"0.5950642",
"0.5917215",
"0.59052145",
"0.5900236",
"0.5870483",
"0.58390784",
"0.5839... | 0.0 | -1 |
get existing view, otherwise create it | public View getView(String viewName,String query, List<String> attributeNames,
List<String> summaries, List<String> summaryNames, DBConnector connectionType) throws Exception {
if(this.viewMap.containsKey(viewName)) return this.viewMap.get(viewName);
View v = getSavedView(viewName);
if(v != null) return v;
r... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"View createView();",
"ViewCreator get(String userName);",
"View getActiveView();",
"public View create(Element elem) {\n return null;\n }",
"ViewElement createViewElement();",
"protected Scene createView() {\n\t\treturn null;\n\t}",
"private View create(PersistedView pView) {\n DsmSort... | [
"0.71134454",
"0.6529807",
"0.64971954",
"0.6339936",
"0.6328321",
"0.62627304",
"0.6227067",
"0.59724236",
"0.59544414",
"0.58855546",
"0.5816369",
"0.58020735",
"0.5799055",
"0.57982296",
"0.57894695",
"0.57884204",
"0.57669276",
"0.574329",
"0.5732135",
"0.5706483",
"0.567... | 0.0 | -1 |
create new view (do not use if the view may exist already!) | public View createView(String viewName,String query,List<String> attributeNames,
List<String> summaries, List<String> summaryNames, DBConnector connectionType) throws Exception {
if(this.viewMap.containsKey(viewName)) throw new Exception("view name '"+viewName+"' already exists!");
View v = new View(viewName,que... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"View createView();",
"public void createView(View view) throws SQLException {\n\t\tSQLCommand.runMetaDataCommand(m_connection, I18N.getLocalizedMessage(\"Create View\"), getCreateSQL(view));\n\t}",
"private View create(PersistedView pView) {\n DsmSorting sorting = nameToSorting.get(pView.dsmSortingName)... | [
"0.7511995",
"0.73235416",
"0.7051801",
"0.69175416",
"0.6899834",
"0.68263817",
"0.6714509",
"0.662737",
"0.64620656",
"0.6442815",
"0.643364",
"0.6403176",
"0.6354687",
"0.6352222",
"0.6338228",
"0.63200104",
"0.6270701",
"0.62055266",
"0.6167876",
"0.6164417",
"0.61524427"... | 0.67730397 | 6 |
creates a filename to associate with this view name | public String getViewFilename(String viewName) {
return viewName + ".ser";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private String generateFilename() {\n UUID uuid = UUID.randomUUID();\n return uuid.toString();\n }",
"private String getFileName()\r\n {\r\n DateFormat format = new SimpleDateFormat(\"yyyy-MM-dd__HH_mm\");\r\n \r\n String ret = new String();\r\n ret += preferences.getPreference(User... | [
"0.6785749",
"0.66429967",
"0.6599296",
"0.6511117",
"0.6500165",
"0.64111686",
"0.6383373",
"0.6383373",
"0.6383373",
"0.6383373",
"0.6383373",
"0.6383373",
"0.6383373",
"0.6383373",
"0.6383373",
"0.63530874",
"0.6341642",
"0.6341642",
"0.63079745",
"0.6301574",
"0.6249431",... | 0.7233961 | 0 |
retrieves saved view from disk | public View getSavedView(String viewName) {
View v = null;
ObjectInputStream in;
String filename = getViewFilename(viewName);
File dir = new File(viewFolder);
dir.mkdirs();
File file = new File(dir,filename);
try {
in = new ObjectInputStream(new BufferedInputStream(new FileInputStream(file)));
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getFile(String path){\n return target.path( path ).queryParam( \"view\", \"read\" ).request().get( String.class );\n }",
"private Views getViews() throws IOException, ProcessingException {\n\t\tJsonReader reader = new JsonReader(new FileReader(viewsFilePath));\n\t\treturn GSON.fromJson(re... | [
"0.626308",
"0.6117317",
"0.59674233",
"0.583376",
"0.57721364",
"0.5685147",
"0.5593227",
"0.55389726",
"0.5494654",
"0.54854393",
"0.5442813",
"0.54110354",
"0.53901774",
"0.5365221",
"0.5358609",
"0.5344289",
"0.5285558",
"0.5284713",
"0.5281946",
"0.52811563",
"0.5265241"... | 0.71510476 | 0 |
save this view to disk for later use | public boolean saveView(View v) {
File dir = new File(viewFolder);
dir.mkdirs();
String filename = getViewFilename(v.getName());
File file = new File(dir,filename);
ObjectOutputStream out;
try {
out = new ObjectOutputStream(new BufferedOutputStream(new FileOutputStream(file)));
out.writeObject(v);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void save() {\n JAXB.marshal(this, new File(fileName));\n }",
"void save(ViewDefinition viewDefinition);",
"public void save(View view) {\n }",
"public void save() {\t\n\t\n\t\n\t}",
"public void save() {\n\t\tWriteFile data = new WriteFile( this.name + \".txt\" );\n\t\ttry {\n\t\t\t da... | [
"0.7085737",
"0.70429134",
"0.692294",
"0.6879866",
"0.68155265",
"0.674994",
"0.674994",
"0.674994",
"0.6727252",
"0.6658552",
"0.6607779",
"0.657859",
"0.6575011",
"0.6574305",
"0.6559991",
"0.6556866",
"0.6538776",
"0.6497816",
"0.64864457",
"0.64841956",
"0.64836466",
"... | 0.71739125 | 0 |
Creates new form WhereUsedPanel | public WhereUsedPanel(String name, CsmObject csmObject,ChangeListener parent) {
setName(NbBundle.getMessage(WhereUsedPanel.class, "LBL_WhereUsed")); // NOI18N
this.origObject = csmObject;
this.parent = parent;
this.name = name;
this.defaultScope = Scope.CURRENT;
initCompo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private FactoryViewPanel buildBasicPanel()\r\n {\r\n FactoryViewPanel panel = new FactoryViewPanel();\r\n JComponent pathComponent = addField(panel, myDataSourceModel.getPath());\r\n if (pathComponent instanceof JTextComponent)\r\n {\r\n ((JTextComponent)pathComponent).set... | [
"0.65340215",
"0.6223963",
"0.6088908",
"0.6043972",
"0.60144",
"0.6004128",
"0.59396946",
"0.5930005",
"0.5895634",
"0.5841781",
"0.5828793",
"0.5817099",
"0.5809728",
"0.5784737",
"0.5780629",
"0.5771552",
"0.57705337",
"0.5766306",
"0.57662857",
"0.57629985",
"0.5761126",
... | 0.5597007 | 51 |
method is called to make initialization of components out of AWT | private void initializeImpl() {
if (initialized) {
return;
}
initFields();
final List<ProjectScope> currentProjects;
final ProjectScope allProjects;
CsmObject refObject = getReferencedObject();
CsmProject refObjectPrj = null;
if (CsmKindUtilit... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void initComponents() {\n\t\t\n\t}",
"private void initComponents() {\n\t\t\n\t}",
"private void initComponent() {\n\t\taddGrid();\n\t\taddToolBars();\n\t}",
"private void initcomponent() {\n\r\n\t}",
"private void initiateInternal() {\n\n //define adaptation listener\n this.addCompon... | [
"0.8293224",
"0.8293224",
"0.80677396",
"0.7988009",
"0.7780113",
"0.76592726",
"0.7588158",
"0.74873066",
"0.7417662",
"0.73922765",
"0.73822135",
"0.7365133",
"0.7351564",
"0.7351564",
"0.7290536",
"0.72855335",
"0.7219816",
"0.7211941",
"0.7197679",
"0.71672153",
"0.715706... | 0.0 | -1 |
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor. //GENBEGIN:initComponents | private void initComponents() {
java.awt.GridBagConstraints gridBagConstraints;
buttonGroup = new javax.swing.ButtonGroup();
methodsPanel = new javax.swing.JPanel();
m_isBaseClass = new javax.swing.JCheckBox();
jPanel1 = new javax.swing.JPanel();
m_overriders = new javax... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public Form() {\n initComponents();\n }",
"public TorneoForm() {\n initComponents();\n }",
"public GUIForm() { \... | [
"0.73928136",
"0.73928136",
"0.73928136",
"0.73531973",
"0.73326695",
"0.7330864",
"0.7296813",
"0.72670054",
"0.72279",
"0.7216405",
"0.71600014",
"0.7154558",
"0.71523625",
"0.7142049",
"0.71382874",
"0.71338505",
"0.7119868",
"0.7118436",
"0.7115957",
"0.7111586",
"0.70891... | 0.0 | -1 |
End of variables declaration//GENEND:variables | public boolean isMethodFromBaseClass() {
return m_isBaseClass.isSelected();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void lavar() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}",
"public void mo38117a() {\n }",
"@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}",
"private void assignment() {\n\n\t\t\t}",
"private void kk12() {\n\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\n pu... | [
"0.6359434",
"0.6280371",
"0.61868024",
"0.6094568",
"0.60925734",
"0.6071678",
"0.6052686",
"0.60522056",
"0.6003249",
"0.59887564",
"0.59705925",
"0.59680873",
"0.5967989",
"0.5965816",
"0.5962006",
"0.5942372",
"0.5909877",
"0.5896588",
"0.5891321",
"0.5882983",
"0.5881482... | 0.0 | -1 |
89393: GTK needs name to render cell renderer "natively" | @Override
public Component getListCellRendererComponent(
JList list,
Object value,
int index,
boolean isSelected,
boolean cellHasFocus) {
setName("ComboBox.listRenderer"); // NOI18N
if ( value !=... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface UseAsRenderer\r\n {\r\n \tpublic TableCellEditor useAsRenderer();\r\n }",
"public JLabel getRendering(String column, Object value);",
"public interface SwingCellRenderer extends CellRenderer<SwingView> {\r\n /**\r\n * Called whenever a cell is clicked\r\n * @par... | [
"0.6099331",
"0.60454404",
"0.6035674",
"0.5715002",
"0.56996113",
"0.5644273",
"0.55975145",
"0.55923194",
"0.5569375",
"0.55478805",
"0.5546678",
"0.55121696",
"0.55041295",
"0.5486715",
"0.5480517",
"0.5421353",
"0.53912127",
"0.53672105",
"0.5349978",
"0.5349978",
"0.5346... | 0.0 | -1 |
Created by viniciusthiengo on 4/5/15. | public interface RecyclerViewOnClickListenerHack {
public void onClickListener(View view, int position);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"private stendhal() {\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r... | [
"0.6171908",
"0.5989708",
"0.5964998",
"0.5922602",
"0.5844925",
"0.5844925",
"0.58088446",
"0.5805012",
"0.5766744",
"0.575297",
"0.5739143",
"0.57330287",
"0.571104",
"0.57055753",
"0.56923455",
"0.56860524",
"0.5672059",
"0.5667482",
"0.5650635",
"0.5643644",
"0.5643034",
... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void onClick(View v) {
Intent videoIntent = new Intent(SearchVideoListActivity.this,
SearchActivity.class);
AnimatedActivity parentActivity = (AnimatedActivity) SearchVideoListActivity.this
.getParent();
parentActivity
.startChildActivity("LiveStreamoter", video... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void onClick(View v) {
onBackPressed();
} | {
"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 |
Inflate the layout for this fragment | @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View view=inflater.inflate(R.layout.fragment_notification, container, false);
firebaseUser=repository.instance.getAuthInstance().getCurrentUser();
//s... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup... | [
"0.6739604",
"0.67235583",
"0.6721706",
"0.6698254",
"0.6691869",
"0.6687986",
"0.66869223",
"0.6684548",
"0.66766286",
"0.6674615",
"0.66654444",
"0.66654384",
"0.6664403",
"0.66596216",
"0.6653321",
"0.6647136",
"0.66423255",
"0.66388357",
"0.6637491",
"0.6634193",
"0.66251... | 0.0 | -1 |
reduce damage because of armor!!! oh yeah! | public int takeDamage(int damage) {
damage -= ARMOR;
// set new hp
return super.takeDamage(damage);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void takeDamage(double damage){\n damage -= this.armor;\n this.health -= damage;\n }",
"private void takeDamage(int damage){ health -= damage;}",
"public void reduceHealth(int damage){\n health -= damage;\n }",
"public void reduceHealth(int ammo_damage){\n this.health... | [
"0.7534623",
"0.74419713",
"0.73836535",
"0.7339875",
"0.72052336",
"0.7182103",
"0.71660274",
"0.7154797",
"0.71222687",
"0.70738655",
"0.70686734",
"0.70112205",
"0.69992286",
"0.69890654",
"0.69709116",
"0.69150794",
"0.69056433",
"0.688491",
"0.6870675",
"0.68448305",
"0.... | 0.71996665 | 5 |
Gets the args value for this SelectRequest. | public java.lang.Object[] getArgs() {
return args;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public java.lang.String getArgs() {\n return args;\n }",
"public java.lang.String getArgs() {\n return args;\n }",
"@java.lang.Override\n public godot.wire.Wire.Value getArgs(int index) {\n return args_.get(index);\n }",
"com.google.protobuf.ByteString\n\t\tgetArgBytes();",
"@java.la... | [
"0.6223957",
"0.6216",
"0.6197969",
"0.6173704",
"0.61699027",
"0.6142314",
"0.61352444",
"0.6072719",
"0.6055358",
"0.6037408",
"0.60253704",
"0.5946478",
"0.59289706",
"0.5905383",
"0.58811843",
"0.58708453",
"0.57900214",
"0.5760544",
"0.57123923",
"0.566",
"0.5613928",
... | 0.6200609 | 2 |
Sets the args value for this SelectRequest. | public void setArgs(java.lang.Object[] args) {
this.args = args;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void setArgs(String[] args) {\n this.args = args.clone();\n }",
"@Override\n public void setArgs(String[] args) {\n this.args = args.clone();\n }",
"public void setArgs(String[] args) {\n this.args = args;\n }",
"public void setArguments(Object args) {\n ... | [
"0.7065514",
"0.7065514",
"0.6984718",
"0.69567144",
"0.6663704",
"0.6399844",
"0.62227684",
"0.5752068",
"0.5676712",
"0.5654734",
"0.56201804",
"0.55920225",
"0.555909",
"0.5557041",
"0.5452414",
"0.539615",
"0.53864527",
"0.5375515",
"0.536536",
"0.53331035",
"0.5319015",
... | 0.6600943 | 5 |
Gets the namedParams value for this SelectRequest. | public java.lang.Object[] getNamedParams() {
return namedParams;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Map<String, Object> getNamedParameterValues() {\r\n \treturn namedParameterValues;\r\n }",
"public String getParamName() {\r\n\treturn this.paramName;\r\n }",
"public String getParamName () {\n\treturn this.paramName;\n }",
"public String getParameter(String name) {\r\n return _paramete... | [
"0.666981",
"0.63431776",
"0.6246399",
"0.6230573",
"0.61979544",
"0.6194285",
"0.6128745",
"0.6052173",
"0.5996442",
"0.5988547",
"0.5954973",
"0.5941362",
"0.5931363",
"0.5889976",
"0.58793795",
"0.5846512",
"0.58239645",
"0.58221287",
"0.5766692",
"0.57458013",
"0.57424676... | 0.6942153 | 0 |
Sets the namedParams value for this SelectRequest. | public void setNamedParams(java.lang.Object[] namedParams) {
this.namedParams = namedParams;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setNamedParameterValues(final Map<String, Object> namedParameterValues) {\r\n\t\tthis.namedParameterValues = namedParameterValues;\r\n\t}",
"public void setParamName(String paramName)\r\n/* 18: */ {\r\n/* 19:51 */ this.paramName = paramName;\r\n/* 20: */ }",
"public void setParamName (S... | [
"0.6551115",
"0.57310647",
"0.57120043",
"0.56722087",
"0.5612227",
"0.5612227",
"0.5566987",
"0.5442205",
"0.5422134",
"0.53978044",
"0.53694725",
"0.5341768",
"0.52831703",
"0.5201728",
"0.52013326",
"0.51815975",
"0.51548064",
"0.5150954",
"0.51437694",
"0.5125927",
"0.511... | 0.73643255 | 0 |
Gets the parentId value for this SelectRequest. | public java.lang.Long getParentId() {
return parentId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Long getParentId() {\n return parentId;\n }",
"public Long getParentId() {\n return parentId;\n }",
"public Long getParentId() {\n return parentId;\n }",
"public Long getParentId() {\n return parentId;\n }",
"public String getParentId() {\n return paren... | [
"0.73446125",
"0.73446125",
"0.73446125",
"0.73446125",
"0.73252827",
"0.73252827",
"0.73252827",
"0.73252827",
"0.73252827",
"0.73252827",
"0.73252827",
"0.73252827",
"0.73252827",
"0.73138845",
"0.73138845",
"0.73138845",
"0.7293634",
"0.71953475",
"0.71768594",
"0.70729667",... | 0.7364963 | 0 |
Sets the parentId value for this SelectRequest. | public void setParentId(java.lang.Long parentId) {
this.parentId = parentId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setParentId(int parentId) {\r\n\t\tthis.parentId = parentId;\r\n\t}",
"public void setParentId(String parentId) {\n this.parentId = parentId == null ? null : parentId.trim();\n }",
"public void setParentId(String parentId) {\n this.parentId = parentId == null ? null : parentId.trim... | [
"0.75074935",
"0.74209535",
"0.74209535",
"0.74209535",
"0.7396484",
"0.7396484",
"0.7396484",
"0.7364404",
"0.7364404",
"0.7364404",
"0.7364404",
"0.73214173",
"0.73214173",
"0.73214173",
"0.73214173",
"0.7318775",
"0.6520624",
"0.60635406",
"0.6004013",
"0.6004013",
"0.6004... | 0.7363909 | 11 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.