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
Value of the function WITHOUT Normalization factor (as if N=1)
public double functionValue(double[] var) { double val = 0; for (int i=0; i<numberOfParameters; i++) { val += p[i]*Math.pow(var[0], i+1); } val +=1.; return val; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic double applyFunction(double in) {\n\t\treturn 0;\n\t}", "private double f(double x) {\n return (1 / (1 + Math.exp(-x)));\n }", "public double getNu() {return nu;}", "public static int f5(int N) { \n int x = 0;\n // log(n)\n for(int i = N; i > 0; i = i/2)\n ...
[ "0.651976", "0.61550134", "0.6136701", "0.6045727", "0.60246074", "0.5993623", "0.5958465", "0.5940965", "0.5929335", "0.59259605", "0.58994097", "0.58889985", "0.58879095", "0.58879095", "0.58879095", "0.5877219", "0.5871061", "0.5869331", "0.5849127", "0.5834598", "0.581999...
0.61777365
1
TODO Autogenerated method stub
@Override public void run() { try { URL uri = new URL(url); String newParams = URLEncoder.encode(params, "utf-8"); HttpURLConnection conn = (HttpURLConnection) uri .openConnection(); conn.setRequestMethod("POST"); // 设置请求的参数 conn.setDoInput(true); conn....
{ "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 run() { super.run(); try { // String newParams=URLEncoder.encode(params, "utf-8"); String newurl = url + "?" + params; URL uri = new URL(newurl); try { HttpURLConnection conn = (HttpURLConnection) uri .openConnection(); conn.connect(); // 获...
{ "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 return the total number of locations in this instance (includes DEPOT and HOME).
@Override public int getNumberOfLocations() { return aiSolutionRepresentation.length; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getLocationsCount();", "public int getLocationsCount() {\n return locations_.size();\n }", "public int getLocationsCount() {\n if (locationsBuilder_ == null) {\n return locations_.size();\n } else {\n return locationsBuilder_.getCount();\n }\n }", "int ...
[ "0.8408478", "0.818971", "0.8088918", "0.7765909", "0.73920655", "0.73334104", "0.71704686", "0.7119504", "0.7105243", "0.7069625", "0.70167", "0.6982482", "0.69776946", "0.6973907", "0.6950253", "0.6669917", "0.6468447", "0.6464994", "0.6432596", "0.64151746", "0.64151746", ...
0.70020664
11
TODO perform a DEEP clone of the solution representation! aiSolutionRepresentation is an array of primitives (ints), i.e., does not need to be recreated, copying is sufficient
@Override public SolutionRepresentationInterface clone() { int[] oSolution = new int[getNumberOfLocations()]; oSolution = aiSolutionRepresentation.clone(); SolutionRepresentation oRepresentation = new SolutionRepresentation(oSolution); return oRepresentation; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSolutionRepresentation(ArrayList<GridPoint> solutionRepresentation) {\n\t\tthis.solutionRepresentation = solutionRepresentation;\n\t\tthis.solutionLength = solutionRepresentation.size();\n\t\tthis.cost = calculateCostInclusive();\n\t}", "public Solution deepClone() {\n\t\tArrayList<GridPoint> clon...
[ "0.6400929", "0.6171316", "0.6028818", "0.601827", "0.5943595", "0.5908535", "0.5724075", "0.57172", "0.5597429", "0.5548723", "0.55346006", "0.5517532", "0.55053794", "0.5462855", "0.54409575", "0.54400855", "0.54189587", "0.5383024", "0.53297967", "0.53257614", "0.5318084",...
0.75400686
0
TODO Autogenerated method stub
@Override public void finishWithRight() { finish(); }
{ "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: enable this var w = 3;
public void working() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setW(int w) {\n\t\tthis.W = w;\n\t}", "public void setW(double w) {\n this.w = w;\n }", "@Override\n\tpublic void w() {\n\n\t}", "public int getW() {\n\t\treturn w;\n\t}", "float getW() {\n return _w;\n }", "@Override\n\tpublic int getW() {\n\t\treturn 100;\n\t}", "public void...
[ "0.6819811", "0.6782471", "0.6451293", "0.64251256", "0.640228", "0.6315894", "0.62726164", "0.62698936", "0.6257246", "0.6095054", "0.6088951", "0.6081773", "0.60815275", "0.60238445", "0.60232896", "0.597804", "0.59594077", "0.5949277", "0.5937974", "0.59291565", "0.5928515...
0.0
-1
Test the input color and predict it as LIGHT or DARK
public FontShade predict(Color color, boolean printPrediction) { double [] result = model.output( Nd4j.create( colorAttributes(color).data ) ).toDoubleVector(); // val result = dl4jNN.output(Nd4j.create(colorAttributes(color))).toDoubl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void colorCalibration()\n {\n\n if(ntRedColorCalibration.getBoolean(false))\n {\n if(colorCalibrationEnabled)\n {\n /* NON-OPERATIONAL SENSOR\n kRedTargetRedValue = detectedColor.red;\n kRedTargetGreenValue = detectedColor.green;\n kRedTargetBlueValue = detected...
[ "0.634619", "0.6280226", "0.6062384", "0.60349464", "0.59924024", "0.5989942", "0.58652115", "0.57230836", "0.5652064", "0.5638824", "0.56054157", "0.5590234", "0.55574", "0.5541949", "0.5532963", "0.5532056", "0.5532056", "0.55299175", "0.5521571", "0.5509326", "0.545941", ...
0.7035016
0
Created by abhimanyus on 3/5/18.
public interface ArticleRepository extends MongoRepository<Article, String> { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "public fina...
[ "0.60908276", "0.5945803", "0.59216493", "0.5919937", "0.58277047", "0.58277047", "0.58010197", "0.57935476", "0.5762426", "0.57537234", "0.571875", "0.5712622", "0.5710261", "0.57088846", "0.5706177", "0.5706177", "0.5706177", "0.5706177", "0.5706177", "0.569859", "0.5692758...
0.0
-1
/ int dem = 0; int an; int alength = m_rad_DA1.getText().length(); String atl = (String) m_rad_DA1.getText().subSequence(3,alength); int blenght = m_rad_DA2.getText().length(); String btl = (String) m_rad_DA2.getText().subSequence(3,blenght); int clenght = m_rad_DA3.getText().length(); String ctl = (String) m_rad_DA3.g...
@Override public void onClick(View v) { animMove = AnimationUtils.loadAnimation(getApplicationContext(),R.anim.fade_out); m_rad_DA1.startAnimation(animMove); m_rad_DA3.startAnimation(animMove); btnFiftyPercen.setEnabled(false); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\npublic void actionPerformed(ActionEvent e) {\n\tif(e.getSource()==b1)\r\n\t{ \r\n\t\tString s=b1.getText();\t\r\n\t\ttext.setText(text.getText().concat(s));\r\n\t}\r\n\tif(e.getSource()==b2)\r\n\t{\r\n\t\tString s=b2.getText();\r\n\t\ttext.setText(text.getText().concat(\"2\"));\r\n\t}\r\n\t\r\n\ti...
[ "0.5966029", "0.5856426", "0.58136773", "0.5802273", "0.5769974", "0.5731823", "0.57198864", "0.5688082", "0.566862", "0.5644274", "0.56330943", "0.5594709", "0.55945206", "0.55943495", "0.5588497", "0.5586657", "0.5585593", "0.5568816", "0.55664223", "0.5556764", "0.55312306...
0.0
-1
Created by phimau on 3/1/2017.
public interface IMapView extends BaseView { void onMapCreateSuccess(); void onProviderDisabled(); void onGetCurrentLocationFinish(LatLng latLng); void onGetListHealtyCareSuccess(List<RESP_Map_Healthy_Care> data); void onLocationChange(LatLng latLng); void onPermissionDenied(); void on...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "public final void mo51373a() {\n }", "private stendhal() {\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Overri...
[ "0.59539455", "0.58218336", "0.57956326", "0.57488513", "0.5743421", "0.57104117", "0.56866574", "0.56866574", "0.56227267", "0.5615385", "0.5583529", "0.5565392", "0.5559532", "0.5555011", "0.55548203", "0.5551696", "0.55135065", "0.55087876", "0.5505814", "0.54977137", "0.5...
0.0
-1
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu_animation_set, 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.7246102", "0.7201358", "0.7194834", "0.7176498", "0.71066517", "0.7039537", "0.7037961", "0.70112145", "0.70094734", "0.69807225", "0.6944953", "0.69389373", "0.6933199", "0.6916928", "0.6916928", "0.6891486", "0.68831646", "0.68754137", "0.68745375", "0.68621665", "0.6862...
0.0
-1
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); //noinspection SimplifiableIfStatement if (id == R.id.action_settings) { return true; } return super.onOptionsItemSelected(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n ...
[ "0.79041415", "0.7806607", "0.7766601", "0.7726997", "0.76317257", "0.7621966", "0.75851256", "0.753119", "0.74884796", "0.7458151", "0.7458151", "0.74387676", "0.74214053", "0.74029565", "0.73919135", "0.73871326", "0.73794", "0.7370643", "0.73621583", "0.7356208", "0.734578...
0.0
-1
Creates new form PropertyCustomEditorPanel
public PropertyCustomEditorPanel(Component client, JDialog dialog) { initComponents(); this.dialog = dialog; panel_clientArea.add(client, BorderLayout.CENTER); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic CellEditor createPropertyEditor(Composite parent) {\n\t\tMenuCellEditor editor = new MenuCellEditor(parent);\r\n\t\teditor.setListenerModel(flistenermodel);\r\n if (getValidator() != null) {\r\n\t\t\teditor.setValidator(getValidator());\r\n\t\t}\t\t\r\n\t\t return editor;\r\n\t}", "p...
[ "0.6554966", "0.6525223", "0.6522527", "0.64596087", "0.6365884", "0.6350531", "0.6312731", "0.6293146", "0.62476385", "0.6238774", "0.6212406", "0.6147542", "0.61211836", "0.61076164", "0.6054627", "0.6051612", "0.6050211", "0.59822106", "0.5961522", "0.5956961", "0.59426695...
0.6183165
11
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { panel_clientArea = new javax.swing.JPanel(); jPanel1 = new javax.swing.JPanel(); bn_okay = new javax.swing.JButton(); bn_cance...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n ...
[ "0.73191476", "0.72906625", "0.72906625", "0.72906625", "0.72860986", "0.7248112", "0.7213479", "0.72078276", "0.7195841", "0.71899796", "0.71840525", "0.7158498", "0.71477973", "0.7092748", "0.70800966", "0.70558053", "0.69871384", "0.69773406", "0.69548076", "0.69533914", "...
0.0
-1
End of variables declaration//GENEND:variables
public boolean isOkay() { return okay; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void lavar() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "public void mo38117a() {\n }", "@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}", "private void assignment() {\n\n\t\t\t}", "private void kk12() {\n\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\n pu...
[ "0.6359434", "0.6280371", "0.61868024", "0.6094568", "0.60925734", "0.6071678", "0.6052686", "0.60522056", "0.6003249", "0.59887564", "0.59705925", "0.59680873", "0.5967989", "0.5965816", "0.5962006", "0.5942372", "0.5909877", "0.5896588", "0.5891321", "0.5882983", "0.5881482...
0.0
-1
Identifies if a string contains an emoticion.
public static boolean stringContainsEmoticon(String str) { str = " " + str + " "; // helps identify spacing around emoticons if(str.matches("(.*?)( )(:|;|x|X|8|=)(-?)(\\S)( )")) /* identifies standard 'western' emoticons */ return true; if(str.matches("(.*?)( )(\\S)(-?)(:|;|x|X|8|=)( )")) /* identifies standar...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static boolean isGuildEmote(String emote) {\n return patternGuildEmote.matcher(emote).matches();\n }", "private static boolean isEmoji(char ch){\n return ch == 0xd83c || ch == 0xd83d;\n }", "public boolean isMark(){\n for (Character mark: PunctuationMark.marks){\n i...
[ "0.6191289", "0.61114615", "0.58313704", "0.5818207", "0.5788257", "0.57018614", "0.5695967", "0.5668349", "0.5596222", "0.5544852", "0.5502564", "0.5498904", "0.5486314", "0.5486314", "0.5486314", "0.5486314", "0.54037714", "0.5378529", "0.53765833", "0.5374558", "0.5349972"...
0.75297564
0
Get the remote connection selected in the dialog, or null if no connection selected
public IRemoteConnection getRemoteConnection() { if (fRemoteConnectionWidget != null && !fRemoteConnectionWidget.isDisposed()) { return fRemoteConnectionWidget.getConnection(); } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public IRemoteConnection getConnection() {\n \t\treturn fSelectedConnection;\n \t}", "public IBrowserConnection getSelectedConnection()\n {\n return selectedConnection;\n }", "protected void handleConnectionSelected() {\n \t\tfinal boolean enabled = fWidgetListener.isEnabled();\n \t\tfWidgetListen...
[ "0.73585254", "0.71041137", "0.58339787", "0.58024997", "0.56743586", "0.5507979", "0.5447403", "0.5429166", "0.5420811", "0.5368339", "0.535568", "0.53397167", "0.52704483", "0.5261391", "0.5233713", "0.5230888", "0.5230629", "0.5205652", "0.5164711", "0.51570433", "0.515568...
0.6979836
2
Get the system type selected in the dialog, or null if no system type selected
public String getSystemType() { return fSystemType; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getSysType() {\n return sysType;\n }", "public String getSelectedDocumentType() {\n\t\treturn (String) combBoxDocumentTypes.getSelectedItem();\n\t}", "java.lang.String getMachineType();", "public String getSelected()\r\n {\r\n if (selectedIndex == -1)\r\n return n...
[ "0.6644389", "0.6607926", "0.6281522", "0.6254816", "0.6132716", "0.6125948", "0.6052126", "0.60241836", "0.6018067", "0.5948197", "0.5907045", "0.58560723", "0.5855879", "0.58126986", "0.5768505", "0.57435656", "0.572145", "0.5713665", "0.5713091", "0.57047397", "0.56864697"...
0.7141988
0
/this.number = n; this.symbol = s;
void set(int n, char s) { set(n); set(s); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "SquareType ( char symbol ) {\n this.symbol = symbol;\n }", "public String getSymbol(){\n return this.symbol;\n }", "public void setSymbol(String symbol) {\n this.symbol = symbol;\n }", "Piece(String symbol) {\n this.symbol = symbol;\n }", "public Symbol(int value)\n\...
[ "0.68789583", "0.6861761", "0.6753188", "0.674516", "0.67175996", "0.66950834", "0.6628973", "0.6573435", "0.65304846", "0.6510326", "0.6496996", "0.6488988", "0.64865834", "0.64584136", "0.64430577", "0.64373225", "0.6437199", "0.64083683", "0.63502294", "0.6346233", "0.6325...
0.0
-1
/ renamed from: a
void m1865a(long j, float f) { try { Looper mainLooper = this.f1321e.getMainLooper(); if (Looper.myLooper() == null) { Looper.prepare(); } this.f1317a.requestLocationUpdates("gps", j, f, this.f1318b, mainLooper); } catch (Throwable t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
/ renamed from: a
void m1864a() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed fr...
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064...
0.0
-1
/ renamed from: b
void m1866b() { if (this.f1318b != null) { this.f1317a.removeUpdates(this.f1318b); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo2508a(bxb bxb);", "@Override\n public void func_104112_b() {\n \n }", "@Override\n public void b() {\n }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "@Override\n\tpublic void b2() {\n\t\t\n\t}", "v...
[ "0.64558864", "0.6283203", "0.6252635", "0.6250949", "0.6244743", "0.6216273", "0.6194491", "0.6193556", "0.61641675", "0.6140157", "0.60993093", "0.60974354", "0.6077849", "0.6001867", "0.5997364", "0.59737104", "0.59737104", "0.5905105", "0.5904295", "0.58908087", "0.588663...
0.0
-1
Implement this if you would
public interface MultiversePlugin { /** * Gets the reference to MultiverseCore. * * @return A valid {@link MultiverseCore}. */ @NotNull MultiverseCore getMultiverseCore(); /** * Allows Multiverse or a plugin to query another Multiverse plugin to see what version its protocol i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\...
[ "0.6670494", "0.6545736", "0.6531906", "0.64905703", "0.6460364", "0.6460364", "0.6389813", "0.6359523", "0.62921536", "0.6277966", "0.625848", "0.62166387", "0.62166387", "0.6181727", "0.6178028", "0.61532646", "0.61029476", "0.6086146", "0.6059564", "0.60377365", "0.6027099...
0.0
-1
Allows Multiverse or a plugin to query another Multiverse plugin to see what version its protocol is. This number should change when something will break the code. Generally your plugin should be checking the MultiverseCore's protocol version to ensure compatibility.
int getProtocolVersion();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getProtocolVersion() {\n\tLogWriter.logMessage(LogWriter.TRACE_DEBUG,\"getProtocolVersion()\");\n Via via=(Via)sipHeader;\n return via.getProtocolVersion();\n }", "public static void setProtocol(int protocolVersion) {\n\t\t\n\t}", "public static int getProtocol() {\n\t\treturn 0;...
[ "0.6809593", "0.66357744", "0.6535534", "0.64321834", "0.6380706", "0.6326966", "0.6326966", "0.6295657", "0.62783325", "0.62046176", "0.6135594", "0.60651237", "0.598466", "0.5977822", "0.5959353", "0.59321916", "0.59107673", "0.5855744", "0.5822558", "0.58016783", "0.579034...
0.68800503
0
Returns the version string of this Multiverse Plugin.
String getVersion();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String getVersion() {\r\n\t\treturn VERSION;\r\n\t}", "String version();", "public static String getVersion() {\n\t\treturn version;\n\t}", "public static String getVersion() {\n\t\treturn version;\r\n\t}", "public static String getVersion() {\n return version;\n }", "public stati...
[ "0.738739", "0.735441", "0.73469394", "0.7320236", "0.7318217", "0.7318217", "0.7308079", "0.7258096", "0.7258096", "0.7258096", "0.7258096", "0.7258096", "0.7258096", "0.7258096", "0.7258096", "0.7214972", "0.7214972", "0.7213102", "0.71792513", "0.71792513", "0.71792513", ...
0.7270812
14
Created by Hana Lee on 20150813 03:19
public interface IFavoriteService { List<Favorite> getFavorites(); List<Favorite> getFavoritesByGenre(GenreType genreType); List<Favorite> getFavoritesByParent(FavoriteCategory parent); List<Favorite> getFavoritesByParentId(int parentId); List<Favorite> getFavoritesByRate(int rate); List<Favorite> getFavori...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void mo51373a() {\n }", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "public void mo38117a() {\n }", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", ...
[ "0.57854074", "0.569545", "0.56793946", "0.56367344", "0.5599194", "0.55820596", "0.55742586", "0.55742586", "0.55528337", "0.5537055", "0.55362546", "0.55011135", "0.5481266", "0.5478567", "0.5472901", "0.54686725", "0.5461209", "0.5451148", "0.5451148", "0.5451148", "0.5451...
0.0
-1
AlertDialog.Builder builder = new AlertDialog.Builder(LocationActivity.this);
private void showFriendList() { AlertDialog.Builder builder = new AlertDialog.Builder(new ContextThemeWrapper(this,R.style.AlertDialogCustom)); builder.setTitle("好友列表"); View FriendListView = LayoutInflater.from(this).inflate(R.layout.friend_list_view, null); final ListView listView = (ListView) FriendListVi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private AlertDialog alertBuilder() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(\"Missing Arduino Unit, go to Settings?\").\n setCancelable(false).setPositiveButton(\n \"Yes\", new DialogInterface.OnClickListener() {\n\n ...
[ "0.72290075", "0.7073562", "0.7044841", "0.6902122", "0.68847585", "0.68705016", "0.6868079", "0.6854347", "0.6851171", "0.6822924", "0.6788873", "0.67658234", "0.6738012", "0.67265636", "0.6723056", "0.67206925", "0.67168266", "0.6698737", "0.6688033", "0.6671887", "0.664661...
0.0
-1
AlertDialog.Builder builder = new AlertDialog.Builder(LocationActivity.this);
private void showFindDialog() { AlertDialog.Builder builder = new AlertDialog.Builder(new ContextThemeWrapper(this,R.style.AlertDialogCustom)); builder.setTitle("好友列表"); View FriendListView = LayoutInflater.from(this).inflate(R.layout.friend_list_view, null); final ListView listView = (ListView) FriendListVi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private AlertDialog alertBuilder() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(\"Missing Arduino Unit, go to Settings?\").\n setCancelable(false).setPositiveButton(\n \"Yes\", new DialogInterface.OnClickListener() {\n\n ...
[ "0.72281146", "0.70724946", "0.7044164", "0.69015306", "0.68839055", "0.6868957", "0.6866825", "0.6854072", "0.68512934", "0.6821486", "0.6787538", "0.6764333", "0.6738267", "0.6725122", "0.672176", "0.672002", "0.6716123", "0.6697557", "0.6688162", "0.667011", "0.66460747", ...
0.0
-1
I must use an HTTP client that is not integrated with Helidon
@BeforeAll static void initClass() { // start the program server = MpSecurityClientMain.startTheServer(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static HttpClient createClient() {\n return HttpClients.createMinimal();\n }", "public interface HttpClient {\n\n\torg.apache.http.client.HttpClient getClient();\n\n\tString fetch(URI uri) throws IOException;\n\n\tvoid init() throws KeyManagementException, NoSuchAlgorithmException;\n}", "Client get...
[ "0.69412506", "0.6695946", "0.66381663", "0.65636075", "0.6521784", "0.65170044", "0.6445322", "0.63267684", "0.6322644", "0.6314876", "0.6301878", "0.6274011", "0.6258771", "0.62370425", "0.6136179", "0.61351633", "0.60999143", "0.6075709", "0.60670197", "0.60575175", "0.604...
0.0
-1
Instantiates a new OrderLineServiceTest.
public OrderLineServiceTest() { setupRequestContext(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public OrderLine() {\n }", "@Test\n\tpublic void saveOrderLine() {\n\t\t// TODO: JUnit - Populate test inputs for operation: saveOrderLine \n\t\tOrderLine orderline_1 = new ecom.domain.OrderLine();\n\t\tservice.saveOrderLine(orderline_1);\n\t}", "@Test\n public void testCreateOrderCalculations() throws E...
[ "0.71691674", "0.6559096", "0.64719933", "0.6343574", "0.633083", "0.6288032", "0.6287633", "0.6280195", "0.624635", "0.62461406", "0.62122303", "0.61951065", "0.6192807", "0.6187389", "0.616442", "0.61492765", "0.6145655", "0.6131551", "0.60777485", "0.6077043", "0.6058308",...
0.80018276
0
Operation Unit Test Delete an existing OrderLine entity
@Test public void deleteOrderLine() { // TODO: JUnit - Populate test inputs for operation: deleteOrderLine OrderLine orderline = new ecom.domain.OrderLine(); service.deleteOrderLine(orderline); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void deleteOrderLineProduct() {\n\t\t// TODO: JUnit - Populate test inputs for operation: deleteOrderLineProduct \n\t\tInteger orderline_id_1 = 0;\n\t\tInteger related_product_id = 0;\n\t\tOrderLine response = null;\n\t\tresponse = service.deleteOrderLineProduct(orderline_id_1, related_product_id);...
[ "0.82179654", "0.81733423", "0.7322964", "0.7171896", "0.7137281", "0.7098191", "0.6995931", "0.6923412", "0.68189853", "0.6812063", "0.6751609", "0.6722177", "0.6645744", "0.6634836", "0.6590686", "0.6573926", "0.65725195", "0.6570343", "0.6558987", "0.65467894", "0.6528964"...
0.90202487
0
Operation Unit Test Save an existing Product entity
@Test public void saveOrderLineProduct() { // TODO: JUnit - Populate test inputs for operation: saveOrderLineProduct Integer id_1 = 0; Product related_product = new ecom.domain.Product(); OrderLine response = null; response = service.saveOrderLineProduct(id_1, related_product); // TODO: JUnit - Add assert...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void saveProduct_should_update_product_with_new_product_fields() {\n final Product product = productStorage.saveProduct(new Product(1, \"Oranges\", 150, 3));\n\n //get product with id = 1\n final Product updatedProduct = productStorage.getProduct(1);\n\n assertThat(pro...
[ "0.80972695", "0.802083", "0.7700574", "0.757095", "0.7461098", "0.7404712", "0.7360074", "0.7316543", "0.7267223", "0.7249119", "0.7136706", "0.7126564", "0.71233755", "0.7121087", "0.7112471", "0.70921904", "0.7081969", "0.70802164", "0.7037866", "0.70235455", "0.70041704",...
0.72196966
10
Operation Unit Test Save an existing SalesOrder entity
@Test public void saveOrderLineSalesOrder() { // TODO: JUnit - Populate test inputs for operation: saveOrderLineSalesOrder Integer id_2 = 0; SalesOrder related_salesorder = new ecom.domain.SalesOrder(); OrderLine response = null; response = service.saveOrderLineSalesOrder(id_2, related_salesorder); // TOD...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void saveOrderLine() {\n\t\t// TODO: JUnit - Populate test inputs for operation: saveOrderLine \n\t\tOrderLine orderline_1 = new ecom.domain.OrderLine();\n\t\tservice.saveOrderLine(orderline_1);\n\t}", "@Test\n\tpublic void testPersistNewSupplierOrder() throws Exception {\n\t\tLong id = saveEntit...
[ "0.7542798", "0.7276326", "0.7219675", "0.71179503", "0.7033853", "0.6961677", "0.69143146", "0.6899407", "0.6881544", "0.6876449", "0.6873559", "0.6814979", "0.6772192", "0.6638467", "0.6635117", "0.66344523", "0.66296273", "0.66082", "0.6602495", "0.64691335", "0.64587104",...
0.75378776
1
Operation Unit Test Return all OrderLine entity
@Test public void findAllOrderLines() { // TODO: JUnit - Populate test inputs for operation: findAllOrderLines Integer startResult = 0; Integer maxRows = 0; List<OrderLine> response = null; response = service.findAllOrderLines(startResult, maxRows); // TODO: JUnit - Add assertions to test outputs of opera...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void loadOrderLines() {\n\t\tSet<OrderLine> response = null;\n\t\tresponse = service.loadOrderLines();\n\t\t// TODO: JUnit - Add assertions to test outputs of operation: loadOrderLines\n\t}", "@Test\r\n // @Ignore\r\n public void showOrders()\r\n {\r\n System.out.println(\"----- showOrders...
[ "0.79426414", "0.75858194", "0.6932818", "0.68742913", "0.6849258", "0.6784901", "0.67739505", "0.67523515", "0.67412794", "0.6670598", "0.6668105", "0.6617687", "0.65772945", "0.6545098", "0.6491586", "0.64860123", "0.6475046", "0.6427832", "0.6419262", "0.6405571", "0.63825...
0.838115
0
Operation Unit Test Load an existing OrderLine entity
@Test public void loadOrderLines() { Set<OrderLine> response = null; response = service.loadOrderLines(); // TODO: JUnit - Add assertions to test outputs of operation: loadOrderLines }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void saveOrderLine() {\n\t\t// TODO: JUnit - Populate test inputs for operation: saveOrderLine \n\t\tOrderLine orderline_1 = new ecom.domain.OrderLine();\n\t\tservice.saveOrderLine(orderline_1);\n\t}", "@Test\n\tpublic void deleteOrderLine() {\n\t\t// TODO: JUnit - Populate test inputs for operat...
[ "0.73020226", "0.6794315", "0.66740364", "0.6566522", "0.6515224", "0.63664955", "0.6262401", "0.61659795", "0.6164629", "0.61395687", "0.60441583", "0.60246825", "0.59923756", "0.5969995", "0.596695", "0.5926526", "0.5924507", "0.5913451", "0.59042567", "0.5860045", "0.58527...
0.71516734
1
Operation Unit Test Delete an existing SalesOrder entity
@Test public void deleteOrderLineSalesOrder() { // TODO: JUnit - Populate test inputs for operation: deleteOrderLineSalesOrder Integer orderline_id = 0; Integer related_salesorder_id = 0; OrderLine response = null; response = service.deleteOrderLineSalesOrder(orderline_id, related_salesorder_id); // TODO:...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void deleteOrderTest() {\n Long orderId = 10L;\n api.deleteOrder(orderId);\n\n verify(exactly(1), deleteRequestedFor(urlEqualTo(\"/store/order/10\")));\n }", "@Test\n void deleteSuccess() {\n\n UserDOA userDao = new UserDOA();\n User user = userDao.getBy...
[ "0.7583122", "0.7566738", "0.7535205", "0.7362072", "0.7245412", "0.709888", "0.7078202", "0.68980795", "0.68904823", "0.68883884", "0.686303", "0.6825333", "0.6808948", "0.67711407", "0.675742", "0.6747302", "0.6745679", "0.67222816", "0.6677102", "0.6674536", "0.66552484", ...
0.7693151
0
Operation Unit Test Return a count of all OrderLine entity
@Test public void countOrderLines() { Integer response = null; response = service.countOrderLines(); // TODO: JUnit - Add assertions to test outputs of operation: countOrderLines }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void findAllOrderLines() {\n\t\t// TODO: JUnit - Populate test inputs for operation: findAllOrderLines \n\t\tInteger startResult = 0;\n\t\tInteger maxRows = 0;\n\t\tList<OrderLine> response = null;\n\t\tresponse = service.findAllOrderLines(startResult, maxRows);\n\t\t// TODO: JUnit - Add assertions...
[ "0.73781115", "0.68021774", "0.67842", "0.67568815", "0.6658579", "0.66535115", "0.66274613", "0.6557425", "0.6498913", "0.64690274", "0.64028937", "0.6400131", "0.63361067", "0.6332818", "0.6317478", "0.6313285", "0.63121617", "0.6259036", "0.6211438", "0.6127471", "0.612432...
0.8384653
0
Operation Unit Test Delete an existing Product entity
@Test public void deleteOrderLineProduct() { // TODO: JUnit - Populate test inputs for operation: deleteOrderLineProduct Integer orderline_id_1 = 0; Integer related_product_id = 0; OrderLine response = null; response = service.deleteOrderLineProduct(orderline_id_1, related_product_id); // TODO: JUnit - Ad...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testDeleteProductShouldCorrect() throws Exception {\n // Mock method\n when(productRepository.findOne(product.getId())).thenReturn(product);\n doNothing().when(productRepository).delete(product);\n\n testResponseData(RequestInfo.builder()\n .request(del...
[ "0.84862214", "0.77899206", "0.77130866", "0.76971555", "0.7681987", "0.7639591", "0.760021", "0.75964516", "0.75262165", "0.74648625", "0.7452954", "0.7385151", "0.7379776", "0.7333221", "0.72625697", "0.72087085", "0.71899325", "0.715016", "0.7142863", "0.7111939", "0.71103...
0.69167703
39
Operation Unit Test Save an existing OrderLine entity
@Test public void saveOrderLine() { // TODO: JUnit - Populate test inputs for operation: saveOrderLine OrderLine orderline_1 = new ecom.domain.OrderLine(); service.saveOrderLine(orderline_1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void saveOrderLineProduct() {\n\t\t// TODO: JUnit - Populate test inputs for operation: saveOrderLineProduct \n\t\tInteger id_1 = 0;\n\t\tProduct related_product = new ecom.domain.Product();\n\t\tOrderLine response = null;\n\t\tresponse = service.saveOrderLineProduct(id_1, related_product);\n\t\t//...
[ "0.8024459", "0.7954834", "0.7024441", "0.67675585", "0.6704966", "0.6566064", "0.6538224", "0.6497394", "0.6478553", "0.64310074", "0.63622564", "0.6356582", "0.63462245", "0.6345867", "0.63146627", "0.6302675", "0.62708086", "0.62705463", "0.6260216", "0.6243201", "0.620804...
0.8779209
0
Autowired to set the Spring application context.
@Autowired public void setContext(ApplicationContext context) { this.context = context; ((DefaultListableBeanFactory) context.getAutowireCapableBeanFactory()).registerScope("session", new SessionScope()); ((DefaultListableBeanFactory) context.getAutowireCapableBeanFactory()).registerScope("request", new RequestS...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void setApplicationContext(ApplicationContext applicationContext)\r\n\t\t\tthrows BeansException {\n\t\tcontext = (WebApplicationContext) applicationContext;\r\n\t}", "@Override\r\n\tpublic void setApplicationContext(ApplicationContext applicationContext)\r\n\t\t\tthrows BeansException {\n\...
[ "0.74329954", "0.7392649", "0.7267529", "0.7248603", "0.72084963", "0.7198203", "0.7198203", "0.7185792", "0.71774936", "0.70913297", "0.7090689", "0.70888764", "0.7053555", "0.70285374", "0.69779134", "0.6966813", "0.69192576", "0.6902513", "0.69011486", "0.6891869", "0.6889...
0.7199783
5
Sets Up the Request context
private void setupRequestContext() { MockHttpServletRequest request = new MockHttpServletRequest(); ServletRequestAttributes attributes = new ServletRequestAttributes(request); RequestContextHolder.setRequestAttributes(attributes); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setupRequestContext() {\r\n\t\tMockHttpServletRequest request = new MockHttpServletRequest();\r\n\t\tServletRequestAttributes attributes = new ServletRequestAttributes(request);\r\n\t\tRequestContextHolder.setRequestAttributes(attributes);\r\n\t}", "private void setupRequestContext() {\r\n\t\tMockHt...
[ "0.78230757", "0.78230757", "0.712836", "0.6915611", "0.6839779", "0.6729641", "0.65656924", "0.6511998", "0.64848906", "0.64006495", "0.6345713", "0.6292463", "0.6282462", "0.6210236", "0.62063074", "0.62004715", "0.61996615", "0.61939144", "0.61939144", "0.61882573", "0.618...
0.7828934
0
/ The body mass index (BMI) is used to estimate the risk of weightrelated problems based on a subject's height and mass. It was designed by the mathematician Adolphe Quetelet in the 1800s and is sometimes referred to as the Quetelet index. The BMI is computed as: BMI = mass / (height height) In this formula, mass is in...
public static void main(String[] args) { Scanner scan = new Scanner(System.in); System.out.print("You weight in pounds:"); int weight = scan.nextInt(); System.out.print("Your height in feet and inches:"); double height = scan.nextFloat(); double lbsInKg = weight / 2.2046; // lbs to kg dou...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main( String [] args )\n {\n Scanner input = new Scanner( System.in );\n\n int weightInput = 0; // Init weight input\n int heightInput = 0; // Init height input\n\n double weightKg = 0; // Init weight conversion\n double heightM = 0; // Init height conversion...
[ "0.8467921", "0.8114522", "0.76330495", "0.7615557", "0.7531935", "0.7451856", "0.7451436", "0.7422352", "0.7246101", "0.72011673", "0.71954435", "0.7156656", "0.71163636", "0.7097893", "0.6978201", "0.6959042", "0.6946725", "0.6911168", "0.687653", "0.6812683", "0.66319734",...
0.6907103
18
/! This method uses a structured xml file with data to fill database tables
public void insertData(SQLiteDatabase db) { String sql; try { InputStream in = this.context.getResources().openRawResource(R.raw.data); DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder(); Document doc = builder.parse(in, null); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void loadData(){\n try {\n entities.clear();\n\n DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder documentBuilder = documentBuilderFactory.newDocumentBuilder();\n Document document = documentBuilder.par...
[ "0.68181604", "0.67178524", "0.66918135", "0.649996", "0.64806473", "0.6428253", "0.62858635", "0.6214395", "0.6192965", "0.6187986", "0.615547", "0.60242677", "0.60003287", "0.59997576", "0.59830946", "0.597121", "0.5938104", "0.5908911", "0.59024066", "0.5881607", "0.586393...
0.5329839
56
TODO test this changed name to key
@SuppressWarnings("deprecation") @Override public native void set(String key, String value) /*-{ $doc.cookie = @org.jboss.pressgang.belay.oauth2.gwt.client.OAuthCookieStoreImpl::COOKIE_PREFIX + encodeURIComponent(key) + '=' + encodeURIComponent(value); }-*/;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public String getKey();", "@Override\n default String getKey(){\n return key();\n }", "@Override\n public String getKey() {\n return key;\n }", "public Object getKey() { return name; }", "Object getKey();", "String getKey();", "String getKey();", "String getKey();", "Stri...
[ "0.6723674", "0.6485113", "0.64793074", "0.64648217", "0.6434596", "0.63528323", "0.63528323", "0.63528323", "0.63528323", "0.63528323", "0.63528323", "0.63528323", "0.63528323", "0.63528323", "0.63528323", "0.63528323", "0.63528323", "0.63528323", "0.630751", "0.630751", "0....
0.0
-1
Finds a contact in a list of Contact objects by his/her name. It does not receive the list of contacts as parameter as we have a global variable with that information.
private static int findContact (String name){ for (int ii=0; ii<contacts.length; ii++){ //If the element is null it means we didn't find the contact in the previous ones, //so we return false if (contacts[ii]==null) return -1; if(contacts[ii].getName().equals(name)) return ii; } return -1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Contact findContact(String name)\r\n\t{\r\n\t\tSystem.out.println(\"in FindContact\");\r\n\t\tString name1;\r\n\t\tname = name.toUpperCase();\r\n\t\tfor(int i = 0; i < this.size(); i++)\r\n\t\t{\r\n\t\t\tname1 = this.get(i).getContactName().toUpperCase();\r\n\r\n\t\t\tif (name.equalsIgnoreCase(name1)) {\r\n...
[ "0.76728463", "0.7659706", "0.7594087", "0.70813817", "0.70453495", "0.6980543", "0.6873332", "0.67099345", "0.66984844", "0.66484827", "0.6630122", "0.6513843", "0.6505172", "0.6428541", "0.64274436", "0.6396638", "0.6377017", "0.6342884", "0.63358825", "0.6289093", "0.62696...
0.6555498
11
Adds a contact to the phoneBook global variable, if the contact doesn't exist
private static boolean addContact (String name){ //If the contact is found, we donīt add it if (findContact(name)!=-1) return false; //Looking where to store the contact boolean added = false; for (int ii=0; ii<contacts.length && !added; ii++){ //We look for the first element that is null (empty position)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addContact() {\n\t\tif (contactCounter == contactList.length) {\n\t\t\tSystem.err.println(\"Maximum contacts reached. \"\n\t\t\t\t\t\t\t\t+ \"No more contact can be added\");\n\t\treturn;\n\t\t}\n\t\t\n\t\treadContactInfo();\t\n\t}", "void addContact(String name, String number);", "void addContact(...
[ "0.6992592", "0.6956568", "0.6905235", "0.6873913", "0.6858633", "0.68346924", "0.6795226", "0.6774332", "0.6643756", "0.66034055", "0.6598745", "0.65448767", "0.65391856", "0.64473695", "0.6401208", "0.63708216", "0.63594496", "0.63427293", "0.633247", "0.6292107", "0.627497...
0.6811506
6
Shows the name and phone numbers of a Contact (invoking the toString method)
private static String showDetails (String name){ //We find the user int position = findContact(name); //If not found, we return null if (position==-1) return null; //We return the details invoking the toString method else return contacts[position].toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void printContact(){\n for (int i = 0 ; i<contact.size() ; i++){\r\n System.out.print(contact.get(i).getFirstName());\r\n System.out.print(\"\\t\\t\"+contact.get(i).getLastName());\r\n System.out.print(\"\\t\\t\"+contact.get(i).getPhoneNumber());\r\n System...
[ "0.80416375", "0.7982147", "0.7760188", "0.7621148", "0.7498032", "0.7421366", "0.7354394", "0.73458475", "0.7328278", "0.72991765", "0.72618586", "0.71827984", "0.7169524", "0.71520436", "0.7148822", "0.71017516", "0.70421237", "0.7032769", "0.702637", "0.7024339", "0.702433...
0.64303625
65
Adds a phone number to a Contact object of the Contacts global variable, by invoking the addNumber method of the object
private static boolean addPhone(String name, int phone) { //We find the user int position = findContact(name); if (position==-1) return false; else { //Maybe the user has this phone already boolean added = contacts[position].addNumber(phone); return added; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void addContact(String name, String number);", "void addContact(String name,String number);", "void addContact(String name, int number)\r\n\t{\r\n\t\t\r\n\t\tContact a = new Contact(number,name);\r\n\t\tthis.add(a);\r\n\t}", "void addPhoneToPerson(Phone phone,int personId);", "public void addPhoneNumber(St...
[ "0.7949883", "0.78114444", "0.73538136", "0.69466406", "0.6867577", "0.68473154", "0.6784544", "0.6618005", "0.65951616", "0.6593986", "0.65101063", "0.64917827", "0.6424641", "0.6399126", "0.63982844", "0.6339713", "0.6320293", "0.6287554", "0.62722784", "0.62091744", "0.620...
0.66654843
7
Add tokens to the lexeme list.
public static boolean addTokensToLexemes(Lexemes lexemes, String expression, SymbolTable table, String varID) { lexemes.insertLexeme("VAR"); lexemes.insertLexeme("ID", varID); lexemes.insertLexeme("IS", "="); boolean checker = addTokensToLexemes(lexemes, expression, table); lexemes.insertLexeme("VAR_END");...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void add(TokenType tokenType, TokenReader reader);", "public void addTokens(int amount) {\n \tnumTokens += amount;\n }", "private void addToken(TokenType type) {\n addToken(type, null);\n }", "public void addToken(int index, String token) {\n\t\tthis.tokenList.add(index, token);\n\t}", "pro...
[ "0.6203969", "0.6121134", "0.6060932", "0.5964658", "0.5951977", "0.5934772", "0.5898699", "0.5882496", "0.5882496", "0.5830841", "0.5809748", "0.57909524", "0.5789895", "0.5789441", "0.5751441", "0.5747349", "0.57323384", "0.57213306", "0.5626279", "0.5620351", "0.5560102", ...
0.54662544
24
Add tokens to the lexeme list.
public static boolean addTokensToLexemes(Lexemes lexemes, String originalStr, SymbolTable table) { int counter_leftParen = originalStr.length() - originalStr.replaceAll("\\(", "").length(); int counter_rightParen = originalStr.length() - originalStr.replaceAll("\\)", "").length(); // check if the number of left ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void add(TokenType tokenType, TokenReader reader);", "public void addTokens(int amount) {\n \tnumTokens += amount;\n }", "private void addToken(TokenType type) {\n addToken(type, null);\n }", "public void addToken(int index, String token) {\n\t\tthis.tokenList.add(index, token);\n\t}", "pro...
[ "0.6203969", "0.6121134", "0.6060932", "0.5964658", "0.5951977", "0.5934772", "0.5898699", "0.5882496", "0.5882496", "0.5830841", "0.5809748", "0.57909524", "0.5789895", "0.5789441", "0.5751441", "0.5747349", "0.57323384", "0.57213306", "0.5626279", "0.5620351", "0.5560102", ...
0.5198591
42
Split the expression by operator '', and append the tokens to the lexeme list.
private static boolean splitBySubtractionAndAppendToLexemes(Lexemes lexemes, String expression, SymbolTable table) { if (expression.contains("-")) { String[] expressionArr = expression.split("-"); int finalIndex = expressionArr.length - 1; for (int i = 0; i <= finalIndex; i++) { String s = expressionArr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void parseExpression() {\n String regex = \"[ ]\";\n //\"?<=[-+*/()ep])|(?=[-+*/()ei]\";\n String[] splitString = infix.split(regex);\n infixList.addAll(Arrays.asList(splitString));\n }", "private static List<String> tokenize(String expression) {\r\n\t\tString[] arrayTokens ...
[ "0.6517003", "0.6180954", "0.6151769", "0.5865202", "0.5727937", "0.5674053", "0.55500406", "0.5456739", "0.5296673", "0.5206744", "0.51954174", "0.5177571", "0.51376927", "0.50839555", "0.50684005", "0.50132257", "0.5010442", "0.50008196", "0.49593455", "0.4955072", "0.49356...
0.44393355
86
Split the expression by operator '', and append the tokens to the lexeme list.
private static boolean splitByMultiplicationAndAppendToLexemes(Lexemes lexemes, String expression, SymbolTable table) { if (expression.contains("*")) { String[] expressionArr = expression.split("\\*"); int finalIndex = expressionArr.length - 1; for (int i = 0; i <= finalIndex; i++) { String s = expressi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void parseExpression() {\n String regex = \"[ ]\";\n //\"?<=[-+*/()ep])|(?=[-+*/()ei]\";\n String[] splitString = infix.split(regex);\n infixList.addAll(Arrays.asList(splitString));\n }", "private static List<String> tokenize(String expression) {\r\n\t\tString[] arrayTokens ...
[ "0.6517018", "0.6181938", "0.6150733", "0.5866897", "0.57290417", "0.5674402", "0.5549329", "0.5459999", "0.52974063", "0.5206191", "0.5196947", "0.5179024", "0.51372933", "0.5083736", "0.50692755", "0.5013946", "0.5013001", "0.50032544", "0.49592462", "0.49538705", "0.493798...
0.46945837
35
Split the expression by operator '/', and append the tokens to the lexeme list.
private static boolean splitByDivisionAndAppendToLexemes(Lexemes lexemes, String expression, SymbolTable table) { if (expression.contains("/")) { String[] expressionArr = expression.split("/"); int finalIndex = expressionArr.length - 1; for (int i = 0; i <= finalIndex; i++) { String s = expressionArr[i]...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void splitExpression(String expression, String op) {\n operator = new arithmetic_op(op);\n expression = expression.trim();\n int index = expression.indexOf(op);\n left = new arithmetic_ex((expression.substring(0, index)).trim());\n right = new arithmetic_ex((expression.sub...
[ "0.69107723", "0.6721014", "0.64798033", "0.6225949", "0.6028528", "0.5892119", "0.5793568", "0.57116586", "0.5689673", "0.56499076", "0.5602179", "0.55985415", "0.55041605", "0.54839945", "0.53189653", "0.5241229", "0.52407134", "0.5210767", "0.5184657", "0.5175794", "0.5156...
0.64263946
3
Check if the expression contains the "not" operator.
private static boolean checkNotOperations(String expression, Lexemes lexemes, SymbolTable table) { if (expression.contains("not")) { String[] arr = expression.split("not"); int finalIndex = arr.length - 1; for (int i = 0; i <= finalIndex; i++) { String s = arr[i]; if (table.contains(s)) { int ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean containsNotOperator() {\r\n\t\tfor (int n = 0; n < elements.size(); ++n) {\r\n\t\t\tObject ob = elements.get(n);\r\n\t\t\tif (ob instanceof Operator) {\r\n\t\t\t\tif (((Operator) ob).isNot()) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public static ...
[ "0.7738837", "0.7205139", "0.69867235", "0.69618225", "0.69607", "0.69328153", "0.6719161", "0.6678642", "0.66122955", "0.6566696", "0.6541229", "0.6516601", "0.64890367", "0.64884216", "0.6459797", "0.6425864", "0.6350497", "0.6350264", "0.6327457", "0.63141274", "0.63032275...
0.7588642
1
Check if the given expression contains "and" operator.
private static boolean checkAndOperations(String expression, Lexemes lexemes, SymbolTable table) { if (expression.contains("and")) { String[] arr = expression.split("and"); int finalIndex = arr.length - 1; for (int i = 0; i <= finalIndex; i++) { String s = arr[i]; if (table.contains(s)) { int ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Expression andExpression() throws SyntaxException {\r\n\t\tToken first = t;\r\n\t\tExpression e0 = eqExpression();\r\n\t\twhile(isKind(OP_AND)) {\r\n\t\t\tToken op = consume();\r\n\t\t\tExpression e1 = eqExpression();\r\n\t\t\te0 = new ExpressionBinary(first, e0, op, e1);\r\n\t\t}\r\n\t\treturn e0;\r\n\t}", "pub...
[ "0.7674308", "0.73348856", "0.73124117", "0.7288176", "0.7220713", "0.7177218", "0.7100793", "0.7094872", "0.70501035", "0.6963422", "0.69595456", "0.69346696", "0.6853111", "0.68022", "0.67412865", "0.67001176", "0.6677272", "0.6668396", "0.6609263", "0.65728384", "0.656558"...
0.7777989
0
Check if the given expression contains "or" operator.
private static boolean checkOrOperations(String expression, Lexemes lexemes, SymbolTable table) { if (expression.contains("or")) { String[] arr = expression.split("or"); int finalIndex = arr.length - 1; for (int i = 0; i <= finalIndex; i++) { String s = arr[i]; if (table.contains(s)) { int id =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean containsOrOperator() {\r\n\t\tfor (int n = 0; n < elements.size(); ++n) {\r\n\t\t\tObject ob = elements.get(n);\r\n\t\t\tif (ob instanceof Operator.OrOperator) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "Expression orExpression() throws SyntaxException {\r\n\t\tTok...
[ "0.7870916", "0.7585267", "0.7426264", "0.7200762", "0.7035824", "0.7023942", "0.6998178", "0.69663393", "0.6933157", "0.6931484", "0.6917217", "0.69028336", "0.68855584", "0.6875097", "0.68460387", "0.67576516", "0.6755379", "0.6723086", "0.6621075", "0.66024935", "0.6597191...
0.78336674
1
Check if the given expression contains == operator.
private static boolean checkEqualsToOperations(String expression, Lexemes lexemes, SymbolTable table) { if (expression.contains("==")) { String[] arr = expression.split("=="); int finalIndex = arr.length - 1; for (int i = 0; i <= finalIndex; i++) { String s = arr[i]; // check if the current word i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static boolean checkExpression() {\r\n String expression = \"\\nEXPRESSION:\";\r\n\r\n // term\r\n if (checkTerm()) {\r\n\r\n // term eq_v\r\n if (token.equals(\"EQUALS\") || token.equals(\"GREATER_THAN\") || token.equals(\"LESS_THAN\")\r\n || token.equ...
[ "0.6950088", "0.66424346", "0.6528298", "0.6347175", "0.62633604", "0.6252713", "0.6242281", "0.62357014", "0.62007225", "0.61407083", "0.61356354", "0.6132879", "0.6121545", "0.60708845", "0.605544", "0.6045172", "0.60342175", "0.60077345", "0.59898055", "0.5982223", "0.5954...
0.71122944
0
Check if the expression contains the relational operators.
private static boolean checkRelationalOperations(String expression, Lexemes lexemes, SymbolTable table) { String[] a1 = expression.split(">="); int length1 = a1.length - 1; for (int i = 0; i <= length1; i++) { String s1 = a1[i]; String[] a2 = s1.split(">"); int length2 = a2.length - 1; for (int j = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static boolean relationalOperator(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"relationalOperator\")) return false;\n boolean r;\n Marker m = enter_section_(b, l, _NONE_, RELATIONAL_OPERATOR, \"<relational operator>\");\n r = gtEq(b, l + 1);\n if (!r) r = consumeToken(b, GT);\n i...
[ "0.67339104", "0.6638848", "0.6554671", "0.63110816", "0.6285321", "0.6258819", "0.6200709", "0.61798006", "0.614649", "0.6145109", "0.61280864", "0.607248", "0.6069961", "0.60684246", "0.60436386", "0.6036764", "0.6014678", "0.60139453", "0.60110426", "0.59758604", "0.596498...
0.6042442
15
Acceptance Criteria 1 A player can pick up a key automatically when the player moves into the square containing it. Acceptance Criteria 2 When a key is picked up successfully, it should be automatically added to the player's item list.
@Test void testPickupKey1() { dungeon.setPlayer(player); dungeon.setGoal(goal); Key key = new Key(1,1); dungeon.addEntity(key); dungeon.clock("Down"); dungeon.clock("Right"); Key pickupKey = player.getKey(); assertEquals(pickupKey, key, "Player cannot pick up a key : " + pickupKey + "\n"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tvoid testPickupKey3() {\n\t\tdungeon.setPlayer(player);\n\t\tdungeon.setGoal(goal);\n\t\t\n\t\tKey key1 = new Key(1,1);\n\t\tkey1.pickedUpByPlayer(dungeon,player);\n\t\tKey pickup_key = player.getKey();\n\t\tassertEquals(pickup_key, key1, \"Player does not have a key : \" + pickup_key + \"\\n\");\n\t\t\n\...
[ "0.70271313", "0.6857501", "0.6490378", "0.62945026", "0.6277052", "0.62493813", "0.62446964", "0.6122408", "0.6066839", "0.60554576", "0.60074574", "0.5955769", "0.5952259", "0.5948438", "0.5886739", "0.5884113", "0.5881089", "0.58792675", "0.5856223", "0.58247274", "0.57998...
0.7109068
0
Acceptance Criteria 3 When a key is picked up successfully, the key entity should be removed from the dungeon entity so that it cannot be picked up again.
@Test void testPickupKey2() { dungeon.setPlayer(player); dungeon.setGoal(goal); Key key = new Key(1,1); dungeon.addEntity(key); dungeon.clock("Down"); dungeon.clock("Right"); Key pickupKey = player.getKey(); assertEquals(pickupKey, key, "Player cannot pick up a key : " + pickupKey + "\n"); K...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tvoid testPickupKey1() {\n\t\tdungeon.setPlayer(player);\n\t\tdungeon.setGoal(goal);\n\t\t\n\t\tKey key = new Key(1,1);\n\t\tdungeon.addEntity(key);\n\t\tdungeon.clock(\"Down\");\n\t\tdungeon.clock(\"Right\");\n\t\t\n\t\tKey pickupKey = player.getKey();\n\t\tassertEquals(pickupKey, key, \"Player cannot pic...
[ "0.654119", "0.64275295", "0.6285957", "0.5878974", "0.58527136", "0.5836074", "0.5796641", "0.56609786", "0.5585878", "0.5569507", "0.5535893", "0.5533712", "0.55174947", "0.5501803", "0.54454505", "0.54172534", "0.53824586", "0.5378391", "0.53778064", "0.5367695", "0.536477...
0.6850369
0
Acceptance Criteria 4 A player can carry only 1 key at a time.
@Test void testPickupKey3() { dungeon.setPlayer(player); dungeon.setGoal(goal); Key key1 = new Key(1,1); key1.pickedUpByPlayer(dungeon,player); Key pickup_key = player.getKey(); assertEquals(pickup_key, key1, "Player does not have a key : " + pickup_key + "\n"); Key key2 = new Key(1,2); dungeon.a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tvoid testPickupKey1() {\n\t\tdungeon.setPlayer(player);\n\t\tdungeon.setGoal(goal);\n\t\t\n\t\tKey key = new Key(1,1);\n\t\tdungeon.addEntity(key);\n\t\tdungeon.clock(\"Down\");\n\t\tdungeon.clock(\"Right\");\n\t\t\n\t\tKey pickupKey = player.getKey();\n\t\tassertEquals(pickupKey, key, \"Player cannot pic...
[ "0.6941934", "0.6344258", "0.6159414", "0.6033529", "0.60280824", "0.5812947", "0.5798286", "0.5779613", "0.5752901", "0.5716191", "0.5694932", "0.5685457", "0.5644757", "0.5637915", "0.5627735", "0.55942446", "0.55908155", "0.5583952", "0.5568541", "0.556694", "0.5563481", ...
0.65566576
1
This method was generated by MyBatis Generator. This method returns the value of the database column bach_datastage_parameters.identifier
public String getIdentifier() { return identifier; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getStageId();", "public int getId() {\n return parameter.getId();\n }", "java.lang.String getParameterId();", "public java.lang.String getParameterId() {\n java.lang.Object ref = parameterId_;\n if (!(ref instanceof java.lang.String)) {\n com.google.pro...
[ "0.6355254", "0.61950547", "0.61076605", "0.6049274", "0.6034224", "0.59472394", "0.5926971", "0.58429587", "0.5820819", "0.5431572", "0.53831375", "0.5358435", "0.53333646", "0.5271857", "0.5271857", "0.5267218", "0.5250537", "0.52080905", "0.51964986", "0.5183986", "0.51645...
0.48131952
74
This method was generated by MyBatis Generator. This method sets the value of the database column bach_datastage_parameters.identifier
public void setIdentifier(String identifier) { this.identifier = identifier == null ? null : identifier.trim(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setIdentifierValue(java.lang.String param) {\r\n localIdentifierValueTracker = true;\r\n\r\n this.localIdentifierValue = param;\r\n\r\n\r\n }", "public void setSpId(java.lang.String param){\r\n \r\n if (para...
[ "0.5773585", "0.54984534", "0.5441832", "0.5318846", "0.5286853", "0.52520674", "0.522218", "0.5186498", "0.518147", "0.5145119", "0.51303583", "0.50979817", "0.5087797", "0.5055917", "0.5037695", "0.502715", "0.50222987", "0.5003487", "0.5003487", "0.49996918", "0.49777824",...
0.4815246
33
This method was generated by MyBatis Generator. This method returns the value of the database column bach_datastage_parameters.modified_time
public String getModifiedTime() { return modifiedTime; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Date getModifiedTime() {\n return modifiedTime;\n }", "public OffsetDateTime getModifiedTime()\n\t{\n\t\treturn (OffsetDateTime) this.getKeyValue(\"Modified_Time\");\n\n\t}", "public java.sql.Timestamp getModified() {\n return modified;\n }", "public String getModifyEndTime() {\n ...
[ "0.69491637", "0.6871069", "0.68599194", "0.67662275", "0.67597026", "0.66580504", "0.66550595", "0.6624861", "0.66025037", "0.65930533", "0.6565477", "0.65390134", "0.65390134", "0.65390134", "0.65390134", "0.6536054", "0.6531246", "0.65300816", "0.65069836", "0.6429418", "0...
0.69599336
0
This method was generated by MyBatis Generator. This method sets the value of the database column bach_datastage_parameters.modified_time
public void setModifiedTime(String modifiedTime) { this.modifiedTime = modifiedTime == null ? null : modifiedTime.trim(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setModified(java.sql.Timestamp tmp) {\n this.modified = tmp;\n }", "public void setModifiedTime(Date modifiedTime) {\n this.modifiedTime = modifiedTime;\n }", "public void setModifiedTime(OffsetDateTime modifiedTime)\n\t{\n\t\t this.addKeyValue(\"Modified_Time\", modifiedTime);\n\n\t}...
[ "0.6662471", "0.65935946", "0.6448438", "0.64206195", "0.630846", "0.630846", "0.62746686", "0.6268332", "0.6226735", "0.6208045", "0.6176924", "0.6176924", "0.6176924", "0.6029036", "0.60040337", "0.5999818", "0.5989716", "0.5980788", "0.59562117", "0.59562117", "0.59319115"...
0.610396
13
This method was generated by MyBatis Generator. This method returns the value of the database column bach_datastage_parameters.name
public String getName() { return name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getParameterName()\n {\n checkPrecondition(hasParameterName(), \"no parameter name\");\n return this.paramName;\n }", "public String getParameterName() {\n return this.parameterName;\n }", "public String getParameterName()\r\n\t{\r\n\t\treturn this.paramName;\r\n\t}"...
[ "0.6344204", "0.6296731", "0.6262494", "0.6098275", "0.60823876", "0.6080589", "0.6077336", "0.60650134", "0.6046123", "0.58964443", "0.5887973", "0.5864685", "0.58520305", "0.5828744", "0.5805009", "0.57914114", "0.5786216", "0.5765838", "0.5756354", "0.5746008", "0.5737943"...
0.0
-1
This method was generated by MyBatis Generator. This method sets the value of the database column bach_datastage_parameters.name
public void setName(String name) { this.name = name == null ? null : name.trim(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setParameterData(String param_state, String param_name)\n {\n this.paramState = param_state;\n this.paramName = param_name;\n }", "void setParameter(String name, String value);", "public void setStageName(String stageName) {\n this.stageName = stageName;\n }", "void setPar...
[ "0.61493933", "0.5849107", "0.57482517", "0.567268", "0.56204545", "0.56143564", "0.5471327", "0.54478246", "0.54363704", "0.5415764", "0.5406958", "0.5358696", "0.5357568", "0.53398573", "0.5296457", "0.5226877", "0.52153325", "0.5200557", "0.5190755", "0.5155068", "0.515481...
0.0
-1
This method was generated by MyBatis Generator. This method returns the value of the database column bach_datastage_parameters.prompt
public String getPrompt() { return prompt; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getPrompt(){\n\t\treturn getString(KEY_PROMPT);\n\t}", "public String getPrompt() { return prompt; }", "public String getPrompt(){ return _prompt ; }", "public String getPrompt() {\n\t\treturn prompt;\n\t}", "java.lang.String getParameterValue();", "public Prompt getPrompt() {\n retu...
[ "0.57937163", "0.57648927", "0.5677077", "0.56322354", "0.55509883", "0.54520285", "0.5336982", "0.51870817", "0.5039937", "0.50133646", "0.50077397", "0.50077397", "0.4946621", "0.49334687", "0.49147803", "0.4907937", "0.48944297", "0.48928627", "0.4889005", "0.48554185", "0...
0.5705173
2
This method was generated by MyBatis Generator. This method sets the value of the database column bach_datastage_parameters.prompt
public void setPrompt(String prompt) { this.prompt = prompt == null ? null : prompt.trim(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPrompt(Prompt prmpt) {\n this.prompt = prmpt;\n }", "public void setPrompt(String prompt) {\n\t\tthis.prompt = prompt;\n\t}", "public void setPrompt(String prompt){\n\t\tsetValue(KEY_PROMPT, prompt);\n\t}", "@Override\r\n\tpublic void setParameter2Screen(String value) {\n\t\t\r\n\t}"...
[ "0.5586307", "0.5300638", "0.52496177", "0.49091175", "0.4906768", "0.4902083", "0.48671964", "0.48396832", "0.4786702", "0.47855964", "0.4756439", "0.47370884", "0.47281632", "0.4697853", "0.46639654", "0.46508425", "0.4634066", "0.4601402", "0.4599886", "0.45944238", "0.458...
0.51046205
3
This method was generated by MyBatis Generator. This method returns the value of the database column bach_datastage_parameters.param_type
public String getParamType() { return paramType; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getParameterType() { return parameterType; }", "public ParameterType getType();", "public java.lang.Integer getParameterType() {\r\n return parameterType;\r\n }", "private static String getSqlParameter(String type) {\n switch (type) {\n case \"boolean\":\n ...
[ "0.72399366", "0.6827505", "0.6760827", "0.6453931", "0.61687744", "0.6079534", "0.6077363", "0.6018078", "0.60144407", "0.6011807", "0.599343", "0.599343", "0.599343", "0.599343", "0.599343", "0.599343", "0.599343", "0.599343", "0.599343", "0.599343", "0.599343", "0.594774...
0.69903165
2
This method was generated by MyBatis Generator. This method sets the value of the database column bach_datastage_parameters.param_type
public void setParamType(String paramType) { this.paramType = paramType == null ? null : paramType.trim(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setParamType(String paramType) {\n this.paramType = paramType;\n }", "public void setType(int paramtype)\r\n\t{\r\n\t\ttype = paramtype;\r\n\t}", "public void setParameterType(java.lang.Integer parameterType) {\r\n this.parameterType = parameterType;\r\n }", "@Override\r\n\tpu...
[ "0.6690879", "0.66659164", "0.65967715", "0.6152042", "0.6107717", "0.6107392", "0.6063509", "0.59060234", "0.5780149", "0.5766711", "0.5714172", "0.56651324", "0.5651246", "0.56312126", "0.56312126", "0.56294125", "0.5602672", "0.5553163", "0.55498016", "0.54619235", "0.5410...
0.6442697
3
This method was generated by MyBatis Generator. This method returns the value of the database column bach_datastage_parameters.param_length
public String getParamLength() { return paramLength; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getMaxParamValueLength() {\r\n return maxParamValueLength;\r\n }", "public int getParameterSize();", "public final com.francetelecom.admindm.model.Parameter getParamSize() {\n\t\treturn paramSize;\n\t}", "public int length() {\n return (parameters == null) ? 0 : parameters.length;\n ...
[ "0.68998414", "0.6714214", "0.6524572", "0.63944525", "0.62158364", "0.62158364", "0.6134966", "0.6130138", "0.6070967", "0.60611", "0.6056617", "0.59291494", "0.59036076", "0.5898897", "0.5897526", "0.5858906", "0.585869", "0.585869", "0.5855467", "0.5834232", "0.5798851", ...
0.7433954
0
This method was generated by MyBatis Generator. This method sets the value of the database column bach_datastage_parameters.param_length
public void setParamLength(String paramLength) { this.paramLength = paramLength == null ? null : paramLength.trim(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setMaxParamValueLength(int maxParamValueLength) {\r\n this.maxParamValueLength = maxParamValueLength;\r\n }", "public String getParamLength() {\n return paramLength;\n }", "public int getMaxParamValueLength() {\r\n return maxParamValueLength;\r\n }", "public int getP...
[ "0.62379915", "0.6048063", "0.5822025", "0.5548791", "0.5537281", "0.5512191", "0.5412852", "0.5375173", "0.5375173", "0.53605115", "0.53133595", "0.52614266", "0.5230516", "0.52300376", "0.52261573", "0.5190552", "0.51803154", "0.51803154", "0.5177905", "0.5171885", "0.51693...
0.66623396
0
This method was generated by MyBatis Generator. This method returns the value of the database column bach_datastage_parameters.param_scale
public String getParamScale() { return paramScale; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setParamScale(String paramScale) {\n this.paramScale = paramScale == null ? null : paramScale.trim();\n }", "public Integer getScale() {\n return _scale;\n }", "public Integer getScale() {\n return _scale;\n }", "public int getScaleValue() {\r\n return Sca...
[ "0.6446663", "0.61573416", "0.61573416", "0.6081276", "0.60479647", "0.6039918", "0.60243136", "0.6014079", "0.59641254", "0.59634215", "0.5950484", "0.5916191", "0.5909691", "0.5907859", "0.58657146", "0.5862533", "0.58596486", "0.5835781", "0.58260494", "0.582241", "0.58195...
0.77185166
0
This method was generated by MyBatis Generator. This method sets the value of the database column bach_datastage_parameters.param_scale
public void setParamScale(String paramScale) { this.paramScale = paramScale == null ? null : paramScale.trim(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getParamScale() {\n return paramScale;\n }", "public final void setScale(float scale) {\n\t\n \tthis.svd(this);\n \tthis.mul(scale);\n }", "public void setScale(float scale);", "public void setScaleFactor(float scale){\n scaleFactor = scale;\n }", "public void set...
[ "0.68069845", "0.6103121", "0.60887676", "0.5955894", "0.5933416", "0.58632845", "0.5821156", "0.5809966", "0.57999855", "0.5793042", "0.5762089", "0.57232654", "0.5720263", "0.5709363", "0.5652675", "0.5652675", "0.561161", "0.5598772", "0.5577182", "0.5550917", "0.55381095"...
0.6872234
0
This method was generated by MyBatis Generator. This method returns the value of the database column bach_datastage_parameters.update_time
public String getUpdateTime() { return updateTime; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Long getUpdateDatetime() {\n return updateDatetime;\n }", "public Date getUpdate_time() {\n return update_time;\n }", "public Date getUpdate_time() {\n return update_time;\n }", "public java.sql.Timestamp getUpdateTime () {\r\n\t\treturn updateTime;\r\n\t}", "public Str...
[ "0.69130254", "0.6743512", "0.6743512", "0.6684059", "0.66796523", "0.66796523", "0.6668826", "0.6668826", "0.6662663", "0.6653714", "0.6609822", "0.6569724", "0.65686685", "0.65515745", "0.65515745", "0.6539258", "0.6522741", "0.6489415", "0.6467569", "0.6467569", "0.6467569...
0.6249098
40
This method was generated by MyBatis Generator. This method sets the value of the database column bach_datastage_parameters.update_time
public void setUpdateTime(String updateTime) { this.updateTime = updateTime == null ? null : updateTime.trim(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setUpdate_time(Date update_time) {\n this.update_time = update_time;\n }", "public void setUpdate_time(Date update_time) {\n this.update_time = update_time;\n }", "public void setUpdateTime(Date updateTime)\n/* */ {\n/* 198 */ this.updateTime = updateTime;\n/* */ ...
[ "0.6738128", "0.6738128", "0.6617948", "0.6595325", "0.65520924", "0.6487659", "0.6487659", "0.64068955", "0.63548046", "0.63489175", "0.63489175", "0.63414973", "0.63133776", "0.62700444", "0.62700444", "0.62700444", "0.62700444", "0.6202356", "0.6202356", "0.6202356", "0.61...
0.57092434
100
Outcome: For small coin values, memoization is an overhead for dynamic programming solution, so the recursive solution is faster for small inputs / coin values. For large coin values, search space increases (2^n), and memoization in dynamic programming saves time, and therefore, dynamic programming solution becomes muc...
public static void main(String[] args) { int n = 4; long[] coins1 = {1, 2, 3}; runTestCase(n, coins1); /* Number of ways: 4 Recursive: 4,595 ns Dynamic programming: 538,243 ns */ // Test 2 n = 10; long[] coins2 = {2, 3,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static int solveMemo(int n) \n\t{ \n\t // base case \n\t if (n < 0) \n\t return 0; \n\t if (n == 0) \n\t return 1; \n\t \n\t // checking if already calculated \n\t if (dp[n]!=-1) \n\t return dp[n]; \n\t \n\t // storing the result and returning \n\t return dp[n] = solveMemo(n-1) + solv...
[ "0.6768522", "0.67076844", "0.66762805", "0.6522096", "0.64525306", "0.63088536", "0.6269211", "0.6191518", "0.6144117", "0.595757", "0.5957045", "0.59546643", "0.59333843", "0.58975077", "0.5821297", "0.5819514", "0.581677", "0.5781248", "0.5776795", "0.5769327", "0.5767369"...
0.6461296
4
TODO Autogenerated method stub
@Override public Object clone() throws CloneNotSupportedException { return super.clone(); }
{ "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
Created by yannick on 02.12.15.
public interface Outpath { String getValue(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void poetries() {\n\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "private static void cajas() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\n\tpublic v...
[ "0.54423743", "0.5438031", "0.54326856", "0.5411008", "0.5395958", "0.537211", "0.5362207", "0.53537285", "0.5335879", "0.53085536", "0.53071064", "0.5296843", "0.5293906", "0.5287394", "0.5285059", "0.528294", "0.528294", "0.52772504", "0.5241514", "0.5221694", "0.52216715",...
0.0
-1
TODO Autogenerated method stub
@Override public JSONObject getNonparticipationExamList(Map<String, Object> param) { Set<String> classIdSet = new HashSet<String>(); String cid = param.get("tClassId") != null ? param.get("tClassId") .toString() : ""; JSONObject result = new JSONObject(); School sch = (School) param.get("school"); param....
{ "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 saveNonparticipationExamList(Map<String, Object> param) { ExamManagement em = examManagementDao.getExamManagementListById(param, param.get("termInfo").toString()); if (em == null) { throw new CommonRunException(0, "没有查询到相应的考试信息,请刷新页面!"); } Integer autoIncr = em.getAutoIncr(); par...
{ "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 serializabdeleteNonparticipation(Map<String, Object> param) { ExamManagement em = examManagementDao.getExamManagementListById(param, param.get("termInfo").toString()); if (em == null) { throw new CommonRunException(0, "没有查询到相应的考试信息,请刷新页面!"); } String accountId=param.get("accountId"...
{ "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 JSONObject getUserExamPlace(Map<String, Object> param) { JSONObject re = new JSONObject(); String name = param.containsKey("name") && !param.get("name").toString().isEmpty() ? param.get("name") .toString() : ""; ExamManagement em = examManagementDao.getExamManagementListById(param, p...
{ "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<JSONObject> studsWaiting(Map<String, Object> param) { String name = param.containsKey("name") && param.get("name") != null && !param.get("name").toString().isEmpty() ? param.get("name") .toString() : ""; ExamManagement em = examManagementDao.getExamManagementListById(param, param....
{ "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 deleteStudToExamPlace(Map<String, Object> param) { ExamManagement em = examManagementDao.getExamManagementListById(param, param.get("termInfo").toString()); if (em == null) { throw new CommonRunException(0, "没有查询到相应的考试信息,请刷新页面!"); } Integer autoIncr = em.getAutoIncr(); param.put(...
{ "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 deleteStudToWait(Map<String, Object> param) { ExamManagement em = examManagementDao.getExamManagementListById(param, param.get("termInfo").toString()); if (em == null) { throw new CommonRunException(0, "没有查询到相应的考试信息,请刷新页面!"); } Integer autoIncr = em.getAutoIncr(); param.put("auto...
{ "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 saveArrangeExamResult(Map<String, Object> param) { ExamManagement em = examManagementDao.getExamManagementListById(param, param.get("termInfo").toString()); if (em == null) { throw new CommonRunException(0, "没有查询到相应的考试信息,请刷新页面!"); } Integer autoIncr = em.getAutoIncr(); param.put(...
{ "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
Fail, Manager try to add customer without Username
@Test public void testLoginFuncCustomerFail() { ManagerAddCustomer view = new ManagerAddCustomer(); view.UserNameField.setText(""); view.PasswordField.setText("123456"); view.CityField.setText("Rishon LeZion"); view.LastNameField.setText(""); view.AgeField.setText("15"); view.FirstNameField.setText("O...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void addCustomer() {\n try {\n FixCustomerController fixCustomerController = ServerConnector.getServerConnector().getFixCustomerController();\n\n FixCustomer fixCustomer = new FixCustomer(txtCustomerName.getText(), txtCustomerNIC.getText(), String.valueOf(comJobrole.getSelected...
[ "0.70359755", "0.6855221", "0.67549086", "0.6719006", "0.6690467", "0.6686299", "0.6684279", "0.6666296", "0.6608243", "0.6527087", "0.64720917", "0.6470109", "0.6441407", "0.642781", "0.6399081", "0.6398898", "0.6368048", "0.6321393", "0.6242916", "0.6193622", "0.61935407", ...
0.6432059
13
use one topic for the test. this topic will be gotten from a list of topics.
public void testContentCreationTest() { Question question = new Question("Q title test", "Q body test", "Q author id test"); Answer answer = new Answer("A body test", "A author id test"); Reply reply = new Reply("R body test", "R author id test"); User user = new User(); //adds the question of the topic to an...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTopic( String topic ) {\n this.topic = topic;\n }", "public void setTopic(String topic) {\n this.topic = topic;\n }", "public void setTopic(Topic topic) {\n this.topic = topic;\n }", "public void setTopic(String topic) {\n\t\tthis.topic = topic;\n\t}", "public void se...
[ "0.7361574", "0.72980237", "0.7251141", "0.7041978", "0.7041978", "0.69850594", "0.6965034", "0.6912035", "0.6881975", "0.6850132", "0.6833444", "0.6757424", "0.6689305", "0.66578686", "0.6652724", "0.6592171", "0.6562455", "0.6514861", "0.65146685", "0.64972603", "0.6485458"...
0.0
-1
SQLite CREATE TABLE command String
@Override public void onCreate(SQLiteDatabase sqLiteDatabase) { final String SQL_CREATE_MOVIES_TABLE = "CREATE TABLE IF NOT EXISTS " + MoviesEntry.TABLE_NAME + " (" + MoviesEntry._ID + " INTEGER PRIMARY KEY AUTOINCREMENT, " + MoviesEntry.COLUMN...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String createTable() {\n\n String statement = \"CREATE TABLE \" + tableName + \"( \";\n\n //go through INTEGER, FLOAT, TEXT columns\n Iterator iterator = Iterables.filter(columns.entrySet(), entry -> entry.getValue().getType() instanceof String).iterator();\n\n while (iterator.ha...
[ "0.7547475", "0.7497626", "0.7488151", "0.72765034", "0.71960175", "0.7172055", "0.71471715", "0.7087402", "0.7082252", "0.70531076", "0.70229316", "0.6997997", "0.6964707", "0.6911303", "0.6843811", "0.68302804", "0.682934", "0.67972404", "0.6748437", "0.6731772", "0.6725129...
0.0
-1
Converting the gridData into something that can be put into an actual .cas file.
private HashMap<CastlePoint, BuildingType> convertGridData(TileBuilding[][] gd) { //HashMap<BuildingId, TreeSet<CastlePoint>> to filter same building IDs HashMap<Integer, TreeSet<CastlePoint>> structureMap = new HashMap<Integer, TreeSet<CastlePoint>>(); for (int i = 0; i < gridData.length; i++) for (int j = 0;...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void convertCsvDataToSQLScrip(List<CorruptionIndex> data, String destinationFile){\n\n }", "private void convertTablesToXTCE(List<TableInfo> tableDefs,\n boolean includeBuildInformation,\n EndianType endianess,\n ...
[ "0.4848159", "0.4628891", "0.4628159", "0.45328212", "0.45250967", "0.44967166", "0.44591236", "0.44521534", "0.44217783", "0.43781975", "0.43481243", "0.4333451", "0.43222344", "0.43169087", "0.43157035", "0.4311635", "0.430929", "0.42886308", "0.42687464", "0.42644647", "0....
0.0
-1
face programare din alta sursa (telefon, site, etc)
public Appointment makeAppointment(String date, Long medicId, String personName) { Medic medic = medicalOfficeService.getMedicService().getMedicById(medicId); if(medic==null) throw new RuntimeException("The medic "+medicId+" does not exist!"); if(medic.getAppointments().contains(date)) throw ne...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getTelefon();", "public static void traduitSiteFrancais() {\n\t\t\n\t}", "private void teletransportar(Personaje p, Celda destino) {\n // TODO implement here\n }", "public void tocarTelefone() {\n System.out.println(\"Telefone \" + getNumero() + \" está tocando!\");\n ...
[ "0.6696893", "0.64452225", "0.6173985", "0.6105865", "0.6102192", "0.60990447", "0.60939914", "0.60663766", "0.60266936", "0.6018608", "0.60130763", "0.5995453", "0.5885873", "0.57619786", "0.57546514", "0.5753744", "0.57420766", "0.57418", "0.5732408", "0.5731207", "0.572521...
0.0
-1
face programare la receptie (in persoana)
public Appointment makeAppointmentForPatient(String date, Long medicId, String personCnp) { Medic medic = medicalOfficeService.getMedicService().getMedicById(medicId); if(medic==null) throw new RuntimeException("The medic "+medicId+" does not exist!"); if(medic.getAppointments().contains(date))...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public IRecepteur quiEstAuDessus();", "public interface IRecepteur {\n\t\n\t\n\t/**\n\t * Methode permettant de recevoir un porcelet\n\t * @param p le porcelet \n\t */\n\tpublic void recevoir(IPorcelet p);\n\t\n\t/**\n\t * Methode permettant d'acceder au porcelet en dessous\n\t * @return le porcelet en dessous :...
[ "0.66129535", "0.6548738", "0.65457773", "0.6504039", "0.6342174", "0.6324539", "0.6289803", "0.62670714", "0.6239531", "0.61863744", "0.61597615", "0.61439073", "0.6126652", "0.6117337", "0.6095255", "0.60866", "0.6061846", "0.60511005", "0.60366136", "0.60352534", "0.603015...
0.0
-1
incepe consult in urma programarii
public Papers beginConsult(String appointmentKey, String personName, String personCnp, String personBirthDate) { Appointment appointment = reception.getAppointments().get(appointmentKey); Patient patient = getMedicalOfficeService().getMedicalOffice().getPatients().get(personCnp); if(patient == ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Jugador consultarGanador();", "public void consultasSeguimiento() {\r\n try {\r\n switch (opcionMostrarAnalistaSeguim) {\r\n case \"Cita\":\r\n ListSeguimientoRadicacionesConCita = Rad.ConsultasRadicacionYSeguimiento(2, mBsesion.codigoMiSesion());\r\n ...
[ "0.6560009", "0.65342903", "0.626771", "0.62635326", "0.62109244", "0.62099147", "0.6207268", "0.61908215", "0.6150957", "0.6129576", "0.61223805", "0.6112864", "0.6073625", "0.60638547", "0.6031669", "0.6018967", "0.6007557", "0.6002096", "0.6000271", "0.5978681", "0.5977024...
0.0
-1
incepe consult fara programare
public Papers beginConsult(String date, Long medicId, String personName, String personCnp, String personBirthDate) { Medic medic = medicalOfficeService.getMedicService().getMedicById(medicId); if(medic==null) throw new RuntimeException("The medic "+medicId+" does not exist!"); if(medic.getAppoi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Jugador consultarGanador();", "public void consultasSeguimiento() {\r\n try {\r\n switch (opcionMostrarAnalistaSeguim) {\r\n case \"Cita\":\r\n ListSeguimientoRadicacionesConCita = Rad.ConsultasRadicacionYSeguimiento(2, mBsesion.codigoMiSesion());\r\n ...
[ "0.66003054", "0.6579117", "0.6465066", "0.6308166", "0.6305957", "0.6259396", "0.62514955", "0.6241072", "0.62211543", "0.6188062", "0.6177761", "0.6177068", "0.616642", "0.61501896", "0.6133245", "0.613143", "0.6125571", "0.61157036", "0.61132944", "0.6110579", "0.61042666"...
0.0
-1
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jScrollPane2 = new javax.swing.JScrollPane(); emergencyRequestTable1 = new javax.swing.JTable(); jButton2 = new javax.swing.JButton();...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n ...
[ "0.73191524", "0.7290383", "0.7290383", "0.7290383", "0.7286656", "0.72480965", "0.72141695", "0.72080517", "0.7195647", "0.7190378", "0.71841127", "0.71591616", "0.71478844", "0.7093131", "0.70816", "0.70577854", "0.6987355", "0.69769996", "0.69551086", "0.69545007", "0.6945...
0.0
-1
The functional interface representing the Lambda Expression of this anonymous class. This interface should point to the actual lambda expression to be executed.
@FunctionalInterface public interface Expression<V> { V getExpressionResult(Program p); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface Lambda<T> {\n\n\t\t/** Apply the lambda.\n\t\t *\n\t\t * @param object - the object on whic hthe lambda must be applied.\n\t\t */\n\t\tvoid apply(T object);\n\n\t}", "public double getLambda() {\n return lambda;\n }", "private Function createLambdaFunction()\n {\n return lambd...
[ "0.69643575", "0.6617296", "0.6570075", "0.6566285", "0.64554757", "0.6401551", "0.61682224", "0.6137008", "0.6038033", "0.60280204", "0.5961977", "0.59555835", "0.58502316", "0.58332956", "0.5827324", "0.58145976", "0.5808296", "0.5773015", "0.5747782", "0.5747026", "0.57468...
0.5898635
12
Can actually be replaced by the Unary expression above as Assignment == Unary
@FunctionalInterface public interface Assignment<V> { V set(Program p,V v); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static BinaryExpression assign(Expression left, Expression right) { throw Extensions.todo(); }", "public static BinaryExpression addAssign(Expression expression0, Expression expression1) { throw Extensions.todo(); }", "public static BinaryExpression addAssignChecked(Expression expression0, Expression ex...
[ "0.6647625", "0.6516268", "0.64753836", "0.6402756", "0.63462937", "0.6218308", "0.6192036", "0.60869396", "0.60831165", "0.60358226", "0.6023714", "0.6021663", "0.6016451", "0.60043895", "0.59792167", "0.5968828", "0.59567064", "0.5949379", "0.59414977", "0.5928697", "0.5921...
0.54510564
65