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
define the title of plane selection page
public void title(){ textFont(select,30); fill(150); text("PLANE SELECT",482,72); fill(0); text("PLANE SELECT",480,70); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void Title ()\n {\n\tTitle = new Panel ();\n\tTitle.setBackground (Color.white);\n\tchessboard (Title);\n\tp_screen.add (\"1\", Title);\n }", "private void setupTitle(){\n\t\tJLabel title = new JLabel(quiz_type.toString()+\": \"+parent_frame.getDataHandler().getLevelNames().get(parent_frame.getDataH...
[ "0.73424226", "0.7155317", "0.71366525", "0.71366525", "0.71366525", "0.71366525", "0.71366525", "0.706285", "0.7057173", "0.7049115", "0.7049115", "0.7049115", "0.7026132", "0.6977054", "0.694878", "0.6946698", "0.6946119", "0.69339836", "0.6912738", "0.6904179", "0.68555677...
0.7572281
0
Draw the feature of plane
public void feature(float x, float y){ fill(150); textFont(feature,12); text("LETHAL",x,y); text("DEFENSE",x,y+18); text("BOMB",x,y+36); text("AGILITY",x,y+54); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void draw_plane(Graphics g, int log_num, int i);", "public void mark_plane(Graphics g, int log_num, int x, int y, int h);", "private void render(){\n planeImage.draw(currPos.x,currPos.y, drawOps);\n }", "public abstract void drawFeature(GeoJSONFeature feature, BoundingBox boundingBox, byte z...
[ "0.7292615", "0.70132196", "0.6913582", "0.6117335", "0.61046225", "0.5965875", "0.5918374", "0.5897971", "0.569963", "0.56756186", "0.56710535", "0.5665825", "0.5656716", "0.56503195", "0.5638646", "0.5638646", "0.5638646", "0.5638646", "0.56276953", "0.56118727", "0.5606603...
0.58878535
8
draw the selection page
public void strength1(float x, float y){ noStroke(); fill(80); rect(x+7,y,66,6); bezier(x+7,y,x,y+1,x,y+5,x+7,y+6); bezier(x+73,y,x+80,y+1,x+80,y+5,x+73,y+6); rect(x+7,y+1,13,3);//1st blue ba bezier(x+7,y+1,x+1,y+2.5f,x+1,y+3.5f,x+7,y+4); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void draw(){\n\t\tif(!visible) return;\n\n\t\twinApp.pushStyle();\n\t\twinApp.style(G4P.g4pStyle);\n\t\tPoint pos = new Point(0,0);\n\t\tcalcAbsPosition(pos);\n\n\t\t// Draw selected option area\n\t\tif(border == 0)\n\t\t\twinApp.noStroke();\n\t\telse {\n\t\t\twinApp.strokeWeight(border);\n\t\t\twinApp.stro...
[ "0.74065804", "0.71557677", "0.69538105", "0.6794125", "0.637082", "0.6366316", "0.63405514", "0.63013995", "0.62862414", "0.6285295", "0.6212342", "0.61987835", "0.6179169", "0.61749536", "0.6164928", "0.61605316", "0.6107619", "0.6070298", "0.6051495", "0.60412115", "0.6037...
0.0
-1
draw the US plane
public void usa(){ stroke(1); //back guns fill(0); rect(73,192,4,15); rect(224,192,4,15); rect(71,207,8,15); rect(222,207,8,15); rect(66,207,3,15); rect(232,207,3,17); rect(122,109,4,15); rect(175,110,4,15); rect(121,120,6,15); rect(174,120,6,15); rect(116,124,3,1...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void draw_plane(Graphics g, int log_num, int i);", "void draw() {\n\t\t// display debug information\n\t\t// if (debugMode)\n\t\t// displayDebugInformation();\n\n\t\tupdate();\n\t\trender(); // display freetransform points, lines and colorings\n\n\t\t// display opposite objects\n\t\t// displayOppositeObjec...
[ "0.661921", "0.66065997", "0.6515994", "0.64545214", "0.6391024", "0.6355836", "0.6331783", "0.6331243", "0.63173914", "0.6297884", "0.6270391", "0.6270391", "0.6270391", "0.6270391", "0.62620604", "0.6233397", "0.6219141", "0.6213291", "0.61944103", "0.6164763", "0.6141551",...
0.5811665
67
draw the russia plane
public void russia(){ stroke(1); //back guns fill(0); rect(73,192,4,15); rect(224,192,4,15); rect(71,207,8,15); rect(222,207,8,15); rect(66,207,3,15); rect(232,207,3,17); rect(122,109,4,15); rect(175,110,4,15); rect(121,120,6,15); rect(174,120,6,15); rect(116,124,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void draw_plane(Graphics g, int log_num, int i);", "private void render(){\n planeImage.draw(currPos.x,currPos.y, drawOps);\n }", "public void SRU() {\n\t\tgl.glColor3f(1.0f, 0.0f, 0.0f);\n\t\tgl.glLineWidth(1.0f);\n\t\tgl.glBegin( GL.GL_LINES );\n\t\t\tgl.glVertex2f( -200.0f, 0.0f );\n\t\t\tg...
[ "0.6629113", "0.62455595", "0.62012285", "0.60765135", "0.5917666", "0.59125215", "0.5901925", "0.59010506", "0.57873136", "0.5717227", "0.57052654", "0.567642", "0.56630147", "0.5638433", "0.56346536", "0.56340414", "0.5607406", "0.56060493", "0.56057405", "0.55913836", "0.5...
0.65678406
1
draw the syria plane
public void syria(){ stroke(1); //back guns fill(0); rect(73,192,4,15); rect(224,192,4,15); rect(71,207,8,15); rect(222,207,8,15); rect(66,207,3,15); rect(232,207,3,17); rect(122,109,4,15); rect(175,110,4,15); rect(121,120,6,15); rect(174,120,6,15); rect(116,124,3...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void draw_plane(Graphics g, int log_num, int i);", "public void SRU() {\n\t\tgl.glColor3f(1.0f, 0.0f, 0.0f);\n\t\tgl.glLineWidth(1.0f);\n\t\tgl.glBegin( GL.GL_LINES );\n\t\t\tgl.glVertex2f( -200.0f, 0.0f );\n\t\t\tgl.glVertex2f( 200.0f, 0.0f );\n\t\t\tgl.glEnd();\n\t\t// eixo y\n\t\tgl.glColor3f(0.0f, 1....
[ "0.6609521", "0.66057616", "0.63492584", "0.6316947", "0.62914646", "0.6225562", "0.61977065", "0.61598873", "0.6148164", "0.6100577", "0.6094347", "0.6071875", "0.60107535", "0.59378374", "0.5936223", "0.59314215", "0.592351", "0.591935", "0.59092766", "0.59086925", "0.59061...
0.6325599
3
draw the UK plane
public void uk(){ stroke(1); //back guns fill(0); rect(73,192,4,15); rect(224,192,4,15); rect(71,207,8,15); rect(222,207,8,15); rect(66,207,3,15); rect(232,207,3,17); rect(122,109,4,15); rect(175,110,4,15); rect(121,120,6,15); rect(174,120,6,15); rect(116,124,3,15...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void draw_plane(Graphics g, int log_num, int i);", "void draw() {\n\t\t// display debug information\n\t\t// if (debugMode)\n\t\t// displayDebugInformation();\n\n\t\tupdate();\n\t\trender(); // display freetransform points, lines and colorings\n\n\t\t// display opposite objects\n\t\t// displayOppositeObjec...
[ "0.67232114", "0.6685493", "0.66303474", "0.6555684", "0.6478266", "0.6464", "0.6429516", "0.64232993", "0.6408382", "0.6388902", "0.6388902", "0.6388902", "0.6366759", "0.636524", "0.6343995", "0.6338405", "0.63209033", "0.6286929", "0.62846583", "0.6272561", "0.6272561", ...
0.6339542
15
draw the stat on the plane
public void star(float x, float y, float r, float R) { float angle = TWO_PI / 5; float halfAngle = angle/2.0f; beginShape(); noStroke(); for (float a = 0; a < TWO_PI; a += angle) { float sx = x + cos(a) * r; float sy = y + sin(a) * r; vertex(sx, sy); sx = x + cos(a+ha...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void render(){\n planeImage.draw(currPos.x,currPos.y, drawOps);\n }", "public void draw_plane(Graphics g, int log_num, int i);", "public void mark_plane(Graphics g, int log_num, int x, int y, int h);", "public void draw() {\r\n /* DO NOT MODIFY */\r\n StdDraw.point(x, y);\r\n ...
[ "0.696141", "0.6940534", "0.6810799", "0.67020285", "0.6689721", "0.6689721", "0.6689721", "0.6689721", "0.6544791", "0.645862", "0.64577013", "0.63895863", "0.6324133", "0.6306065", "0.62639827", "0.6229318", "0.6226139", "0.6218318", "0.6214471", "0.6214471", "0.6184675", ...
0.0
-1
define if the object is player or enemy, player for 0, enemy for 1
BasicObject(){ posX = -1; posY = -1; velX = 0; velY = 0; accX = 0; accY = 0; classOfObejct = 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isVisionary(EntityPlayer player);", "public abstract boolean isPlayer();", "@Override\n public boolean isPlayer() {\n return super.isPlayer();\n }", "public abstract void isUsedBy(Player player);", "@Override\r\n\t\tpublic boolean isPlayer() {\n\t\t\treturn state.isPlayer();\r\n...
[ "0.6681166", "0.66337013", "0.630971", "0.62420034", "0.6215757", "0.62056446", "0.61346555", "0.6133545", "0.6123187", "0.6085249", "0.5935208", "0.5931599", "0.5922821", "0.5921279", "0.591954", "0.5905092", "0.5904284", "0.5886759", "0.5884431", "0.58490956", "0.5818318", ...
0.0
-1
constructor which defines the position, velocity and acceleration of the plane pos, vel, acc defines the basic index of the plane classOfObject defines if the object belongs to player or the enemy
BasicObject(int posX,int posY,int velX,int velY, int accX, int accY, int classOfObejct){ this.posX = posX; this.posY = posY; this.velX = velX; this.velY = velY; this.accX = accX; this.accY = accY; this.classOfObejct = classOfObejct; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "BasicObject(){\n posX = -1;\n posY = -1;\n velX = 0;\n velY = 0;\n accX = 0;\n accY = 0;\n classOfObejct = 0;\n }", "public Plane() {\r\n\t\tvecX = new Vector3D();\r\n\t\tvecY = new Vector3D();\r\n\t\tnorm = new Vector3D();\r\n\t\tthis.setD(0);\r\n\t\tpos = new...
[ "0.6285012", "0.61208147", "0.56902206", "0.5610973", "0.5595046", "0.55773956", "0.5463803", "0.54305875", "0.53945714", "0.5345938", "0.52769893", "0.52611077", "0.5215772", "0.5183777", "0.5179531", "0.5175504", "0.51666945", "0.51640975", "0.5121581", "0.5064551", "0.5042...
0.7146404
0
update the position of the plane.
public void update(){ velX *= damp; velY *= damp; posX += velX; posY += velY; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updatePosition() {\n\n this.x = this.temp_x;\n this.y = this.temp_y;\n this.ax = 0;\n this.ay = 0;\n\t\tthis.axplusone = 0;\n this.ayplusone = 0;\n \n }", "private void updatePosition(){\n updateXPosition(true);\n updateYPosition(true);\n ...
[ "0.7063753", "0.6887612", "0.6840575", "0.6814994", "0.65622", "0.6441057", "0.64067286", "0.63971865", "0.6373462", "0.6342056", "0.6330723", "0.63215584", "0.63214314", "0.62255526", "0.621196", "0.613893", "0.6119572", "0.6099013", "0.6096999", "0.6096974", "0.6091997", ...
0.6202284
15
keep change the velosity of the plane, it is damped above
public void move(int accX,int accY){ this.accX = accX; this.accY = accY; velX = velX + accX; velY = velY + accY; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Plane() {\r\n\t\tvecX = new Vector3D();\r\n\t\tvecY = new Vector3D();\r\n\t\tnorm = new Vector3D();\r\n\t\tthis.setD(0);\r\n\t\tpos = new Position3D();\r\n\t}", "public void moverIzquierda() {\n estado = EstadosPersonaje.IZQUIERDA;\n mover(new Vector2(-1, 0));\n }", "Plane getPlane();",...
[ "0.62633145", "0.617999", "0.59941727", "0.5983669", "0.5964642", "0.5930993", "0.592469", "0.5916371", "0.5908532", "0.583011", "0.5817811", "0.5809789", "0.5803498", "0.5801471", "0.5786595", "0.5780059", "0.57767457", "0.57660455", "0.5760006", "0.57390785", "0.5713881", ...
0.0
-1
detect if the object is at the edge, if yes, for plane, it can not move, for bullet, demised
public boolean detectBound(){ if(posX < 10){ posX = 10; velX = 0; accX = 0; return true; } else if(posX > width - 10){ posX = width - 10; velX = 0; accX = 0; return true; } if(posY < 1...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void checkIfAtEdge() {\n\t\tif(x<=0){\n\t\t\tx=1;\n\t\t\tatEdge=true;\n\t\t\tmoving=false;\n\t\t}\n\t\tif(y<=0){\n\t\t\ty=1;\n\t\t\tatEdge=true;\n\t\t\tmoving=false;\n\t\t}\n\t\tif(x>=GameSystem.GAME_WIDTH-collisionWidth){\n\t\t\tx=GameSystem.GAME_WIDTH-collisionHeight-1;\n\t\t\tatEdge=true;\n\t\t\tmoving=f...
[ "0.78642493", "0.74052906", "0.7106565", "0.6437942", "0.6401384", "0.6322413", "0.6322413", "0.6292354", "0.6277786", "0.6263612", "0.62128574", "0.61886996", "0.6157695", "0.6135704", "0.6088119", "0.6002037", "0.59846544", "0.59519273", "0.59453857", "0.59313357", "0.59074...
0.5582331
49
when the object get hitted, health decrease
public void decreaseHealth(int lostBlood){ health = health - lostBlood; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void decreaseHealth() {\n setHealth(getHealth()-1);\n }", "public void recieveDamage(){\n this.health--;\n }", "private void takeDamage(int damage){ health -= damage;}", "public void reduceHealth(int damage){\n health -= damage;\n }", "void decreaseHealth(Float damage);...
[ "0.82706916", "0.7915858", "0.78709584", "0.7805331", "0.7690341", "0.75556046", "0.75273186", "0.7525927", "0.74517626", "0.7450131", "0.74260396", "0.736551", "0.7303735", "0.72987115", "0.7238747", "0.7234748", "0.72245306", "0.71856755", "0.71647614", "0.716284", "0.71556...
0.724133
14
detect if the object hit the other oppose objects. Hit objects of the same class is fine.
public boolean hitObject(BasicObject oppose){ if (oppose.classOfObejct != classOfObejct){ if (abs(posX - oppose.posX) < (wid / 2 + oppose.wid/2) && abs(posY - oppose.posY) < (hei / 2 + oppose.hei/2)){ return true; } else{ return false; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract boolean overlap(Catcher catcher, FallingObject object);", "public abstract boolean collisionWith(CollisionObject obj);", "private boolean detectCollisions(GameState mGaemState,ArrayList<GameObject> objects,SoundEngine se,ParticleSystem ps){\n boolean playerHit = false;\n for (Game...
[ "0.6848917", "0.6757454", "0.6430055", "0.6259333", "0.61742616", "0.616948", "0.61537343", "0.60876364", "0.6040841", "0.60305953", "0.6012751", "0.599565", "0.5972894", "0.59465367", "0.5906596", "0.5897785", "0.58936054", "0.5876105", "0.5852799", "0.584902", "0.58253783",...
0.729884
0
store the bullet of the boss constructor to create the boss
BossEnemy(){ super(); totallyDied = true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void shootAimingBullet(){\n bossBullet = new BossBullet(bossBulletImage,this.getXposition() + 100, this.getYposition() + 100, 8, player, true);\n bulletList.add(bossBullet);\n }", "private void makeBoss()\r\n {\r\n maxHealth = 1000;\r\n health = maxHealth;\r\n \r\n...
[ "0.73028404", "0.71702445", "0.7100227", "0.70920354", "0.68482673", "0.668451", "0.63951844", "0.6361203", "0.63405216", "0.6317015", "0.6299075", "0.6262472", "0.62591785", "0.6222888", "0.6210654", "0.61768407", "0.6155832", "0.61297214", "0.6115249", "0.61057395", "0.6066...
0.7048296
4
update the position of the boss.
public void update(){ if (bossMoveTime > 10){ if(random(0,16) <= 8){ dir = 1; }else{ dir = -1; } velX *= dir; bossMoveTime = 0; } posY *= 0.8f; posX += velX; posY += velY; angle +=...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void moveBoss() {\n\t\tdouble position = boss.getTranslateY();\n\t\tspeed = Math.random()*30;\n\t\tif(position > 600-70) {\n\t\t\tRandom r = new Random();\n\t\t\tboss.setTranslateY(-6);\n\t\t\tboss.setTranslateX(r.nextInt(900));\n\t\t}else {\n\t\tboss.setTranslateY(position + speed);\n\t\t}\n\t}", "privat...
[ "0.7244002", "0.6992491", "0.67683256", "0.6546752", "0.6534638", "0.63708186", "0.63118744", "0.6290712", "0.6275678", "0.62360245", "0.61832035", "0.6165689", "0.61513484", "0.6105757", "0.61052936", "0.60495317", "0.60446113", "0.60219", "0.59885395", "0.5921241", "0.59080...
0.7052018
1
control the shoot of the boss
public void shoot(){ // boss bullete attract to player int bulletPosX = PApplet.parseInt(posX + (speed * cos(angle))); int bulletPosY = (int)(posY + hei / 2); float bulletAngle = atan2(Main.player.posY - bulletPosY, Main.player.posX - bulletPosX); int bulletVelX = (int)(8 * cos(b...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void shoot() {\n\t\tgetWeapon().triggerMain();\n\t\tsetShooting(true);\n\t}", "private void shoot() {\n }", "private void shoot() {\n }", "@Override\n\t\t\tpublic void shoot() {\n\t\t\t}", "void shoot();", "@Override\n\tpublic void shoot() {\n\t\tthis.fired = true;\n\t\tghost.shot=true;\n\t}...
[ "0.7726971", "0.7552923", "0.7552923", "0.7538083", "0.74787897", "0.74201936", "0.73777866", "0.7325889", "0.72976696", "0.7106123", "0.7074525", "0.7061754", "0.70409197", "0.7004446", "0.698011", "0.69437253", "0.69275707", "0.68982774", "0.6885112", "0.68823457", "0.68578...
0.8021458
0
track the bullets of the boss, check if the bullet hit the object
public void trackBullets(){ // bossbullet control, if it hit the bound, remove the bullet for(int i = 0; i < bossBullets.size(); i++){ Bullet tempBullet = bossBullets.get(i); tempBullet.update(); tempBullet.drawBullet(); // print (tempBullet.posX, tempBull...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void trackBullets(){\n for (int i = 0; i < bullets.size(); i++){\n Bullet tempBullet = bullets.get(i);\n //update the position of the bullets\n tempBullet.update();\n tempBullet.drawBullet();\n //check if the bullet hit the boundary, remove the b...
[ "0.8011626", "0.75681484", "0.72206396", "0.71593124", "0.70785534", "0.7068307", "0.68237233", "0.6817263", "0.676829", "0.67488873", "0.6704512", "0.6697372", "0.667231", "0.6671969", "0.66645235", "0.6661888", "0.66335756", "0.65853363", "0.6584401", "0.65820324", "0.65699...
0.82669026
0
when player use bomb, remove all the exsiting bullets
public void emptyBullets() { for(int i = 0; i < bossBullets.size(); i++){ Bullet tempBullet = bossBullets.get(i); bossBullets.remove(i); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void removeBomb();", "private void killBullet() {\r\n this.dead = true;\r\n }", "private void clearBullet()\n {\n if(playerBullets.size() > 0)\n {\n for(int i = 0; i < playerBullets.size(); ++i)\n {\n int x = playerBullets.get(i).getRectangle().ce...
[ "0.7661584", "0.7428656", "0.73217756", "0.7239031", "0.720221", "0.7184822", "0.7113793", "0.7060166", "0.7013538", "0.685625", "0.67437714", "0.67117053", "0.6665686", "0.6614477", "0.6608741", "0.6598063", "0.65848726", "0.6573795", "0.65608895", "0.65377706", "0.6530861",...
0.74297774
1
constructor to define the bullet
Bullet(int posX,int posY,int velX,int velY,int classOfObejct,int attack){ this.posX = posX; this.posY = posY; this.velX = velX; this.velY = velY; this.classOfObejct = classOfObejct; this.attack = attack; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Bullet() {\n super();\n }", "public Bullet() {\n\t\t\n\t\tx = 0;\n\t\ty = 0;\n\t\timgBullet = new ImageIcon(getClass().getResource(\"lu.png\"));\n\t\twidth=imgBullet.getIconWidth();\n\t\theight=imgBullet.getIconHeight();\n\t\tshot = false;\n\t\n\t}", "public EnemyGunBullet1() {\n super(...
[ "0.8562703", "0.82576877", "0.7656008", "0.7619017", "0.7549738", "0.74214077", "0.73734754", "0.70594203", "0.703333", "0.7006061", "0.69655454", "0.6894913", "0.6878058", "0.68608713", "0.6847267", "0.68365765", "0.68355", "0.68256027", "0.68104196", "0.6736378", "0.6688498...
0.7777504
2
draw the bullet on the canvas
public void drawBullet(){ if (classOfObejct == 0){ colorMode(RGB,255,255,255); noStroke(); fill(255,100,30); ellipse(posX, posY, 6, 9); fill(255,153,51); ellipse(posX,posY, 4, 6); fill(255,255,100); ellipse(posX,posY...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void draw(Graphics2D g2d) {\n g2d.drawImage(getBulletImg(), this.getX(), this.getY(), null);\n \n }", "@Override\n public void draw(Bullet b){\n Draw.color(Palette.lightFlame, Palette.darkFlame, Color.GRAY, b.fin());\n Fill.circle(b....
[ "0.7430002", "0.70386654", "0.702441", "0.69146466", "0.67841566", "0.67800736", "0.67626476", "0.67043984", "0.6647543", "0.66288227", "0.6564061", "0.65537536", "0.6533994", "0.6530298", "0.6478928", "0.64623225", "0.64558744", "0.6447678", "0.6446465", "0.644611", "0.64440...
0.7833122
0
update the position of the bullet
public void update(){ posX += velX; posY += velY; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void moveBullet() {\r\n\t\tif(bullet != null) {\r\n\t\t\tbullet.move(bulletVelocity, 0);\r\n\t\t}\r\n\t}", "public void shoot(){\n int bulletPosX = posX;\n int bulletPosY = posY;\n int bulletVelX = 0;\n int bulletVelY = -9;\n //add the new bullets to the array of bullet...
[ "0.7143655", "0.695315", "0.69121075", "0.68941283", "0.67749023", "0.6723658", "0.67028487", "0.6674708", "0.66455644", "0.6645441", "0.65644115", "0.6536819", "0.6505926", "0.64893746", "0.6455267", "0.64449924", "0.644156", "0.64223355", "0.6392841", "0.6387203", "0.638694...
0.57373905
82
decide if the bullet goes out the screen
public boolean detectBound(){ if(posX < 0 || posX > width || posY < 0 || posY > height){ return true; } else{ return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void bulletMoveOffScreen() {\r\n\t\tif(bullet != null && (bullet.getX() > getWidth() || bullet.getX() < 0)){\r\n\t\t\tremove(bullet);\r\n\t\t\tbullet = null;\r\n\t\t}\r\n\t}", "boolean testIsOffScreenBullet(Tester t) {\n return t.checkExpect(bullet1.isOffScreen(0, 0), true)\n && t.checkExpect(b...
[ "0.77025485", "0.70350647", "0.6953367", "0.68384135", "0.6758094", "0.66886926", "0.66670215", "0.66654116", "0.66572475", "0.6604604", "0.64950275", "0.64846814", "0.6404624", "0.6403432", "0.638786", "0.6381582", "0.6378412", "0.6355559", "0.6345844", "0.62888163", "0.6283...
0.0
-1
draw the hitting effects
public void drawHit(){ image(explode[5],posX,posY,10,10); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void draw(){\n hit();\n hit();\n }", "int hitGfx();", "@Override\n\tpublic void draw() {\n\t\tbg.draw();\n\t\tfor(Test2 t : test)\n\t\t\tt.draw();\n\t\tfor(Test2 t : test2)\n\t\t\tt.draw();\n\t\t\n\t\tfor(Test2 t : test3)\n\t\t\tt.draw();\n\t\tobj.draw();\n\t\tEffect().drawEffect(1);\n\t}", "pr...
[ "0.7932528", "0.69288486", "0.6695407", "0.6537239", "0.64236206", "0.63823146", "0.63237584", "0.62659854", "0.62526953", "0.6250104", "0.6167511", "0.6122047", "0.6109809", "0.6070854", "0.60532403", "0.6051217", "0.6035637", "0.6026396", "0.60241306", "0.5986354", "0.59689...
0.7647113
1
decide if the bullet hit the object
public boolean hitObject(BasicObject obj){ if(abs(obj.posX - posX) < obj.wid/ 2 && abs(obj.posY - posY) < obj.hei/ 2){ return true; } else{ return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void bulletCollisionWithObject() {\r\n\t\tif(bullet != null) {\r\n\t\t\tGObject collider = getElementAt(bullet.getX() -1 , bullet.getY() + 1);\r\n\t\t\tif (dragon1 != null && collider == dragon1) {\r\n\t\t\t\thit(dragon1);\r\n\t\t\t}\r\n\t\t\tif(dragon2 != null && collider == dragon2) {\r\n\t\t\t\thit(drag...
[ "0.77722156", "0.7686135", "0.73045087", "0.72506905", "0.7055757", "0.70028424", "0.68472713", "0.67944604", "0.6775726", "0.6775183", "0.6763162", "0.6762774", "0.67485803", "0.67392653", "0.67191494", "0.66935414", "0.6631649", "0.6601303", "0.65672344", "0.654693", "0.653...
0.6646016
16
update the postion of the enemy
public void update(){ // random move if(alive){ posX += velX * cos(angle); posY += velY * sin(PI/4); angle += 0.04f*dir; if(random(0, 16) < 8){ dir *= -1; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void prisonerUpdate(){\r\n\t\t//check if a enemy has been spotted\r\n\t\tif (checkSight()){\r\n\t\t\tseen = true;\r\n\t\t} if (seen) {\r\n\t\t\tcreature.setSpeed(1.5);\r\n\t\t\tchaseEnemy(seenEnemy, 5);\r\n\t\t\treturn; //if player has been spotted end method here\r\n\t\t}\r\n\t\t//if no enemy has been spot...
[ "0.75075537", "0.7195044", "0.69958436", "0.6981414", "0.69632787", "0.69113606", "0.65346193", "0.65207267", "0.6484354", "0.64540756", "0.6448816", "0.64152837", "0.6409262", "0.6401159", "0.63798094", "0.63372755", "0.63362914", "0.63362515", "0.62901133", "0.6289767", "0....
0.0
-1
detect if the enemy hit the up/down boundary, if yes, remove
public boolean detectBound(){ // super.detectBound(); if(posY > height || posY < 0){ Main.enemies.remove(this); return true; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void enemyoff(){\n getWorld().removeObject(this);\n }", "public void checkForRemoval()\n {\n if (life <= 0)\n {\n SideScrollingWorld world = (SideScrollingWorld) getWorld(); \n \n world.isPacmanDead = true;\n getWorld().removeObject(th...
[ "0.6507068", "0.6305416", "0.62987727", "0.62987316", "0.62848634", "0.6259138", "0.62375295", "0.6158748", "0.6146576", "0.61360073", "0.6128521", "0.61174136", "0.6097946", "0.60490084", "0.60327005", "0.60303503", "0.6024977", "0.60068977", "0.6001956", "0.5997652", "0.598...
0.7494942
0
check if the enemy is damaged
public int getDamage() { //TODO return 1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasDamage();", "boolean hasDamage();", "boolean hasDamage();", "boolean hasDamage();", "boolean hasDamage();", "private void enemyAttack() {\n\t\t\n\t\tRandom rand = new Random();\t\n\t\t\n\t\tint roll = rand.nextInt(101);\n\t\t\n\t\tint sroll = rand.nextInt(101);\n\t\t\n\t\tevents.appendText(e.g...
[ "0.7844441", "0.7844441", "0.7844441", "0.7844441", "0.7844441", "0.71715975", "0.7126442", "0.7069014", "0.7032931", "0.69797856", "0.6972774", "0.6965054", "0.69332546", "0.6901669", "0.68981326", "0.68857586", "0.6855313", "0.6847088", "0.6813694", "0.68130076", "0.6810783...
0.0
-1
shooting interval constructor to define the basic characters of the player's plane different kind of player plane can have different attackm, health or numOfBomb
Player(int posX,int posY,int velX,int velY, int accX, int accY,int attack,int health, int numOfBomb, int sInterval){ this.posX = posX; this.posY = posY; this.velX = velX; this.velY = velY; this.accX = accX; this.accY = accY; this.health = health; this.numO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Bullet(int posX,int posY,int velX,int velY,int classOfObejct,int attack){\n this.posX = posX;\n this.posY = posY;\n this.velX = velX;\n this.velY = velY;\n this.classOfObejct = classOfObejct;\n this.attack = attack;\n\n }", "public Warrior(Point3D position, int speed)...
[ "0.59691346", "0.57737166", "0.5718609", "0.5703097", "0.5678354", "0.56228316", "0.55792373", "0.55648506", "0.5562663", "0.5496738", "0.5494842", "0.5488543", "0.54721016", "0.54678565", "0.54331076", "0.5432737", "0.5415465", "0.54020584", "0.53593266", "0.5358608", "0.535...
0.6781167
0
while the player shoots, the bullets objects are generated and stored
public void shoot(){ int bulletPosX = posX; int bulletPosY = posY; int bulletVelX = 0; int bulletVelY = -9; //add the new bullets to the array of bullets bullets.add(new Bullet(bulletPosX,bulletPosY,bulletVelX,bulletVelY,0,attack)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void shootBullet( ){\n bulletsFired.add(new Bullet((short)(this.xPos + BOX_HEIGHT), (short)((this.getYPos() + (BOX_HEIGHT+15))), this.xPos, this.id, (byte) 0, (byte) 0, shootingDirection, currentWeapon.getKey()));\n\n byte weaponFired = currentWeapon.getKey();\n switch (weaponFired){\n ...
[ "0.8404136", "0.8181316", "0.80864924", "0.80273134", "0.7885796", "0.7630087", "0.753199", "0.74717236", "0.7447477", "0.7433178", "0.73696953", "0.73660827", "0.73412627", "0.7306971", "0.72456586", "0.72431463", "0.7196031", "0.7162602", "0.71121615", "0.7109411", "0.71094...
0.8374001
1
track all the bullets. Cause 1 harm to enemy and boss
public void trackBullets(){ for (int i = 0; i < bullets.size(); i++){ Bullet tempBullet = bullets.get(i); //update the position of the bullets tempBullet.update(); tempBullet.drawBullet(); //check if the bullet hit the boundary, remove the bullet from ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void trackBullets(){\n // bossbullet control, if it hit the bound, remove the bullet\n for(int i = 0; i < bossBullets.size(); i++){\n Bullet tempBullet = bossBullets.get(i);\n tempBullet.update();\n tempBullet.drawBullet();\n // print (tempBullet.pos...
[ "0.8007339", "0.7524266", "0.73961353", "0.7233", "0.7213758", "0.71450955", "0.714105", "0.7018318", "0.698173", "0.6922282", "0.6878834", "0.6824907", "0.6795273", "0.67805505", "0.67436635", "0.67387706", "0.6674429", "0.667368", "0.66517997", "0.6626859", "0.6605626", "...
0.81844455
0
use bomb, which killded all the enemies and cause huge harm to boss while bomb buttom pressed, bombUsed is set to true
public int useBomb(){ //do harm while the animation start //cause harm to the boss println("BEFORE Main.boss.health: "+Main.boss.health); int count = 0; if ((Main.boss.alive) && (Main.boss.posY != -1)){ Main.boss.decreaseHealth(10); if(Main.boss.health <= ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void tryToKillStuff(final Bomb b) {\n \t\tfor (Bomb bomb : bombs)\n \t\t\tif (bomb != b && !bomb.isCurrentlyExploding())\n \t\t\t\tif (eac.isInExplosionArea(b, bomb)) {\n \t\t\t\t\tbomb.goBomf();\n \t\t\t\t}\n \n \t\tif (eac.isInExplosionArea(b, bman.get(0))) {\n \t\t\talive = false;\n \t\t\tgui.lost();\n ...
[ "0.73411477", "0.69895", "0.6980242", "0.69531703", "0.6691935", "0.6661579", "0.6638964", "0.6635788", "0.6610201", "0.65154964", "0.64773285", "0.6441667", "0.64213645", "0.6335351", "0.6227456", "0.61579406", "0.6122354", "0.6120512", "0.6112585", "0.6060663", "0.6032827",...
0.77424896
0
Create a text semantic service.
public CTextSemanticService() throws SemanticAnalysisException { this((short)0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "SourceBuilder createService();", "Service newService();", "SemanticFactory getSemanticFactory();", "public CTextSemanticService(short index) throws SemanticAnalysisException {\t\n\t\t_taxonomyConnection = CTaxonomyConnectionsPool.getInstance().getLabelsConnection();\n\t\t_textIndex = index;\n\t}", "TxtUMLF...
[ "0.6125445", "0.5979308", "0.59206283", "0.5791283", "0.57600266", "0.5698876", "0.55666226", "0.5559841", "0.5552007", "0.5527105", "0.5479638", "0.5479638", "0.5451799", "0.54195225", "0.53937954", "0.53852636", "0.5364425", "0.53379834", "0.5328483", "0.5312571", "0.529159...
0.6385527
0
Create a text semantic service.
public CTextSemanticService(short index) throws SemanticAnalysisException { _taxonomyConnection = CTaxonomyConnectionsPool.getInstance().getLabelsConnection(); _textIndex = index; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public CTextSemanticService() throws SemanticAnalysisException {\n\t\tthis((short)0);\n\t}", "SourceBuilder createService();", "Service newService();", "SemanticFactory getSemanticFactory();", "TxtUMLFactory getTxtUMLFactory();", "Fog_Services createFog_Services();", "public Collection<Service> createS...
[ "0.6385629", "0.61257446", "0.5979454", "0.59206706", "0.5760084", "0.56989676", "0.55666095", "0.556004", "0.555225", "0.5527382", "0.54800767", "0.54800767", "0.54519385", "0.54195887", "0.5394007", "0.53853476", "0.53646195", "0.5338124", "0.5328684", "0.53127855", "0.5291...
0.57914215
4
Extract the semantic components of a document using NLP algorithm to extract semantic NGrams, WordNet hypernyms and dbpedia entries.
public void execute(final String inputText, CTopicsMap topicsMap) { this.execute(inputText, null, topicsMap); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void process(JCas aJCas) throws AnalysisEngineProcessException {\n\t\tString text = aJCas.getDocumentText();\n\n\t\t// create an empty Annotation just with the given text\n\t\tAnnotation document = new Annotation(text);\n//\t\tAnnotation document = new Annotation(\"Barack Obama was born in Hawa...
[ "0.58878475", "0.56439185", "0.56227577", "0.55646574", "0.5496911", "0.5492575", "0.54729885", "0.54580325", "0.5456363", "0.5438005", "0.5433442", "0.5398272", "0.5395945", "0.539273", "0.5359939", "0.5359641", "0.53288", "0.5312437", "0.52981895", "0.5273751", "0.52379096"...
0.0
-1
Extract the semantic components of a document using NLP algorithm to extract semantic NGrams, WordNet hypernyms and dbpedia entries.
public void execute(final String inputText, final String title, CTopicsMap topicsMap) { if(inputText == null) { throw new IllegalArgumentException("Cannot extract semantics data from an undefined document"); } CText document = getTaxonomyList(inputText, title, false); if( document.getState() == CText.E_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void process(JCas aJCas) throws AnalysisEngineProcessException {\n\t\tString text = aJCas.getDocumentText();\n\n\t\t// create an empty Annotation just with the given text\n\t\tAnnotation document = new Annotation(text);\n//\t\tAnnotation document = new Annotation(\"Barack Obama was born in Hawa...
[ "0.5886296", "0.56433153", "0.5621128", "0.5561394", "0.5496086", "0.5493071", "0.5472561", "0.54560524", "0.5453613", "0.5437753", "0.5433524", "0.5397829", "0.53958225", "0.53940165", "0.5359288", "0.53587174", "0.53304535", "0.53113645", "0.52980137", "0.52726156", "0.5237...
0.0
-1
/ Step 1: Create a document model
private CText getTaxonomyList( final String inputText, final String title, boolean breakdown) { CText document = new CText(title); /* * Step 2:Extract the N-Grams from the document */ CNGramsExtractor nGramsExtract = new CNGramsExtractor(); //INFO System.out.println("Last ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "springfox.documentation.schema.Model create(ModelContext context);", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Documento createDocumento();", "void create(Model model) th...
[ "0.70205176", "0.6881119", "0.6881119", "0.6881119", "0.6881119", "0.6881119", "0.6881119", "0.6881119", "0.68733084", "0.656277", "0.6488176", "0.64642835", "0.6448614", "0.64366287", "0.64222765", "0.63004565", "0.62790906", "0.6271133", "0.6179309", "0.6170327", "0.6127229...
0.0
-1
Close all the connections used in this service.
public void close() { _taxonomyConnection.close(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized void closeAllConnections() {\n\t\tstop();\n\t}", "public void closeConnections() {\n for (Object i : connections.keySet().toArray()) {\n connections.get(i).closeConnection();\n }\n\n }", "public void shutdown() {\n for (Connection connection : connections)...
[ "0.79862034", "0.78810763", "0.7737673", "0.7660676", "0.7650036", "0.7650036", "0.74505603", "0.7431709", "0.7301249", "0.7296764", "0.7247197", "0.71567404", "0.7070721", "0.70169336", "0.70134467", "0.7005576", "0.6963829", "0.693124", "0.6901369", "0.68847287", "0.6884728...
0.62706834
91
Writes data, collected for a particular form version, to a stream in a CSV format.
@Override public void export(Writer printWriter,Integer formId, Date fromDate, Date toDate, Integer userId) { // Check to ensure that we have such a form version as identified by the formId. FormDefVersion formDefVersion = dataExportService.getFormDefVersion(formId); if (formDefVersion == null) return;...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void csv() throws IOException {\n\t\t\n\t\tSystem.out.println(); //spacing\\\n\t\tFileWriter f;\n\t\t\n\t\tif (bundle.getString(\"csvName\").endsWith(\".csv\")) {\n\t\t\tf = new FileWriter(bundle.getString(\"csvName\"));\n\t\t}\n\t\t\n\t\telse {\n\t\t\tf = new FileWriter(bundle.getString(\"csvName\") + \".c...
[ "0.5819185", "0.5805892", "0.5756761", "0.57003576", "0.5567343", "0.55664027", "0.54749554", "0.5462708", "0.5423026", "0.53906614", "0.53898597", "0.537499", "0.5374974", "0.53614044", "0.5327506", "0.5323045", "0.53080523", "0.52709347", "0.5249778", "0.52437675", "0.52299...
0.5702173
3
Formats a value in in the CSV style.
private String formatCSV(String value){ return value.replaceAll("\"","\"\""); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public String getDataInCSV() {\n return String.format(Locale.US, \"%d,%s\", this.timestamp, this.getStatusString());\n }", "String toCSVString();", "public String csvEscapeString(String value){\n\t\tif(value==null)\n\t\t\tvalue=\"\";\n\t\treturn value.replaceAll(\"\\\"\", \"'\");\n\t}"...
[ "0.6449744", "0.6429301", "0.6386248", "0.6271231", "0.6160498", "0.6151067", "0.605142", "0.593121", "0.5901781", "0.5878475", "0.5801636", "0.5800979", "0.57937044", "0.578034", "0.57784635", "0.57784283", "0.5753869", "0.57232505", "0.5718223", "0.56762457", "0.5674677", ...
0.75507
0
Export database scripts for the given domain locations.
@Test public void exportOracleDatabaseScriptFromAnnotations() throws Exception { Properties props = PropertyLoader.loadProperties("./build.properties"); String classesDirPath = props.getProperty("classes.dir"); SchemaGenerator sgen = new SchemaGenerator(new String[] {"uk.co.utilisoft.parms.domain"}...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void insertTestDataExport() throws ArcException {\n\t\tinsertTestData(\"BdDTest/script_test_export.sql\");\n\t}", "protected void doRun() {\n\n\t\tFile dirFile = null;\n\t\ttry {\n\t\t\tdirFile = new File(exportConfig.getDataFileFolder() + File.separator + \"ddl\");\n\t\t\tif (!dirFile.exists()) {\...
[ "0.564677", "0.5194825", "0.5152799", "0.510916", "0.508214", "0.4995753", "0.49475017", "0.49457383", "0.4839066", "0.48173153", "0.4713042", "0.47109315", "0.4696362", "0.46892864", "0.46826854", "0.4672768", "0.46548244", "0.46447545", "0.46360937", "0.46252066", "0.461589...
0.44973746
28
Export database scripts for the given domain locations.
@Test public void exportSQLServerDatabaseScriptFromAnnotations() throws Exception { Properties props = PropertyLoader.loadProperties("./build.properties"); String classesDirPath = props.getProperty("classes.dir"); SchemaGenerator sgen = new SchemaGenerator(new String[] {"uk.co.utilisoft.parms.domai...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void insertTestDataExport() throws ArcException {\n\t\tinsertTestData(\"BdDTest/script_test_export.sql\");\n\t}", "protected void doRun() {\n\n\t\tFile dirFile = null;\n\t\ttry {\n\t\t\tdirFile = new File(exportConfig.getDataFileFolder() + File.separator + \"ddl\");\n\t\t\tif (!dirFile.exists()) {\...
[ "0.56466335", "0.5195439", "0.5152003", "0.5108896", "0.50820905", "0.49952504", "0.49498224", "0.49456307", "0.48389953", "0.48181078", "0.4713296", "0.4711531", "0.46951035", "0.46903425", "0.46823716", "0.46715692", "0.46559805", "0.4644176", "0.4625507", "0.46189585", "0....
0.46358737
18
/ Asginar Elementos html
public void asignarID(Object id) { propiedad temporal; for (int i = 0; i < this.listadoElementos.size(); i++) { temporal = listadoElementos.get(i); if (temporal instanceof propiedadId) { propiedadId v = (propiedadId) temporal; if (!id.toString().e...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "HTML createHTML();", "private HTMLElement generateHTMLElement() {\n \t\t// this is the outermost element, so it has no indent\n \t\tint indentLevel = 0;\n \t\tHTMLElement html = new FormattedHTMLElement(\n \t\t\t\tIIntroHTMLConstants.ELEMENT_HTML, indentLevel, true);\n \t\tHTMLElement head = generateHeadElement(...
[ "0.65762967", "0.6249598", "0.6137576", "0.6119031", "0.6059459", "0.60150534", "0.5995912", "0.5942424", "0.5901615", "0.5800099", "0.57988745", "0.5765785", "0.5749955", "0.5724951", "0.5677983", "0.56441015", "0.56133014", "0.560796", "0.5592005", "0.5567573", "0.5561017",...
0.0
-1
display transaction context message
protected abstract String transactionContextMessage();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void printTransdetails() {\n\t\t\r\n\t}", "String showPreparedTransactions();", "public void printCurrentTransaction() {\n\t\tregister[registerSelected].printCurrentTransaction();\n\t}", "public void printTransaction() {\n\t\tdao.printTransaction();\r\n\t\t\r\n\t}", "public String rep...
[ "0.6617942", "0.64784753", "0.64525914", "0.63300806", "0.5880915", "0.5759866", "0.5745321", "0.57007164", "0.5688226", "0.5676422", "0.5676092", "0.5670248", "0.56312793", "0.5630073", "0.5630073", "0.5621586", "0.56189466", "0.5613395", "0.55737495", "0.5554164", "0.548925...
0.765857
0
display error message when insufficient parameter exception occur
protected abstract String insufficientParameterExceptionMessage(TransactionCommand transactionCommand);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void ImproperFillOutException() {\n JOptionPane.showMessageDialog(null, \"Fill out the form properly\");\n }", "private static void printErrorMessage() {\n System.out.println(\"Oh no! It looks like I wasn't able to understand the arguments you passed in :(\"\n + \"\\nI can...
[ "0.68822736", "0.68354475", "0.67237484", "0.65544623", "0.65544623", "0.653305", "0.6518276", "0.6435296", "0.6433679", "0.6404856", "0.63968205", "0.6374628", "0.6373396", "0.6364507", "0.63166773", "0.6310477", "0.63089365", "0.63060606", "0.6274891", "0.627338", "0.627027...
0.7471868
0
display default error exception message
protected abstract String defaultExceptionMessage(TransactionCommand transactionCommand);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void showError(String message);", "void showError(String message);", "@Override\n\tpublic void showError(String message) {\n\t\t\n\t}", "@Override\r\n\tpublic void displayError(EntityPropertyCode code, String message) {\n\t}", "@Override\n public void showError() {\n }", "private void displayError(...
[ "0.71806073", "0.71806073", "0.7157379", "0.7079116", "0.69336325", "0.67983115", "0.6794317", "0.6770365", "0.6766058", "0.67577493", "0.67523634", "0.6708956", "0.66848654", "0.665835", "0.6581043", "0.6571107", "0.65678734", "0.6563143", "0.6549576", "0.65410733", "0.65357...
0.6920852
5
Called when the activity is first created.
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); b1 = (Button) findViewById(R.id.btn_webbrowser); b1.setOnClickListener(new OnClickListener() { public void onClick(View arg0) { Intent i ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t\tinit();\n\t}", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t}", "@Override\n\tpublic void onActivit...
[ "0.791686", "0.77270156", "0.7693263", "0.7693263", "0.7693263", "0.7693263", "0.7693263", "0.7693263", "0.7637394", "0.7637394", "0.7629958", "0.76189965", "0.76189965", "0.7543775", "0.7540053", "0.7540053", "0.7539505", "0.75269467", "0.75147736", "0.7509639", "0.7500879",...
0.0
-1
Returns the valid policy tree from the validation.
@DSGenerator(tool_name = "Doppelganger", tool_version = "2.0", generated_on = "2014-08-13 13:14:15.602 -0400", hash_original_method = "4B5496A79468DEC2FA84449A5CCBD295", hash_generated_method = "06016682917508DEF780A2C1DA1531D4") public PolicyNode getPolicyTree() { return policyTree; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private LispTree getRuleLispTree() {\n LispTree tree = LispTree.proto.newList();\n tree.addChild(\"rules\");\n getRuleLispTreeRecurs(tree);\n return tree;\n }", "public SoftAssert validator() {\n return pageValidator;\n }", "public ValidationContext buildValidationContext() {\n re...
[ "0.5271666", "0.52428424", "0.50144935", "0.49873105", "0.4944026", "0.48447168", "0.48327783", "0.4826771", "0.48032534", "0.47990507", "0.47662166", "0.4734122", "0.47230652", "0.47097462", "0.46949282", "0.46691784", "0.4665935", "0.46481165", "0.46269605", "0.4622753", "0...
0.54638344
0
Returns the subject public key from the validation.
@DSGenerator(tool_name = "Doppelganger", tool_version = "2.0", generated_on = "2014-08-13 13:14:15.603 -0400", hash_original_method = "9CA51125BBD9928A127E75CF99CB1D14", hash_generated_method = "10D7CA0C3FC5B5A6A133BC7DAAF5C8C5") public PublicKey getPublicKey() { return subjectPublicKey; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getSubjectKeyID();", "java.lang.String getSubjectKeyID();", "String publicKey();", "java.lang.String getPublicKey();", "public PublicKey getPubKey(){\r\n\t\treturn this.myCert.getPublicKey();\r\n\t}", "java.lang.String getPublicEciesKey();", "java.lang.String getPubkey();", "public S...
[ "0.6951922", "0.6951922", "0.68670017", "0.68474287", "0.6817221", "0.67602336", "0.6731144", "0.6654726", "0.66501594", "0.66441447", "0.66216844", "0.6515185", "0.6398187", "0.63930476", "0.63879347", "0.63820314", "0.63570166", "0.6334961", "0.6331263", "0.6330961", "0.632...
0.70107627
0
Returns the trust anchor describing the certification authority (CA) that served as trust anchor for this certification path.
@DSGenerator(tool_name = "Doppelganger", tool_version = "2.0", generated_on = "2014-08-13 13:14:15.604 -0400", hash_original_method = "D53C3DAE7394798EE5A7C498CACBD5AF", hash_generated_method = "13DD0364106557B654A3555DA9860FB0") public TrustAnchor getTrustAnchor() { return trustAnchor; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public String getCACertificate() throws IOException {\n LOGGER.debug(\"Getting CA certificate.\");\n try {\n return getPEMEncodedString(\n scmCertificateServer.getCaCertPath());\n } catch (CertificateException e) {\n throw new SCMSecurityException(\"getRootCertificate opera...
[ "0.6201812", "0.6141383", "0.58026326", "0.5707902", "0.5665305", "0.5634389", "0.5598016", "0.55881125", "0.5563151", "0.5560496", "0.55183786", "0.54695123", "0.54562616", "0.5391564", "0.5391202", "0.53825396", "0.53710395", "0.53506315", "0.5344608", "0.52491516", "0.5243...
0.5463222
12
Called when the activity is first created.
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.channel_manger_listselector); // 初始化视图 initView(); // 初始化相关工具类 inintClass(); mListView.setPullLoadEnable(true); // 第一次新闻加载的逻辑 if (HttpUtils.isNetworkAvailable(this)) {// 如...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t\tinit();\n\t}", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t}", "@Override\n\tpublic void onActivit...
[ "0.791686", "0.77270156", "0.7693263", "0.7693263", "0.7693263", "0.7693263", "0.7693263", "0.7693263", "0.7637394", "0.7637394", "0.7629958", "0.76189965", "0.76189965", "0.7543775", "0.7540053", "0.7540053", "0.7539505", "0.75269467", "0.75147736", "0.7509639", "0.7500879",...
0.0
-1
Instantiates a new Interval.
public Interval(Instant begin, Instant end) { this.begin = begin; this.end = end; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Intervals(Interval<T> interval) {\n add(interval);\n }", "public Intervals() {\n }", "private Interval(T start, T end) {\n this.start = start;\n this.end = end;\n }", "public Interval(){\r\n firstExtreme = 0.0d;\r\n secondExtreme = 0.0d;\r\n feInclude...
[ "0.7233373", "0.7099751", "0.69102955", "0.6902052", "0.67458254", "0.6709635", "0.66582257", "0.6610467", "0.65904355", "0.6567725", "0.6517263", "0.6516214", "0.6489772", "0.64664525", "0.64642686", "0.6450973", "0.64185333", "0.63862425", "0.63135976", "0.6294674", "0.6211...
0.70501924
2
Instantiates a new Interval.
public Interval(LocalDateTime begin, LocalDateTime end) { this.setBegin(begin.atZone(ZoneId.systemDefault()).toInstant()); this.setEnd(end.atZone(ZoneId.systemDefault()).toInstant()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Intervals(Interval<T> interval) {\n add(interval);\n }", "public Intervals() {\n }", "public Interval(Instant begin, Instant end) {\n this.begin = begin;\n this.end = end;\n }", "private Interval(T start, T end) {\n this.start = start;\n this.end = end;\n ...
[ "0.7233373", "0.7099751", "0.70501924", "0.69102955", "0.6902052", "0.67458254", "0.6709635", "0.66582257", "0.6610467", "0.65904355", "0.6567725", "0.6517263", "0.6516214", "0.6489772", "0.64664525", "0.64642686", "0.64185333", "0.63862425", "0.63135976", "0.6294674", "0.621...
0.6450973
16
Instantiates a new Interval.
public Interval(long begin, long end) { this.setBegin(java.time.Instant.ofEpochMilli(begin)); this.setEnd(java.time.Instant.ofEpochMilli(end)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Intervals(Interval<T> interval) {\n add(interval);\n }", "public Intervals() {\n }", "public Interval(Instant begin, Instant end) {\n this.begin = begin;\n this.end = end;\n }", "private Interval(T start, T end) {\n this.start = start;\n this.end = end;\n ...
[ "0.7232685", "0.70989597", "0.70499367", "0.6909236", "0.6901691", "0.6744769", "0.66577893", "0.6608921", "0.6589845", "0.656716", "0.65165174", "0.6515168", "0.6487938", "0.6465551", "0.6464248", "0.64507127", "0.64178634", "0.6385556", "0.63131684", "0.62939984", "0.620932...
0.6709609
6
/ 2. There are "n" ticket windows in the railway station. ith window has ai tickets available. Price of a ticket is equal to the number of tickets remaining in that window at that time. When "m" tickets have been sold, what's the maximum amount of money the railway station can earn? exa. n=2, m=4 in 2 window available ...
public static int maxSale(int[] arr, int m) { Queue<Integer> queue = new PriorityQueue<Integer>(new Comparator<Integer>(){ @Override public int compare(Integer a, Integer b) { return b - a; } }); // (a,b) -> (b,a)); for(int ticket : arr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String [] args) {\n int[] ticket = fillTicket(TICKET_SIZE, MIN, MAX);\n Arrays.sort(ticket);\n int[] lotto = new int [TICKET_SIZE];\n int best = 0;\n long weeks = 0;\n boolean win = false;\n boolean showAllInput = Console.twoOptions(\"Yes\", ...
[ "0.6100998", "0.60869074", "0.6078894", "0.5782128", "0.5764997", "0.5730101", "0.56641024", "0.5641106", "0.55710703", "0.55642426", "0.55050415", "0.5485859", "0.54750097", "0.5462371", "0.5456809", "0.5442923", "0.5432789", "0.5423725", "0.5419835", "0.54194516", "0.541653...
0.5621556
8
Toast.makeText(getApplicationContext(),"id = " + editId.getText().toString() + " age = " + ageIndex + " weight = " + weightIndex + " sex = " + sex + " image = " + encodedImage ,Toast.LENGTH_LONG).show();
protected void onPostExecute(JSONObject result) { if (result == null) { Toast.makeText(getApplicationContext(), "정보를 받는 도중 에러가 났습니다. 다시 한번 확인해주세요.", Toast.LENGTH_LONG).show(); } else { try { if (result.getString("code").compareTo("0") == 0) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onClick(View view) {\n BitmapDrawable bitmapDrawable = (BitmapDrawable) imgHinh.getDrawable();\n Bitmap bitmap = bitmapDrawable.getBitmap();\n ByteArrayOutputStream byteArray = new ByteArrayOutputStream();\n bitmap.compr...
[ "0.6301529", "0.62820065", "0.6222154", "0.6220535", "0.61953473", "0.61453694", "0.61443317", "0.6074451", "0.6064549", "0.6057812", "0.60568017", "0.60499734", "0.6035285", "0.59813523", "0.59519124", "0.5936743", "0.59071773", "0.58920294", "0.58894044", "0.5885727", "0.58...
0.0
-1
Creates new form Template_350
public SA_Main(String userName, String password, String IP, int Port, Socket cSocket) { //Set Variables that need to be used in other methods this.userName = userName; this.password = password; this.clientSocket = cSocket; this.IP = IP; this.Port = Port; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public com.walgreens.rxit.ch.cda.II addNewTemplateId()\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.walgreens.rxit.ch.cda.II target = null;\n target = (com.walgreens.rxit.ch.cda.II)get_store().add_element_user(TEMPLATEID$4);\n return targ...
[ "0.62653315", "0.61040473", "0.6032051", "0.60192853", "0.6018525", "0.5902557", "0.57984376", "0.57852805", "0.57460696", "0.5724709", "0.5719312", "0.570786", "0.567229", "0.56711423", "0.5666912", "0.56573266", "0.5627685", "0.5616768", "0.55521023", "0.5543524", "0.552618...
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") public Socket getSocket(){ return this.clientSocket; }
{ "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.7319573", "0.72908455", "0.72908455", "0.72908455", "0.7286827", "0.7248724", "0.7213511", "0.7208325", "0.7195998", "0.7190202", "0.7184771", "0.7158966", "0.7147921", "0.7093225", "0.7080275", "0.7057302", "0.69875276", "0.6977057", "0.6955658", "0.6953942", "0.69454855"...
0.0
-1
//GENEND:initComponents Method to request to view class information Method is called from within the Class search method
private void class_view(String classID) { try{ //send request to server given the class ID DataOutputStream outToServer = new DataOutputStream( clientSocket.getOutputStream()); outToServer.writeBytes("CINF " +cl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public search_package() {\n initComponents();\n }", "public void showClassPanel() {\r\n \t\tdialogFactory.getDialog(new jmodelClassesPanel(model, model), \"Manage User Classes\");\r\n \t}", "public insearch() {\n initComponents();\n }", "protected void showClass()\n {\n inspecto...
[ "0.67069936", "0.6661765", "0.62983876", "0.62405217", "0.62095237", "0.61047435", "0.61004865", "0.606125", "0.6056293", "0.60317874", "0.59780663", "0.5947569", "0.5947547", "0.5927118", "0.5925775", "0.5893845", "0.5889247", "0.5889247", "0.5880747", "0.5865224", "0.585644...
0.0
-1
new SA_Main().setVisible(false); new SA_Launcher().setVisible(true);
public void run() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void show() {\n mainFrame.setVisible(true);\r\n\t}", "private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {\n new MainMenu().setVisible(true);\n dispose();\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tnew mainclass().setVisible(true);\n\t\t\t}", "publi...
[ "0.7507081", "0.71510905", "0.71272886", "0.7089224", "0.7026948", "0.70263755", "0.69390804", "0.68967456", "0.6853989", "0.6830071", "0.6813457", "0.68058664", "0.6804216", "0.6779771", "0.67708004", "0.676406", "0.67463547", "0.6745532", "0.6742699", "0.6730644", "0.671738...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table dish
int countByExample(DishExample example);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Dish selectByPrimaryKey(String id);", "@Override\n public List<SideDishEntity> findAll() {\n return null;\n }", "List<TblMotherSon> selectByExample(TblMotherSonExample example);", "@Override\r\n\tpublic int create(Dish dish) {\r\n\t\t\r\n//\t\thashMap.put(dish.getId(), dish);\r\n\t\tSystem.out.println(\...
[ "0.5601651", "0.53839487", "0.53021646", "0.52873755", "0.520671", "0.5199008", "0.51244825", "0.51128334", "0.51112014", "0.5086853", "0.50846237", "0.50530577", "0.50382876", "0.5010417", "0.5000066", "0.49977776", "0.49874738", "0.4977294", "0.4961594", "0.4952532", "0.494...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table dish
int deleteByExample(DishExample example);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Dish selectByPrimaryKey(String id);", "@Override\n public List<SideDishEntity> findAll() {\n return null;\n }", "List<TblMotherSon> selectByExample(TblMotherSonExample example);", "@Override\r\n\tpublic int create(Dish dish) {\r\n\t\t\r\n//\t\thashMap.put(dish.getId(), dish);\r\n\t\tSystem.out.println(\...
[ "0.5600174", "0.53841454", "0.5299719", "0.52865005", "0.5207043", "0.5197336", "0.5125447", "0.51118666", "0.5108231", "0.5086626", "0.5085082", "0.5053489", "0.50375754", "0.5013254", "0.5000734", "0.49990135", "0.49871296", "0.4977456", "0.49595127", "0.49507773", "0.49396...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table dish
int deleteByPrimaryKey(String id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Dish selectByPrimaryKey(String id);", "@Override\n public List<SideDishEntity> findAll() {\n return null;\n }", "List<TblMotherSon> selectByExample(TblMotherSonExample example);", "@Override\r\n\tpublic int create(Dish dish) {\r\n\t\t\r\n//\t\thashMap.put(dish.getId(), dish);\r\n\t\tSystem.out.println(\...
[ "0.560114", "0.538416", "0.53013885", "0.52881795", "0.5206365", "0.5200112", "0.5123933", "0.5113557", "0.5111038", "0.5087587", "0.5087201", "0.5055471", "0.5037925", "0.50137585", "0.5001423", "0.499934", "0.49889484", "0.4978261", "0.4961641", "0.49530965", "0.4940532", ...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table dish
int insert(Dish record);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Dish selectByPrimaryKey(String id);", "@Override\n public List<SideDishEntity> findAll() {\n return null;\n }", "List<TblMotherSon> selectByExample(TblMotherSonExample example);", "@Override\r\n\tpublic int create(Dish dish) {\r\n\t\t\r\n//\t\thashMap.put(dish.getId(), dish);\r\n\t\tSystem.out.println(\...
[ "0.5601384", "0.53847265", "0.53002006", "0.52877796", "0.5206473", "0.51989734", "0.512477", "0.51117724", "0.5110217", "0.50892353", "0.5086627", "0.50535595", "0.50392836", "0.5013054", "0.5000241", "0.49984863", "0.49878994", "0.4977363", "0.49618345", "0.49523816", "0.49...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table dish
int insertSelective(Dish record);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Dish selectByPrimaryKey(String id);", "@Override\n public List<SideDishEntity> findAll() {\n return null;\n }", "List<TblMotherSon> selectByExample(TblMotherSonExample example);", "@Override\r\n\tpublic int create(Dish dish) {\r\n\t\t\r\n//\t\thashMap.put(dish.getId(), dish);\r\n\t\tSystem.out.println(\...
[ "0.5601651", "0.53839487", "0.53021646", "0.52873755", "0.520671", "0.5199008", "0.51244825", "0.51128334", "0.51112014", "0.5086853", "0.50846237", "0.50530577", "0.50382876", "0.5010417", "0.5000066", "0.49977776", "0.49874738", "0.4977294", "0.4961594", "0.4952532", "0.494...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table dish
List<Dish> selectByExample(DishExample example);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Dish selectByPrimaryKey(String id);", "@Override\n public List<SideDishEntity> findAll() {\n return null;\n }", "List<TblMotherSon> selectByExample(TblMotherSonExample example);", "@Override\r\n\tpublic int create(Dish dish) {\r\n\t\t\r\n//\t\thashMap.put(dish.getId(), dish);\r\n\t\tSystem.out.println(\...
[ "0.5600174", "0.53841454", "0.5299719", "0.52865005", "0.5207043", "0.5197336", "0.5125447", "0.51118666", "0.5108231", "0.5086626", "0.5085082", "0.5053489", "0.50375754", "0.5013254", "0.5000734", "0.49990135", "0.49871296", "0.4977456", "0.49595127", "0.49507773", "0.49396...
0.49392706
21
This method was generated by MyBatis Generator. This method corresponds to the database table dish
Dish selectByPrimaryKey(String id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public List<SideDishEntity> findAll() {\n return null;\n }", "List<TblMotherSon> selectByExample(TblMotherSonExample example);", "@Override\r\n\tpublic int create(Dish dish) {\r\n\t\t\r\n//\t\thashMap.put(dish.getId(), dish);\r\n\t\tSystem.out.println(\" Creating Dish\");\r\n\t\tSession sessio...
[ "0.538416", "0.53013885", "0.52881795", "0.5206365", "0.5200112", "0.5123933", "0.5113557", "0.5111038", "0.5087587", "0.5087201", "0.5055471", "0.5037925", "0.50137585", "0.5001423", "0.499934", "0.49889484", "0.4978261", "0.4961641", "0.49530965", "0.4940532", "0.49399298",...
0.560114
0
This method was generated by MyBatis Generator. This method corresponds to the database table dish
int updateByExampleSelective(@Param("record") Dish record, @Param("example") DishExample example);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Dish selectByPrimaryKey(String id);", "@Override\n public List<SideDishEntity> findAll() {\n return null;\n }", "List<TblMotherSon> selectByExample(TblMotherSonExample example);", "@Override\r\n\tpublic int create(Dish dish) {\r\n\t\t\r\n//\t\thashMap.put(dish.getId(), dish);\r\n\t\tSystem.out.println(\...
[ "0.5601384", "0.53847265", "0.53002006", "0.52877796", "0.5206473", "0.51989734", "0.512477", "0.51117724", "0.5110217", "0.50892353", "0.5086627", "0.50535595", "0.50392836", "0.5013054", "0.5000241", "0.49984863", "0.49878994", "0.4977363", "0.49618345", "0.49523816", "0.49...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table dish
int updateByExample(@Param("record") Dish record, @Param("example") DishExample example);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Dish selectByPrimaryKey(String id);", "@Override\n public List<SideDishEntity> findAll() {\n return null;\n }", "List<TblMotherSon> selectByExample(TblMotherSonExample example);", "@Override\r\n\tpublic int create(Dish dish) {\r\n\t\t\r\n//\t\thashMap.put(dish.getId(), dish);\r\n\t\tSystem.out.println(\...
[ "0.5601651", "0.53839487", "0.53021646", "0.52873755", "0.520671", "0.5199008", "0.51244825", "0.51128334", "0.51112014", "0.5086853", "0.50846237", "0.50530577", "0.50382876", "0.5010417", "0.5000066", "0.49977776", "0.49874738", "0.4977294", "0.4961594", "0.4952532", "0.494...
0.0
-1
This method was generated by MyBatis Generator. This method corresponds to the database table dish
int updateByPrimaryKeySelective(Dish record);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Dish selectByPrimaryKey(String id);", "@Override\n public List<SideDishEntity> findAll() {\n return null;\n }", "List<TblMotherSon> selectByExample(TblMotherSonExample example);", "@Override\r\n\tpublic int create(Dish dish) {\r\n\t\t\r\n//\t\thashMap.put(dish.getId(), dish);\r\n\t\tSystem.out.println(\...
[ "0.5600174", "0.53841454", "0.5299719", "0.52865005", "0.5207043", "0.5197336", "0.5125447", "0.51118666", "0.5108231", "0.5086626", "0.5085082", "0.5053489", "0.50375754", "0.5013254", "0.5000734", "0.49990135", "0.49871296", "0.4977456", "0.49595127", "0.49507773", "0.49396...
0.4600525
93
This method was generated by MyBatis Generator. This method corresponds to the database table dish
int updateByPrimaryKey(Dish record);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Dish selectByPrimaryKey(String id);", "@Override\n public List<SideDishEntity> findAll() {\n return null;\n }", "List<TblMotherSon> selectByExample(TblMotherSonExample example);", "@Override\r\n\tpublic int create(Dish dish) {\r\n\t\t\r\n//\t\thashMap.put(dish.getId(), dish);\r\n\t\tSystem.out.println(\...
[ "0.560114", "0.538416", "0.53013885", "0.52881795", "0.5206365", "0.5200112", "0.5123933", "0.5113557", "0.5111038", "0.5087587", "0.5087201", "0.5055471", "0.5037925", "0.50137585", "0.5001423", "0.499934", "0.49889484", "0.4978261", "0.4961641", "0.49530965", "0.4940532", ...
0.46169445
89
Creates a menu item for URLSpan. Note: This method will not create menu item for relative URLs.
private static @Nullable ContextMenuItem createMenuItemForUrlSpan( Context context, int itemId, Spannable spannable, URLSpan span, TalkBackAnalytics analytics) { final String url = span.getURL(); final int start = spannable.getSpanStart(span); final int end = spannable.getSpanEnd(span); if (start ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static @Nullable ContextMenuItem createMenuItemForClickableSpan(\n Context context,\n int itemId,\n Spannable spannable,\n ClickableSpan clickableSpan,\n TalkBackAnalytics analytics) {\n final int start = spannable.getSpanStart(clickableSpan);\n final int end = spannable.getS...
[ "0.64351994", "0.61885667", "0.59281933", "0.58763564", "0.5780669", "0.56603324", "0.56532604", "0.56437135", "0.5443538", "0.5443111", "0.5417126", "0.54129285", "0.53932565", "0.5388698", "0.537475", "0.53696036", "0.53261054", "0.5318652", "0.528155", "0.5254281", "0.5219...
0.7410019
0
Creates a menu item for ClickableSpan.
private static @Nullable ContextMenuItem createMenuItemForClickableSpan( Context context, int itemId, Spannable spannable, ClickableSpan clickableSpan, TalkBackAnalytics analytics) { final int start = spannable.getSpanStart(clickableSpan); final int end = spannable.getSpanEnd(click...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static @Nullable ContextMenuItem createMenuItemForUrlSpan(\n Context context, int itemId, Spannable spannable, URLSpan span, TalkBackAnalytics analytics) {\n final String url = span.getURL();\n final int start = spannable.getSpanStart(span);\n final int end = spannable.getSpanEnd(span);\n ...
[ "0.6607176", "0.6576253", "0.62460625", "0.6123465", "0.6087062", "0.6068711", "0.60251045", "0.59704787", "0.5968738", "0.5932267", "0.5930283", "0.5896161", "0.5864923", "0.5827355", "0.5799203", "0.5765414", "0.57398784", "0.57130015", "0.56729513", "0.5670931", "0.5627896...
0.7617532
0
always overrides the current state. will return null if any nonhex values are present. pads lines too small and will read only a max of 32 characters
public void readLine(String line) { if (line.length() < 32) { while (line.length() < 32) { line += "0"; } } int begin = 0; int end = 2; for (int row = 0; row < 4; row++) { for (int col = 0; col < 4; col++) { // int val = 0; String hexVal = line.substring(begin, end); hexVal = "0x...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static void getNonBlank() throws IOException{\n while(curr_char == 32)\n {\n curr_char = pbIn.read();\n }\n }", "@Test(timeout = 4000)\n public void test055() throws Throwable {\n JavaCharStream javaCharStream0 = new JavaCharStream((Reader) null, 122, 122, 122);\n javaCharStream0.back...
[ "0.5373574", "0.5337422", "0.5307955", "0.5307955", "0.5295699", "0.5295496", "0.52120286", "0.5184645", "0.5124239", "0.5061413", "0.5061349", "0.5028267", "0.49917513", "0.4955594", "0.49428633", "0.49323457", "0.48848274", "0.48803532", "0.48767015", "0.48739952", "0.48694...
0.50175893
12
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View v = inflater.inflate(R.layout.fragment_two, container, false); TabLayout tl = v.findViewById(R.id.viewpagertab); viewPager = v.findViewById(R.id.vi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup...
[ "0.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.66251...
0.0
-1
TODO to be implemented
@Override public void update(News item) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void anularFact() {\...
[ "0.59761655", "0.5968062", "0.59193194", "0.5874404", "0.58493966", "0.57490444", "0.5664812", "0.56591034", "0.56256324", "0.56256324", "0.5610172", "0.5589765", "0.5579562", "0.5574415", "0.556244", "0.5536535", "0.55302966", "0.55221987", "0.55190253", "0.5509272", "0.5501...
0.0
-1
TODO to be implemented
@Override public void remove(News item) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void anularFact() {\...
[ "0.59761655", "0.5968062", "0.59193194", "0.5874404", "0.58493966", "0.57490444", "0.5664812", "0.56591034", "0.56256324", "0.56256324", "0.5610172", "0.5589765", "0.5579562", "0.5574415", "0.556244", "0.5536535", "0.55302966", "0.55221987", "0.55190253", "0.5509272", "0.5501...
0.0
-1
TODO to be implemented
@Override public void remove(Specification specification) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void anularFact() {\...
[ "0.5975839", "0.59677374", "0.5919047", "0.58743304", "0.58489776", "0.5748961", "0.56650007", "0.56592876", "0.56255245", "0.56255245", "0.5610062", "0.55898273", "0.5579331", "0.55744815", "0.5562347", "0.5536767", "0.55304945", "0.5521841", "0.5519059", "0.5509232", "0.550...
0.0
-1
Creates new form frmTimeTableList
public frmTimeTableList() { initComponents(); modelTimeTable=(DefaultTableModel)jTableTimeTable.getModel(); clFunction.changeLookTable(jTableTimeTable); btnSearchActionPerformed(null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Time_table() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n jScrollPane1 = new javax.swing.JScrollPane();\n tblTimeSlots = n...
[ "0.6563516", "0.6465384", "0.61301047", "0.6119628", "0.60776013", "0.58224666", "0.578546", "0.57663035", "0.57398957", "0.5694458", "0.5674821", "0.56727946", "0.5667944", "0.5656316", "0.56529105", "0.561224", "0.55918634", "0.55805045", "0.55430025", "0.5540621", "0.55389...
0.7503436
0
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jScrollPane1 = new javax.swing.JScrollPane(); jTableTimeTable = new javax.swing.JTable(); jLabel2 = new javax.swing.JLabel(); ...
{ "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.73197734", "0.72914416", "0.72914416", "0.72914416", "0.72862023", "0.72487676", "0.7213741", "0.7207628", "0.7196503", "0.7190263", "0.71850693", "0.71594703", "0.7147939", "0.7093137", "0.70808756", "0.70566356", "0.6987119", "0.69778043", "0.6955563", "0.6953879", "0.69...
0.0
-1
add pet to user
public boolean addToUser(PetDTO pet , String username) throws Exception{ boolean check = false; try { conn = MyConnection.getConnection(); String sql = "Insert into tbl_UserPet(Username,PetID) values(?,?)"; preStm = conn.prepareStatement(sql); preStm.setSt...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addPets(PetPOJO pet) {\n pets.add(pet);\n }", "public void addPet(VirtualPet pet) {\n\t\tshelterPets.put(pet.name, pet);\n\t}", "void addUser(User user);", "void addUser(User user);", "public void addUser(User user);", "@Transactional\n\tpublic PetDTO createPet(PetDTO petDTO) {\n\t\...
[ "0.6832711", "0.68174505", "0.67418516", "0.67418516", "0.67138994", "0.66631615", "0.6569569", "0.65024555", "0.6489206", "0.6420172", "0.6364742", "0.62178284", "0.62081546", "0.6186362", "0.61696476", "0.6120274", "0.61195785", "0.6085453", "0.6067331", "0.6066212", "0.602...
0.71312606
0
Return extension point unique ids if type extensionPointId
public static List<IExtension> getExtensionsByUniqueId(String extensionPointId, Collection<String> extensionPointUniqueIds) { List<IExtension> extensions = new ArrayList<>(); for (String entensionPointUniqueId : extensionPointUniqueIds) { IExtension extension = Platform.getExtensionRegistry().getEx...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String[] getExtensionIds();", "public List<String> getPlotIds() {\n return Identifiable.getIds(getPlotList());\n }", "Set<String> getExpressionDataElementIds(String expression, ParseType parseType);", "public List<String> getPlotDefinitionIds() {\n return Identifiable.getIds(getPlotDe...
[ "0.67533606", "0.5745311", "0.5536414", "0.53565997", "0.5312162", "0.5288198", "0.5280981", "0.52473575", "0.5223909", "0.5208052", "0.52003413", "0.5195286", "0.5182143", "0.51772374", "0.51405317", "0.50744194", "0.5072798", "0.50542355", "0.5033007", "0.5017402", "0.50143...
0.6635605
1
/Technique du futur xD
public void updateActivite(Activite activite) { activites.removeIf(a -> a.getIdActivity().equals(activite.idActivity)); activites.add(activite); //DEBUG for(Activite a : this.activites){ System.err.println("*+*+* " + a.getIdActivity() + " " + a.getTitre()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void cajas() {\n\t\t\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public void mo38117a() {\n }", "public void gored() {\n\t\t\n\t}", "@Override\n public void perish() {\n...
[ "0.6073419", "0.5998896", "0.5871124", "0.58213806", "0.58169514", "0.5732098", "0.5730556", "0.56808054", "0.5657111", "0.56285584", "0.56279", "0.56205845", "0.56178546", "0.56178546", "0.56178546", "0.56178546", "0.56178546", "0.56178546", "0.56178546", "0.5614234", "0.558...
0.0
-1
TODO Autogenerated method stub
public Long getIdPerson() { return this.idPerson; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
public String getNom() { return this.nom; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
public boolean verifyPassword(String password2) { System.out.println(this.password); return this.password.equals(password2); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.66713095", "0.6567948", "0.652319", "0.648097", "0.64770466", "0.64586824", "0.64132667", "0.6376419", "0.62759", "0.62545097", "0.62371093", "0.62237984", "0.6201738", "0.619477", "0.619477", "0.61924416", "0.61872935", "0.6173417", "0.613289", "0.6127952", "0.6080854", ...
0.0
-1
TODO Autogenerated method stub
public String getEmail() { return email; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExr...
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.608016...
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { Scanner input = new Scanner(System.in); // prompts users for all info needed System.out.println("Enter your name:"); String name = input.nextLine(); System.out.println(name + ", enter your height in inches:"); double height = input.nextDouble(); double heightCon ...
{ "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
System.out.println("bean="+bean); System.out.println("bindingResult="+bindingResult); System.out.println("login="+login); System.out.println("model="+model); System.out.println(memberService.login(bean)); System.out.println("");
@RequestMapping(path = { "/secure/login.controller" }) public String handlerMethod(MemberBean bean, BindingResult bindingResult, String login, Model model, HttpSession session, Locale locale,HttpServletResponse response,HttpServletRequest request) { Map<String, String> errors = new HashMap<String, String>(); m...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testDoLogin() {\n System.out.println(\"doLogin\");\n String username = \"AECobley\";\n String password = \"Cassandraisbae\";\n LoginModel instance = new LoginModel();\n String[] expResult = null;\n String[] result = instance.generalLogin(username, pa...
[ "0.5981605", "0.5812712", "0.58055896", "0.5798837", "0.57354075", "0.56996906", "0.56907064", "0.5687078", "0.56600124", "0.5616977", "0.5605688", "0.5602374", "0.5602236", "0.55924624", "0.55921173", "0.5590832", "0.5552759", "0.5549854", "0.5543159", "0.55368686", "0.55314...
0.6301481
0
Constructor to build the connection
public TCPServerEmployee(int NumPort, ControllerC controller) { try { socketserver = new ServerSocket(NumPort); this.controller = controller; } catch (IOException e) { e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Connection() {\n\t\t\n\t}", "private Connection () {}", "private Connection() {\n \n }", "Connection createConnection();", "private void createConnection() {\n this.callbacks = getCallbacks();\n\n Properties props = new Properties();\n props.putAll(getTestProps());\n ...
[ "0.75356275", "0.7407774", "0.7309256", "0.71213573", "0.70934665", "0.70874363", "0.7047814", "0.70409167", "0.6995069", "0.6960772", "0.69594705", "0.68325466", "0.68151695", "0.68037635", "0.68010694", "0.6760241", "0.67463845", "0.6743354", "0.6669331", "0.66192895", "0.6...
0.0
-1
Launching of a thread to establish the connection
public void run() { try { while(true) { socket = socketserver.accept(); writeListIdEmployee(); socket.close(); } } catch (IOException e) { try { socketserver.close(); } catch (IOException e2) { e2.printStackTrace(); } e.printS...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void startThread(){\n String message = \"Connecting to RescueNet...Please Wait\";\n showProgressDialog(message);\n connectionThread = new ConnectionThread(mwifiAdmin, handlerMain);\n connectionThread.start();\n }", "private void createAndStartConnectionThread() {\n ne...
[ "0.79512465", "0.7485519", "0.7470632", "0.7151249", "0.70661795", "0.70661795", "0.6974097", "0.6933514", "0.69333357", "0.68852353", "0.6872176", "0.67596483", "0.6751662", "0.67057276", "0.668747", "0.6656996", "0.6630814", "0.6628593", "0.6626948", "0.6610193", "0.6584015...
0.0
-1
Sends the employees array to the emulator application
private void writeListIdEmployee() { try { ObjectOutputStream out = new ObjectOutputStream(socket.getOutputStream()); out.writeObject(controller.GetListIdEmployee()); out.flush(); out.close(); } catch (IOException e) { e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setEmployees(Employee[] employees) {\n\t\tthis.employees = employees;\n\t}", "private void doViewAllEmployees() {\n Scanner sc = new Scanner(System.in);\n\n System.out.println(\"***Hors Management System:: System Administration:: View All Staffs\");\n\n List<Employee> employees =...
[ "0.6868632", "0.65090203", "0.62585706", "0.61836845", "0.6144087", "0.61378914", "0.6069939", "0.60509753", "0.6033147", "0.60183626", "0.5998408", "0.59513074", "0.5935595", "0.5876214", "0.58760726", "0.58753455", "0.57754105", "0.577029", "0.57566124", "0.57539284", "0.57...
0.5525948
34
First check to see whether OpenGL 2.0 is supported on the system. If not, then display a dialog saying you cannot configure your avatar.
public void actionPerformed(ActionEvent e) { RenderManager rm = ClientContextJME.getWorldManager().getRenderManager(); if (rm.supportsOpenGL20() == false || rm.getContextCaps().GL_MAX_VERTEX_UNIFORM_COMPONENTS_ARB < 1000) { String msg = "Unfortun...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static boolean checkIsSupportedDeviceOrFinish(final Activity activity) {\n String openGlVersionString =\n ((ActivityManager) activity.getSystemService(Context.ACTIVITY_SERVICE))\n .getDeviceConfigurationInfo()\n .getGlEsVersion();\n if (Dou...
[ "0.6232311", "0.6163176", "0.57402796", "0.5737742", "0.56206703", "0.55212677", "0.5517904", "0.5427114", "0.5391837", "0.52742684", "0.5247918", "0.52408844", "0.52127403", "0.51941836", "0.5176768", "0.5167874", "0.5157227", "0.5150972", "0.5146916", "0.5134399", "0.510378...
0.6196923
1
Refreshes the primary view cell with the current avatar in use given the current primary view cell.
public synchronized void refreshAvatarInUse(ViewCell viewCell, boolean isLocal) { // Once the avatar loader is ready and the primary view has been set, // we tell the avatar cell component to set it's avatar in use. AvatarConfigComponent configComponent = viewCell.getComponent(AvatarConfigCom...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\t\tpublic void update(ViewerCell cell) {\n\t\t\tUser user=(User) cell.getElement();\r\n\t\t\tif(cell.getColumnIndex()==0){\r\n\t\t\t\tcell.setText(user.getId()+\"\");\r\n\t\t\t}else if(cell.getColumnIndex()==1){\r\n\t\t\t\tcell.setText(user.getName());\r\n\t\t\t}\r\n\t\t\tsuper.update(cell);\r\n\t\t}...
[ "0.5346508", "0.5290137", "0.52713287", "0.52713287", "0.5197168", "0.51647216", "0.51240814", "0.50887036", "0.50806856", "0.50599045", "0.50573254", "0.5036123", "0.5033208", "0.5006885", "0.5002178", "0.4987824", "0.49808037", "0.49647406", "0.49642953", "0.49554506", "0.4...
0.6379307
0
Checks whether the ini file was loaded successfully.
public boolean isAvailable() { return isavailable; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean loadFile() {\n\n\t\tboolean result = false;\n\n\t\tSystem.out.println(\"Checking configuration file: \"+ cnfFile.getAbsolutePath());\n\n\t\tif (!cnfFile.exists()) {\n\t\t\tSystem.out.println(\"ERROR: config file doesn't exist\");\n\t\t} else if (!cnfFile.isFile()) {\n\t\t\tSystem.out.println(\"ERROR...
[ "0.6595396", "0.6458567", "0.5809925", "0.5797125", "0.57929826", "0.57500935", "0.56858736", "0.56827104", "0.5632608", "0.56202495", "0.5601006", "0.55468833", "0.55460554", "0.5532153", "0.5514511", "0.5487051", "0.5478761", "0.5473109", "0.5463266", "0.54496455", "0.54490...
0.0
-1
Returns the name of the file from which this ini file was loaded.
public String getFilename() { return filename; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getFileName()\r\n\t{\r\n\t\treturn settings.getFileName();\r\n\t}", "public String getName() {\n return _file.getAbsolutePath();\n }", "public String getName()\n {\n return( file );\n }", "public final String getFileName() {\n\t\treturn m_info.getFileName();\n\t}", "pub...
[ "0.7321648", "0.72740227", "0.7106005", "0.7094169", "0.7025113", "0.70172596", "0.69646055", "0.6915568", "0.6886218", "0.6824583", "0.6809577", "0.6793674", "0.6786694", "0.6774731", "0.67323095", "0.67247105", "0.6718761", "0.6696245", "0.6686751", "0.66414875", "0.6634319...
0.0
-1
Creates a list of key value pairs from the specified file name. Use the getString, getInteger and getBoolean methods to retrieve the values.
public IniFile(String name) { this.filename = name; isavailable = parse(name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void readFromFile(String key, String value);", "public ArrayList loadItems (String file) {\n ArrayList<Item> itemList = new ArrayList<>();\n\n File itemFile = new File(file);\n\n Scanner scanner = null;\n\n try{\n scanner = new Scanner(itemFile);\n\n ...
[ "0.6270862", "0.60765994", "0.5978085", "0.59254867", "0.589766", "0.5888074", "0.5827956", "0.5800059", "0.57741725", "0.57346106", "0.571727", "0.5712583", "0.56629455", "0.5602694", "0.5590172", "0.5548749", "0.55335176", "0.55240905", "0.55236876", "0.5506778", "0.54943",...
0.0
-1
Parses the file and creates a keyvaluepair list.
private boolean parse(String name) { BufferedReader in; try { in = new BufferedReader(new InputStreamReader(new FileInputStream(name))); } catch (IOException e) { return false; } try { while (true) { String line = in.readLine(); if (line != null...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void parseValues(File file){\r\n\t\ttry {\r\n\t\t\tScanner scanner = new Scanner(file);\r\n\t\t\tString line;\r\n\t\t\tif(scanner.hasNext()) \r\n\t\t\t\tline = scanner.nextLine();\r\n\t\t\twhile (scanner.hasNextLine()) {\r\n\t\t\t\tline = scanner.nextLine();\r\n\t\t\t\taddToSupplyValues(line);\r\n\t\t\t}...
[ "0.6041725", "0.5914962", "0.56729233", "0.5461331", "0.54586786", "0.5443404", "0.5424", "0.5373104", "0.5361386", "0.5337009", "0.5315945", "0.5313205", "0.53054523", "0.5277578", "0.52560186", "0.524388", "0.5207699", "0.51953256", "0.5194631", "0.5192693", "0.5169183", ...
0.50526476
26
Retrieves the value of a key value pair based on the key name.
public String getString(String key) { String value = (String) keyvaluepairs.get(key.toLowerCase()); return value == null ? "" : value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Object get(String key);", "Object get(String key);", "public Value get(Key key);", "public Object get(String key);", "public String getValue(String keyName)\n {\n if (keyName == null || keyName.trim().length() == 0)\n throw new IllegalArgumentException(\"keyName may not be null or empty\");\...
[ "0.7231108", "0.7231108", "0.7211464", "0.7152624", "0.7132463", "0.694525", "0.6943997", "0.69311935", "0.69311935", "0.69227564", "0.69227564", "0.69227564", "0.69227564", "0.69227564", "0.69227564", "0.69227564", "0.6903572", "0.6889072", "0.68411094", "0.68248725", "0.678...
0.0
-1