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
accesor para la media
public double getMedia() { return ( suma / cantidad ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void chooseMedia();", "public abstract String playMedia ();", "private void addMediaMenu(){\n\t\t\n\t}", "public void importMedia(){\r\n \r\n }", "public CalculoMedia() {\n initComponents();\n \n }", "@Override\n public void onMediaClicked(int position) {\n ...
[ "0.66187495", "0.6511488", "0.62927866", "0.6249623", "0.62178004", "0.6090229", "0.5942379", "0.5885569", "0.5826607", "0.57898", "0.5758654", "0.57530314", "0.5721812", "0.5688064", "0.56467295", "0.5638199", "0.5631523", "0.56284964", "0.56049544", "0.55633944", "0.5562770...
0.0
-1
resetear la calculadora poniendo todo a 0
public void reset() { cantidad = 0; suma = 0; maximo = 0; minimo = 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void resetValor();", "private void resetaPadraoEFundo() {\r\n\t\tdiferencaDeFundoATopo = new BigDecimal(0);\r\n\t\t\r\n\t\tif (!isNovoFundo) {\r\n\t\t\tvalorDoFundoAnterior = new BigDecimal(0);\r\n\t\t}\r\n\r\n\t\tvalorDoTopo = new BigDecimal(0);\r\n\t\tultimoFoiTopo = false;\r\n\t\t\r\n\t\tvalorDoFundo =...
[ "0.7489512", "0.72506326", "0.71721476", "0.7063762", "0.7058967", "0.69925314", "0.6989336", "0.6987958", "0.6982059", "0.6884959", "0.6882834", "0.68814164", "0.6865761", "0.6779478", "0.6752273", "0.67515755", "0.67346805", "0.6685148", "0.66831625", "0.6679207", "0.665014...
0.7983432
0
String user= "nsheth2"; //"root"; String pwd= "lspa_mysql"; //"";
public void connect() { try{ Class.forName("com.mysql.jdbc.Driver").newInstance(); conn = DriverManager.getConnection(url,user,pwd); System.out.println("Connected..."); } catch(Exception se){ se.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\t\t final String JDBC_DRIVER = \"com.mysql.jdbc.Driver\"; \r\n\t\t final String DB_URL = \"jdbc:mysql://localhost:5235\";\r\n\r\n\t\t // Database credentials\r\n\t\t final String USER = \"root\";\r\n\t\t final String PASS = \"amitmanutd@nija.com0052311\";\r\n\...
[ "0.6918946", "0.6662498", "0.6442076", "0.63852525", "0.62608093", "0.6226685", "0.6202424", "0.619414", "0.61848325", "0.6180965", "0.6078653", "0.60766953", "0.60425335", "0.5996364", "0.594796", "0.5920278", "0.58992904", "0.58953977", "0.5879838", "0.5875175", "0.5866757"...
0.0
-1
createIndex: two plan to realize, first use insert and update for each item; second use update for the existed records, if not existed (assume know it quick), put it into a file and use load file for those unexsited records. (to see which one is faster)
public boolean createIndex(Hashtable<String, Hashtable<Integer,Quad>> ind_buffer){ Set<String> keys = ind_buffer.keySet(); Hashtable<Integer,Quad> list; Quad comp; int part; int type1_s, type1_o; int type_s,type_o; int wei, wei1; // compared use int o_bytes, s_bytes, o_bytes1, s_bytes1; String check = "select resource, part, type_s, type_o, weight, o_bytes, s_bytes from `"+table+"` where "; //String insert = "insert into `sindex` values "; // String update = "update " ResultSet rs = null; PreparedStatement prepstmt = null; String res; for(String key : keys){ list = ind_buffer.get(key); if(key.indexOf('\'') != -1 ) res = key.replaceAll("'", "''"); else res = key; // hashcode sealing // key = String.valueOf(key.hashCode()); for(int i : list.keySet()){ comp = list.get(i); part = i; type_s = comp.type_s; type_o = comp.type_o; wei = comp.weight; o_bytes = comp.o_bytes; s_bytes = comp.s_bytes; // seach if have res in table StringBuilder sql = new StringBuilder(); sql.append(check).append("resource='").append(res).append("' and part=").append(part); try { prepstmt = conn.prepareStatement(sql.toString(),ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE); rs = prepstmt.executeQuery(); if(rs.next()){ // updates the records type1_o = rs.getInt("type_o"); type1_s = rs.getInt("type_s"); wei1 = rs.getInt("weight"); o_bytes1 = rs.getInt("o_bytes"); s_bytes1 = rs.getInt("s_bytes"); // unpdate records wei += wei1; /*if(wei < wei1){ wei = wei1; flag2 = 1; }*/ o_bytes1 += o_bytes; s_bytes1 += s_bytes; if(type_s != 0 && type1_s == 0) rs.updateInt("type_s", type_s); if(type_o != 0 && type1_o == 0) rs.updateInt("type_o", type_o); // if(flag2 == 1) rs.updateInt("weight", wei); rs.updateInt("o_bytes", o_bytes1); rs.updateInt("s_bytes", s_bytes1); rs.updateRow(); }else { // directly insert the record /** (option 1 as below) * value = "('"+key+"',"+part+",'"+type+"',"+wei+")"; * updateSql(insert+value); */ // option 2 to realize rs.moveToInsertRow(); rs.updateString("resource", key); rs.updateInt("part", part); rs.updateInt("type_s", type_s); rs.updateInt("type_o", type_o); rs.updateInt("weight", wei); rs.updateInt("o_bytes", o_bytes); rs.updateInt("s_bytes", s_bytes); rs.insertRow(); } } catch (SQLException e) { e.printStackTrace(); System.out.println(key); }finally{ // ??should wait until all database operation finished! if (rs != null) { try { rs.close(); prepstmt.close(); } catch (SQLException e) { e.printStackTrace(); } } } } } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean createIndex_random(Hashtable<String, Hashtable<Integer,Quad>> ind_buffer){\n\t\tSet<String> keys = ind_buffer.keySet();\n\t\tHashtable<Integer,Quad> list;\n\t\tint part;\n\t\t\n\t\tint type_s, type_o, type1_s, type1_o;\n\t\tint o_bytes, s_bytes, o_bytes1, s_bytes1;\n\t\t\n\t\tString check = \"select...
[ "0.61687034", "0.5956418", "0.595449", "0.5925369", "0.5775683", "0.57697403", "0.5687475", "0.5653619", "0.5651195", "0.5630203", "0.56122625", "0.55955327", "0.55936766", "0.5554619", "0.5536486", "0.55298156", "0.5529364", "0.5525993", "0.5519171", "0.55141735", "0.5505955...
0.64506125
0
the second version of create index for random partitioning
public boolean createIndex_random(Hashtable<String, Hashtable<Integer,Quad>> ind_buffer){ Set<String> keys = ind_buffer.keySet(); Hashtable<Integer,Quad> list; int part; int type_s, type_o, type1_s, type1_o; int o_bytes, s_bytes, o_bytes1, s_bytes1; String check = "select resource, part, type_s, type_o, weight, o_bytes, s_bytes from `"+table+"` where "; ResultSet rs = null; PreparedStatement prepstmt = null; Quad item; String res; for(String key : keys){ list = ind_buffer.get(key); if(key.indexOf('\'') != -1 ) res = key.replaceAll("'", "''"); else res = key; for(int i : list.keySet()){ item = list.get(i); type_s = item.type_s; type_o = item.type_o; o_bytes = item.o_bytes; s_bytes = item.s_bytes; part = i; // seach if have res in table StringBuilder sql = new StringBuilder(); sql.append(check).append("resource='").append(res).append("' and part=").append(part); // rs = search(sql.toString()); try { prepstmt = conn.prepareStatement(sql.toString(),ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE); rs = prepstmt.executeQuery(); if(rs.next()){ // updates the records type1_s = rs.getInt("type_s"); type1_o = rs.getInt("type_o"); o_bytes1 = rs.getInt("o_bytes"); s_bytes1 = rs.getInt("s_bytes"); o_bytes1 += o_bytes; s_bytes1 += s_bytes; // unpdate records if(type_s != 0 && type1_s == 0) rs.updateInt("type_s", type_s); if(type_o != 0 && type1_o == 0) rs.updateInt("type_o", type_o); rs.updateInt("o_bytes", o_bytes1); rs.updateInt("s_bytes", s_bytes1); rs.updateRow(); }else { // directly insert the record rs.moveToInsertRow(); rs.updateString("resource", key); rs.updateInt("part", part); rs.updateInt("type_s", type_s); rs.updateInt("type_o", type_o); rs.updateInt("o_bytes", o_bytes); rs.updateInt("s_bytes", s_bytes); rs.insertRow(); } } catch (SQLException e) { e.printStackTrace(); return false; }finally{ if (rs != null) { try { rs.close(); prepstmt.close(); } catch (SQLException e) { e.printStackTrace(); } } } } } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "InstAssignIndex createInstAssignIndex();", "indexSet createindexSet();", "@Test\n public void testCreateIdxOnClient() {\n getDefaultCacheOnClient().query(new SqlFieldsQuery(((\"CREATE INDEX IDX_11 ON \" + (GridCacheDynamicLoadOnClientTest.FULL_TABLE_NAME)) + \" (name asc)\"))).getAll();\n }", "@...
[ "0.6466602", "0.6179819", "0.5931701", "0.58405095", "0.5708691", "0.5702161", "0.57017076", "0.5657981", "0.5644322", "0.5614693", "0.5541126", "0.55380315", "0.5512236", "0.5505193", "0.5493998", "0.5465708", "0.5461876", "0.54543036", "0.54430336", "0.54118055", "0.5406620...
0.5628624
9
Update the weights of this LinearClassifer using the given inputs/output example and learning rate alpha.
public void update(double[] x, double y, double alpha){ for (int i = 0; i < x.length; i++) { double wi = weights[i]; double xi = x[i]; // Follow the update rule weights[i] = wi + alpha*(y - eval(x)) * eval(x)*(1.0 - eval(x)) * xi; //System.out.printf("%.5f\n", weights[i]); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void SetLearnRate (double alpha) { this.alpha = alpha; }", "public void update(double[] x, double y, double alpha) {\n\t\tdouble h=eval(x);\n\t\tfor(int i=0; i<x.length; i++) {\n\t\t\tweights[i]= weights[i]+ alpha*(y-h)*x[i];\n\t\t}\n\t}", "public void update(double[] x, double y, double alpha) {\n\t\t/...
[ "0.6726718", "0.632737", "0.61937773", "0.5952029", "0.5814752", "0.57602024", "0.56608564", "0.5622983", "0.55487776", "0.5540484", "0.5503059", "0.5441144", "0.5392457", "0.53842455", "0.5326122", "0.5265163", "0.52298826", "0.5163668", "0.5144571", "0.5134722", "0.5133093"...
0.62465954
2
Evaluate the given input vector using this LinearClassifier and return the output value. This value is: L(w dot x)
public double eval(double[] x) { double z = VectorOps.dot(this.weights, x); // z is still w dot x double log = 1.0 / (1.0 + Math.exp(-1 * z) ); // 1 / (1 + e^-z) return log; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "double predict(Vector w);", "public void testEvaluate()\n {\n Vector zero = new Vector3();\n Vector x = new Vector3(RANDOM.nextGaussian(), RANDOM.nextGaussian(), RANDOM.nextGaussian());\n Vector y = new Vector3(RANDOM.nextGaussian(), RANDOM.nextGaussian(), RANDOM.nextGaussian());\n ...
[ "0.63806844", "0.6254833", "0.62252766", "0.6107546", "0.59801865", "0.5724682", "0.56629765", "0.56611407", "0.5589428", "0.554927", "0.5538529", "0.5538452", "0.55035585", "0.5466405", "0.5444567", "0.54316205", "0.5429292", "0.54249185", "0.5401372", "0.5379335", "0.537015...
0.64191806
0
Train this LinearClassifier on the given Examples for the given number of steps, using given learning rate schedule. ``Typically the learning rule is applied one example at a time, choosing examples at random (as in stochastic gradient descent).'' See AIMA p. 724.
public void train(List<Example> examples, int nsteps, LearningRateSchedule schedule) { Random random = new Random(); int n = examples.size(); this.accuracy = new double[nsteps+1]; for (int i=1; i <= nsteps; i++) { int j = random.nextInt(n); Example ex = examples.get(j); this.update(ex.inputs, ex.output, schedule.alpha(i)); accuracy[i] = this.trainingReport(examples, i, nsteps); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void train(List<Example> examples, int nsteps, double constant_alpha) {\n\t\tRandom random = new Random();\n\t\tint n = examples.size();\n\t\tthis.accuracy = new double[nsteps+1];\n\t\t\n\t\tfor (int i=1; i <= nsteps; i++) {\n\t\t\tint j = random.nextInt(n);\n\t\t\tExample ex = examples.get(j);\n\t\t\t\n\t\...
[ "0.7023789", "0.6676826", "0.56782174", "0.53882396", "0.53411865", "0.52780896", "0.5274073", "0.51832664", "0.51515096", "0.5081513", "0.50094", "0.49766245", "0.4973911", "0.49399522", "0.4878075", "0.48644736", "0.48043758", "0.47844568", "0.4777568", "0.47544765", "0.470...
0.7707978
0
Train this LinearClassifier on the given Examples for the given number of steps, using given constant learning rate.
public void train(List<Example> examples, int nsteps, double constant_alpha) { Random random = new Random(); int n = examples.size(); this.accuracy = new double[nsteps+1]; for (int i=1; i <= nsteps; i++) { int j = random.nextInt(n); Example ex = examples.get(j); this.update(ex.inputs, ex.output, constant_alpha); accuracy[i] = this.trainingReport(examples, i, nsteps); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void train(DataSet examples) {\n // check\n Example first = examples.getExample(0);\n if (!(first.get(\"INPUT\").getValue() instanceof Double[])) {\n throw new RuntimeException(\"NeuralNetworkLearner inputs must be passed as a Double[] in the \\\"INPUT\\\" attr...
[ "0.69147843", "0.68569773", "0.5819892", "0.5798304", "0.5628438", "0.55374837", "0.55043906", "0.5460936", "0.5450865", "0.5283392", "0.5196538", "0.519377", "0.51506335", "0.51082045", "0.5040756", "0.5037538", "0.5028528", "0.4995856", "0.4980148", "0.49433255", "0.4916274...
0.713416
0
This method is called after each weight update during training. Subclasses can override it to gather statistics or update displays.
protected double trainingReport(List<Example> examples, int stepnum, int nsteps) { double acc = squaredErrorPerSample(examples); //System.out.println(stepnum + "\t" + acc); return acc; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void updateWeights() {\n\t\tvisualization.updateWeights();\n\t}", "public void update_weight() {\n this.weights = this.updatedWeights;\n }", "public void updateWeights() {\n\t\t\n\t}", "@Override\r\n\tpublic void update() {\n\t\tsuper.update();\r\n\t}", "private void learn() {\n\t\tupda...
[ "0.7561985", "0.73485917", "0.73435307", "0.6477849", "0.64460176", "0.6418746", "0.6367162", "0.63513654", "0.6331512", "0.6315882", "0.6312145", "0.62990975", "0.62931424", "0.6279489", "0.6274826", "0.6264611", "0.62416", "0.62078154", "0.62026525", "0.6182704", "0.6182704...
0.0
-1
Return the squared error per example for this Linear classifier using the L2 (squared error) loss function.
public double squaredErrorPerSample(List<Example> examples) { double sum = 0.0; for (Example ex : examples) { double result = eval(ex.inputs); double error = ex.output - result; sum += error*error; } return 1- (sum / examples.size()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double loss() {\n double L,l;\n if (weightStrategy != 2) {\n\n L = reg * (U.squaredSum() + V.squaredSum());\n for (int u = 0; u < userCount; u++) {\n l = 0;\n for (int i : trainMatrix.getRowRef(u).indexList()) {\n double pr...
[ "0.592", "0.5860031", "0.55618507", "0.55102", "0.5429701", "0.5398963", "0.53822166", "0.5365765", "0.5292501", "0.5281422", "0.52658343", "0.5169516", "0.5168129", "0.5156443", "0.514929", "0.51384926", "0.5117465", "0.5105053", "0.50532955", "0.5045876", "0.50365233", "0...
0.6568005
0
we search for the session window that can overlap with the [ESET, LSST] range since the session window length can vary, we define the search boundary as: lower: [0, ESET] upper: [LSST, INF] and by putting the end time first and then the start time, the serialized search boundary is: [(ESET0), (INFLSST)]
public static void writeBinary(final ByteBuffer buf, final Bytes key, final long startTime, final long endTime) { buf.put(key.get()); buf.putLong(endTime); buf.putLong(startTime); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "LinkedList<Tuple<Long,Long>> ContainWithinTimeWindow(LinkedList<Tuple<Long,Long>> q, long current_time, long time_window){\n LinkedList<Tuple<Long,Long>> output = new LinkedList<Tuple<Long,Long>>();\n for(Tuple<Long,Long> e: q){\n //if it starts after the start of the window:\n...
[ "0.55690545", "0.52162915", "0.51322454", "0.5097795", "0.50796044", "0.5046683", "0.49541837", "0.49284628", "0.49066922", "0.49007472", "0.4816506", "0.47985655", "0.47937116", "0.47595823", "0.47448233", "0.47418088", "0.47381338", "0.47343007", "0.4725703", "0.4697987", "...
0.0
-1
I added the up and down method to up and down the data inside each applicance
public void up() { System.out.println("\tAir conditioner is up to " + ++tem +" degrees"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void generateUpsAndDowns() {\n\t\t// rows are simulation at given time, columns paths\n\t\tupsAndDowns = new double[lastTime][numberOfSimulations];\n\t\tdouble threshold = convert();// if the simulated number is less than this, we have up\n\t\t// double for loop, time and simulations\n\t\tfor (int timeInde...
[ "0.57110673", "0.5548594", "0.55228275", "0.54566413", "0.5392937", "0.5392937", "0.5327414", "0.53269523", "0.5304756", "0.530184", "0.52406186", "0.5221664", "0.52064496", "0.5190139", "0.5190139", "0.51830405", "0.517667", "0.5148756", "0.51355284", "0.5091608", "0.5088048...
0.5035427
25
I added the set method to set corresponding value
public void set(int value) { tem = value; System.out.println("\tAir conditioner is set to " + tem +" degrees"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setValue(Object value) { this.value = value; }", "public void setValue(Object value);", "protected abstract void setValue(V value);", "@Override\n\tpublic void setValue(Object value) {\n\t\t\n\t}", "void setValue(Object value);", "public void setValue(Object val);", "public abstract void se...
[ "0.7653696", "0.75870854", "0.75764704", "0.7561515", "0.75156444", "0.7511015", "0.7491215", "0.74871725", "0.7429769", "0.74201065", "0.7342755", "0.7342755", "0.732458", "0.730243", "0.7302316", "0.72744054", "0.7265408", "0.7246476", "0.7237124", "0.7191317", "0.7171947",...
0.0
-1
Spring Data JPA repository for the Suspendedusers entity.
@SuppressWarnings("unused") @Repository public interface SuspendedusersRepository extends JpaRepository<Suspendedusers, Long> { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface SchedulerWorkRepository extends JpaRepository<SchedulerWork, Integer> {\n\n SchedulerWork findByUserID(Integer userId);\n}", "public interface TPUserRepository extends JpaRepository<TPUser, Long> {\n\n}", "@Repository\npublic interface SysUserRepository extends JpaRepository<SysUser,Integer...
[ "0.61136913", "0.5956886", "0.5925259", "0.5895523", "0.583866", "0.58366513", "0.58326745", "0.57629573", "0.5753958", "0.5738181", "0.5731261", "0.5674419", "0.5674419", "0.5674419", "0.5673364", "0.56535566", "0.5633996", "0.563018", "0.5627734", "0.560178", "0.55792344", ...
0.7487665
0
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.main, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {...
[ "0.7249256", "0.72037125", "0.7197713", "0.7180111", "0.71107703", "0.70437056", "0.70412415", "0.7014533", "0.7011124", "0.6983377", "0.69496083", "0.69436663", "0.69371194", "0.69207716", "0.69207716", "0.6893342", "0.6886841", "0.6879545", "0.6877086", "0.68662405", "0.686...
0.0
-1
TODO Autogenerated method stub
public List<StokContract> getAll() { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
public StokContract Delete(StokContract entity) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
public void Update(StokContract entity) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
public List<StokContract> getById(int id) { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.66713095", "0.6567948", "0.652319", "0.648097", "0.64770466", "0.64586824", "0.64132667", "0.6376419", "0.62759", "0.62545097", "0.62371093", "0.62237984", "0.6201738", "0.619477", "0.619477", "0.61924416", "0.61872935", "0.6173417", "0.613289", "0.6127952", "0.6080854", ...
0.0
-1
TODO Autogenerated method stub
@Override public int count() { return 0; }
{ "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
Comparamos cuan iguales son las orientaciones de los dos anuncios en base a la distancia entre ambas. Si son iguales el resultado sera 1, si la diferencia == 1 el resultado sera 0.5, por defecto 0 Ejemplo: Anun1=Norte, Anun2=Norte > Diferencia = 0 > Resultado = 1 Anun1=Norte, Anun2=Este > Diferencia = 2 > Resultado = 0 Anun1=Norte, Anun2=Noreste > Diferencia = 1 > Resultado = 0.5
private double compararOrientacion(Map<String, Object> anuncio1, Map<String , Object> anuncio2){ Integer idOrientacion1 = anuncio1.containsKey("Id Orientacion") ? ((Double) anuncio1.get("Id Orientacion")).intValue() : null; Integer idOrientacion2 = anuncio2.containsKey("Id Orientacion") ? ((Double) anuncio2.get("Id Orientacion")).intValue() : null; double base = 0; boolean continuar = true; if (idOrientacion1 == null || idOrientacion2 == null){ base = 1; continuar = false; } if (idOrientacion1 == idOrientacion2){ base = 1; continuar = false; } if (continuar){ int diferencia = Math.abs(idOrientacion1 - idOrientacion2); if (diferencia == 7){ diferencia = 1; } base = diferencia == 1 ? 0.5 : 0; } return base * Constantes.PESOS_F1.get("Orientacion"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int orientaceGrafu(){\n\t\tint poc = 0;\n\t\tfor(int i = 0 ; i < hrana.length ; i++){\n\t\t\tif(!oriNeboNeoriHrana(hrana[i].zacatek,hrana[i].konec))\n\t\t\t poc++;\n\t\t}\n\t\tif(poc == 0 )\n\t\t\treturn 0;\n\t\t\n\t\tif(poc == pocetHr)\n\t\t\treturn 1;\n\t\t\n\t\t\n\t\t\treturn 2;\n\t\t \n\t\t\n\t\t\t\t\t\...
[ "0.5837097", "0.54573524", "0.5421713", "0.54094636", "0.5390538", "0.53410447", "0.52404183", "0.52219933", "0.52127117", "0.5203759", "0.5200502", "0.518393", "0.5168409", "0.51644504", "0.5164198", "0.5151639", "0.51453364", "0.5136893", "0.5087357", "0.5081657", "0.505167...
0.68604887
0
get the first JDialog
public static JDialog getFirstJDialog() { return firstJDialog; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private JDialog getJDialog() {\r\n\t\tif (jDialog == null) {\r\n\t\t\tjDialog = new JDialog(this);\r\n\t\t\tjDialog.setSize(new Dimension(227, 154));\r\n\t\t\tjDialog.setTitle(\"Add Proxy\");\r\n\r\n\t\t\tjDialog.setContentPane(getJContentPane1());\r\n\r\n\t\t}\r\n\t\treturn jDialog;\r\n\t}", "private JDialog ge...
[ "0.6970342", "0.69671875", "0.6550763", "0.65048146", "0.64724565", "0.64010316", "0.6199971", "0.61610687", "0.6121326", "0.60966086", "0.60614294", "0.60565007", "0.6032263", "0.60213536", "0.60050434", "0.5982851", "0.5980327", "0.59397215", "0.5882267", "0.5844008", "0.58...
0.8761112
0
This method was generated by MyBatis Generator. This method corresponds to the database table t_company_extend
long countByExample(CompanyExtendExample example);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<CompanyExtend> selectByExample(CompanyExtendExample example);", "CompanyExtend selectByPrimaryKey(Long id);", "AlgOptTable extend( List<AlgDataTypeField> extendedFields );", "int insertSelective(CompanyExtend record);", "int insert(CompanyExtend record);", "public interface CfgSearchRecommendMapper ...
[ "0.6564736", "0.6208699", "0.5704298", "0.55881757", "0.54528415", "0.5385097", "0.53174573", "0.52648085", "0.51797265", "0.51567304", "0.51251864", "0.5125104", "0.51179093", "0.5103076", "0.50955194", "0.504843", "0.50348705", "0.50221294", "0.4987983", "0.4971478", "0.491...
0.48490486
29
This method was generated by MyBatis Generator. This method corresponds to the database table t_company_extend
int deleteByExample(CompanyExtendExample example);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<CompanyExtend> selectByExample(CompanyExtendExample example);", "CompanyExtend selectByPrimaryKey(Long id);", "AlgOptTable extend( List<AlgDataTypeField> extendedFields );", "int insertSelective(CompanyExtend record);", "int insert(CompanyExtend record);", "public interface CfgSearchRecommendMapper ...
[ "0.6564772", "0.62087584", "0.5703857", "0.5589827", "0.5454497", "0.5381056", "0.5316506", "0.5265956", "0.5178196", "0.5156423", "0.5127404", "0.5126387", "0.5117912", "0.51058275", "0.5097461", "0.5050076", "0.50322324", "0.50201535", "0.49911", "0.49728397", "0.49185732",...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table t_company_extend
int deleteByPrimaryKey(Long id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<CompanyExtend> selectByExample(CompanyExtendExample example);", "CompanyExtend selectByPrimaryKey(Long id);", "AlgOptTable extend( List<AlgDataTypeField> extendedFields );", "int insertSelective(CompanyExtend record);", "int insert(CompanyExtend record);", "public interface CfgSearchRecommendMapper ...
[ "0.65658146", "0.6210377", "0.57034844", "0.5591176", "0.5456137", "0.53824055", "0.5317299", "0.5267165", "0.5177801", "0.51572734", "0.5130033", "0.5127629", "0.51185966", "0.5108329", "0.50965863", "0.5050043", "0.5033158", "0.5022075", "0.49917853", "0.4974307", "0.492157...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table t_company_extend
int insert(CompanyExtend record);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<CompanyExtend> selectByExample(CompanyExtendExample example);", "CompanyExtend selectByPrimaryKey(Long id);", "AlgOptTable extend( List<AlgDataTypeField> extendedFields );", "int insertSelective(CompanyExtend record);", "public interface CfgSearchRecommendMapper extends BaseMapper {\n /**\n * T...
[ "0.6567628", "0.6211655", "0.5703487", "0.5592161", "0.53800744", "0.53174245", "0.5268517", "0.5178383", "0.5156939", "0.5130991", "0.51291496", "0.51187176", "0.51088035", "0.50991493", "0.50501376", "0.50311154", "0.50210273", "0.49927703", "0.49754524", "0.4923287", "0.49...
0.5457045
4
This method was generated by MyBatis Generator. This method corresponds to the database table t_company_extend
int insertSelective(CompanyExtend record);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<CompanyExtend> selectByExample(CompanyExtendExample example);", "CompanyExtend selectByPrimaryKey(Long id);", "AlgOptTable extend( List<AlgDataTypeField> extendedFields );", "int insert(CompanyExtend record);", "public interface CfgSearchRecommendMapper extends BaseMapper {\n /**\n * This metho...
[ "0.6564736", "0.6208699", "0.5704298", "0.54528415", "0.5385097", "0.53174573", "0.52648085", "0.51797265", "0.51567304", "0.51251864", "0.5125104", "0.51179093", "0.5103076", "0.50955194", "0.504843", "0.50348705", "0.50221294", "0.4987983", "0.4971478", "0.49178216", "0.490...
0.55881757
3
This method was generated by MyBatis Generator. This method corresponds to the database table t_company_extend
List<CompanyExtend> selectByExample(CompanyExtendExample example);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "CompanyExtend selectByPrimaryKey(Long id);", "AlgOptTable extend( List<AlgDataTypeField> extendedFields );", "int insertSelective(CompanyExtend record);", "int insert(CompanyExtend record);", "public interface CfgSearchRecommendMapper extends BaseMapper {\n /**\n * This method was generated by MyBat...
[ "0.62087584", "0.5703857", "0.5589827", "0.5454497", "0.5381056", "0.5316506", "0.5265956", "0.5178196", "0.5156423", "0.5127404", "0.5126387", "0.5117912", "0.51058275", "0.5097461", "0.5050076", "0.50322324", "0.50201535", "0.49911", "0.49728397", "0.49185732", "0.49029773"...
0.6564772
0
This method was generated by MyBatis Generator. This method corresponds to the database table t_company_extend
CompanyExtend selectByPrimaryKey(Long id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<CompanyExtend> selectByExample(CompanyExtendExample example);", "AlgOptTable extend( List<AlgDataTypeField> extendedFields );", "int insertSelective(CompanyExtend record);", "int insert(CompanyExtend record);", "public interface CfgSearchRecommendMapper extends BaseMapper {\n /**\n * This metho...
[ "0.65658146", "0.57034844", "0.5591176", "0.5456137", "0.53824055", "0.5317299", "0.5267165", "0.5177801", "0.51572734", "0.5130033", "0.5127629", "0.51185966", "0.5108329", "0.50965863", "0.5050043", "0.5033158", "0.5022075", "0.49917853", "0.4974307", "0.49215716", "0.49040...
0.6210377
1
This method was generated by MyBatis Generator. This method corresponds to the database table t_company_extend
int updateByExampleSelective(@Param("record") CompanyExtend record, @Param("example") CompanyExtendExample example);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<CompanyExtend> selectByExample(CompanyExtendExample example);", "CompanyExtend selectByPrimaryKey(Long id);", "AlgOptTable extend( List<AlgDataTypeField> extendedFields );", "int insertSelective(CompanyExtend record);", "int insert(CompanyExtend record);", "public interface CfgSearchRecommendMapper ...
[ "0.6567628", "0.6211655", "0.5703487", "0.5592161", "0.5457045", "0.53800744", "0.53174245", "0.5268517", "0.5178383", "0.5156939", "0.5130991", "0.51291496", "0.51187176", "0.51088035", "0.50991493", "0.50501376", "0.50311154", "0.50210273", "0.49927703", "0.49754524", "0.49...
0.4668014
61
This method was generated by MyBatis Generator. This method corresponds to the database table t_company_extend
int updateByExample(@Param("record") CompanyExtend record, @Param("example") CompanyExtendExample example);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<CompanyExtend> selectByExample(CompanyExtendExample example);", "CompanyExtend selectByPrimaryKey(Long id);", "AlgOptTable extend( List<AlgDataTypeField> extendedFields );", "int insertSelective(CompanyExtend record);", "int insert(CompanyExtend record);", "public interface CfgSearchRecommendMapper ...
[ "0.6564736", "0.6208699", "0.5704298", "0.55881757", "0.54528415", "0.5385097", "0.53174573", "0.52648085", "0.51797265", "0.51567304", "0.51251864", "0.5125104", "0.51179093", "0.5103076", "0.50955194", "0.504843", "0.50348705", "0.50221294", "0.4987983", "0.4971478", "0.491...
0.46730086
60
This method was generated by MyBatis Generator. This method corresponds to the database table t_company_extend
int updateByPrimaryKeySelective(CompanyExtend record);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<CompanyExtend> selectByExample(CompanyExtendExample example);", "CompanyExtend selectByPrimaryKey(Long id);", "AlgOptTable extend( List<AlgDataTypeField> extendedFields );", "int insertSelective(CompanyExtend record);", "int insert(CompanyExtend record);", "public interface CfgSearchRecommendMapper ...
[ "0.6564772", "0.62087584", "0.5703857", "0.5589827", "0.5454497", "0.5381056", "0.5316506", "0.5265956", "0.5178196", "0.5156423", "0.5127404", "0.5117912", "0.51058275", "0.5097461", "0.5050076", "0.50322324", "0.50201535", "0.49911", "0.49728397", "0.49185732", "0.49029773"...
0.5126387
11
This method was generated by MyBatis Generator. This method corresponds to the database table t_company_extend
int updateByPrimaryKey(CompanyExtend record);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<CompanyExtend> selectByExample(CompanyExtendExample example);", "CompanyExtend selectByPrimaryKey(Long id);", "AlgOptTable extend( List<AlgDataTypeField> extendedFields );", "int insertSelective(CompanyExtend record);", "int insert(CompanyExtend record);", "public interface CfgSearchRecommendMapper ...
[ "0.65658146", "0.6210377", "0.57034844", "0.5591176", "0.5456137", "0.53824055", "0.5317299", "0.5177801", "0.51572734", "0.5130033", "0.5127629", "0.51185966", "0.5108329", "0.50965863", "0.5050043", "0.5033158", "0.5022075", "0.49917853", "0.4974307", "0.49215716", "0.49040...
0.5267165
7
TODO Autogenerated method stub
@Override public void saveAlbum(Album album) { _albumDao.saveAlbum(album); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void deleteAlbum(Long idAlbum) { _albumDao.deleteAlbum(idAlbum); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.66713095", "0.6567948", "0.652319", "0.648097", "0.64770466", "0.64586824", "0.64132667", "0.6376419", "0.62759", "0.62545097", "0.62371093", "0.62237984", "0.6201738", "0.619477", "0.619477", "0.61924416", "0.61872935", "0.6173417", "0.613289", "0.6127952", "0.6080854", ...
0.0
-1
TODO Autogenerated method stub
@Override public void updateAlbum(Album album) { _albumDao.updateAlbum(album); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public List<Album> findAllAlbums() { return _albumDao.findAllAlbums(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public Album findAlbumById(Long idAlbum) { return _albumDao.findAlbumById(idAlbum); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public Album findAlbumByName(String name) { return _albumDao.findAlbumByName(name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.66713095", "0.6567948", "0.652319", "0.648097", "0.64770466", "0.64586824", "0.64132667", "0.6376419", "0.62759", "0.62545097", "0.62371093", "0.62237984", "0.6201738", "0.619477", "0.619477", "0.61924416", "0.61872935", "0.6173417", "0.613289", "0.6127952", "0.6080854", ...
0.0
-1
TODO Autogenerated method stub
@Override public List<Album> findAlbumsByIdSinger(Long idSinger) { return _albumDao.findAlbumsByIdSinger(idSinger); }
{ "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
if not then null causes errors in parameter expansion
@Test public void shouldConvertFetchArtifactTaskAndSetEmptyStringWhenPipelineIsNotSpecified() { CRFetchArtifactTask crFetchArtifactTask = new CRFetchArtifactTask(CRRunIf.passed, null, null, "stage", "job", "src", null, false); FetchTask result = (FetchTask) configConverter.toAbstractTask(crFetchArtifactTask); assertThat(result.getConditions().first(), is(RunIfConfig.PASSED)); assertThat(result.getDest(),is("")); assertThat(result.getJob().toLower(), is("job")); assertThat(result.getPipelineName().toLower(), is("")); assertThat(result.getSrc(), is("src")); assertThat(result.isSourceAFile(), is(true)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testWithNullString() throws org.nfunk.jep.ParseException\n {\n String string = null;\n Stack<Object> parameters = CollectionsUtils.newParametersStack(string);\n function.run(parameters);\n assertEquals(TRUE, parameters.pop());\n }", "@Test\n public void...
[ "0.6515215", "0.6361833", "0.6015472", "0.5920761", "0.58382535", "0.5825788", "0.5800987", "0.5798481", "0.56916666", "0.5686696", "0.5679171", "0.5652326", "0.5599171", "0.55323505", "0.5531469", "0.5491003", "0.5427036", "0.53857565", "0.53613377", "0.5312854", "0.5308171"...
0.0
-1
this url would be configured inside xml configrepo section
@Test public void shouldConvertConfigMaterialWhenConfigRepoIsGitWithUrlOnly() { GitMaterialConfig configRepoMaterial = new GitMaterialConfig("url"); when(context.configMaterial()).thenReturn(configRepoMaterial); CRConfigMaterial crConfigMaterial = new CRConfigMaterial(); MaterialConfig materialConfig = configConverter.toMaterialConfig(crConfigMaterial,context); assertNull("shouldSetEmptyMaterialNameAsInConfigRepoSourceCode",materialConfig.getName()); GitMaterialConfig gitMaterialConfig = (GitMaterialConfig)materialConfig; assertThat(gitMaterialConfig.getAutoUpdate(), is(true)); assertThat(gitMaterialConfig.getUrl(), is("url")); assertNull(gitMaterialConfig.getFolder()); assertThat(gitMaterialConfig.getAutoUpdate(), is(true)); assertThat(gitMaterialConfig.isShallowClone(), is(false)); assertThat(gitMaterialConfig.filter(), is(new Filter())); assertThat(gitMaterialConfig.getUrl(), is("url")); assertThat(gitMaterialConfig.getBranch(), is("master")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String repoUrl();", "String getSourceRepoUrl();", "public GetRepositoryConfigurationMethod(String url) {\r\n super(url);\r\n setParameter(\"ctype\", \"rdf\");\r\n }", "public String getRepoURL() {\n return repoURL;\n }", "public GetRepositoryConfigurationMethod( String url, ProgressMon...
[ "0.68086845", "0.6698203", "0.6519137", "0.6136398", "0.61319786", "0.60957986", "0.60382533", "0.59778637", "0.5921813", "0.5918522", "0.5909791", "0.58666366", "0.5858357", "0.5852148", "0.5821189", "0.5816986", "0.5814225", "0.57918835", "0.5785687", "0.5744489", "0.572041...
0.0
-1
this url would be configured inside xml configrepo section
@Test public void shouldConvertConfigMaterialWhenConfigRepoIsGitWithBlacklist() { GitMaterialConfig configRepoMaterial = new GitMaterialConfig("url"); when(context.configMaterial()).thenReturn(configRepoMaterial); CRConfigMaterial crConfigMaterial = new CRConfigMaterial(); crConfigMaterial.setFilter(new CRFilter(filter,false)); MaterialConfig materialConfig = configConverter.toMaterialConfig(crConfigMaterial,context); assertNull("shouldSetEmptyMaterialNameAsInConfigRepoSourceCode",materialConfig.getName()); GitMaterialConfig gitMaterialConfig = (GitMaterialConfig)materialConfig; assertThat(gitMaterialConfig.getAutoUpdate(), is(true)); assertThat(gitMaterialConfig.getUrl(), is("url")); assertNull(gitMaterialConfig.getFolder()); assertThat(gitMaterialConfig.getAutoUpdate(), is(true)); assertThat(gitMaterialConfig.isShallowClone(), is(false)); Filter blacklistFilter = new Filter(new IgnoredFiles("filter")); assertThat(gitMaterialConfig.filter(), is(blacklistFilter)); assertThat(gitMaterialConfig.getUrl(), is("url")); assertThat(gitMaterialConfig.getBranch(), is("master")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String repoUrl();", "String getSourceRepoUrl();", "public GetRepositoryConfigurationMethod(String url) {\r\n super(url);\r\n setParameter(\"ctype\", \"rdf\");\r\n }", "public String getRepoURL() {\n return repoURL;\n }", "public GetRepositoryConfigurationMethod( String url, ProgressMon...
[ "0.68113536", "0.6700622", "0.6520394", "0.61389446", "0.61332315", "0.60963017", "0.60401404", "0.5980073", "0.5924383", "0.591873", "0.59115046", "0.5868392", "0.58602643", "0.5853014", "0.5821426", "0.5816487", "0.5814435", "0.57922876", "0.5785207", "0.5744592", "0.572220...
0.0
-1
this url would be configured inside xml configrepo section
@Test public void shouldConvertConfigMaterialWhenConfigRepoIsHgWithWhitelist() { HgMaterialConfig configRepoMaterial = new HgMaterialConfig("url","folder"); when(context.configMaterial()).thenReturn(configRepoMaterial); CRConfigMaterial crConfigMaterial = new CRConfigMaterial(null, null,new CRFilter(filter,true)); MaterialConfig materialConfig = configConverter.toMaterialConfig(crConfigMaterial,context); assertNull("shouldSetEmptyMaterialNameAsInConfigRepoSourceCode",materialConfig.getName()); HgMaterialConfig hgMaterialConfig = (HgMaterialConfig)materialConfig; assertThat(hgMaterialConfig.getAutoUpdate(), is(true)); assertThat(hgMaterialConfig.getFilterAsString(), is("filter")); assertThat(hgMaterialConfig.getUrl(), is("url")); Filter whitelistFilter = new Filter(new IgnoredFiles("filter")); assertThat(hgMaterialConfig.filter(), is(whitelistFilter)); assertThat(hgMaterialConfig.isInvertFilter(),is(true)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String repoUrl();", "String getSourceRepoUrl();", "public GetRepositoryConfigurationMethod(String url) {\r\n super(url);\r\n setParameter(\"ctype\", \"rdf\");\r\n }", "public String getRepoURL() {\n return repoURL;\n }", "public GetRepositoryConfigurationMethod( String url, ProgressMon...
[ "0.68094826", "0.66989106", "0.6519765", "0.61369807", "0.6132926", "0.60967386", "0.6038792", "0.5978912", "0.59225893", "0.5919165", "0.5909801", "0.5866363", "0.5859339", "0.5851867", "0.5821163", "0.5817452", "0.5814267", "0.5792525", "0.57859296", "0.57452154", "0.572164...
0.0
-1
this url would be configured inside xml configrepo section
@Test public void shouldConvertConfigMaterialWhenConfigRepoIsHgWithEmptyFilter() { HgMaterialConfig configRepoMaterial = new HgMaterialConfig("url","folder"); when(context.configMaterial()).thenReturn(configRepoMaterial); CRConfigMaterial crConfigMaterial = new CRConfigMaterial(null, null,new CRFilter(new ArrayList<>(),true)); MaterialConfig materialConfig = configConverter.toMaterialConfig(crConfigMaterial,context); assertNull("shouldSetEmptyMaterialNameAsInConfigRepoSourceCode",materialConfig.getName()); HgMaterialConfig hgMaterialConfig = (HgMaterialConfig)materialConfig; assertThat(hgMaterialConfig.getAutoUpdate(), is(true)); assertThat(hgMaterialConfig.getFilterAsString(), is("")); assertThat(hgMaterialConfig.getUrl(), is("url")); assertThat(hgMaterialConfig.filter(), is(new Filter())); assertThat(hgMaterialConfig.isInvertFilter(),is(false)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String repoUrl();", "String getSourceRepoUrl();", "public GetRepositoryConfigurationMethod(String url) {\r\n super(url);\r\n setParameter(\"ctype\", \"rdf\");\r\n }", "public String getRepoURL() {\n return repoURL;\n }", "public GetRepositoryConfigurationMethod( String url, ProgressMon...
[ "0.68086845", "0.6698203", "0.6519137", "0.6136398", "0.61319786", "0.60957986", "0.60382533", "0.59778637", "0.5921813", "0.5918522", "0.5909791", "0.58666366", "0.5858357", "0.5852148", "0.5821189", "0.5816986", "0.5814225", "0.57918835", "0.5785687", "0.5744489", "0.572041...
0.0
-1
these parameters would be configured inside xml configrepo section
@Test public void shouldConvertConfigMaterialWhenConfigRepoIsHg() { HgMaterialConfig configRepoMaterial = new HgMaterialConfig(new HgUrlArgument("url"),true,new Filter(new IgnoredFiles("ignore")),false,"folder",new CaseInsensitiveString("name")); when(context.configMaterial()).thenReturn(configRepoMaterial); CRConfigMaterial crConfigMaterial = new CRConfigMaterial("example", null,null); MaterialConfig materialConfig = configConverter.toMaterialConfig(crConfigMaterial,context); assertThat("shouldSetMaterialNameAsInConfigRepoSourceCode",materialConfig.getName().toLower(), is("example")); assertThat("shouldUseFolderFromXMLWhenConfigRepoHasNone",materialConfig.getFolder(), is("folder")); HgMaterialConfig hgMaterialConfig = (HgMaterialConfig)materialConfig; assertThat(hgMaterialConfig.getAutoUpdate(), is(true)); assertThat(hgMaterialConfig.getFilterAsString(), is("ignore")); assertThat(hgMaterialConfig.getUrl(), is("url")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Parameters getConfigParameters();", "private void config() {\n\t}", "public interface Config {\n public final String contentOfDocument=\"contentOfDoc\";\n public final String docId=\"docId\";\n public final String baseIp=\"http://irlab.daiict.ac.in/Annotation_Interface\";\n public final Stri...
[ "0.61415625", "0.60040843", "0.6003453", "0.59341073", "0.5826934", "0.5815342", "0.5772374", "0.57127845", "0.5703441", "0.56933546", "0.5683442", "0.56436485", "0.56213903", "0.5617192", "0.5615138", "0.5614328", "0.5612588", "0.5604257", "0.5598646", "0.559611", "0.5567890...
0.0
-1
these parameters would be configured inside xml configrepo section
@Test public void shouldConvertConfigMaterialWhenConfigRepoIsHgWithDestination() { HgMaterialConfig configRepoMaterial = new HgMaterialConfig(new HgUrlArgument("url"),true,new Filter(new IgnoredFiles("ignore")),false,"folder",new CaseInsensitiveString("name")); when(context.configMaterial()).thenReturn(configRepoMaterial); CRConfigMaterial crConfigMaterial = new CRConfigMaterial("example", "dest1",null); MaterialConfig materialConfig = configConverter.toMaterialConfig(crConfigMaterial,context); assertThat("shouldSetMaterialNameAsInConfigRepoSourceCode",materialConfig.getName().toLower(), is("example")); assertThat("shouldUseFolderFromConfigRepoWhenSpecified",materialConfig.getFolder(), is("dest1")); HgMaterialConfig hgMaterialConfig = (HgMaterialConfig)materialConfig; assertThat(hgMaterialConfig.getAutoUpdate(), is(true)); assertThat(hgMaterialConfig.getFilterAsString(), is("ignore")); assertThat(hgMaterialConfig.getUrl(), is("url")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Parameters getConfigParameters();", "public interface Config {\n public final String contentOfDocument=\"contentOfDoc\";\n public final String docId=\"docId\";\n public final String baseIp=\"http://irlab.daiict.ac.in/Annotation_Interface\";\n public final String sentenceFolder=\"sentences\";\n...
[ "0.6139816", "0.6003514", "0.60030216", "0.5933628", "0.5825662", "0.5813527", "0.57721686", "0.5712784", "0.57019484", "0.5693516", "0.5683056", "0.56420326", "0.5620283", "0.5617552", "0.561511", "0.5613223", "0.5613216", "0.5602779", "0.55976534", "0.5595554", "0.5567763",...
0.0
-1
TODO Autogenerated method stub
public boolean containFunction(String name) { if (!global.containFunction(name)) { return this.fnMap.containsKey(name); } else { return true; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
Spring Data repository for the EMContract entity.
@SuppressWarnings("unused") @Repository public interface EMContractRepository extends JpaRepository<EMContract, UUID>,EMContractRepositoryCustom { /** * add by namnh * * @return */ @Override List<EMContract> findAll(); List<EMContract> findAllByIsActiveTrue(); @Query(value = "select id from EMContract where UPPER(NoFBook) = UPPER (?1) and CompanyID = ?2 and isActive = 1", nativeQuery = true) UUID findIdByNoFBook(String expenseItemCode, UUID companyId); @Query(value = "select id from EMContract where UPPER(NoMBook) = UPPER (?1) and CompanyID = ?2 and isActive = 1", nativeQuery = true) UUID findIdByNoMBook(String expenseItemCode, UUID companyId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface CurrencyRepository extends JpaRepository<Currency, Long> {\n\n}", "public interface BlockRepository\n// extends JpaRepository<Block, String>\n{\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface ContractDocumentEntryRowRepository extends JpaRepository<ContractDocumentEnt...
[ "0.636991", "0.6321485", "0.6279215", "0.6228132", "0.6227191", "0.6169951", "0.61573416", "0.6150689", "0.6116238", "0.61140245", "0.6112087", "0.60989213", "0.6092023", "0.60844606", "0.60396427", "0.60391206", "0.6038523", "0.6025325", "0.5985849", "0.5979311", "0.5957992"...
0.6756767
0
TODO Autogenerated method stub
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
@Override public void remove() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.66713095", "0.6567948", "0.652319", "0.648097", "0.64770466", "0.64586824", "0.64132667", "0.6376419", "0.62759", "0.62545097", "0.62371093", "0.62237984", "0.6201738", "0.619477", "0.619477", "0.61924416", "0.61872935", "0.6173417", "0.613289", "0.6127952", "0.6080854", ...
0.0
-1
Computes the smallest element's index in an array
public static int indexOfSmallestElement(int[] array) { int min = array[0]; int minIndex = 0; for (int i = 0; i < array.length; i++) { if (array[i] < min) { min = array[i]; minIndex = i; } } return minIndex; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int min() {\n\t\t// added my sort method in the beginning to sort our array\n\t\tint n = array.length;\n\t\tint temp = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 1; j < (n - i); j++) {\n\t\t\t\tif (array[j - 1] > array[j]) {\n\t\t\t\t\ttemp = array[j - 1];\n\t\t\t\t\tarray[j - 1] = array[j];\n\t\t\t...
[ "0.7860946", "0.77267355", "0.7692983", "0.7674385", "0.75087744", "0.7499178", "0.7474792", "0.7409179", "0.7391799", "0.7358372", "0.7353492", "0.73306364", "0.7316421", "0.730913", "0.7281777", "0.7248433", "0.7238722", "0.72216547", "0.71759695", "0.71581125", "0.7107646"...
0.8140018
0
This method builds SL objects from the JSON array received, updates the database and pass it up to the POI manager when needed
@Override protected void processServerResponse(JSONArray jsArray) throws Exception { List<GpsConfig> list = dtoParser.parseGpsConfigs(jsArray); for (GpsConfig config : list) { gpsConfigDao.insertOrReplace(config); onUpdate(config); // Check if this is the config assigned to our tablet... } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void insertSportDataFromJson(String scoreJsonStr) throws JSONException {\n\n // These are the names of the JSON objects that need to be extracted.\n\n final String EVENT_DATE = \"events_date\";\n\n final String OSB_AWAY_TEAM = \"away_team\";\n\n final String OSB_HOME_TEAM = \"ho...
[ "0.601515", "0.58216166", "0.55692726", "0.5518209", "0.54560363", "0.53010136", "0.5287319", "0.52747285", "0.5272001", "0.52718806", "0.52351344", "0.5216714", "0.5173579", "0.5172683", "0.5146193", "0.5138967", "0.5136308", "0.5118106", "0.508913", "0.50734776", "0.5059719...
0.0
-1
TODO Autogenerated method stub
@Override public void actionPerformed(ActionEvent arg0) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
Instantiates a new Entry button list.
public EntryButtonList(int x, int y, int width, int height, int columnCount) { this(x, y, width, height, columnCount, true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public AddList() {\n setTitleText(\"Add new List\");\n addButton = new JButton(\"Add\");\n addButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent actionEvent) {\n addButtonActionPerfo...
[ "0.65312064", "0.64094883", "0.6295078", "0.62529564", "0.6111988", "0.6077614", "0.60626143", "0.6050178", "0.6028866", "0.59626037", "0.59581286", "0.5920433", "0.58419144", "0.5803994", "0.57594234", "0.5657256", "0.56522036", "0.5632796", "0.56159496", "0.55996895", "0.55...
0.6807565
0
Instantiates a new Entry button list.
public EntryButtonList(int x, int y, int width, int height, int columnCount, boolean background) { super(x, y, width, height); this.background = background; this.columnCount = columnCount; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public EntryButtonList(int x, int y, int width, int height, int columnCount) {\n this(x, y, width, height, columnCount, true);\n }", "public AddList() {\n setTitleText(\"Add new List\");\n addButton = new JButton(\"Add\");\n addButton.addActionListener(new ActionListene...
[ "0.6806968", "0.6529434", "0.64099836", "0.62952864", "0.61117744", "0.60762787", "0.60620564", "0.60503906", "0.6028487", "0.596097", "0.5958532", "0.59202653", "0.58413494", "0.58041716", "0.57592714", "0.56564283", "0.5650231", "0.5631036", "0.5615486", "0.56001747", "0.55...
0.62532276
4
thirdOrderPolynomial(); whileAverage(); whileGrades(); // XXX whileHistogram(); whileLargestSmallest(); whileSales(); whileSquares();
public static void main(String[] args) { whileAverageSentinel(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static void thirdOrderPolynomial() {\n\t\tScanner sc = new Scanner(System.in);\r\n\r\n\t\tSystem.out.print(\"Enter coefficient a : \");\r\n\t\tdouble a = sc.nextDouble();\r\n\t\tSystem.out.print(\"Enter coefficient b : \");\r\n\t\tdouble b = sc.nextDouble();\r\n\t\tSystem.out.print(\"Enter coefficient c : \");\r\n...
[ "0.6102923", "0.5484197", "0.53478897", "0.5196089", "0.51753527", "0.5144559", "0.5125322", "0.5105863", "0.5101376", "0.5081424", "0.507695", "0.50593686", "0.5004389", "0.49904707", "0.4980084", "0.49657914", "0.49632108", "0.49452516", "0.49382412", "0.49301678", "0.49230...
0.0
-1
fx = ax3 + bx2 + cx + d
static void thirdOrderPolynomial() { Scanner sc = new Scanner(System.in); System.out.print("Enter coefficient a : "); double a = sc.nextDouble(); System.out.print("Enter coefficient b : "); double b = sc.nextDouble(); System.out.print("Enter coefficient c : "); double c = sc.nextDouble(); System.out.print("Enter coefficient d : "); double d = sc.nextDouble(); char exit = 'y'; while (exit != 'n') { System.out.print("Enter the value for x: "); double x = sc.nextDouble(); // double polynomial = (a * (x * x * x)) + (b * (x * x)) + (c * x) + d; double polynomial = (a * Math.pow(x, 3)) + (b * Math.pow(x, 2)) + (c * x) + d; System.out.println("The value of the polynomial at 1.0 is " + polynomial); System.out.print("Do you wish to continue (y/n); --> "); exit = sc.next().charAt(0); } sc.close(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public float getX2() {\r\n return (c + 2*b + 3*a)/3;\r\n }", "public float getX1() {\r\n return (b + 3*a)/3;\r\n }", "protected void o()\r\n/* 156: */ {\r\n/* 157:179 */ int i = 15 - aib.b(this);\r\n/* 158:180 */ float f = 0.98F + i * 0.001F;\r\n/* 159: */ \r\n/* 160:182 */ ...
[ "0.6269283", "0.60995495", "0.6019331", "0.58259183", "0.5798193", "0.5764198", "0.57288224", "0.5706156", "0.5696814", "0.5660005", "0.5655416", "0.56497693", "0.557664", "0.556384", "0.5523218", "0.5472939", "0.5418108", "0.54172015", "0.54170746", "0.5404738", "0.53379947"...
0.0
-1
Creates new object from type Monkey. Returns the Monkey Object.
@Override public Animal createAnimal() { return new Monkey(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Type createType();", "Type createType();", "Type createType();", "OBJECT createOBJECT();", "private Object createInstance() throws InstantiationException, IllegalAccessException {\n\t\treturn classType.newInstance();\n\t}", "Instance createInstance();", "RentalObject createRentalObject();", "WallType...
[ "0.5770363", "0.5770363", "0.5770363", "0.555198", "0.5519227", "0.5397833", "0.53900355", "0.5361879", "0.5325931", "0.5325931", "0.53082216", "0.53059626", "0.52963126", "0.526993", "0.5263586", "0.5261867", "0.5240632", "0.52361417", "0.5236002", "0.5214132", "0.5205661", ...
0.62160146
0
Complete the countApplesAndOranges function below.
static void countApplesAndOranges(int s, int t, int a, int b, int[] apples, int[] oranges) { System.out.println(count(a, apples, s, t)); System.out.println(count(b, oranges, s, t)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static void countApplesAndOranges(int s, int t, int a, int b, int[] apples, int[] oranges) {\n int ret_apples = 0;\n int ret_oranges = 0;\n for(int i = 0; i < apples.length; i++) {\n if (apples[i] + a >= s && apples[i] + a <= t) {\n ret_apples++;\n }\n ...
[ "0.7302044", "0.7224516", "0.6912254", "0.6825645", "0.60144526", "0.60144526", "0.60144526", "0.60144526", "0.60144526", "0.60144526", "0.60144526", "0.60144526", "0.60144526", "0.60144526", "0.60144526", "0.59793746", "0.58763987", "0.5856404", "0.5812095", "0.5704917", "0....
0.7451312
0
Zero arg constructor needed for Json stuff to work.
public FilesystemEntryBean(String artist, String album, String song){ this.artist = artist; this.album = album; this.song = song; isSong = (song != null && !song.trim().isEmpty()); isAlbum = !isSong && (album != null && !album.trim().isEmpty()); isArtist = !isSong && !isAlbum && (artist != null && !artist.trim().isEmpty()); if (isArtist) { playActionUrl = null; listActionUrl = LIST_BASE_URL + "/" + artist; name = artist; } if (isAlbum) { playActionUrl = PLAY_BASE_URL + "/" + artist + "/" + album; listActionUrl = LIST_BASE_URL + "/" +artist + "/" + album; name = album; } if (isSong) { playActionUrl = PLAY_BASE_URL + "/" + artist + "/" + album + "/" + song; listActionUrl = null; name = song; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JsonFactory() { this(null); }", "private JSONHelper() {\r\n\t\tsuper();\r\n\t}", "public JSONUtils() {\n\t\tsuper();\n\t}", "private JsonUtils() {\n\t\tsuper();\n\t}", "public JSONBuilder() {\n\t\tthis(null, null);\n\t}", "public ClaseJson() {\n }", "private JsonUtils()\r\n {\r\n //...
[ "0.82912904", "0.80040985", "0.7760003", "0.7703908", "0.7673408", "0.7652665", "0.7644309", "0.76263535", "0.75467074", "0.7499772", "0.74606746", "0.74567395", "0.741179", "0.7410842", "0.7320797", "0.72325", "0.7130122", "0.7124922", "0.7056592", "0.6984868", "0.69454056",...
0.0
-1
Keszulek vissza gombjanak megnyomasakor...
@Override public void onBackPressed() { if (isMapDisplayed) { isMapDisplayed=false; switcher.showPrevious(); } else super.onBackPressed(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract String dohvatiKontakt();", "public void eisagwgiFarmakou() {\n\t\t// Elegxw o arithmos twn farmakwn na mhn ypervei ton megisto dynato\n\t\tif(numOfMedicine < 100)\n\t\t{\n\t\t\tSystem.out.println();\t\n\t\t\tmedicine[numOfMedicine] = new Farmako();\t\n\t\t\tmedicine[numOfMedicine].setCode(rnd.nex...
[ "0.6982906", "0.66085684", "0.659028", "0.6568114", "0.6544219", "0.65393466", "0.65357876", "0.65254503", "0.6470927", "0.6372933", "0.63529193", "0.63125235", "0.6249376", "0.62490535", "0.6243398", "0.6215051", "0.6210865", "0.61939603", "0.61870754", "0.6158517", "0.61531...
0.0
-1
Indulaskor a lista lekerdezese
@Override public void onStart() { super.onStart(); if (UserInfo.isOffline()) offlineLoad(); else { getData(); getComments(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic ArrayList<Lista> listaListeElettorali() {\n\t\t\t\n\t\t\t\n\t\t\tDB db = getDB();\n\t\t\tMap<Integer, Lista> map = db.getTreeMap(\"liste\");\n\t\t\tArrayList<Lista> liste = new ArrayList<Lista>();\n\t\t\tSet<Integer> keys = map.keySet();\n\t\t\tfor (int key : keys) {\n\t\t\t\tliste.add(map.get(...
[ "0.73231083", "0.7093042", "0.705886", "0.7026064", "0.6855679", "0.683093", "0.6777643", "0.6750036", "0.6741051", "0.6700474", "0.66766924", "0.6675001", "0.66623944", "0.66256994", "0.66212237", "0.6598159", "0.6591043", "0.6574374", "0.65374696", "0.65083927", "0.64887977...
0.0
-1
Megszakitaskor a futo szalak leallitasa
@Override public void onPause() { super.onPause(); if (download!=null && download.isUsed()) { download.setNotUsed(); setProgressBarIndeterminateVisibility(false); } if (downloadComments!=null && downloadComments.isUsed()) { downloadComments.setNotUsed(); setProgressBarIndeterminateVisibility(false); } if (downloadUserImage!=null && downloadUserImage.isUsed()) { downloadUserImage.setNotUsed(); setProgressBarIndeterminateVisibility(false); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void eisagwgiFarmakou() {\n\t\t// Elegxw o arithmos twn farmakwn na mhn ypervei ton megisto dynato\n\t\tif(numOfMedicine < 100)\n\t\t{\n\t\t\tSystem.out.println();\t\n\t\t\tmedicine[numOfMedicine] = new Farmako();\t\n\t\t\tmedicine[numOfMedicine].setCode(rnd.nextInt(1000000)); // To sistima dinei automata t...
[ "0.6761232", "0.6637097", "0.65607756", "0.6370396", "0.63674575", "0.63355976", "0.6265681", "0.62319416", "0.6208264", "0.6190592", "0.6162598", "0.6134233", "0.61320484", "0.61230016", "0.6115874", "0.60970855", "0.6088863", "0.6087944", "0.6076357", "0.6049164", "0.604201...
0.0
-1
Korhaz adatainak lekeresenek kezdemenyezese
private void getData(){ setProgressBarIndeterminateVisibility(true); String url = "HospitalInfo?hospital=" + URLEncoder.encode(hospital) + "&ssid=" + UserInfo.getSSID(); download = new HttpGetJSONConnection(url, mHandler, TASK_GETDATA); download.start(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void tampilKarakterA(){\r\n System.out.println(\"Saya mempunyai kaki empat \");\r\n }", "public abstract String dohvatiKontakt();", "@Override\n\tpublic String dohvatiKontakt() {\n\t\treturn \"Naziv tvrtke: \" + naziv + \", mail: \" + getEmail() + \", tel: \" + getTelefon() + \", web: \" + web;\...
[ "0.5904824", "0.5900379", "0.58917284", "0.5890234", "0.5853532", "0.5700082", "0.56475055", "0.56134653", "0.5585933", "0.55839145", "0.5576442", "0.55608106", "0.5519665", "0.5519616", "0.5515856", "0.55145967", "0.5498618", "0.549545", "0.5493995", "0.547215", "0.5470889",...
0.0
-1
Kommentelo felhasznalo profilkepenek letoltesenek kezdemenyezese
private void getUserImage(){ //setProgressBarIndeterminateVisibility(true); username=null; for(int i=0; i<senderList.size(); i++) { // kovetkezo felhasznalo kepe String str=senderList.get(i); if (!userImage.containsKey(str)) { username=str; break; } } if (username==null) return; String url = "ImageDownload?size=medium&username=" + username + "&ssid=" + UserInfo.getSSID(); downloadUserImage = new HttpGetByteConnection(url, mHandler, TASK_GETUSERIMAGE); downloadUserImage.start(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void remplirUtiliseData() {\n\t}", "public List<UserProfile> getProfiliGestiti() {\r\n\t\tList<UserProfile> profili = getProfili();\r\n\t\t// siccome tiro su i profili ordinati per id,\r\n\t\t// so per certo che il primo � l'amministratore\r\n\t\t//profili.remove(0);\r\n\t\treturn profili;\r\n\t}", "@O...
[ "0.61805993", "0.6158821", "0.61264086", "0.605419", "0.60091114", "0.59938616", "0.5977754", "0.59446776", "0.5829613", "0.5820751", "0.58051765", "0.58032596", "0.5794114", "0.5765829", "0.5747047", "0.5742841", "0.5739165", "0.5713416", "0.56829137", "0.5674404", "0.566641...
0.0
-1
creates a new DataOrdering system based on the given params
public void create(String indexerName, String workingDir, String namingPrefix, int recordPerFile, int recordByteSize) throws DataOrderingException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static public org.apache.spark.sql.catalyst.expressions.codegen.BaseOrdering create (org.apache.spark.sql.types.StructType schema) { throw new RuntimeException(); }", "SortOperator(String databaseDir, HashMap<String,String[]> schema, String fromTableName, String[] joinTableNames, String[] columnsInfo, Expressi...
[ "0.5838168", "0.56569475", "0.5452503", "0.5439976", "0.54245293", "0.5341218", "0.5337931", "0.5318947", "0.52219653", "0.51575804", "0.5113265", "0.5090995", "0.5074518", "0.5055436", "0.50324976", "0.5013656", "0.50088185", "0.5002218", "0.49664372", "0.49509737", "0.49285...
0.4769093
30
initiates the start up of the system of files based on the information with the master file
public void init(String master) throws DataOrderingException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void start() {\n\t\tstartFilesConfig(true);\n\t\tstartSpamFilterTest(false);\n\t}", "public void start() {\n\n String pathFile = mainMenu.menuTakePathFile();\n int countThreads = mainMenu.menuCountThreads();\n int downloadSpeed = mainMenu.menuDownloadSpeed();\n String folderFor...
[ "0.63282686", "0.6273875", "0.62709814", "0.62451255", "0.6230164", "0.62247276", "0.6188363", "0.61875063", "0.60714906", "0.60698986", "0.605218", "0.604907", "0.6017529", "0.6015849", "0.59819245", "0.59812087", "0.59693974", "0.59636027", "0.5946817", "0.5942105", "0.5921...
0.0
-1
closes all the files and threads with this object
public void close() throws DataOrderingException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void closeAll() {\n try {\n outputFileBuffer.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n Encog.getInstance().shutdown();\n }", "public synchronized void close() {\n \t\trecallThreads();\n \n \t\tsetSize(0, 0);\n \t\t/* Noti...
[ "0.7351976", "0.7203957", "0.71690387", "0.7141766", "0.6962385", "0.6898092", "0.68289113", "0.66329175", "0.6596988", "0.6484008", "0.64011407", "0.64011407", "0.64011407", "0.64011407", "0.64011407", "0.64011407", "0.64011407", "0.64011407", "0.64011407", "0.64011407", "0....
0.0
-1
closes any files that are not in use
public void ensureOpenFiles() throws DataOrderingException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void closeFiles() {\n try {\n inputFile.close();\n debugFile.close();\n reportFile.close();\n workFile.close();\n stnFile.close();\n } catch(Exception e) {}\n }", "public void shutdown() {\n\t\tint i = 0;\n\t\twhile (i < openFiles.size()) {\...
[ "0.7329072", "0.72275573", "0.68761945", "0.6740495", "0.6647573", "0.6622281", "0.659679", "0.6530684", "0.6489032", "0.63843226", "0.63829243", "0.6349375", "0.6335607", "0.6302712", "0.6302712", "0.6302712", "0.6302712", "0.6302712", "0.6302712", "0.6302712", "0.6302712", ...
0.0
-1
this just does a simple read from the given location
public ByteBuffer read(int location) throws DataOrderingException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void readLOC() throws java.io.IOException {\n byte locbuf[] = new byte[LOCHDR];\n ZipFile zf = this.zf;\n ZipEntry ze = this.ze;\n long offset = ze.getOffset();\n if (TRACE)\n System.out.println(this +\": reading LOC, offset=\" + offset)...
[ "0.6198718", "0.61419797", "0.6127537", "0.6127537", "0.60145557", "0.6007338", "0.58922917", "0.58856434", "0.5882702", "0.5860237", "0.58433867", "0.58242434", "0.58051765", "0.5797359", "0.5794284", "0.5770537", "0.57583743", "0.57091826", "0.57013834", "0.5635116", "0.562...
0.54889435
31
write data starting, based on records, from location
public void write(int location, ByteBuffer data) throws DataOrderingException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void writeRecords(Collection<Record> values)\n throws IOException {\n for (Record record : values) {\n writer2.writeRecord(record.makeup());\n // over write, update writer\n // System.out.println(lineNum);\n if (++lineNum > Merge.lineNumb...
[ "0.58394104", "0.58115274", "0.5660972", "0.5645661", "0.55332327", "0.5393955", "0.5334811", "0.5331523", "0.53272516", "0.53046966", "0.52918774", "0.52731144", "0.5235268", "0.52328247", "0.5182201", "0.51776326", "0.5175303", "0.51598", "0.51499003", "0.51470536", "0.5116...
0.5350849
6
locks a section for complex operations.
public DataLock lockSection(int start, int amount) throws DataOrderingException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void lock();", "public void lock() {\n\n }", "public void lock(int key);", "void m2() {\n\n boolean locked = false;\n try {\n locked = lock.tryLock(4, TimeUnit.SECONDS);\n\n //可以设置lock为可打断的\n //可以在主线程中调用interrupt方法打断,然后当做异常处理\n// lock.lockInterrupt...
[ "0.65377545", "0.64756423", "0.62777185", "0.60986114", "0.6078208", "0.60758436", "0.6071544", "0.6018831", "0.6018831", "0.6018831", "0.59650564", "0.58453935", "0.57968575", "0.57701033", "0.57603276", "0.5749766", "0.572722", "0.57187504", "0.5709366", "0.5686988", "0.564...
0.6089169
4
signals the DataOrdering system that this location can be overridden
public void release(int location) throws DataOrderingException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void placeOrder() {\n\t\t\n\t}", "protected void fireSortOrderChanged() {\n fireRowSorterChanged(new RowSorterEvent(this));\n }", "void changeOrder(GeometricalObject object, int offset);", "void changeOrder(GeometricalObject object, int offset);", "public void changeOrder(Geom...
[ "0.5701177", "0.5619716", "0.55875844", "0.55875844", "0.5532783", "0.55263", "0.550844", "0.5498722", "0.54907966", "0.5485384", "0.5446383", "0.5446383", "0.54455996", "0.5422711", "0.54074347", "0.5376744", "0.53675556", "0.53585523", "0.53446764", "0.5309987", "0.5292382"...
0.5160663
38
Launch selection and set right cursor.
private void launchLink(List<Track> tracks) { List<org.jajuk.base.File> toPlay = new ArrayList<org.jajuk.base.File>(1); for (Track track : tracks) { File file = track.getBestFile(true); if (file != null) { toPlay.add(file); } } text.setCursor(UtilGUI.WAIT_CURSOR); QueueModel.push( UtilFeatures.createStackItems(UtilFeatures.applyPlayOption(toPlay), Conf.getBoolean(Const.CONF_STATE_REPEAT), true), Conf.getBoolean(Const.CONF_OPTIONS_PUSH_ON_CLICK)); // Change icon cursor and wait a while so user can see it in case // the PUSH_ON_CLICK option is set, otherwise, user may think // nothing appened. try { Thread.sleep(250); } catch (InterruptedException e1) { Log.error(e1); } text.setCursor(UtilGUI.LINK_CURSOR); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void moveCursorRight();", "public void setCursor(int renglon){\n panel.setCaretPosition(renglon);\n }", "private void updateCursor() {\n if ((! editor.isCursorSet())\n || editor.getCursor() instanceof UIResource) {\n Cursor cursor = (editor.isEditable()) ? text...
[ "0.686976", "0.67056143", "0.66658723", "0.66012275", "0.6556733", "0.6540048", "0.648425", "0.64368004", "0.63909566", "0.6336855", "0.631633", "0.6248173", "0.62109506", "0.6199429", "0.6169201", "0.6045084", "0.603676", "0.6000025", "0.59935665", "0.5980995", "0.59799284",...
0.0
-1
Test if mouse is really outside the popup, for unknown reason, this event is catch when entering the popup (Windows)
@Override public void mouseExited(MouseEvent e) { if (!jspText.contains(e.getPoint())) { dispose(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void popupMenuWillBecomeInvisible(PopupMenuEvent e) {\n \t\t\t\t\n \t\t\t}", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\tif(e.isPopupTrigger())\n\t\t\t\t{\n\t\t\t\t\tpopup.show(e.getComponent(), e.getX(), e.getY());\n\t\t\t\t}\n\t\t\t}", "public void mouseReleased(MouseEvent e) ...
[ "0.6583736", "0.6358208", "0.6330889", "0.62332344", "0.6222224", "0.6207183", "0.61794615", "0.61757356", "0.61756545", "0.61510456", "0.614398", "0.61430144", "0.6128343", "0.61208177", "0.6088602", "0.6048465", "0.60457045", "0.604553", "0.60353786", "0.60223305", "0.60173...
0.0
-1
Add keystroke to dispose the popup when escape is pressed For unknown reasons, registerKeyboardAction() against JWindow doesn't work (it does for JFrame) but we need to use JWindow for performance reasons. for that reason, we add a keyboard focus manager which is called before any focus consideration Note that for a JFrame, we would use rootPane.registerKeyboardAction(actionListener, stroke, JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT);
private void setKeystrokes() { removeKeystrokes(); dispatcher = new KeyEventDispatcher() { @Override public boolean dispatchKeyEvent(KeyEvent e) { dispose(); return false; } }; KeyboardFocusManager.getCurrentKeyboardFocusManager().addKeyEventDispatcher(dispatcher); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tprotected JRootPane createRootPane() {\r\n\t JRootPane rootPane = new JRootPane();\r\n\t KeyStroke stroke = KeyStroke.getKeyStroke(\"ESCAPE\");\r\n\t Action actionListener = new AbstractAction() {\r\n\t \tprivate static final long serialVersionUID = -8158364198124217519L;\r\n\t\t\tpublic...
[ "0.7022584", "0.6749457", "0.6378893", "0.62186235", "0.6062703", "0.6042263", "0.5977783", "0.5888373", "0.58661973", "0.58466923", "0.5780512", "0.5775679", "0.5687615", "0.5682742", "0.5638337", "0.5574761", "0.5545004", "0.5515241", "0.54744226", "0.5457123", "0.5398824",...
0.5687655
12
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 Students)) { return false; } Students other = (Students) object; if ((this.studentId == null && other.studentId != null) || (this.studentId != null && !this.studentId.equals(other.studentId))) { return false; } return true; }
{ "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.6893787", "0.68366045", "0.67026585", "0.66388494", "0.66388494", "0.6589572", "0.65758747", "0.65758747", "0.6572052", "0.6572052", "0.6572052", "0.6572052", "0.6572052", "0.6572052", "0.6559372", "0.6559372", "0.65421206", "0.65220076", "0.65133774", "0.64854103", "0.647...
0.0
-1
use "javaClass" instead of "_class"
@Override public String typeKey() { return "class"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Object getClass_();", "Object getClass_();", "public Class getJavaClass() {\n return _class;\n }", "java.lang.String getClass_();", "java.lang.String getClass_();", "@Override\r\n\tpublic void visitJavaClass(JavaClass javaClass) {\n\t\t\r\n\t\t\r\n\t\tvisitClassName=javaClass.getClassName();\r\...
[ "0.71193975", "0.71193975", "0.67431074", "0.67380685", "0.67380685", "0.6551214", "0.6350887", "0.6309302", "0.6282657", "0.624027", "0.6199495", "0.6173058", "0.615955", "0.6150546", "0.61437833", "0.6142613", "0.61144686", "0.60986495", "0.6085446", "0.6043051", "0.6026923...
0.6558923
5
Reveal around the player
private void revealAround() { if (xTile - 1 >= 0 && !References.GetMainTileActorMap()[xTile - 1][yTile].isRevealed()) { References.GetMainTileActorMap()[xTile - 1][yTile].setRevealed(true); if (References.GetMainTileActorMap()[xTile - 1][yTile].itContainsMonster()) { References.GetMonsterActorMap()[xTile - 1][yTile].setRevealed(true); } } if (yTile - 1 >= 0 && !References.GetMainTileActorMap()[xTile][yTile - 1].isRevealed()) { References.GetMainTileActorMap()[xTile][yTile - 1].setRevealed(true); if (References.GetMainTileActorMap()[xTile][yTile - 1].itContainsMonster()) { References.GetMonsterActorMap()[xTile][yTile - 1].setRevealed(true); } } if (xTile + 1 < Parameters.NUM_X_TILES && !References.GetMainTileActorMap()[xTile + 1][yTile].isRevealed()) { References.GetMainTileActorMap()[xTile + 1][yTile].setRevealed(true); if (References.GetMainTileActorMap()[xTile + 1][yTile].itContainsMonster()) { References.GetMonsterActorMap()[xTile + 1][yTile].setRevealed(true); } } if (yTile + 1 < Parameters.NUM_Y_TILES && !References.GetMainTileActorMap()[xTile][yTile + 1].isRevealed()) { References.GetMainTileActorMap()[xTile][yTile + 1].setRevealed(true); if (References.GetMainTileActorMap()[xTile][yTile + 1].itContainsMonster()) { References.GetMonsterActorMap()[xTile][yTile + 1].setRevealed(true); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void reveal() {\n revealed = true;\n }", "public void show() {\n isVisible = true;\n this.saveBorderColor(playerColor);\n this.setBorderColor(playerColor);\n }", "@Override\n public void makeVisible(Player viewer) {\n \n }", "void enterReveal() {\n ...
[ "0.67321765", "0.6392026", "0.6389065", "0.623443", "0.61804056", "0.6173442", "0.6027407", "0.6008102", "0.6006586", "0.5971444", "0.5959886", "0.5941242", "0.59306973", "0.59174645", "0.5912535", "0.5902642", "0.58865535", "0.58774906", "0.58713925", "0.5847411", "0.5831315...
0.6042366
6
Created by CodeGenerator on 2020/03/11.
public interface PaTaskItemPointViewService extends Service<PaTaskItemPointView> { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n public void perish() {\n \n }", "public final void mo51373a() {\n }", "@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 public int describeContents() { return 0; }", "@Ov...
[ "0.6062442", "0.5944456", "0.583215", "0.578504", "0.578504", "0.57744676", "0.57697755", "0.57624316", "0.57457733", "0.56775403", "0.55922586", "0.5585189", "0.5584143", "0.5575585", "0.5575585", "0.5575585", "0.5575585", "0.5575585", "0.5575585", "0.5557087", "0.5548292", ...
0.0
-1
Pas besoin dans notre cas
@Override public void closeAdapter() throws Exception { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void nonRedefinissableParEnfant(){\n\n }", "public void carroNoAgregado(){\n System.out.println(\"No hay un parqueo para su automovil\");\n }", "@Override\n\tpublic boolean paie() {\n\t\treturn false;\n\t}", "protected boolean colaVacia() {\r\n return ini == -1;\r\n }", ...
[ "0.6504363", "0.63951355", "0.6364115", "0.6293675", "0.62928385", "0.62463725", "0.6224115", "0.6192013", "0.6140525", "0.6129882", "0.6101445", "0.60932094", "0.60861486", "0.60695034", "0.60340184", "0.60243595", "0.6019516", "0.6015534", "0.601075", "0.59992325", "0.59922...
0.0
-1
Called just before this Command runs the first time
protected void initialize() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void preRun() {\n super.preRun();\n }", "protected void preRun() {\r\n\t\tthis.preparePairs();\r\n\t}", "@Override\n public void beforeFirstLogic() {\n }", "public void prePerform() {\n // nothing to do by default\n }", "protected void onFirstUse() {}", "@O...
[ "0.71141046", "0.65417874", "0.64346606", "0.6433382", "0.64095587", "0.63556767", "0.6310472", "0.62535733", "0.62493765", "0.62412536", "0.61677074", "0.61655974", "0.61293805", "0.61293805", "0.61293805", "0.61293805", "0.61293805", "0.61094403", "0.60869855", "0.60869855", ...
0.0
-1
Called repeatedly when this Command is scheduled to run
protected void execute() { if (machineState != 5) { shootAtBeginAutonomous(); } else if (machineState == 5) { if (!lineFound()) { initalizeFeederAndShooter(); Robot.chassis.driveMecanumNormalized(-0.5, 0, 0); } else { driveOnLine(); shootOnce(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tvoid runCommand() {\n\t\t\ttrigger.execute();\n\t\t}", "@Override\n public void run() {\n schedule();\n }", "@Override\n public void autonomousPeriodic() {\n \n Scheduler.getInstance().run();\n \n }", "public void run() {\n\t\texecuteCommand( client, false );\n\t}", "...
[ "0.6689458", "0.6631115", "0.6566414", "0.65512514", "0.6530515", "0.6488629", "0.64019585", "0.6380878", "0.637645", "0.6363615", "0.63557744", "0.6330997", "0.6295938", "0.6275704", "0.6268897", "0.62656784", "0.62656784", "0.62656784", "0.62656784", "0.62656784", "0.626567...
0.0
-1
0 is first shot, 1 is second shot, 2 is third shot, 3 is last shoot and 4 is done, 5 is wheels turned off.
protected void shootAtBeginAutonomous() { double secondWheel = 1; double firstWheel = SpinWheels.FIRST_WHEEL_RATIO * 1; Robot.shooter.setShootingMotors(firstWheel, secondWheel); if (machineState == 4) { Robot.shooter.setShootingMotors(0, 0); machineState++; } else if (machineState == 0 || machineState == 1 || machineState == 2) { if (waitForPistonRetract()) { Robot.storageBox.extendFiringPiston(); } else if (waitForPistonExtend()) { Robot.storageBox.retractFiringPiston(); machineState++; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void shoot() {\n\r\n switch (shootstate) {\r\n case down:\r\n tempbutton = Components.shootsinglespeed;\r\n templimit = islimitshooterup();\r\n\r\n if (Components.shootsinglespeed && islimitshooterup() && Components.DownPickupLimit.get()) {\r\n ...
[ "0.67060155", "0.62511", "0.6074151", "0.60567755", "0.60435206", "0.60298234", "0.6025917", "0.60179657", "0.6010669", "0.5969429", "0.5913541", "0.58579314", "0.5838089", "0.58214194", "0.582082", "0.5815311", "0.5803697", "0.5793066", "0.5772942", "0.57718325", "0.57715434...
0.5832081
13
Make this return true when this Command no longer needs to run execute()
protected boolean isFinished() { if (lineHasBeenFound) { lineTrackTime = System.currentTimeMillis(); } if(System.currentTimeMillis()-lineTrackTime > 4000){ return true; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean execute() {\n return false;\n }", "@Override\n public boolean execute() {\n return false;\n }", "public boolean execute(){\n return false;\n }", "@Override\n\tpublic boolean Unexecute() \n\t{\n\t\treturn false;\n\t}", "p...
[ "0.77345294", "0.77345294", "0.7678753", "0.76457655", "0.75966", "0.7554271", "0.6877811", "0.6748956", "0.6728847", "0.66855806", "0.65891784", "0.65624696", "0.64980483", "0.63857424", "0.63736373", "0.6356819", "0.6356819", "0.63498974", "0.63401324", "0.63290936", "0.632...
0.0
-1
Called once after isFinished returns true
protected void end() { Robot.feeder.retractArm(); Robot.feeder.setFeederIntakeSpeed(0); Robot.chassis.driveMecanumNormalized(0, 0, 0); Robot.shooter.setShootingMotors(0, 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected boolean isFinished() {\n return true;\n }", "@Override\n protected boolean isFinished() {\n return true;\n }", "@Override\n public boolean isFinished() {\n return true;\n }", "@Override\r\n\tprotected boolean isFinished() {\n\t\treturn true;\r\n\t}", "@Override\...
[ "0.85873747", "0.8541597", "0.8335923", "0.8333603", "0.8333603", "0.830866", "0.830667", "0.8300791", "0.82794416", "0.82794416", "0.82794416", "0.82794416", "0.82794416", "0.82794416", "0.82794416", "0.82794416", "0.82794416", "0.82794416", "0.82794416", "0.82794416", "0.82...
0.0
-1
Called when another command which requires one or more of the same subsystems is scheduled to run
protected void interrupted() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public AutonomousCommand(LiftSubsystem m_lift, ArmSubsystem m_arm, Shooter m_shooter, DriveSubsystem m_drive,\n HopperSubsystem m_hopper, Intake m_intake) {\n // Add your commands in the super() call, e.g.\n // super(new FooCommand(), new BarCommand());\n // alongwith- birlikte çalıştırmak için // wi...
[ "0.5763931", "0.55960244", "0.5525797", "0.5436806", "0.53835094", "0.536319", "0.5349366", "0.5342596", "0.53320616", "0.5330841", "0.5301339", "0.52654606", "0.5253216", "0.5232184", "0.5224121", "0.5206056", "0.51933163", "0.51804787", "0.51619536", "0.5152295", "0.5144833...
0.0
-1
Permet de retourner la forme avec l'orientation de la case
public CaseForme getForme() { return this.forme; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void effetCase() {\n\t\t\n\t}", "public T caseOrientation(Orientation object)\n {\n return null;\n }", "public void switchOr() {\n if (orientation == 1) {\n orientation = 0;\n }\n else {\n orientation = 1;\n }\n }", "public void no...
[ "0.6555451", "0.6404856", "0.6041136", "0.5875498", "0.56662965", "0.56631553", "0.56204647", "0.55419874", "0.55325127", "0.5482134", "0.54585373", "0.5456222", "0.5433116", "0.54226154", "0.5397612", "0.53660613", "0.5308856", "0.53040546", "0.5303518", "0.52963156", "0.529...
0.0
-1
Modification de la forme de la case
public void setForme(CaseForme forme) { this.forme = forme; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void effetCase() {\n\t\t\n\t}", "@Override\n\tpublic void visit(CaseExpression arg0) {\n\t\t\n\t}", "public ICase retourneLaCase() ;", "@Override\n\tpublic void visit(CaseExpression arg0) {\n\n\t}", "@Override\r\n public void setCase(Case theCase) {\n }", "public void normalize(...
[ "0.70173913", "0.6019672", "0.60147303", "0.59697855", "0.5581256", "0.5568009", "0.54420036", "0.53523904", "0.53460443", "0.5281764", "0.52654976", "0.52534837", "0.5241984", "0.52239573", "0.5199387", "0.5160363", "0.5156517", "0.5143471", "0.5132602", "0.5100523", "0.5092...
0.0
-1
Valida os dados cadatrados
public boolean validar() { if (getUsuario().length() <= 8) { if (getSenha().length() > 7 && getSenha().length() < 17) { return true; } } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void validar_campos(){\r\n\t\tfor(int i=0;i<fieldNames.length-1;++i) {\r\n\t\t\tif (jtxt[i].getText().length() > 0){\r\n\t\t\t}else{\r\n\t\t\t\tpermetir_alta = 1;\r\n\t\t\t}\t\r\n\t\t}\r\n\t\tif((CmbPar.getSelectedItem() != null) && (Cmbwp.getSelectedItem() != null) && (CmbComp.getSelectedItem() != null) &&...
[ "0.7395438", "0.7230837", "0.7230837", "0.7230837", "0.7230837", "0.7230837", "0.7230837", "0.7230837", "0.7230837", "0.7230837", "0.7230837", "0.7230837", "0.7230837", "0.7230837", "0.7230837", "0.7230837", "0.7230837", "0.7230837", "0.7230837", "0.7230837", "0.7230837", "...
0.0
-1
This one is special, as it is not actually in the character entry. It is 10 bytes, the first 8 of which are data //////////////// Constructors // ////////////////
public CharacterEntry(byte[] bytes, String name, String PID_name, byte[] weaponRanks) throws WrongSizeException { if(bytes.length != 0x54){ throw new WrongSizeException("A character entry was made out of an array of the wrong size."); } this.entryName = name; this.PID_name = PID_name; this.PID_pointer = new byte[]{bytes[0], bytes[1], bytes[2], bytes[3]}; this.MPID_pointer = new byte[]{bytes[4], bytes[5], bytes[6], bytes[7]}; Null_pointer = new byte[]{bytes[8], bytes[9], bytes[10], bytes[11]}; Portrait_pointer = new byte[]{bytes[12], bytes[13], bytes[14], bytes[15]}; Class_pointer = new byte[]{bytes[16], bytes[17], bytes[18], bytes[19]}; Affiliation_pointer = new byte[]{bytes[20], bytes[21], bytes[22], bytes[23]}; Weaponlevel_pointer = new byte[]{bytes[24], bytes[25], bytes[26], bytes[27]}; Skill1_pointer = new byte[]{bytes[28], bytes[29], bytes[30], bytes[31]}; Skill2_pointer = new byte[]{bytes[32], bytes[33], bytes[34], bytes[35]}; Skill3_pointer = new byte[]{bytes[36], bytes[37], bytes[38], bytes[39]}; Animation1_pointer = new byte[]{bytes[40], bytes[41], bytes[42], bytes[43]}; Animation2_pointer = new byte[]{bytes[44], bytes[45], bytes[46], bytes[47]}; this.unknownbyte1 = bytes[48]; this.unknownbyte2 = bytes[49]; this.unknownbyte3 = bytes[50]; this.unknownbyte4 = bytes[51]; this.unknownbyte5 = bytes[52]; this.unknownbyte6 = bytes[53]; this.level = bytes[54]; this.build = bytes[55]; this.weight = bytes[56]; this.bases = new byte[]{bytes[57], bytes[58], bytes[59], bytes[60], bytes[61], bytes[62], bytes[63], bytes[64]}; this.growths = new byte[]{bytes[65], bytes[66], bytes[67], bytes[68], bytes[69], bytes[70], bytes[71], bytes[72]}; this.supportgrowth = new byte[]{bytes[73], bytes[74], bytes[75], bytes[76], bytes[77], bytes[78], bytes[79], bytes[80]}; this.unknownbyte9 = bytes[81]; this.unknownbyte10 = bytes[82]; this.unknownbyte11 = bytes[83]; this.weaponRanks = weaponRanks; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Str(byte[] data) {\n unpack(data);\n }", "public TextObjectBaseRecord(short id, short size, byte [] data, int offset)\n {\n super(id, size, data, offset);\n \n }", "public TextObjectBaseRecord(short id, short size, byte [] data)\n {\n super(id, size, data);\n \n ...
[ "0.64337033", "0.6313227", "0.62803084", "0.62531585", "0.61999786", "0.6170326", "0.6099191", "0.6040006", "0.5940932", "0.5937268", "0.5923164", "0.5895318", "0.5883631", "0.5875413", "0.58513445", "0.5850783", "0.58496785", "0.5846778", "0.58154106", "0.5789359", "0.578471...
0.60881215
7
/////////// Methods // /////////// Recombine the variables of the actual character entry portion of this class into a single byte array
public byte[] getByteArray(){ byte[] b = new byte[0x54]; System.arraycopy(PID_pointer, 0, b, 0, 4); System.arraycopy(MPID_pointer, 0, b, 4, 4); System.arraycopy(Null_pointer, 0, b, 8, 4); System.arraycopy(Portrait_pointer, 0, b, 12, 4); System.arraycopy(Class_pointer, 0, b, 16, 4); System.arraycopy(Affiliation_pointer, 0, b, 20, 4); System.arraycopy(Weaponlevel_pointer, 0, b, 24, 4); System.arraycopy(Skill1_pointer, 0, b, 28, 4); System.arraycopy(Skill2_pointer, 0, b, 32, 4); System.arraycopy(Skill3_pointer, 0, b, 36, 4); System.arraycopy(Animation1_pointer, 0, b, 40, 4); System.arraycopy(Animation2_pointer, 0, b, 44, 4); b[48] = unknownbyte1; b[49] = unknownbyte2; b[50] = unknownbyte3; b[51] = unknownbyte4; b[52] = unknownbyte5; b[53] = unknownbyte6; b[54] = level; b[55] = build; b[56] = weight; System.arraycopy(bases, 0, b, 57, 8); System.arraycopy(growths, 0, b, 65, 8); System.arraycopy(supportgrowth, 0, b, 73, 8); b[81] = unknownbyte9; b[82] = unknownbyte10; b[83] = unknownbyte11; return b; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract byte[] getEncoded();", "public char[] getAsChars() {\n return (char[])data;\n }", "java.lang.String getEncoded();", "public char[][] mo26406a() {\n char[][] cArr = new char[(this.f18226b + 1)][];\n for (Entry entry : this.f18225a.entrySet()) {\n cArr[((Cha...
[ "0.61527294", "0.58697945", "0.5610028", "0.56038797", "0.5579422", "0.556746", "0.5564336", "0.5523471", "0.5510405", "0.55068785", "0.5500701", "0.5476589", "0.5423442", "0.54120713", "0.53715205", "0.533825", "0.5329668", "0.5329316", "0.53285754", "0.53275084", "0.5327508...
0.54226047
13
/////////////////////// Getters and Setters // ///////////////////////
public String getDisplayName(){return entryName;}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected void getData() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n\n \n }", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", ...
[ "0.64439946", "0.63418007", "0.6308652", "0.62908536", "0.6287241", "0.62766635", "0.62699324", "0.6267627", "0.62658733", "0.6265296", "0.6258413", "0.6258413", "0.6258413", "0.6258413", "0.6258413", "0.6258413", "0.6238268", "0.62299305", "0.6223025", "0.6194233", "0.615228...
0.0
-1
Clear class fields when this is called.
public static void destroy() { handler = null; initialized = false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void clear() {\n\t\tthis.classMap.clear();\n\t}", "public void clearFields() {\n\t\tid.clear();\n\t\tfn.clear();\n\t\tln.clear();\n\t\tage.clear();\n\t\tun.clear();\n\t\tpass.clear();\n\t\tdate.setValue(null);\n\t}", "private void clearFields(){\r\n fields.forEach(e -> e.clear());\r\n }", "@...
[ "0.7235383", "0.7214644", "0.70788264", "0.6964649", "0.68381643", "0.67954683", "0.6779568", "0.67414516", "0.67167187", "0.66898304", "0.6682026", "0.6682026", "0.66577184", "0.66495025", "0.6636877", "0.663552", "0.65738565", "0.6561434", "0.6561371", "0.65364414", "0.6531...
0.0
-1
Run in handler thread.
public static void runInHandlerThread(Runnable runnable) { if (handler != null) handler.runInHandlerThread(runnable); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract void runHandler();", "public void run() {\n try {\n handle();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "@Override\n public void run() {\n handler.post(Update);\n }", "@Override\n public voi...
[ "0.7997708", "0.7591981", "0.7589953", "0.7589953", "0.7589953", "0.7589953", "0.7589953", "0.7589953", "0.7473355", "0.74643236", "0.7419638", "0.7417517", "0.74024874", "0.7367982", "0.7241433", "0.7183195", "0.71309984", "0.7036478", "0.7029794", "0.70075214", "0.70075214"...
0.69906884
21
Call a method or command in handler thread.
public static <T> T callInHandlerThread(Callable<T> callable, T defaultValue) { if (handler != null) return handler.callInHandlerThread(callable, defaultValue); return defaultValue; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tinvoke();\n\t\t\t\t\t}", "protected abstract void runHandler();", "@Override\n\tpublic void run() {\n\t\ttarget.call(msg);\n\t}", "void execute(Handler handler, Callback callback);", "public void run() {\n synchronized(target) { // synchronized b...
[ "0.6710562", "0.65850484", "0.64877915", "0.63987607", "0.6333437", "0.61193585", "0.6022124", "0.6008732", "0.59946704", "0.5993297", "0.5885417", "0.5854317", "0.5827509", "0.58030504", "0.5799831", "0.57703835", "0.5768641", "0.57576585", "0.5734205", "0.57203776", "0.5706...
0.52553236
97
Post methods or commands in handler thread.
@CheckForNull public static <T> Future<T> postCallable(Callable<T> callable) { if (handler != null) return handler.postCallable(callable); return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void post(java.lang.Runnable command) {\n mHandler.post(command);\n }", "void post(java.lang.Runnable command);", "@Override\n public void post(java.lang.Runnable command) {\n mExecutor.execute(command);\n }", "@Override\n ...
[ "0.7590882", "0.73426425", "0.7010884", "0.69763905", "0.6914271", "0.6906994", "0.6906994", "0.6906994", "0.6906994", "0.6906994", "0.6906994", "0.65799314", "0.63036746", "0.620366", "0.61381936", "0.61314857", "0.6088366", "0.6035568", "0.6031717", "0.60091716", "0.5983181...
0.0
-1
Post a command in handler thread with specific timespan.
public static void postDelayed(Runnable r, long delayMillis) { if (handler != null) handler.postDelayed(r, delayMillis); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void post(java.lang.Runnable command);", "@Override\n public void post(java.lang.Runnable command) {\n mHandler.post(command);\n }", "@Override\n public void post(java.lang.Runnable command) {\n mExecutor.execute(command);\n }", "private void postMessageToPhi...
[ "0.6264085", "0.60545474", "0.56540585", "0.53885126", "0.523905", "0.5209031", "0.5091917", "0.5082536", "0.50739485", "0.5047766", "0.50339293", "0.5024525", "0.5020802", "0.5020022", "0.50121", "0.50057274", "0.4997961", "0.49890265", "0.4956231", "0.4956231", "0.4956231",...
0.4643146
47