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
public Hdf5VolatileShortArrayLoader getShortArrayLoader() // REMOVED Checks whether the given image data is present in the hdf5. Missing data may be caused by missing partition files
public boolean existsImageData( final ViewLevelId id ) { return getDimsAndExistence( id ).exists(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testLoadArrayDesign() throws PlatformLoadingException, AffymetrixCdfReadException {\n checkLoadArrayDesign(TestArrayDesignFiles.HG_U133_PLUS_2_CDF_FILE,\n TestArrayDesignFiles.HG_U133_PLUS_2_ANNOTATION_FILE);\n }", "@Test\n public void testmagicNumbersForBigData...
[ "0.49289873", "0.4839912", "0.48364797", "0.48168164", "0.4797382", "0.478427", "0.4759996", "0.47474092", "0.4732234", "0.47153866", "0.4686918", "0.46776426", "0.46371982", "0.46312422", "0.46046105", "0.45885438", "0.45747393", "0.45715347", "0.45577306", "0.4552559", "0.4...
0.0
-1
the voxel size is not stored in the hdf5
@Override public VoxelDimensions getVoxelSize( final int timepointId ) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int get_size() {\r\n return this.dimension * 2 * sizeof_float + 4 * sizeof_float + sizeof_dimension + sizeof_int;\r\n }", "public int size() {\n\treturn slices*rows*columns;\n}", "public int getCellsUniverseSize(){\r\n return cellsUniverse.size();\r\n }", "@Override\n public int g...
[ "0.6599207", "0.6586686", "0.6574869", "0.6514291", "0.63936824", "0.61874914", "0.6135377", "0.6117144", "0.6086963", "0.6048025", "0.6042399", "0.60114104", "0.60112447", "0.59962827", "0.5988488", "0.5979548", "0.5975258", "0.59671646", "0.592885", "0.592885", "0.592885", ...
0.6161216
6
TODO Autogenerated method stub
public void onAccuracyChanged(Sensor sensor, int accuracy) { }
{ "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.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0...
0.0
-1
TODO Autogenerated method stub
@Override protected void onStop() { super.onStop(); sensormanager.unregisterListener(sensorEventListener); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override protected void onResume() { Sensor orientationSensor = sensormanager.getDefaultSensor(Sensor.TYPE_GYROSCOPE); sensormanager.registerListener(sensorEventListener, orientationSensor, SensorManager.SENSOR_DELAY_NORMAL); Sensor accelerometerSensor = sensormanager.getDefaultSensor(Sens...
{ "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(DialogInterface dialog, int which) { Message msg = new Message(); msg.what = 1; add_address_handler.sendMessage(msg); }
{ "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(DialogInterface dialog, int which) { Message msg = new Message(); msg.what = 0; add_address_handler.sendMessage(msg); }
{ "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.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0...
0.0
-1
TODO Autogenerated method stub
@Override public void onClick(DialogInterface dialog, int which) { Message msg = new Message(); msg.what = 1; set_handler.sendMessage(msg); }
{ "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(DialogInterface dialog, int which) { Message msg = new Message(); msg.what = 0; set_handler.sendMessage(msg); }
{ "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 / LinkedHashMap contains only unique elements. maintains insertion order. may have only one null key and multiple null values.
public static void main(String[] args) { Map<Integer, String> friends = new LinkedHashMap<Integer, String>(); friends.put(1, "Rohith"); friends.put(null, "Sai"); friends.put(3, null); friends.put(4, null); System.out.println("The number of entries in the LinkedHashMap is:"+" "+friends.size()+"\n");...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testLinkedHashMap() {\n\t\tLinkedHashMap lhm = new LinkedHashMap();\n\t\tlhm.put(\"evyaan\", 700);\n\t\tlhm.put(\"varun\", 100);\n\t\tlhm.put(\"dolly\", 300);\n\t\tlhm.put(\"vaishu\", 400);\n\t\tlhm.put(\"vaishu\", 300);\n\t\tlhm.put(null, 500);\n\t\tlhm.put(null, 600);\n\n\t\tassertEquals(\"{...
[ "0.6921599", "0.61451256", "0.58819604", "0.58261526", "0.58189535", "0.5675276", "0.56403315", "0.5627586", "0.5626552", "0.55787677", "0.5551871", "0.5514184", "0.54697704", "0.54110324", "0.5391335", "0.5389245", "0.53875864", "0.5382618", "0.53729016", "0.5337766", "0.532...
0.0
-1
Initializes a new widget instance with the supplied name. This is a constructor. It is a special method that is called when an object/instance is created. It should initialize all of the instance members.
public Widget(String widgetName) { /* * THIS - The "this" keyword refers to the current instance. Here, we set this object's widget * name to whatever was passed in to the constructor. * * Using this keyword helps indicate when code is referencing an instance member versus a local * variabl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Widget() {\n /*\n * THIS - You can use the \"this\" keyword as a method too, which will call the appropriate\n * constructor. This lets you reuse the initialization code you have written in a different\n * constructor.\n */\n this(\"Widget\");\n }", "public Widget() {\r\n\t\t\r\n\t\...
[ "0.7334273", "0.6446221", "0.6362409", "0.631342", "0.62234485", "0.620474", "0.6173383", "0.6150293", "0.60695225", "0.60665226", "0.60562354", "0.6036493", "0.6017311", "0.59872013", "0.59087515", "0.5899531", "0.58600056", "0.5843963", "0.5825141", "0.5815155", "0.5806007"...
0.7689424
0
Initializes a new widget instance. This is an example of overloading. You can provide methods with the same name, but different parameters. They should do the same thing! A good way to ensure this is to call the other overloaded method from this one. Method overloading is a form of polymorphism ("many forms"). This is ...
public Widget() { /* * THIS - You can use the "this" keyword as a method too, which will call the appropriate * constructor. This lets you reuse the initialization code you have written in a different * constructor. */ this("Widget"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Widget(String widgetName) {\n /*\n * THIS - The \"this\" keyword refers to the current instance. Here, we set this object's widget\n * name to whatever was passed in to the constructor.\n *\n * Using this keyword helps indicate when code is referencing an instance member versus a local\n ...
[ "0.623092", "0.6182773", "0.6165028", "0.5797286", "0.56724316", "0.562757", "0.5605376", "0.55967677", "0.5555295", "0.5500736", "0.5458013", "0.5454354", "0.54466075", "0.5446378", "0.5435339", "0.54140896", "0.54032654", "0.5343326", "0.53166145", "0.531415", "0.5310804", ...
0.73376244
0
Returns the number of widgets initialized. This is a static method or class method A static method may not access any instance members. The method itself does not require an instance to be created, and can be accessed through the class name. If the method does not access any instance members, make sure you make it stat...
public static int numWidgets() { return Widget.numWidgets; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getWidgetCount() {\n return widgets.size(); \n }", "public static int getCount() {\r\n\t\treturn count;\r\n\t}", "public static int getCount() {\r\n\t\treturn count;\r\n\t}", "public static int getCount() {\r\n\t\treturn count;\r\n\t}", "public static int getCount() {\n\t\treturn count;\n\t...
[ "0.7532562", "0.6278238", "0.6278238", "0.6278238", "0.6219192", "0.6189509", "0.6167659", "0.61564285", "0.6152713", "0.6112086", "0.6096204", "0.6037833", "0.6037833", "0.6037833", "0.6032293", "0.6032293", "0.60310066", "0.602951", "0.59889454", "0.5986303", "0.5967168", ...
0.7713648
0
Returns the widget names as a list. This is an example of a safe get method. Instead of returning the reference to our private mutable data directly, it is first made unmodifiable. While code in this class will still be able to mutate the data, code outside of this class will not.
public static List<String> getNames() { return Collections.unmodifiableList(widgetNames); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Widget> getWidgets() {\n return widgets;\n }", "private ArrayList<String> getNames() {\n\t\tNameDialog n = new NameDialog();\n\t\tnameList = new ArrayList<String>();\n\t\ttry {\n\t\t\tnameList = n.getNames(inputs[1]);\n\t\t}catch(GameException ex) {\n\t\t\tview.close();\n\t\t\tmenuStage.show();\n...
[ "0.6652034", "0.6110098", "0.6067214", "0.6059456", "0.5747976", "0.5718807", "0.57073545", "0.5706569", "0.57060677", "0.56900895", "0.5688733", "0.5684359", "0.5684216", "0.5632794", "0.56310517", "0.558958", "0.55660963", "0.5548847", "0.5529691", "0.55195063", "0.55069476...
0.8295028
0
Returns the widget name. This is an example nonstatic or instance method, which can only be accessed through an actual instance. It is also a safe get method since String is an immutable type.
public String getName() { return this.widgetName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getName() {\r\n\t\treturn GDAssemblerUI.getText(UI_TEXT);\r\n\t}", "public String getName() {\n if (name == null && !nameExplicitlySet) {\n synchronized(this) {\n if (name == null && !nameExplicitlySet)\n name = constructComponentName();\n ...
[ "0.6519288", "0.63395095", "0.62802917", "0.6211586", "0.61606187", "0.6050292", "0.60472715", "0.6032716", "0.60123646", "0.5988568", "0.59720105", "0.596985", "0.5961973", "0.59592605", "0.5924139", "0.5919351", "0.5916858", "0.5916858", "0.5916858", "0.59134895", "0.590351...
0.77990097
0
Returns whether the supplied name is valid. This is an example of a private static helper method. Helper methods are not visible outside of the class and are meant to "help" the other public methods in this class.
private static boolean validName(String name) { return name != null && !name.strip().isBlank(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean isNameValid(String name) {\n\n }", "public boolean checkName(String name)\n {\n return true;\n }", "public boolean isValidName(String name)\r\n {\r\n // check for illegal combinations of characters\r\n // this is probably not a complete check, but hopefully it is good enough\r\n ...
[ "0.8656496", "0.8032742", "0.7958487", "0.79131925", "0.78772825", "0.78110784", "0.7789111", "0.7654023", "0.7633365", "0.76084435", "0.7584658", "0.75827175", "0.7569277", "0.75619197", "0.7535715", "0.751364", "0.74723136", "0.7372152", "0.73268574", "0.72861814", "0.72694...
0.7559545
14
Called when the activity is first created.
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState, R.layout.goodscheck_view); Log.i(TAG, "onCreate()"); Intent intent = getIntent(); gj = intent.getStringExtra("gj"); zw = intent.getStringExtra("zw"); birthday_s = intent.getStringExtra("birthday_s"); ssdw = i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t\tinit();\n\t}", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t}", "@Override\n\tpublic void onActivit...
[ "0.791686", "0.77270156", "0.7693263", "0.7693263", "0.7693263", "0.7693263", "0.7693263", "0.7693263", "0.7637394", "0.7637394", "0.7629958", "0.76189965", "0.76189965", "0.7543775", "0.7540053", "0.7540053", "0.7539505", "0.75269467", "0.75147736", "0.7509639", "0.7500879",...
0.0
-1
TODO Autogenerated method stub
@Override public void offLineResult(Pair<Boolean, Object> res, int offLineRequestType) { Log.i(TAG, "offLineResult()offLineRequestType:" + offLineRequestType + ",res.second" + (res.second != null)); if (res.first) { offLineToast(getString(R.string.save_success)); finish(); } else { offLineToast((Str...
{ "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(DialogInterface arg0, int arg1, boolean arg2) { states[arg1] = arg2; }
{ "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.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0...
0.0
-1
TODO Autogenerated method stub
@Override public void onClick(DialogInterface arg0, int arg1) { StringBuffer text = new StringBuffer(); int num = states.length; if (num > 0) { for (int i = 0; i < num; i++) { if (states[i]) { if (text.length() > 0) { text.append(";"); } text.a...
{ "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: Warning this method won't work in the case the id fields are not set
@Override public boolean equals(Object object) { if (!(object instanceof Physician)) { return false; } Physician other = (Physician) object; if ((this.physicianId == null && other.physicianId != null) || (this.physicianId != null && !this.physicianId.equals(other.phy...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setId(Integer id) { this.id = id; }", "private Integer getId() { return this.id; }", "public void setId(int id){ this.id = id; }", "public void setId(Long id) {this.id = id;}", "public void setId(Long id) {this.id = id;}", "public void setID(String idIn) {this.id = idIn;}", "public void se...
[ "0.68954784", "0.68378097", "0.6704338", "0.66405046", "0.66405046", "0.6591173", "0.6577649", "0.6577649", "0.657354", "0.657354", "0.657354", "0.657354", "0.657354", "0.657354", "0.65609664", "0.65609664", "0.6543523", "0.65234846", "0.6514877", "0.6486739", "0.64767367", ...
0.0
-1
Games for each comp
public WorkflowConfiguration() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Games game();", "public Collection<Game> getAllActiveGames() {\n return gameRepository.findAllActive();\n }", "public void compare(){\n\t\tboolean gameOver = false;\n\t\tfor (int j = 0; j < player.size(); j++){\n\t\t\t/**\n\t\t\t * gameover screen\n\t\t\t */\n\t\t\tif (player.get(j) != input.get(j)){...
[ "0.6022599", "0.58579236", "0.57952803", "0.5791329", "0.56975895", "0.566204", "0.5634355", "0.5633005", "0.5630129", "0.56194377", "0.5611854", "0.55959266", "0.55832654", "0.55700564", "0.5525293", "0.5514421", "0.55070347", "0.54858845", "0.5474273", "0.54696506", "0.5365...
0.0
-1
Created by Oscar on 14/12/15.
public interface Interactor extends Runnable { void run(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "public final void mo51373a() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\r\n...
[ "0.604507", "0.60224456", "0.59214926", "0.5915868", "0.58510923", "0.58192044", "0.57963574", "0.57881856", "0.57881856", "0.57253265", "0.57133347", "0.5702901", "0.56991017", "0.5698771", "0.56957316", "0.5692372", "0.56568927", "0.56441015", "0.5638698", "0.5638698", "0.5...
0.0
-1
String courseType = "D";
public void unEnrollUsers() { CourseTypeTemplate courseTypeTemplate = getCourseTypeTemplate(courseType); if (courseTypeTemplate.isPastCourse.equals("true")){ String targetCourse = getFullCourseName("Coures" + courseType); List<String> ins = getFullNameUsers(courseTypeTemplate.in...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getCourse(char type)\n\t{\n\t\tString strCourse;\n\t\tswitch(type)\n\t\t{\n\t\t\tcase 'd':\n\t\t\tcase 'D':\n\t\t\t\tstrCourse = courseDesc;\n\t\t\t\tbreak;\n\t\t\tcase 'n':\n\t\t\tcase 'N':\n\t\t\t\tstrCourse= courseNum;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tstrCourse= (\"invalid\");\n\t\t}\n\t\t...
[ "0.70658666", "0.65401417", "0.63398093", "0.61230904", "0.60879827", "0.5935489", "0.5895553", "0.5851151", "0.5788975", "0.5769569", "0.5743182", "0.57195145", "0.57187", "0.5718112", "0.5698222", "0.56632036", "0.5628376", "0.55630827", "0.5539338", "0.55301625", "0.551830...
0.0
-1
TODO Autogenerated method stub
public Locale getLocale() { return Locale.US; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
public static Language getAD_Language() { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
public boolean isBaseLanguage() { return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0...
0.0
-1
TODO Autogenerated method stub
public String getName() { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
Flagged in 'occlude.dat'. Roof.
private void setTfaData() { // Set fields from tfa. dims[0] = (byte)(1 + (tfa[2]&7)); dims[1] = (byte)(1 + ((tfa[2]>>3)&7)); dims[2] = (byte)((tfa[0] >> 5)&7); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addOcclusion(int start, int end) {\n\t\tocclusions.add(new IntPair(start,end));\n\t}", "public boolean removeOcclusion(IntPair occl) {\n\t\tint i = occlusions.indexOf(occl);\n\t\tif(i != -1) {\n\t\t\tocclusions.remove(i);\n\t\t\treturn true;\n\t\t} else return false;\n\t}", "public static void conc...
[ "0.5265005", "0.49650878", "0.49108154", "0.48270494", "0.48157755", "0.47362876", "0.4674602", "0.465504", "0.45871428", "0.45595923", "0.45303655", "0.44870892", "0.43964592", "0.4375919", "0.43728405", "0.4346069", "0.43347815", "0.43320894", "0.43270358", "0.43200237", "0...
0.0
-1
Get tile dims., flipped for reflected (bit 5) frames.
public int get3dXtiles(int framenum) { return dims[(framenum >> 5)&1]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int getTileSize(){\n\t\treturn tileDim;\n\t}", "public static int getTileBits() {\n return TILE_BITS;\n }", "int getTileSize();", "public static int getTileBitSize() {\n return TILE_BIT_SIZE;\n }", "public static float getHalfTileHeight() {\r\n\t\treturn 32;\r\n\t}", "public static ...
[ "0.64743155", "0.60858905", "0.6037613", "0.58960533", "0.58704126", "0.5815007", "0.57038516", "0.5690907", "0.5688821", "0.5669538", "0.5653968", "0.56510305", "0.5638021", "0.56289256", "0.56248814", "0.5581276", "0.55758", "0.55503356", "0.55358213", "0.5520683", "0.55179...
0.7121797
0
Returns x<<8 + y, as bytes. Sets x to 255 if there is no weapon offset
public int getWeaponOffset(int frame) { int x, y; if (weaponOffsets == null) { x = y = 255; } else { // x could be 255 (see read_info()) x = weaponOffsets[frame * 2]&0xff; y = weaponOffsets[frame * 2 + 1]&0xff; } return (x<<8)|y; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static byte int2(int x) { return (byte)(x >> 16); }", "public int toMapOffset(int x, int y) {\r\n\t\treturn (x - y) * 65 + (x - y + 1) / 2 - x;\r\n\t}", "@Override\n public byte[] pack() {\n // If data not set\n if (m_ptLoc == null)\n return (null);\n \n byte[]...
[ "0.56450665", "0.5600083", "0.55378985", "0.5489602", "0.54011023", "0.53924716", "0.5354334", "0.5318388", "0.5311825", "0.5295557", "0.5291558", "0.5283369", "0.52619356", "0.52531064", "0.52457595", "0.52157885", "0.5201324", "0.51990646", "0.5197079", "0.51962864", "0.518...
0.64247155
0
Seat is a special case.
public int getRotatedFrame(int curframe, int quads) { if (bargeType == barge_seat) { int dir = curframe%4; // Current dir (0-3). return (curframe - dir) + (dir + quads)%4; } else if (isBargePart()) // Piece of a barge? switch (quads) { case 1: return (curframe^32)^((curframe&32) != 0 ? 3 : 1); c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getSeat() {\n\t\t\treturn seat;\n\t\t}", "public Seat getSeat()\r\n\t{\r\n\t\tif( seat != null )\r\n\t\t{\r\n\t\t\treturn seat;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\treturn null;\r\n\r\n\t\t}\r\n\t}", "public void setSeat( Seat seat )\r\n\t{\r\n\t\tthis.seat = seat;\r\n\t}", "@Override\n pu...
[ "0.76662374", "0.7563037", "0.74859774", "0.74600047", "0.7386302", "0.7377039", "0.7205508", "0.71725905", "0.7142114", "0.7091709", "0.7065016", "0.69085413", "0.6793126", "0.6792232", "0.6690881", "0.6666064", "0.66577286", "0.6614039", "0.65921766", "0.6589444", "0.655644...
0.0
-1
Read Exult text data for bodies.
private static void readBodiesTextDataFile(ShapeInfo info[], DataUtils.IDReaderFunctor idReader, int game) { final String sections[] = {"bodyshapes", "bodylist"}; final DataUtils.BaseReader readers[] = { new DataUtils.FunctorMultidataReader(info, new ShapeFlagsReader(is_body), null, idReader, false...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void parseRawText() {\n\t\t//1-new lines\n\t\t//2-pageObjects\n\t\t//3-sections\n\t\t//Clear any residual data.\n\t\tlinePositions.clear();\n\t\tsections.clear();\n\t\tpageObjects.clear();\n\t\tcategories.clear();\n\t\tinterwikis.clear();\n\t\t\n\t\t//Generate data.\n\t\tparsePageForNewLines();\n\t\tparseP...
[ "0.59200484", "0.58721143", "0.5770956", "0.5625826", "0.55821055", "0.54813397", "0.53969324", "0.5340903", "0.53205085", "0.5296061", "0.5296061", "0.5296061", "0.5296061", "0.52666783", "0.52576697", "0.52371705", "0.5217008", "0.52140677", "0.52089703", "0.51995033", "0.5...
0.6568505
0
Read Exult text data for paperdolls.
private static void readPaperdollTextDataFile(ShapeInfo info[], DataUtils.IDReaderFunctor idReader, int game) { final String sections[] = {"characters", "items"}; final DataUtils.BaseReader readers[] = { new DataUtils.FunctorMultidataReader(info, new PaperdollNpc(), null, new PaperdollNpcIDReader()...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n try {\n readHouseTxt();\n } catch (ParseException e) {\n e.printStackTrace();\n }\n\n\n\n\n }", "@Override\n public void readDataFromTxtFile()\n throws NumberFormatException, DepartmentC...
[ "0.59297705", "0.58062327", "0.55702835", "0.55424494", "0.5457696", "0.544415", "0.5330135", "0.5324054", "0.5291038", "0.52549803", "0.5250284", "0.52223384", "0.522064", "0.52089983", "0.5181811", "0.5170439", "0.5151528", "0.5121888", "0.51083326", "0.5103856", "0.5099181...
0.6343441
0
Read in Exult text data.
private static void readShapeInfoTextDataFile(ShapeInfo info[], DataUtils.IDReaderFunctor idReader, int game) { final String sections[] = { "explosions", "shape_sfx", "animation", "usecode_events", "mountain_tops", "monster_food", "actor_flags", "effective_hps", "lightweight_object", "warmth_data", ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void readDataFromTxtFile()\n throws NumberFormatException, DepartmentCreationException, EmployeeCreationException {\n\n }", "private void get_text() {\n InputStream inputStream = JsonUtil.class.getClassLoader().getResourceAsStream(\"data.txt\");\n BufferedReader ...
[ "0.6619347", "0.65532106", "0.6337849", "0.6281336", "0.61926925", "0.61765426", "0.59790903", "0.5918158", "0.5896291", "0.58875805", "0.58110505", "0.5789645", "0.5787994", "0.5756723", "0.572125", "0.571157", "0.5687471", "0.56833816", "0.56368065", "0.562924", "0.56135017...
0.0
-1
Sets the value of the Wizard object's key
public void setKey(int key);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setValue() {\r\n this.value = ComponentTranslator.getResourceBundle().getString(\r\n key.toString());\r\n }", "public void setInitialKey(java.lang.String value) {\r\n\t\tBase.set(this.model, this.getResource(), INITIALKEY, value);\r\n\t}", "void setKey(String key);", "void setKey(java....
[ "0.6283768", "0.60117006", "0.60026324", "0.58662444", "0.58282894", "0.5820734", "0.5798316", "0.5788469", "0.5776609", "0.5776168", "0.5764217", "0.574146", "0.5723928", "0.5723928", "0.5723928", "0.5717245", "0.5684729", "0.56597465", "0.5648239", "0.56473124", "0.5646547"...
0.56474876
20
Locks the Wizard object's takeDamage method
public void lock(int key);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void takeDamage(double damage) {\n\n\t}", "public void takeDamage(int damage);", "public void takeDamage(double damage){\n damage -= this.armor;\n this.health -= damage;\n }", "public void takeDamage (double damage)\n {\n getComponent(HealthC.class).decrease(dam...
[ "0.65976024", "0.651304", "0.63097316", "0.62298673", "0.6200588", "0.6190407", "0.6142914", "0.61268586", "0.61026794", "0.60656744", "0.60271573", "0.6016611", "0.60131514", "0.59824675", "0.59543836", "0.5946668", "0.5945539", "0.594338", "0.59305996", "0.5925282", "0.5871...
0.0
-1
Unlocks the Wizard object's takeDamage method
public void unlock(int key);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void unlockDoor() {\n }", "public abstract void unlock();", "public void takeDamage (double damage)\n {\n getComponent(HealthC.class).decrease(damage);\n if (getComponent(HealthC.class).isDead())\n {\n setActive(false);\n }\n }", "public void takeDamage(double ...
[ "0.6555479", "0.6474246", "0.6423045", "0.6399857", "0.6383134", "0.6371408", "0.6306352", "0.6298745", "0.62802184", "0.62335956", "0.62311393", "0.622632", "0.62093663", "0.6179434", "0.6119057", "0.6114248", "0.6074274", "0.6068851", "0.6033617", "0.60115576", "0.5957168",...
0.53385264
79
Gets the lock status of the Wizard object
public boolean isLocked();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long getLockStatus() {\r\n return lockStatus;\r\n }", "public Integer getLockFlag() {\n return lockFlag;\n }", "public Integer getLockFlag() {\n return lockFlag;\n }", "public Integer getLockFlag() {\n return lockFlag;\n }", "public boolean getLocked() {\n\t\t...
[ "0.74067235", "0.673895", "0.673895", "0.673895", "0.6645746", "0.66396934", "0.6545532", "0.6532255", "0.65202487", "0.6508495", "0.6507292", "0.6481157", "0.64656436", "0.6459838", "0.6455127", "0.637813", "0.6355597", "0.63331586", "0.63331586", "0.62672937", "0.62466335",...
0.62445694
21
TODO Autogenerated method stub
public static void main(String[] args) { BankAccount accOne = new BankAccount.Builder(1234L) .withOwner("Person 1") .atBranch("Branch 1") .openingBalance(1234.0) .atInterestRate(4.3) .build(); BankAccount accTwo = new BankAccount.Builder(1256L) .withOwner("Person 2") .atB...
{ "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
Recupera todos los contactos del ContentProvider Contacts.
private List<Contact> getContactsList() { List<Contact> contactsList = new ArrayList<>(); ContentResolver cr = getActivity().getContentResolver(); // Obtiene toda la informarciónd de los contactos Cursor cursor = getActivity().getContentResolver().query( ContactsContract.Contacts.CONTENT_URI, null, null,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Contact> getAllContacts();", "@Override\n\tpublic List<Contact> getAllContacts() {\n\t\t\n\t\treturn repository.findAll();\n\t}", "public ArrayList<Contact> getAllContacts(){\r\n\t\t\r\n\t\tArrayList<Contact> contacts = new ArrayList<Contact>();\r\n\t\tSQLiteDatabase db = this.getReadableDatabase()...
[ "0.7561245", "0.73938495", "0.72893167", "0.71539676", "0.7153375", "0.7115745", "0.7098653", "0.7087454", "0.70134974", "0.6959015", "0.6937929", "0.6935485", "0.6935088", "0.69244117", "0.69218767", "0.6915378", "0.6907375", "0.68799645", "0.68598187", "0.68568146", "0.6835...
0.7326784
2
Utility method used to create the ComponentUI.
public static ComponentUI createUI(JComponent pComponent) { return new OSDarkLAFComboBoxUI(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createUIComponents() {\n }", "private void createUIComponents() {\n }", "private void createUIComponents() {\n }", "private void createUIComponents() {\n }", "private void createUIComponents() {\n }", "private void createUIComponents() {\n }", "private void createUIComponen...
[ "0.79249716", "0.7873889", "0.7873889", "0.7873889", "0.7873889", "0.7873889", "0.7873889", "0.7873889", "0.7873889", "0.7873889", "0.7873889", "0.7873889", "0.7873889", "0.7873889", "0.7873889", "0.7873889", "0.7873889", "0.7873889", "0.7873889", "0.7583897", "0.7521149", ...
0.725337
23
Creates a new button bound to the supplied combo box, initialized with the supplied icon.
public OSDarkLAFComboBoxButton(JComboBox<Object> comboBox, Icon ic, boolean editable, CellRendererPane renderPane, JList<Object> list) { super(comboBox, ic, editable, renderPane, list); myEffectListener = new MouseRolloverEffectListener(); addMouseListener(myEffectListe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BenButton(Icon ico) {\n\t\tsuper(ico);\n\t\tsetVisible(true);\n\t}", "public static JButton createDropDownButton( Icon icon, JPopupMenu dropDownMenu ) {\n return new DropDownButton( icon, dropDownMenu );\n }", "public ToolButton createToolButton(Icon icon, Icon selectedIcon,\n ...
[ "0.63982433", "0.6299599", "0.6194981", "0.6171433", "0.61689997", "0.6152815", "0.6000819", "0.59498537", "0.58779955", "0.5867038", "0.585642", "0.5829736", "0.5800155", "0.5792125", "0.5759019", "0.5747383", "0.57352096", "0.5688751", "0.5680774", "0.5678363", "0.56710696"...
0.5748969
15
Paints the button using icons.
protected void paintWithIcons(Graphics graph) { final boolean isLeftToRight = comboBox.getComponentOrientation().isLeftToRight(); if (ui != null) { final Graphics g = graph == null ? null : graph.create(); try { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void paintIcon(Component c, Graphics g, int x, int y)\r\n/* 164: */ {\r\n/* 165:198 */ Graphics2D g2 = (Graphics2D)g;\r\n/* 166:199 */ AbstractButton rb = (AbstractButton)c;\r\n/* 167:200 */ ButtonModel model = rb.getModel();\r\n/* 168:201 */ boolean paintFocus = ((model.isArm...
[ "0.7090718", "0.70379", "0.69086814", "0.6876679", "0.67045534", "0.6580188", "0.63733435", "0.63695633", "0.6266258", "0.6254045", "0.62441784", "0.6237613", "0.61986023", "0.6196424", "0.6178903", "0.61715376", "0.6162158", "0.6151492", "0.6141974", "0.6132097", "0.6129298"...
0.5776083
49
Creates a new combo box editor.
public OSDarkLAFComboBoxEditor() { super(); editor.setBorder(OSDarkLAFBorders.getComboEditorBorder()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static JComboBox createComboBox() {\n JComboBox comboBox = new JComboBox();\n initFormWidget(comboBox);\n comboBox.setBackground(Color.WHITE);\n return comboBox;\n }", "private void initCombobox() {\n comboConstructeur = new ComboBox<>();\n comboConstructeur.se...
[ "0.7398025", "0.67553586", "0.6648251", "0.6637498", "0.6635039", "0.6574598", "0.65732783", "0.64679444", "0.641965", "0.64160615", "0.62910146", "0.6285709", "0.62720907", "0.62174666", "0.62037283", "0.6203496", "0.6197637", "0.61933863", "0.6181831", "0.6115788", "0.60952...
0.6682101
2
Repaints the parent component.
protected void repaint() { if (null != comboBox && null != comboBox.getParent()) { comboBox.getParent().repaint(comboBox.getX() - 5, comboBox.getY() - 5, comboBox.getWidth() + 10, comboBox.getHeight() + 10); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void repaint() { if(_parent!=null) _parent.repaint(this); }", "@Override\n\tpublic void repaint() {\n\t\tsuper.repaint();\n\t}", "@Override\r\n\tpublic void repaint() {\n\t\tsuper.repaint();\r\n\t}", "@Override\r\n\tpublic void repaint() {\n\t\tsuper.repaint();\r\n\t}", "public void requestRedraw()...
[ "0.8384913", "0.7426964", "0.74193376", "0.74193376", "0.7398062", "0.7148783", "0.7041429", "0.6783303", "0.67821324", "0.670341", "0.66807085", "0.6678503", "0.6638089", "0.655136", "0.64938414", "0.6484863", "0.62522936", "0.62275666", "0.62230384", "0.6217584", "0.6187714...
0.6814206
7
TODO Autogenerated method stub
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { doGet(request, response); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0...
0.0
-1
Tarkistaa, onko kyseinen opiskelija tallennettu tietokantaan.
private boolean studentExists(int student) throws SQLException { String sql = "SELECT * FROM student WHERE student_num ==?"; try (PreparedStatement ps = c.prepareStatement(sql)) { ps.setInt(1, student); ResultSet results = ps.executeQuery(); return results.next(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void tallennaTiedostoon() {\n viitearkisto.tallenna();\n }", "public void klikkaa(Tavarat tavarat, Klikattava klikattava);", "void tampilKarakterA();", "@Test\n public void yksiVasemmalle() {\n char[][] kartta = Labyrintti.lueLabyrintti(\"src/main/resources/labyrinttiTestiVasen.tx...
[ "0.78256035", "0.70974296", "0.6984758", "0.6978232", "0.6963671", "0.67752457", "0.67474353", "0.6714032", "0.6705565", "0.664104", "0.66322386", "0.66291714", "0.6605427", "0.6578006", "0.65357137", "0.6467845", "0.645312", "0.64067173", "0.6376284", "0.6336188", "0.6321931...
0.0
-1
Idea idea = ideaRepository.findById(ideaService.getIdeaById(idea)); Idea entity = ideaService.getIdeaById(ideaId.get()); note.setIdeaId(idea.getIdeaId());
@PostMapping("/addnote") private String saveNote(Note note, Idea idea) { noteService.save(note); // System.out.println(idea.getIdeaId()); return "notes"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ProjectIdea getProjectIdea(int id){\n //String sql = \"SELECT * FROM project_idea WHERE idea_id = ?\";\n try{\n ProjectIdea result = super.queryForId(id);\n return result;\n } catch(SQLException e){\n System.out.println(e.getMessage());\n }\n ...
[ "0.6473609", "0.62556076", "0.61396885", "0.6100366", "0.60669017", "0.58851075", "0.58632314", "0.5849174", "0.5828086", "0.5807386", "0.5803274", "0.5791577", "0.5784117", "0.5772259", "0.574717", "0.5735107", "0.57308686", "0.57133585", "0.5699137", "0.56646603", "0.566198...
0.6421153
1
Write your solution here
public boolean canPermutePalindrome(String input) { if (input == null) { return false; } if (input.length() == 0) { return true; } char[] temp = input.toCharArray(); // StringBuilder sol = new StringBuilder(); boolean[] result = new boolean...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void generateSolution() {\n\t\t// TODO\n\n\t}", "public void solution() {\n\t\t\n\t}", "public void findSolution() {\n\n\t\t// TODO\n\t}", "public static String solution() {\r\n\t\treturn \"73162890\";\r\n\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(solution());\r\n\t}", ...
[ "0.75719035", "0.74944717", "0.6431267", "0.6300665", "0.6254568", "0.61911374", "0.60910475", "0.6049933", "0.60051423", "0.6002172", "0.5965524", "0.5956326", "0.5955198", "0.59388304", "0.5937435", "0.5905292", "0.5895413", "0.5895027", "0.58842075", "0.58707607", "0.58511...
0.0
-1
/ Re do following homework with pojo. Use Jackson annotations if needed. send a get request to student id 23401 as a path parameter and accept header application/json verify status code=200 /content type=c /ContentEncoding = gzip verify Date header exists assert that firstName Vera batch 14 section 12
@Test public void test1() { Student student = given().accept(ContentType.JSON) .pathParam("id", 23401) .when() .get("http://api.cybertektraining.com/student/{id}") .then().statusCode(200) .and().contentType("application/json;charset=UTF-8") ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test(priority=2)\r\n\t\tpublic void getStudentIDSerialization() {\r\n\t\t\tgiven()\r\n\t\t\t\t.contentType(ContentType.JSON)\r\n\t\t\t.when()\r\n\t\t\t\t.get(\"http://localhost:8085/student/102\")\r\n\t\t\t.then()\r\n\t\t\t\t.statusCode(200)\r\n\t\t\t\t.assertThat()\r\n\t\t\t\t.body(\"id\",equalTo(\"102\"));\r\n\...
[ "0.7454808", "0.70801973", "0.7025775", "0.6663219", "0.6651668", "0.6393794", "0.6393348", "0.63189346", "0.6223356", "0.62213266", "0.61947834", "0.6193018", "0.6172275", "0.611423", "0.60561216", "0.6049143", "0.60199994", "0.6015054", "0.60032976", "0.5973113", "0.5967766...
0.7523591
0
TODO fix this by removing offers using remove offers from wallet with user a odAdmin.
@Override public boolean removeOffersForCard(OfferCard offerCard) { getOfferOfferCardAssocDAO().removeOffersForCard(offerCard); getOfferDAO().removeOffersForCard(offerCard); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (item.getItemId()) {\n case R.id.action_edit:\n Intent in = new Intent(getContext(), addoffers.class);\n in.putExtra(\"object\", offer);\n ...
[ "0.57589865", "0.5700408", "0.54473567", "0.5386098", "0.5378324", "0.52646005", "0.52225846", "0.5198829", "0.51443106", "0.51171523", "0.5089586", "0.50709003", "0.50625753", "0.50139695", "0.500107", "0.49127397", "0.4900759", "0.4899", "0.48962036", "0.4883647", "0.486928...
0.55177003
2
menggunakan notifyDataSetChanged() untuk memberitahu adapter bahwa ada perubahan pada data set
public void updateDataSet(ArrayList<BiddingResources> biddingPeringkatList) { this.biddingPeringkatList = biddingPeringkatList; notifyDataSetChanged(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void notifyDataSetChanged() {\n\t\tsuper.notifyDataSetChanged();\r\n\t\tLog.v(\"DEBUG\", \"CHANGE\");\r\n\t}", "@Override\r\n public void onDataSetChanged() {\n }", "public void onDataSetChanged();", "public void notifyChanged() {\n notifyDataSetChanged(...
[ "0.8080663", "0.7959745", "0.7812742", "0.7809355", "0.7767204", "0.7702397", "0.75334877", "0.7451612", "0.7424184", "0.7354019", "0.7304636", "0.7225377", "0.72142154", "0.71785086", "0.7128823", "0.69370776", "0.693177", "0.68663037", "0.686332", "0.68623734", "0.6862018",...
0.65678257
40
Dao for store operations
public interface StoreDao { public List<Store> getStoreList(); public Store getStore(int idStore); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface StoreDao {\n /**\n * 判断shopId是否存在\n * @param id\n * @return boolean\n */\n boolean isStoreIdExists(String id);\n /**\n * 返回图片\n * @param clothId\n * @return User\n */\n String getStoreClothById(String clothId);\n}", "public interface StorageDao {\n\n ...
[ "0.74416596", "0.736505", "0.71560204", "0.7091581", "0.70715845", "0.69807416", "0.6958995", "0.6877637", "0.6817975", "0.6809105", "0.67989737", "0.67814857", "0.6778931", "0.6764195", "0.676205", "0.6745783", "0.67441523", "0.6739828", "0.6735139", "0.6718891", "0.6715551"...
0.7816724
0
Created by MK on 2017/12/28.
public interface SongView { public void success(SongBean bean); public void failure(String mes); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\tpubli...
[ "0.58660865", "0.57925415", "0.568185", "0.56081504", "0.55686617", "0.55668753", "0.5536767", "0.5536767", "0.5526079", "0.5490722", "0.548831", "0.54738146", "0.5473413", "0.5469466", "0.54694015", "0.5464072", "0.5464072", "0.5464072", "0.5464072", "0.5464072", "0.5464072"...
0.0
-1
Generates three random numbers that correspond to the combination needed to unlock the combination lock. Sets the global array (current_combination) to the randomly selected values for use throughout the app. Sets the current_combination_label to display the current combination
private void generateRandomCombination() { Random num_generator = new Random(); //First combo number should not be in range -5 to 5. int temp_combo_one; do { temp_combo_one = num_generator.nextInt(40); } while (temp_combo_one >= -5 && temp_combo_one <= 5); /...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int getCurrentCombo() {\n\n int current_combo = 0;\n\n //Configure first combination number\n //Gyroscope gives negative readings when the phone is rotated CW\n //Make current combo negative to force user to spin CW\n if (correct_count == 0) {\n current_combo =...
[ "0.6025602", "0.584042", "0.5538009", "0.5491653", "0.51289207", "0.5083914", "0.5058864", "0.49856606", "0.49850357", "0.49470034", "0.48834845", "0.4876508", "0.48633346", "0.4831841", "0.48314524", "0.48271385", "0.48221445", "0.47970575", "0.47724518", "0.4771392", "0.476...
0.764869
0
Returns the necessary number of degrees that the user must spin the phone to land on a combination number.
private int getCurrentCombo() { int current_combo = 0; //Configure first combination number //Gyroscope gives negative readings when the phone is rotated CW //Make current combo negative to force user to spin CW if (correct_count == 0) { current_combo = -(current_co...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int degreeFromCoefficients(int numOfCoefficients) {\n return (int) (0.5*(-1 + (int)(Math.sqrt(1+8*numOfCoefficients))))-1;\n }", "double getDegreesCoolingPerMBPerK();", "int getStartRotationDegree();", "int getDegree();", "int getDegree();", "public static int getDegree(){\r\n in...
[ "0.5820625", "0.554992", "0.55319816", "0.55273086", "0.55273086", "0.5477329", "0.53891665", "0.52498144", "0.52394205", "0.5201028", "0.5184053", "0.5115364", "0.50494176", "0.5049251", "0.5033181", "0.50169015", "0.49917927", "0.498692", "0.49708483", "0.4969068", "0.49587...
0.6654472
0
Set arrow to initial orientation. Arrow will be pointing to the right.
private void resetArrow() { arrow.setRotation(0); arrow.setScaleX(1); arrow.setRotation(-45); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void flipArrow() {\n arrow.setRotation(0);\n arrow.setScaleX(-1);\n arrow.setRotation(50);\n }", "public void resetAngle() {\n\t\t//this.angle = (this.orientation % 4 + 4) * (90);\n\t\tthis.angle = this.orientation * 90*-1;\n\t\tthis.tweenAngle.setCurrentValue(this.angle);\n\t\tth...
[ "0.65378094", "0.63114434", "0.6277968", "0.6205387", "0.615024", "0.61228365", "0.60894734", "0.6018887", "0.5995302", "0.59704804", "0.59334314", "0.5866341", "0.5845411", "0.58390003", "0.5832477", "0.5790656", "0.5772084", "0.5765276", "0.5739983", "0.57321507", "0.572514...
0.75534534
0
Flip the arrow from the original orientation. Arrow will be pointing to the left.
private void flipArrow() { arrow.setRotation(0); arrow.setScaleX(-1); arrow.setRotation(50); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void flip()\r\n\t{\r\n\t\tif(heading == Direction.WEST)\r\n\t\t{\r\n\t\t\tsetDirection(Direction.EAST);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tsetDirection(Direction.WEST);\r\n\t\t}\r\n\t}", "private void resetArrow() {\n arrow.setRotation(0);\n arrow.setScaleX(1);\n arrow.setRotatio...
[ "0.70145285", "0.68558496", "0.68341154", "0.6668473", "0.6601033", "0.6535242", "0.64761984", "0.64464206", "0.64117277", "0.6402971", "0.63353723", "0.62906027", "0.6203962", "0.6194287", "0.6117039", "0.60933715", "0.60907745", "0.6084566", "0.6079471", "0.6075171", "0.604...
0.8097008
0
Return meta information about a document. Can be called after find document methods call Consider the use of ResourceList instead.
LinksInformation getLinksInformation(Iterable<T> resources, QueryParams queryParams);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public edu.ustb.sei.mde.morel.resource.morel.IMorelMetaInformation getMetaInformation();", "@Override\n public RavenJObject getMetadata() {\n return metadata;\n }", "Metadata getMetaData();", "public ResourceContent getMetadata() throws IOException;", "@Override\n\tpublic DocumentWithMeta getSysDocume...
[ "0.6690508", "0.6411975", "0.63658416", "0.6282427", "0.6220282", "0.62068003", "0.6163792", "0.61573386", "0.61358225", "0.61230934", "0.60849106", "0.60799605", "0.60405236", "0.60380924", "0.60235256", "0.60235256", "0.60235256", "0.60235256", "0.60235256", "0.6007346", "0...
0.0
-1
Creates new form NodeInfoInternalFrame FIXME change way of transfer IConfigurerPrx
public NodePropertiesInternalFrame(Map<String, String> _info, String _nodeName, IConfigurerPrx _config) { initComponents(); this.setClosable(true); this.setTitle(_nodeName + " - properties"); initInfo(_info); config = _config; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Node createFrameHolder(Data<X,Y> dataItem){\n Node frameHolder = dataItem.getNode();\n if (frameHolder == null){\n frameHolder = new StackPane();\n dataItem.setNode(frameHolder);\n }\n frameHolder.getStyleClass().add(getStyleClass(dataItem.getExtraValue()))...
[ "0.58630425", "0.5482073", "0.52583665", "0.5234179", "0.52043575", "0.51817983", "0.51681066", "0.5164251", "0.513464", "0.5127828", "0.5114953", "0.5081794", "0.5079927", "0.5046918", "0.504621", "0.503386", "0.50304216", "0.50265616", "0.5011709", "0.49655667", "0.49547952...
0.6633878
0
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { btnCloseProperties = new javax.swing.JButton(); jTabbedPane1 = new javax.swing.JTabbedPane(); jPanel1 = new javax.swing.JPanel(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n ...
[ "0.73192346", "0.7290526", "0.7290526", "0.7290526", "0.7285891", "0.72480357", "0.7213616", "0.7207808", "0.71955067", "0.71891475", "0.71844363", "0.7159038", "0.71474695", "0.7092269", "0.7079923", "0.70560205", "0.69864315", "0.697697", "0.69552195", "0.6953691", "0.69458...
0.0
-1
End of variables declaration//GENEND:variables
private void initInfo(Map<String, String> _info) { this.jlCPU.setText(_info.get("Model"));// FIXME may be very long name this.jlCores.setText(_info.get("TotalCores")); this.jlVendor.setText(_info.get("Vendor")); this.jlFrequency.setText(_info.get("Mhz") + " MHz"); this.jlRAM.setT...
{ "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}", "public void mo217...
[ "0.63617", "0.6280625", "0.61909467", "0.6095729", "0.6092663", "0.607037", "0.60523474", "0.605212", "0.6002499", "0.59878224", "0.5970378", "0.59679425", "0.5967425", "0.5965642", "0.596177", "0.5942055", "0.5908757", "0.589693", "0.589137", "0.5882839", "0.58795726", "0....
0.0
-1
Remember, skins can be created at runtime so we don't want to override any that a user might have already put into the factory.
public static void setupDialogSkinsDefaults() { if(! dialogSkins.containsKey("default")) addDialogSkin("default", new StandardDialogSkin()); if(! dialogSkins.containsKey("hand-held")) addDialogSkin("hand-held", new HandHeldDialogSkin()); haveDialogSkinsDefaults = true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void initSkins()\n {\n synchronized (this)\n {\n _skins = new HashMap<SkinMetadata, Skin>();\n }\n }", "Sku sku();", "public Sku() {\n\t}", "interface WithSku {\n /**\n * Specifies the sku property: The resource model definition representing SKU.\n ...
[ "0.6560729", "0.59525037", "0.5697428", "0.56894857", "0.56832665", "0.56785303", "0.5672331", "0.5639644", "0.5598695", "0.55461526", "0.5530313", "0.5520928", "0.54962385", "0.53744704", "0.5369531", "0.53298783", "0.53007144", "0.52367824", "0.51968426", "0.5174694", "0.51...
0.5002395
35
GET ID DE CONTACTS
public int getContactIdByEmail(String email) { HttpGet request = new HttpGet(QueryId(email)); credential(request); try { String jsonResponse = connectionHttp.ConnectionResponse(request); ObjectMapper om = new ObjectMapper(); JsonNode nodes = om.readTree(jsonResponse...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getAllContactId() {\n return getContact().getUid();\n }", "@Override\r\n\tpublic Integer getId() {\n\t\treturn this.codContacto;\r\n\t}", "public String getIdContacto() {\r\n\t\treturn idContacto;\r\n\t}", "public int getContactID() {\r\n return contactID;\r\n }", "public int ge...
[ "0.68381184", "0.66474414", "0.6480509", "0.64386976", "0.64024127", "0.6354994", "0.6218593", "0.62052983", "0.6163498", "0.61597747", "0.61249536", "0.61150855", "0.61128074", "0.6083756", "0.6066356", "0.60175073", "0.59986794", "0.5975664", "0.5955927", "0.595124", "0.585...
0.0
-1
void editNewsTitle(String id,String title); void editNewsContent(String id,String content); void editNewsAttactLink(String id,String attactLink); void editNews(String id,String title,String content,String attactLink);
void deleleNews(String id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void updateNewsById(News aNews) {\n\t\tConnection conn = null;\r\n\t\tPreparedStatement pstmt = null;\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tString sql = \"update news set title=?, content=?, fk_topic_id=? where id = ?\";\r\n\t\t\tconn = SimpleDBUtil.getConnection();\r\n\t\t\tpstmt = conn.prepareSta...
[ "0.7172001", "0.6625491", "0.65230405", "0.6317043", "0.62922114", "0.626683", "0.61836743", "0.61615455", "0.6155554", "0.6054691", "0.60504353", "0.60294807", "0.6021158", "0.6010034", "0.6000058", "0.59950167", "0.59885967", "0.58665305", "0.5842", "0.5826985", "0.5802678"...
0.5745301
25
reqid is the id used when subscribing
public Message newCancelMarketStreamRequest(String reqID , List<Instrument> symbols) { log.info("newCxlMarketStreamRequest called"); MarketDataRequest request = new MarketDataRequest(); request.setField(new MDReqID(reqID)); request.setField(new SubscriptionRequestType(SubscriptionReques...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void subscribe(String id);", "@Override\n\tpublic void onRequestStart(String reqId) {\n\t\t\n\t}", "java.lang.String getRequestID();", "public String getIdrequest() {\r\n\t\treturn idrequest;\r\n\t}", "private void requestServerId() {\n connection.startClient(lbInfo.getIp(), lbInfo.getPort());\n ...
[ "0.6445259", "0.6292163", "0.6056656", "0.58552426", "0.5828017", "0.5802748", "0.57969505", "0.57875615", "0.5771764", "0.571784", "0.56848586", "0.56558776", "0.56484985", "0.56299543", "0.561513", "0.5568559", "0.5510396", "0.5510226", "0.5457249", "0.54437727", "0.5443447...
0.0
-1
The Package for the model. It contains accessors for the meta objects to represent each class, each feature of each class, each operation of each class, each enum, and each data type
public interface NeoEpsilonPackage extends EPackage { /** * The package name. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ String eNAME = "NeoEpsilon"; /** * The package namespace URI. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ String eNS_URI = "http:...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "IoT_metamodelPackage getIoT_metamodelPackage();", "public void createPackageContents()\n {\n if (isCreated) return;\n isCreated = true;\n\n // Create classes and their features\n modelEClass = createEClass(MODEL);\n createEReference(modelEClass, MODEL__AGENT);\n\n agentEClass = createEClass(AG...
[ "0.6440476", "0.61842614", "0.61518157", "0.6078748", "0.6047495", "0.6046447", "0.60233986", "0.6010338", "0.6009404", "0.6009124", "0.5993905", "0.5986726", "0.5985098", "0.5983781", "0.596943", "0.5965927", "0.5953665", "0.5951791", "0.59491247", "0.5941394", "0.5933421", ...
0.0
-1
Returns the factory that creates the instances of the model.
NeoEpsilonFactory getNeoEpsilonFactory();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ModelsFactory getModelsFactory();", "public ObjectifyFactory factory() {\n return ofy().factory();\n }", "TestModelFactory getTestModelFactory();", "BehaviouralModelFactory getBehaviouralModelFactory();", "public static Factory factory() {\n return ext_dbf::new;\n }", "public ValueFactory<K...
[ "0.7365279", "0.7147646", "0.7042554", "0.66732574", "0.66433585", "0.6542524", "0.6426967", "0.6378293", "0.63225335", "0.62815636", "0.6185782", "0.61756575", "0.6168043", "0.6150566", "0.61496305", "0.61323225", "0.6131665", "0.6126879", "0.61266255", "0.6124763", "0.61157...
0.0
-1
Defines literals for the meta objects that represent each class, each feature of each class, each operation of each class, each enum, and each data type
interface Literals { /** * The meta object literal for the '{@link NeoEpsilon.impl.ShelfImpl <em>Shelf</em>}' class. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @see NeoEpsilon.impl.ShelfImpl * @see NeoEpsilon.impl.NeoEpsilonPackageImpl#getShelf() * @generated */ EClass SHELF = eINSTANC...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void generateCoreTypes() {\n\t\tvoidDt = new VoidDataType(progDataTypes);\n\t\tArrayList<TypeMap> typeList = new ArrayList<>();\n\t\ttypeList.add(new TypeMap(DataType.DEFAULT, \"undefined\", \"unknown\", false, false));\n\n\t\tfor (DataType dt : Undefined.getUndefinedDataTypes()) {\n\t\t\ttypeList.add(new ...
[ "0.5967662", "0.59546417", "0.5850874", "0.5848948", "0.5812678", "0.57160336", "0.57074887", "0.5677265", "0.55510944", "0.5546431", "0.55364335", "0.55305713", "0.5517766", "0.5500278", "0.54963756", "0.54699326", "0.54664516", "0.5455503", "0.5453679", "0.54526377", "0.543...
0.5331572
30
Tiempo de caducidad del objeto despues de haberlo comprado EN DIAS
@Range(min = 0) @NotNull public Integer getExpiration() { return this.expiration; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public cola_de_un_banco(){// se crea nuestro metodo costructor \r\n primero=null;//se crea el tipo de indicaciones con valor...
[ "0.6330798", "0.6290751", "0.6120632", "0.6102813", "0.59905875", "0.5899692", "0.58941495", "0.5882718", "0.5881507", "0.58788687", "0.5874168", "0.5844634", "0.5804361", "0.5781086", "0.57708955", "0.5767902", "0.5757928", "0.5720149", "0.5717141", "0.5703879", "0.56997347"...
0.0
-1
Es usado por si un objeto se quiere dejar de vender para borrarlo una vez no lo este usando ningun jugador
public boolean getOnSell() { return this.onSell; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void borrarZonaObjetivoAtaque() {\n\t\t\n\t}", "public void borrarZonaObjetivoMovimiento() {\n\t\t\n\t}", "public boolean remover(Veterinario obj) throws ClassNotFoundException, SQLException{\n VeterinarioDAO dao = new VeterinarioDAO();\n return dao.remover(obj);\n }", "public void el...
[ "0.73825985", "0.7143902", "0.70206326", "0.7013128", "0.6979177", "0.6872783", "0.6826755", "0.68099904", "0.679496", "0.67907566", "0.6733354", "0.6685408", "0.6624211", "0.6622935", "0.66140133", "0.6575705", "0.6553398", "0.6528083", "0.65223753", "0.65150696", "0.6497431...
0.0
-1
/ access modifiers changed from: protected
public void onNewResultImpl(@Nullable EncodedImage encodedImage, int i) { if (!this.mIsCancelled) { boolean isLast = isLast(i); if (encodedImage == null) { if (isLast) { getConsumer().onNewResult(null, 1); } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override...
[ "0.7375736", "0.7042321", "0.6922649", "0.6909494", "0.68470824", "0.6830288", "0.68062353", "0.6583185", "0.6539446", "0.65011257", "0.64917654", "0.64917654", "0.64733833", "0.6438831", "0.64330196", "0.64330196", "0.64295477", "0.6426414", "0.6420484", "0.64083177", "0.640...
0.0
-1
/ access modifiers changed from: private
public static TriState shouldTransform(ImageRequest imageRequest, EncodedImage encodedImage, boolean z) { if (encodedImage == null || encodedImage.getImageFormat() == ImageFormat.UNKNOWN) { return TriState.UNSET; } if (encodedImage.getImageFormat() != DefaultImageFormats.JPEG) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n protected void prot() {\n }", "private Rekenhulp()\n\t{\n\t}", "@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}", "@Override\n public void func_104...
[ "0.70451087", "0.66481936", "0.66338545", "0.6534467", "0.6533057", "0.63756114", "0.6368523", "0.63063055", "0.6244554", "0.62261415", "0.62046665", "0.61776316", "0.6142759", "0.6131381", "0.6131381", "0.61274433", "0.610919", "0.610797", "0.60792845", "0.6062989", "0.60593...
0.0
-1
/ access modifiers changed from: private
public static int getSoftwareNumerator(ImageRequest imageRequest, EncodedImage encodedImage, boolean z) { int i; int i2; if (!z) { return 8; } ResizeOptions resizeOptions = imageRequest.getResizeOptions(); if (resizeOptions == null) { return 8; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n protected void prot() {\n }", "private Rekenhulp()\n\t{\n\t}", "@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}", "@Override\n public void func_104...
[ "0.7044735", "0.66479045", "0.6633232", "0.65343255", "0.65324754", "0.63757193", "0.6367789", "0.63065237", "0.6244171", "0.622592", "0.62049985", "0.61766696", "0.614237", "0.6130815", "0.6130815", "0.6127483", "0.6108821", "0.61083317", "0.607937", "0.60626495", "0.6058102...
0.0
-1
/ access modifiers changed from: private
public static int getRotationAngle(RotationOptions rotationOptions, EncodedImage encodedImage) { if (!rotationOptions.rotationEnabled()) { return 0; } int extractOrientationFromMetadata = extractOrientationFromMetadata(encodedImage); if (rotationOptions.useImageMetadata()) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n protected void prot() {\n }", "private Rekenhulp()\n\t{\n\t}", "@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}", "@Override\n public void func_104...
[ "0.70451087", "0.66481936", "0.66338545", "0.6534467", "0.6533057", "0.63756114", "0.6368523", "0.63063055", "0.6244554", "0.62261415", "0.62046665", "0.61776316", "0.6142759", "0.6131381", "0.6131381", "0.61274433", "0.610919", "0.610797", "0.60792845", "0.6062989", "0.60593...
0.0
-1
/ access modifiers changed from: private
public static int getForceRotatedInvertedExifOrientation(RotationOptions rotationOptions, EncodedImage encodedImage) { int indexOf = INVERTED_EXIF_ORIENTATIONS.indexOf(Integer.valueOf(encodedImage.getExifOrientation())); if (indexOf >= 0) { int i = 0; if (!rotationOptions.useImag...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n protected void prot() {\n }", "private Rekenhulp()\n\t{\n\t}", "@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}", "@Override\n public void func_104...
[ "0.70451087", "0.66481936", "0.66338545", "0.6534467", "0.6533057", "0.63756114", "0.6368523", "0.63063055", "0.6244554", "0.62261415", "0.62046665", "0.61776316", "0.6142759", "0.6131381", "0.6131381", "0.61274433", "0.610919", "0.610797", "0.60792845", "0.6062989", "0.60593...
0.0
-1
Get the test result, as if the mutant is alive or not
@Override public boolean getTest(int testCase, int testReq) { Object expected; try { expected = testingMethod.invoke(oracle, parameters[testCase]); } catch (IllegalAccessException | IllegalArgumentException | InvocationTargetException ex) { //TODO ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean getResult() {\r\n\treturn result;\r\n }", "public CrashTestStatus.TestResult testResult() {\n try {\n final Duration testTimeout = mDuration.plus(MAX_TEST_DELAY_BEFORE_HANG);\n boolean completed =\n mTestStatus.waitForCompletion(testTimeout.toMillis(), TimeUnit.MILLISE...
[ "0.6194428", "0.6061565", "0.60271883", "0.60271883", "0.60271883", "0.60244215", "0.6013242", "0.59943694", "0.59943694", "0.59943694", "0.59943694", "0.59943694", "0.59943694", "0.59943694", "0.59943694", "0.59943694", "0.59943694", "0.59943694", "0.59943694", "0.59728086", ...
0.0
-1
Quantity of test cases
@Override public int getTestCaseTotal() { return parameters.length; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int getTotalTestCase() {\n\t\treturn passedtests.size() + failedtests.size() + skippedtests.size();\n\t}", "public int countTestCases() {\n return 1;\n }", "@Override\n public int countTestCases()\n {\n return 1;//_testCaseCount;\n }", "@BeforeSuite\n\tpublic void numofTestC...
[ "0.8127178", "0.7690387", "0.767373", "0.73459023", "0.71904665", "0.6965162", "0.67968386", "0.6713906", "0.6672379", "0.6655219", "0.6655219", "0.6654489", "0.66299933", "0.6623119", "0.66224", "0.6600818", "0.65775824", "0.65370494", "0.65071", "0.64955324", "0.6459901", ...
0.6903725
6
Quantity of requirements in the mutants
@Override public int getRequirementTotal() { return mutants.length; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getNumMutants() {\n\t\tint count = 0;\n\t\tfor (Bacteria ind : this.inds) {\n\t\t\tif (ind.hasMutator()) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\treturn count;\n\t}", "public int getQuantityRequired(){\n return quantityRequired1;\n }", "public double totalQuantity() {\r\n\t\tdouble t = 0;\...
[ "0.6242897", "0.61366355", "0.6039102", "0.603605", "0.59939146", "0.5971893", "0.59399664", "0.5939677", "0.5937302", "0.5937302", "0.59253454", "0.587897", "0.5873418", "0.5870315", "0.5833592", "0.5833224", "0.581285", "0.57948786", "0.57901907", "0.57815176", "0.57711345"...
0.8178091
0
Cancel the task after performing necessary functions
public void cancelTask(){ if(main.teleporting.containsKey(teleporter.getName())){ main.teleporting.remove(teleporter.getName()); } this.cancel(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized void cancel() {\n }", "public void cancel();", "public void cancel();", "public void cancel();", "public void cancel();", "public void cancel();", "public void cancel();", "void cancel();", "void cancel();", "void cancel();", "void cancel();", "void cancel();", "p...
[ "0.7725736", "0.76723635", "0.76723635", "0.76723635", "0.76723635", "0.76723635", "0.76723635", "0.7632109", "0.7632109", "0.7632109", "0.7632109", "0.7632109", "0.76144403", "0.75208795", "0.74570787", "0.7427249", "0.74024206", "0.7388433", "0.738745", "0.7378789", "0.7368...
0.72661066
34
Get the player who is teleporting
public Player getTeleporter(){ return teleporter; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Player getToTeleportTo(){\n\t\treturn toTeleportTo;\n\t}", "public Player getPlayer() {\r\n return world.getPlayer();\r\n }", "public Player getToPlayer()\n {\n // RETURN the CardMessage's toPlayer\n return this.toPlayer;\n }", "private static Player getThroughWhomSendMes...
[ "0.78534853", "0.72453636", "0.68095464", "0.67642283", "0.6744623", "0.66897464", "0.66897464", "0.66294837", "0.6614613", "0.65715855", "0.65670705", "0.6538905", "0.653809", "0.65298927", "0.65214485", "0.6517485", "0.6517485", "0.65155655", "0.65105724", "0.6492011", "0.6...
0.79930454
0
Get the player who is getting teleported to
public Player getToTeleportTo(){ return toTeleportTo; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Player getTeleporter(){\n\t\treturn teleporter;\n\t}", "public Player getPlayer() {\r\n return world.getPlayer();\r\n }", "public Player getToPlayer()\n {\n // RETURN the CardMessage's toPlayer\n return this.toPlayer;\n }", "private static Player getThroughWhomSendMessage...
[ "0.79146725", "0.74310756", "0.7100344", "0.69669443", "0.6866757", "0.6816406", "0.6816406", "0.6802785", "0.67907697", "0.67886347", "0.67777467", "0.6776557", "0.6744223", "0.67229766", "0.6710063", "0.6708276", "0.66842157", "0.6665995", "0.66657436", "0.66657436", "0.665...
0.7807819
1
/ Test only the persistence of the NoDupPersistencePriorityQueue implementation
public static void testPersistence()throws Exception { Queue queue = new InMemoryQueue(); // queue.init("com.mysql.jdbc.Driver", // "jdbc:mysql://127.0.0.1/queue?user=root", // "jdbc:mysql://127.0.0.1/mysql?user=root", "queue", // true); for (int i = 0; i < 1; i++){ queue.clear(); System.out.printl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testAdd() throws Exception {\n this.queue = new HeapPriorityQueue<Person>(5); \n this.queue.add(new Person(\"Four\"), 4);\n this.queue.add(new Person(\"Five\"), 5);\n boolean actualResult = this.queue.isEmpty();\n \n boolean expectedResult = false; ...
[ "0.6358659", "0.6165168", "0.589144", "0.5868712", "0.5811212", "0.5807312", "0.5801717", "0.5768661", "0.5762837", "0.575709", "0.56402034", "0.5635015", "0.5606637", "0.5590245", "0.55741763", "0.5549371", "0.5538752", "0.5530597", "0.553048", "0.55119234", "0.5511432", "...
0.5871543
3
/ Test only the persistence of the NoDupPersistencePriorityQueue implementation
public static void testPersistenceAndPriority() { Map l = new TreeMap(); l.put("http://www.google.it/", new Double(1.1)); l.put("http://www.federicovigna.it/", new Double(1.4)); l.put("http://localhost/php/cliniquefitness/", new Double(1.1)); l.put("http://www.yahoo.it/", new Double(0.9)); /* Downloader d...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testAdd() throws Exception {\n this.queue = new HeapPriorityQueue<Person>(5); \n this.queue.add(new Person(\"Four\"), 4);\n this.queue.add(new Person(\"Five\"), 5);\n boolean actualResult = this.queue.isEmpty();\n \n boolean expectedResult = false; ...
[ "0.6358659", "0.589144", "0.5871543", "0.5868712", "0.5811212", "0.5807312", "0.5801717", "0.5768661", "0.5762837", "0.575709", "0.56402034", "0.5635015", "0.5606637", "0.5590245", "0.55741763", "0.5549371", "0.5538752", "0.5530597", "0.553048", "0.55119234", "0.5511432", "...
0.6165168
1
/ Test the Resource implementation in a Temp file
public static void testResourceFile() { ArrayList l = new ArrayList(); l.add("http://www.google.it"); l.add("http://www.microsoft.com"); /* Downloader d = new Downloader(1); logger .log( Level.INFO, "TEST ResourceFile implementation. Url downloaded will be temporary saved to system temp direc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract T createTestResource();", "public static File CreateTempFile(String fileName, String resourcePath) throws IOException {\n \n /*if (tempDirectoryPath == null) {\n tempDirectoryPath = Files.createTempDirectory(null);\n System.getSecurityManager().checkDelete(t...
[ "0.6975735", "0.6615205", "0.64293355", "0.642715", "0.61250454", "0.6123537", "0.60169667", "0.6002969", "0.5826515", "0.58167124", "0.5787355", "0.57686865", "0.5762641", "0.5748557", "0.5748214", "0.57400346", "0.5670702", "0.56673306", "0.5663522", "0.56507", "0.56465876"...
0.66020495
2
Configure ViewResolvers to deliver preferred views.
@Override public void configureViewResolvers(ViewResolverRegistry registry) { TilesViewResolver viewResolver = new TilesViewResolver(); registry.viewResolver(viewResolver); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setViewResolver(ViewResolver resolver);", "@Override\n public void configureViewResolvers(ViewResolverRegistry registry) {\n ThymeleafViewResolver resolver = new ThymeleafViewResolver();\n resolver.setTemplateEngine(templateEngine());\n registry.viewResolver(resolver);\n }", "@B...
[ "0.6659435", "0.632472", "0.61493903", "0.60108876", "0.5929191", "0.58932424", "0.5885693", "0.58820164", "0.57568777", "0.5749839", "0.5736996", "0.571589", "0.5578897", "0.54533124", "0.5431441", "0.5411929", "0.5375739", "0.52904373", "0.5262009", "0.5246829", "0.5212155"...
0.6618856
1
We only wanna post what table the customer is going to be using at the resturang.
public Dinnertable(int dinnertableid){ this.dinnertableid = dinnertableid; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tprotected String getTable() {\n\t\treturn TABLE;\r\n\t}", "public String getTable()\n {\n return table;\n }", "public String getTable() {\r\n \t\treturn \"reservation\";\r\n \t}", "@Override\n\tpublic void getFields(List<String> table) {\n\t\t\n\t}", "public String getTable()...
[ "0.61441964", "0.5881328", "0.58266276", "0.5749459", "0.5641072", "0.5539925", "0.5513948", "0.5489055", "0.5488188", "0.54854447", "0.5476948", "0.5462819", "0.5416044", "0.54147625", "0.5413758", "0.54134357", "0.5411358", "0.5389798", "0.53773093", "0.5361823", "0.5360804...
0.0
-1
Get list of customers
public List<CustomerModel> readDatabase() throws Exception{ List<CustomerModel> list = new ArrayList<CustomerModel>(); try{ log.info("Loading MySql driver"); Class.forName("com.mysql.jdbc.Driver"); log.info("Setting up connection with db"); connect= DriverManager.getConnection("jdbc:mysql://localhost:3306/apidft","r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@RequestMapping(value = \"/v2/customers\", method = RequestMethod.GET)\r\n\tpublic List<Customer> customers() {\r\n JPAQuery<?> query = new JPAQuery<Void>(em);\r\n QCustomer qcustomer = QCustomer.customer;\r\n List<Customer> customers = (List<Customer>) query.from(qcustomer).fetch();\r\n ...
[ "0.86592007", "0.858046", "0.8475807", "0.84252495", "0.83957046", "0.8250507", "0.81755584", "0.81558037", "0.8141979", "0.8115641", "0.8105593", "0.80478543", "0.8044103", "0.80312246", "0.8006057", "0.79934764", "0.7975166", "0.79699093", "0.796012", "0.79354113", "0.79340...
0.0
-1
Get customer by ID
public CustomerModel findById(int id) throws Exception { String sql = "SELECT * FROM customer WHERE ID = ?"; CustomerModel customer = null; try { log.info("Loading MySql driver"); Class.forName("com.mysql.jdbc.Driver"); log.info("Setting up connection with db"); conne...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Customer getCustomerById(final Long id);", "@Override\n\tpublic Customer getCustomer(Integer id) {\n\t\treturn customerDao.findById(id);\n\t}", "@Override\n\tpublic Customer retrieveCustomer(Integer id) {\n\n\t\tCustomer customer = new Customer();\n\n\t\tfor (Customer cust : customers) {\n\t\t\tif (cust.getId(...
[ "0.88547707", "0.8343305", "0.83405435", "0.8235855", "0.82040226", "0.820297", "0.8197596", "0.8192001", "0.8164878", "0.81354153", "0.8038435", "0.80206954", "0.8017736", "0.7970872", "0.79622626", "0.7945709", "0.7940183", "0.7874591", "0.7836421", "0.77816904", "0.7770806...
0.0
-1
aka SpanLogTracingConfig. Configuration of a single log event in a traced span.
@ConfigBean public interface FakeSpanLogTracingConfig extends FakeTraceableConfig { // /** // * Disabled traced span log. // */ // public static final FakeSpanLogTracingConfigBean DISABLED = FakeSpanLogTracingConfigBean.builder("disabled").enabled(false).build(); // /** // * Enabled traced span log...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "EventWriterConfig getConfig();", "@Override\n public void configure(Map<String, ?> config) {\n KafkaSpanDecorator customDecorator = \n (KafkaSpanDecorator)config.get(\"kafka.producer.decorator\");\n \n if (customDecorator != null) {\n decorators.add(customDecorator);...
[ "0.5581276", "0.54712135", "0.5450715", "0.5227052", "0.51532084", "0.49563476", "0.4837869", "0.48057854", "0.4790885", "0.47471374", "0.47426647", "0.46900877", "0.4609255", "0.46089247", "0.4608828", "0.4519988", "0.45039976", "0.44930917", "0.4461678", "0.44615373", "0.44...
0.717434
0
TileEntitySniffer te = (TileEntitySniffer)world.getTileEntity(x, y, z); TileEntitySniffer te = (TileEntitySniffer)_world.getTileEntity(new BlockPos(_x, _y, _z)); / Switches the ID, return a new GUI.
@Override public Object getClientGuiElement(int _ID, EntityPlayer _player, World _world, int _x, int _y, int _z) { switch(_ID) { case 0: return new GuiTalentScreen(); default: break; } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public Object getClientGuiElement(int id, EntityPlayer player, World world,int x, int y, int z) {\n TileEntity tileEntity = world.getBlockTileEntity(x, y, z);\n if(tileEntity instanceof TileEntityBioCarbonizer){\n return new GuiBioCarbonizer(player.inventory,...
[ "0.66999805", "0.6656264", "0.64782095", "0.6378586", "0.6241614", "0.61572987", "0.61049855", "0.6039534", "0.60197306", "0.59283495", "0.59263057", "0.5917354", "0.583406", "0.5786218", "0.5781674", "0.5621782", "0.558318", "0.55548024", "0.55445385", "0.55440766", "0.55371...
0.5870766
12
Whenever it is not able to find any handler for the request(404)
@ExceptionHandler(NoHandlerFoundException.class) public ModelAndView handlerNoHandlerFoundException() { ModelAndView mv = new ModelAndView("/clientViews/page"); mv.addObject("title","404 Error Page"); mv.addObject("error404", true); return mv; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@ExceptionHandler(NoHandlerFoundException.class)\n public ModelAndView handleError404(Exception e) {\n ModelAndView model = new ModelAndView(\"genericError\");\n model.addObject(\"errCode\", \"404\");\n model.addObject(\"errMsg\", \"Zadana stranka nebyla na serveru bikeo.cz na...
[ "0.6701636", "0.6636213", "0.6629656", "0.63023674", "0.6289047", "0.62868446", "0.62792563", "0.6252742", "0.6191789", "0.61693233", "0.612497", "0.60710776", "0.6045403", "0.6020872", "0.60026413", "0.599807", "0.59832823", "0.593264", "0.5927612", "0.5901842", "0.5894914",...
0.71736604
0
funcion que muestra un pop up al dar error e inicio de sesion
private void showAlert() { AlertDialog.Builder alert = new AlertDialog.Builder(this); alert.setMessage("Error al autenticar usuario"); alert.setPositiveButton("Aceptar", null); AlertDialog pop = alert.create(); alert.show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String cerrarSesion(){\n FacesContext.getCurrentInstance().getExternalContext().invalidateSession();\r\n \r\n FacesMessage facesMessage = new FacesMessage(FacesMessage.SEVERITY_INFO, \"Sesión Cerrada\", \"Sesión Cerrada\");\r\n FacesContext.getCurrentInstance().addMessage(null, f...
[ "0.6605491", "0.6485562", "0.64777887", "0.6450165", "0.6356615", "0.63465154", "0.6335549", "0.6286176", "0.6207395", "0.61484516", "0.6142425", "0.6086624", "0.60726297", "0.60653365", "0.6063994", "0.6042531", "0.604111", "0.6019842", "0.59605783", "0.59590274", "0.5952030...
0.65379786
1
funcion que pasa a la pantalla Home
private void showHome(String user){ Intent home = new Intent(this, HomeActivity.class); home.putExtra("email", user); startActivity(home); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void goHome();", "String getOssHomepage();", "String home();", "protected void callHome() {\n\t\tIntent intent = new Intent(this, AdminHome.class);\r\n\t\tstartActivity(intent);\r\n\t}", "public void home_index()\n {\n Home.index(homer);\n }", "private void controladorHome(Controlador control...
[ "0.75576174", "0.7143405", "0.68635535", "0.6848384", "0.68474436", "0.68299836", "0.67505085", "0.6628225", "0.6549451", "0.64783806", "0.64624274", "0.644763", "0.64325887", "0.63915145", "0.63259435", "0.63116175", "0.62795085", "0.62673104", "0.6246196", "0.6237688", "0.6...
0.5694487
84
Tree is an interface that should be implemented by all trees.
public interface Tree<T extends Comparable<T>> { public boolean isEmpty(); public int size(); public T min(); public T max(); public boolean contains(T element); public boolean add(T element); public boolean remove(T element); public Iterator<T> traverse(TreeTraversalOrder order); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface Tree {\n\n //查找节点\n Node find(int val);\n\n //插入新节点\n boolean insert(int val);\n\n //中序遍历\n void infixOrder(Node current);\n\n //前序遍历\n void preOrder(Node current);\n\n //后序遍历\n void postOrder(Node current);\n\n //找到最大值\n Node findMax();\n\n //找到最小值\n Node...
[ "0.7726013", "0.7395538", "0.7384544", "0.71659404", "0.7146552", "0.71192265", "0.6947367", "0.68130565", "0.6779357", "0.6719812", "0.66755986", "0.66392714", "0.65505713", "0.6534005", "0.6513212", "0.64961827", "0.64960265", "0.6462345", "0.6455866", "0.64484715", "0.6399...
0.77069265
1
/ Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution.
public static void main(String[] args) { TruckTour sol1 = new TruckTour(); sol1.process(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\r\n\t\tSolution s = new Solution();\r\n\t}", "public static void main(String[] args) throws IOException {\n\t\t//Scanner in = new Scanner(System.in);\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in...
[ "0.7527976", "0.7303336", "0.72607845", "0.7235645", "0.71771896", "0.7173708", "0.7021257", "0.7021257", "0.6892989", "0.6870499", "0.6857013", "0.68230754", "0.68217313", "0.68089324", "0.6807614", "0.68048334", "0.67823637", "0.6769391", "0.6755574", "0.6752626", "0.675013...
0.0
-1
private Map, Vertex> previous; Creates a StreetSearcher object.
public StreetSearcher() { vertices = new HashMap<>(); graph = new SparseGraph<>(); //double smDistance = 0; //previous = new HashMap<>(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Vertex getPrevious(){\n return previous;\n }", "@Override\n\t//loc1 is the start location,loc2 is the destination\n\tpublic ArrayList<MapCoordinate> bfsSearch(MapCoordinate loc1, MapCoordinate loc2, Map m) {\n\t\tSystem.out.println(\"come into bfsSearch\");\n\t\tif(m.isAgentHasAxe() && m.isAgent...
[ "0.5627445", "0.55323344", "0.5339006", "0.53070784", "0.5228151", "0.51851505", "0.5169838", "0.51343405", "0.5123293", "0.510184", "0.50734395", "0.5063662", "0.5061977", "0.50599587", "0.5056774", "0.50472885", "0.5046267", "0.5041834", "0.49829865", "0.49800807", "0.49718...
0.7586039
0
Get the path by tracing labels back from end to start.
private List<Edge<String>> getPath(Vertex<String> end, Vertex<String> start) { if (graph.label(end) != null) { List<Edge<String>> path = new ArrayList<>(); Vertex<String> cur = end; Edge<String> road; while (cur != start) { road = (Edge<String>) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected LinkedList<IVertex<String>> getPath(IVertex<String> target) {\n\n LinkedList<IVertex<String>> path = new LinkedList<IVertex<String>>();\n\n IVertex<String> step = target;\n\n // check if a path exists\n if (predecessors.get(step) == null) {\n return null;\n }\n path.a...
[ "0.60260016", "0.59370637", "0.5937007", "0.58844805", "0.5817005", "0.58126265", "0.5801257", "0.5786069", "0.56865394", "0.55991036", "0.55725574", "0.5541935", "0.55298626", "0.5526854", "0.55133563", "0.5501968", "0.5496783", "0.5468478", "0.5462103", "0.5378485", "0.5377...
0.6432541
0
Print the path found.
private void printPath(List<Edge<String>> path, double totalDistance) { if (path == null) { System.out.println("No path found"); return; } System.out.println("Total Distance: " + totalDistance); for (int i = path.size() - 1; i >= 0; i--) { System.out.println(p...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void printPath(){\n\t\tListIterator<Path> listIterator =temp.listIterator();\n\t\twhile(listIterator.hasNext()){\n\t\t\tSystem.out.print(listIterator.next().getPos()+\" \");\n\t\t}\n\t}", "public void printPath() {\n System.out.print(\"Path: \");\n for (int i = 0; i < parents.size(); i++) {\...
[ "0.7210239", "0.67714804", "0.6730696", "0.6634288", "0.65731144", "0.648892", "0.6418824", "0.6374114", "0.63300073", "0.6317806", "0.6148213", "0.61161673", "0.6072567", "0.60206854", "0.59955037", "0.59786135", "0.5966822", "0.59166485", "0.5879695", "0.587811", "0.5811798...
0.6081941
12