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
Declare 2 double variables for the user to decide the values
public static void main(String[] args) { double num1; double num2; // Define a new variable that holds the character that represents the operator char operator; double answer = 0.0; // Declare a new Scanner object called eval and set it to take in to the console input Scanner eval = ne...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Calculation (double firstVariable, double secondVariable){\r\n\t\tsetFirstVariable(firstVariable);\r\n\t\tsetSecondVariable(secondVariable);\r\n\t}", "double getDoubleValue2();", "double getDoubleValue3();", "double getDoubleValue1();", "public static void main(String[] args) {\n Scanner s =...
[ "0.66135573", "0.6413683", "0.62946725", "0.62770116", "0.62047833", "0.6083578", "0.58648294", "0.5858192", "0.5843989", "0.5830425", "0.58190405", "0.5813526", "0.58023113", "0.58022195", "0.57972974", "0.57924545", "0.57744217", "0.5765545", "0.572886", "0.5715531", "0.568...
0.0
-1
Created by JCM on 25.11.2018.
public interface Selectable { boolean isSelected(); void setSelected(boolean selected); void setGroup(SelectionGroup group); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r...
[ "0.58975077", "0.5770173", "0.5662836", "0.565111", "0.55867773", "0.55867773", "0.5575104", "0.5567095", "0.5557265", "0.5557081", "0.55566394", "0.5514806", "0.5514806", "0.5514806", "0.5514806", "0.5514806", "0.5514806", "0.55113053", "0.5510551", "0.5478077", "0.54774606"...
0.0
-1
Crops image into a circle that fits within the ImageView.
public static void displayRoundImageFromUrl(final Context context, final String url, final ImageView imageView) { RequestOptions myOptions = new RequestOptions() .centerCrop() .dontAnimate(); Glide.with(context) .asBitmap() .apply(myOption...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void startCropImage() {\n }", "private void cropImage() {\n\t\t// Use existing crop activity.\n\t\tIntent intent = new Intent(\"com.android.camera.action.CROP\");\n\t\tintent.setDataAndType(mImageCaptureUri, IMAGE_UNSPECIFIED);\n\n\t\t// Specify image size\n\t\tintent.putExtra(\"outputX\", 100);\n\t\t...
[ "0.63958323", "0.6354227", "0.63334364", "0.62610507", "0.6253043", "0.6167358", "0.61402315", "0.60984945", "0.60595655", "0.5987448", "0.594691", "0.5934224", "0.5879138", "0.5792218", "0.5790488", "0.5659586", "0.563463", "0.56292605", "0.56088626", "0.55833274", "0.557601...
0.5550708
22
Displays an image from a URL in an ImageView.
public static void displayImageFromUrl(final Context context, final String url, final ImageView imageView, Drawable placeholderDrawable, RequestListener listener) { RequestOptions myOptions = new RequestOptions() .dontAnimate() .diskCach...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void displayImage(String url, ImageView image){\n Ion.with(image)\n .placeholder(R.drawable.fgclogo)\n .error(R.drawable.fgclogo)\n .load(url);\n }", "@Override\n public void loadImage(String url, ImageView imageView) {\n Im...
[ "0.80266815", "0.8011256", "0.77943903", "0.775331", "0.75960666", "0.74039835", "0.7314059", "0.71683824", "0.7091811", "0.70894986", "0.70161176", "0.6944191", "0.6897772", "0.68692595", "0.68513626", "0.6836417", "0.6818084", "0.6816043", "0.68157786", "0.67128676", "0.670...
0.67968345
19
Displays an image from a URL in an ImageView. If the image is loading or nonexistent, displays the specified placeholder image instead.
public static void displayImageFromUrlWithPlaceHolder(final Context context, final String url, final ImageView imageView, int placeholderResId) { RequestOptions myOptions = new RequestOptions() ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void displayImage(String url, ImageView image){\n Ion.with(image)\n .placeholder(R.drawable.fgclogo)\n .error(R.drawable.fgclogo)\n .load(url);\n }", "@Override\n public void loadImage(String url, ImageView imageView) {\n Im...
[ "0.81717783", "0.77624404", "0.77370375", "0.7663787", "0.7552211", "0.7441421", "0.7385476", "0.73642963", "0.73246545", "0.719264", "0.7055943", "0.7032415", "0.69418985", "0.6932695", "0.6912583", "0.6911668", "0.6837071", "0.6758743", "0.6706726", "0.6697798", "0.6634909"...
0.79336315
1
Displays an image from a URL in an ImageView.
public static void displayGifImageFromUrl(Context context, String url, ImageView imageView, Drawable placeholderDrawable, RequestListener listener) { RequestOptions myOptions = new RequestOptions() .dontAnimate() .diskCacheStrategy(DiskCacheStrategy.AUTOMATIC) .pl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void displayImage(String url, ImageView image){\n Ion.with(image)\n .placeholder(R.drawable.fgclogo)\n .error(R.drawable.fgclogo)\n .load(url);\n }", "@Override\n public void loadImage(String url, ImageView imageView) {\n Im...
[ "0.80266815", "0.8011256", "0.77943903", "0.775331", "0.75960666", "0.74039835", "0.7314059", "0.71683824", "0.7091811", "0.70894986", "0.70161176", "0.6944191", "0.6897772", "0.68692595", "0.68513626", "0.6836417", "0.6818084", "0.6816043", "0.68157786", "0.67968345", "0.671...
0.6212335
40
Displays an GIF image from a URL in an ImageView.
public static void displayGifImageFromUrl(Context context, String url, ImageView imageView, String thumbnailUrl, Drawable placeholderDrawable) { RequestOptions myOptions = new RequestOptions() .dontAnimate() .diskCacheStrategy(DiskCacheStrategy.AUTOMATIC) .placeho...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void displayGifImageFromUrl(Context context, String url, ImageView imageView, Drawable placeholderDrawable, RequestListener listener) {\n RequestOptions myOptions = new RequestOptions()\n .dontAnimate()\n .diskCacheStrategy(DiskCacheStrategy.AUTOMATIC)\n ...
[ "0.74985164", "0.7290124", "0.7193603", "0.6962549", "0.6910593", "0.6859404", "0.6816994", "0.6609791", "0.657764", "0.6449707", "0.6437019", "0.64284736", "0.63996893", "0.63717073", "0.6359767", "0.6312514", "0.627893", "0.6271124", "0.6201309", "0.61542815", "0.61541075",...
0.71954
2
Servo servo = new Servo(0);
@Override public void teleopInit() { /* factory default values */ _talonL1.configFactoryDefault(); _talonL2.configFactoryDefault(); _talonR1.configFactoryDefault(); _talonR2.configFactoryDefault(); /* flip values so robot moves forward when stick-forward/LEDs-green */ _talonL1.setInverted...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static RCServo PhidgetMotorMover() {\n\n\t\ttry {\n\t\t\tSystem.out.println(\"Constructing MotorMover\");\n\t\t\tservo = new RCServo();\n\t\t\t// Start listening for motor interaction\n\t\t\tservo.open(2000);\n\t\t} catch (PhidgetException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn servo;\n\t}", ...
[ "0.73300576", "0.73234475", "0.71903735", "0.7091249", "0.70591193", "0.6987357", "0.6956422", "0.6651335", "0.64846814", "0.647596", "0.6419804", "0.63904285", "0.63226575", "0.63078064", "0.6274902", "0.6171669", "0.6156376", "0.6126489", "0.6112786", "0.61031455", "0.60820...
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 ActividadNovedad)) { return false; } ActividadNovedad other = (ActividadNovedad) object; if ((this.idActividadNovedad == null && other.idActividadNovedad != null) || (this.idActividadNovedad != null ...
{ "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.6896886", "0.6838461", "0.67056817", "0.66419715", "0.66419715", "0.6592331", "0.6579151", "0.6579151", "0.6574321", "0.6574321", "0.6574321", "0.6574321", "0.6574321", "0.6574321", "0.65624106", "0.65624106", "0.65441847", "0.65243006", "0.65154546", "0.6487427", "0.64778...
0.0
-1
Check that JBoss is up!
protected boolean isJBossUp() { try { URLConnection connection = new URL(jbossHttpUrl).openConnection(); if (!(connection instanceof HttpURLConnection)) { throw new IllegalStateException("Not an http connection! " + connection); } HttpURLC...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void doCheckHealthy();", "public void testServiceAvailable() throws Exception {\r\n\t\tServiceReference serviceReference = \r\n\t\t\tgetContext().getServiceReference(\"org.osgi.service.jndi.JNDIProviderAdmin\");\r\n\t\tassertNotNull(\"JNDIProviderAdmin service was not published as expected\", serviceReference);\...
[ "0.57225245", "0.5628808", "0.55225027", "0.5498105", "0.5427401", "0.5407009", "0.538885", "0.5373444", "0.53716743", "0.53352153", "0.53352153", "0.5307318", "0.5296442", "0.5245777", "0.52359295", "0.52357376", "0.523175", "0.52265745", "0.52265745", "0.51934767", "0.51752...
0.768248
0
cresc modificatorii de damage pentru fiecare abilitate a jucatorului
@Override public void visit(final Knight knight) { knight.getFirstAbility().changeAllVictimModifier(DAMAGE_MODIFIER_FOR_KNIGHT); knight.getSecondAbility().changeAllVictimModifier(DAMAGE_MODIFIER_FOR_KNIGHT); // anunt magicianul de ajutorul ingerului knight.getEvent().anEventHappened(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void takeDamage(int damage);", "@Override\n\tpublic void takeDamage(double damage) {\n\n\t}", "@Override\n\tpublic void damage(float f) {\n\t\t\n\t}", "public void applyDamage(int damage)\r\n\t{\r\n\r\n\t}", "public int giveDamage();", "@Override\r\n\tpublic void damage(float amount) {\n\t\t\r\n\t...
[ "0.6886149", "0.68707925", "0.67920995", "0.67229134", "0.671425", "0.6687903", "0.6687697", "0.66160214", "0.65878713", "0.65305877", "0.65142405", "0.64817095", "0.6420939", "0.64077216", "0.6380649", "0.6371063", "0.6346922", "0.6346922", "0.6346922", "0.6346922", "0.63469...
0.0
-1
cresc modificatorii de damage pentru fiecare abilitate a jucatorului
@Override public void visit(final Rogue rogue) { rogue.getFirstAbility().changeAllVictimModifier(DAMAGE_MODIFIER_FOR_ROGUE); rogue.getSecondAbility().changeAllVictimModifier(DAMAGE_MODIFIER_FOR_ROGUE); // anunt magicianul de ajutorul ingerului rogue.getEvent().anEventHappened(rogue, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void takeDamage(int damage);", "@Override\n\tpublic void takeDamage(double damage) {\n\n\t}", "@Override\n\tpublic void damage(float f) {\n\t\t\n\t}", "public void applyDamage(int damage)\r\n\t{\r\n\r\n\t}", "public int giveDamage();", "private void damage(){\n\n LevelMap.getLevel().damage(...
[ "0.6884923", "0.6870074", "0.6791116", "0.67210233", "0.6713694", "0.6687302", "0.6687144", "0.66149145", "0.658617", "0.6529367", "0.65145177", "0.6480827", "0.64194274", "0.64068115", "0.63803756", "0.6369831", "0.63464266", "0.63464266", "0.63464266", "0.63464266", "0.6346...
0.5872612
57
cresc modificatorii de damage pentru fiecare abilitate a jucatorului
@Override public void visit(final Wizard wizard) { wizard.getFirstAbility().changeAllVictimModifier(DAMAGE_MODIFIER_FOR_WIZARD); wizard.getSecondAbility().changeAllVictimModifier(DAMAGE_MODIFIER_FOR_WIZARD); // anunt magicianul de ajutorul ingerului wizard.getEvent().anEventHappened(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void takeDamage(int damage);", "@Override\n\tpublic void takeDamage(double damage) {\n\n\t}", "@Override\n\tpublic void damage(float f) {\n\t\t\n\t}", "public void applyDamage(int damage)\r\n\t{\r\n\r\n\t}", "public int giveDamage();", "@Override\r\n\tpublic void damage(float amount) {\n\t\t\r\n\t...
[ "0.6886149", "0.68707925", "0.67920995", "0.67229134", "0.671425", "0.6687903", "0.6687697", "0.66160214", "0.65878713", "0.65305877", "0.65142405", "0.64817095", "0.6420939", "0.64077216", "0.6380649", "0.6371063", "0.6346922", "0.6346922", "0.6346922", "0.6346922", "0.63469...
0.0
-1
cresc modificatorii de damage pentru fiecare abilitate a jucatorului
@Override public void visit(final Pyromancer pyromancer) { pyromancer.getFirstAbility(). changeAllVictimModifier(DAMAGE_MODIFIER_FOR_PYROMANCER); pyromancer.getSecondAbility(). changeAllVictimModifier(DAMAGE_MODIFIER_FOR_PYROMANCER); // anunt magicianu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void takeDamage(int damage);", "@Override\n\tpublic void takeDamage(double damage) {\n\n\t}", "@Override\n\tpublic void damage(float f) {\n\t\t\n\t}", "public void applyDamage(int damage)\r\n\t{\r\n\r\n\t}", "public int giveDamage();", "@Override\r\n\tpublic void damage(float amount) {\n\t\t\r\n\t...
[ "0.6886149", "0.68707925", "0.67920995", "0.67229134", "0.671425", "0.6687903", "0.6687697", "0.66160214", "0.65878713", "0.65305877", "0.65142405", "0.64817095", "0.6420939", "0.64077216", "0.6380649", "0.6371063", "0.6346922", "0.6346922", "0.6346922", "0.6346922", "0.63469...
0.0
-1
This method is recursive
private static Set<FieldGroup> findGroupsFromMap(Map<Field, List<Field>> map) { if (map.isEmpty()) { return new HashSet<>(); } Map<Field, List<Field>> copiedMap = new HashMap<>(map); Set<Field> fields = findGroup(SetUtils.firstIteratorElement(copiedMap.keySet()), copiedMap)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void iterChildren(TreeFunction f) {\n }", "@Override\n protected void iterChildren(TreeFunction f) {\n }", "@Override\n protected void iterChildren(TreeFunction f) {\n }", "public void inOrderTraverseRecursive();", "@Override\n\tpublic void walk() {\n\t\t\n\t}", "p...
[ "0.5590335", "0.5590335", "0.5590335", "0.5537654", "0.5510293", "0.5509106", "0.5485843", "0.5454725", "0.543996", "0.5436555", "0.5432196", "0.53611434", "0.53568", "0.5333758", "0.53237873", "0.52987325", "0.5285938", "0.52817225", "0.52785695", "0.526342", "0.5261642", ...
0.0
-1
String path = PropertiesTools.get(p, "importsource.mr.file.path", null);
public void textFile(String path){ BufferedReader br; try { br = new BufferedReader(new InputStreamReader( new FileInputStream(path),Charset.forName("gbk"))); } catch (FileNotFoundException e) { throw new IllegalArgumentException(e); } LineBufferReader myReader=new LineBufferReader(br); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "SourceFilePath getFilePath();", "public String getSourceFileName() { return sourceFileName; }", "java.lang.String getSrcPath();", "public String getSourcePath()\r\n\t{\r\n\t\treturn sourcePath;\r\n\t}", "public abstract String getPropertyFile();", "File getLoadLocation();", "public String getSourcePat...
[ "0.66486263", "0.6382237", "0.63724524", "0.618728", "0.6107207", "0.60611653", "0.6015853", "0.59472966", "0.5880147", "0.5810171", "0.5741412", "0.5735943", "0.5732634", "0.5732634", "0.5731636", "0.5674419", "0.5654362", "0.56493545", "0.5620314", "0.5614406", "0.5593352",...
0.0
-1
Create an entity for this test. This is a static method, as tests for other entities might also need it, if they test an entity which requires the current entity.
public static KartaPica createEntity(EntityManager em) { KartaPica kartaPica = new KartaPica() .imeKartePica(DEFAULT_IME_KARTE_PICA); return kartaPica; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Entity createEntity();", "T createEntity();", "protected abstract ENTITY createEntity();", "void create(E entity);", "void create(T entity);", "E create(E entity);", "E create(E entity);", "protected abstract EntityBase createEntity() throws Exception;", "TestEntity buildEntity () {\n TestEn...
[ "0.77233905", "0.750511", "0.74888015", "0.73621994", "0.7314362", "0.715646", "0.715646", "0.7151727", "0.7150827", "0.7077576", "0.7017114", "0.6803859", "0.6752901", "0.6741009", "0.6741009", "0.67117", "0.66819555", "0.6666774", "0.6641436", "0.6625648", "0.66255546", "...
0.0
-1
Created by BKing on 1/15/2018.
public interface NotificationListener { void onReceivedNotification(Notification notification); void onRemovedNotification(Notification notification); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "public final void mo51373a() {\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\t...
[ "0.59509045", "0.58422214", "0.5742466", "0.5716841", "0.57010734", "0.5648285", "0.5648285", "0.56161165", "0.55819964", "0.55000126", "0.5486072", "0.54759586", "0.54619074", "0.5446089", "0.5429338", "0.54183286", "0.54071295", "0.53816026", "0.5381203", "0.53735256", "0.5...
0.0
-1
Execute the query in the query box (GUI) and show the results.
protected final void executeQuery() { try { executeQuery(queryBox.getText()); } catch(SQLException e) { e.printStackTrace(); clearTable(); JOptionPane.showMessageDialog( null, e.getMessage(), "Database Error", JOptionPane.ERROR_MESSAGE); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void executeQuery()\n {\n ResultSet rs = null;\n try\n { \n String author = (String) authors.getSelectedItem();\n String publisher = (String) publishers.getSelectedItem();\n if (!author.equals(\"Any\") && !publisher.equals(\"Any\"))\n { \n if (a...
[ "0.71208996", "0.6680936", "0.6600826", "0.65380985", "0.6536803", "0.6509918", "0.64533806", "0.63619626", "0.63521016", "0.62830114", "0.62550247", "0.62500614", "0.6230125", "0.62145525", "0.6095616", "0.6065601", "0.6035081", "0.60021365", "0.60021245", "0.5986141", "0.59...
0.719218
0
Clear out all table data.
protected void clearTable() { table.setModel(new javax.swing.table.AbstractTableModel() { public int getRowCount() { return 0; } public int getColumnCount() { return 0; } public Object getValueAt(int row, int column) { return ""; } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void clearAllTable() {\n\t\tint rowCount = dmodel.getRowCount();\n\t\tfor (int i = rowCount - 1; i >= 0; i--) {\n\t\t\tdmodel.removeRow(i);\n\t\t}\n\t}", "public void clear() {\n\t\tfor (int i = 0; i < table.size(); i++) {\n\t\t\ttable.get(i).clear();\n\t\t}\n\t}", "public void clearData(){\n\t\t\n\t\tc...
[ "0.8540309", "0.8398408", "0.8307101", "0.8281521", "0.8147315", "0.81105226", "0.79520243", "0.7921301", "0.7898391", "0.7848654", "0.7764632", "0.7758162", "0.77532357", "0.7715173", "0.7708119", "0.76716095", "0.7624187", "0.7589148", "0.75795406", "0.74964935", "0.7462594...
0.7762026
11
Show the results in the GUI table in the panel.
public int displayResults(ResultSet rs) throws SQLException { return displayResults("", rs); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void finalDisplay2()\n\t{\n\t\tString s1=null;\n\t\tint sum=0;\n\t\tint j;\n\t\tfor(int i=0;i<n;i++)\n\t\t{\n\t\t\tj=rowLabel[i];\t\t\t\n\t\t\tsum+=temp[i][j];\t\n\t\t}\n\t\ts1=\"There are multiple solutions with the cost of \"+sum;\n\t\tJTable t = new JTable();\n testTableMultiple(t,(2*noOfPeople)+2...
[ "0.7071775", "0.7043903", "0.6920581", "0.6908832", "0.6863246", "0.68102896", "0.6796053", "0.6768041", "0.66385806", "0.66379046", "0.6624407", "0.6608986", "0.65936023", "0.65766364", "0.6573942", "0.6559252", "0.65425074", "0.6507295", "0.64986306", "0.6492511", "0.647229...
0.0
-1
Show the results in the GUI table in the panel.
public int displayResults(ResultSet rs, boolean bestLayout) throws SQLException { return displayResults("", rs, bestLayout); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void finalDisplay2()\n\t{\n\t\tString s1=null;\n\t\tint sum=0;\n\t\tint j;\n\t\tfor(int i=0;i<n;i++)\n\t\t{\n\t\t\tj=rowLabel[i];\t\t\t\n\t\t\tsum+=temp[i][j];\t\n\t\t}\n\t\ts1=\"There are multiple solutions with the cost of \"+sum;\n\t\tJTable t = new JTable();\n testTableMultiple(t,(2*noOfPeople)+2...
[ "0.7071775", "0.7043903", "0.6920581", "0.6908832", "0.6863246", "0.68102896", "0.6796053", "0.6768041", "0.66385806", "0.66379046", "0.6624407", "0.6608986", "0.65936023", "0.65766364", "0.6573942", "0.6559252", "0.65425074", "0.6507295", "0.64986306", "0.6492511", "0.647229...
0.0
-1
Clean up and deallocate DB and GUI resources.
public final void dispose() { try { if (resultSet != null) resultSet.close(); } catch(SQLException e) { e.printStackTrace(); } resultSet = null; try { if (stmt != null) stmt.close(); } catch(SQLException e) { e.printStackTrace(); } stmt = null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void destroy() {\n closeSqlDbConnections();\n\n\n }", "@Override\n public void cleanup() {\n // dispose GUI:\n if (this.mainPanel != null) {\n this.mainPanel.dispose();\n }\n }", "public final void cleanUp() {\n\t\tmgdmfunctions = null;\n\t\tmgdmlabels = null;...
[ "0.76337594", "0.72059864", "0.7158417", "0.71496886", "0.7142998", "0.71359885", "0.71258235", "0.7083167", "0.7078858", "0.7069283", "0.7050683", "0.70259017", "0.70259017", "0.7013312", "0.6973553", "0.6945631", "0.6943393", "0.68997097", "0.6894707", "0.68888474", "0.6883...
0.6385575
78
double val = 9801.0 / ( 2206.0 Math.sqrt(2.0) ); return ""+val;
String RamanujanPIFormula() { double mulFactor = 2.0 * Math.sqrt(2.0) / 9801.0; BigDecimal mulFactorBigDecimal = new BigDecimal( mulFactor ); BigDecimal _4 = new BigDecimal(4); BigDecimal _1103 = new BigDecimal(1103); BigDecimal _26390 = new BigDecimal(26390); BigDecimal _396 = new BigDecimal(396); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String toString(){\n return numerator + \"/\" + denominator;\n }", "public String toString(){\r\n String str;\r\n if( this.denominator==1 ){\r\n str = String.valueOf(numerator);\r\n }else{\r\n str = String.valueOf(numerator) + \"/\" + String.valueOf(denominator);\r...
[ "0.6224495", "0.61968786", "0.6119843", "0.61182994", "0.6111177", "0.6084846", "0.60298765", "0.5972771", "0.59661764", "0.5962723", "0.595525", "0.59160256", "0.58959657", "0.5874433", "0.5841758", "0.58252454", "0.5823981", "0.5798294", "0.5781078", "0.5780555", "0.5776504...
0.0
-1
Time taken for 1 Million ( 1000,000 ) is 100 secnods. Set increment as 2000 when max value is 100000 increment/10, 10 as parameters for Spigot_Level_3 Time taken ~ 4300 milli secnods Set increment as 20000 when max value is 1000,000 increment/5, 5 as parameters for Spigot_Level_3 Time taken ~ 87000 milli seconds
BigDecimal Spigot() { int increment = 20000; int max = 1000000; BigDecimal totResult = new BigDecimal(0.0); sumPart++; BigDecimal result1 = new BigDecimal(0.0); BigDecimal sixTeenPowStartVal = new BigDecimal(1.0); BigDecimal sixTeenPowIncrement = new BigDecimal(16).pow(increment); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void increment() {\n for (int i=0; i < 10000; i++) {\n count++;\n }\n }", "NumarAndDenom Spigot_Level_2(int startVal, int increment, int numTimes)\n\t{\n\t\t\t\t\n\t\tBigDecimal totalNumar = new BigDecimal(0.0);\n\t\tBigDecimal totalDenom = new BigDecimal(1.0);\n\n\t\tBigDecimal sixTe...
[ "0.61480767", "0.592375", "0.5857498", "0.5595238", "0.5538936", "0.5529638", "0.5410633", "0.53121096", "0.53055465", "0.52726656", "0.5270394", "0.5270173", "0.5264635", "0.5254677", "0.5221277", "0.51820403", "0.51818466", "0.5155666", "0.51541406", "0.51435053", "0.513914...
0.67418355
0
System.out.println("L2 : "+startVal+" , "+(startVal+incrementnumTimes));
NumarAndDenom Spigot_Level_2(int startVal, int increment, int numTimes) { BigDecimal totalNumar = new BigDecimal(0.0); BigDecimal totalDenom = new BigDecimal(1.0); BigDecimal sixTeen = new BigDecimal(16); BigDecimal sixTeenPow = new BigDecimal(1.0); BigDecimal sixTeenPowIncrement = new BigDecimal...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static void opration(){ \n System.out.println(\"Final veriable value l:\"+l+\"\\nj:\"+j);\n // l=l+2; erorr it can't change it's value\n \n }", "static void increment() {\r\n\t\tfor (double i =2.4; i<=8.8; i=i+0.2) { \r\n\t\t\tSystem.out.format(\"%.1f %n \",i); //%.1f: to 1 ...
[ "0.6075308", "0.60385174", "0.60020864", "0.5826324", "0.57754534", "0.57692546", "0.57141805", "0.5706277", "0.56879735", "0.5677567", "0.56406945", "0.5626243", "0.562616", "0.5619999", "0.5596538", "0.559154", "0.5549818", "0.5548697", "0.55451787", "0.5540072", "0.5527907...
0.54206127
32
System.out.println("L1 : "+startVal+" , "+endVal);
NumarAndDenom Spigot_Level_1(int startVal, int endVal) { BigDecimal totalNumar = new BigDecimal(0.0); BigDecimal totalDenom = new BigDecimal(1.0); BigDecimal sixTeen = new BigDecimal(16); for(int k=endVal-1 ; k>=startVal; k--) { NumarAndDenom elementND = Element( k ); totalNumar = total...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getEndRange();", "String toStringStartValues();", "@Override\r\n public String toString() \r\n {\n return \"[\" + getStart() + \", \" + getEnd() + \"]\";\r\n }", "String getBeginRange();", "String toStringEndValues();", "public void getRange()\n\t{\n\t\tint start = randInt(0, 9);\n...
[ "0.63811255", "0.6127972", "0.61205643", "0.601271", "0.60055786", "0.5872514", "0.5849968", "0.5838288", "0.5743681", "0.5742297", "0.5732592", "0.56468797", "0.5576648", "0.55722487", "0.55523694", "0.55520713", "0.5551422", "0.5533075", "0.5491707", "0.54864705", "0.547572...
0.0
-1
Device specific task interface.
public interface DeviceBasedTask { public Device getDevice(); public void setDevice(Device device); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface TaskBase {\n\t/**\n\t * @return Returns the name of the task\n\t */\n\tpublic String GetName();\n\n\t/**\n\t * Called upon entering autonomous mode\n\t */\n\tpublic void Initialize();\n\n\t/**\n\t * Called every autonomous update\n\t * \n\t * @return Return task result enum\n\t */\n\tpublic TaskRe...
[ "0.738584", "0.70687765", "0.6937294", "0.69014466", "0.6737567", "0.6692141", "0.66495216", "0.6603828", "0.6588216", "0.65561295", "0.6530214", "0.6469146", "0.6449622", "0.64378417", "0.64159936", "0.64047176", "0.63940436", "0.63803774", "0.6378636", "0.63686085", "0.6357...
0.8190143
0
Method that return if the direction is horizontal
public Boolean isHorizontal() { return this == EAST || this == WEST; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isHorizontal()\r\n\t{\r\n\t\treturn _position==Position.HORIZONTAL;\r\n\t}", "public boolean isHorizontal() {\n\t\treturn ( getSlope() == 0.0d );\n\t}", "public Boolean isHorizontal() {\n return horizontal;\n }", "protected boolean isHorizontal() {\n\t\treturn true;\n\t}", "public ...
[ "0.83837104", "0.81960523", "0.80964", "0.7838285", "0.77532846", "0.7371447", "0.7306081", "0.7265765", "0.6954261", "0.67664504", "0.6605062", "0.6581141", "0.65556914", "0.65271056", "0.64963186", "0.635724", "0.62861395", "0.62292737", "0.6204041", "0.6189448", "0.6146216...
0.7574088
5
Method that return if the direction if vertical
public Boolean isVertical() { return this == NORTH || this == SOUTH; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isVertical(){\n return !isHorizontal();\n }", "public Boolean isVertical() {\n return vertical;\n }", "public Boolean isVertical() {\r\n\t\treturn isVertical;\r\n\t}", "public boolean isVertical() {\r\n\t\treturn isVertical;\r\n\t}", "public boolean isVertical() {\n\t\tfi...
[ "0.77152395", "0.7606421", "0.7276386", "0.7207508", "0.7114727", "0.70845604", "0.70702744", "0.68667716", "0.6752685", "0.671936", "0.6461429", "0.6385591", "0.63353837", "0.6226041", "0.61723995", "0.6169438", "0.6157038", "0.61555725", "0.60849106", "0.60734075", "0.60602...
0.73436177
2
Method that change the direction to String
@Override public String toString() { return name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getDirection();", "public String getDirection(){\n\t\tif(this.toRight)\n\t\t\treturn \"RIGHT\";\n\t\telse\n\t\t\treturn \"LEFT\";\n\t}", "public String getDirection() {\r\n return direction;\r\n }", "public String getDirection() {\n return direction;\n }", "public String getDirec...
[ "0.69078946", "0.68623555", "0.650827", "0.64585423", "0.6444731", "0.6435635", "0.63998234", "0.6359018", "0.6314979", "0.6285273", "0.61554307", "0.61212474", "0.6083687", "0.5998476", "0.598224", "0.59634256", "0.59515613", "0.58900326", "0.586901", "0.5868373", "0.5864721...
0.0
-1
Method that receive a direction like string and return a object Direction
public static Direction fromString(String direction){ if (direction != null){ for (Direction d : Direction.values()){ if (d.toString().equalsIgnoreCase(direction)) return d; } } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Direction(String str)\n {\n int regionWidth = FULL_CIRCLE / dirNames.length;\n \n\t for ( int k = 0; k < dirNames.length; k++ )\n\t {\n if ( str.equalsIgnoreCase(dirNames[k]) )\n {\n dirInDegrees = k * regionWidth;\n return;\n ...
[ "0.71175605", "0.69913375", "0.66837794", "0.6674225", "0.6615907", "0.6322899", "0.61557484", "0.61526793", "0.6139935", "0.608507", "0.6077026", "0.6045219", "0.603415", "0.6026069", "0.6021696", "0.59788877", "0.59775096", "0.59741914", "0.59619737", "0.5886228", "0.587957...
0.76934254
0
Method that choose a direction randomly
public static Direction randomSideDirection(Direction direction) { Random rand = new Random(); int side = rand.nextInt(2); if (direction.isHorizontal()) return (side == 0)? NORTH:SOUTH; if (direction.isVertical()) return (side == 0)? WEST:EAST; return null...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void goRandomDirection() {\n\t\tdesiredDirection = Math.random() * 360.0;\n\t}", "public void randomizeDirection() {\n\t\tRandom r = new Random();\n\t\tint randomDir = r.nextInt(8);\n\t\tdirection = Direction.values()[randomDir];\n\t}", "public void randomizeDirection()\n\t{\n\t\txSpeed = (int) (Math.p...
[ "0.8297501", "0.816569", "0.80098695", "0.7943898", "0.7940506", "0.7860663", "0.76344335", "0.73907435", "0.7385895", "0.7383216", "0.73012495", "0.72325736", "0.71493226", "0.71193916", "0.7119239", "0.6945765", "0.69038373", "0.68877864", "0.6872759", "0.6849657", "0.68412...
0.6706529
26
Method that returns the inverse direction
public static Direction inverse(Direction direction) { if (direction.isHorizontal()) { if (direction.equals(Direction.EAST)) return Direction.WEST; else return Direction.EAST; } else { if (direction.equals(Direction.NORTH)) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Direction invert() {\n switch (this) {\n case NORTH: return SOUTH;\n case SOUTH: return NORTH;\n case EAST: return WEST;\n case WEST: return EAST;\n case NORTH_EAST: return SOUTH_WEST;\n case NORTH_WEST: return SOUTH_EAST;\n case...
[ "0.81215703", "0.7949951", "0.78072655", "0.7616104", "0.74628115", "0.7440478", "0.7406472", "0.73841834", "0.73688483", "0.7313164", "0.7125187", "0.71173704", "0.70729595", "0.6939321", "0.69190085", "0.68361694", "0.68255603", "0.6653216", "0.66462237", "0.661609", "0.660...
0.7712266
3
Assigns values of HashMap to arbitrary class object fields
public static <T> T castMap(Map<String, String> fromMap, String keyPrefix, String separator, Class<T> clazz) { T ret = null; try { ret = clazz.newInstance(); Field[] fields = clazz.getFields(); for(Field f : fields) { Type t = f.getType(); String key = f.getName(); String value = fromMap....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setHashMap();", "public abstract void setData(Map<ID, T> data);", "private void toMap(Class<?> clazz, OptionMap map) {\n if (clazz == Options.class) {\n return;\n }\n\n toMap(clazz.getSuperclass(), map);\n\n for (Field field : clazz.getDeclaredFields()) {\n ...
[ "0.6303927", "0.5741376", "0.57010496", "0.5626471", "0.56222653", "0.5616635", "0.5599605", "0.55232644", "0.5438569", "0.5433349", "0.5427123", "0.5409504", "0.5405406", "0.5404408", "0.5342606", "0.5324198", "0.53194624", "0.5317674", "0.53066695", "0.53023016", "0.5300324...
0.0
-1
genero schermata fxml con le informazioni e le riempio
public void populateUserInformation() { ViewInformationUser viewInformationUser = new ViewFXInformationUser(); viewInformationUser.buildViewProfileInformation(clientToRegisteredClient((Client) user), nameLabel, surnameLabel, phoneLabel, emailLabel, addressVbox); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void createContents() {\n cmd.setBean(nodeProperties);\n cmd.setNode(node);\n shell = new Shell(getParent(), SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL);\n shell.setLayout(new FormLayout());\n shell.setSize(800, 500);\n shell.setText(\"详细信息属性\");\n\n final Composite compos...
[ "0.64382744", "0.6366648", "0.63406736", "0.6260504", "0.6165597", "0.6123848", "0.60867405", "0.6056055", "0.58800155", "0.58501863", "0.5837019", "0.5829868", "0.5815496", "0.58108217", "0.5790777", "0.5790152", "0.57864416", "0.57776594", "0.5763938", "0.57582086", "0.5753...
0.0
-1
Write EBCDIC 0000...1111....2222....333 in sizes equal to the internal buffer size Thus we have test date without any control codes.
@BeforeClass public static void setupTestData() throws IOException { final FileOutputStream fos = new FileOutputStream(TESTFILE); byte[] testsequence = new byte[BUFFERSIZE]; for (int i=0xF0; i<0xFA; i++) { Arrays.fill(testsequence, (byte)i); fos.write(testsequence); } fos.close(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Integer doEbcdicToAscii(CommBufferLogic commBuffer, Integer Data) {\n // Euro -- IBM has new codepages 1140..1149 using 0x9F except for\n // Scandinavian 0x5A. Scandinavian translates 0x5A to 0x9F.\n // Thus CP500 (0x9F) to ASCII (CP858 0xD5) to ANSI (CP1252 0x80)\n ...
[ "0.5415438", "0.5304311", "0.5255787", "0.51874685", "0.5115707", "0.5049703", "0.5033973", "0.49935618", "0.48843265", "0.48753807", "0.4859595", "0.48552343", "0.483516", "0.48249996", "0.48230642", "0.47548455", "0.47196838", "0.47189933", "0.47189552", "0.46772718", "0.46...
0.0
-1
Created by nbfujx on 2017/10/14.
public interface sysUserService { @DataSource("master") sysUser selectByid(String id); PageInfo selectUserList(String username, String name, String status, String org_id, String is_admin, String orderFiled, String orderSort, int pageindex, int pagenum); int addUser(sysUser s...
{ "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\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n...
[ "0.6052209", "0.5909575", "0.5745156", "0.5740311", "0.5740311", "0.5729438", "0.5692833", "0.5683924", "0.56443757", "0.55949837", "0.5594104", "0.55872613", "0.55833626", "0.55772674", "0.5574426", "0.5561709", "0.55481344", "0.55460113", "0.5540616", "0.5528959", "0.552895...
0.0
-1
Use this factory method to create a new instance of this fragment using the provided parameters.
public static drinkOrder newInstance(String param1, String param2) { drinkOrder fragment = new drinkOrder(); Bundle args = new Bundle(); args.putString(ARG_PARAM1, param1); args.putString(ARG_PARAM2, param2); fragment.setArguments(args); return fragment; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static FragmentTousWanted newInstance() {\n FragmentTousWanted fragment = new FragmentTousWanted();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "protected abstract Fragment createFragment();", "public void createFragment() {\n\n ...
[ "0.7259329", "0.72331375", "0.71140355", "0.69909847", "0.69902235", "0.6834592", "0.683074", "0.68134046", "0.6801526", "0.6801054", "0.67653185", "0.6739714", "0.6739714", "0.6727412", "0.6717231", "0.6705855", "0.6692112", "0.6691661", "0.66869426", "0.66606814", "0.664618...
0.0
-1
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View rootView = inflater.inflate(R.layout.fragment_drink_order, container, false); final RadioGroup drinks = (RadioGroup) rootView.findViewById(R.id.drinks); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup...
[ "0.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.66251...
0.0
-1
boolean checked = ((RadioButton) view).isChecked();
@Override public void onCheckedChanged(RadioGroup group, int checkedId) { Log.v("reached","on click"); // ArrayAdapter<String> myadapter= new ArrayAdapter<String>(getContext(),android.R.layout.simple_list_item_1,WORDS); //Use myadapter as input to list ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onRadioButtonClicked(View view) {\n boolean checked = ((RadioButton) view).isChecked();\n\n // Check which radio button was clicked\n switch(view.getId()) {\n case R.id.radio_male:\n if (checked)\n break;\n case R.id.radio_fem...
[ "0.7575995", "0.74126065", "0.7356589", "0.73386705", "0.73373294", "0.73183393", "0.7269889", "0.7254004", "0.72401875", "0.72191304", "0.71613085", "0.7131788", "0.7128871", "0.7128871", "0.71261793", "0.7109763", "0.70810944", "0.70741177", "0.70361555", "0.7022456", "0.70...
0.0
-1
TODO: Update argument type and name
void onFragmentInteraction(Uri uri);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public String getFirstArg() {\n return name;\r\n }", "@Override\n public int getNumberArguments() {\n return 1;\n }", "java.lang.String getArg();", "@Override\n public int getArgLength() {\n return 4;\n }", "Argument createArgument();", "@Override\r\n\tpublic ...
[ "0.7164074", "0.6946075", "0.6714363", "0.65115863", "0.63969076", "0.6375468", "0.63481104", "0.63162106", "0.6260299", "0.6208487", "0.6208487", "0.62070644", "0.6197276", "0.61806154", "0.6177103", "0.61530507", "0.61472267", "0.61243707", "0.60771817", "0.6054482", "0.599...
0.0
-1
creates and returns a parser for the given input.
private PLPParser makeParser(String input) throws LexicalException { show(input); //Display the input PLPScanner scanner = new PLPScanner(input).scan(); //Create a Scanner and initialize it show(scanner); //Display the Scanner PLPParser parser = new PLPParser(scanner); return parser; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Parser makeParser(String input) throws LexicalException {\r\n\t\tshow(input); //Display the input \r\n\t\tScanner scanner = new Scanner(input).scan(); //Create a Scanner and initialize it\r\n\t\tshow(scanner); //Display the Scanner\r\n\t\tParser parser = new Parser(scanner);\r\n\t\treturn parser;...
[ "0.8099596", "0.76777565", "0.73237854", "0.7163883", "0.67222655", "0.66409624", "0.65570307", "0.6510395", "0.6459982", "0.635931", "0.62885445", "0.62720203", "0.61467546", "0.60857487", "0.6077171", "0.6028884", "0.59805995", "0.59389734", "0.59223336", "0.59162515", "0.5...
0.7873216
1
Test case with an empty program. This throws an exception because it lacks an identifier and a block
@Test public void testEmpty() throws LexicalException, SyntaxException { String input = ""; //The input is the empty string. thrown.expect(SyntaxException.class); PLPParser parser = makeParser(input); @SuppressWarnings("unused") Program p = parser.parse(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testEmpty() throws LexicalException, SyntaxException {\n\t\tString input = \"\"; // The input is the empty string. This is not legal\n\t\tshow(input); // Display the input\n\t\tScanner scanner = new Scanner(input).scan(); // Create a Scanner and initialize it\n\t\tshow(scanner); // Display the...
[ "0.6601053", "0.60467184", "0.5977557", "0.59549534", "0.59354067", "0.58828574", "0.5849392", "0.5810136", "0.58007336", "0.57763404", "0.5770832", "0.5763556", "0.5761509", "0.57517534", "0.5726613", "0.56854093", "0.56763315", "0.5638715", "0.56382585", "0.56302965", "0.56...
0.674215
0
Utility method to check if an element of a block at an index is a declaration with a given type and name.
Declaration checkDec(Block block, int index, Kind type, String name) { PLPASTNode node = block.declarationsAndStatements(index); assertEquals(VariableDeclaration.class, node.getClass()); VariableDeclaration dec = (VariableDeclaration) node; assertEquals(type, dec.type); assertEquals(name, dec.name); r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public TypeDefinition isType(String name){\n return((TypeDefinition)typeDefs.get(getDefName(name)));\n }", "public static boolean declarationType(FileInputStream f){\n if(observer != null){\n observer.parser.setCurrentRule(\"declarationType\", true);\n }\n CToken t = new...
[ "0.57778794", "0.5750319", "0.57488143", "0.5698752", "0.56314605", "0.5545878", "0.55049765", "0.550064", "0.5481876", "0.54242486", "0.5346962", "0.5281758", "0.5281536", "0.52618474", "0.5255259", "0.52409977", "0.5224094", "0.52070904", "0.5202058", "0.5202058", "0.520205...
0.6387707
0
Test a specific grammar element by calling a corresponding parser method rather than parse. This requires that the methods are visible (not private).
@Test public void testExpression() throws LexicalException, SyntaxException { String input = "x + 2"; PLPParser parser = makeParser(input); Expression e = parser.expression(); //call expression here instead of parse show(e); assertEquals(ExpressionBinary.class, e.getClass()); ExpressionBinary b = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void parseMethodIsWiredToAParser() {\n\t\tassertEquals(KILO(WATT), AbstractUnit.parse(\"kW\"));\n\t}", "static void parse() {\r\n i = 0;\r\n j = 0;\r\n k = 0;\r\n varList.add(\"0\");\r\n\r\n // Find the first lexeme\r\n lex();\r\n\r\n // Check if t...
[ "0.6170775", "0.5701907", "0.563785", "0.56108665", "0.5557193", "0.5500748", "0.54188114", "0.53762007", "0.5359957", "0.534995", "0.53303236", "0.531295", "0.52926975", "0.529057", "0.5277601", "0.5263156", "0.52556986", "0.52541417", "0.52489597", "0.524795", "0.52338374",...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { Scanner tec = new Scanner(System.in); System.out.println("-- Veja se o ano é bisexto --"); System.out.print("Digite o ano a ser verificado: "); int ano = tec.nextInt(); boolean bis = false; String mes[] = {"Jan", "Fev", "Mar", "Abr", "Mai", "Jun", "Jul", "Ago",...
{ "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
COMPROBAR QUE EL NOMBRE DEL EQUIPO YA EXISTE EN EL REGISTRO
public int comprobarNombreEqu(String nombre) { int res = 0; String query = "SELECT * FROM EQUIPOS WHERE NOMBRE = ? "; Connection con = null; PreparedStatement pstmt = null; ResultSet rslt = null; try { con = acceso.getConnection(); pstmt = con.prepareStatement(query); pstmt.setString(1, "" + no...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void afegirEquip(Equip equip, boolean ordenat) throws LlistaPlena, EquipExisteix {\n\t\tif(primer==null){\n\t\t\t//Aqui coloco el primer de tots\n\t\t\tprimer= new Node();\n\t\t\tprimer.info=equip;\n\t\t\tn_equips=n_equips+1;\n\t\t\tanterior=primer;\n\t\t}\n\t\telse{\n\t\t\tif(ordenat){\n\t\t\t\t//Ordenat\n...
[ "0.6001785", "0.5916126", "0.5912215", "0.5889296", "0.5876634", "0.5851767", "0.58309734", "0.58266586", "0.57826304", "0.57747895", "0.57737345", "0.57413846", "0.5737776", "0.5731342", "0.57273406", "0.57181644", "0.5710392", "0.5690498", "0.56854737", "0.5685303", "0.5684...
0.55757755
28
LISTADO DE CONSULTAR CIUDAD
public String consultaEqCiudad() { String res = ""; String query = "SELECT E.NOMBRE, C.NOMBRE FROM EQUIPOS E, CIUDADES C WHERE E.COD_CIUDAD == C.CODIGO"; Connection con = null; PreparedStatement pstmt = null; ResultSet rslt = null; try { con = acceso.getConnection(); pstmt = con.prepareStatement(que...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void listaContatos() throws SQLException {\n limpaCampos();\n BdLivro d = new BdLivro();\n livros = d.getLista(\"%\" + jTPesquisar.getText() + \"%\");\n\n // Após pesquisar os contatos, executa o método p/ exibir o resultado na tabela pesquisa\n mostraPesquisa(livros);\n ...
[ "0.7306989", "0.7208502", "0.70223165", "0.7003328", "0.6922281", "0.69199806", "0.6873774", "0.6770623", "0.6770364", "0.6746702", "0.6745222", "0.67409796", "0.67334485", "0.6725384", "0.67237014", "0.6711356", "0.6709122", "0.6699671", "0.66920877", "0.66902274", "0.667480...
0.0
-1
LISTADO DE CONSULTAR EQUIPO
public ArrayList<Equipo> listaEquiCiudad(String ciudad) { ArrayList<Equipo> listaEquipoCiudad = new ArrayList<Equipo>(); String query = "SELECT * FROM EQUIPOS WHERE COD_CIUDAD = (SELECT CODIGO FROM CIUDADES WHERE NOMBRE = ? COLLATE NOCASE)"; Connection con = null; PreparedStatement pstmt = null; ResultSe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void listarEquipo() {\n\t\tStringBuilder sb = new StringBuilder();\n\t\t\n\t\tfor(Alumno i : alumnos) {\n\t\t\tsb.append(i+\"\\n\");\n\t\t}\n\t\tSystem.out.println(sb.toString());\n\t}", "private void listarItems() {\r\n // Cabecera\r\n System.out.println(\"Listado de Items\");\r\n Sy...
[ "0.74206454", "0.7346779", "0.7282643", "0.7150655", "0.714829", "0.7106304", "0.71027845", "0.7029336", "0.70112634", "0.7006381", "0.6926282", "0.6904499", "0.6885702", "0.68494385", "0.6840605", "0.68362117", "0.6818745", "0.6803147", "0.6798762", "0.67829615", "0.6754451"...
0.0
-1
get nodes number iteratively by queue
public static int getNum(TreeNode root) { if (root == null) { return 0; } int count = 0; Queue<TreeNode> queue = new LinkedList<>(); queue.offer(root); while (!queue.isEmpty()) { TreeNode node = queue.poll(); if (node.left != null) queu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getNodeCount(){\r\n HashSet<FlowGraphNode> visited = new HashSet<>();\r\n LinkedList<FlowGraphNode> queue = new LinkedList<>();\r\n queue.add(start);\r\n visited.add(start);\r\n while(!queue.isEmpty()){\r\n FlowGraphNode node = queue.pop();\r\n fo...
[ "0.6707964", "0.6602471", "0.6602471", "0.655875", "0.655875", "0.651929", "0.6504995", "0.6240406", "0.6231309", "0.6186312", "0.6175453", "0.61637706", "0.61476177", "0.6134408", "0.61095405", "0.61044025", "0.6102116", "0.6087748", "0.60821366", "0.60606605", "0.6053187", ...
0.0
-1
get nodes number in a tree recursive
public static int getNumRec(TreeNode node) { if (node == null) return 0; return getNumRec(node.left) + getNumRec(node.right) + 1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int Nodes(BTNode n){\r\n if (n == null)\r\n return 0;\r\n else {\r\n return ( (n.left == null? 0 : Nodes(n.left)) + (n.right == null? 0 : Nodes(n.right)) + 1 );\r\n }\r\n }", "public int nodesInTree() \n { \n return nodesInTree(header.rightChild); \n ...
[ "0.7743704", "0.76785696", "0.7578225", "0.7535212", "0.75105566", "0.7448661", "0.7425798", "0.73716795", "0.7345905", "0.7345905", "0.73430854", "0.7314081", "0.7270369", "0.7200913", "0.7200913", "0.71916896", "0.7179376", "0.71721584", "0.7157926", "0.71414566", "0.714145...
0.71438724
19
/ draw a custom feedback figure when dragging the unit
protected void showChangeBoundsFeedback(ChangeBoundsRequest request) { /* * for resize */ if (!(RequestConstants.REQ_DROP.equals(request.getType()) || REQ_MOVE.equals(request .getType()))) { if (feedback == null) { feedback = createDragSourceFeedbackFigure(); } } else { /* * ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void drawFeedback(EditorInterface i, GraphicsContext gc) {\n\t\ti.getBoard().draw(gc);\r\n\t\tif (action.contentEquals(\"drag\")) {\r\n\t\t\tgc.strokeOval(ellipse.getLeft(), ellipse.getTop(), ellipse.getRight() - ellipse.getLeft(), ellipse.getBottom() - ellipse.getTop());\r\n\t\t}\r\n\t\t\r\n...
[ "0.6588194", "0.6518192", "0.6467054", "0.6420418", "0.63902915", "0.6388357", "0.63840866", "0.6335067", "0.6244004", "0.6207034", "0.61923146", "0.6180099", "0.6174854", "0.61386824", "0.6101015", "0.60979956", "0.6067968", "0.6066288", "0.6066288", "0.6066288", "0.6061578"...
0.5742182
96
/ if feedback figure determines we're moving from groups, add appropriate commands
protected Command getMoveCommand(ChangeBoundsRequest request) { Command cmd = super.getMoveCommand(request); cmd = DragFeedbackFigure.addContainerCommands(cmd, getHost()); return cmd; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createGroupTargetInputs() {\n\n\t\tGridData gridData1 = new GridData();\n\t\tgridData1.grabExcessHorizontalSpace = false;\n\t\tgridData1.horizontalAlignment = GridData.BEGINNING;\n\t\tgridData1.verticalAlignment = GridData.CENTER;\n\t\tgridData1.grabExcessVerticalSpace = false;\n\t\tgridData1.widthHin...
[ "0.58284926", "0.5590801", "0.5575164", "0.5472984", "0.5472235", "0.5421561", "0.5400545", "0.5321008", "0.53093946", "0.5304203", "0.530195", "0.5254373", "0.5238733", "0.52257437", "0.5223452", "0.52121526", "0.51780915", "0.51715344", "0.5154389", "0.51347417", "0.5125457...
0.51961356
16
Called when the activity is first created.
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); calendarReader = new CalendarReader(); int calendarId = getCalendarIdFromPreferences(); eventAdapter = new EventAdapter(this, R.layo...
{ "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
Toast.makeText(MainActivity.this,"Score function has to be implemented",Toast.LENGTH_SHORT).show();
@Override public void onClick(View v) { startActivity(new Intent(StartPage.this,Score.class)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void displayMessage(){\r\n Toast toast = Toast.makeText(this, getString(R.string.congratz_message, String.valueOf(playerScore)), Toast.LENGTH_SHORT);\r\n toast.show();\r\n }", "public void displayAnswer(){\r\n String message = \"That is the correct answer!\";\r\n\r\n Toast.makeText...
[ "0.7255747", "0.68842626", "0.6867124", "0.6843127", "0.67748284", "0.6768235", "0.6650172", "0.6638213", "0.66091156", "0.66005903", "0.6429263", "0.6413818", "0.63974047", "0.6384789", "0.6384789", "0.6370227", "0.63572055", "0.63522613", "0.63515127", "0.63515127", "0.6345...
0.0
-1
Toast.makeText(MainActivity.this,"Safe Move function has to be implemented",Toast.LENGTH_SHORT).show();
@Override public void onClick(View v) { startActivity(new Intent(StartPage.this,SafeMove.class)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onMovement() {\n showToast(\"设备移动\");\n LogUtil.e(\"move\");\n }", "void showToast(String message);", "void showToast(String message);", "protected void toast() {\n }", "protected void onMove() {\r\n }", "void onMove();", "protected void...
[ "0.74325573", "0.69692236", "0.69692236", "0.6916581", "0.67616093", "0.67604095", "0.67551816", "0.67457795", "0.6726961", "0.6672266", "0.66502696", "0.6646518", "0.6646518", "0.662783", "0.65881103", "0.6573177", "0.6559613", "0.6558957", "0.65427864", "0.65139633", "0.647...
0.0
-1
Toast.makeText(MainActivity.this,"Precaution function has to be implemented",Toast.LENGTH_SHORT).show();
@Override public void onClick(View v) { startActivity(new Intent(StartPage.this,MainActivity.class)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void toast() {\n }", "void showToast(String message);", "void showToast(String message);", "@Override\n public void toastText(String s){\n Toast.makeText(getApplicationContext(), s, Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onClick(View v) {\n ...
[ "0.7297579", "0.7171026", "0.7171026", "0.7106967", "0.70979017", "0.70017457", "0.6984828", "0.69484484", "0.6936242", "0.6936242", "0.69218695", "0.69171476", "0.6904425", "0.6886357", "0.6884624", "0.6834405", "0.682852", "0.68111384", "0.6798868", "0.6762609", "0.67579615...
0.0
-1
Implementacija sucelja SettingsPresenter. Uneseni podaci se prosljeduju interactoru.
@Override public void tryGetSettings(int userId) { interactor.getSettings(userId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface ISettingsPresenter {\n void onViewReady();\n\n void changeNotificationsState(boolean state);\n\n void changeActivityLogState(boolean state);\n\n void cleanActivityLogs();\n\n void changeContinuousLogin(boolean isEnabled);\n\n void changeWifiAutoLogin(boolean isEnabled);\n\n vo...
[ "0.7621609", "0.68024266", "0.6772009", "0.66290486", "0.64436394", "0.64212346", "0.63488036", "0.6308404", "0.63081694", "0.630421", "0.627449", "0.6255668", "0.62482196", "0.62410593", "0.6226456", "0.62131506", "0.61856854", "0.61722946", "0.61622405", "0.6157119", "0.614...
0.0
-1
Implementacija sucelja SettingsPresenter. Uneseni podaci se prosljeduju interactoru.
@Override public void tryEditSettings(SettingsModel settingsModel) { interactor.editSettings(settingsModel); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface ISettingsPresenter {\n void onViewReady();\n\n void changeNotificationsState(boolean state);\n\n void changeActivityLogState(boolean state);\n\n void cleanActivityLogs();\n\n void changeContinuousLogin(boolean isEnabled);\n\n void changeWifiAutoLogin(boolean isEnabled);\n\n vo...
[ "0.76216745", "0.68000126", "0.67678916", "0.6623489", "0.64406025", "0.6418538", "0.6347657", "0.6305617", "0.63052374", "0.6302548", "0.62710434", "0.6253855", "0.6245382", "0.6237411", "0.6222057", "0.62083256", "0.6183026", "0.6168334", "0.61615676", "0.61572856", "0.6139...
0.5763819
65
Implementacija SettingsInteractorListener. View se obavjestava u uspjesnosti dohvacanja favorita.
@Override public void onSuccess(SettingsModel settingsModel) { view.onSuccess(settingsModel); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected void handleSettings(ClickEvent event) {\n\t\t\n\t}", "private void settingsBtnListener() {\n settingsBtn.addListener(new ClickListener(){\n public void clicked(InputEvent event, float x, float y){\n ChessGame.client.ingame = false;\n game.set...
[ "0.7027159", "0.70206004", "0.6974143", "0.6789762", "0.66830707", "0.6674648", "0.66644573", "0.6591018", "0.6578928", "0.65749896", "0.6530422", "0.6527866", "0.65145016", "0.64141476", "0.6407073", "0.6380013", "0.63547486", "0.6322383", "0.6282982", "0.6262031", "0.626062...
0.56706816
86
Implementacija SettingsInteractorListener. View se obavjestava u neuspjesnosti dohvacanja favorita.
@Override public void onFailed(String text) { view.onFailed("Greska u dohvacanju favorita!"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void settingsBtnListener() {\n settingsBtn.addListener(new ClickListener(){\n public void clicked(InputEvent event, float x, float y){\n ChessGame.client.ingame = false;\n game.setScreen(new SettingsScreen(game));\n }\n });\n }", "@Over...
[ "0.7000089", "0.69991416", "0.6979723", "0.6768579", "0.6666675", "0.6652942", "0.66336584", "0.6606464", "0.65013254", "0.6462445", "0.6427827", "0.6400448", "0.6392165", "0.63794047", "0.6375452", "0.63632846", "0.6347876", "0.6307841", "0.6290985", "0.62638885", "0.6258209...
0.0
-1
/ Check and seed only initially
@Override public void seedBooks() throws IOException { if (this.bookRepository.count() > 0) { return; } String[] lines = this.readFileUtil.read(BOOKS_FILE_RELATIVE_PATH); for (int i = 0; i < lines.length; i++) { /* Get args */ String[] args = line...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void reseed();", "public void seed(long seed) {\n }", "public void setSeed(int seed){\n this.seed = seed; \n }", "@Before\n public void setUp() {\n randSeeder = new Random(42);\n\n //Show we haven't seeded the test's random number generator\n randSeed = RAND_UNSEEDED;...
[ "0.7002698", "0.69093186", "0.6897919", "0.6737895", "0.67345214", "0.66234374", "0.655773", "0.65326273", "0.64494723", "0.64448243", "0.643223", "0.64273334", "0.6421636", "0.6420666", "0.63809407", "0.636448", "0.6308522", "0.6278999", "0.6270245", "0.6246591", "0.6233338"...
0.0
-1
Se modifica el bitmap obteniendo su altura,y alzada.
@Override public void onClick(View v) { Bitmap zoomedBitmap= Bitmap.createScaledBitmap(bmp, photoView.getWidth(), photoView.getHeight(), true); SaveImage(zoomedBitmap); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo12205a(Bitmap bitmap);", "Bitmap m7900a(Bitmap bitmap);", "private void change_im_check(boolean boo){\r\n if(boo){ //IMAGEN SI EL MEASURE ES CORRECTO\r\n im_check.setImage(new Image(getClass().getResourceAsStream(\"/Images/img06.png\")));\r\n }else{ //IMAGEN PARA LA BUSQ...
[ "0.6146011", "0.6095998", "0.59947413", "0.5893502", "0.58653516", "0.5856044", "0.58280206", "0.5807963", "0.57624835", "0.5743953", "0.572255", "0.5691898", "0.5688319", "0.5664485", "0.56599206", "0.5634347", "0.5617201", "0.55947083", "0.5572772", "0.55515397", "0.5550046...
0.5226194
86
Metodo para mostrar el toast
private void mostrarToast () { Toast.makeText(this, "Imagen guardada en la galería.", Toast.LENGTH_SHORT).show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void toast() {\n }", "void showToast(String message);", "void showToast(String message);", "void toast(int resId);", "public void ToastMessage() {\n\n // create toast message object\n final Toast toast = Toast.makeText(Product_Details_Page_Type_4.this,\n \"Product ...
[ "0.8179014", "0.79442376", "0.79442376", "0.78400075", "0.7833336", "0.7829676", "0.77597684", "0.77506953", "0.7746226", "0.77438796", "0.77337164", "0.770409", "0.7630072", "0.7575719", "0.7573198", "0.7553679", "0.7516962", "0.75081503", "0.748935", "0.748935", "0.74662226...
0.7696469
12
The class holding records for this type
@Override public Class<SystemSettingsCatogreyRecord> getRecordType() { return SystemSettingsCatogreyRecord.class; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public RecordRecord() {\n\t\tsuper(org.jooq.examples.cubrid.demodb.tables.Record.RECORD);\n\t}", "public Class<?> getRecordClass() \n\t{\n\t return recordClass ;\n\t}", "public DataRecord() {\n super(DataTable.DATA);\n }", "@Override\n public Class<Record> getRecordType() {\n return Re...
[ "0.68004626", "0.66954035", "0.64103794", "0.6398801", "0.6398801", "0.6398801", "0.6398801", "0.6393993", "0.6354873", "0.6192012", "0.61258304", "0.61258304", "0.61258304", "0.6104736", "0.60470754", "0.60470754", "0.60470754", "0.6040716", "0.6029211", "0.6020949", "0.6008...
0.0
-1
Create a public.system_settings_catogrey table reference
public SystemSettingsCatogrey() { this(DSL.name("system_settings_catogrey"), null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createTableSettings() {\n db.execSQL(\"create table if not exists \" + SETTINGS_TABLE_NAME + \" (\"\n + KEY_SETTINGS_ROWID + \" integer primary key, \"\n + KEY_SETTINGS_VALUE + \" integer not null);\");\n }", "public SystemSettingsCatogrey(Name alias) {\n ...
[ "0.58797556", "0.58248603", "0.5810611", "0.49523658", "0.4708964", "0.4630052", "0.46286705", "0.45977294", "0.4597541", "0.4582708", "0.45365342", "0.44937968", "0.44776598", "0.44447333", "0.43345618", "0.43278098", "0.4312339", "0.4312339", "0.43079963", "0.43053743", "0....
0.6340957
0
Create an aliased public.system_settings_catogrey table reference
public SystemSettingsCatogrey(String alias) { this(DSL.name(alias), SYSTEM_SETTINGS_CATOGREY); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SystemSettingsCatogrey(Name alias) {\n this(alias, SYSTEM_SETTINGS_CATOGREY);\n }", "public SystemSettingsCatogrey() {\n this(DSL.name(\"system_settings_catogrey\"), null);\n }", "public void createTableSettings() {\n db.execSQL(\"create table if not exists \" + SETTINGS_TABLE...
[ "0.60884964", "0.5881411", "0.47883844", "0.4694639", "0.4328974", "0.41062203", "0.41062203", "0.40861735", "0.40850455", "0.40512636", "0.4024057", "0.4015707", "0.40072083", "0.40003365", "0.39691916", "0.3969088", "0.39493227", "0.39491257", "0.39488456", "0.39480385", "0...
0.6223586
0
Create an aliased public.system_settings_catogrey table reference
public SystemSettingsCatogrey(Name alias) { this(alias, SYSTEM_SETTINGS_CATOGREY); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SystemSettingsCatogrey(String alias) {\n this(DSL.name(alias), SYSTEM_SETTINGS_CATOGREY);\n }", "public SystemSettingsCatogrey() {\n this(DSL.name(\"system_settings_catogrey\"), null);\n }", "public void createTableSettings() {\n db.execSQL(\"create table if not exists \" + SE...
[ "0.6222259", "0.588053", "0.47849044", "0.46961632", "0.432861", "0.41076806", "0.41076806", "0.40873954", "0.40863252", "0.40484276", "0.4021919", "0.40130973", "0.40069163", "0.39983925", "0.39682806", "0.39668348", "0.39501622", "0.39494854", "0.39474764", "0.3944202", "0....
0.6087087
1
/ renamed from: a
public final String mo15029a() { return this.f6006a; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
========================================================================= Getters Setters =========================================================================
public String getType() { return type; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void get() {}", "@Override\r\n\tpublic void get() {\n\t\t\r\n\t}", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "protected abstract Set method_1559();", "@Override\n protected void getExras() {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "public String ge...
[ "0.6637027", "0.64852655", "0.6344494", "0.61784935", "0.6135569", "0.6076873", "0.60065603", "0.597848", "0.5951313", "0.5942142", "0.59421164", "0.5930177", "0.5915415", "0.59097606", "0.58862007", "0.58848625", "0.5883635", "0.587932", "0.5874756", "0.58471984", "0.5817519...
0.0
-1
this method is required to exist if it's a CommandExecutor
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { Player player = (Player) sender; // if console if (!(sender instanceof Player)) { sender.sendMessage("You Cant Use This In Here DUDE!"); return false; } // first argument specified String argumentOne; /...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public void execute(Command command) {\n\r\n }", "private interface Command {\n public void execute();\n }", "public interface CommandExecutor {\n /**\n * This method parse a commands from string and call it\n *\n * @param sender ource of the commands\n ...
[ "0.7267728", "0.6936176", "0.685658", "0.68206584", "0.67932373", "0.67932373", "0.67932373", "0.6763601", "0.6717688", "0.6641762", "0.6628897", "0.6607473", "0.65970194", "0.6596884", "0.6590165", "0.65634036", "0.65608424", "0.6526158", "0.648763", "0.64818317", "0.6437515...
0.0
-1
Beschreibt einen Spielteilnehmer. Entweder eine KI oder der vom physischen Spieler gesteuerte Spieler. Im Konstruktor wird die Color festgelegt. Dieses Interface ist mit allen Methoden zu implementieren, wenn eine eigene KI implementiert werden soll.
public interface Player { /** * has to be implemented * wird von update() in Game aufgerufen. * @return eine der Actions aus Rules.getActionsTileMove() */ GameState requestActionTile(); /** * has to be implemented * wird von update() in Game aufgerufen. * @return eine der ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract String getColor();", "@Override\n\tpublic String toString(){\n\t\tif(this.getColor()==1){\n\t\t\treturn \"wK\";\n\t\t}else{\n\t\t\treturn \"bK\";\n\t\t}\n\t}", "@Override\r\n\tpublic void howToColor() {\n\t\t\r\n\t}", "public void Color() {\n\t\t\r\n\t}", "@Override\n\t\tpublic Color color() { ret...
[ "0.5871137", "0.58277035", "0.57832974", "0.5731321", "0.5729678", "0.57244164", "0.5706858", "0.5706858", "0.5701077", "0.5699871", "0.56638694", "0.56525505", "0.562414", "0.5581046", "0.5567688", "0.5558388", "0.555708", "0.5552078", "0.5487534", "0.54762006", "0.54696316"...
0.0
-1
has to be implemented wird von update() in Game aufgerufen.
GameState requestActionTile();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void update(Game game) {\n\t\t\n\t}", "@Override\r\n\tpublic void updateGameFinished() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void Update() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void Update() {\n\t\t\r\n\t}", "@Override\n public void update()\n {\n\n }", "@Override\n\tpubl...
[ "0.8616054", "0.8325922", "0.80008787", "0.80008787", "0.78465676", "0.7807199", "0.7799743", "0.7799743", "0.7799743", "0.7799743", "0.7799743", "0.7799743", "0.7799743", "0.7799743", "0.7799743", "0.7799743", "0.77741617", "0.77634037", "0.7738716", "0.77297205", "0.7728902...
0.0
-1
has to be implemented wird von update() in Game aufgerufen.
GameState requestActionGamePiece();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void update(Game game) {\n\t\t\n\t}", "@Override\r\n\tpublic void updateGameFinished() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void Update() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void Update() {\n\t\t\r\n\t}", "@Override\n public void update()\n {\n\n }", "@Override\n\tpubl...
[ "0.8616054", "0.8325922", "0.80008787", "0.80008787", "0.78465676", "0.7807199", "0.7799743", "0.7799743", "0.7799743", "0.7799743", "0.7799743", "0.7799743", "0.7799743", "0.7799743", "0.7799743", "0.7799743", "0.77741617", "0.77634037", "0.7738716", "0.77297205", "0.7728902...
0.0
-1
has to be implemented wird von update() aufgerufen.
void updateGameState(GameState gameState);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void update() {}", "@Override\n\tpublic void update() {}", "@Override\n\t\tpublic void update() {\n\n\t\t}", "@Override\n\t\tpublic void update() {\n\n\t\t}", "@Override\n\t\tpublic void update() {\n\n\t\t}", "@Override\r\n\t\tpublic void update() {\n\t\t\t\r\n\t\t}", "@Override\r\n...
[ "0.87861806", "0.87861806", "0.8780067", "0.8780067", "0.8780067", "0.8757316", "0.8757316", "0.8677745", "0.8677745", "0.8677745", "0.8677745", "0.8677745", "0.8647141", "0.8606431", "0.8606431", "0.8606431", "0.8606431", "0.8606431", "0.8606431", "0.86016357", "0.8573908", ...
0.0
-1
has to be implemented
Color getColor();
{ "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 function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\n public void perish() {\n ...
[ "0.7050703", "0.6818506", "0.6799358", "0.6799358", "0.6700058", "0.6606672", "0.6606672", "0.65893286", "0.6586795", "0.6554747", "0.65357065", "0.65111274", "0.6506393", "0.6492653", "0.6439059", "0.64317393", "0.6399924", "0.6380945", "0.6364512", "0.63607794", "0.6341188"...
0.0
-1
wird von update aufgerufen, sobald ein anderer Spieler eine Karte gewinnt.
void notifyWonCards(Color color, Symbol symbol);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void update(Object entidade) {\n\t\t\n\t}", "@Override\r\n\tpublic boolean update(Moteur obj) {\n\t\treturn false;\r\n\t}", "@Override\n\t\tpublic void update() {\n\n\t\t}", "@Override\n\t\tpublic void update() {\n\n\t\t}", "@Override\n\t\tpublic void update() {\n\n\t\t}", "@Override\...
[ "0.7815704", "0.75995755", "0.75020385", "0.75020385", "0.75020385", "0.7494497", "0.74682844", "0.7462243", "0.7462243", "0.7382996", "0.73814726", "0.73814726", "0.73337466", "0.73337466", "0.73217016", "0.73217016", "0.73173934", "0.7306885", "0.7256059", "0.7256059", "0.7...
0.0
-1
has to be implemented
Symbol getActiveCard();
{ "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 function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\n public void perish() {\n ...
[ "0.7050703", "0.6818506", "0.6799358", "0.6799358", "0.6700058", "0.6606672", "0.6606672", "0.65893286", "0.6586795", "0.6554747", "0.65357065", "0.65111274", "0.6506393", "0.6492653", "0.6439059", "0.64317393", "0.6399924", "0.6380945", "0.6364512", "0.63607794", "0.6341188"...
0.0
-1
creates new instance of chosen player Correct place to add new and more KI players!
static Player createNewPlayer(String className, Color color) throws IllegalArgumentException { switch (className) { case "PlayerKI": return new PlayerKI(color); case "PlayerKI2": return new PlayerKI2(color); case "PlayerKI3": re...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n \tpublic void createAndAddNewPlayer( int playerID )\n \t{\n \t\t//add player with default name\n \t\tPlayer newPlayer = new Player( playerID, \"Player_\"+playerID );\n \t\tgetPlayerMap().put( playerID, newPlayer );\n \t}", "public static void createPlayers() {\n\t\tcomputer1 = new ComputerSpeler();\n...
[ "0.73957264", "0.72560245", "0.7234383", "0.7078053", "0.70775664", "0.70566565", "0.6985591", "0.69708425", "0.6952619", "0.6928354", "0.68463504", "0.6816809", "0.6804943", "0.6802287", "0.6754628", "0.6739512", "0.67198265", "0.67155427", "0.6669298", "0.6651957", "0.66515...
0.0
-1
a timer has occurred in a dialog regarding a publication
public void onTimerEvent(TimerEvent event, ActivityContextInterface aci) { // cancel current timer //timerFacility.cancelTimer(event.getTimerID()); // detach from aci aci.detach(this.sbbContext.getSbbLocalObject()); // end it ((NullActivity) aci.getActivity()).endActivity(); // delegate to abstract code ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void timeDialogCallBack(String time) {\n\t\t\r\n\t}", "public static void updateTimeButtonClicked() {\n Occasion occasion = tableHoliday.getSelectionModel().getSelectedItem();\n\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\n alert.setTitle(\"Information Dialo...
[ "0.60633534", "0.600386", "0.5696774", "0.5650626", "0.56255066", "0.56238085", "0.56169826", "0.5598591", "0.5580057", "0.5568201", "0.5536688", "0.5519188", "0.5518164", "0.5473433", "0.5459986", "0.54593533", "0.54494685", "0.5449127", "0.54490125", "0.5448295", "0.5446932...
0.0
-1
IMPL OF ABSTRACT METHODS / (nonJavadoc)
@Override protected PublicationControlLogger getLogger() { return logger; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "@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\t\tpublic void method() {\n\t\t\t\n\t\t}", "abstract void method();", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n ...
[ "0.68906283", "0.6806549", "0.66519845", "0.6639883", "0.6610366", "0.6550211", "0.64726776", "0.64726776", "0.64585733", "0.6403325", "0.6331619", "0.63222647", "0.6307748", "0.6285225", "0.6266306", "0.6229644", "0.6225938", "0.62211263", "0.61909777", "0.61754245", "0.6157...
0.0
-1
SBB OBJECT's LIFE CYCLE
public void sbbActivate() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void lungs(Graphics bbg, int n, int length, int x, int y, double angle){\n double r1 = angle + Math.toRadians(-45);\n double r2 = angle + Math.toRadians(45);\n double r3 = angle + Math.toRadians(135);\n double r4 = angle + Math.toRadians(-135);\n\n //length modifications o...
[ "0.59194285", "0.59100217", "0.5534494", "0.5522542", "0.5462158", "0.544591", "0.54193676", "0.54111177", "0.5363084", "0.5312565", "0.5300432", "0.52920526", "0.5272208", "0.52635247", "0.52603763", "0.5241715", "0.524119", "0.5232433", "0.52227765", "0.52200425", "0.521835...
0.0
-1
/following step is using and duplicating an existing Step/s the original feature line/s should be used
@Given("I am on the Home Page") public void i_am_on_the_home_page(){ i_logged_into_Tenant_Manager_Project_list_page(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void step2() {\n\t\t\n\t}", "protected void runBeforeStep() {}", "public interface NormalStep extends Step { // <-- [user code injected with eMoflon]\n\n\t// [user code injected with eMoflon] -->\n}", "private void migrateFeaturesStep_1(Context context, Map featObjMap)\r\n throws Exce...
[ "0.61989903", "0.6062259", "0.59444535", "0.5940977", "0.590512", "0.5885972", "0.5858421", "0.58582664", "0.5840915", "0.582263", "0.582263", "0.58201694", "0.57743883", "0.57619894", "0.57619894", "0.5745713", "0.5745681", "0.5738247", "0.57084614", "0.5697932", "0.5688705"...
0.0
-1
/following step is using and duplicating an existing Step/s the original feature line/s should to be used
@When("I click on the Create new Project") public void i_click_on_the_create_new_project(){ i_click_on_create_a_new_project(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void step2() {\n\t\t\n\t}", "protected void runBeforeStep() {}", "private void migrateFeaturesStep_1(Context context, Map featObjMap)\r\n throws Exception{\r\n\r\n \t mqlLogRequiredInformationWriter(\"Inside method migrateFeaturesStep_1 \"+ \"\\n\");\r\n \t //These selectables ...
[ "0.61503017", "0.6053889", "0.59470975", "0.59364754", "0.586114", "0.5849775", "0.5813971", "0.57843196", "0.57841307", "0.5721895", "0.57150835", "0.57150835", "0.5692797", "0.5684632", "0.567107", "0.56674993", "0.5654673", "0.5654673", "0.5638162", "0.5636412", "0.5618531...
0.0
-1
/following step is using and duplicating an existing Step/s the original feature line/s need/s to be used
@Given("I am on the Project Contact Details Page") public void i_am_on_the_project_contact_details_page(){ i_logged_into_Tenant_Manager_Project_list_page(); i_click_on_create_a_new_project(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void step2() {\n\t\t\n\t}", "protected void runBeforeStep() {}", "private void migrateFeaturesStep_1(Context context, Map featObjMap)\r\n throws Exception{\r\n\r\n \t mqlLogRequiredInformationWriter(\"Inside method migrateFeaturesStep_1 \"+ \"\\n\");\r\n \t //These selectables ...
[ "0.6199059", "0.61429095", "0.60659444", "0.597231", "0.595839", "0.5881933", "0.5855072", "0.58491105", "0.58300024", "0.58285123", "0.58139414", "0.5783057", "0.5783057", "0.57538086", "0.57416934", "0.57188374", "0.57188374", "0.5691278", "0.56833136", "0.56770736", "0.565...
0.0
-1
TODO code application logic here
public static void main(String args[]){ BufferedReader br =new BufferedReader(new InputStreamReader(System.in)); System.out.print("Enter Roman Number : " ); String roman = null; try { roman = br.readLine(); } catch(IOExceptio...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n public void settings() {\n // TODO Auto-generated method stub\n \n }"...
[ "0.60802186", "0.5912082", "0.58425087", "0.58339286", "0.5810548", "0.57580656", "0.57396024", "0.5721001", "0.5705411", "0.5666017", "0.5657976", "0.5613798", "0.5611188", "0.5611188", "0.55960613", "0.55933475", "0.557677", "0.5572332", "0.5565667", "0.55482084", "0.553657...
0.0
-1
Determine if user proposed password meets requirements
@Override public void onClick(View v) { String strUsername = txtUsername.getText().toString(); String strPassword = txtPassword.getText().toString(); if (strPassword.length() < 4) { Toast.makeText(getApplicationContext(), "Password requires...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasPassword();", "boolean hasPassword();", "boolean hasPassword();", "boolean hasPassword();", "boolean hasPassword();", "boolean hasPassword();", "boolean hasPassword();", "boolean hasPassword();", "boolean isMatchPassword(Password toCheck) throws NoUserSelectedException;", "boolean hasP...
[ "0.79203796", "0.79203796", "0.79203796", "0.79203796", "0.79203796", "0.79203796", "0.79203796", "0.79203796", "0.77436215", "0.76820904", "0.7503511", "0.73012537", "0.7193596", "0.7182302", "0.7064609", "0.7008799", "0.69941217", "0.69859517", "0.69601214", "0.6944759", "0...
0.0
-1
Validate the query request
public void validateQuery(Query query) throws InvalidQueryException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void validate() throws org.apache.thrift.TException {\n if (query != null) {\n query.validate();\n }\n }", "protected abstract String getValidationQuery();", "public void validate() throws org.apache.thrift.TException {\n if (simpleSearchQuery != null) {\r\n simpleSearchQuery.validat...
[ "0.69290584", "0.6908304", "0.67120385", "0.64858127", "0.610211", "0.6092929", "0.5978008", "0.59669536", "0.59075916", "0.5897546", "0.5871244", "0.5870711", "0.5846646", "0.5846646", "0.5846646", "0.5846646", "0.57730514", "0.5752933", "0.5735576", "0.5731286", "0.5728147"...
0.76360387
0
Execute the query request
public List<JsonNode> forwardQuery(Query query) throws InvalidQueryException, IOException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Query query();", "public void query()\n\t{\n\t\tJSONObject queryInfo = new JSONObject();\n\t\t\n\t\ttry\n\t\t{\n\t\t\tqueryInfo.put(\"type\", \"query\");\n\t\t\t\n\t\t\tos.println(queryInfo.toString());\n\t\t\tos.flush();\n\t\t\t\n\t\t\tSystem.out.println(\"send query request : \" + queryInfo.toString());\n\t\t}...
[ "0.739658", "0.73930687", "0.69805145", "0.66969556", "0.6684769", "0.66833085", "0.6638492", "0.660706", "0.6599127", "0.65791476", "0.65762424", "0.65603375", "0.64990896", "0.63481313", "0.6310729", "0.6183903", "0.6169165", "0.6159562", "0.61511946", "0.61251706", "0.6102...
0.0
-1
class that contains all the building blocks for the swing frontend, contains all the action listeners and the event listeners
public static void main(String[] args) { f = new JFrame("Conversion Application"); f.setDefaultCloseOperation(f.EXIT_ON_CLOSE); Frontend s = new Frontend(); f.setLayout(new GridBagLayout()); String s1[] = {"Football Co.", "Maple Co."}; c1 = new JComboBox<String>...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initComponents() {\n\n\t\texitMenuItem.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tSystem.exit(0);\n\n\t\t\t}\n\t\t});\n\n\t\tnewTaskMenuItem.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void acti...
[ "0.68913156", "0.6748783", "0.6704035", "0.6650054", "0.66370773", "0.6627929", "0.66172266", "0.6611375", "0.65953714", "0.65801173", "0.65707874", "0.6537361", "0.65177745", "0.6506195", "0.6503116", "0.65025026", "0.6499885", "0.6480573", "0.6478728", "0.6476586", "0.64758...
0.0
-1
Creates a new instance of CarEdition
public CarEdition() { ELContext context = FacesContext.getCurrentInstance().getELContext(); app = (CarsaleApplication) FacesContext.getCurrentInstance().getApplication().getELResolver().getValue(context, null, "carsaleApplication"); try { this.carId = Integer.valueOf(FacesContext.get...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Car createExisting(Integer carID, String make, String model,\r\n Integer productionYear) {\r\n return new Car(carID, make, model, productionYear);\r\n }", "public static Car createNew(String make, String model, Integer productionYear) {\r\n retur...
[ "0.5950396", "0.589848", "0.5895899", "0.58869815", "0.58640736", "0.5807097", "0.57957745", "0.5707842", "0.5700971", "0.5688283", "0.56026417", "0.5561068", "0.54736936", "0.54736936", "0.5472248", "0.54557085", "0.54557073", "0.5427786", "0.54241467", "0.5404529", "0.53747...
0.7237393
0
Sample Code: saveObjectAndSync(user) insert data and update vcs_table for count data current table WARNING : Make It Slower
public void saveObjectAndSync(final Object objectType) throws Exception;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void syncUpService(JSONObject obj) {\n ArrayList<ServiceModel> serviceModel = getServiceModelJSON(obj);\n insertServiceSQLite(serviceModel);\n }", "private void writeObject(Object object) {\r\n\t\tsession.saveOrUpdate(object);\r\n\r\n\t\t// Since can writing large amount of data should us...
[ "0.60870373", "0.57140636", "0.5695068", "0.56920093", "0.56896996", "0.56200063", "0.5615231", "0.5595799", "0.5544169", "0.54964375", "0.54866487", "0.54835814", "0.54738945", "0.5450613", "0.54435885", "0.5425558", "0.5401202", "0.5373155", "0.53370553", "0.53330064", "0.5...
0.5766947
1
additional method for method findPeriodForTwoFirstPositiveNumbersInARow
static int[] findFirstTwoPositiveNumbersInARow(int... sourceNumbers) { return IntStream.of(sourceNumbers) .filter(x -> x > 0) .peek(x -> System.out.format("%d, ", x)) .limit(2).toArray(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected int getNumberOfPeriods()\n {\n return 2;\n }", "public int getHowManyInPeriod();", "int getPeriod();", "BigInteger getPeriod();", "double getPeriod();", "private int firstB(String fa)\n{\n Calendar cal=new GregorianCalendar();\n int y1=(cal.get(Calendar.YEAR)%2000)/10...
[ "0.61014295", "0.59070873", "0.5706494", "0.56654197", "0.54985666", "0.5348566", "0.5152741", "0.51298404", "0.51269376", "0.5108698", "0.50232583", "0.5003782", "0.49896067", "0.4987303", "0.498727", "0.4982002", "0.49371168", "0.49167654", "0.48957014", "0.48879114", "0.48...
0.49327877
17
What you want to schedule goes here
@Override public void run() { if (config.DebugLogging) { getLogger().info("Reverting Ice to Water to prevent server overload"); } Block fixblock = getServer().getWorld(blockloc.getWorld().getName())....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void schedule();", "private void scheduleJob() {\n\n }", "private void beginSchedule(){\n\t\tDivaApp.getInstance().submitScheduledTask(new RandomUpdater(this), RandomUpdater.DELAY, RandomUpdater.PERIOD);\n\t}", "public void generateSchedule(){\n\t\t\n\t}", "public void scheduleJobs();", ...
[ "0.7880016", "0.7759114", "0.76883227", "0.7651211", "0.74005765", "0.73698074", "0.7190184", "0.71644485", "0.7125583", "0.71167356", "0.71008193", "0.7069954", "0.6988312", "0.6940508", "0.6936707", "0.6918463", "0.69145155", "0.6895466", "0.68876684", "0.681916", "0.680595...
0.0
-1
/ Check if a plugin is loaded/enabled. Returns the plugin and print message to console if so, returns null otherwise
private Plugin loadPlugin(String p) { Plugin plugin = this.getServer().getPluginManager().getPlugin(p); if (plugin != null && plugin.isEnabled()) { getLogger().info(" Using " + plugin.getDescription().getName() + " (v" + plugin.getDescription().getVersion() + ")"); return plugin;...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean hasPlugin() {\n return plugin != null;\n }", "private boolean pluginLoading(String pluginName) {\n return pm.getPlugin(pluginName) != null;\n }", "public boolean isPluginInstalled() {\n return Bukkit.getPluginManager().isPluginEnabled(Library.MCRPG.getInternalPluginNam...
[ "0.7278444", "0.7242645", "0.6907504", "0.67314655", "0.6588454", "0.65236634", "0.64336747", "0.6429663", "0.6355158", "0.59772533", "0.5963721", "0.5876522", "0.5870799", "0.5832607", "0.58300424", "0.5758233", "0.5753462", "0.56470585", "0.5621739", "0.5584605", "0.5579363...
0.68698263
3
/ init initializes the variables which store the DNS of your database instances
private void init() { /* Add the DNS of your database instances here */ databaseInstances[0] = "ec2-52-0-167-69.compute-1.amazonaws.com"; databaseInstances[1] = "ec2-52-0-247-64.compute-1.amazonaws.com"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void init() {\n DatabaseInitializer databaseInitializer = new DatabaseInitializer();\n try {\n for (int i = 0; i < DEFAULT_POOL_SIZE; i++) {\n ProxyConnection connection = new ProxyConnection(databaseInitializer.getConnection());\n connections.put(conn...
[ "0.7065684", "0.693799", "0.6933944", "0.67551976", "0.67503023", "0.6608659", "0.6603418", "0.6569918", "0.6568747", "0.6558243", "0.64010054", "0.63838995", "0.6345114", "0.6332942", "0.63328224", "0.6309618", "0.629717", "0.62714314", "0.62695646", "0.6264441", "0.62617296...
0.8800176
0
/ checkBackend verifies that the DCI are running before starting this server
private boolean checkBackend() { try{ if(sendRequest(generateURL(0,"1")) == null || sendRequest(generateURL(1,"1")) == null) return true; } catch (Exception ex) { System.out.println("Exception is " + ex); return true; } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void checkContainer() {\n // http://stackoverflow.com/questions/2976884/detect-if-running-in-servlet-container-or-standalone\n try {\n new InitialContext().lookup(\"java:comp/env\");\n log.info(\"Running inside servlet container. Explicit server creation skipped\");\n ...
[ "0.6243478", "0.6177775", "0.58085287", "0.58069104", "0.54960936", "0.5402883", "0.53822994", "0.53582746", "0.5314971", "0.52967036", "0.52573335", "0.5207524", "0.51878124", "0.51840615", "0.5171106", "0.51344746", "0.51338094", "0.5133332", "0.5113421", "0.5108959", "0.51...
0.6349695
0
/ sendRequest Input: URL Action: Send a HTTP GET request for that URL and get the response Returns: The response
private String sendRequest(String requestUrl) throws Exception { URL url = new URL(requestUrl); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setRequestMethod("GET"); connection.setRequestProperty("User-Agent", "Mozilla/5.0"); BufferedReader in = new BufferedReader...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getRequest(String url);", "private static String sendGET(String getURL) throws IOException {\n\t\tURL obj = new URL(getURL);\n\t\tHttpURLConnection con = (HttpURLConnection) obj.openConnection();\n\t\tcon.setRequestMethod(\"GET\");\n\t\tString finalResponse = \"\";\n\n\t\t//This way we know if the request...
[ "0.73576474", "0.7114992", "0.701352", "0.68498325", "0.6821989", "0.66925997", "0.66921943", "0.6684492", "0.6580162", "0.65612864", "0.6544653", "0.6539436", "0.6504566", "0.64835227", "0.6456326", "0.6423724", "0.63938874", "0.6312987", "0.63085616", "0.63062054", "0.63006...
0.6566738
9
/ generateURL Input: Instance ID of the Data Center targetID Returns: URL which can be used to retrieve the target's details from the data center instance Additional info: the target's details are cached on backend instance
private String generateURL(Integer instanceID, String key) { return "http://" + databaseInstances[instanceID] + "/target?targetID=" + key; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Returns(\"targetId\")\n String createTarget(@ParamName(\"url\") String url);", "protected String getTargetUrl() {\n // Get the next target URL\n String target = this.endpointUrls.get(this.nextTarget);\n LOGGER.trace(\"Current nextTarget: \\\"{}\\\", targetUrl: \\\"{}\\\"\", this.nextTarget...
[ "0.620329", "0.6172255", "0.60999584", "0.6034626", "0.58843434", "0.58286864", "0.57995725", "0.57772774", "0.57051367", "0.5598019", "0.55671644", "0.55671644", "0.55069405", "0.5454752", "0.5394895", "0.5391621", "0.53414243", "0.53194916", "0.5318202", "0.52906954", "0.52...
0.78612113
0