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 |
|---|---|---|---|---|---|---|
TODO Autogenerated method stub | @Override
public void finishEvent() {
if(!mEventStarted)
return;
mEventStarted = false;
xmlStreamTracerService.postObsel(mURL, mTraceID, mCookie, mRoot.toString(),
new AsyncCallback<String>() {
public void onFailure(Throwable caught) {
// Show the RPC error message to the user
S... | {
"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 |
Show the RPC error message to the user | public void onFailure(Throwable caught) {
System.out.println("XMLStreamTracer: Failed to post the event.");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void showError(String error);",
"void showError(String message);",
"void showError(String message);",
"@Override\n public void showError() {\n }",
"public void showError(String errorMessage);",
"void showError(String errorMessage);",
"void errorResponse( String error );",
"void showError... | [
"0.729417",
"0.7190209",
"0.7190209",
"0.7032782",
"0.702754",
"0.70209455",
"0.69728166",
"0.69641274",
"0.69545954",
"0.69153816",
"0.68666023",
"0.68666023",
"0.68092376",
"0.67919785",
"0.676801",
"0.6760941",
"0.6760941",
"0.6760941",
"0.6736302",
"0.67330396",
"0.665087... | 0.0 | -1 |
Add a new element to the current event | @Override
public Element addEventElement(String name) {
return this.addEventElementImpl(name, "", true);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void pushNewEvent(Event e) {\n\t\tec.pushNewElement(e);\n\t}",
"com.walgreens.rxit.ch.cda.EIVLEvent addNewEvent();",
"public void addEvent(Event e) {\n\t\t\n\t}",
"public void addEvent(Event e) {\n\t\t\n\t}",
"public void addEvent(Event event) {\n\t\t\n\t}",
"public void add(E element) {\n\t\t// ... | [
"0.7184809",
"0.6978908",
"0.67897123",
"0.67897123",
"0.66353726",
"0.66014004",
"0.6547707",
"0.6544589",
"0.64785075",
"0.64298064",
"0.63888735",
"0.6377585",
"0.62263376",
"0.62126225",
"0.6177127",
"0.61612475",
"0.6151638",
"0.61495554",
"0.6146115",
"0.6142278",
"0.60... | 0.6858645 | 2 |
/ construct fieldsets using reflection | public static <F> F fieldSetFromByteStream(Supplier<F> supplier, Map<String,Field<?>> fieldByPrefixedName,
InputStream is) throws IOException{
int databeanLength = VarInt.fromInputStream(is).getValue();
return fieldSetFromByteStreamKnownLength(supplier, fieldByPrefixedName, is, databeanLength);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private FieldSetMapper<Card> createCardFieldSetMapper() {\r\n\t\tBeanWrapperFieldSetMapper<Card> fieldSetMapper = new BeanWrapperFieldSetMapper<>();\r\n\t\tfieldSetMapper.setTargetType(Card.class);\r\n\t\treturn fieldSetMapper;\r\n\t}",
"void setFields(Set<F> fields);",
"private void prepare( ) {\n super.pr... | [
"0.5915529",
"0.59088945",
"0.58960533",
"0.57333654",
"0.5717282",
"0.56060326",
"0.5594834",
"0.5557366",
"0.54145086",
"0.5412879",
"0.5405063",
"0.5397475",
"0.53465956",
"0.5324821",
"0.53101975",
"0.5289607",
"0.5270406",
"0.5265314",
"0.52576417",
"0.5251607",
"0.52319... | 0.48703924 | 52 |
do nothing. for EventBus, if it would be registered | public void onEventMainThread(BaseEvent unused) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tprotected boolean isBindEventBusHere() {\n\t\treturn false;\n\t}",
"void onBusEvent(Event event);",
"protected void registerListener() {\r\n\t\t// do nothing\r\n\t}",
"@Override\n public boolean usesEvents()\n {\n return false;\n }",
"@Override\r\n\t\tpublic void busStopRequest... | [
"0.7239291",
"0.6319163",
"0.6273078",
"0.62366134",
"0.6191752",
"0.61608994",
"0.61597914",
"0.6159754",
"0.6111316",
"0.61081696",
"0.60918736",
"0.6018543",
"0.5991395",
"0.59781057",
"0.5974673",
"0.5964399",
"0.59218824",
"0.590627",
"0.5899773",
"0.58526194",
"0.575673... | 0.53841877 | 76 |
Accepts fullypopulated Invite and returns the Integer ID; the token should already have been populated. Integer ID is the DB unique identifier; the token is a hashed value serving as a public ID. | Integer addNew(InviteEntity builder) throws IOException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Array({16}) \n\t@Field(2) \n\tpublic Pointer<Byte > InvestorID() {\n\t\treturn this.io.getPointerField(this, 2);\n\t}",
"public Integer getInviteUserId() {\n return inviteUserId;\n }",
"String getInvitationId();",
"InviteEntity getInvitationById(Integer inviteId);",
"InviteEntity accept(Integer ... | [
"0.6137889",
"0.6090536",
"0.5937732",
"0.564966",
"0.56043863",
"0.55775094",
"0.55775094",
"0.55775094",
"0.55775094",
"0.55758137",
"0.5518231",
"0.5477271",
"0.54637307",
"0.5390294",
"0.5383535",
"0.5317124",
"0.5308653",
"0.53043294",
"0.525857",
"0.52544236",
"0.524688... | 0.4924164 | 65 |
Returns a list of fullypopulated Invitations for the given Outing. | List<InviteEntity> getInvitationsByOuting(Integer outingId); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"List<InviteEntity> getUpcomingInvitationsByMemberId(Integer memberId);",
"@Transactional(readOnly = true)\n public Page<Invitation> findAll(Pageable pageable) {\n log.debug(\"Request to get all Invitations\");\n return invitationRepository.findAll(pageable);\n }",
"public Page<Invitation> g... | [
"0.6033148",
"0.58183205",
"0.56924134",
"0.5571515",
"0.55566436",
"0.5301625",
"0.52669674",
"0.52305144",
"0.5153856",
"0.51377636",
"0.5095766",
"0.50833416",
"0.5069788",
"0.50682306",
"0.50559765",
"0.504749",
"0.50384134",
"0.49973854",
"0.49770004",
"0.49232575",
"0.4... | 0.7814468 | 0 |
Given a memberId, retrieve the list of Active Invitations in order of soonest to latest. | List<InviteEntity> getUpcomingInvitationsByMemberId(Integer memberId); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<Expense> getExpensesPaidByMember(int memberid){\n\t\tList<Expense> expenses = new ArrayList<Expense>();\n\t\ttry {\n\t\t\tstatement = connection.prepareStatement(\"SELECT expense.id, senderid, amount, expensedate, description FROM expense INNER JOIN expense_receiver ON expense.id = expense_receiver.exp... | [
"0.57666665",
"0.5673399",
"0.5543349",
"0.549338",
"0.54445016",
"0.5131637",
"0.5009189",
"0.49751046",
"0.4973905",
"0.48799214",
"0.4870192",
"0.48555762",
"0.48071343",
"0.4768273",
"0.475873",
"0.47498107",
"0.4713457",
"0.47100395",
"0.47073424",
"0.46986824",
"0.46971... | 0.782507 | 0 |
Given an invitation ID, retrieve the matching instance. | InviteEntity getInvitationById(Integer inviteId); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Invitation getInvitationById(int invitationId);",
"@Transactional(readOnly = true)\n public Optional<Invitation> findOne(Long id) {\n log.debug(\"Request to get Invitation : {}\", id);\n return invitationRepository.findById(id);\n }",
"public ApplyInvite findById(Object id);",
"public Inv... | [
"0.7784235",
"0.6980363",
"0.617229",
"0.6085328",
"0.5971572",
"0.5968928",
"0.59023345",
"0.583223",
"0.5809478",
"0.5738756",
"0.56739366",
"0.56714714",
"0.5670489",
"0.5668863",
"0.5572238",
"0.5536288",
"0.5514219",
"0.551315",
"0.5502864",
"0.5495862",
"0.54941154",
... | 0.70551246 | 1 |
Given an instance of Invite.Builder, persist (or create a new record). | InviteEntity save(InviteEntity builder); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Integer addNew(InviteEntity builder) throws IOException;",
"public boolean save(ApplyInvite model);",
"public static Invite createEntity(EntityManager em) {\n Invite invite = new Invite()\n .nom(DEFAULT_NOM)\n .prenom(DEFAULT_PRENOM)\n .mail(DEFAULT_MAIL)\n .m... | [
"0.6142708",
"0.5805411",
"0.56620425",
"0.5607973",
"0.5422733",
"0.53246695",
"0.5321292",
"0.52485996",
"0.52416337",
"0.52370024",
"0.52240604",
"0.52164096",
"0.5187547",
"0.5184009",
"0.5170474",
"0.5156042",
"0.5141899",
"0.51142687",
"0.5111635",
"0.5104466",
"0.50970... | 0.7778317 | 0 |
Accept the invitation identified by the given inviteId. | InviteEntity accept(Integer inviteId); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@RequestMapping(value = \"/accept/team/invitation/{invitationId}\", method = PUT)\n public LobbyTeam acceptTeamInvitation(@AuthenticationPrincipal UserSimpleDetails user,\n @PathVariable(\"invitationId\") String invitationId)\n throws TeamInvitationNotFoundExc... | [
"0.6054145",
"0.5969835",
"0.58207464",
"0.5753418",
"0.5680882",
"0.5654518",
"0.5388221",
"0.53579426",
"0.5272621",
"0.526629",
"0.5223802",
"0.51083714",
"0.5073427",
"0.5026759",
"0.50019443",
"0.4961415",
"0.49298316",
"0.49268427",
"0.4926097",
"0.4907249",
"0.48986515... | 0.7889237 | 0 |
Decline the invitation identified by the given inviteId. | InviteEntity decline(Integer inviteId); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"InviteEntity accept(Integer inviteId);",
"@Override\n\tpublic void ruleReject(String campaignActivityId) throws ASException {\n\t\tCampaignActivity ca = caDao.get(campaignActivityId);\n\t\t\n\t\tif( ca.getRedeemStatus().equals(CampaignActivity.REDEEM_STATUS_DELIVERED)) { \n\t\t\t\n\t\t\tca.setRedeemStatus(Campai... | [
"0.6166887",
"0.60251576",
"0.58446336",
"0.56084234",
"0.55355763",
"0.5525713",
"0.5521726",
"0.5518805",
"0.5410991",
"0.5242338",
"0.5214292",
"0.5202623",
"0.5201776",
"0.5188338",
"0.5165805",
"0.5162487",
"0.5134622",
"0.51195896",
"0.50702256",
"0.50155985",
"0.500906... | 0.7341522 | 0 |
TODO Autogenerated method stub | @Override
public Collection<AccessFunction> getALLFunctionOfGroup(Users user
) throws RemoteException {
String sql = " Groupname = '"+user.getUser_groups()+"'";
return AccessSQL.selectAccessFunction(sql, dsSQL.getConn());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public Collection<AccessFunction> getALLFunctionOfGroup(String groupName
) throws RemoteException {
String sql = " Groupname = '"+groupName+"'";
return AccessSQL.selectAccessFunction(sql, dsSQL.getConn());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
Created by dllo on 17/9/21. | public interface BookDao {
//查询所有
List findAll();
// 分类查询
List findOne(String cid);
// 查询书的详细信息
Book findOnlyOne(String cid);
// 加载图书
Book load(String bid);
// 添加图书
void add(Book book);
// 删除图书
void del(String bid);
// 编辑图书
void edit(Book book);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"public final void mo51373a() {\n }",
"@Overri... | [
"0.5922455",
"0.5819311",
"0.5801189",
"0.5757101",
"0.57385427",
"0.5690491",
"0.5680914",
"0.5665104",
"0.5632398",
"0.5632398",
"0.56311905",
"0.56195015",
"0.5616426",
"0.55878925",
"0.55878925",
"0.55878925",
"0.55878925",
"0.55878925",
"0.5548928",
"0.5547571",
"0.55474... | 0.0 | -1 |
Initializes a new character using a player and a characterid | public Character(Player player, int characterID)
{
gameOver = false;
this.name = player.name;
this.characterID = characterID;
direction = 2;
speed = 1;
invincible = false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Character(int id, int loyalty)\r\n \t{\r\n \t\tif(id < CharacterProfile.values().length && id >= 0)\r\n \t\t{\r\n \t\t\tCharacterProfile profile = CharacterProfile.values()[id];\r\n \t\t\t\r\n \t\t\tthis.selected = false;\r\n \t\t\tthis.id = id;\r\n \t\t\tthis.loyalty = loyalty;\r\n \t\t\tthis.lastSleep = ... | [
"0.65572023",
"0.62478316",
"0.623935",
"0.6236827",
"0.6184361",
"0.6181978",
"0.6158178",
"0.61377925",
"0.6074549",
"0.59999245",
"0.5973496",
"0.57684636",
"0.5761618",
"0.576138",
"0.57553947",
"0.5754936",
"0.5749227",
"0.57453763",
"0.5701568",
"0.5685965",
"0.56669325... | 0.7938791 | 0 |
Gives back the direction | public float getDirection()
{
return direction;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static void changeDirectionBackwards() {\n\n if(--direction == -1)\n direction = 3;\n }",
"void reverseDirection();",
"public void reverseDirection() {\n\t\tdirection *= -1;\n\t\ty += 10;\n\t}",
"public void backDown(){\n backSolenoid.set(DoubleSolenoid.Value.kReverse);\n }",
"publ... | [
"0.79849905",
"0.79115725",
"0.7755294",
"0.7410199",
"0.71816397",
"0.7131977",
"0.71256334",
"0.7103083",
"0.7017779",
"0.6944658",
"0.6883986",
"0.6874283",
"0.68370265",
"0.6835006",
"0.6809309",
"0.6754314",
"0.6753062",
"0.6751103",
"0.67496",
"0.6741189",
"0.6738619",
... | 0.66073954 | 28 |
returns the current X | public double X()
{
return curX;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getCurrentX() {\n return currentX;\n }",
"public float getCurrentX(){\n return curX;\n }",
"public double GetX(){\n return this._X;\n }",
"public double getX(){\n return this.x;\n }",
"public double getX() { return x; }",
"public double getX() {\... | [
"0.8390931",
"0.83532697",
"0.82104945",
"0.7976651",
"0.79442585",
"0.79005086",
"0.7887839",
"0.7887105",
"0.78722566",
"0.7861136",
"0.7861136",
"0.7861136",
"0.7861136",
"0.7845974",
"0.7837916",
"0.78353214",
"0.7828149",
"0.7828149",
"0.7828149",
"0.7828149",
"0.7828149... | 0.85783607 | 0 |
returns the current Y | public double Y()
{
return curY;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getCurrentY() {\n return currentY;\n }",
"public double GetY(){\n return this._Y;\n }",
"public double getY() {\n return mY;\n }",
"public double getY() {\n return y_;\n }",
"public double getY() {\n return y_;\n }",
"public double getY() {... | [
"0.89489347",
"0.83448607",
"0.8063911",
"0.80162865",
"0.80162865",
"0.80162865",
"0.8015589",
"0.8015589",
"0.8015589",
"0.8015589",
"0.8015589",
"0.80121386",
"0.80119765",
"0.80119765",
"0.80119765",
"0.80119765",
"0.80119765",
"0.80119765",
"0.80119765",
"0.79998827",
"0... | 0.8713128 | 1 |
returns the current speed | public double speed()
{
return speed;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double getCurrentSpeed();",
"public double getCurrentSpeed(){\r\n return speed;\r\n }",
"double getSpeed();",
"public double getSpeed();",
"public double getCurrentSpeed(){\n return currentSpeed;\n }",
"public double getCurrentSpeed(){\n return currentSpeed;\n }",
"... | [
"0.9069366",
"0.8695266",
"0.8554878",
"0.85251343",
"0.8505482",
"0.8505482",
"0.84105724",
"0.8386289",
"0.8384552",
"0.8324382",
"0.8324382",
"0.8311323",
"0.8311323",
"0.8311323",
"0.8311323",
"0.8311323",
"0.8311323",
"0.83019835",
"0.82864445",
"0.8277093",
"0.8277093",... | 0.85062295 | 4 |
Sets the speed for the character | public void setSpeed(double speed)
{
this.speed = speed;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setSpeed(int s){\r\n\t\tspeed = s;\r\n\t}",
"public void setSpeed(double speed) {\n \tthis.speed = speed;\n }",
"public void setSpeed(float val) {speed = val;}",
"public void setSpeed( Vector2 sp ) { speed = sp; }",
"private void setSpeed() {\n double cVel = cAccel*0.1;\n sp... | [
"0.7985164",
"0.79072785",
"0.7856173",
"0.7806587",
"0.7722234",
"0.77110827",
"0.77102363",
"0.77102363",
"0.76770693",
"0.76706135",
"0.76563805",
"0.76340866",
"0.76294565",
"0.76294565",
"0.7613809",
"0.76028633",
"0.75966156",
"0.75822586",
"0.7569178",
"0.75475407",
"0... | 0.7890177 | 2 |
Sets the direction for the character | public void setDirection(float direction)
{
this.direction = direction;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract void setDirection(int dir);",
"public void setDirection(int dir)\r\n\t{\r\n\t\tdirection = dir;\r\n\t}",
"public Player setDirection(String direction) { //<>// //<>//\n switch (direction) {\n case (\"UP\"):\n this.direction = UPKEY;\n break;\n case (\"DOWN\"):\n this... | [
"0.7826337",
"0.74206775",
"0.7383228",
"0.73346317",
"0.7277654",
"0.7273112",
"0.71710664",
"0.71377647",
"0.71127397",
"0.70164394",
"0.6980937",
"0.69489914",
"0.69488853",
"0.69480217",
"0.6920041",
"0.6916709",
"0.69091904",
"0.69016755",
"0.68944204",
"0.6846125",
"0.6... | 0.7047715 | 9 |
Sets the X position of the character | public void setX(double X)
{
curX = X;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public final void setXDPosition(final String xpos) {_xdpos = xpos;}",
"@Override\n\tpublic void setX(int x) {\n\t\txPos = x;\n\t}",
"void setX(int x) {\n position = position.setX(x);\n }",
"void setX(int newX) {\n this.xPos = newX;\n }",
"public void setX(int xpos) {\r\n this.xpos = xpos;\r\n }... | [
"0.755557",
"0.7460192",
"0.7383131",
"0.72605866",
"0.72550255",
"0.7198575",
"0.7112843",
"0.6999702",
"0.6987542",
"0.6977042",
"0.6851223",
"0.6844669",
"0.67408776",
"0.67011493",
"0.66882104",
"0.66296214",
"0.6627771",
"0.6619019",
"0.6602589",
"0.65967655",
"0.6583368... | 0.60467213 | 96 |
Sets the Y position of the character | public void setY( double Y)
{
curY = Y;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setY(int y){ yPosition = y; }",
"@Override\n\tpublic void setY(int y) {\n\t\tyPos = y;\n\t}",
"void setY(int newY) {\n this.yPos = newY;\n }",
"public void setY(int yPos){\t\t\n\t\ty = new Integer(yPos);\n\t}",
"void setY(int y) {\n position = position.setY(y);\n }",
"public void setY... | [
"0.7962799",
"0.7817216",
"0.7785349",
"0.77226126",
"0.7612662",
"0.7595675",
"0.75573224",
"0.75436604",
"0.7395353",
"0.7345884",
"0.733015",
"0.7316698",
"0.73085135",
"0.72988254",
"0.7298595",
"0.7272869",
"0.7260312",
"0.72585666",
"0.72579163",
"0.72296405",
"0.722478... | 0.6666634 | 83 |
build the rangeKey string that is used to identify blogen posts | public static String buildPostRangeKey( Instant created, String postId ) {
return Blogen.RANGE_POST + Blogen.ATT_SEP + created.toString() + Blogen.ATT_SEP + postId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public StringBuffer rangeToString(Key low, Key high)\n {\n \t\n \tStringBuffer str=new StringBuffer();\n \t\n \tint l=(int) low;\n \tint h=(int) high;\n \tfor(int ch=l;ch<=h;ch++)\n \tstr.append(ch);\n \treturn str;\n \t \t\n }",
... | [
"0.5885076",
"0.5590412",
"0.5459066",
"0.531882",
"0.51139086",
"0.5074854",
"0.5072928",
"0.5064908",
"0.50582206",
"0.50474125",
"0.50435007",
"0.50288457",
"0.5011109",
"0.4952841",
"0.49462563",
"0.49275404",
"0.49162227",
"0.49009356",
"0.4892764",
"0.4891331",
"0.48899... | 0.7756368 | 0 |
Creates a new instance. | public DefaultJobSelectionStrategy() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Instance createInstance();",
"public void create(){}",
"public Instance() {\n }",
"private Instantiation(){}",
"private Object createInstance() throws InstantiationException, IllegalAccessException {\n\t\treturn classType.newInstance();\n\t}",
"void create(T instance) throws IOException;",
"public v... | [
"0.7834167",
"0.72893584",
"0.70771503",
"0.7048765",
"0.70209944",
"0.6839274",
"0.67782235",
"0.6770133",
"0.67429745",
"0.6701039",
"0.6690158",
"0.6630354",
"0.66046286",
"0.6600776",
"0.6600776",
"0.6597608",
"0.6592152",
"0.6564594",
"0.65268713",
"0.652679",
"0.6475239... | 0.0 | -1 |
Creates a new instance of BookLoanPK with the specified values. | public BookLoanPK(int customerId, String isbn, int bookLoanId) {
this.customerId = customerId;
this.isbn = isbn;
this.bookLoanId = bookLoanId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Loan(int loanId, Book bOoK, Member mEmBeR, Date dueDate) { ////changed 'BoOk' to 'book' and changed 'MeMbEr' to 'member' and DuE_dAtE to dueDate\r\n\t\tthis.LoAn_Id = loanId; //changed 'LoAn_Id' to 'loanId'\r\n\t\tthis.BoOk = book; //changed 'BoOk' to 'book'\r\n\t\tthis.MeMbEr = member; //changed 'MeMbEr... | [
"0.5938234",
"0.5568672",
"0.5523352",
"0.5490856",
"0.5485333",
"0.5386778",
"0.53531384",
"0.5253025",
"0.52318126",
"0.5221726",
"0.52144504",
"0.5206978",
"0.52062047",
"0.51981914",
"0.5185298",
"0.51677144",
"0.5151883",
"0.5123704",
"0.5097407",
"0.50939",
"0.50877655"... | 0.6902827 | 0 |
sets drew to a value | public void setDrew(int num){
drew = num;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setRed(int x, int y, int value);",
"void setBlue(int x, int y, int value);",
"void setRed(int red){\n \n this.red = red;\n }",
"public void setColor(DyeColor color) {\n/* 53 */ setData(color.getWoolData());\n/* */ }",
"public void setColor(double value) {\r\n\t\tif (value < 0... | [
"0.668932",
"0.6381691",
"0.6280142",
"0.61968786",
"0.6022838",
"0.5969126",
"0.59534377",
"0.592869",
"0.58704597",
"0.5814071",
"0.5786275",
"0.575967",
"0.5722618",
"0.571111",
"0.5697942",
"0.56893784",
"0.5686866",
"0.5678598",
"0.56581426",
"0.56342226",
"0.5608599",
... | 0.69612885 | 0 |
totals the number of pips in player hand | public int make_a_num(){
total = 0;
for(int i = 0; i < playerHand.size(); i++){
total += playerHand.get(i).getLeft();
total += playerHand.get(i).getRight();
}
return total;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getFaintedPokemonCount();",
"int getReservePokemonCount();",
"public int numAlivePokemon() {\r\n\t\tint count = 0;\r\n\t\tfor (Pokemon p : ownedPokemon) {\r\n\t\t\tif (p.getCurrentHP() > 0) {\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn count;\r\n\t}",
"@Override\r\n\tpublic int getPegCount() {\... | [
"0.7091829",
"0.6806847",
"0.67463225",
"0.64788634",
"0.643758",
"0.6409641",
"0.6400453",
"0.63938296",
"0.6389732",
"0.63837695",
"0.63791597",
"0.63432235",
"0.6313432",
"0.6303532",
"0.6301145",
"0.6289023",
"0.62314415",
"0.6230608",
"0.6230371",
"0.62105405",
"0.620970... | 0.64878476 | 3 |
returns if the player passed | public boolean getPassed(){
return passedLastMove;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean isPlayerTurn();",
"public boolean passPlayer() {\n if (this.state == 2) {\n if (this.playerBet != this.serverBet && this.money_server != 0 && this.money_player !=0) {\n return false;\n }\n // player moves and is dealer\n if (this.dealer ==... | [
"0.7623023",
"0.7443885",
"0.73688173",
"0.7317376",
"0.7304161",
"0.7227534",
"0.7221371",
"0.72136766",
"0.7200113",
"0.7092009",
"0.70431423",
"0.6996605",
"0.69959575",
"0.69378084",
"0.69231904",
"0.69204265",
"0.691376",
"0.6904627",
"0.6875113",
"0.6851041",
"0.6846439... | 0.66543317 | 43 |
sets the player passed boolean | public void setPassed(boolean passed){
passedLastMove=passed;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setAsPlayer(){\n\t\tthis.isPlayer = true;\n\t}",
"public void setSinglePlayer(){\n isSinglePlayer = true;\n }",
"boolean setPlayer(String player);",
"public void setActivePlayer()\n {\n activePlayer = !activePlayer;\n }",
"public void setPlayerState(boolean state)\n\t{\n\... | [
"0.82125413",
"0.7694431",
"0.7575787",
"0.7502997",
"0.73827434",
"0.71865064",
"0.71295136",
"0.712812",
"0.7045831",
"0.7032936",
"0.7000311",
"0.6910834",
"0.68834716",
"0.68825936",
"0.68813235",
"0.6877444",
"0.6848306",
"0.6844957",
"0.6841099",
"0.6821303",
"0.6799733... | 0.0 | -1 |
checks if a player has tile | public boolean hasTile(Tile a_tile){
for(int i = 0; i < playerHand.size(); i++){
if(playerHand.get(i).getLeft() == a_tile.getLeft() && playerHand.get(i).getRight() == a_tile.getRight()){
return true;
}
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean hasTiles()\r\n\t{\r\n\t\treturn _tiles.size() != 0;\r\n\t}",
"boolean checkWin(Tile initialTile);",
"public boolean hasTile(GroundTile tile) {\n return this.editedTiles.contains(tile);\n }",
"private boolean checkTileExists(int x, int y, int zoom) {\n \t int minZoom = 12;\n \t int ... | [
"0.7465883",
"0.71173555",
"0.71001935",
"0.6999672",
"0.69334626",
"0.69290125",
"0.68325484",
"0.6823801",
"0.67970306",
"0.6742728",
"0.67179936",
"0.66932654",
"0.66768646",
"0.664313",
"0.664062",
"0.66293854",
"0.655779",
"0.6544084",
"0.6532344",
"0.65315527",
"0.65196... | 0.7828731 | 0 |
adds num to score | public void add_to_score(int num){
score+=num;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void addToScore(int score)\n {\n this.score += score;\n }",
"public void addScore(int score) {\n currentScore += score;\n }",
"public void addScore(int n){\n\t\tscore += n;\n\t}",
"public void addScore(int score);",
"public void addScore()\n {\n score += 1;\n }",
"pu... | [
"0.8426426",
"0.8266896",
"0.8261736",
"0.82617015",
"0.80542755",
"0.791823",
"0.78802544",
"0.7813861",
"0.77471006",
"0.7722962",
"0.7653484",
"0.7577604",
"0.75481117",
"0.7464025",
"0.7457425",
"0.7453826",
"0.74297",
"0.7403008",
"0.73536265",
"0.73432434",
"0.7336964",... | 0.92597795 | 0 |
fills the player hand | public void fillHand(Stack<Tile> tiles){
while(!tiles.empty()){
Tile tile = tiles.get(tiles.size()-1);
playerHand.add(0,tile);
tiles.pop();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void newHand() {\n if(player.getSecondHand().size() > 0){\n player.emptySecondHand(deck);\n shuffle();\n }\n player.resetBet();\n dealer.resetBet();\n errorFlag = false;\n userMessage = \"Place your Bet\";\n againDisabled = true;\n ... | [
"0.6764219",
"0.6617254",
"0.6602521",
"0.6538017",
"0.65013254",
"0.6464825",
"0.64347935",
"0.6371627",
"0.6280384",
"0.62788695",
"0.6266237",
"0.62594974",
"0.62288314",
"0.6210751",
"0.61903036",
"0.61727846",
"0.6170767",
"0.61684215",
"0.61439",
"0.61393154",
"0.613367... | 0.68487644 | 0 |
removes tile from player hand | public void removeTile(Tile a_tile){
for(int i = 0; i < playerHand.size(); i++){
if(playerHand.get(i).getRight() == a_tile.getRight() && playerHand.get(i).getLeft() == a_tile.getLeft()){
playerHand.remove(i);
break;
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void removeTile(){\n\t\toccupied = false;\n\t\tcurrentTile = null;\n\t}",
"public void removeTile(Tile tile) {\n ownedTiles.remove(tile);\n }",
"public void removeTile(Tile tile) {\r\n frame.remove(tile);\r\n }",
"public void removeEditedTile(GroundTile tile) {\n this.editedTi... | [
"0.79982036",
"0.7581779",
"0.74409705",
"0.69945455",
"0.6875455",
"0.6706141",
"0.6597891",
"0.65678096",
"0.6486963",
"0.64805645",
"0.6469142",
"0.64683056",
"0.6467161",
"0.64596987",
"0.6429186",
"0.64230394",
"0.6419279",
"0.63908225",
"0.6383542",
"0.63675016",
"0.636... | 0.7792747 | 1 |
returns the player hand | public ArrayList<Tile> getPlayerHand(){
return playerHand;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Hand getHand() {\n return hand;\n }",
"public Hand getHand() {\n return hand;\n }",
"public Hand getHand() {\n\t\treturn hand;\n\t}",
"Hand getHand() {\n\t\treturn _hand;\n\t}",
"public LinkedList<PlayingCard> getHand(){\n\t\treturn hand;\n\t}",
"public String getHand(){\r\n ... | [
"0.8066203",
"0.8066203",
"0.7948987",
"0.7902279",
"0.7773025",
"0.7761814",
"0.7748297",
"0.7543582",
"0.73653233",
"0.72751844",
"0.7257437",
"0.72351027",
"0.7220311",
"0.7170301",
"0.7126829",
"0.7117291",
"0.70619154",
"0.7037291",
"0.7027874",
"0.70174605",
"0.6992043"... | 0.6721112 | 25 |
This is the interface defining matchers. Matchers are used to determine which elements should be included on a list. | public interface Matcher<T> {
/**
* This method determines if the element must be allowed to be on the list.
*
* @param element
*
* @return true if the element is allowed. false otherwise.
*/
boolean accepts(T element);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@SafeVarargs\n protected ListMatcher(Matcher<? super T>... matchers) {\n this.matchers = matchers;\n }",
"@Override\r\n\t\t\tpublic boolean matches(Object list) {\n\t\t\t\treturn ((List<String>) list).size() == 2;\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic boolean matches(Object list) {\n\t\t\t\tretu... | [
"0.6292547",
"0.62332475",
"0.62332475",
"0.62332475",
"0.62332475",
"0.62332475",
"0.62332475",
"0.6148472",
"0.6148472",
"0.6086999",
"0.5968415",
"0.5968415",
"0.5968415",
"0.5909059",
"0.5907668",
"0.57899386",
"0.57772267",
"0.5636031",
"0.5585296",
"0.55792654",
"0.5457... | 0.66061306 | 0 |
This method determines if the element must be allowed to be on the list. | boolean accepts(T element); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean isListValid()\n {\n boolean isValid = true;\n Collection<RecognizedElement> elementsList = tree.getChildren();\n for (Iterator<RecognizedElement> iterator = elementsList.iterator(); iterator.hasNext();)\n {\n RecognizedElement recognizedElement = (Recognize... | [
"0.67566437",
"0.63818616",
"0.63728774",
"0.627167",
"0.61609596",
"0.6119033",
"0.6116424",
"0.6103427",
"0.6037868",
"0.60309386",
"0.60275775",
"0.6027553",
"0.5922064",
"0.5920374",
"0.59139097",
"0.59139097",
"0.58763474",
"0.58712447",
"0.58693606",
"0.585192",
"0.5821... | 0.5391083 | 81 |
list of IP during boot up | ManagePool(List DefaultList,List AllocList)
{
this.DefaultList = DefaultList;
this.AllocList = AllocList;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String [] getIpList() {\n return this.IpList;\n }",
"org.jacorb.imr.HostInfo[] list_hosts();",
"public void remplireListeIp(){\r\n bddIp.add(\"id\");\r\n bddIp.add(\"ip\");\r\n bddIp.add(\"nom\");\r\n bddIp.add(\"latence\");\r\n bddIp.add(\"etat\");\r\n ... | [
"0.64079726",
"0.6052346",
"0.6037654",
"0.59871244",
"0.58368015",
"0.5834393",
"0.58232254",
"0.5718764",
"0.5692827",
"0.5689028",
"0.56107056",
"0.5579634",
"0.55764455",
"0.55734843",
"0.5573225",
"0.5553573",
"0.55302507",
"0.5507768",
"0.5498188",
"0.54917157",
"0.5478... | 0.0 | -1 |
/ Fetch an IP address from IP pool, this has to be synchronized method | public synchronized String getIP()
{
boolean done = false;
boolean found = false;
String ip=null;
//debug
//for(int i = 0; i < AllocList.size();i++)
// System.out.println("getIP " + AllocList.get(i));
for(int i=0; i< DefaultList.size() && !done;i++)
{
if(!AllocList.contains(Default... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getInIp();",
"int getInIp();",
"int getIp();",
"int getIp();",
"int getIp();",
"java.lang.String getIp();",
"java.lang.String getIp();",
"java.lang.String getIp();",
"java.lang.String getIp();",
"java.lang.String getIp();",
"java.lang.String getIp();",
"java.lang.String getIp();",
"java... | [
"0.6647781",
"0.6647781",
"0.6608379",
"0.6608379",
"0.6608379",
"0.6599323",
"0.6599323",
"0.6599323",
"0.6599323",
"0.6599323",
"0.6599323",
"0.6599323",
"0.6599323",
"0.6598061",
"0.6560613",
"0.6502305",
"0.6469246",
"0.643077",
"0.643077",
"0.63290936",
"0.62915194",
"... | 0.6955219 | 0 |
/ release an IP address to IP pool, this has to be synchronized method | public synchronized boolean returnip(String Ip)
{
boolean found = false;
boolean updatefile = false;
//debug
/*
for(int i = 0; i < AllocList.size();i++)
System.out.println("returnip " + AllocList.get(i));
*/
System.out.println("Releasing IP:" + Ip);
if(AllocList.contains(Ip))
{
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void releasePermit() {\n balancer.release();\n }",
"public void deregisterIPAddress(Inet4Address address) {\n\t\tusedAddresses.remove(address);\n\t}",
"void unsetPoolNumber();",
"public void releasePingLock() {\r\n\t\tbeingPinged.set(false);\r\n\t}",
"void closeConnectionsPo... | [
"0.6171328",
"0.60617495",
"0.60444736",
"0.6004843",
"0.5841537",
"0.5793887",
"0.57473105",
"0.5731901",
"0.5727929",
"0.56286687",
"0.56227124",
"0.56158125",
"0.5584017",
"0.5535378",
"0.5534965",
"0.5528022",
"0.5490847",
"0.54784334",
"0.54784334",
"0.54754966",
"0.5471... | 0.6122781 | 1 |
Created by Ojha.Sandeep on 11/28/2017. | public interface IServiceHistoryView extends IBaseView {
public void getServiceHistoryData(ServiceHistoryDO serviceHistoryDO);
public void showAlert(String message);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\n public void func_104112_b() {\n \n }",
"private stendhal() {\n\t}",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"... | [
"0.58928263",
"0.57083267",
"0.57023424",
"0.5697384",
"0.5569095",
"0.5569095",
"0.5564329",
"0.55628663",
"0.5534599",
"0.5500088",
"0.5464996",
"0.54629046",
"0.5462397",
"0.54484534",
"0.54446244",
"0.541627",
"0.5409088",
"0.54025906",
"0.5392686",
"0.5382115",
"0.536977... | 0.0 | -1 |
gets mainController and mainModel | void injectMainControllerAndMainModel(MainAnchorPaneController mainAnchorPaneController, ActiveTeamingSystem mainModel) {
this.mainAnchorPaneController = mainAnchorPaneController;
this.systemModel = mainModel;
// for debugging check that the main controller and model was injected successfully!
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Main ()\n\t{\n\t\tview = new View ();\t\t\n\t\tmodel = new Model(view);\n\t\tcontroller = new Controller(model, view);\n\t}",
"public MainController() {\n\t\tcontroller = new Controller(this);\n\t}",
"public void setMainController(MainController mainController) {\n this.mainController = mainController;\... | [
"0.6738932",
"0.67170656",
"0.6637495",
"0.6447511",
"0.6421946",
"0.64018476",
"0.63625777",
"0.6347061",
"0.60159814",
"0.5988453",
"0.59148014",
"0.59056383",
"0.58907056",
"0.5878134",
"0.5864238",
"0.5760315",
"0.5716669",
"0.5708788",
"0.56762755",
"0.5626372",
"0.56136... | 0.7053487 | 0 |
System.out.println("ID: " + datagram.id); System.out.println("Value: " + datagram.value); | @Override
public void onNewDatagram(SimpleAsciiProtocol.Datagram datagram) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic String toString() {\treturn id + \" [\" + value + \"]\" ;}",
"godot.wire.Wire.ValueOrBuilder getDataOrBuilder();",
"DatagramPacket getPacket() {\n return packet;\n }",
"godot.wire.Wire.Value getData();",
"public java.lang.String getUDP1() {\n return UDP1;\n }",
"public b... | [
"0.5784945",
"0.5767121",
"0.57281464",
"0.5681505",
"0.5656881",
"0.5564768",
"0.55293405",
"0.5516132",
"0.54969895",
"0.5462105",
"0.54618347",
"0.5447879",
"0.53958",
"0.5380329",
"0.5370564",
"0.5363986",
"0.53469527",
"0.5328903",
"0.53137314",
"0.53118753",
"0.5307084"... | 0.55964816 | 5 |
Created by mkononen on 03/02/17. | public interface DeviceRegistry {
void registerRS232Device(RS232Device device);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"protected boolean func_70814_o() { return true; }",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"public final void mo51373a() {... | [
"0.58271897",
"0.57442296",
"0.5686869",
"0.56865996",
"0.5681795",
"0.5668807",
"0.5630355",
"0.5616841",
"0.5590238",
"0.5589224",
"0.55793333",
"0.55787104",
"0.55669224",
"0.5560591",
"0.5560591",
"0.5558251",
"0.55379426",
"0.55372256",
"0.55350506",
"0.5534437",
"0.5534... | 0.0 | -1 |
Created by Zhen Weiyu on 2017/4/19. | public interface PluginInterface {
public void attach(Activity proxyActivity);
public void onCreate(Bundle saveInstanceState);
public void onStart();
public void onResume();
public void onPause();
public void onStop();
public void onDestroy();
public void onSaveInstanceState(Bund... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n... | [
"0.6085585",
"0.6018567",
"0.575713",
"0.5740668",
"0.5740668",
"0.57214063",
"0.56553954",
"0.5639528",
"0.5635825",
"0.56313545",
"0.56220794",
"0.55950093",
"0.5591746",
"0.55774504",
"0.5566102",
"0.5566102",
"0.5566102",
"0.5566102",
"0.5566102",
"0.5566102",
"0.5559092"... | 0.0 | -1 |
FileOutputStream out = new FileOutputStream(new File(tempdir,filename)); localdir = new File(this.job.config.localdirpath); if(!localdir.exists()) localdir.mkdirs(); | void init() throws Exception
{
this.hdfsdir = new Path(job.config.hdfsdatadirpath);
if(this.job.genlocalfile())
{
datafile = new File(localdir,taskInfo.filename);
if(datafile.exists())
datafile.delete();
datafile.createNewFile();
writer
= new PrintWriter(new BufferedWriter(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void copyHadoopTmpDir() {\n final String tmpDirProperty =\n PluginMiniHBaseClusterSingleton.INSTANCE.getClusterConfiguration().get(\"hadoop.tmp.dir\");\n final File hadoopTmp = new File(tmpDirProperty);\n final File hadoopTmpCopy = new File(new File(_projectBuildDir), \"hado... | [
"0.6574445",
"0.6338224",
"0.63161516",
"0.5946636",
"0.5945792",
"0.59137887",
"0.5879831",
"0.58035994",
"0.57731616",
"0.57358766",
"0.57345146",
"0.57322925",
"0.57060015",
"0.5680713",
"0.5657527",
"0.5559066",
"0.5556181",
"0.5551337",
"0.555119",
"0.551561",
"0.551162"... | 0.60621935 | 3 |
/ DP recurrence formula: dp[i][j] records if s[0..i] and p[0..j] matches. 1. if s[i] == p[j] or p[j] == '.': dp[i][j] = dp[i1][j1] 2. if p[j] == '': 2.1 if s[i] == p[j1] or p[j1] == '.': dp[i][j] = dp[i][j2] || dp[i1][j2] || dp[i2][j2] || ... || dp[0][j2] = dp[i][j2] || dp[i1][j] // matches 1 or more preceding elements... | public boolean isMatch(String s, String p) {
if (s == null || p == null) return false;
boolean[][] dp = new boolean[s.length() + 1][p.length() + 1];
dp[0][0] = true;
for (int j = 1; j <= p.length(); ++j) {
if (j - 2 >= 0 && p.charAt(j - 1) == '*') dp[0][j] = dp[0][j - 2];
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isMatch(String s, String p) {\n boolean[][] dp = new boolean[s.length()+1][p.length()+1];\n dp[0][0] = true;\n for(int i = 0; i < p.length(); i++) {\n if(p.charAt(i) == '*' && dp[0][i-1]) {\n dp[0][i+1] = true;\n }\n }\n for(int i = 0; i < s.length(); i++) {\n fo... | [
"0.77631366",
"0.7225803",
"0.7191668",
"0.715136",
"0.6600359",
"0.6553784",
"0.6388282",
"0.6219804",
"0.60988307",
"0.60945284",
"0.60161614",
"0.5999862",
"0.5915682",
"0.5912316",
"0.58496153",
"0.5823272",
"0.580564",
"0.57964677",
"0.57701355",
"0.5758726",
"0.5749345"... | 0.688757 | 4 |
TODO Autogenerated method stub | public void run(String... args) throws Exception {
} | {
"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 |
El metodo onCreate se ejecuta cada vez que hay un cambio en el estado de ejcucion de la actividad | @Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main); // Carga los componentes definidos en el xml activity_main
TextView texto = (TextView) findViewById(R.id.idTexto); // Instanciamos el componente de tipo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void onCreate(Bundle savedInstanceState)\n {\n super.onCreate(savedInstanceState);\n \n // Carga las texturas necesarias\n mTextures = new Vector<Texture>();\n cargarTexturas();\n\n // Inicializa la flag de la versión de OpenGL ES\n mQCARFlags = QCAR.GL... | [
"0.7442438",
"0.72051275",
"0.72051",
"0.71560544",
"0.71506876",
"0.714176",
"0.7134554",
"0.71244913",
"0.71180516",
"0.7116679",
"0.7115048",
"0.70912915",
"0.70861083",
"0.70667696",
"0.7063578",
"0.7053209",
"0.70516676",
"0.7050101",
"0.7041776",
"0.70407534",
"0.703672... | 0.0 | -1 |
Created by nankai on 8/3/2017. | public interface MainContract {
interface View extends CallbackListener {
void onLogout();
void onUserInForwardProfile(UserInfoResponse userInfoResponse);
void onReadAllNotification();
}
interface Presenter extends PresenterListener<MainContract.View> {
void onLogout(Log... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"public final void mo51373a() {\n }",
"@Override\n public void func_104112_b() {\n \n }",
"@Overri... | [
"0.6185126",
"0.60067344",
"0.59125835",
"0.5872752",
"0.586502",
"0.585821",
"0.584221",
"0.584221",
"0.5807621",
"0.5792924",
"0.57335305",
"0.57207626",
"0.57080233",
"0.57060105",
"0.5695879",
"0.56717134",
"0.56717134",
"0.56717134",
"0.56717134",
"0.56717134",
"0.566687... | 0.0 | -1 |
Method invoking the Internet check thread | private void createAndStartNetworkCheckThread(final Shell shell,
final ToolItem widgetItem, final Image off, final Image on) {
new Thread(new Runnable() {
public void run() {
while (!stop) {
try {
Thread.sleep(5000);
} catch (Exception e) {
log.error(e.getMessage... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void run() {\n\t\tresult = InternetConn.pushURL(URL);\r\n\t\tif(result.equals(\"-1\")){\r\n\t\t\t\r\n\t\t\tMessage msg = new Message();\r\n\t\t\tmsg.obj = \"网络连接错误\";\r\n\t\t\tmsg.what = -1;\r\n\t\t\tmHandler.sendMessage(msg);\r\n\t\t}else{\r\n\t\t\t\r\n\t\t\tMessage msg = new Message();\r\n\... | [
"0.7062881",
"0.68421954",
"0.6523725",
"0.6409333",
"0.63697314",
"0.6353207",
"0.62880564",
"0.62842095",
"0.628331",
"0.625925",
"0.6232249",
"0.6145895",
"0.60879487",
"0.60591936",
"0.60547185",
"0.60418665",
"0.5951479",
"0.59504277",
"0.593507",
"0.59307986",
"0.592930... | 0.61617553 | 11 |
Method invoking the memory usage check | private void createUsageBarCheck (final Shell shell, final ProgressBar usage) {
new Thread(new Runnable() {
public void run() {
while (!stop) {
try {
Thread.sleep(1000);
} catch (Exception e) {
log.error(e.getMessage());
}
if (!shell.isDisposed()) {
toolbar.ge... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"default boolean hasEnoughMemory(long memory){\n return getUnusedMemory() >= memory;\n }",
"long memoryUnused();",
"public static void getMemoryUsage(){\r\n MemoryMeasurement actMemoryStatus = new MemoryMeasurement();\r\n //MemoryMeasurement.printMemoryUsage(actMemoryStatus);\r\n ... | [
"0.72637725",
"0.7028408",
"0.679238",
"0.67879677",
"0.6694615",
"0.6459164",
"0.6445864",
"0.6445864",
"0.6377539",
"0.6367651",
"0.6360609",
"0.6341932",
"0.6339477",
"0.6287643",
"0.6237616",
"0.61869127",
"0.61788404",
"0.6170199",
"0.6143386",
"0.6135911",
"0.6117437",
... | 0.5386076 | 92 |
Method checking the Internet availability | public boolean isInternetReachable() {
try {
// URL to a source
URL url = new URL("http://www.betfair.com");
// Open a connection
HttpURLConnection urlConnect = (HttpURLConnection) url
.openConnection();
// Retrieving data from the source - if there is no connection,
// throws and excep... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean isNetworkAvailable();",
"private boolean isInternetAvailable() {\n ConnectivityManager connectivityManager = (ConnectivityManager) getContext().getSystemService(Context.CONNECTIVITY_SERVICE);\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n Network[] networks = co... | [
"0.82123053",
"0.7837591",
"0.774776",
"0.76863253",
"0.76456815",
"0.754592",
"0.7542287",
"0.7469294",
"0.744445",
"0.7399315",
"0.7378896",
"0.73369443",
"0.73368305",
"0.7329604",
"0.73201287",
"0.7316622",
"0.7308129",
"0.72725147",
"0.7266299",
"0.7258339",
"0.7254839",... | 0.77784663 | 2 |
FIXME, copy each file ourselfs, to prevent copying .svn files. | static IFolder createWorkspaceFolderFromBundle(String srcpath, IContainer parent, String destname)
throws CoreException, URISyntaxException, IOException {
Bundle bundle = Platform.getBundle(DeeTestsPlugin.PLUGIN_ID);
IPath bundlesrcpath = new Path(DeeTestsPlugin.TESTDATA + srcpath);
URL sampleURL = Fil... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void copyFiles() {\n if( !USE_EXTERNAL_FILES_DIR ) return;\n boolean ret = mFileUtil.copyFilesAssetToExternalFilesDir( FILE_EXT );\n if(ret) {\n showList();\n showToast(\"copy successful\");\n } else {\n showToast(\"copy faild\");\n }\n}",
"public static synchronized v... | [
"0.65603244",
"0.6411972",
"0.636026",
"0.6334055",
"0.61657476",
"0.60949373",
"0.5992206",
"0.59778076",
"0.5895404",
"0.58897847",
"0.5886359",
"0.58797705",
"0.573813",
"0.57241255",
"0.5718999",
"0.5669709",
"0.5643076",
"0.5597217",
"0.55896246",
"0.5570952",
"0.5539037... | 0.0 | -1 |
Processes an Atom feed at the URL found in the FeedContext object. | public static void processFeed(FeedContext fc) {
String feedUrl = fc.getFeedUrl();
mLog.info("Processing Atom feed at URL: " + feedUrl);
try {
AbderaAtomParser atomParser = new AbderaAtomParser(new URL(feedUrl));
atomParser.persistFeed(fc);
mLog.info("Finis... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void processFeed(String feedUrl) throws Exception {\n processFeed(new FeedContext(feedUrl));\n }",
"public static void processFeed(FeedContext fc, Feed feed) {\n try {\n\t\t\tAbderaAtomParser parser = new AbderaAtomParser(feed);\n\t\t\tparser.persistFeed(fc);\n\t\t}\n\t\tcatch (Exc... | [
"0.7095245",
"0.7037386",
"0.6195408",
"0.6016712",
"0.55881363",
"0.5552531",
"0.54114527",
"0.540667",
"0.5393218",
"0.5393218",
"0.53852504",
"0.5354446",
"0.53307974",
"0.5318021",
"0.5317737",
"0.53133076",
"0.5300392",
"0.5291605",
"0.528287",
"0.52807677",
"0.52690226"... | 0.80493987 | 0 |
Processes an Atom feed given as an Abdera Feed object | public static void processFeed(FeedContext fc, Feed feed) {
try {
AbderaAtomParser parser = new AbderaAtomParser(feed);
parser.persistFeed(fc);
}
catch (Exception e) {
mLog.error("Error processing feed at [" + fc.getFeedUrl() + "]: " + e.getMessage());
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void processFeed(FeedContext fc) {\n\n String feedUrl = fc.getFeedUrl();\n mLog.info(\"Processing Atom feed at URL: \" + feedUrl);\n\n try {\n AbderaAtomParser atomParser = new AbderaAtomParser(new URL(feedUrl));\n atomParser.persistFeed(fc);\n\n ... | [
"0.7569617",
"0.6209569",
"0.6129439",
"0.6082496",
"0.6042771",
"0.5852074",
"0.57961786",
"0.5709694",
"0.5700137",
"0.5689007",
"0.56877995",
"0.56777954",
"0.56625575",
"0.5645533",
"0.5562414",
"0.55548835",
"0.5548543",
"0.55390644",
"0.54804176",
"0.54800504",
"0.54797... | 0.7368108 | 1 |
Processes an Atom feed at the given URL | public static void processFeed(String feedUrl) throws Exception {
processFeed(new FeedContext(feedUrl));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void processFeed(FeedContext fc) {\n\n String feedUrl = fc.getFeedUrl();\n mLog.info(\"Processing Atom feed at URL: \" + feedUrl);\n\n try {\n AbderaAtomParser atomParser = new AbderaAtomParser(new URL(feedUrl));\n atomParser.persistFeed(fc);\n\n ... | [
"0.72400355",
"0.65984285",
"0.6417274",
"0.6312018",
"0.605366",
"0.60276484",
"0.6010645",
"0.59743285",
"0.59718835",
"0.5971718",
"0.5766475",
"0.5747382",
"0.56833476",
"0.567205",
"0.559674",
"0.5594811",
"0.55581015",
"0.5556525",
"0.5537622",
"0.5533927",
"0.5529045",... | 0.6618536 | 1 |
Processes Atom feeds given a list of feed URLs | public static void processFeeds(List<FeedContext> fcs) {
for (FeedContext fc : fcs) {
try {
processFeed(fc);
}
catch (Exception e) {
mLog.error("Skipping feed at URL [" + fc.getFeedUrl() +
"] due to error while proce... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"List<SyndFeed> getRssFeeds(Set<String> feedUrls) throws FeedException, IOException,\n FetcherException;",
"public static void processFeed(FeedContext fc) {\n\n String feedUrl = fc.getFeedUrl();\n mLog.info(\"Processing Atom feed at URL: \" + feedUrl);\n\n try {\n Abdera... | [
"0.6994773",
"0.6881773",
"0.60867983",
"0.6068289",
"0.60461795",
"0.6033804",
"0.59314173",
"0.5877243",
"0.58612037",
"0.58325666",
"0.5787685",
"0.5758269",
"0.57464236",
"0.56733763",
"0.56598586",
"0.5521272",
"0.5474394",
"0.54561466",
"0.5399606",
"0.5384425",
"0.5373... | 0.6494011 | 2 |
preparamos el cuadro de dialogo | @Override
protected void onPreExecute(){
progressDialog = new ProgressDialog(context, R.style.AppThemeAssacDialog);
progressDialog.setMessage(Const.STR_VERIFY_CONECTION_SERVER);
progressDialog.setCancelable(false);
progressDialog.show();
super.onPreExecute();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void generar_dialog_preguntas();",
"public void abrirDialogoCustodio(){\n\t\tif(aut_empleado.getValor()!=null){\n\t\t\ttab_tarspaso_Custodio.limpiar();\n\t\t\ttab_tarspaso_Custodio.insertar();\n\t\t\t//tab_direccion.limpiar();\n\t\t//\ttab_direccion.insertar();\n\t\t\tdia_traspaso_custodio.dibujar();\n\t\t}\n\t\... | [
"0.7354818",
"0.689009",
"0.6819371",
"0.6763522",
"0.6679262",
"0.6627161",
"0.66146606",
"0.65613186",
"0.6559717",
"0.64869183",
"0.64617836",
"0.6443606",
"0.6435228",
"0.64081573",
"0.6396404",
"0.6382082",
"0.63686734",
"0.6344747",
"0.63317835",
"0.6315938",
"0.6315884... | 0.0 | -1 |
nasty bit of legacy here | public String getUid() { return null; } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void method_4270() {}",
"protected boolean func_70814_o() { return true; }",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"public abstract void mo70713b();",
"protected boolean func_70041_e_() { return false; }",
"public ab... | [
"0.6113038",
"0.61107856",
"0.59799844",
"0.5916969",
"0.5831686",
"0.5787092",
"0.57153994",
"0.57113457",
"0.56940037",
"0.5692891",
"0.56685627",
"0.5617983",
"0.5603225",
"0.56022495",
"0.5599075",
"0.55938184",
"0.55447793",
"0.5527591",
"0.55068964",
"0.5502395",
"0.550... | 0.0 | -1 |
randomly decide pos or negative | private int randomValue(int value, int distance)
{
int pos = rand.nextInt(2) > 0 ? 1 : -1;
int newValue = value + pos * rand.nextInt(distance);
if(newValue > 255 || newValue < 0)
{
return randomValue(value, distance);
}
return newValue;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Position sampleRandomUniformPosition();",
"public static Point pos(){\r\n\t\tRandom random = new Random();\r\n\t\tint x = 0;\r\n\t\tint y = 0;\r\n\t\t//acts as a 4 sided coin flip\r\n\t\t//this is to decide which side the asteroid will appear\r\n\t\tint pos = random.nextInt(4);\r\n\t\t//west\r\n\t\tif(po... | [
"0.7228643",
"0.71214336",
"0.69077593",
"0.68678266",
"0.6762065",
"0.6753992",
"0.67209184",
"0.6694538",
"0.66870767",
"0.66442347",
"0.6492652",
"0.648838",
"0.64537007",
"0.64386964",
"0.6416787",
"0.6387165",
"0.6355097",
"0.6353434",
"0.6346366",
"0.6345466",
"0.633066... | 0.0 | -1 |
TODO: Use builder() or newBuilder() consistently. | public static Builder newBuilder() {
return new AutoValue_GeoJsonFeature.Builder();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Builder() {}",
"static Builder newBuilder() {\n return new Builder();\n }",
"private Builder() {\n\t\t}",
"public Builder() {}",
"public Builder() {}",
"public Builder() {}",
"public static Builder newBuilder() {\n return Builder.createDefault();\n }",
"public static Builder newBuilde... | [
"0.7359139",
"0.7292936",
"0.7070823",
"0.6963908",
"0.6963908",
"0.6963908",
"0.69385886",
"0.69385886",
"0.69224477",
"0.69169253",
"0.69169253",
"0.69169253",
"0.6890564",
"0.6826333",
"0.67948145",
"0.67948145",
"0.67948145",
"0.67948145",
"0.6750822",
"0.6750822",
"0.674... | 0.0 | -1 |
TODO: Parse at conversion type instead of here. | public JSONObject getGeoJson() {
try {
return new JSONObject(getGeoJsonString());
} catch (JSONException e) {
Timber.d("Invalid GeoJSON in feature %s", getId());
return new JSONObject();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"T convert(S e);",
"private CData convert(EValueType type, String str) {\n switch (type)\n {\n case DOUBLE_64:\n return new CData(type, Double.valueOf(str));\n case FLOAT_32:\n return new CData(type, Float.valueOf(str));\n case INT_16:\n return new CData(type, Short.valueOf(str));\n ... | [
"0.62647194",
"0.6099592",
"0.6053392",
"0.59720945",
"0.58994865",
"0.5850122",
"0.57674575",
"0.5757937",
"0.5748358",
"0.57105815",
"0.56856894",
"0.5647917",
"0.562091",
"0.55561274",
"0.5539584",
"0.5530494",
"0.55111855",
"0.549127",
"0.549127",
"0.549127",
"0.547436",
... | 0.0 | -1 |
standard: camera.viewportWidht = width/25; standard: camera.viewportheight = height/25; | @Override
public void resize(int width, int height) {
camera.viewportWidth = width/25;
camera.viewportHeight = height/25;
camera.update();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void onSurfaceChanged(GL10 unused, int width, int height) {\n GLES20.glViewport(0, 0, width, height);\n \n float ratio = (float) width / height;\n /*\n mWidth = width;\n mHeight = height;\n */\n \n // this projection matrix is applied t... | [
"0.6826992",
"0.6678303",
"0.6670369",
"0.6644614",
"0.6643902",
"0.66267586",
"0.6574972",
"0.6529539",
"0.645463",
"0.6450429",
"0.6421558",
"0.64041984",
"0.63886106",
"0.6375178",
"0.63523597",
"0.6339951",
"0.62982804",
"0.62902737",
"0.62822074",
"0.6281136",
"0.6277931... | 0.7450222 | 0 |
TODO Autogenerated method stub | @Override
public String Dump() {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public List<BookCopies> get() throws SQLException {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void post(BookCopies object) throws SQLException {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.66708666",
"0.65675074",
"0.65229905",
"0.6481001",
"0.64770633",
"0.64584893",
"0.6413091",
"0.63764185",
"0.6275735",
"0.62541914",
"0.6236919",
"0.6223816",
"0.62017626",
"0.61944294",
"0.61944294",
"0.61920846",
"0.61867654",
"0.6173323",
"0.61328775",
"0.61276996",
"0... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void put(Integer id, BookCopies object) throws SQLException {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void delete(Integer id) throws SQLException {
} | {
"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 |
insert the elements at first | public void insertAtFirst(int data)
{
System.out.println("iam inserting at front :");
Node new_front = new Node(data);
new_front.right = root;
root = new_front;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void duplicateAndInsertElements() {\n\t\t\n\t\tif (highlightedFields.isEmpty()) return;\n\t\t\n\t\t// highlighted fields change while adding. Make a copy first\n\t\tArrayList<XmlNode> tempArray = new ArrayList<XmlNode>(highlightedFields);\n\t\t\n\t\tcopyAndInsertElements(tempArray);\n\t}",
"@Override\n ... | [
"0.6564994",
"0.64396423",
"0.64261013",
"0.6402994",
"0.63166136",
"0.6312443",
"0.6227121",
"0.62082195",
"0.62043536",
"0.6183875",
"0.6157557",
"0.6146158",
"0.61308956",
"0.61076856",
"0.6068137",
"0.6040678",
"0.6036695",
"0.602213",
"0.5999586",
"0.59730583",
"0.596809... | 0.0 | -1 |
printing the current root data | public void printRoot()
{
System.out.println("Root is:"+root.data);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void print() {\n\t\tprint(root);\n\t}",
"public void print()\r\n {\r\n print(root);\r\n }",
"public void print_root(){\r\n\t\tfor(int id = 0; id < label.length; id++){\r\n\t\t\tSystem.out.printf(\"\"%d \"\", find(id));\r\n\t\t}\r\n\t\tSystem.out.printf(\"\"\\n\"\");\r\n\t}",
"public void ... | [
"0.79012597",
"0.78536564",
"0.77558887",
"0.77205485",
"0.7715324",
"0.76957804",
"0.76912665",
"0.7661898",
"0.7562535",
"0.7517948",
"0.7485821",
"0.7483945",
"0.74541646",
"0.7406487",
"0.73911935",
"0.7375787",
"0.73343325",
"0.7330246",
"0.7319106",
"0.7297414",
"0.7280... | 0.87680763 | 0 |
inserting at the end | public void insertAtEnd(int data)
{
if(root ==null) {
Node atEnd = new Node(data);
root = atEnd;
}
else
{
Node tmp = root;
//traversing the last node that has null at the end
while(tmp!=null)
{
tmp = tmp.right;
}
Node atEnd = new Node(data);
atEnd.right ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void InsertAtEnd(K pk){\n\t\tsuper.append(pk);\n\t}",
"public void insertAtEnd(Employee e) {\n\t}",
"void insertAfter(Object data)\n\t{\n\t\tNode temp = new Node(data);\n\t\tif (length==0) \n\t\t{\n\t\t\tthrow new RuntimeException(\"List Error: cannot call insertAfter() on empty List\");\n\t\t}\n\t\tif ... | [
"0.7229994",
"0.7083057",
"0.6964526",
"0.6832874",
"0.67684066",
"0.66520756",
"0.6618357",
"0.6596451",
"0.652978",
"0.6493364",
"0.64432776",
"0.6418084",
"0.63879067",
"0.63707167",
"0.635687",
"0.6355131",
"0.6312763",
"0.63104135",
"0.6295549",
"0.62955016",
"0.62920004... | 0.6290578 | 21 |
TODO Autogenerated method stub | private void addArray(ArrayList<Student> array) {
System.out.println("请输入学号:");
String id = sc.next();
System.out.println("请输入姓名:");
String name = sc.next();
System.out.println("请输入年龄:");
int age = sc.nextInt();
System.out.println("请输入性别:");
String sex = sc.next();
System.out.println("请输入地址:");
... | {
"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 |
Test of export method, of class ExportHTML. | @Test
public void testExport() {
System.out.println("testExport");
List<String[]> text = new ArrayList();
text.add("1;2;3".split(";"));
text.add("4;5;6".split(";"));
text.add("7;8;9".split(";"));
String expResult = "<!DOCTYPE html><html> <head> <title> Export File HTML </... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\r\n\tpublic void testGetExtension() {\r\n\t\tSystem.out.println(\"getExtension\");\r\n\t\tExportHTML instance = new ExportHTML();\r\n\t\tString expResult = \"html\";\r\n\t\tString result = instance.getExtension();\r\n\t\tassertEquals(expResult, result);\r\n\t}",
"private HtmlExporter createHtmlTemplate( fi... | [
"0.65069765",
"0.6399725",
"0.63379663",
"0.6329826",
"0.6118347",
"0.60364354",
"0.5921078",
"0.5845761",
"0.58421165",
"0.5721209",
"0.57154924",
"0.570779",
"0.5659428",
"0.5617579",
"0.5610971",
"0.56107444",
"0.55949837",
"0.55857223",
"0.55813795",
"0.556661",
"0.555061... | 0.83083534 | 0 |
Test of getExtension method, of class ExportHTML. | @Test
public void testGetExtension() {
System.out.println("getExtension");
ExportHTML instance = new ExportHTML();
String expResult = "html";
String result = instance.getExtension();
assertEquals(expResult, result);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\r\n\tpublic void testGetExtensionDescription() {\r\n\t\tSystem.out.println(\"getExtensionDescription\");\r\n\t\tExportHTML instance = new ExportHTML();\r\n\t\tString expResult = \"HTML Documents (*.html)\";\r\n\t\tString result = instance.getExtensionDescription();\r\n\t\tassertEquals(expResult, result);\r\n... | [
"0.8181942",
"0.6547237",
"0.6489919",
"0.64387375",
"0.6394607",
"0.62970966",
"0.62959963",
"0.6294684",
"0.6268789",
"0.62362254",
"0.6197798",
"0.6127632",
"0.6088733",
"0.60632586",
"0.5963545",
"0.59357125",
"0.59264416",
"0.5897586",
"0.58735627",
"0.58735627",
"0.5850... | 0.8487503 | 0 |
Test of getExtensionDescription method, of class ExportHTML. | @Test
public void testGetExtensionDescription() {
System.out.println("getExtensionDescription");
ExportHTML instance = new ExportHTML();
String expResult = "HTML Documents (*.html)";
String result = instance.getExtensionDescription();
assertEquals(expResult, result);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\r\n\tpublic void testGetExtension() {\r\n\t\tSystem.out.println(\"getExtension\");\r\n\t\tExportHTML instance = new ExportHTML();\r\n\t\tString expResult = \"html\";\r\n\t\tString result = instance.getExtension();\r\n\t\tassertEquals(expResult, result);\r\n\t}",
"public URL getHtmlDescription();",
"publi... | [
"0.76374173",
"0.64993757",
"0.61515373",
"0.61515373",
"0.60209143",
"0.6019908",
"0.5913494",
"0.5872166",
"0.58476263",
"0.5826489",
"0.5734835",
"0.57272154",
"0.57064",
"0.56935334",
"0.5668586",
"0.56619495",
"0.5606791",
"0.55911016",
"0.55859405",
"0.5583492",
"0.5566... | 0.8541424 | 0 |
Interswitch.ENV_SANDBOX, is for sandbox environment Interswitch.ENV_PROD, is for production environment | public static void main(String[] args) {
FundsTransfer transfer = new FundsTransfer(clientId, clientSecret, Interswitch.ENV_DEV);
try {
BankResponse response = transfer.fetchBanks(); // makes network call
Bank[] bank = response.getBanks(); // a bank array of all banks
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void selectPRODUCTIONEnv() {\n ((AppController) getApplication()).setAppEnvironment(AppEnvironment.PRODUCTION);\n editor = settings.edit();\n editor.putBoolean(\"is_prod_env\", false);\n editor.apply();\n }",
"public void intServerEnv() {\n\t\tServerUtils serverUtils = new ... | [
"0.58524275",
"0.5805125",
"0.56218493",
"0.54851335",
"0.54586273",
"0.54315656",
"0.5419979",
"0.5401144",
"0.53110063",
"0.52899987",
"0.5275786",
"0.5213839",
"0.5190007",
"0.5164708",
"0.5085717",
"0.5071893",
"0.50585806",
"0.50351197",
"0.50156045",
"0.5015082",
"0.500... | 0.0 | -1 |
Returns the OSGi service identifier. | @Override
public java.lang.String getOSGiServiceIdentifier() {
return _autoDetailsService.getOSGiServiceIdentifier();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public java.lang.String getOSGiServiceIdentifier();",
"public String getOSGiServiceIdentifier();",
"public static String getOSGiServiceIdentifier() {\n\t\treturn getService().getOSGiServiceIdentifier();\n\t}",
"public static String getOSGiServiceIdentifier() {\n\t\treturn getService().getOSGiServiceIdentifie... | [
"0.89526385",
"0.8865057",
"0.8802445",
"0.8802445",
"0.8802445",
"0.80645627",
"0.80380356",
"0.79950273",
"0.7884506",
"0.7761788",
"0.7746527",
"0.7728435",
"0.7595578",
"0.7377867",
"0.7359522",
"0.71958965",
"0.7179898",
"0.7172983",
"0.71391976",
"0.7108751",
"0.7091632... | 0.8172362 | 5 |
read trees from a directory, each tree in a separate file | public static ArrayList<Tree> readTreesFromDir(File dir) {
ArrayList<Tree> trees = new ArrayList<Tree>();
File dirName = dir;
File[] directory = dirName.listFiles();
for (int p = 0; p < directory.length; p++) {
trees.add(new Tree(directory[p]));
}
r... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void builtTree\n ( ArrayList<DefaultMutableTreeNode> treeArray , \n int recursion , DefaultMutableTreeNode selected , \n boolean enableDirs , boolean enableFiles )\n {\n int m;\n if (recursion<0) { m = DEFAULT_RECURSION_LIMIT; }\n else { m = recursion; }\n for ... | [
"0.6380835",
"0.6062753",
"0.5987694",
"0.5815023",
"0.58138347",
"0.5785236",
"0.57468665",
"0.57349825",
"0.56953365",
"0.5683674",
"0.5675588",
"0.5615325",
"0.5580913",
"0.55185777",
"0.5490693",
"0.547583",
"0.54241973",
"0.54194605",
"0.54150903",
"0.5409466",
"0.536193... | 0.72739995 | 0 |
read file with trees, each in the Newick format | public static ArrayList<Tree> readTreesFromFile(File file) {
ArrayList<Tree> trees = new ArrayList<Tree>();
BufferedReader br = null;
try {
br = new BufferedReader(new FileReader(file));
String line;
while ((line = br.readLine()) != null) {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static ArrayList<Node> getNodes(File path)\n {\n //log the event happining\n Start.log(\"Getting Nodes\");\n ArrayList<Node> tempNodes = new ArrayList<Node>();\n ArrayList<String> file = getFile(path);\n for (int i =0; i < file.size();i++)\n ... | [
"0.6033693",
"0.594472",
"0.5891924",
"0.5855218",
"0.58388555",
"0.58180726",
"0.5788774",
"0.57561356",
"0.57490444",
"0.5649293",
"0.5613857",
"0.56",
"0.5598977",
"0.5593229",
"0.5583022",
"0.5577092",
"0.5570659",
"0.5557265",
"0.5541208",
"0.55390257",
"0.5492079",
"0... | 0.6646959 | 0 |
finds the smallest index in a string 'string' after i, which contains a character from a string 'characters', if does not contains any, returns string.length | public static int nextIndexOf(String string, String characters, int index) {
int retInd = string.length();
int auxIndex = -1;
for (int i = 0; i < characters.length(); i++) {
auxIndex = string.substring(index + 1).indexOf(characters.charAt(i));
if ((auxIndex > -1) &... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static int solution(String s) {\n if (s == null || s.length() == 0) {\n return 0;\n }\n if (s.length() == 1) {\n return 1;\n }\n int result = 0;\n int index = 0;\n Map<Character, Integer> map = new HashMap<Character, Integer>();\n ... | [
"0.6596731",
"0.6522453",
"0.65060407",
"0.64430225",
"0.6406211",
"0.6397596",
"0.6382855",
"0.63503134",
"0.63265574",
"0.631831",
"0.62703264",
"0.62537587",
"0.6253692",
"0.62507045",
"0.6239022",
"0.6184696",
"0.61834943",
"0.61501205",
"0.6144766",
"0.6141337",
"0.61216... | 0.69198036 | 0 |
Gets the cEndButton.setVisible(true)ount trade cards. | public int getCountTradeCards() {
return countTradeCards;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isCancelButtonVisible() {\r\n\t\tif (_cancelButton == null)\r\n\t\t\treturn false;\r\n\t\telse\r\n\t\t\treturn _cancelButton.getVisible();\r\n\t}",
"public JButton getDeclineButton() {\n\t\treturn declineButton;\n\t}",
"private JCheckBox getEndCapCheckBox() {\n\t\tif (endCapCheckBox == null) {\n... | [
"0.5930222",
"0.5879484",
"0.5859425",
"0.5760267",
"0.5707119",
"0.5680217",
"0.5676558",
"0.5661946",
"0.5587071",
"0.55866104",
"0.5510846",
"0.54960424",
"0.5448282",
"0.54266214",
"0.5413796",
"0.5389736",
"0.53748745",
"0.5360074",
"0.5359848",
"0.53596073",
"0.53594995... | 0.0 | -1 |
Gets the risk current player. | public RiskPlayerModel getRiskCurPlayer() {
return risk.curPlayer;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getCurrentPlayer() {\n return player;\n }",
"public int getCurrentPlayer() {\n\t\treturn player;\n\t}",
"@Override\n public String getCurrentPlayer() {\n return godPower.getCurrentPlayer();\n }",
"public Player getCurrentPlayer(){\n return this.currentPlayer;\n }",... | [
"0.742934",
"0.74052316",
"0.7360435",
"0.73102814",
"0.7308852",
"0.7301067",
"0.7301067",
"0.72198385",
"0.72081816",
"0.7207315",
"0.71885186",
"0.71748775",
"0.71745586",
"0.7163667",
"0.71607774",
"0.71577656",
"0.71506095",
"0.7140107",
"0.7133595",
"0.71034104",
"0.709... | 0.82878697 | 0 |
Sets the risk current player. | public void setRiskCurPlayer(RiskPlayerModel riskplayermodel) {
risk.curPlayer = riskplayermodel;
risk.curPlayer.setCard(new RiskCardModel(1, 39));
risk.curPlayer.setCard(new RiskCardModel(1, 39));
risk.curPlayer.setCard(new RiskCardModel(3, 11));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setPlayer(Player player) {\n this.currentPlayer = player;\n }",
"public void setCurrentPlayer(Player P){\n this.currentPlayer = P;\n }",
"@Override\n\tpublic void setPlayer(Player player) {\n\n\t}",
"public void setPlayer(Player player) {\n\t\tthis.player = player;\r\n\t}",
"publi... | [
"0.7032106",
"0.68745",
"0.6563626",
"0.655064",
"0.65437186",
"0.6520166",
"0.64852864",
"0.6470748",
"0.64332825",
"0.64192796",
"0.64038104",
"0.6392389",
"0.63827896",
"0.63570595",
"0.63280815",
"0.63059914",
"0.6256588",
"0.62502986",
"0.62440455",
"0.62440324",
"0.6243... | 0.73941183 | 0 |
Instantiates a new risk controller. | public RiskController() {
risk = new RiskGameModel();
initComponents();
initializePhaseView(risk);
setLocationRelativeTo(null);
setResizable(false);
jPanel1.repaint();
jPanel1.addMouseListener(this);
AttackButton.setVisible(false);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static CompanyController initializeController() {\n\n controller = new CompanyController();\n return controller;\n }",
"@Override\r\n\tprotected ICardController createController() {\n\t\treturn new ClientCtrl();\r\n\t}",
"PolicyController createPolicyController(String name, Properties ... | [
"0.6209641",
"0.59282666",
"0.58700067",
"0.58059484",
"0.58022594",
"0.5787507",
"0.5763332",
"0.5763332",
"0.5727174",
"0.5704684",
"0.5683147",
"0.55980825",
"0.5580932",
"0.5518774",
"0.55049026",
"0.5481323",
"0.5463006",
"0.5459218",
"0.544074",
"0.5437999",
"0.5424871"... | 0.56260324 | 11 |
This method is called from within the constructor to initialize the form. | private void initComponents() {
jPanel1 = new RiskMapPanelViewController(risk);
jPanel3 = new RiskPlayerPanelViewController(risk);
statusLabel = new javax.swing.JLabel();
AttackButton = new javax.swing.JButton();
EndButton = new javax.swing.JButton();
FortifyButton = new javax.swing.JButton();
Card... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Form() {\n initComponents();\n }",
"public form() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n ... | [
"0.81588364",
"0.80849105",
"0.8000614",
"0.8000614",
"0.8000614",
"0.7995327",
"0.7934466",
"0.79136646",
"0.7857457",
"0.7804767",
"0.778061",
"0.77332973",
"0.77161396",
"0.7704091",
"0.7672584",
"0.764062",
"0.75653464",
"0.7549673",
"0.75449437",
"0.7534028",
"0.75017565... | 0.0 | -1 |
Attack button mouse clicked. | private void AttackButtonMouseClicked(java.awt.event.MouseEvent evt) {// GEN-FIRST:event_AttackButtonMouseClicked
Utility.writeLog("Attack Phase entered");
risk.setState(RiskGameModel.ATTACK);
FortifyButton.setVisible(false);
EndButton.setVisible(true);
statusLabel.setText("Select a territory to attack w... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void mousePressed(MouseEvent e){\n String boton = W.detClick( e.getButton() );\n \n //System.out.println(\"->Mouse: Presionando Click \" + boton );\n }",
"public void mouseClicked(int ex, int ey, int button) {\r\n\t}",
"@Override\n pu... | [
"0.7763265",
"0.77509856",
"0.7745663",
"0.75806624",
"0.75718313",
"0.7558848",
"0.741501",
"0.7405755",
"0.73996884",
"0.7369248",
"0.73355997",
"0.73211914",
"0.73204917",
"0.72858155",
"0.72858155",
"0.72858155",
"0.728392",
"0.728392",
"0.728392",
"0.728392",
"0.7283079"... | 0.7038182 | 66 |
End button mouse clicked. | private void EndButtonMouseClicked(java.awt.event.MouseEvent evt) {// GEN-FIRST:event_EndButtonMouseClicked
risk.nextPlayer();
risk.setState(RiskGameModel.START_TURN);
risk.gamePhaseActive(0, 0);
risk.active = risk.curPlayer;
jPanel3.repaint();
statusLabel.setText("Recieved a bonus of " + risk.curPlay... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void endPress();",
"@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\texit_click(e);\r\n\t\t\t}",
"public void cancel()\n\t{\n\t\t_buttonHit = true;\n\t}",
"private void btnCerrarMou... | [
"0.7154646",
"0.70220137",
"0.6989162",
"0.69400156",
"0.6880983",
"0.67964154",
"0.6790591",
"0.67301905",
"0.6720989",
"0.67131525",
"0.66836613",
"0.66836613",
"0.66836613",
"0.66836613",
"0.66707706",
"0.6659691",
"0.6649803",
"0.6649036",
"0.66399044",
"0.66010404",
"0.6... | 0.73278004 | 0 |
Fortify button mouse clicked. | private void FortifyButtonMouseClicked(java.awt.event.MouseEvent evt) {// GEN-FIRST:event_FortifyButtonMouseClicked
risk.setState(RiskGameModel.FORTIFY);
risk.notifyPhaseViewChange();
statusLabel.setText("Select a country move armies from");
Utility.writeLog("Fortify Phase entered");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void mouseClicked(int ex, int ey, int button) {\r\n\t}",
"@Override\n public void mouseClicked(MouseEvent e){\n String boton = W.detClick( e.getButton() );\n \n System.out.println(\" Mouse: Click \" + boton ); \n }",
"@Override\n public void m... | [
"0.82006603",
"0.8153724",
"0.80696124",
"0.79181015",
"0.790863",
"0.79006535",
"0.78206164",
"0.78206164",
"0.78206164",
"0.78206164",
"0.778754",
"0.77744484",
"0.77298445",
"0.7707193",
"0.7655926",
"0.7647068",
"0.7647068",
"0.7647068",
"0.7646129",
"0.763888",
"0.762923... | 0.0 | -1 |
Card button mouse clicked. | private void CardButtonMouseClicked(java.awt.event.MouseEvent evt) {// GEN-FIRST:event_CardButtonMouseClicked
// risk.setState(RiskGameModel.TRADE_CARDS);
GenerateCardPanel();
toggleCardButtonsPanel();
jPanel1.repaint();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n public void mouseClicked(MouseEvent e) {\n System.out.println(e.getButton());\r\n\r\n // MouseEvent.BUTTON3 es el boton derecho\r\n }",
"public void mouseClicked(int ex, int ey, int button) {\r\n\t}",
"@Override\n public void mousePressed... | [
"0.7595973",
"0.7575885",
"0.7448007",
"0.744722",
"0.7424393",
"0.7420378",
"0.7346284",
"0.7346284",
"0.7346284",
"0.7346284",
"0.73336506",
"0.7291689",
"0.7281291",
"0.7270946",
"0.7270946",
"0.72636545",
"0.72629416",
"0.7260139",
"0.72573745",
"0.72573745",
"0.72573745"... | 0.7566569 | 2 |
Toggle card buttons panel. | private Boolean toggleCardButtonsPanel() {
// TODO Auto-generated method stub
if (risk.getState() == RiskGameModel.REINFORCE || risk.getState() == RiskGameModel.START_TURN) {
cardStatusLabel.setText("");
statusPanel.repaint();
return true;
} else {
cardStatusLabel.setText("Card can be traded ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void panel_switch(int i)\n\t{\n\t\t\n\t\tthis.setVisible(false);\n\t\tif(i == 1)\n\t\t{\n\t\t\tcards.show(parent.getCards(), \"server\");\n\t\t\t\n\t\t}\n\t\telse if(i == 2)\n\t\t\tcards.show(parent.getCards(), \"profile\");\n\t\telse if(i == 3)\n\t\t\tcards.show(parent.getCards(), \"restrict\");\n\t\t\n\t... | [
"0.62831086",
"0.61898005",
"0.61710703",
"0.6131432",
"0.60039127",
"0.59723085",
"0.5959608",
"0.59533715",
"0.59126866",
"0.5911298",
"0.5910433",
"0.5907541",
"0.5891673",
"0.5884617",
"0.5863982",
"0.586103",
"0.5852343",
"0.58042276",
"0.5762494",
"0.5754212",
"0.573422... | 0.7283142 | 0 |
End of variables declaration//GENEND:variables | public void mouseClicked(MouseEvent me) {
int x_coordinate = me.getX();
int y_coordinate = me.getY();
String name;
String out;
if (risk.getState() == RiskGameModel.NEW_GAME) { // 0
// startup
System.out.println("status " + risk.getState());
risk.gamePhaseSetup(x_coordinate, y_coordinate);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void lavar() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}",
"public void mo38117a() {\n }",
"@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}",
"private void assignment() {\n\n\t\t\t}",
"private void kk12() {\n\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\n pu... | [
"0.6359434",
"0.6280371",
"0.61868024",
"0.6094568",
"0.60925734",
"0.6071678",
"0.6052686",
"0.60522056",
"0.6003249",
"0.59887564",
"0.59705925",
"0.59680873",
"0.5967989",
"0.5965816",
"0.5962006",
"0.5942372",
"0.5909877",
"0.5896588",
"0.5891321",
"0.5882983",
"0.5881482... | 0.0 | -1 |
Cards OK button pressed. | public void cardsOKButtonPressed() { // Logic to add armies!
int count;
if (toggleCardButtonsPanel())
if (isTradedCardSetValid()) {
if (doesCardMatchCurrentPlayerTerritory() > 0) {
count = risk.curPlayer.getArmiesRecivedByTradingCards() + RiskGameModel.fetchTradedArmiesCount()
+ 2;
ri... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void okButtonClicked();",
"protected abstract void pressedOKButton( );",
"void onOkButtonPressed();",
"protected abstract boolean onOkClicked();",
"public void ok() {\n btOK().push();\n }",
"@FXML\n\tprivate void handleOk() {\n\t\tif (isValidInput()) {\n\t\t\tsaveCurrentAcknowledgment();\n\t\t\... | [
"0.7750722",
"0.7361753",
"0.7159277",
"0.711831",
"0.7110268",
"0.69717675",
"0.6931043",
"0.68824595",
"0.6880335",
"0.687609",
"0.6850034",
"0.68188775",
"0.6795267",
"0.67617244",
"0.67148185",
"0.67036664",
"0.6686647",
"0.6666124",
"0.6655183",
"0.6654883",
"0.65814394"... | 0.7187671 | 2 |
Does card match current player territory. | public int doesCardMatchCurrentPlayerTerritory() {
int countMatchingCards = 0;
for (RiskCardModel card : risk.curPlayer.getCard()) {
for (RiskTerritoryModel territory : risk.curPlayer.getOccupiedTerritories()) {
if (territory.getId() == card.territory)
countMatchingCards++;
}
}
return... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean hasCardAndTerritory(Player player) {\r\n\t\tfor (int i = 0; i < player.playersHand().getCurrentDeck().size(); i++) {\r\n\t\t\tfor (int j = 0; j < player.getTerritories().size(); j++) {\r\n\t\t\t\tif (player.playersHand().getCurrentDeck().get(i).getID() == player\r\n\t\t\t\t\t\t.getTerritories().get(... | [
"0.7417656",
"0.6919771",
"0.67455214",
"0.65934235",
"0.65298676",
"0.6486268",
"0.64505756",
"0.63395506",
"0.63346744",
"0.6263055",
"0.6250524",
"0.6246893",
"0.61964256",
"0.6185265",
"0.61608547",
"0.6155209",
"0.6104444",
"0.6087706",
"0.6080438",
"0.6076449",
"0.60660... | 0.81806636 | 0 |
Checks if is already added. | private boolean isAlreadyAdded(JButton jbn) {
for (RiskCardModel card : lstTradedCards) {
if (card.territory == Integer.valueOf(jbn.getName().split("-")[0])
&& card.card_type.equals(jbn.getName().split("-")[1]))
return true;
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static boolean isAdded() {\n return true;\n }",
"public void checkNewAdded(Instance add) {\n List<Instance> keySet = new LinkedList<Instance>();\n keySet.addAll(backRelation.keySet());\n Boolean added = false;\n for (Instance inst : keySet) {\n if (inst.get... | [
"0.74078643",
"0.6755006",
"0.6691821",
"0.65920514",
"0.6577142",
"0.6450298",
"0.6448811",
"0.6431952",
"0.64081025",
"0.63764334",
"0.63505876",
"0.6350543",
"0.6316437",
"0.6263701",
"0.61818796",
"0.6174524",
"0.6170082",
"0.61416256",
"0.61283034",
"0.6122517",
"0.61031... | 0.5994207 | 28 |
This method checks if the TradeCardSet is valid or not i.e. if the number of cards is 3, and then checks if all 3 are either the same or all three are of different types or one of the three is a wild card | public Boolean isTradedCardSetValid() {
if (lstTradedCards.size() == 3) {
if (!isAWildCardSet()) {
// If all the cards are same
if (lstTradedCards.get(0).card_type.equals(lstTradedCards.get(1).card_type)
&& lstTradedCards.get(1).card_type.equals(lstTradedCards.get(2).card_type)) {
card... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isValid() {\n\t\t//Check for size=3, then check if their ranks are same.\n\t\tif(this.size()==3) {\n\t\t\tif(this.getCard(0).getRank()==this.getCard(1).getRank()) {\n\t\t\t\tif(this.getCard(1).getRank()==this.getCard(2).getRank()){\n\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tretu... | [
"0.66185087",
"0.64431065",
"0.63153803",
"0.6314365",
"0.62699306",
"0.6247175",
"0.62123066",
"0.61211336",
"0.6091228",
"0.59659153",
"0.5958739",
"0.59255016",
"0.5894677",
"0.58227843",
"0.5819715",
"0.58066136",
"0.5803704",
"0.57885337",
"0.577157",
"0.5741492",
"0.568... | 0.7253096 | 0 |
This method checks if the TradeCardSet is a WildCardSet or not. | public Boolean isAWildCardSet() {
for (RiskCardModel card : lstTradedCards) {
if (card.card_type.equals("WILD"))
return true;
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Boolean isValidCountWildCard() {\r\n\t\tint count = 0;\r\n\t\tfor (RiskCardModel card : lstTradedCards) {\r\n\t\t\tif (card.card_type.equals(\"WILD\")) {\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn (count > 1 ? false : true);\r\n\t}",
"public boolean isWildCard() {\n return (m_bWildCard);\n ... | [
"0.6068295",
"0.5909743",
"0.5641645",
"0.562508",
"0.54495704",
"0.54493314",
"0.54067004",
"0.53965354",
"0.5309819",
"0.5257763",
"0.5227668",
"0.5207149",
"0.51294297",
"0.50687927",
"0.50532335",
"0.5002498",
"0.49765694",
"0.4949537",
"0.49318635",
"0.49216282",
"0.4905... | 0.7671464 | 0 |
Checks if is valid count wild card. | public Boolean isValidCountWildCard() {
int count = 0;
for (RiskCardModel card : lstTradedCards) {
if (card.card_type.equals("WILD")) {
count++;
}
}
return (count > 1 ? false : true);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected boolean testWildcard(char c)\n {\n if(!acceptWildCards)\n return false;\n if(c != '.')\n return false;\n char ch2 = charAhead(1);\n if(ch2 == '?' || ch2 == '+' || ch2 == '*')\n ptr += 2; // ptr is on occ indicator\n else if(ch2 == '{'... | [
"0.5927827",
"0.5534244",
"0.5524829",
"0.55140054",
"0.54658073",
"0.53961265",
"0.5380874",
"0.5359923",
"0.5350027",
"0.5338322",
"0.5309523",
"0.5307341",
"0.5299477",
"0.5298765",
"0.5280513",
"0.52704537",
"0.5260026",
"0.52487063",
"0.5237848",
"0.5223927",
"0.51881343... | 0.6640901 | 0 |
jTextArea1.append(desc + " (" + e.getX() + "," + e.getY() + ")\n"); | void saySomething(String desc, MouseEvent e) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static void setTextMousePoint(int i,int j){tmpx=i;tmpy=j;}",
"@Override\r\n\tpublic void mouseMoved(MouseEvent e) {\n\t\tl1.setText(\"You moved the mouse\"+e.getX()+\",\"+e.getY());\r\n\t}",
"public void mousePrint(String eventDescription, MouseEvent e) {\n\t\ttextArea.append(\"Mouse \" + eventDescription + \"... | [
"0.6747963",
"0.6334159",
"0.622209",
"0.6209748",
"0.6150997",
"0.6096403",
"0.6043288",
"0.5945086",
"0.59213024",
"0.588468",
"0.5830317",
"0.5815294",
"0.5815294",
"0.57903516",
"0.57838297",
"0.5736253",
"0.57334536",
"0.57217443",
"0.57214034",
"0.57132477",
"0.56979275... | 0.5565954 | 33 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.