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 | public User getUserById(String userId) {
return userMapper.selectByPrimaryKey(Long.parseLong(userId));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | public List<User> getAllUser() {
return userMapper.getAllUser();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | public User getUserByNameAndPw(String username, String password) {
LOG.info("======>1 name: " + username + " ,password" + password);
return userMapper.selectByUserAndPw(username, password);
} | {
"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 |
The Bonjour Service is not used | @Override
public void onDnsSdServiceAvailable(String instanceName, String registrationType, WifiP2pDevice sourceDevice) {
Log.i(TAG, "BonjourServiceAvailable: \ninstanceName: " + instanceName + "\n " + sourceDevice.toString());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void onStarted() {\n\n super.onStarted();\n\n // No need for discovery services in Archive mode\n if (mIsArchive) return; //TODO: maybe remove this line - should be caught by the NETWORK_NONE case\n\n\n switch (mNetworkType) {\n case BabbleService.NET... | [
"0.6402497",
"0.6372299",
"0.62837076",
"0.616974",
"0.6165658",
"0.61497283",
"0.613877",
"0.60837644",
"0.60301626",
"0.6024727",
"0.60233253",
"0.60147613",
"0.60130286",
"0.5957953",
"0.5925744",
"0.58966273",
"0.58954185",
"0.58767104",
"0.58534193",
"0.58512866",
"0.583... | 0.58973974 | 15 |
Command failed. Check for P2P_UNSUPPORTED, ERROR, or BUSY | @Override
public void onFailure(int code) {
Log.e(TAG, "addServiceRequest Failure " + code);
mService.stopSelf();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void onP2pNotEnabled();",
"public void validateRpd8s2()\n {\n // This guideline cannot be automatically tested.\n }",
"public void validateRpd2s8()\n {\n // This guideline cannot be automatically tested.\n }",
"@Override\n public void onFailure(int i) {\n ... | [
"0.5916919",
"0.5561951",
"0.5416929",
"0.518819",
"0.5159551",
"0.5038663",
"0.5027617",
"0.49865288",
"0.49632508",
"0.4950729",
"0.49406672",
"0.49255118",
"0.4899673",
"0.48870787",
"0.48846847",
"0.47962046",
"0.47933203",
"0.47624815",
"0.47587317",
"0.47436833",
"0.473... | 0.0 | -1 |
Command failed. Check for P2P_UNSUPPORTED, ERROR, or BUSY | @Override
public void onFailure(int code) {
Log.e(TAG, "discoverServices Failure " + code);
if (code == WifiP2pManager.BUSY && mDeviceRegistering != null) {
discoverServices();
} else {
mService.stopSelf();
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void onP2pNotEnabled();",
"public void validateRpd8s2()\n {\n // This guideline cannot be automatically tested.\n }",
"public void validateRpd2s8()\n {\n // This guideline cannot be automatically tested.\n }",
"@Override\n public void onFailure(int i) {\n ... | [
"0.5916919",
"0.5561951",
"0.5416929",
"0.518819",
"0.5038663",
"0.5027617",
"0.49865288",
"0.49632508",
"0.4950729",
"0.49406672",
"0.49255118",
"0.4899673",
"0.48870787",
"0.48846847",
"0.47962046",
"0.47933203",
"0.47624815",
"0.47587317",
"0.47436833",
"0.47338766",
"0.47... | 0.5159551 | 4 |
Register Student Device Methods | private synchronized void beginRegistration() {
if (mDeviceRegistering == null && mDevicesToRegister.size() > 0) {
mDeviceRegistering = mDevicesToRegister.remove(0);
if (!connectToDevice(mDeviceRegistering)) {
endRegistration();
}
} else if (mDeviceReg... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void registerPatientMethod1(Patient p);",
"@PUT\n @Path(\"/register/{studentId}\")\n public void registerStudent() {\n }",
"RegisterSensor() {\n }",
"public void register(){\n }",
"public static void registerISTERs() {\n\n\t}",
"protected void __register()\n {\n }",
"protect... | [
"0.61419904",
"0.6126431",
"0.60050523",
"0.59042454",
"0.58947647",
"0.5878269",
"0.5878269",
"0.5860869",
"0.5831502",
"0.5803068",
"0.5780197",
"0.57596236",
"0.5749035",
"0.57429373",
"0.57403344",
"0.5726001",
"0.57160664",
"0.56742734",
"0.55952203",
"0.55808884",
"0.55... | 0.0 | -1 |
Loader to VAO for 2D vertices | public static RawModel loadToVAO(float[] vertices, int dimensions){
int vaoID = createVAO();
storeDataInAttributeList(0,dimensions, vertices);
unbindVAO();
return new RawModel(vaoID, vertices.length/dimensions); //??
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setUpVAO() {\n\t\tfloat[] vertices = { -1, -1, -1, 1, 1, -1, 1, -1, -1, 1, 1, 1 };\n\t\tquad = Loader.loadToVAO(vertices, 2);\n\t}",
"public abstract Vector2[] getVertices();",
"public RawModel loadToVAO(float[] positions,float[] normals, int[] indices){\n\t\tint vaoID = createVAO();\n\t\tcreateIn... | [
"0.68123376",
"0.6237747",
"0.5792836",
"0.57737464",
"0.57450646",
"0.5653938",
"0.56321985",
"0.562648",
"0.56154794",
"0.5594768",
"0.5567333",
"0.553367",
"0.54980624",
"0.54722506",
"0.5460816",
"0.54520166",
"0.5428094",
"0.5402415",
"0.5400546",
"0.5395391",
"0.5348846... | 0.6546162 | 1 |
Texture Loading and Data | public static int loadTexture(String fileName, String format){
int textureID = 0;
try {
Texture texture = TextureLoader.getTexture(format, new FileInputStream("res/" + fileName + "." + format));
textureID = texture.getTextureID();
GL30.glGenerateMipmap(GL11.GL_TEXTURE... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void loadTexture() {\n\n }",
"public static void load(){\n for(TextureHandler t : textures){\n if(t.texture!=null)t.texture.dispose();\n }\n textures.clear();\n \n //if the textures are corrupt or just arent there then the error TextureHandle... | [
"0.7873138",
"0.719518",
"0.7169055",
"0.70595944",
"0.6934611",
"0.6896805",
"0.6844518",
"0.6790454",
"0.6683397",
"0.66797733",
"0.6643579",
"0.6642297",
"0.6639648",
"0.6632627",
"0.6623715",
"0.65882754",
"0.657735",
"0.6569362",
"0.6513127",
"0.6478182",
"0.641558",
"... | 0.6235868 | 39 |
Delete user like for Proposal | @Override
@Transactional
public void deleteLikesByProposalAndUser(Long proposalId, Long userId) {
log.debug("Request to delete like of user : {} for Proposal : {}", userId, proposalId);
alikeRepository.deleteByProposalIdAndAuthorId(proposalId, userId);
proposalRepository.addLikeSumForPro... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int deleteByExample(LikeUserExample example);",
"void delete(User user);",
"void delete(User user);",
"public boolean delete(User user);",
"public void deleteUser(User userToDelete) throws Exception;",
"@Override\n\tpublic void deleteUser(user theUser) {\n\t\t\n\t}",
"@Override\r\n\tpublic int delete(U... | [
"0.7080212",
"0.70346737",
"0.70346737",
"0.7026008",
"0.6996104",
"0.6991552",
"0.6960671",
"0.6949109",
"0.691798",
"0.6876801",
"0.6875553",
"0.6750225",
"0.6726382",
"0.6706678",
"0.6691142",
"0.6665279",
"0.66494787",
"0.66287005",
"0.6627959",
"0.66113013",
"0.65874743"... | 0.7745275 | 0 |
Get all the proposals. | @Override
@Transactional(readOnly = true)
public Page<Proposal> findAll(Pageable pageable) {
log.debug("Request to get all Proposals");
return proposalRepository.findAll(pageable);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static Map<Integer, Proposal> getProposals() { return proposals; }",
"@NonNull\n public List<IkeSaProposal> getIkeSaProposals() {\n return Arrays.asList(mSaProposals);\n }",
"public java.util.List<edu.ustb.sei.mde.xmu2.resource.xmu2.ui.Xmu2CompletionProposal> process(java.util.List<edu.ustb... | [
"0.7641806",
"0.6741907",
"0.6719285",
"0.6620208",
"0.6398398",
"0.5995802",
"0.59594375",
"0.5957574",
"0.59363467",
"0.5926507",
"0.5925271",
"0.57768536",
"0.5739734",
"0.57212216",
"0.56703085",
"0.56335187",
"0.5622325",
"0.56039983",
"0.55713093",
"0.55696994",
"0.5568... | 0.7287629 | 1 |
Get all the proposals with eager load of manytomany relationships. | public Page<Proposal> findAllWithEagerRelationships(Pageable pageable) {
return proposalRepository.findAllWithEagerRelationships(pageable);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n @Transactional(readOnly = true)\n public Page<Proposal> findAll(Pageable pageable) {\n log.debug(\"Request to get all Proposals\");\n return proposalRepository.findAll(pageable);\n }",
"public static Map<Integer, Proposal> getProposals() { return proposals; }",
"public List<P... | [
"0.63123494",
"0.615324",
"0.56386733",
"0.5509379",
"0.5446744",
"0.5412908",
"0.5411423",
"0.5392245",
"0.5376338",
"0.5319963",
"0.5260286",
"0.5229339",
"0.51695585",
"0.5058716",
"0.5054969",
"0.50219256",
"0.50007796",
"0.4954059",
"0.49513027",
"0.49496236",
"0.4943007... | 0.7044915 | 0 |
Get one proposal by id. | @Override
@Transactional(readOnly = true)
public Optional<Proposal> findOne(Long id) {
log.debug("Request to get Proposal : {}", id);
return proposalRepository.findOneWithEagerRelationships(id);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Person getOne(Integer id) {\n\t\tPerson person = personRepository.getOne(id);\n\t\treturn person;\n\t}",
"@Override\n\tpublic Propisi findOne(Long id) {\n\t\treturn null;\n\t}",
"@Transactional(readOnly = true)\n public Optional<SourceApprovEpDTO> findOne(Long id) {\n log.debug(\"Request to ge... | [
"0.7080784",
"0.7031324",
"0.68022156",
"0.6774677",
"0.6686502",
"0.6661941",
"0.66258526",
"0.6625678",
"0.6616323",
"0.6615531",
"0.65786296",
"0.65688187",
"0.65669",
"0.65467745",
"0.648349",
"0.6463337",
"0.644877",
"0.64134693",
"0.64043397",
"0.6393435",
"0.6389606",
... | 0.8443055 | 0 |
Delete the proposal by id. | @Override
public void delete(Long id) {
log.debug("Request to delete Proposal : {}", id);
proposalRepository.deleteById(id);
proposalSearchRepository.deleteById(id);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void deleteById(final String id);",
"public void delete(String id);",
"public void delete(String id);",
"public void delete(String id);",
"public void delete(String id);",
"public void delete(String id);",
"public void deleteById(String id);",
"@Override\n public void delete(Long id) {\n lo... | [
"0.7050066",
"0.7012333",
"0.7012333",
"0.7012333",
"0.7012333",
"0.7012333",
"0.6963117",
"0.6890447",
"0.6838598",
"0.6825137",
"0.68121916",
"0.68121916",
"0.68121916",
"0.68121916",
"0.68121916",
"0.68121916",
"0.68121916",
"0.68121916",
"0.68121916",
"0.68121916",
"0.679... | 0.8433318 | 0 |
Search for the proposal corresponding to the query. | @Override
@Transactional(readOnly = true)
public Page<Proposal> search(String query, Pageable pageable) {
log.debug("Request to search for a page of Proposals for query {}", query);
return proposalSearchRepository.search(queryStringQuery(query), pageable);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Transactional(readOnly = true)\n public Page<SourceApprovEpDTO> search(String query, Pageable pageable) {\n log.debug(\"Request to search for a page of SourceApprovEps for query {}\", query);\n return sourceApprovEpSearchRepository.search(queryStringQuery(query), pageable).map(sourceApprovEpMappe... | [
"0.6187909",
"0.6000768",
"0.58227307",
"0.5729966",
"0.5577029",
"0.55764574",
"0.55634123",
"0.5555412",
"0.552886",
"0.5514987",
"0.55103004",
"0.55023414",
"0.54685706",
"0.5447327",
"0.54438835",
"0.54158705",
"0.5387874",
"0.5378017",
"0.5361947",
"0.5360594",
"0.534833... | 0.7600612 | 0 |
Get all histories of Proposal | @Override
public List<History> getHistories(Long id) {
return historyRepository.findByProposalIdOrderByCreatedDateDesc(id);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic List<Historico> findAll() {\n\t\treturn null;\n\t}",
"public List<HistoriaLaboral> getHistoriasQueAfectanDesignacion(Emp emp);",
"public List<HistoriaLaboral> getHistoriasSanciones(Emp emp);",
"public List<Order> getOrderHistory();",
"private List<Performance> quizHistory(){\n\t\treturn... | [
"0.6248334",
"0.61469173",
"0.6120217",
"0.5875048",
"0.57791156",
"0.5763498",
"0.570539",
"0.5675734",
"0.5632675",
"0.5577904",
"0.5571554",
"0.5548628",
"0.5488204",
"0.5468422",
"0.54186386",
"0.53657717",
"0.53412336",
"0.5314043",
"0.52966833",
"0.52774096",
"0.526574"... | 0.67840004 | 0 |
Save a history for proposal, update proposal status. | @Override
@Transactional
public History addHistory(History history, Long proposalId, Long userId) {
log.debug("Request to save History : {}", history);
User executive = userRepository.getOne(userId);
Proposal proposal = proposalRepository.getOne(proposalId);
Instant now = Instan... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void saveEarningHistory(EarningHistory earningHistory){\n }",
"protected void saveHistoryData() throws RemoteHomeManagerException {\n int expected = (isCurrentState()) ? 1 : 0;\n if (isEnabledScheduler()) {\n Boolean action = getLightSchedule().getCurrentSchedule();\n ... | [
"0.6073165",
"0.5983713",
"0.58492905",
"0.57939595",
"0.575489",
"0.57074136",
"0.5692693",
"0.56893146",
"0.56676775",
"0.5646871",
"0.56284523",
"0.5599861",
"0.5589487",
"0.5582052",
"0.5551877",
"0.5515916",
"0.5509256",
"0.5503824",
"0.5488218",
"0.54710346",
"0.5471005... | 0.64063716 | 0 |
/Create a function named is anagram following your current language's style guide. It should take two strings and return a boolean value depending on whether its an anagram or not. | public static void main(String[] args) {
System.out.println(isAnagram("dog", "cat"));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean anagram(char [] a, char [] b);",
"public static boolean isAnagramFuncApproach(String str1, String str2) {\n List<String> list1 = str1.chars()\n .sorted()\n .mapToObj(c -> Character.valueOf((char) c))\n .map(object -> Objects.toString(object, null... | [
"0.82326543",
"0.7904526",
"0.77971023",
"0.77955836",
"0.7787062",
"0.77742475",
"0.77649707",
"0.7740485",
"0.7691154",
"0.76730365",
"0.7651788",
"0.7587044",
"0.758563",
"0.7544495",
"0.7486283",
"0.7443603",
"0.7435597",
"0.7423508",
"0.7407411",
"0.73862165",
"0.7378804... | 0.7229641 | 28 |
Returns the value of the 'Instrument Derived' attribute. The default value is "false". If the meaning of the 'Instrument Derived' attribute isn't clear, there really should be more of a description here... | boolean isInstrumentDerived(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isDerived() {\n return fDerived;\n }",
"public boolean isIncludeDerived() {\n return includeDerived;\n }",
"public boolean getBase()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.... | [
"0.65393096",
"0.6517792",
"0.61243254",
"0.5964515",
"0.5885945",
"0.58225095",
"0.5775005",
"0.5742029",
"0.56816626",
"0.5607011",
"0.55865985",
"0.5575",
"0.5523126",
"0.551052",
"0.5491792",
"0.54860806",
"0.5477543",
"0.5406562",
"0.5388611",
"0.53136915",
"0.52545625",... | 0.77638084 | 0 |
Returns the value of the 'Method' reference. If the meaning of the 'Method' reference isn't clear, there really should be more of a description here... | Method getMethod(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Method getMethod();",
"String getMethod();",
"String getMethod();",
"public String getMethod ()\n {\n return method;\n }",
"public Method getMethod() {\n return mMethod;\n }",
"public Method getMethod () {\n\t\treturn method;\n\t}",
"public int getMethod(){\n return method;... | [
"0.7487461",
"0.7449966",
"0.7449966",
"0.7405633",
"0.7399275",
"0.7368203",
"0.7267897",
"0.7262881",
"0.7249966",
"0.7218663",
"0.71860904",
"0.71860904",
"0.7170702",
"0.71319556",
"0.71167964",
"0.711426",
"0.7080614",
"0.7077464",
"0.70517206",
"0.70517206",
"0.70517206... | 0.73257124 | 7 |
TODO Autogenerated method stub | protected void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
this.doPost(request, response);
} | {
"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 Integer deleteByPrimaryKey(Integer id) {
return filteringMapper.deleteByPrimaryKey(id);
} | {
"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 Integer insert(Filtering record) {
return filteringMapper.insert(record);
} | {
"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 Integer insertSelective(Filtering record) {
return filteringMapper.insertSelective(record);
} | {
"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 Filtering selectByPrimaryKey(Integer id) {
return filteringMapper.selectByPrimaryKey(id);
} | {
"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 Integer updateByPrimaryKeySelective(Filtering record) {
return filteringMapper.updateByPrimaryKeySelective(record);
} | {
"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 Integer updateByPrimaryKey(Filtering record) {
return filteringMapper.updateByPrimaryKey(record);
} | {
"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<Filtering> selectByAll() {
return filteringMapper.selectByAll();
} | {
"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 Integer getFiltering(String sn, String mac, String model) {
return filteringMapper.getFiltering(sn, mac, model);
} | {
"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 Integer countFiltering(Map<String, Object> map) {
return filteringMapper.countFiltering(map);
} | {
"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 |
Launch the application. Create the application. | public RegCita() {
initialize();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void launchApp();",
"public static void main(String[] args) {\n // Create the system.\n Application.launch( args );\n }",
"public static void main(String[] args) \r\n\t {\r\n\t\tApplication.launch(args);\r\n\t }",
"public static void main(String[] args){\r\n //Launch the JavaFX app\r\... | [
"0.7436104",
"0.7024689",
"0.669061",
"0.66294146",
"0.661498",
"0.66077507",
"0.6557844",
"0.65565175",
"0.65478927",
"0.654669",
"0.65287817",
"0.65287817",
"0.65202075",
"0.64732826",
"0.64714766",
"0.6448685",
"0.6383627",
"0.6383627",
"0.6383627",
"0.6352159",
"0.6331429... | 0.0 | -1 |
Initialize the contents of the frame. | private void initialize() {
frame = new JFrame();
frame.setBounds(100, 100, 695, 385);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
JPanel panel = new JPanel();
frame.getContentPane().add(panel, BorderLayout.CENTER);
panel.setLayout(null);
JPanel panel_1 = new JPanel();
panel_1.setBounds(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public BreukFrame() {\n super();\n initialize();\n }",
"public MainFrame() {\n\t\tsuper();\n\t\tinitialize();\n\t}",
"private void initialize() {\n\t\tthis.setSize(211, 449);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setTitle(\"JFrame\");\n\t}",
"public SiscobanFrame() {\r\n\t\tsuper();\r... | [
"0.77704835",
"0.75652915",
"0.7442664",
"0.7369101",
"0.7366378",
"0.7358479",
"0.73146075",
"0.73096764",
"0.72987294",
"0.72978777",
"0.7278321",
"0.72729623",
"0.7269468",
"0.7269468",
"0.7215727",
"0.7180792",
"0.71682984",
"0.7140954",
"0.7140953",
"0.7126852",
"0.71079... | 0.0 | -1 |
ProvisioningService registers and deregisters physical and virtual resources that the management server can use. | public interface ProvisioningService {
StorageEntity registerStorage(String name, List<String> tags, Map<String, String> details);
ZoneEntity registerZone(String zoneUuid, String name, String owner, List<String> tags, Map<String, String> details);
PodEntity registerPod(String podUuid, String name, String... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean registerNewResource(API api, Map resourceAttributes) throws APIManagementException {\n\n return true;\n }",
"@Host(\"{$host}\")\n @ServiceInterface(name = \"ComputeManagementCli\")\n private interface VirtualMachineScaleSetVMsService {\n @Headers({\"Accept: ap... | [
"0.5463457",
"0.51296884",
"0.5098058",
"0.50857913",
"0.50664955",
"0.50367266",
"0.49982545",
"0.49096915",
"0.48996657",
"0.48945737",
"0.488084",
"0.48773557",
"0.48627922",
"0.48441893",
"0.48440176",
"0.48364407",
"0.48180118",
"0.47718564",
"0.47701797",
"0.47690773",
... | 0.57085943 | 0 |
Occurs after this view is loaded. | @Override
protected void onFinishInflate() {
initComponents();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void viewInit() {\n }",
"@Override\n\tpublic void InitView() {\n\t\t\n\t}",
"@Override\n\tpublic void onNaviViewLoaded() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initView() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initView() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void initView() {... | [
"0.6996135",
"0.6902412",
"0.6768414",
"0.6616082",
"0.6616082",
"0.66080904",
"0.66080904",
"0.65835726",
"0.65744877",
"0.65696335",
"0.65696335",
"0.6565616",
"0.6565616",
"0.6548042",
"0.6542999",
"0.65131485",
"0.6510744",
"0.6500705",
"0.6500705",
"0.64962846",
"0.64661... | 0.0 | -1 |
Adds a IStreamEventListener to this view. | @Override
public void addStreamEventListener(IStreamEventListener eventListener) {
listener = eventListener;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void addListener(StreamListener listener) {\n streamListeners.add(listener);\n }",
"public void addAlpacaStreamListener(AlpacaStreamListener streamListener) {\n alpacaWebSocketClient.addListener(streamListener);\n }",
"public void addDatastream(EventDataStream stream)\... | [
"0.730687",
"0.61413693",
"0.5882812",
"0.57685745",
"0.5679094",
"0.56738704",
"0.56315106",
"0.5561839",
"0.54962015",
"0.54618317",
"0.5433833",
"0.5411679",
"0.5382591",
"0.5379821",
"0.5374267",
"0.536927",
"0.5359549",
"0.53482103",
"0.5295738",
"0.5270425",
"0.52124035... | 0.78361195 | 0 |
Updates the view with the stethoscope's metrics. | @Override
public void updateStethoscopeInformation(StethoscopeInformation info) {
update(info.getModelNumber(), modelNumber);
update(info.getFirmwareVersion() + "", firmwareVersion);
update(info.getBatteryLevel() + "", batteryLevel);
update(info.getIsAutoBluetoothOn() + "", au... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void updateSummaries() { }",
"protected void updateSummaries() { }",
"void updateView();",
"void updateView();",
"public void showMetrics() {\n }",
"public static void updateViewSettings() {\n\t\tif(isSensorNetworkAvailable()) {\n\t\t\tinformationFrame.update(selectedSensor);\n\t\t\tview... | [
"0.5839616",
"0.5839616",
"0.57477707",
"0.57477707",
"0.5738202",
"0.56748044",
"0.5659381",
"0.56093717",
"0.546619",
"0.5418556",
"0.5400436",
"0.53723574",
"0.5362481",
"0.5323832",
"0.5283118",
"0.52793",
"0.5234988",
"0.5226227",
"0.52137643",
"0.520083",
"0.5195347",
... | 0.48540667 | 86 |
Sets the title for this view. | @Override
public void setViewTitle(String title) {
stethoscopeLabel.setText(title);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setTitle(String title) {\r\n _title = title;\r\n }",
"public void setTitle(String title) {\n mTitle = title;\n }",
"public void setTitle_(String title_) {\n this.title_ = title_;\n }",
"public void setTitle(String title)\n {\n mTitle = title;\n }",
"pu... | [
"0.8146299",
"0.8100029",
"0.8095949",
"0.80768245",
"0.80670583",
"0.804122",
"0.804122",
"0.80371743",
"0.8035206",
"0.8029878",
"0.8029403",
"0.8028358",
"0.8028358",
"0.80147004",
"0.80147004",
"0.80147004",
"0.80147004",
"0.80147004",
"0.80147004",
"0.80147004",
"0.80147... | 0.7688279 | 79 |
Sets the text for this view's "switch metrics" button. | @Override
public void setSwitchText(String text) {
switchButton.setText(text);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setText(String st){\n\t\tbutton.setText(st);\n\t}",
"public void setLabelText(String text);",
"public void setButtonText(String str){\r\n SWINGButton.setText(str);\r\n }",
"@Override\r\n\tpublic void setText() {\n\t\t\r\n\t}",
"public void setText( String text );",
"public void setT... | [
"0.65501475",
"0.6396912",
"0.6333347",
"0.61392516",
"0.60888714",
"0.60438544",
"0.6039374",
"0.6008074",
"0.5956116",
"0.5944541",
"0.5932316",
"0.5876281",
"0.5859604",
"0.58520186",
"0.5825692",
"0.5818239",
"0.58180887",
"0.5805887",
"0.5804017",
"0.579804",
"0.57709",
... | 0.75360876 | 0 |
Helper method to update the information on the screen. | private void update(String text, TextView view) {
handler.post(new TextUpdater(text, view));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void updateScreen(){}",
"public void update() {\n\n\t\tdisplay();\n\t}",
"public void updateOnScreen() {\n\t\tscreen.updateBox();\n\n\t}",
"private void updateInformation(){\n view.getPrompt().setText(getPrompt());\n view.getScore().setText(getScore());\n }",
"public void updateScre... | [
"0.7838724",
"0.78138864",
"0.7767076",
"0.77484876",
"0.7663979",
"0.73894465",
"0.73678964",
"0.72973776",
"0.7237341",
"0.7193286",
"0.7179483",
"0.71717983",
"0.71676034",
"0.71412206",
"0.71139765",
"0.7111661",
"0.7059761",
"0.7006302",
"0.6974512",
"0.6955541",
"0.6940... | 0.0 | -1 |
Gets the components of this view and adds any necessary listeners. | private void initComponents() {
stethoscopeLabel = (TextView) findViewById(R.id.stethoscope_label);
modelNumber = (TextView) findViewById(R.id.model);
firmwareVersion = (TextView) findViewById(R.id.firmware_version);
batteryLevel = (TextView) findViewById(R.id.battery_level);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void addListeners() {\n\n\t\tfinal ComponentsController serviceController = (ComponentsController) componentsService;\n\t\t/*\n\t\t * service controller listener:\n\t\t */\n\t\tfinal ChangeListener changeListener = new ChangeListener() {\n\t\t\tpublic void modelChanged(ChangeEvent ce) {\n\t\t\t\tPmsChangeE... | [
"0.7061884",
"0.6741033",
"0.6617922",
"0.64301217",
"0.6206889",
"0.61158323",
"0.6086565",
"0.5995161",
"0.59878385",
"0.59251744",
"0.59164554",
"0.58383083",
"0.5833009",
"0.5832287",
"0.58206856",
"0.5810231",
"0.5806972",
"0.578409",
"0.5772486",
"0.5762648",
"0.5746111... | 0.0 | -1 |
90.0% == 1ms 95.0% == 10ms 1000 50 > 10ms 99.0% == 100ms 1000 10 > 100ms 99.9% == 1000ms1000 1 > 1000ms | @RequestMapping("/index")
public String index() {
int level = ThreadLocalRandom.current().nextInt(1, 1000);
int time;
if (level <= 900) {
time = 1;
} else if (level <= 950) {
time = 10;
} else if (level <= 990) {
time = 100;
} else... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static void loopcomp () {\r\n\t\tint t40k= timer(8000,40000); \r\n\t\tint t1k= timer(8000,1000); \r\n\t\tSystem.out.println(\"Total number of loops for printing every 40k loops = \" + t40k);\r\n\t\tSystem.out.println(\"Total number of loops for printing every 1k loops = \"+ t1k);\r\n\t}",
"private void computePe... | [
"0.61591995",
"0.6092463",
"0.608034",
"0.60685766",
"0.6046011",
"0.6002438",
"0.5990797",
"0.5987445",
"0.5982243",
"0.59491515",
"0.5914935",
"0.5910716",
"0.5910716",
"0.589107",
"0.58362985",
"0.5814802",
"0.5769604",
"0.5711686",
"0.56894773",
"0.56501037",
"0.56469345"... | 0.0 | -1 |
Shoot will shoot a projectile constructed in this class at the direction the player is faced | public boolean shoot() {
if (!isReloading && System.currentTimeMillis() - previousShotTime > shootInterval * 1000 && ammoRemaining > 0) {
previousShotTime = System.currentTimeMillis();
ammoRemaining--;
audioPlayer.setSpatial(holder);
audioPlayer.playOnce();
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void shoot(Projectile p){\r\n\t\tp.facing = facing;\r\n\t\tp.x = x+(width/2)-(p.width/2);\r\n\t\tp.y = y+(height/2)-(p.height/2);\r\n\t\tp.fired = true;\r\n\t\tinAttackCooldown = true;\r\n\t}",
"public void shoot(Point p, Graphics g, Player player){\r\n if(p.getX() > getXCoord()-20){ //not sure if ... | [
"0.76310736",
"0.7418972",
"0.7285851",
"0.7051607",
"0.70277536",
"0.6966984",
"0.6966984",
"0.6956811",
"0.6942415",
"0.69355536",
"0.6817778",
"0.6816234",
"0.6790153",
"0.6722656",
"0.671542",
"0.66868246",
"0.66601247",
"0.65618885",
"0.6481551",
"0.6471839",
"0.645303",... | 0.6453192 | 20 |
Creating the DisplayInput class singleton | public static DisplayInput getInstance() {
if (input == null) {
synchronized (DisplayInput.class) {
if (input == null) {
input = new DisplayInput();
}
}
}
return input;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public InputManager(){\n this.view = new View();\n }",
"private Input()\n {\n }",
"private MulticastInputUI()\n\t{\n\t}",
"Input createInput();",
"public InputView()\n\t{\n\t\tthis.layoutView();\n\t\tthis.registerButtons();\n\t}",
"public DMXUserInput() {\n }",
"public GameInput() {\... | [
"0.71463954",
"0.649855",
"0.645201",
"0.63881093",
"0.6382887",
"0.6326965",
"0.62915385",
"0.629118",
"0.62879336",
"0.62217546",
"0.6164568",
"0.6131166",
"0.60375166",
"0.6030894",
"0.59671205",
"0.59671205",
"0.59536994",
"0.59069014",
"0.58831763",
"0.5875851",
"0.58745... | 0.79570556 | 0 |
Display the main menu | public void displayInput() {
scan = new Scanner(System.in);
boolean exit = false;
while (!exit) {
System.out.println("\n1.Display Product");
System.out.println("2.Buy Product");
System.out.println("3.Cart");
System.out.println("4.Exit");
System.out.println("Enter Your Choice:-");
choice = getVal... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void mainMenu() {\n System.out.println(\"Canteen Management System\");\n System.out.println(\"-----------------------\");\n System.out.println(\"1. Show Menu\");\n System.out.println(\"2.AcceptReject\");\n System.out.println(\"3.place orders\");\n System.out.println(\"4.show orders\");\n ... | [
"0.82881314",
"0.8241537",
"0.8206119",
"0.804325",
"0.7894385",
"0.77765685",
"0.77372414",
"0.7734793",
"0.7628095",
"0.7606216",
"0.7560275",
"0.75600487",
"0.75546455",
"0.7554428",
"0.75462615",
"0.7538548",
"0.7525449",
"0.75063133",
"0.7490616",
"0.7456502",
"0.7452195... | 0.0 | -1 |
Get the input until the user enter Integer | private int getValidInteger(String msg) {
while (!scan.hasNextInt() || (choice = scan.nextInt()) < 1) {
System.out
.print("Error ---> Enter Positive Integer Value:\n" + msg);
scan.next();
}
return choice;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static int getIntegerInput() {\n\t\tScanner integer_input = new Scanner(System.in);\n\t\tboolean valid_inputType = false;\n\t\tint menu_option = -1;\n\t\t\n\t\t/*Repeatedly asks user to enter input until user enters an integer value as input*/\n\t\twhile(!valid_inputType){\n\t\t\ttry{\n\t\t\t\tmenu_option ... | [
"0.7999455",
"0.7951633",
"0.7612444",
"0.75928396",
"0.75886244",
"0.7576665",
"0.75703615",
"0.754852",
"0.74515283",
"0.74399155",
"0.74378604",
"0.7414507",
"0.7334872",
"0.7310743",
"0.72187775",
"0.72180283",
"0.7212801",
"0.7187389",
"0.71580356",
"0.7157686",
"0.71466... | 0.6292963 | 90 |
Display the cart menu | private void cart() {
boolean back = false;
while (!back) {
System.out.println("1.Display Cart");
System.out.println("2.Remove Product From Cart");
System.out.println("3.Edit Product in Cart");
System.out.println("4.Checkout");
System.out.println("5.Back");
System.out.println("Enter Your Choice:-"... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static void viewCart() {\r\n\t\tSystem.out.println(\"******************************************************************************************\");\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" The items in your cart\");\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(... | [
"0.8149651",
"0.767014",
"0.7657458",
"0.7595456",
"0.75851727",
"0.7529229",
"0.7346966",
"0.7110521",
"0.7088064",
"0.70501316",
"0.67298335",
"0.67186004",
"0.6711618",
"0.6693275",
"0.6661708",
"0.6611208",
"0.6596743",
"0.65943336",
"0.65787286",
"0.6575369",
"0.65434533... | 0.68802434 | 10 |
Checkout and call generate Bill | private void checkout() {
if (!CartController.getInstance().isCartEmpty()) {
System.out.println("Enter your Name :");
scan.nextLine();
CartController.getInstance().generateBill(scan.nextLine());
} else {
System.out
.println("\n--------------No Product Available in Cart for Checkout-----------------... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void generateBill(){\n System.out.println(\" Supermercado la 33 \");\n System.out.println(getName());\n System.out.println(getId());\n System.out.println(LocalDate.now() + \" -- \" +LocalTime.now());\n //System.out.println(\"Cantidad Denominacion ... | [
"0.72936565",
"0.6851724",
"0.68041193",
"0.6642061",
"0.63083667",
"0.6231446",
"0.60976815",
"0.6095518",
"0.608602",
"0.6065969",
"0.5914535",
"0.59015983",
"0.59013605",
"0.5879795",
"0.5878662",
"0.58350575",
"0.58146244",
"0.5804777",
"0.57948816",
"0.57455593",
"0.5732... | 0.6008295 | 10 |
Edit product from cart | private void editProduct() {
if (!CartController.getInstance().isCartEmpty()) {
System.out.println("Enter Product Id - ");
int productId = getValidInteger("Enter Product Id -");
while (!CartController.getInstance().isProductPresentInCart(
productId)) {
System.out.println("Enter Valid Product Id - ")... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Product editProduct(Product product);",
"public void Editproduct(Product objproduct) {\n\t\t\n\t}",
"public void editProduct(int index, String description, String category, int quantity, int weight, int price, int stocknumber) {\t\t\n\t}",
"public String editProduct() {\n ConversationContext<Product> ... | [
"0.78995246",
"0.78364",
"0.7195877",
"0.7165601",
"0.7124654",
"0.70865566",
"0.70393395",
"0.6913506",
"0.6847924",
"0.67580277",
"0.67553884",
"0.67529273",
"0.6742063",
"0.6665155",
"0.6662733",
"0.665638",
"0.6635936",
"0.65764606",
"0.65178424",
"0.6504542",
"0.64921147... | 0.8134409 | 0 |
Remove product from cart | private void removeProduct() {
if (!CartController.getInstance().isCartEmpty()) {
System.out.println("Enter Product Id - ");
int productId = getValidInteger("Enter Product Id - ");
while (!CartController.getInstance().isProductPresentInCart(
productId)) {
System.out.println("Enter Valid Product Id -... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void removeProduct(Product product);",
"public void RemoveproductCartSaucedemo() {\n\t\t\t\t\tdriver.findElement(RemoveProduct).click();\n\t\t\n\t\t\t\t}",
"void removeCartItem(int cartItemId);",
"ShoppingBasket removeProductItem(Long shoppingBasketId, Long productItemId);",
"public void removeItem(Product... | [
"0.8087064",
"0.78115356",
"0.76996076",
"0.75562805",
"0.74278176",
"0.7408061",
"0.7389758",
"0.73490846",
"0.7197401",
"0.7160954",
"0.71513",
"0.714524",
"0.7116054",
"0.7104262",
"0.7071764",
"0.7041259",
"0.70242655",
"0.7016195",
"0.6942913",
"0.6929534",
"0.6883479",
... | 0.790923 | 1 |
Buy Product or add Product to Cart | private void buyProduct() {
System.out.println("Enter Number of Product :- ");
int numberOfProduct = getValidInteger("Enter Number of Product :- ");
while (!StoreController.getInstance().isValidNumberOfProduct(
numberOfProduct)) {
System.out.println("Enter Valid Number of Product :- ");
numberOfProduct ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void buyProduct(String productName) throws ProductNotFoundException {\r\n\r\n if (doesRecentOrderExist(productName)) {\r\n reorderProduct(productName);\r\n } else {\r\n //Create a new order to be given to the WebMarket\r\n Order newOrder = new Order(this, productName, ... | [
"0.73756206",
"0.72294635",
"0.71982574",
"0.71401316",
"0.70903194",
"0.7057781",
"0.7045902",
"0.7001395",
"0.6955249",
"0.6930564",
"0.69276166",
"0.6923371",
"0.6916958",
"0.6883205",
"0.683428",
"0.68241256",
"0.68041474",
"0.6786956",
"0.67645",
"0.6728834",
"0.67249113... | 0.702992 | 7 |
Un accessseur vers le compte | public Compte getCompte() {
return compte;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private ControleurAcceuil(){ }",
"public void acionarInadimplencia(CestaGarantiasDO cesta);",
"private static void statACricri() {\n \tSession session = new Session();\n \tNSTimestamp dateRef = session.debutAnnee();\n \tNSArray listAffAnn = EOAffectationAnnuelle.findAffectationsAnnuelleInContext(session.ec(... | [
"0.6413222",
"0.6266325",
"0.60420793",
"0.603071",
"0.602124",
"0.60177046",
"0.59984565",
"0.59448236",
"0.59437126",
"0.58556336",
"0.5849107",
"0.5830004",
"0.58086187",
"0.5798536",
"0.5796861",
"0.5793079",
"0.5778917",
"0.5769458",
"0.57663435",
"0.575193",
"0.5745968"... | 0.0 | -1 |
Un accesseur vers le montant | public double getMontant() {
return montant;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void calculerAire() {\r\n\t\taire = Math.PI * rayonV * rayonH;\r\n\t\t\r\n\t}",
"@Override\n public void cantidad_Ataque(){\n ataque=5+2*nivel+aumentoT;\n }",
"public void aumentarAciertos() {\r\n this.aciertos += 1;\r\n this.intentos += 1; \r\n }",
"public static void... | [
"0.6431539",
"0.63756627",
"0.6314812",
"0.62180114",
"0.61820865",
"0.6166776",
"0.61557156",
"0.61511254",
"0.6129224",
"0.6127166",
"0.60949165",
"0.6090203",
"0.6067288",
"0.604642",
"0.6034562",
"0.6028027",
"0.6018741",
"0.59852916",
"0.5980245",
"0.5959306",
"0.5956554... | 0.0 | -1 |
Called when the 'loadIMEI' function is triggered. | public void loadIMEI() {
// Check if the READ_PHONE_STATE permission is already available.
if (ActivityCompat.checkSelfPermission(this, Manifest.permission.READ_PHONE_STATE)
!= PackageManager.PERMISSION_GRANTED) {
// READ_PHONE_STATE permission has not been granted.
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void loadIMEI() {\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.READ_PHONE_STATE)\n != PackageManager.PERMISSION_GRANTED) {\n if (ActivityCompat.shouldShowRequestPermissionRationale(this,\n Manifest.permission.READ_PHONE_STATE)) {\n// ... | [
"0.7435986",
"0.6709062",
"0.5979175",
"0.5821586",
"0.5813812",
"0.56588334",
"0.5595336",
"0.5546258",
"0.54959583",
"0.54466444",
"0.5434751",
"0.5403506",
"0.53941137",
"0.53813845",
"0.5370015",
"0.53554547",
"0.5354979",
"0.5297067",
"0.5296433",
"0.52956784",
"0.527977... | 0.7118108 | 1 |
Requests the READ_PHONE_STATE permission. If the permission has been denied previously, a dialog will prompt the user to grant the permission, otherwise it is requested directly. | private void requestReadPhoneStatePermission() {
if (ActivityCompat.shouldShowRequestPermissionRationale(this,
Manifest.permission.READ_PHONE_STATE)) {
// Provide an additional rationale to the user if the permission was not granted
// and the user would benefit from addi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void requestPhoneStatePermission() {\n if (ContextCompat.checkSelfPermission(mContext,\n Manifest.permission.READ_PHONE_STATE)\n != PackageManager.PERMISSION_GRANTED) {\n\n // Should we show an explanation?\n if (ActivityCompat.shouldShowRequestPerm... | [
"0.83754706",
"0.72339684",
"0.668558",
"0.66776806",
"0.6615996",
"0.6019767",
"0.60177827",
"0.6013293",
"0.599237",
"0.5975478",
"0.59671783",
"0.59249735",
"0.59182787",
"0.58690506",
"0.585425",
"0.5839011",
"0.5806926",
"0.57610637",
"0.5659537",
"0.5610642",
"0.5589625... | 0.7964459 | 1 |
Callback received when a permissions request has been completed. | @Override
public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions,
@NonNull int[] grantResults) {
if (requestCode == MY_PERMISSIONS_REQUEST_READ_PHONE_STATE) {
// Received permission result for READ_PHONE_STATE permission.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void onPermissionsGranted(int requestCode, List<String> perms) {\n }",
"@Override\n public void onPermissionsGranted(int requestCode, List<String> perms) {\n }",
"@Override\n public void onAction(List<String> permissions) {\n Log.e(TAG, \... | [
"0.7307336",
"0.7307336",
"0.7267918",
"0.6999627",
"0.68490314",
"0.6796219",
"0.67612785",
"0.67542094",
"0.6754114",
"0.6750372",
"0.67407227",
"0.67374456",
"0.67353004",
"0.66154015",
"0.65923184",
"0.65722334",
"0.6563058",
"0.6555676",
"0.6520609",
"0.6518065",
"0.6514... | 0.0 | -1 |
Have an object of TelephonyManager | public void doPermissionGrantedStuffs() {
TelephonyManager tm =(TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE);
//Get IMEI Number of Phone //////////////// for this example i only need the IMEI
String IMEINumber=tm.getDeviceId();
// Now read the desired content to a textv... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static boolean HasTelephony(Context context){\r\n PackageManager packageManager = context.getPackageManager();\r\n\r\n if(packageManager == null){\r\n return false;\r\n }\r\n\r\n return packageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY);\r\n }",
"@C... | [
"0.65340006",
"0.6456384",
"0.6067117",
"0.59115404",
"0.5725304",
"0.5647575",
"0.5582822",
"0.55641854",
"0.55346394",
"0.5463266",
"0.54590404",
"0.54590404",
"0.54590404",
"0.5454348",
"0.5431115",
"0.5428664",
"0.5366248",
"0.5352931",
"0.5342611",
"0.5318315",
"0.531587... | 0.0 | -1 |
TODO get the image bitmap to solve the error | private void saveAssetPhone() {
mProgressDialog.show();
L.m("Saving asset...");
final VolleyMultipartRequest request = new VolleyMultipartRequest(Request.Method.POST, getString(R.string.baseUrl) + "/asset", new Response.Listener<NetworkResponse>() {
@Override
public v... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getImage();",
"public BufferedImage getImage() {\n/* 81 */ return this.bufImg;\n/* */ }",
"String getImage();",
"private static Bitmap getImage(byte[] image) {\n /**\n * @brief convert from byte array to bitmap\n */\n return BitmapFactory.decodeByte... | [
"0.70703626",
"0.6956369",
"0.6797664",
"0.6786563",
"0.6687545",
"0.6670781",
"0.66379035",
"0.65739393",
"0.6557977",
"0.6549068",
"0.6540458",
"0.6540222",
"0.6538261",
"0.65078646",
"0.6504499",
"0.65014476",
"0.6483092",
"0.64657825",
"0.6465697",
"0.64445245",
"0.643060... | 0.0 | -1 |
This method is common for all realizations. It resets player's points to zero. | @Override
public final void disqualify(final int playerId) {
this.setPointsByPlayerId(playerId, 0);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void resetPoints() {\n points = 0;\n }",
"public void resetPlayer() {\n\t\tthis.carrotCards = 65;\n\t\tthis.playerSpace = 0;\n\n\t}",
"public void ResetPlayer() {\n\t\tfor (int i = 0; i < moveOrder.length; i++) {\n\t\t\tmoves.add(moveOrder[i]);\n\t\t}\n\t\tthis.X = 0;\n\t\tthis.Y = 0;\n\t\tthi... | [
"0.79330736",
"0.7298506",
"0.72326946",
"0.7099674",
"0.6993738",
"0.69407445",
"0.69286555",
"0.68734574",
"0.68470293",
"0.6832071",
"0.6789691",
"0.6778243",
"0.6771399",
"0.66867673",
"0.6658163",
"0.66539437",
"0.663454",
"0.6624452",
"0.6613017",
"0.6608346",
"0.658845... | 0.63931257 | 48 |
This method is for getting points of a player. | public final int getPointsByPlayerId(final int playerId) {
for (final Score score : this.scoreArray) {
if (score.getPlayerId() == playerId) {
return score.getPoints();
}
}
return 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getPoints ( Player player );",
"public Integer getPointsForPlayer(String playerName) {\r\n if (!points.containsKey(playerName))\r\n return null;\r\n return points.get(playerName);\r\n }",
"protected int getExperiencePoints(PlayerEntity player) {\n return super.getExp... | [
"0.8032643",
"0.7233089",
"0.7101748",
"0.7032083",
"0.7025918",
"0.70222336",
"0.7021375",
"0.68780214",
"0.68620056",
"0.6791307",
"0.6791307",
"0.678751",
"0.6778438",
"0.67461526",
"0.67331314",
"0.67078304",
"0.6699082",
"0.66975075",
"0.66975075",
"0.66975075",
"0.66975... | 0.62028074 | 69 |
This method sorts the list of players by points in descending order. | public abstract Score[] getScore(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private ArrayList<IPlayer> sortPlayerAfterPoints() {\n ArrayList<IPlayer> arrlist = new ArrayList<>();\n\n iPlayerList.entrySet().stream().map((pair) -> (IPlayer) pair.getValue()).forEachOrdered((ip) -> {\n arrlist.add(ip);\n });\n\n Collections.sort(arrlist, (IPlayer p1, IPl... | [
"0.8512184",
"0.7907272",
"0.69636583",
"0.68905914",
"0.6772796",
"0.64220995",
"0.6369992",
"0.6356218",
"0.6337947",
"0.6335449",
"0.6316056",
"0.62748384",
"0.6122125",
"0.61066973",
"0.59535515",
"0.593704",
"0.5914507",
"0.59107316",
"0.59045297",
"0.5865021",
"0.583816... | 0.0 | -1 |
This method returns the list of players. | public final Score[] getUnsortedScore() {
return this.scoreArray;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ListResponse<PlayerResponse> getPlayers() {\n\t\tcheckProvided();\n\t\treturn players;\n\t}",
"List<Player> getPlayers();",
"public List<Player> findAllPlayers(){\n\t\treturn playerRepository.findAll();\n\t}",
"@Override\n public List<Player> getPlayers() {\n return players;\n }",
"public List<... | [
"0.857499",
"0.8559041",
"0.8520206",
"0.84235895",
"0.8422687",
"0.8422687",
"0.83980006",
"0.8356277",
"0.8356193",
"0.8330178",
"0.83236855",
"0.83171654",
"0.8168551",
"0.8071186",
"0.8065578",
"0.8054073",
"0.8034849",
"0.80262494",
"0.8025467",
"0.80196744",
"0.80196744... | 0.0 | -1 |
This method sets points to player. | public final void setPointsByPlayerId(final int playerId, final int points) {
for (final Score score : this.scoreArray) {
if (score.getPlayerId() == playerId) {
score.setPoints(points);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n public void givePlayerPoints(int player, int plValuePosition, int points) {\r\n // Incrememnt player values by the points passed in\r\n this.players.get(player).\r\n changePlayerValueNumeric(plValuePosition, points);\r\n }",
"private void setPlayer()\t{\n\t\tgrid.... | [
"0.7417199",
"0.7061714",
"0.6976192",
"0.69535196",
"0.6904775",
"0.6788616",
"0.67756504",
"0.6758144",
"0.675778",
"0.6755314",
"0.67388004",
"0.67137516",
"0.67023146",
"0.66828936",
"0.66648257",
"0.6617799",
"0.6616432",
"0.660606",
"0.65919906",
"0.6577035",
"0.6508823... | 0.6323399 | 32 |
nothing to do here | @Override
public void beforeTextChanged(CharSequence s, int start, int count, int after) {
} | {
"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 grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\n\tprotected void interr()... | [
"0.63796103",
"0.6334971",
"0.63205105",
"0.6302668",
"0.62852556",
"0.6225275",
"0.6146525",
"0.6146525",
"0.6144452",
"0.60714036",
"0.6044127",
"0.6036487",
"0.6034698",
"0.6028312",
"0.6009376",
"0.60046643",
"0.6002409",
"0.59945714",
"0.5979857",
"0.59783345",
"0.597756... | 0.0 | -1 |
Borra el estado del Bean sobreescribiendo las propiedades del mismo con sus valores por defecto. | public void clearStatus(){
msgActionResult=null;
currentPasswordConfirmed = false;
password = "";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ObjetosBeans() {\n this.init();\n }",
"public PersonaBean() {\n domicilio = new Domicilio();\n telefono = new Telefono();\n correoElectronico = new CorreoElectronico();\n persona = new Persona();\n this.tipoOperacion = \"Alta\";\n\n }",
"@Override\r\n\t//I... | [
"0.65650547",
"0.64057475",
"0.63212436",
"0.6269319",
"0.6122994",
"0.60058504",
"0.5934088",
"0.58688766",
"0.58536536",
"0.5853307",
"0.5851491",
"0.5832997",
"0.5823117",
"0.5822541",
"0.5810664",
"0.5809974",
"0.5806562",
"0.5775784",
"0.577266",
"0.57508254",
"0.5732638... | 0.0 | -1 |
// // // // // // GETTERS & SETTERS // // // // // // | public String getPassword() {
return password;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void get() {}",
"@Override\r\n\tpublic void get() {\n\t\t\r\n\t}",
"public void get() {\n }",
"String setValue();",
"public void setdat()\n {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"public void setAge(int age) { this.age = age; }",
"@Test\r\n\tpublic ... | [
"0.67863923",
"0.67541206",
"0.64044684",
"0.62142867",
"0.6155047",
"0.61447954",
"0.61393034",
"0.6132739",
"0.61318946",
"0.61147976",
"0.6096064",
"0.60212004",
"0.5951063",
"0.5932159",
"0.59126157",
"0.59117204",
"0.59065354",
"0.5899997",
"0.589989",
"0.5888448",
"0.58... | 0.0 | -1 |
Metodo chiamato quando si verifica un eccezione | @Override
public void exceptionCaught(IoSession session, Throwable cause) throws Exception {
//Se eccezione SSL(e.g. handshake fallito, termino la connessione
if (cause instanceof SSLException) {
System.out.println("ECCEZIONE TLS SESSION " + session.getId());
session.close(tr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void verificar_que_se_halla_creado() {\n\t\t\n\t}",
"private boolean Verific() {\n\r\n\treturn true;\r\n\t}",
"@Override\n\tpublic boolean verificarCancelar() {\n\t\treturn true;\n\t}",
"public void sincronizza() {\n boolean abilita;\n\n super.sincronizza();\n\n try { // prova ad ... | [
"0.66837555",
"0.6477415",
"0.6448136",
"0.6411272",
"0.6408165",
"0.63731694",
"0.6361287",
"0.6344769",
"0.62514806",
"0.61700004",
"0.61267716",
"0.6101484",
"0.6096743",
"0.6061287",
"0.6050747",
"0.6048617",
"0.5995583",
"0.59820646",
"0.5981364",
"0.5963272",
"0.5961188... | 0.0 | -1 |
Chiamato quando arriva un messaggio | @Override
public void messageReceived(IoSession session, Object message) throws Exception {
Packet pacchetto = null;
try {
pacchetto = (Packet) message;
} catch (Exception ex) {
System.out.println("EXCEPTION Pacchetto non riconosciuto");
}
/* OPERAZION... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void stampaMessaggio(String messaggio);",
"public void afficherMessage();",
"@Override\n public void messageArrived(IChatMessage msg) {\n try { \n if (msg.getText().matches(\"JOIN .*\")) {\n //Obtenir el canal on s'ha unit.\n IChatChannel channel = ... | [
"0.70930564",
"0.70794284",
"0.6944108",
"0.6916962",
"0.6898128",
"0.6786609",
"0.671585",
"0.66659355",
"0.6641087",
"0.6632934",
"0.662391",
"0.660646",
"0.65884405",
"0.6582974",
"0.65602785",
"0.6539016",
"0.65161246",
"0.6513058",
"0.64927214",
"0.6472654",
"0.6460291",... | 0.6132406 | 45 |
Ottiene il vaccinato autenticato | private Vaccinato getAuthVaccinated(IoSession session) {
if (session != null) return (Vaccinato) session.getAttribute("vaccinato");
else return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void accionUsuario() {\n\t\t\r\n\t}",
"public VentanaPrincipal() {\n initComponents();\n editar = false;\n }",
"public void altaUsuario();",
"public Cgg_res_oficial_seguimiento_usuario(){}",
"protected void agregarUbicacion(){\n\n\n\n }",
"private DittaAutonoleggio(){\n ... | [
"0.6955136",
"0.66371554",
"0.65752894",
"0.6565052",
"0.65549177",
"0.6542372",
"0.64050335",
"0.6392996",
"0.6353196",
"0.63398975",
"0.6310922",
"0.6304127",
"0.6303001",
"0.6290228",
"0.6247307",
"0.6244798",
"0.6205296",
"0.6204907",
"0.6196801",
"0.61822397",
"0.6172397... | 0.0 | -1 |
TODO Autogenerated method stub | public static void main(String[] args) {
int[] arr={45,56,73,34,21};
System.out.println("정렬전 : ");
for(int i=0;i<5;i++){
System.out.print(arr[i]+" ");
}
System.out.println();
System.out.println("정렬후 : ");
for(int i=0;i<4;i++){
for(int j=i+1;j<5;j++){
if(arr[i]<arr[j]){
int te... | {
"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 |
IntStack no1 = new IntStack(); no1.push(10); no1.push(20); no1.push(30); no1.push(40); no1.push(50); System.out.println(no1.pop()); System.out.println(no1.pop()); System.out.println(no1.pop()); Output 50 40 30 | public static void main(String[] args) {
Person p1 = new Person("1", "Nishant");
Person p2 = new Person("2", "Nikhil");
PersonStack ps = new PersonStack();
ps.push(p1);
ps.push(p2);
System.out.println(ps.pop().toString());
System.out.println(ps.pop().toString());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static void stack_pop(Stack<Integer> stack)\r\n\t{\r\n\t\t\r\n\t\tSystem.out.print(\"Pop : \");\r\n\t\tfor(int i=0;i<5;i++)\r\n\t\t{\r\n\t\t\tInteger dataElement=(Integer)stack.pop();\r\n\t\t\tSystem.out.print(\" \"+ dataElement);\r\n\t\t\t\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t}",
"public static void main(... | [
"0.8389153",
"0.8355531",
"0.788679",
"0.7804555",
"0.77461874",
"0.7720008",
"0.7699178",
"0.7698796",
"0.76645064",
"0.76469874",
"0.7611217",
"0.7610851",
"0.7583652",
"0.75712085",
"0.7546682",
"0.7531877",
"0.7528509",
"0.7502759",
"0.7493656",
"0.7483978",
"0.74646527",... | 0.7120012 | 67 |
json representation of the Entity. | public JsonObject toJson(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String jsonify() {\n return gson.toJson(this);\n }",
"public String toJson() { return new Gson().toJson(this); }",
"public String toJson() {\n return JSON.getGson().toJson(this);\n }",
"public String toJson() {\n return JSON.getGson().toJson(this);\n }",
"public String toJson() {\n re... | [
"0.7159781",
"0.711396",
"0.7083751",
"0.7083751",
"0.7083751",
"0.7083751",
"0.7083751",
"0.7083751",
"0.7083751",
"0.7083751",
"0.7083751",
"0.7083751",
"0.70004886",
"0.6983412",
"0.6927577",
"0.690795",
"0.6888284",
"0.6821592",
"0.6817484",
"0.68144274",
"0.6795192",
"... | 0.5922829 | 94 |
Read the payload and show the result | public static void main(String[] args) throws IOException, ClassNotFoundException {
Payload payload = null;
try (FileInputStream fin = new FileInputStream(INPUT_FILE);
ObjectInputStream ois = new ObjectInputStream(fin);) {
payload = (Payload) ois.readObject();
System.out.println("Payload read successfully... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void readPayload() throws IOException {\n _data_stream.skipBytes(PushCacheProtocol.COMMAND_LEN);\n int rlen = _data_stream.readInt();\n if (rlen == 0) {\n return;\n }\n _text_buffer = new byte[rlen];\n int sofar = 0;\n int toread = rlen;\n ... | [
"0.6567893",
"0.6446882",
"0.6205054",
"0.6137868",
"0.6033718",
"0.6008646",
"0.59608227",
"0.58851594",
"0.58634967",
"0.58634967",
"0.5832493",
"0.58204323",
"0.58190936",
"0.57480377",
"0.5742387",
"0.5741042",
"0.5741042",
"0.56993216",
"0.5675143",
"0.5667588",
"0.56408... | 0.54035753 | 39 |
Creates a position 2d. | public Position2D(double x, double y) {
this.x = x;
this.y = y;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Position createPosition();",
"Position_Position createPosition_Position();",
"public Point2Dd () {\r\n x = 0;\r\n y = 0;\r\n }",
"public abstract Point2D getPosition();",
"private void CreaCoordinate(){\n \n this.punto = new Point(80, 80);\n \n }",
"public Vector2... | [
"0.7384593",
"0.6984336",
"0.69561374",
"0.6904413",
"0.67742723",
"0.67401844",
"0.66543233",
"0.66115916",
"0.6576259",
"0.6547382",
"0.6476616",
"0.6457236",
"0.64457935",
"0.64456874",
"0.6419174",
"0.63924336",
"0.6375407",
"0.63592845",
"0.6348657",
"0.6335586",
"0.6303... | 0.76138043 | 0 |
username password we would be sending information through a form | public static boolean login(Context ctx) {
String username = ctx.formParam("username");
String password = ctx.formParam("password");
System.out.println(username);
System.out.println(password);
if(username.equals("user") && password.equals("pass")) {
ctx.res.setStatus(204);
ctx.sessionAttribute(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void login() {\n AnonimoTO dati = new AnonimoTO();\n String username = usernameText.getText();\n String password = passwordText.getText();\n\n if (isValidInput(username, password)) {\n dati.username = username;\n dati.password = password;\n\n Com... | [
"0.7231357",
"0.7037279",
"0.7020391",
"0.69345504",
"0.6855498",
"0.6697263",
"0.66854435",
"0.66854435",
"0.66854435",
"0.66854435",
"0.66854435",
"0.66854435",
"0.66854435",
"0.66854435",
"0.66854435",
"0.66616184",
"0.66144943",
"0.6607131",
"0.6560049",
"0.6539534",
"0.6... | 0.0 | -1 |
A stateless server treats every request the same, independent of prior requests. | public static void main(String[] args) {
Javalin app = Javalin.create(config -> config.addStaticFiles(
staticFiles ->
{
staticFiles.directory = "/public";
}
)
).start(6001);
app.get("/", ctx -> ctx.html("hello!"));
app.post("/authenticate", ctx -> {login(ctx);} ); //Someone has ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static BiFunction<HttpServerRequest, HttpServerResponse, Publisher<Void>> serveSse() {\n Flux<Long> flux = Flux.interval(Duration.ofMillis(10));\n return (request, response) ->\n response.sse()\n .send(flux.map(in -> toByteBuf(UUID.randomUUID().toString()... | [
"0.60175145",
"0.60154706",
"0.5903902",
"0.5796321",
"0.57593024",
"0.57048756",
"0.5693276",
"0.56694686",
"0.5657029",
"0.5628387",
"0.5620586",
"0.560461",
"0.5595041",
"0.5589006",
"0.5566896",
"0.5533893",
"0.5498959",
"0.5488722",
"0.5483748",
"0.5453705",
"0.54491264"... | 0.49444723 | 89 |
Created by YJ on 2018/1/22. | public interface UserInfoService {
/**
* 查询用户信息
* @param id
* @return
*/
public User queryUserInfo(String id);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r... | [
"0.60138726",
"0.59727305",
"0.57377034",
"0.57364416",
"0.5700921",
"0.5700921",
"0.5633111",
"0.5613107",
"0.5607693",
"0.5579356",
"0.5576601",
"0.556329",
"0.5537278",
"0.5537278",
"0.5537278",
"0.5537278",
"0.5537278",
"0.5537278",
"0.5531461",
"0.55311984",
"0.55253935"... | 0.0 | -1 |
create a simple jpanel | public static void main(String[] args)
{
JPanel panel = new JPanel();
panel.setBackground(Color.BLUE);
panel.setMinimumSize(new Dimension(200,200));
// display the jpanel in a joptionpane dialog, using showMessageDialog
JFrame frame = new JFrame("JOptionPane showMessageDialog component exampl... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void crearPanel(){\n\n panel = new JPanel();\n this.getContentPane().add(panel);\n panel.setBackground(Color.CYAN);\n panel.setLayout(null);\n }",
"private void createpanel1() {\r\n\t\theader = new JLabel();\r\n\t\theader.setText(\"Type in Userinformation\");\r\n\t\theader.s... | [
"0.7941363",
"0.72974735",
"0.72772",
"0.7234879",
"0.7234879",
"0.72125053",
"0.7155671",
"0.713512",
"0.7125593",
"0.70264983",
"0.7024754",
"0.6971635",
"0.6960435",
"0.6944277",
"0.69222516",
"0.69146377",
"0.6907122",
"0.6893973",
"0.6886223",
"0.6886048",
"0.68234",
"... | 0.0 | -1 |
function that finds the maximum run of a string. initializing variables | public static int MaxRun(String userInput){
int maxRun = 1;
int currentRun = 0;
char lastLetter = userInput.charAt( 0 );
for (int count = 0; count < userInput.length(); count++){
//loop that loops until each character in string is done.
if (lastLetter == userInput.charAt(count)){
//adds... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static int maxRun(String str) {\n\t\tif(str.length() == 0) return 0;\n\t\tint max = 1, curLen = 1;\n\t\tchar lastChar = str.charAt(0);\n\t\tfor(int i = 1; i < str.length(); i++){\n\t\t\tif(str.charAt(i) == lastChar) {\n\t\t\t\tcurLen++;\n\t\t\t} else {\n\t\t\t\tlastChar = str.charAt(i);\n\t\t\t\tcurLen = 1;... | [
"0.821375",
"0.8108047",
"0.68893516",
"0.6700308",
"0.6672873",
"0.6606055",
"0.65875477",
"0.6564786",
"0.65338594",
"0.6522826",
"0.6490977",
"0.64837193",
"0.6479376",
"0.64488065",
"0.64008635",
"0.6390522",
"0.6390239",
"0.63752455",
"0.63694614",
"0.632733",
"0.6314685... | 0.74418145 | 2 |
/ access modifiers changed from: protected | public int getBorderColor() {
if (getFieldState() != BaseField.FieldState.ENABLE || !this.mEditText.hasFocus()) {
return super.getBorderColor();
}
return Color.parseColor("#394b65");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void prot() {\n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override... | [
"0.7375736",
"0.7042321",
"0.6922649",
"0.6909494",
"0.68470824",
"0.6830288",
"0.68062353",
"0.6583185",
"0.6539446",
"0.65011257",
"0.64917654",
"0.64917654",
"0.64733833",
"0.6438831",
"0.64330196",
"0.64330196",
"0.64295477",
"0.6426414",
"0.6420484",
"0.64083177",
"0.640... | 0.0 | -1 |
/ access modifiers changed from: protected | public float getBorderWidth() {
if (getFieldState() != BaseField.FieldState.ENABLE || !this.mEditText.hasFocus()) {
return super.getBorderWidth();
}
return 8.0f;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void prot() {\n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override... | [
"0.7375736",
"0.7042321",
"0.6922649",
"0.6909494",
"0.68470824",
"0.6830288",
"0.68062353",
"0.6583185",
"0.6539446",
"0.65011257",
"0.64917654",
"0.64917654",
"0.64733833",
"0.6438831",
"0.64330196",
"0.64330196",
"0.64295477",
"0.6426414",
"0.6420484",
"0.64083177",
"0.640... | 0.0 | -1 |
/ access modifiers changed from: protected | public void onLayout(boolean z, int i, int i2, int i3, int i4) {
float f = this.mFontSize * this.mDispDensity * this.mScale;
post(this);
this.mEditText.layout(0, 0, getWidth(), getHeight());
if (this.mFontSize > 0.0f) {
this.mEditText.setTextSize(f);
} else {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void prot() {\n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override... | [
"0.7375736",
"0.7042321",
"0.6922649",
"0.6909494",
"0.68470824",
"0.6830288",
"0.68062353",
"0.6583185",
"0.6539446",
"0.65011257",
"0.64917654",
"0.64917654",
"0.64733833",
"0.6438831",
"0.64330196",
"0.64330196",
"0.64295477",
"0.6426414",
"0.6420484",
"0.64083177",
"0.640... | 0.0 | -1 |
/ access modifiers changed from: protected | public void onDraw(Canvas canvas) {
super.onDraw(canvas);
if (this.mDefaultDrawingIsUsed) {
this.mPaint.setStyle(Paint.Style.FILL);
this.mPaint.setColor(getBackgroundColor());
Canvas canvas2 = canvas;
canvas2.drawRect(0.0f, 0.0f, (float) getWidth(), (float... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void prot() {\n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override... | [
"0.7375736",
"0.7042321",
"0.6922649",
"0.6909494",
"0.68470824",
"0.6830288",
"0.68062353",
"0.6583185",
"0.6539446",
"0.65011257",
"0.64917654",
"0.64917654",
"0.64733833",
"0.6438831",
"0.64330196",
"0.64330196",
"0.64295477",
"0.6426414",
"0.6420484",
"0.64083177",
"0.640... | 0.0 | -1 |
/ access modifiers changed from: protected | public boolean onTapUp(MotionEvent motionEvent) {
if (this.mListener != null && this.mListener.onClick(this)) {
return true;
}
runBasicAction();
return super.onTouchEvent(motionEvent);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void prot() {\n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override... | [
"0.7375736",
"0.7042321",
"0.6922649",
"0.6909494",
"0.68470824",
"0.6830288",
"0.68062353",
"0.6583185",
"0.6539446",
"0.65011257",
"0.64917654",
"0.64917654",
"0.64733833",
"0.6438831",
"0.64330196",
"0.64330196",
"0.64295477",
"0.6426414",
"0.6420484",
"0.64083177",
"0.640... | 0.0 | -1 |
/ access modifiers changed from: private | public void adjustTextSize(String str) {
int i;
int i2 = this.mMinTextSize;
int height = (this.mEditText.getHeight() - this.mEditText.getCompoundPaddingBottom()) - this.mEditText.getCompoundPaddingTop();
int width = (this.mEditText.getWidth() - this.mEditText.getCompoundPaddingLeft()) - ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private stendhal() {\n\t}",
"@Override\n protected void prot() {\n }",
"private Rekenhulp()\n\t{\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void func_104... | [
"0.70451087",
"0.66481936",
"0.66338545",
"0.6534467",
"0.6533057",
"0.63756114",
"0.6368523",
"0.63063055",
"0.6244554",
"0.62261415",
"0.62046665",
"0.61776316",
"0.6142759",
"0.6131381",
"0.6131381",
"0.61274433",
"0.610919",
"0.610797",
"0.60792845",
"0.6062989",
"0.60593... | 0.0 | -1 |
/ access modifiers changed from: protected | public void onSizeChanged(int i, int i2, int i3, int i4) {
EditText editText = this.mEditText;
editText.setText(editText.getText());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void prot() {\n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override... | [
"0.7375736",
"0.7042321",
"0.6922649",
"0.6909494",
"0.68470824",
"0.6830288",
"0.68062353",
"0.6583185",
"0.6539446",
"0.65011257",
"0.64917654",
"0.64917654",
"0.64733833",
"0.6438831",
"0.64330196",
"0.64330196",
"0.64295477",
"0.6426414",
"0.6420484",
"0.64083177",
"0.640... | 0.0 | -1 |
Do some stuff using a session before returning the result. The session is closed after the operation (could end in error). | List<T> fetch(Session session); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Session begin();",
"public void executeWithSession(AbstractSession session) {\n }",
"protected Session getSession() { return session; }",
"private Session fetchSession()\n\t{\n\t\t\tlog.info (\"******Fetching Hibernate Session\");\n\n\t\t\tSession session = HibernateFactory.currentSession();\n\n\t\t\tretu... | [
"0.6713578",
"0.6508264",
"0.6335961",
"0.6292658",
"0.6286879",
"0.6286477",
"0.6286477",
"0.6238156",
"0.6222646",
"0.61889446",
"0.61889446",
"0.61799145",
"0.6164042",
"0.6163716",
"0.61473197",
"0.6133186",
"0.61121553",
"0.60908836",
"0.606956",
"0.6063346",
"0.6063346"... | 0.5500416 | 77 |
/ 20220412: Main domain has changed from kamababa.com to kamababa.desi | @Override
public String rewriteHost(final String host) {
return this.rewriteHost(getPluginDomains(), host);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void changeDomain(String newDomain);",
"public static void refreshDomain()\n\t{\n\t API_APP_INFO = \"https://\"+DOMAIN+\"/api/a/iGET/app/oinfo?app_key=\";\n\t API_LOG_DEVICE_INFO = \"https://\"+DOMAIN+\"/api/a/POST/mobile/LogInstall?type=0\";\n\t API_GCM_REGISTER = \"https://\"+DOMAIN+\"/api/a/POST/Push/R... | [
"0.6327436",
"0.6118917",
"0.5970932",
"0.58628035",
"0.56276953",
"0.54666644",
"0.545162",
"0.5428522",
"0.53649974",
"0.53489244",
"0.5328171",
"0.5326675",
"0.53062236",
"0.52897495",
"0.528562",
"0.52613175",
"0.52443814",
"0.5178291",
"0.5132788",
"0.5120124",
"0.510892... | 0.55915844 | 5 |
TODO Autogenerated method stub | public boolean approveAppointment() {
Set <String> set=(HealthCareDAO.map).keySet();
int count=1;
for(String s:set)
{
System.out.println("You have a center "+map.get(s).getCenterName() +"--"+"Center and id is "+s);
count++;
}
System.out.println("Enter Center id :");
String str=scan.next();... | {
"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 | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
DataGetter getter = new DataGetter(DatabaseAccounts.PROJECT);
BoardViewRegisterBean boardcontent = getter.getBoardView(Integer.parseInt(request.getParameter("num")));
request.setAttribute("b... | {
"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 | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
DataGetter getter = new DataGetter(DatabaseAccounts.PROJECT);
System.out.println("BoardModify 서블릿으로 들어옴");
String studyName = (String) request.getAttribute("studyName");
int studyIndex = get... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | public static void main(String[] args) {
int i = 1;
do {
System.out.println("i = "+i);
i++;
}while(i<=10);
System.out.println("Outside the lopp");
/*
* do { System.out.println("i = "+i); i++;
*
* }while(true); System.out.println("Outside the loop");
*/
} | {
"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 |
/ access modifiers changed from: protected | public String getActualCriteria(GLState pGLState) {
return Build.MODEL;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void prot() {\n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override... | [
"0.7375736",
"0.7042321",
"0.6922649",
"0.6909494",
"0.68470824",
"0.6830288",
"0.68062353",
"0.6583185",
"0.6539446",
"0.65011257",
"0.64917654",
"0.64917654",
"0.64733833",
"0.6438831",
"0.64330196",
"0.64330196",
"0.64295477",
"0.6426414",
"0.6420484",
"0.64083177",
"0.640... | 0.0 | -1 |
TODO Autogenerated method stub | public static void main(String[] args) {
new Menu();
} | {
"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 actionPerformed(ActionEvent m) {
if(m.getSource()==test) {
System.out.println("Final test");
frame.dispose();
new FinalMenu();
}
if(m.getSource()==history) {
System.out.println("History");
frame.dispose();
new Sampleid();
}
if(m.getSource()==logout) {
int a=JOptionP... | {
"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 |
Get the channel for using the http connection | public Channel getChannel() throws ConnectException
{
return getChannel(null);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"SocketChannel getChannel();",
"java.lang.String getChannel();",
"protected Channel getChannel()\n {\n return mChannel;\n }",
"public Channel getChannel()\n {\n return channel;\n }",
"Channel channel() {\n return channel;\n }",
"@Override\n public int getChannel()\n {\n retu... | [
"0.75204355",
"0.73981816",
"0.72842175",
"0.7265881",
"0.72518027",
"0.70962965",
"0.7080786",
"0.70726866",
"0.7059956",
"0.7046256",
"0.7016991",
"0.7015092",
"0.6973394",
"0.6968245",
"0.6894513",
"0.68196577",
"0.67680746",
"0.67680746",
"0.6748005",
"0.6731142",
"0.6716... | 0.7090176 | 6 |
Get the channel for using the http connection | public Channel getChannel(Long timeout) throws ConnectException
{
if (channel == null && connectFuture != null) //first call after connection attempt
{
NettyHelper.awaitUninterruptibly(connectFuture, timeout);
if (!connectFuture.isSuccess())
{
ConnectException ce = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"SocketChannel getChannel();",
"java.lang.String getChannel();",
"protected Channel getChannel()\n {\n return mChannel;\n }",
"public Channel getChannel()\n {\n return channel;\n }",
"Channel channel() {\n return channel;\n }",
"@Override\n public int getChannel()\n {\n retu... | [
"0.75204355",
"0.73981816",
"0.72842175",
"0.7265881",
"0.72518027",
"0.70962965",
"0.7090176",
"0.7080786",
"0.70726866",
"0.7059956",
"0.7046256",
"0.7016991",
"0.7015092",
"0.6973394",
"0.6968245",
"0.6894513",
"0.68196577",
"0.67680746",
"0.67680746",
"0.6748005",
"0.6731... | 0.63906616 | 35 |
Signal an invocation has been done using the current connection, but we're going on using it. | public void goOn(Map<String, Object> metadata, Map<String, Object> headers)
{
checkKeepAliveHeaders(metadata, headers);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void synchronizationDone() {\n }",
"public void onConnectionClosed() {\r\n\t\tcurrentConnections.decrementAndGet();\r\n\t}",
"default void afterInvocation() {\n afterInvocation(false);\n }",
"void complete() {\n try {\n try {\n subscriber.on... | [
"0.58663607",
"0.56956446",
"0.56860805",
"0.5673806",
"0.56494415",
"0.5576854",
"0.55464154",
"0.5511743",
"0.55099726",
"0.5492747",
"0.54656327",
"0.5457242",
"0.53689843",
"0.53603584",
"0.53562564",
"0.5352879",
"0.53495604",
"0.534264",
"0.5315473",
"0.53068453",
"0.52... | 0.0 | -1 |
Signal end of processing for the current connection. The transport handler either goes to the idle cache or is closed depending on the number of keep alive connections left (and this being a keepalive connection or not, of course) | public void finished(Map<String, Object> metadata, Map<String, Object> headers)
{
checkKeepAliveHeaders(metadata, headers);
keepAliveConnections--;
if (keepAliveConnections > 0 && isKeepingAlive())
{
/* This connection is keepingAlive && still valid.
* Return it to the cach... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void connectionClosed() {}",
"protected void onEndOfStream()\n {\n synchronized (f_aBuffSingleInbound)\n {\n synchronized (f_aBuffSingleOutbound)\n {\n if (f_engine.getSession().isValid())\n {\n try\... | [
"0.6641677",
"0.65626097",
"0.64595914",
"0.64450306",
"0.63610363",
"0.6336957",
"0.63239485",
"0.63127947",
"0.6271321",
"0.6201005",
"0.6120685",
"0.60896033",
"0.6036569",
"0.5909492",
"0.5907427",
"0.5890965",
"0.5862087",
"0.58325386",
"0.58325386",
"0.58325386",
"0.583... | 0.60413206 | 12 |
Update the keepalive status according to the received message's headers. | protected void checkKeepAliveHeaders(Map<String, Object> metadata, Map<String, Object> headers)
{
if (headers == null || metadata == null) return;
keepAliveConnections = -1;
keepAliveTimeout = 0;
try
{
String connectionHeader = NettyHelper.getFirstHeaderAsString(headers, HttpHe... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setKeepalive (boolean keepalive) {\n\tthis.keepalive = (this.keepalive && keepalive);\n }",
"private void sendKeepAlive() {\n\t\tlong now = new java.util.Date().getTime() / 1000;\n\t\tif (now - lastKeepAlive > properties.getInt(\"keepAliveInterval\")) {\n\t\t\tfsmTeacher.handleAction(\"tap%\" + pr... | [
"0.6611772",
"0.63165283",
"0.62297565",
"0.6088016",
"0.6085068",
"0.6021859",
"0.5801056",
"0.57799894",
"0.5729048",
"0.5710498",
"0.5649066",
"0.5627488",
"0.5545224",
"0.5478758",
"0.53909594",
"0.5324862",
"0.5295354",
"0.52831876",
"0.5240867",
"0.51940906",
"0.5151193... | 0.6703792 | 0 |
End the transport handler, closing the underlying connection. | public void end()
{
keepingAlive = false;
if (channel == null)
{
channel = connectFuture.getChannel();
connectFuture.cancel();
}
if (channel != null)
{
channel.close();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void handleMqttEndpointClose() {\n\n if (this.mqttEndpointCloseHandler != null) {\n this.mqttEndpointCloseHandler.handle(this);\n }\n }",
"public boolean endConnection() throws CommunicationException;",
"protected void onEndOfStream()\n {\n synchronized (f_aBuf... | [
"0.6466068",
"0.64284205",
"0.63952297",
"0.6227621",
"0.6220465",
"0.61671853",
"0.6158467",
"0.6141405",
"0.6137196",
"0.61263955",
"0.6115011",
"0.61080897",
"0.6073702",
"0.6071378",
"0.6028089",
"0.60279006",
"0.60279006",
"0.60279006",
"0.60279006",
"0.5996354",
"0.5996... | 0.6718854 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.