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 |
|---|---|---|---|---|---|---|
Change the location of the light | public void setLightLocation(double x, double y){
lightSource[0] = x * lightScale;
lightSource[1] = y * lightScale;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void updateLight() {\r\n\t}",
"private void updateSpotLight() {\n\t\tfloat light0_position[] = { player.getPosition().x, 16.0f, player.getPosition().z, 1.0f }; // x,y,z,1\n\t\tfloat light0_diff_spec[] = { 1f, 1f, 1f, 1.0f };\n\t\tfloat light0_direction[] = {-(float)Math.sin(Math.toRadians(player.getRotY(... | [
"0.7310397",
"0.71247214",
"0.6966459",
"0.67792404",
"0.6740204",
"0.66913295",
"0.64302325",
"0.6398514",
"0.6317073",
"0.6292832",
"0.62330264",
"0.62037474",
"0.6174168",
"0.61696243",
"0.6157043",
"0.61552066",
"0.6098525",
"0.60964406",
"0.60895413",
"0.6085842",
"0.608... | 0.69199955 | 3 |
In class local.java.excercise.composition.EntityGenerator create methods: public static Employee generateEmployee() public static Department generateDepartment(int employees) public static Company generateCompany(List departmentEmployees) These methods must generate and return random entity objects. To fill fields Empl... | @Test
public void testGenerateCompany() throws Exception {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void generate(Object entity) throws AAException;",
"@Override\n public void seedData() throws EmployeeCreationException, DepartmentCreationException {\n\n }",
"protected abstract void generate();",
"public abstract void generate();",
"public void generate(Object entity, Context ormContext) thr... | [
"0.64042497",
"0.6194068",
"0.6170844",
"0.6067793",
"0.6038866",
"0.6003843",
"0.59656274",
"0.5857136",
"0.56760997",
"0.56473947",
"0.5646487",
"0.56415",
"0.56330484",
"0.56095016",
"0.5547087",
"0.55099356",
"0.54897255",
"0.54882234",
"0.54870933",
"0.5485171",
"0.54820... | 0.6238681 | 1 |
Using generation method from previous test generate 2+ companies with 3+ departments with 4+ employees in each. Make sure that all companies are unique. Make sure that no employee is working in both companies. | @Test
public void testGenerateAndValidateCompanyUniqueness() throws Exception {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void fillCompanies() {\n\t\tString constant=indentation+\"- Empresa: \"; //Creo esta variable, ya que la voy a usar varias veces y me ahorra tiempo\n\t\twhile (company1.equals(company2) || company2.equals(company3) || company1.equals(company3)) { //Si los nombres son iguales vuelve a asignar nombres\... | [
"0.6399411",
"0.6335588",
"0.6300264",
"0.6198835",
"0.5866263",
"0.5835842",
"0.5706247",
"0.5679544",
"0.560057",
"0.558078",
"0.5575944",
"0.5518519",
"0.5503313",
"0.55026937",
"0.5498493",
"0.54723024",
"0.54482913",
"0.5426617",
"0.53898335",
"0.53851867",
"0.5351346",
... | 0.58825076 | 4 |
Constructor de la clase que crea el array y lo inicializa a MAX_CLIENTES | public Clientes() {
clientes = new Cliente[MAX_CLIENTES];
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public BaseArray(int max) // constructor\n {\n a = new long[max]; // create the array\n nElems = 0; // no items yet\n }",
"public DArray (int max)\n // constructor\n {\n theArray = new long[max];\n // create array\n nElems = 0;\n ... | [
"0.7345515",
"0.713159",
"0.7018099",
"0.70121145",
"0.6968513",
"0.67758274",
"0.66729575",
"0.6662274",
"0.66438496",
"0.6643728",
"0.6604538",
"0.6601352",
"0.6541214",
"0.6503784",
"0.64621204",
"0.64584535",
"0.6430279",
"0.6361539",
"0.63523835",
"0.6259794",
"0.6196667... | 0.6714066 | 6 |
method which adds an item to to the existing list of bigrams for each token. | public boolean addGram(Token t){
return grams.add(t);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void addItem(Collectable item){\n \tif (!(item instanceof Token)) {\n \t\titems.add(item);\n \t}\n }",
"public void add(ArrayList<String> phrase) {\t\t\r\n\t\tfor (int i = 0 ; i < phrase.size(); i++) {\r\n\t\t\tWordTrieNode cur = root;\r\n\t\t\tfor (int j = i; j < phrase.size(); j++) {\r\n\t\t... | [
"0.5942943",
"0.5789434",
"0.5546916",
"0.54402965",
"0.5340944",
"0.5317459",
"0.5289974",
"0.5259916",
"0.52383876",
"0.52356994",
"0.52329856",
"0.5217128",
"0.5206934",
"0.5205786",
"0.51856035",
"0.5177343",
"0.5118005",
"0.5109972",
"0.5096072",
"0.5066119",
"0.5064943"... | 0.6363878 | 0 |
Changes the state of the cell from Hidden to Revealed. | @Override
public boolean select() {
cell.setState(cell.getRevealedState());
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void visibility(boolean state){ this.table.setVisible(state);}",
"public void toggle()\n\t{\n\t\tsetVisible(!this.isShowing());\n\t}",
"public void hide() {\n visible=false;\n }",
"public void hide() {\n hidden = true;\n }",
"public void setHidden(Boolean hidden){\n m_hidden = h... | [
"0.69057584",
"0.6680393",
"0.65780747",
"0.65725154",
"0.6540575",
"0.6531285",
"0.6483487",
"0.6471022",
"0.64024705",
"0.64024705",
"0.6061678",
"0.60512733",
"0.6043943",
"0.6013494",
"0.60003763",
"0.5981749",
"0.59665823",
"0.59495497",
"0.59299225",
"0.59299225",
"0.59... | 0.574232 | 85 |
Changes the state of the cell from Hidden to Flagged. | @Override
public boolean flag() {
cell.setState(cell.getFlaggedState());
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setHidden(boolean value) {\r\n this.hidden = value;\r\n }",
"public void setHidden(Boolean hidden){\n m_hidden = hidden;\n }",
"public void visibility(boolean state){ this.table.setVisible(state);}",
"public void setHidden(Integer hidden) {\n this.hidden = hidden;\n ... | [
"0.7170241",
"0.7081775",
"0.70159304",
"0.68791246",
"0.68791246",
"0.66089696",
"0.6527716",
"0.65010166",
"0.6441807",
"0.6399313",
"0.63829803",
"0.63727313",
"0.6331657",
"0.62917644",
"0.62789845",
"0.62724185",
"0.61957574",
"0.61607504",
"0.6156387",
"0.61353767",
"0.... | 0.6399018 | 10 |
Returns the contents of the cell in String form | @Override
public String toString() {
return "H";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String toString() {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (byte m = 0; m < 9; m++) {\n\t\t\tfor (byte n = 0; n < 9; n++) {\n\t\t\t\tsb.append(cells[m][n].getValue());\n\t\t\t}\n\t\t}\n\t\treturn sb.toString();\n\t}",
"public static String getCellStringData(int rowNum, int cellNum){\n St... | [
"0.7435135",
"0.73900473",
"0.72823024",
"0.72260576",
"0.7202442",
"0.70578074",
"0.6893564",
"0.68798375",
"0.6872649",
"0.6852751",
"0.6852751",
"0.6820621",
"0.677157",
"0.67323875",
"0.67286205",
"0.67189217",
"0.6710236",
"0.6697786",
"0.66266054",
"0.6617446",
"0.66086... | 0.0 | -1 |
Simply log that its a dummy user | public void removeRole(String roleName) throws UnsupportedOperationException {
log.debug("User [ Anonymous ] has no roles");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void logUser() {\n }",
"private void loggedInUser() {\n\t\t\n\t}",
"private void checkUser() {\n\t\tloginUser = mySessionInfo.getCurrentUser();\n\t}",
"@Override\n\tpublic void loginUser() {\n\t\t\n\t}",
"@Test\n public void loginAsEmptyUser(){\n Assert.assertEquals(createUserChecking.... | [
"0.7390006",
"0.7047828",
"0.69442284",
"0.64865553",
"0.64074403",
"0.63817924",
"0.63059807",
"0.62940234",
"0.62690467",
"0.6223368",
"0.6214422",
"0.6185515",
"0.6175245",
"0.6116267",
"0.6110905",
"0.6063717",
"0.60578275",
"0.6055621",
"0.6043499",
"0.60213244",
"0.6021... | 0.0 | -1 |
Simply log that its a dummy user | public void addRole(String roleName) throws UnsupportedOperationException {
log.debug("No roles can be attached to user [ Anonymous ]");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void logUser() {\n }",
"private void loggedInUser() {\n\t\t\n\t}",
"private void checkUser() {\n\t\tloginUser = mySessionInfo.getCurrentUser();\n\t}",
"@Override\n\tpublic void loginUser() {\n\t\t\n\t}",
"@Test\n public void loginAsEmptyUser(){\n Assert.assertEquals(createUserChecking.... | [
"0.7390006",
"0.7047828",
"0.69442284",
"0.64865553",
"0.64074403",
"0.63817924",
"0.63059807",
"0.62940234",
"0.62690467",
"0.6223368",
"0.6214422",
"0.6185515",
"0.6175245",
"0.6116267",
"0.6110905",
"0.6063717",
"0.60578275",
"0.6055621",
"0.6043499",
"0.60213244",
"0.6021... | 0.0 | -1 |
Is this user in a specified group? | public boolean inGroup(String groupName) {
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isUserInGroup(long idUser, long idGroup);",
"public boolean inGroup(String groupName);",
"@Override\n public boolean inGroup(String worldName, String playerName, String groupName) {\n try {\n PermissionUser[] userList = PermissionsEx.getPermissionManager().getGroup(groupName... | [
"0.8837336",
"0.77125365",
"0.744434",
"0.7371649",
"0.7370598",
"0.72471815",
"0.68864554",
"0.6885269",
"0.6827048",
"0.6741536",
"0.66291124",
"0.6571837",
"0.65403247",
"0.6537048",
"0.6517519",
"0.6506687",
"0.64557976",
"0.6365329",
"0.63638294",
"0.63445306",
"0.633807... | 0.7453548 | 2 |
Remove a group. Implementation is optional | public void removeGroup(String groupName) throws UnsupportedOperationException {
log.debug("User [ Anonymous ] has no groups");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void removeGroup(int groupId);",
"void remove(String group, String name);",
"void remove(String group);",
"public void deleteGroup(Group group);",
"Result deleteGroup(String group);",
"public void removeFromGroup () throws PPException{\n\t\tif (PPNative.Unit_SetGroup (id, -1) == -1)\n\t\t\tthrow n... | [
"0.8554671",
"0.8466284",
"0.84311134",
"0.8330696",
"0.80499643",
"0.79605454",
"0.7861502",
"0.7590275",
"0.7590275",
"0.7328526",
"0.7281179",
"0.72068197",
"0.7184867",
"0.711786",
"0.708054",
"0.705707",
"0.7019346",
"0.7018992",
"0.6990536",
"0.68704575",
"0.68188316",
... | 0.6713303 | 23 |
Adds this user to a group. Implementation is optional | public void addGroup(String groupName) throws UnsupportedOperationException {
log.debug("No groups can be attached to user [ Anonymous ]");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void addUserToGroup(final String userId, final String groupId);",
"void addUser(String parUsername, String parGroup)\n {\n if (getUserGroup(parUsername) == null)\n {\n users.put(parUsername, parGroup);\n }\n }",
"User addMember(final User user, GroupAssociation groupAssoci... | [
"0.77537656",
"0.71556985",
"0.6976633",
"0.69715214",
"0.6737799",
"0.6735197",
"0.67248917",
"0.669807",
"0.66386974",
"0.66227746",
"0.65915453",
"0.65698296",
"0.656031",
"0.65465796",
"0.65465796",
"0.6523084",
"0.6435719",
"0.643317",
"0.62750715",
"0.6266316",
"0.62435... | 0.63822496 | 18 |
Lookup entity type id for code. | public Integer getEntityTypeId() {
// get entity type code
String code = getEntityTypeCode();
// check cache, (may contain null)
if (entityTypeIdCache.containsKey(code)) {
return entityTypeIdCache.get(code);
}
// query, cache, and return metadata driven ids
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"long getCodeId();",
"long getCodeId();",
"long getCodeId();",
"public static UpdateModuleType codeOf(Object code) {\n if (code == null) { return null; }\n if (code instanceof UpdateModuleType) { return (UpdateModuleType)code; }\n return _codeValueMap.get(code.toString().toLow... | [
"0.6976925",
"0.6976925",
"0.6976925",
"0.62339175",
"0.6182142",
"0.6115761",
"0.60239965",
"0.6020044",
"0.60156226",
"0.59896046",
"0.59820276",
"0.5886927",
"0.5883757",
"0.5883757",
"0.5883757",
"0.5883757",
"0.5863461",
"0.58613217",
"0.58336115",
"0.58336115",
"0.58336... | 0.74168175 | 0 |
/ all methods below are delegated to a method by the same name in the PropertyManager object | public Object getDynamicProperty(String propertyName)
{
if (propertyValues == null)
{
return null;
}
PropertyValue propVal = null;
Iterator it = propertyValues.iterator();
while (it.hasNext())
{
propVal = (PropertyValue)it.next();
if (propVal.getName().equalsIgnoreCase(property... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface PropertyManager extends Manager {\n\t/**\n\t * The attribute \"attr\" has been added (instantiated for the first time).\n\t * \n\t * @param component\n\t * . The component (Spec, Implem, Instance) holding that\n\t * attribute.\n\t * @param attr\n\t * . The attribut... | [
"0.6991442",
"0.65559125",
"0.65391994",
"0.65314907",
"0.644924",
"0.64110726",
"0.6410901",
"0.6398956",
"0.6336203",
"0.6308059",
"0.6298358",
"0.6298358",
"0.6287814",
"0.6251528",
"0.6238567",
"0.62179303",
"0.6183367",
"0.6178183",
"0.6121931",
"0.6121931",
"0.6121931",... | 0.0 | -1 |
Override in individual entity classes | public abstract List<PropertyType> getBuiltInProperties(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void resetEntitySubClass ()\n {\n super.resetEntitySubClass ();\n }",
"@Override\n protected final void resetEntitySubClass ()\n {\n super.resetEntitySubClass ();\n }",
"@Override\n public Entity getEntity() {\n return super.getEntity();\n }",
"@Override\n pu... | [
"0.7077555",
"0.6966748",
"0.6804617",
"0.6747223",
"0.67128676",
"0.66322964",
"0.64797074",
"0.6469509",
"0.6464743",
"0.64452094",
"0.64353824",
"0.64103436",
"0.6345134",
"0.6336122",
"0.6291274",
"0.62852514",
"0.6274499",
"0.6252444",
"0.62445027",
"0.62438583",
"0.6214... | 0.0 | -1 |
saves the build information xml file. | @TaskAction
public void executeAction() {
try {
String xml = instantRunBuildContext.toXml();
if (logger.isEnabled(LogLevel.DEBUG)) {
logger.debug("build-id $1$l, build-info.xml : %2$s",
instantRunBuildContext.getBuildId(), xml);
}
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void save() {\n Game.save(UI.askNgetString(\"Filename for this save file?\")+\".xml\");\n }",
"public void save() {\n JAXB.marshal(this, new File(fileName));\n }",
"private void xmlSave() {\r\n FileDialog fd = new FileDialog(new Frame(), \r\n ... | [
"0.6860514",
"0.6794111",
"0.67496234",
"0.6619902",
"0.6328334",
"0.62821716",
"0.6239696",
"0.6159431",
"0.6149895",
"0.61300814",
"0.61082804",
"0.60775954",
"0.60640174",
"0.6062985",
"0.6044917",
"0.6013458",
"0.6012095",
"0.59936565",
"0.59818625",
"0.59784627",
"0.5967... | 0.6808766 | 1 |
Created by Administrator on 2016/12/17 0017. | public interface NewsTypeService {
/**
* 获取新闻类别列表
*
* @param news
* @return
*/
List<NewsType> selectByNewsType(News news);
/**
* 根据typeId查找
*
* @param news
* @return
*/
NewsType selectByNewsTypeId(News news);
NewsType getNesTypeById(NewsType newsT... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private stendhal() {\n\t}",
"public final void mo51373a() {\n }",
"public void mo38117a() {\n }",
"@Override\n public void perish() {\n \n }",
"public void mo4359a() {\n }",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\... | [
"0.6058129",
"0.59794307",
"0.5963873",
"0.59328187",
"0.5862094",
"0.58310467",
"0.580096",
"0.5795824",
"0.5777548",
"0.5777548",
"0.5777548",
"0.5777548",
"0.5777548",
"0.5777548",
"0.5777548",
"0.57630193",
"0.5740263",
"0.5739698",
"0.57380337",
"0.5713487",
"0.5705759",... | 0.0 | -1 |
Returns teh difference betweens successive points | public static List<DataPoint> rate(Collection<? extends DataPoint> points, Duration unit) {
double unitMillis = unit.toMillis();
return combineNeighbors(points, (first, second) -> {
double diff = second.getValue() - first.getValue();
double timeDiff = second.getTime() - first.get... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int differencePoints(){\n return player1Score - player2Score;\n }",
"public static double diff() {\n System.out.println(\"Enter minuend\");\n double a = getNumber();\n System.out.println(\"Enter subtrahend\");\n double b = getNumber();\n\n return a - b;\n }"... | [
"0.6914698",
"0.6738221",
"0.6708733",
"0.6544267",
"0.65125895",
"0.6444957",
"0.63609797",
"0.63150036",
"0.63120186",
"0.6155968",
"0.6154703",
"0.6122453",
"0.6094403",
"0.6093543",
"0.60872173",
"0.60836256",
"0.60320085",
"0.5966159",
"0.5929102",
"0.59268653",
"0.59043... | 0.0 | -1 |
Called when a drag starts on a given component. Packs whatever data should be dragged into a transferable. | @Override
protected Transferable createTransferable(JComponent c)
{
System.out.println("createTransferable called from " + c);
if (c instanceof ProjectTree)
{
ProjectTree tree = (ProjectTree)c;
return tree.createTransferable();
}
else if (c instanc... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface DragSource\n{\n\t/*********************************************************************************************************************\n <b>Description</b>: Gets the components to register drag events on.\n\n <br><b>Notes</b>:<br>\n\t - The vector must only contain java.awt.Com... | [
"0.6728898",
"0.6690886",
"0.6458666",
"0.6449406",
"0.642388",
"0.6408887",
"0.64018595",
"0.63095826",
"0.62481534",
"0.6210907",
"0.6198068",
"0.61915845",
"0.61911225",
"0.6120707",
"0.60965496",
"0.6068226",
"0.60527104",
"0.60390466",
"0.60351926",
"0.59996665",
"0.5996... | 0.0 | -1 |
System.out.println("TreeTransferHandler.getSourceActions " + c); | @Override
public int getSourceActions(JComponent c)
{
return COPY_OR_MOVE;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getSourceActions(JComponent c)\n {\n return dropEnabled ? COPY_OR_MOVE : COPY;\n }",
"@Override\n public String getActions() {\n\treturn \"\";\n }",
"public String[] getActions() {\n return impl.getActions();\n }",
"public List<Action> getActions(){return actions;}",
"public... | [
"0.6064771",
"0.58264947",
"0.56392294",
"0.5634318",
"0.5613923",
"0.5581508",
"0.5581508",
"0.5545459",
"0.5545459",
"0.5545459",
"0.5545459",
"0.5545459",
"0.5545459",
"0.5545459",
"0.5545459",
"0.5545459",
"0.5545459",
"0.5545459",
"0.5545459",
"0.5545459",
"0.5545459",
... | 0.598201 | 1 |
System.out.println("TreeTransferHandler.exportDone: from " + source); | @Override
protected void exportDone(JComponent source,
Transferable data,
int action)
{
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void exportDone(JComponent src,\n\t\t\t Transferable data, \n\t\t\t int action)\n {\n\tindices = null;\n\tcount = 0;\n }",
"protected void actionPerformedExport ()\n {\n Preferences root = Preferences.userRoot ();\n Preferences node = root.node (OpenMarkovPreferences.OP... | [
"0.57914394",
"0.57865566",
"0.5606277",
"0.559426",
"0.5491898",
"0.5446865",
"0.54449296",
"0.5414413",
"0.5393221",
"0.53309786",
"0.53130245",
"0.53099823",
"0.5290745",
"0.5278715",
"0.52749646",
"0.52638215",
"0.52527994",
"0.52483004",
"0.52352095",
"0.5225106",
"0.521... | 0.61705637 | 0 |
no te preocupes del tipo, los nuevos instrument1os funcionaran perfectamente: | static void afinar(Instrument1 i) { i.play(Note.MIDDLE_C); } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void ingresaVehiculo (){\r\n \r\n Vehicle skate = new Skateboard(\"vanz\", \"2009\", \"1 metro\");\r\n Vehicle carro = new Car(\"renault\", \"2009\", \"disel\",\"corriente\" );\r\n Vehicle jet = new Jet(\"jet\", \"2019\", \"premiun\", \"ocho motores\");\r\n Vehicle cicla = new Bicy... | [
"0.57844204",
"0.5672994",
"0.5634121",
"0.55701345",
"0.55631924",
"0.5537553",
"0.5532642",
"0.55285347",
"0.55205643",
"0.5502513",
"0.54871553",
"0.5476459",
"0.54420906",
"0.54376656",
"0.5422827",
"0.5421011",
"0.5406333",
"0.5405724",
"0.53867054",
"0.53828704",
"0.536... | 0.0 | -1 |
Initialize your data structure here. | public InsertDeleteGetRandomO1() {
_list = new ArrayList<>();
_map = new HashMap<>();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void initData() {\n }",
"private void initData() {\n\t}",
"private void initData() {\n\n }",
"public void initData() {\n }",
"public void initData() {\n }",
"@Override\n\tpublic void initData() {\n\n\n\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\... | [
"0.79946685",
"0.7973242",
"0.7808862",
"0.77763873",
"0.77763873",
"0.7643394",
"0.76371324",
"0.76371324",
"0.76371324",
"0.76371324",
"0.76371324",
"0.76371324",
"0.75553316",
"0.7543321",
"0.7543321",
"0.75426376",
"0.75426376",
"0.75426376",
"0.7532583",
"0.75228804",
"0... | 0.0 | -1 |
Inserts a value to the set. Returns true if the set did not already contain the specified element. | public boolean insert(int val) {
boolean contain = _map.containsKey(val);
if ( contain ) return false;
_map.put( val, _list.size());
_list.add(val);
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean insert(int val) {\r\n return set.add(val);\r\n }",
"public boolean insert(int val) {\n if (!set.contains(val)) {\n set.add(val);\n return true;\n } else return false;\n }",
"public boolean insert(int val) {\n if (set.containsKey(val)) r... | [
"0.74488866",
"0.7446365",
"0.7159644",
"0.68821186",
"0.6788184",
"0.6713711",
"0.66393715",
"0.6587831",
"0.6519979",
"0.64809614",
"0.64619744",
"0.6432177",
"0.64213306",
"0.64108604",
"0.64054376",
"0.63883334",
"0.63450444",
"0.6336638",
"0.63300765",
"0.6307802",
"0.62... | 0.6527467 | 8 |
Removes a value from the set. Returns true if the set contained the specified element. | public boolean remove(int val) {
boolean contain = _map.containsKey(val);
if ( ! contain ) return false;
int loc = _map.get(val);
if (loc < _list.size() - 1 ) { // not the last one than swap the last one with this val
int lastone = _list.get(_list.size() - 1 );
_list.set( loc , lastone );
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean remove(int val) {\n if (set.contains(val)) {\n set.remove(val);\n return true;\n } else return false;\n }",
"public boolean remove(int val) {\r\n return set.remove(val);\r\n }",
"public boolean remove(Object value)\r\n {\r\n if (!contains(valu... | [
"0.73536336",
"0.7337537",
"0.68661743",
"0.68512434",
"0.68097264",
"0.67975914",
"0.67905724",
"0.66934174",
"0.6662184",
"0.6625957",
"0.6590175",
"0.65636146",
"0.6535152",
"0.6472745",
"0.6424232",
"0.6418782",
"0.6387345",
"0.63820505",
"0.6301452",
"0.62993807",
"0.628... | 0.61951345 | 30 |
Get a random element from the set. | public int getRandom() {
return _list.get( rand.nextInt(_list.size()) );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getRandom() {\n int idx;\n Random rand;\n \n rand = new Random();\n idx = rand.nextInt(set.size());\n return set.get(idx);\n }",
"public int getRandom() {\r\n var list = new ArrayList<>(set);\r\n return list.get(new Random().nextInt(set.size()... | [
"0.791835",
"0.7723838",
"0.73558825",
"0.73073596",
"0.7299999",
"0.7125759",
"0.7075432",
"0.70544857",
"0.7021675",
"0.70010036",
"0.6924541",
"0.68527114",
"0.6841163",
"0.6808583",
"0.67908883",
"0.67675084",
"0.669298",
"0.667805",
"0.6653935",
"0.6647121",
"0.66271675"... | 0.6632087 | 20 |
Random rnd = new Random(); int color = Color.rgb(rnd.nextInt(255), rnd.nextInt(255), rnd.nextInt(255)); | public View makeView() {
TextView myText = new TextView(RandomAlphabetActivity.this);
myText.setLayoutParams(new FrameLayout.LayoutParams(FrameLayout.LayoutParams.FILL_PARENT, FrameLayout.LayoutParams.FILL_PARENT));
myText.setGravity(Gravity.CENTER_VERTICAL | Gravity.CENTER_HORI... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void makeRandColor(){}",
"public static Color RandomColor(){\n\t\n\tRandom rand = new Random();\n\tint red, green, blue;\n\tred = rand.nextInt(255);\n\tgreen = rand.nextInt(255);\n\tblue = rand.nextInt(255);\n\t\n\tColor color = new Color(red,green,blue);\n\treturn color;\n\t\n\t}",
"public static Color... | [
"0.8230236",
"0.82293713",
"0.8223463",
"0.81968826",
"0.8193011",
"0.8001756",
"0.7954756",
"0.79177034",
"0.7819206",
"0.7807235",
"0.7771616",
"0.7731448",
"0.7602136",
"0.7567707",
"0.7435645",
"0.7354589",
"0.7304355",
"0.729506",
"0.72916996",
"0.7273721",
"0.7232653",
... | 0.0 | -1 |
TODO Autogenerated method stub | @Transactional(readOnly = true)
public SubredditDto getSubreddit(Long id) {
Subreddit subreddit = subredditRepository.findById(id)
.orElseThrow(() -> new SpringRedditException("No Subreddit found with id - " + id));
return subredditMapper.mapSubredditToDto(subreddit);
} | {
"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 |
Creates a new instance of Phl | public Phl() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void createPhilosophers() {\n\t\tphil1 = new Philosopher(1,stick1,stick2);\n\t\tphil2 = new Philosopher(2,stick2,stick3);\n\t\tphil3 = new Philosopher(3,stick3,stick4);\n\t\tphil4 = new Philosopher(4,stick4,stick5);\n\t\tphil5 = new Philosopher(5,stick5,stick1);\n\t}",
"public Plato(){\n\t\t\n\t}",
"pub... | [
"0.5827536",
"0.54765767",
"0.5441203",
"0.54124165",
"0.5388656",
"0.53626937",
"0.5362307",
"0.53397226",
"0.5329036",
"0.5306558",
"0.52883935",
"0.52705675",
"0.5267783",
"0.5262626",
"0.52527815",
"0.5201267",
"0.5191591",
"0.5172351",
"0.5155354",
"0.5136743",
"0.513284... | 0.79585296 | 0 |
/ renamed from: x.a.a.x | public interface C4999x extends C4929d, C4995v1 {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private String getSimpleName(String name) {\n\t\tint i = name.lastIndexOf(\".\");\n\t\treturn name.substring(i + 1);\n\t}",
"public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }",
"public String smartDot(String s) {\n\t\t\t \ts = s.substring(0, (s.length... | [
"0.6110413",
"0.60955465",
"0.5919332",
"0.58660746",
"0.58102936",
"0.5783851",
"0.576296",
"0.57224727",
"0.56566995",
"0.56266296",
"0.56043684",
"0.55887026",
"0.5498533",
"0.54785395",
"0.5476536",
"0.54481447",
"0.54447025",
"0.5439486",
"0.5436432",
"0.5401513",
"0.538... | 0.0 | -1 |
clear state, since JUnit doesn't always do so | @Before
public void setup() {
uploadIds = Sets.newHashSet();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void resetTesting() {\r\n\t\tcompanyCars.clear();\r\n\t\trentDetails.clear();\r\n\t}",
"public void testReset() {\n\t}",
"@Test\n public void testClear() {\n System.out.println(\"clear\");\n Setting s = Setting.factory();\n Setting s1 = Setting.factory();\n Setting s2 = Setting.f... | [
"0.77769196",
"0.75709385",
"0.7258763",
"0.7222245",
"0.72094953",
"0.71905226",
"0.71889555",
"0.7107774",
"0.70757604",
"0.70757604",
"0.70757604",
"0.70757604",
"0.70444936",
"0.7025638",
"0.7025638",
"0.7025638",
"0.7025638",
"0.7024377",
"0.7024377",
"0.70122427",
"0.69... | 0.0 | -1 |
Most of the stuff in this code path has already been tested in test(). So this simplified test tests the new parameters for dedupe logic. | @Test
public void testDuplicate() throws Exception {
UploadRequest uploadRequest = createRequest();
// create upload - We still care about study ID and requestedOn for reporting, as well as dupe attributes.
DynamoUpload2 upload = (DynamoUpload2) dao.createUpload(uploadRequest, TEST_STUDY, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void testDeparameterize() throws Exception {\n Map parameters = new HashMap();\n\n Object[] test_values = {\n new String[]{\"/foo/bar\", \"/foo/bar\"},\n new String[]{\"bar?a=b&c=d\", \"bar\"},\n };\n\n for (int i = 0; i < test_values.length; i++) {\n ... | [
"0.6101587",
"0.6074835",
"0.5999649",
"0.57356983",
"0.56793267",
"0.5632831",
"0.5612071",
"0.5604026",
"0.5595532",
"0.5495103",
"0.54833835",
"0.5481836",
"0.5477477",
"0.547066",
"0.54636437",
"0.54388833",
"0.5428875",
"0.5423589",
"0.5418832",
"0.54022545",
"0.53942394... | 0.5425759 | 17 |
It's not an error if there are no records to delete. | @Test
public void deleteByHealthCodeSilentlyFails() {
dao.deleteUploadsForHealthCode("nonexistentHealthCode");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n void deleteSuccess() {\n dao.delete(dao.getById(3));\n assertNull(dao.getById(3));\n }",
"@Override\n\tpublic int deleteAllRecords(){\n\t\treturn deleteAllRecords(TransactionEntry.TABLE_NAME);\n\t}",
"@Test\n void deleteSuccess() {\n dao.delete(dao.getById(2));\n as... | [
"0.69789445",
"0.6919383",
"0.690833",
"0.6899833",
"0.68608105",
"0.6757551",
"0.6719898",
"0.6704849",
"0.6699164",
"0.6695316",
"0.6688759",
"0.66824514",
"0.6629574",
"0.6570533",
"0.6528265",
"0.65275055",
"0.6503322",
"0.6480505",
"0.6437308",
"0.64286244",
"0.64187276"... | 0.0 | -1 |
number of tabs stops defined for paragraph. Must be >= 0 and <= 64. | public PAP()
{
_fWindowControl = 1;
//lspd[0] = 240;
_lspd[1] = 1;
_ilvl = 9;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setTabLength(int tabLength) {\n\tGC gc = getGC();\n\tStringBuffer tabBuffer = new StringBuffer(tabLength);\n\tfor (int i = 0; i < tabLength; i++) {\n\t\ttabBuffer.append(' ');\n\t}\n\ttabWidth = gc.stringExtent(tabBuffer.toString()).x;\n\tdisposeGC(gc);\n}",
"@Override\n\tpublic int getTabCount() {\n\t\tret... | [
"0.6391115",
"0.6364917",
"0.6315468",
"0.6312897",
"0.60581034",
"0.6034406",
"0.6007683",
"0.6002544",
"0.59696144",
"0.59327394",
"0.57802886",
"0.5760669",
"0.5671925",
"0.5628485",
"0.5628485",
"0.56070644",
"0.5579085",
"0.5540405",
"0.5500529",
"0.5485432",
"0.5466138"... | 0.0 | -1 |
Motor inversions MUST be declared in the constructor!!! | public ChassisSubsystem() {
leftMotor.setInverted(RobotMap.leftMotorInverted);
rightMotor.setInverted(RobotMap.rightMotorInverted);
leftMiniCIM.setInverted(RobotMap.leftMiniCIMInverted);
rightMiniCIM.setInverted(RobotMap.rightMiniCIMInverted);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface EncoderMotor extends Motor {\n double getVelocity();\n double getVelocityRaw();\n double setVelocity(double speed);\n double getDistance();\n void resetDistance();\n @Override\n EncoderMotor setInverted(boolean inverted);\n @Override\n EncoderMotor invert();\n\n void ... | [
"0.7026977",
"0.6955268",
"0.6653688",
"0.65054995",
"0.6487344",
"0.63993734",
"0.63743645",
"0.62362534",
"0.6230718",
"0.62065715",
"0.6148138",
"0.6146002",
"0.61289036",
"0.61102265",
"0.6106812",
"0.6102226",
"0.6081641",
"0.60790104",
"0.60634035",
"0.60573494",
"0.603... | 0.0 | -1 |
MIGHT NEED TO CALL THIS! | public void init() {
pidControllers.add(leftMotorPID);
pidControllers.add(rightMotorPID);
pidControllers.add(leftMiniCIMMotorPID);
pidControllers.add(rightMiniCIMMotorPID);
gyro.initGyro();
gyro.setSensitivity(RobotMap.gyroGain);
gyro.calibrate();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Overrid... | [
"0.6403532",
"0.6350996",
"0.6350462",
"0.6325739",
"0.63042444",
"0.62911344",
"0.6286656",
"0.6255397",
"0.62368745",
"0.6149448",
"0.61103654",
"0.61103654",
"0.60661703",
"0.6059528",
"0.60573953",
"0.6049409",
"0.60338026",
"0.6025777",
"0.60172164",
"0.6006971",
"0.5995... | 0.0 | -1 |
Update all of the PIDs every loop | @Override
public void periodic() {
for (M_PIDController pid : pidControllers) {
pid.calculate();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void assignPids() {\n\t\tThread t = new Thread(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\twhile (nPidsAssigned < nProc -1) {\n\t\t\t\t\t\tinitConn.connectRetry(coordinatorHostname, 20000);\n\n\t\t\t\t\t\tnPidsAssigned++;\n\t\t\t\t\t\t// Pid 1 is reser... | [
"0.63177997",
"0.58229005",
"0.57946223",
"0.560885",
"0.556292",
"0.5443713",
"0.5410661",
"0.5397493",
"0.5334257",
"0.52668476",
"0.522044",
"0.5214773",
"0.52073896",
"0.5178077",
"0.514669",
"0.51380384",
"0.5137136",
"0.5112789",
"0.5107027",
"0.5102321",
"0.5090679",
... | 0.5768875 | 3 |
///Don't think we need these dashboard updates here SmartDashboard.putNumber("LeftMotorSpeed", leftSpeed); SmartDashboard.putNumber("RightMotorSpeed", rightSpeed); If it doesn't drive, this is the likely culprit. | public void setMotorSpeed(double leftSpeed,double rightSpeed){
leftMotorPID.setSetpoint(leftSpeed);
rightMotorPID.setSetpoint(rightSpeed);
leftMiniCIMMotorPID.setSetpoint(-rightSpeed);
rightMiniCIMMotorPID.setSetpoint(-leftSpeed);
if (!leftMotorPID.isEnabled()) {
leftMotorPID.enable();
}
if (!rightMot... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void writeToSmartDashboard(){\n\t\tSmartDashboard.putNumber(\"Left Encoder Distance\", RobotMap.talonLeft.getSelectedSensorPosition(0));\n\t\tSmartDashboard.putNumber(\"Left Encoder Speed\", RobotMap.talonLeft.getSelectedSensorVelocity(0));\n\t\tRobotMap.talonLeft.setName(\"DriveTrain\", \"Left Talon\");\n\... | [
"0.77490246",
"0.7465272",
"0.71518725",
"0.69730854",
"0.690835",
"0.688693",
"0.67539835",
"0.6688883",
"0.66499454",
"0.66122085",
"0.654091",
"0.64915806",
"0.6453715",
"0.643433",
"0.64227736",
"0.63727695",
"0.6367339",
"0.63287896",
"0.63126034",
"0.6299378",
"0.627134... | 0.0 | -1 |
Create a new MessengerAccount. | protected MessengerAccount(UUID owner, List<Message> messages) {
this.owner = owner;
this.messages = messages;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void createPassenger() {\n account = new Account(\"driver\", \"password\", \"driver@uclive.ac.nz\",\n \"Dan\", \"20 Howard Street\", 1234567, 64278182123L);\n }",
"Account create();",
"Account create(Context context);",
"public void createUserAccount(UserAccount account);",
... | [
"0.7156888",
"0.66238743",
"0.6369676",
"0.6319862",
"0.61769074",
"0.6101707",
"0.59500784",
"0.5864217",
"0.5847162",
"0.5814873",
"0.5756249",
"0.57536453",
"0.5740223",
"0.572539",
"0.5711619",
"0.5693044",
"0.56721324",
"0.560898",
"0.5579864",
"0.5537478",
"0.552271",
... | 0.53999096 | 29 |
Get the owner of the account. | public UUID getOwner() {
return owner;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getAccountOwner() {\n return accountOwner;\n }",
"public AccountEntity getOwner() {\n\t\treturn owner;\n\t}",
"User getOwner();",
"public String getOwnerAccountId() {\n return this.ownerAccountId;\n }",
"public Account getOrganizationOwnerAccount() {\n return organization... | [
"0.81547827",
"0.80429536",
"0.7733774",
"0.7677036",
"0.7459302",
"0.74564797",
"0.7327888",
"0.72777915",
"0.7266376",
"0.72285837",
"0.7207456",
"0.7177686",
"0.71626896",
"0.71626896",
"0.71278733",
"0.70730054",
"0.70405895",
"0.70405895",
"0.70405895",
"0.70405895",
"0.... | 0.71162534 | 16 |
Get the messages of the account. | public List<Message> getMessages() {
return messages;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<ChatMessage> getChatMessages() {\n logger.info(\"**START** getChatMessages \");\n return messagesMapper.findAllMessages();\n }",
"public void getMessages(){\n if(GUI.getInstance().getBusiness().getCurrentChat() != null) {\n Set<? extends IMessageIn> response = GUI.... | [
"0.7601807",
"0.7568138",
"0.7215653",
"0.717235",
"0.71607125",
"0.71259075",
"0.7095229",
"0.7093135",
"0.7089366",
"0.7045368",
"0.6976935",
"0.6972818",
"0.69564027",
"0.6950144",
"0.6937546",
"0.69305027",
"0.6928154",
"0.6902685",
"0.69011444",
"0.6830352",
"0.68251354"... | 0.72089225 | 3 |
Send a message to the account. | public void sendMail(Message message){
if (message.getRecipient().equals(owner)){
MessageSentEvent event = new MessageSentEvent(message, false);
if (!event.isCancelled())
this.messages.add(message);
}
else{
Bukkit.getLogger().severe("Message to... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void sendMessage(String message);",
"public void sendMessage(String message) {}",
"public void sendMessage(String message){\n pw.print(message);\n pw.flush();\n }",
"public void send(Message msg);",
"public static void sendMessage(String message) {\r\n\t\tbtService.write(message.get... | [
"0.70932955",
"0.70202017",
"0.697725",
"0.6921905",
"0.6894401",
"0.68808043",
"0.68427867",
"0.6817158",
"0.67838126",
"0.6772907",
"0.6726261",
"0.6717765",
"0.6688424",
"0.6617841",
"0.6612591",
"0.6610144",
"0.6599013",
"0.6593013",
"0.6577647",
"0.6553209",
"0.6546154",... | 0.0 | -1 |
Send a message to the account. | public void sendMail(Message message, boolean force){
if (message.getRecipient().equals(owner)){
new MessageSentEvent(message, false);
this.messages.add(message);
}
else{
Bukkit.getLogger().severe("Message to "+Bukkit.getPlayer(owner)+" " +
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void sendMessage(String message);",
"public void sendMessage(String message) {}",
"public void sendMessage(String message){\n pw.print(message);\n pw.flush();\n }",
"public void send(Message msg);",
"public static void sendMessage(String message) {\r\n\t\tbtService.write(message.get... | [
"0.70932955",
"0.70202017",
"0.697725",
"0.6921905",
"0.6894401",
"0.68808043",
"0.68427867",
"0.6817158",
"0.67838126",
"0.6772907",
"0.6726261",
"0.6717765",
"0.6688424",
"0.6617841",
"0.6612591",
"0.6610144",
"0.6599013",
"0.6593013",
"0.6577647",
"0.6553209",
"0.6546154",... | 0.0 | -1 |
Get if the account will update read status. | public boolean sendReadMessage() {
return sendReadMessage;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Boolean getIsRead() {\n return isRead;\n }",
"boolean getForRead();",
"boolean hasForRead();",
"public boolean getForRead() {\n return forRead_;\n }",
"public boolean getForRead() {\n return forRead_;\n }",
"public boolean isRead(){\n \treturn isRead;\n }",
"p... | [
"0.7038493",
"0.69643474",
"0.69442683",
"0.69003576",
"0.6890457",
"0.68728644",
"0.68053615",
"0.6779115",
"0.6772125",
"0.6764349",
"0.6728492",
"0.668489",
"0.6674044",
"0.6602282",
"0.6458979",
"0.64484245",
"0.63815117",
"0.62844336",
"0.6247089",
"0.62429565",
"0.62358... | 0.565815 | 48 |
Instantiates a new dashboard trigger. | public DashboardTrigger (String key, boolean defaultValue) {
this.key = key;
this.defaultValue = defaultValue;
SmartDashboard.putBoolean(key, defaultValue);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public CronJobTrigger() {\n init();\n }",
"Dashboard createDashboard();",
"@NonNull\n public Trigger build() {\n JsonPredicate predicate;\n\n if (UAStringUtil.isEmpty(screenName)) {\n predicate = null;\n } else {\n predicate = JsonPred... | [
"0.64463216",
"0.5967067",
"0.57712287",
"0.57107145",
"0.5661157",
"0.55881345",
"0.5583866",
"0.5437894",
"0.5391667",
"0.5352264",
"0.53489",
"0.53479964",
"0.5339869",
"0.5320545",
"0.53053313",
"0.5292812",
"0.5289218",
"0.51899636",
"0.51839757",
"0.51758635",
"0.516295... | 0.51332563 | 22 |
Setup the database schema. | private void createSchema() throws Exception
{
LOG.info("Creating schema");
HibernateUtil.currentSession();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void setupDB() {\n\t\tlog.info(\"------------------------------------------\");\n\t\tlog.info(\"Initialization database started\");\n\t\tlog.info(\"ddl: db-config.xml\");\n\t\tlog.info(\"------------------------------------------\");\n\t\ttry {\n\t\t\tfinal List<String> lines = Files.readAllLines(Paths.g... | [
"0.7860721",
"0.722051",
"0.7144709",
"0.70875895",
"0.7081729",
"0.688649",
"0.6844983",
"0.6814591",
"0.68123126",
"0.6739606",
"0.6623326",
"0.6610037",
"0.6600529",
"0.65514314",
"0.64947146",
"0.6476622",
"0.6467517",
"0.6434075",
"0.6416145",
"0.6412169",
"0.6382836",
... | 0.6990498 | 5 |
Importing the default system data. | protected void importDefaultData()
{
LOG.info("Importing Data");
Session session = HibernateUtil.currentSession();
Transaction tx = session.beginTransaction();
Session dom4jSession = session.getSession(EntityMode.DOM4J);
SAXReader saxReader = new SAXReader();
try
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\t@SystemSetup(extension = FrameitcoreConstants.EXTENSIONNAME, process = Process.ALL, type = Type.ESSENTIAL)\n\tpublic void createEssentialData() {\n\t\t// Import essential data\n\t\tLOG.info(\"Importing essential data...\");\n\n\t\tsuper.importData(\"/essentialData/countries.impex\");\n\n\t\tLOG.info(\... | [
"0.6514661",
"0.60644996",
"0.5945556",
"0.5867487",
"0.58309275",
"0.5792092",
"0.5752221",
"0.5729727",
"0.5729727",
"0.5729727",
"0.5729727",
"0.5729727",
"0.5716714",
"0.5711537",
"0.56647825",
"0.5658214",
"0.56580186",
"0.5652215",
"0.5645986",
"0.5636218",
"0.5619471",... | 0.66386837 | 0 |
Toast.makeText(getActivity(), "Id: " +tvShowItems.getId(), Toast.LENGTH_SHORT).show(); | @Override
public void onItemClicked(TvShowItems tvShowItems) {
Intent tvShowDetailIntent = new Intent(getActivity(), TvShowDetailActivity.class);
tvShowDetailIntent.putExtra(TvShowDetailActivity.EXTRA_TV_SHOW, tvShowItems);
startActivity(tvShowDetailIntent);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tToast.makeText(context.getBaseContext(), \"a:\"+v.getId(), Toast.LENGTH_SHORT).show();\n\t\t\t\t}",
"@Override\n public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n String s... | [
"0.7182384",
"0.7079865",
"0.7069175",
"0.7049443",
"0.7028616",
"0.6982791",
"0.69560075",
"0.67151326",
"0.6656972",
"0.6622543",
"0.6548936",
"0.65222836",
"0.6471336",
"0.6464247",
"0.6439801",
"0.6437171",
"0.63866544",
"0.6385528",
"0.63728917",
"0.63661647",
"0.6342898... | 0.683749 | 7 |
Uses dynamic settings for setting headers Allows you to use a pluggable java class as well | public static void setHeaders1(String displayUrl
, HttpServletRequest request
, HttpServletResponse response)
throws AspireServletException
{
AppObjects.info("SetHeaders.java","Setting headers (1) for Aspire URL: %1s",displayUrl);
// If there is a java class call it
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void addDynamicHeaders() {\n }",
"@Override\n public void setHeader(String arg0, String arg1) {\n\n }",
"void setHeader(String headerName, String headerValue);",
"public void setHeaders(Map headers);",
"void setHeader(java.lang.String header);",
"protected abstract void configureHeadersImp... | [
"0.7120676",
"0.67712367",
"0.6567018",
"0.654191",
"0.65025985",
"0.6405544",
"0.63834125",
"0.63547933",
"0.631766",
"0.629166",
"0.6230755",
"0.619674",
"0.61800236",
"0.6173528",
"0.6147339",
"0.61395955",
"0.6139328",
"0.6136127",
"0.612455",
"0.61118305",
"0.6102436",
... | 0.63369083 | 8 |
TODO Autogenerated method stub | @Override
public void keyReleased(KeyEvent arg0) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void keyTyped(KeyEvent arg0) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
Inflate the menu; this adds items to the action bar if it is present. | @Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.main, menu);
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {... | [
"0.7246102",
"0.7201358",
"0.7194834",
"0.7176498",
"0.71066517",
"0.7039537",
"0.7037961",
"0.70112145",
"0.70094734",
"0.69807225",
"0.6944953",
"0.69389373",
"0.6933199",
"0.6916928",
"0.6916928",
"0.6891486",
"0.68831646",
"0.68754137",
"0.68745375",
"0.68621665",
"0.6862... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void onBackPressed() {
super.onBackPressed();
finish();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
Creates a new DOMBuilder backed by the specified document builder | public SAXContentToDOMHandler(final DocumentBuilder documentBuilder,
final boolean whitespaceNormalisationEnabled) {
this.documentBuilder = Preconditions.checkNotNull(documentBuilder);
this.whitespaceNormalisationEnabled = whitespaceNormalisationEnabled;
this.elements = Lists.newLinkedList();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void createDocument(){\n\t\tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n\t\ttry {\n\t\t//get an instance of builder\n\t\tDocumentBuilder db = dbf.newDocumentBuilder();\n\n\t\t//create an instance of DOM\n\t\tdom = db.newDocument();\n\n\t\t}catch(ParserConfigurationException pce) {\n... | [
"0.7006578",
"0.6893905",
"0.6865969",
"0.68604887",
"0.67604566",
"0.66758955",
"0.6570847",
"0.6323586",
"0.6221283",
"0.61542165",
"0.6111829",
"0.60072577",
"0.5960325",
"0.5960325",
"0.5960325",
"0.59454185",
"0.5939116",
"0.5939116",
"0.5939116",
"0.5939116",
"0.5939116... | 0.0 | -1 |
Clears the builder so that it can be reused | public void clear() {
this.document = null;
this.elements.clear();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Builder clearBuilder() {\n \n builder_ = getDefaultInstance().getBuilder();\n onChanged();\n return this;\n }",
"public Builder clearBuild() {\n copyOnWrite();\n instance.clearBuild();\n return this;\n }",
"public Builder clearFrom() {\n ... | [
"0.81365764",
"0.77397734",
"0.76358056",
"0.7632529",
"0.7627522",
"0.7627522",
"0.75971293",
"0.75889313",
"0.75889313",
"0.75881934",
"0.7584249",
"0.7584249",
"0.7584249",
"0.7584249",
"0.7584249",
"0.7584249",
"0.7584249",
"0.75815755",
"0.7562269",
"0.75154394",
"0.7509... | 0.0 | -1 |
Returns the constructed document | public Document getDocument() {
return document;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public WalkerDocument newDocument() { return newDocument((IOptions)null); }",
"public Document getTemplateAsDocument() {\n // Creates a blank document\n Document doc = new Document();\n\n // Fills the document with data\n // Includes the id if one exists\n if (id != null)\n ... | [
"0.7194025",
"0.7179899",
"0.71581167",
"0.69999236",
"0.69476026",
"0.69450104",
"0.69312567",
"0.6887551",
"0.6853759",
"0.6832554",
"0.6830602",
"0.681984",
"0.67386895",
"0.67356676",
"0.6706476",
"0.6696774",
"0.6687841",
"0.6685953",
"0.66793007",
"0.6669509",
"0.665401... | 0.63467216 | 45 |
normalise nonbreaking spaces to a standard space standard Java regex patterns and string trim do not work with nonbreaking spaces | private String toNormalizedString(final char[] ch, final int start, final int length) {
for (int index = start; index < length; index++) {
if (ch[index] == NON_BREAKING_SPACE) {
ch[index] = ' ';
}
}
return new String(ch, start, length);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static String trimWhiteSpace(String sentence) {\n\t\tsentence = sentence.replaceAll(\"[^a-zA-Z]\", \" \");\n//\t\tsentence = sentence.replaceAll(\"\\n\", \" \");\n//\t\tsentence = sentence.replaceAll(\"\\t\", \" \");\n// sentence = sentence.replaceAll(\"\\\\.\", \" \");\n// sentence = sentenc... | [
"0.71306366",
"0.7113568",
"0.68152386",
"0.65799206",
"0.6525451",
"0.6368915",
"0.63684326",
"0.631834",
"0.6256067",
"0.6256067",
"0.6256067",
"0.62207735",
"0.61976373",
"0.61783665",
"0.61464584",
"0.6123924",
"0.6118233",
"0.6113064",
"0.6109188",
"0.609677",
"0.6093694... | 0.56277674 | 57 |
Normalises adjacent whitespace nodes into a single node and trims nonwhitespace text nodes of any starting and trailing whitespace | private void normaliseWhitespace() {
document.normalizeDocument();
if (document.getDocumentElement() == null) {
return;
}
final Queue<Node> queue = Lists.newLinkedList();
queue.add(document.getDocumentElement());
while (!queue.isEmpty()) {
final Node node = queue.remove();
final... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void trimWhitespaces() {\n \n while(currentIndex < dataLength && Character.isWhitespace( data[currentIndex] )) {\n ++currentIndex;\n }\n }",
"private String normalize(String text) {\n final String nbsp = new String(new char[] {(char) 160});\n return text.replaceAll(\"\\\\s+(\" + nbsp... | [
"0.5913765",
"0.5904302",
"0.5867307",
"0.5850717",
"0.5769093",
"0.56057066",
"0.5511225",
"0.5496826",
"0.54845357",
"0.54134995",
"0.53987855",
"0.52938014",
"0.529164",
"0.52384466",
"0.52361375",
"0.5235046",
"0.51681465",
"0.51343185",
"0.51228523",
"0.510899",
"0.51089... | 0.7818792 | 0 |
Converts the XML Attributes instance into a standard map of key/value pairs | private Map<String, String> toMap(final Attributes atts) {
final Map<String, String> values = Maps.newLinkedHashMap();
for (int index = 0; index < atts.getLength(); index++) {
values.put(atts.getLocalName(index), atts.getValue(index));
}
return values;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.util.Map<java.lang.String, java.lang.String> getAttributesMap();",
"public Map<String,Object> getAttributeMap() {\r\n return Maps.newHashMap(attributeMap);\r\n }",
"public Map<String, String> getAttributes();",
"public Map<String, Object> getAttributes();",
"public Map<String, Object> getAtt... | [
"0.7792258",
"0.7670521",
"0.76677316",
"0.7636178",
"0.7636178",
"0.7628716",
"0.76030165",
"0.7509943",
"0.7509943",
"0.7509943",
"0.7488401",
"0.7419166",
"0.72497743",
"0.72436726",
"0.7223249",
"0.7180164",
"0.71529144",
"0.70355123",
"0.70351166",
"0.69981056",
"0.69967... | 0.7733935 | 1 |
TODO this could be an errornumber | @Doc("The value to use if the variable is accessed when it has never been set.")
@BindNamedArgument("default")
public Double getDefaultValue() {
return defaultValue;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getError();",
"java.lang.String getError();",
"java.lang.String getError();",
"java.lang.String getErr();",
"private void correctError()\r\n\t{\r\n\t\t\r\n\t}",
"@Override\n\tpublic void calculateError() {\n\t\t\n\t}",
"private void obtieneError(int error) throws Excepciones{\n Stri... | [
"0.6900207",
"0.6900207",
"0.6900207",
"0.6816145",
"0.66865396",
"0.65572274",
"0.64443",
"0.6430396",
"0.6414024",
"0.63932955",
"0.6364682",
"0.63003147",
"0.6290047",
"0.6272674",
"0.62385833",
"0.6185317",
"0.6180571",
"0.61558115",
"0.61521775",
"0.6135023",
"0.61323303... | 0.0 | -1 |
method to get Skill image | public static int getSkillIcon(String skillName) {
if (skillName != null && !skillName.isEmpty()) {
if (skillName.equalsIgnoreCase("Barber")) {
return R.drawable.ic_barber;
} else if (skillName.equalsIgnoreCase("Beautician")) {
return R.drawable.ic_beautic... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getImage();",
"java.lang.String getProfileImage();",
"String getImage();",
"String getItemImage();",
"String avatarImage();",
"public String getStaticPicture();",
"java.lang.String getImagePath();",
"public Image getImage() {\n if (tamagoStats.getAge() <= 0) {\n ret... | [
"0.7199839",
"0.71609914",
"0.70716345",
"0.7042129",
"0.6807891",
"0.66671765",
"0.65800005",
"0.6577195",
"0.65630656",
"0.65630656",
"0.6470202",
"0.64119905",
"0.6381689",
"0.636832",
"0.6288739",
"0.6284173",
"0.6279243",
"0.6264602",
"0.6231871",
"0.62150544",
"0.621342... | 0.6397371 | 12 |
TODO Autogenerated method stub | public static void main(String[] args) {
int a[]= {1,25,23,24,25};
int sum=0;
for(int i=0;i<a.length;i++) {
sum=sum+a[i];
}
System.out.println("sum is: "+sum);
} | {
"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 |
Parse the input string into a nice map | @Override
public void map(Object key, Text value, Context context)
throws IOException, InterruptedException {
Map<String, String> parsed = MRDPUtils.transformXmlToMap(value.toString());
String postId = parsed.get("PostId");
if (postId == null) {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private HashMap parseMap(String localData){\n int localPointer = 0;\n HashMap temp = new HashMap();\n char c = localData.charAt(localPointer++);\n while (c != '}'){\n String entry = \"\";\n entry_loop :\n while (c != '}'){\n switch (c){\n ... | [
"0.72446704",
"0.696247",
"0.67086804",
"0.6592732",
"0.65437174",
"0.6221932",
"0.62189615",
"0.61878926",
"0.60968465",
"0.60702044",
"0.6057074",
"0.6051833",
"0.60431236",
"0.5939333",
"0.5935162",
"0.5869776",
"0.57995033",
"0.57715344",
"0.57503307",
"0.57412183",
"0.57... | 0.0 | -1 |
For each attribute, copy it to the element | private void copyAttributesToElement(NamedNodeMap attributes, Element element) {
for (int i = 0; i < attributes.getLength(); ++i) {
Attr toCopy = (Attr) attributes.item(i);
element.setAttribute(toCopy.getName(), toCopy.getValue());
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setAttributes(String attributeName, String attributeValue);",
"public void setAttributes(Attributes atts) {\n _length = atts.getLength();\n if (_length > 0) {\n \n if (_length >= _algorithmData.length) {\n resizeNoCopy();\n }\n \n ... | [
"0.62649906",
"0.61693996",
"0.6131352",
"0.6095427",
"0.60872304",
"0.6060055",
"0.60315144",
"0.5962354",
"0.5934747",
"0.5932654",
"0.59037423",
"0.58765143",
"0.57710683",
"0.57692295",
"0.5762833",
"0.5762727",
"0.574928",
"0.57372797",
"0.5709684",
"0.5686055",
"0.56842... | 0.74156547 | 0 |
Creates a RedisServerInfo Object. | public RedisServerInfo(String phost, int pport, int pdbIndex) {
init(phost, pport, pdbIndex);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public RedisServerInfo(String connectionString) {\r\n try {\r\n int dbIndex = 0;\r\n int len = connectionString.length();\r\n int endPos = len;\r\n int pos = connectionString.indexOf('/');\r\n if(pos > 0) {\r\n endPos = pos;\r\n ... | [
"0.6232539",
"0.61404544",
"0.58012",
"0.51134783",
"0.5083316",
"0.50776875",
"0.49897116",
"0.49831983",
"0.49456996",
"0.49195018",
"0.48695996",
"0.48404953",
"0.47864547",
"0.4757276",
"0.47248635",
"0.4715389",
"0.47069368",
"0.4702018",
"0.46619993",
"0.46414775",
"0.4... | 0.5844773 | 2 |
Creates a RedisServerInfo Object with 0 as the DB Index. | public RedisServerInfo(String phost, int pport) {
this(phost, pport, 0);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public RedisServerInfo(String phost, int pport, int pdbIndex) {\r\n init(phost, pport, pdbIndex);\r\n }",
"public RedisServerInfo(String connectionString) {\r\n try {\r\n int dbIndex = 0;\r\n int len = connectionString.length();\r\n int endPos = len;\r\n ... | [
"0.6453039",
"0.6002059",
"0.5493928",
"0.54275405",
"0.52301776",
"0.51308763",
"0.50975555",
"0.5083309",
"0.505697",
"0.5052682",
"0.49885684",
"0.4932212",
"0.49037775",
"0.4902607",
"0.48660457",
"0.48246175",
"0.48240885",
"0.47932115",
"0.4767944",
"0.47595283",
"0.467... | 0.6026582 | 1 |
Creates a RedisServerInfo Object from a Connection String. The Connection String contains the host, port followed by a : and redis db index followed by a /. The port defaults to 6379 if omitted and the DB Index defaults to 0. Example Connection Strings are "10.10.43.3", "localhost:6379", "10.10.23.4/2", "localhost:6380... | public RedisServerInfo(String connectionString) {
try {
int dbIndex = 0;
int len = connectionString.length();
int endPos = len;
int pos = connectionString.indexOf('/');
if(pos > 0) {
endPos = pos;
dbIndex = Integ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public RedisServerInfo(String phost, int pport, int pdbIndex) {\r\n init(phost, pport, pdbIndex);\r\n }",
"private static JedisPool createRedisConnectionPool(String redisUrlStr) {\n\n // create the Redis URI\n URI redisUri = null;\n try {\n redisUri = new URI(redisUrlStr... | [
"0.575039",
"0.56006753",
"0.55099356",
"0.53459847",
"0.4571567",
"0.44742846",
"0.44419596",
"0.4316033",
"0.43159005",
"0.42982963",
"0.4296975",
"0.4293921",
"0.4287656",
"0.42846325",
"0.42775312",
"0.42433926",
"0.4227434",
"0.4221467",
"0.42134675",
"0.42095765",
"0.41... | 0.8559787 | 0 |
creates Location with the given parameters | public LocationImpl(double lon, double lat) {
this.lat = lat;
this.lon = lon;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Location createLocation();",
"Location createLocation();",
"Location createLocation();",
"@Override\n\tpublic Location newInstance() {\n\t\treturn new Location(this.X,this.Y,0);\n\t}",
"public void buildLocation() {\n try (PreparedStatement prep = Database.getConnection()\n .prepareStatement(\"CR... | [
"0.81526697",
"0.81526697",
"0.81526697",
"0.6715284",
"0.6694138",
"0.6647186",
"0.66047174",
"0.6568524",
"0.6499166",
"0.6477605",
"0.6475251",
"0.6458135",
"0.6434807",
"0.64325076",
"0.64308983",
"0.6427194",
"0.6410208",
"0.64088184",
"0.6401697",
"0.63565683",
"0.62931... | 0.5704736 | 83 |
Getter for the activity object's mUrl property. | public String getUrl() { /* (readonly) */
return mUrl;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getUrl() {\n return mUrl;\n }",
"public String getUrl() {\n return mUrl;\n }",
"public String getUrl() {\n return mUrl;\n }",
"public String getUrl() {\n return mUrl;\n }",
"public String getURL() {\n return mURL;\n }",
"public URL getURL() ... | [
"0.77712023",
"0.77712023",
"0.77712023",
"0.77712023",
"0.76974815",
"0.741397",
"0.7359279",
"0.7306251",
"0.72613806",
"0.72464865",
"0.7240546",
"0.722964",
"0.72258955",
"0.7216962",
"0.7213325",
"0.7207427",
"0.7207427",
"0.7207427",
"0.7207427",
"0.7207427",
"0.7207427... | 0.76359856 | 5 |
Getter for the activity object's mUserGeneratedContent property. | public String getUserGeneratedContent() {
return mUserGeneratedContent;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setUserGeneratedContent(String userGeneratedContent) {\n mUserGeneratedContent = userGeneratedContent;\n }",
"public String getContentUuid() {\n return contentUuid;\n }",
"public String getContentObj() {\n return contentObj;\n }",
"public String getContent() {\n ... | [
"0.6547232",
"0.6332717",
"0.6242526",
"0.6140411",
"0.6083797",
"0.6083797",
"0.6083797",
"0.6083797",
"0.6079274",
"0.59998447",
"0.59899974",
"0.59440404",
"0.59440404",
"0.5940926",
"0.5940926",
"0.59332734",
"0.5923068",
"0.58938795",
"0.58938795",
"0.58768296",
"0.58576... | 0.83540505 | 0 |
Setter for the activity object's mUserGeneratedContent property. | public void setUserGeneratedContent(String userGeneratedContent) {
mUserGeneratedContent = userGeneratedContent;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getUserGeneratedContent() {\n return mUserGeneratedContent;\n }",
"public void setContent(String content) { this.content = content; }",
"public void setContent(Object content) {\n this.content = content;\n }",
"public synchronized void setContent(Object content) {\n ... | [
"0.7268471",
"0.55590415",
"0.5379933",
"0.5356329",
"0.5355053",
"0.5347658",
"0.5345901",
"0.5338231",
"0.5320511",
"0.5319515",
"0.531063",
"0.53052855",
"0.53052855",
"0.53052855",
"0.53052855",
"0.53052855",
"0.53052855",
"0.53052855",
"0.53052855",
"0.53052855",
"0.5305... | 0.79736495 | 0 |
Getter for the activity object's mTitle property. | public String getTitle() {
return mTitle;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Nullable\n final public String getTitle() {\n return mTitle;\n }",
"public String getTitle() { return mTitle; }",
"public String getTitle() {\n return mTitle;\n }",
"public String getTitle() {\n return mTitle;\n }",
"public String getTitle() {\n return mTitle;\n ... | [
"0.8121147",
"0.80060035",
"0.7995696",
"0.7995696",
"0.7995696",
"0.7925877",
"0.7863533",
"0.78549814",
"0.78202856",
"0.77016294",
"0.7700968",
"0.7698005",
"0.7698005",
"0.7698005",
"0.7696489",
"0.76939684",
"0.76910466",
"0.76729155",
"0.76528704",
"0.76490873",
"0.7649... | 0.79508847 | 5 |
Setter for the activity object's mTitle property. | public void setTitle(String title) {
mTitle = title;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setTitle(String mTitle) {\n this.mTitle = mTitle;\n }",
"public void setTitle(String title)\n {\n mTitle = title;\n }",
"public void setTitle(String title) {\n mTitle = title;\n }",
"public void setTitle(String strTitle) { m_strTitle = strTitle; }",
"public void... | [
"0.79784864",
"0.7829511",
"0.78020316",
"0.76972514",
"0.7515753",
"0.74918425",
"0.74387366",
"0.74387366",
"0.74263763",
"0.7425888",
"0.74242944",
"0.74180704",
"0.74180704",
"0.7414166",
"0.73895323",
"0.73744476",
"0.73645157",
"0.73644865",
"0.73644865",
"0.73644865",
... | 0.7928568 | 1 |
Getter for the activity object's mDescription property. | public String getDescription() {
return mDescription;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getActivityDesc() {\n return activityDesc;\n }",
"@Nullable\n public String getDescription() {\n return mDescription;\n }",
"public final String getDescription() { return mDescription; }",
"public String getDescription()\n {\n return this.mDescription;\n }",
... | [
"0.7769176",
"0.77203",
"0.76298714",
"0.76056165",
"0.7420274",
"0.735792",
"0.7338446",
"0.7279572",
"0.7274417",
"0.7274417",
"0.7266739",
"0.7261012",
"0.7261012",
"0.72609204",
"0.7237618",
"0.7237618",
"0.7237618",
"0.7237618",
"0.7237618",
"0.7237618",
"0.7237618",
"... | 0.7642551 | 2 |
Setter for the activity object's mDescription property. | public void setDescription(String description) {
mDescription = description;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setActivityDesc(String activityDesc) {\n this.activityDesc = activityDesc;\n }",
"public void setDescription(String value) {\r\n this.description = value;\r\n }",
"public void setDescription(String value) {\n this.description = value;\n }",
"public final void setDesc... | [
"0.719638",
"0.7051858",
"0.7022648",
"0.7009623",
"0.69836736",
"0.6929221",
"0.6876694",
"0.6872223",
"0.6824143",
"0.6812148",
"0.6812148",
"0.6812148",
"0.67981994",
"0.6723686",
"0.670759",
"0.6696938",
"0.6695807",
"0.6694658",
"0.669463",
"0.669463",
"0.6689251",
"0.... | 0.7294866 | 0 |
Getter for the activity object's mActionLinks property. | public List<JRActionLink> getActionLinks() {
return mActionLinks;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Item2Vector<ConceptActivity> getConceptActivities()\r\n\t{\r\n\t\treturn activity_links;\r\n\t}",
"public List<String> getLinks() {\r\n\t\treturn this.links;\r\n\t}",
"List<ButtonLink> getBtnActionLinks();",
"public void setActionLinks(List<JRActionLink> actionLinks) {\n mActionLinks = actionL... | [
"0.641664",
"0.6331924",
"0.62873226",
"0.6200991",
"0.6117438",
"0.6110968",
"0.6105651",
"0.6026803",
"0.5958165",
"0.59491354",
"0.59450364",
"0.5915874",
"0.59003925",
"0.583495",
"0.58035594",
"0.5792909",
"0.57725894",
"0.57610506",
"0.5757595",
"0.575626",
"0.5741541",... | 0.786537 | 0 |
Setter for the activity object's mActionLinks property. | public void setActionLinks(List<JRActionLink> actionLinks) {
mActionLinks = actionLinks;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<JRActionLink> getActionLinks() {\n return mActionLinks;\n }",
"public Set<String> getLinks() {\n return links;\n }",
"public void setLinks(List<Link> links)\n {\n this.links = links;\n }",
"public void addActionLink(JRActionLink actionLink) {\n if (mActionLink... | [
"0.6101048",
"0.56582004",
"0.54878044",
"0.54496026",
"0.5399599",
"0.5254984",
"0.52323055",
"0.52289796",
"0.5151767",
"0.5122522",
"0.51009977",
"0.50897896",
"0.5041079",
"0.4990033",
"0.49627423",
"0.49458018",
"0.4941449",
"0.492435",
"0.49069253",
"0.4870182",
"0.4870... | 0.7494702 | 0 |
Setter for the activity object's mActionLinks property. | public void addActionLink(JRActionLink actionLink) {
if (mActionLinks == null)
mActionLinks = new ArrayList<JRActionLink>();
mActionLinks.add(actionLink);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setActionLinks(List<JRActionLink> actionLinks) {\n mActionLinks = actionLinks;\n }",
"public List<JRActionLink> getActionLinks() {\n return mActionLinks;\n }",
"public Set<String> getLinks() {\n return links;\n }",
"public void setLinks(List<Link> links)\n {\n ... | [
"0.7494702",
"0.6101048",
"0.56582004",
"0.54878044",
"0.5399599",
"0.5254984",
"0.52323055",
"0.52289796",
"0.5151767",
"0.5122522",
"0.51009977",
"0.50897896",
"0.5041079",
"0.4990033",
"0.49627423",
"0.49458018",
"0.4941449",
"0.492435",
"0.49069253",
"0.4870182",
"0.48701... | 0.54496026 | 4 |
Getter for the activity object's mMedia property. | public List<JRMediaObject> getMedia() {
return mMedia;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public gov.nih.nlm.ncbi.www.soap.eutils.efetch_pmc.Media getMedia() {\r\n return media;\r\n }",
"public java.lang.String getMedia() {\n return media;\n }",
"public String getMediaUrl() {\n return this.MediaUrl;\n }",
"public MediaField getMedia() {\n\treturn mediaField;\n \n ... | [
"0.7801656",
"0.77263343",
"0.75343",
"0.7513567",
"0.71715844",
"0.71632487",
"0.70752925",
"0.70752925",
"0.70123774",
"0.69681185",
"0.6933833",
"0.6933426",
"0.69241714",
"0.6918633",
"0.68727726",
"0.68529725",
"0.6851155",
"0.6845062",
"0.6827817",
"0.6799063",
"0.67484... | 0.7151601 | 6 |
Setter for the activity object's mMedia property. | public void setMedia(List<JRMediaObject> media) {
mMedia = media;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setMedia(String m) {\n\t\tmedia = m;\n\t}",
"public void setMediaField(MediaField m) {\n\tmediaField = m;\n }",
"public void setMedia(java.lang.String media) {\n this.media = media;\n }",
"public void setMedia(gov.nih.nlm.ncbi.www.soap.eutils.efetch_pmc.Media media) {\r\n this... | [
"0.7578931",
"0.7210879",
"0.67638963",
"0.67465883",
"0.6696991",
"0.6661409",
"0.66561806",
"0.6535672",
"0.6531646",
"0.6421584",
"0.6363692",
"0.62968403",
"0.62461984",
"0.6237137",
"0.6111008",
"0.60952127",
"0.605694",
"0.6000692",
"0.597772",
"0.59637535",
"0.5898219"... | 0.65503347 | 7 |
Setter for the activity object's mMedia property. | public void setMedia(JRMediaObject mediaObject) {
if (mMedia == null)
mMedia = new ArrayList<JRMediaObject>();
mMedia.add(mediaObject);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setMedia(String m) {\n\t\tmedia = m;\n\t}",
"public void setMediaField(MediaField m) {\n\tmediaField = m;\n }",
"public void setMedia(java.lang.String media) {\n this.media = media;\n }",
"public void setMedia(gov.nih.nlm.ncbi.www.soap.eutils.efetch_pmc.Media media) {\r\n this... | [
"0.7578931",
"0.7210879",
"0.67638963",
"0.67465883",
"0.6696991",
"0.6661409",
"0.65503347",
"0.6535672",
"0.6531646",
"0.6421584",
"0.6363692",
"0.62968403",
"0.62461984",
"0.6237137",
"0.6111008",
"0.60952127",
"0.605694",
"0.6000692",
"0.597772",
"0.59637535",
"0.5898219"... | 0.66561806 | 6 |
Getter for the activity object's mProperties property. | public Map<String, Object> getProperties() {
return mProperties;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public final Properties getPropertiesObject()\n {\n return fProp;\n }",
"public Object getProperties() {\n return this.properties;\n }",
"public Properties getProperties() {\n\t\treturn this.properties;\n\t}",
"public Map<String, Object> getProperties()\n {\n return m_props;\n ... | [
"0.68058974",
"0.6604539",
"0.6590694",
"0.65703005",
"0.646685",
"0.6461687",
"0.64593494",
"0.6446616",
"0.63307893",
"0.63163966",
"0.631375",
"0.62996197",
"0.6283461",
"0.6283461",
"0.6266421",
"0.6266382",
"0.62576735",
"0.62576735",
"0.6249088",
"0.6243419",
"0.6217982... | 0.668089 | 1 |
Setter for the activity object's mProperties property. | public void setProperties(Map<String, Object> properties) {
mProperties = properties;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setProperty(Properties properties) {\r\n this.properties = properties;\r\n }",
"@Override\n\tpublic void setProperties(Properties p) {\n\t\t\n\t}",
"@Override\r\n\tpublic void setProperties(Properties properties) {\n\t\t\r\n\t}",
"public void setProperties(Properties properties) {\n ... | [
"0.5929981",
"0.58252823",
"0.570412",
"0.5641969",
"0.5624198",
"0.5613146",
"0.5599287",
"0.55716777",
"0.5558394",
"0.55572367",
"0.54819334",
"0.546943",
"0.5447772",
"0.54344124",
"0.5431536",
"0.54225963",
"0.54106015",
"0.5362133",
"0.5354944",
"0.5295246",
"0.5243581"... | 0.6019604 | 0 |
Set the index to be used | public void setIndex(Searcher searcher) {
this.searcher = searcher;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setIndex(int index) { this.index = index; }",
"private void setIndex(int index){\n\t\tthis.index = index;\n\t}",
"public void setIndex(int index){\r\n \tthis.index = index;\r\n }",
"public void setIndex(int index) {\n _index = index;\n }",
"public void setIndex(Integer index) {\n ... | [
"0.854916",
"0.84148663",
"0.83880615",
"0.8367676",
"0.82296073",
"0.82296073",
"0.82013905",
"0.81710166",
"0.80758286",
"0.8023738",
"0.8010769",
"0.7984125",
"0.7982711",
"0.7956774",
"0.7956459",
"0.7949953",
"0.7828407",
"0.77466637",
"0.7712594",
"0.7552619",
"0.749902... | 0.0 | -1 |
Obtain feedback documents for the specified query request | public abstract FeedbackDocuments getFeedbackDocuments(String topicId); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public DocFile[] searchResponse(ScoreDoc[] results, Query query) {\n\n DocFile[] result = new DocFile[results.length];\n FastVectorHighlighter highlighter = new FastVectorHighlighter(true,true);\n FieldQuery highlightQuery = highlighter.getFieldQuery(query); \n\n try {\n Inde... | [
"0.5528867",
"0.5365771",
"0.5325187",
"0.5325103",
"0.532115",
"0.5314306",
"0.5308339",
"0.5303972",
"0.524717",
"0.52436876",
"0.5216636",
"0.510744",
"0.5105478",
"0.50733286",
"0.5070874",
"0.5068824",
"0.50269717",
"0.50073755",
"0.4999812",
"0.49979958",
"0.49853808",
... | 0.63686246 | 0 |
Edit the travel Destination if the index is appropriate | public void editTravelDestination(int index, TravelItinerary travelDestination) {
if ((index < 0) || (index >= this.travelList.size())) {
throw new IndexOutOfBoundsException("index is out of range");
}
this.travelList.set(index, travelDestination);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setDestination(Locations destination);",
"private void sendUpdate(int dest) {\n Set<AS> prevAdvedTo = this.adjOutRib.get(dest);\n Set<AS> newAdvTo = new HashSet<AS>();\n BGPPath pathOfMerit = this.locRib.get(dest);\n\n /*\n * If we have a current best path to the destinat... | [
"0.62484825",
"0.5937848",
"0.57736254",
"0.56896704",
"0.56627893",
"0.5613171",
"0.56117535",
"0.5481429",
"0.5474734",
"0.5429349",
"0.5426407",
"0.540325",
"0.53846943",
"0.5380371",
"0.53169316",
"0.5258122",
"0.5237139",
"0.52361673",
"0.5229934",
"0.5224426",
"0.521087... | 0.68609345 | 0 |
This will return a travel itinerary based on a given index | public TravelItinerary getTravelDestinationAtIndex(int index) throws InvalidFieldEntryException {
if ((index < 0) && (index >= this.travelList.size() )) {
throw new InvalidFieldEntryException("Index of Travel Destination is invalid.");
}
return this.travelList.get(index);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"PositionVector getWaypoint(int index);",
"public tour getTour(int index) {\n return tours[index];\n }",
"public Tour getTour(int index) {\r\n\t return tours[index];\r\n\t }",
"com.expedia.www.packagefinder.database.exppackage.ExpPackageProtos.transitFlight getTransitFlights(int index);",
"public Fl... | [
"0.67189807",
"0.62156326",
"0.60939276",
"0.6090964",
"0.5898892",
"0.588812",
"0.588812",
"0.56861997",
"0.5621876",
"0.5582891",
"0.5521515",
"0.54962516",
"0.5434904",
"0.5428165",
"0.54126734",
"0.5374392",
"0.5324447",
"0.52986574",
"0.52922",
"0.52623624",
"0.5261384",... | 0.61801183 | 2 |
Can be used check to see if the travel Itinerary exists or is related to the claim in question | public boolean contains(TravelItinerary travelItinerary) {
for (TravelItinerary destination : this.travelList) {
if (destination.getDestinationName().equalsIgnoreCase(travelItinerary.getDestinationName())) {
return true;
}
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean hasFlightdetails();",
"boolean hasDoctorInAppointmentSchedule(Doctor doctor);",
"boolean hasReturnFlightLeg();",
"@Override\r\n\tpublic boolean beneficiaryExists(Beneficiary beneficiary) {\n\t\tif(beneficiary.getBeneficiaryAccNo() !=0) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\telse\r\n\t\t\treturn fals... | [
"0.62764204",
"0.62088627",
"0.60049975",
"0.5921689",
"0.587165",
"0.5787607",
"0.5787607",
"0.5787607",
"0.5787607",
"0.5787607",
"0.57874244",
"0.5745277",
"0.57401246",
"0.5720487",
"0.57131994",
"0.57070667",
"0.56727356",
"0.56705576",
"0.56115866",
"0.56016856",
"0.559... | 0.57417506 | 12 |
Returns all travelItinerary objects in the list as a readytodisplay String | @Override
public String toString() {
String travelListString = "";
if (this.travelList.size() > 0)
{
travelListString = this.travelList.get(0).getDestinationName() + " : " + this.travelList.get(0).getDestinationDescription();
}
for (int index = 1; index < this.travelList.size(); index ++) {
travelList... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public String toString() {\n String output = new String();\n for (Flight flight : itinerary) {\n output += flight.toStringWithoutCost() + \"\\n\";\n }\n\n // Gets output of two decimal places from cost.\n double cost = Math.round(price * 100) / 100.0;\n ... | [
"0.72850007",
"0.7140415",
"0.7119917",
"0.6765531",
"0.6728306",
"0.6714494",
"0.6712901",
"0.6599987",
"0.65981054",
"0.6562308",
"0.6541159",
"0.65049887",
"0.6501984",
"0.64896524",
"0.6447136",
"0.6406111",
"0.63955545",
"0.63801646",
"0.6361587",
"0.6359954",
"0.6356061... | 0.74873424 | 0 |
Gets the value of the loggable property. | public boolean isLoggable() {
return loggable;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String loggableValue(final String key) {\n ArgumentChecker.notNull(key, \"key\");\n final ConfigProperty cp = _properties.get(key);\n return cp != null ? cp.loggableValue() : null;\n }",
"@Override public boolean isLoggable() {\n\t\treturn this.loggable;\n\t}",
"public Boolean getLogged() {\n\... | [
"0.6845157",
"0.67761797",
"0.67345655",
"0.67181486",
"0.60270566",
"0.5991365",
"0.5877426",
"0.58755726",
"0.5835197",
"0.5812333",
"0.58055073",
"0.5780668",
"0.5773727",
"0.57479686",
"0.5743273",
"0.5736649",
"0.57186365",
"0.5715492",
"0.5699909",
"0.5684444",
"0.56821... | 0.71591157 | 0 |
Sets the value of the loggable property. | public void setLoggable(boolean value) {
this.loggable = value;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isLoggable() {\n return loggable;\n }",
"public void setLogged(boolean logged) {\n _logged = logged;\n }",
"public void setLogging(boolean logging);",
"public void setLog(boolean log)\n {\n this.log = log;\n }",
"public void setLog(boolean log) {\n this.lo... | [
"0.6146294",
"0.6021243",
"0.6007272",
"0.5985466",
"0.59294343",
"0.58983105",
"0.584665",
"0.5775519",
"0.56557035",
"0.56127274",
"0.5543518",
"0.55137914",
"0.5478807",
"0.54732645",
"0.53082776",
"0.52825195",
"0.52825195",
"0.5206604",
"0.5201132",
"0.51889247",
"0.5176... | 0.82674044 | 0 |
Factory objects to return users and their states | public ArrayList<SimUser> generateUsers(){
simUserFact = new SimUserFactory();
simUserStateFact = new SimUserStateFactory();
ArrayList<SimUser> su = new ArrayList<SimUser>();
// Generate a set amount of each type of user with their state set to shopping
for(int x ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public State getUsersState()\n\t{\n\t\treturn getState(users);\n\t}",
"private static Map<String, User> getUsers() {\n Map<String, User> users = new HashMap<String, User>();\n\n User userOne = new User(\"one\",\"1\");\n User userTwo = new User(\"two\",\"2\");\n\n users.put(userOne.get... | [
"0.6714557",
"0.62127256",
"0.60787475",
"0.6065828",
"0.60445124",
"0.60039395",
"0.6000565",
"0.5957442",
"0.59459984",
"0.59247005",
"0.5869002",
"0.5864649",
"0.58435184",
"0.5806153",
"0.57926947",
"0.5791747",
"0.57863957",
"0.57837754",
"0.5774029",
"0.5761818",
"0.575... | 0.6305074 | 1 |
Metodo para guardar el Usuario en el dispositivo | public void guardarSesion(String usuario, String Password, Button boton, boolean estadoBoton) {
SharedPreferences preferences = getPreferences(MODE_PRIVATE);
SharedPreferences.Editor editor = preferences.edit();
editor.putString("usuario",usuario);
editor.commit();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void guardar() {\n\t\tLOG.info(\"El usuario fue guardado \"+ usuario.getApellido()+\", \"+ usuario.getNombre());\n\t}",
"@Override\r\n\tpublic void guardar(Usuario usuario) {\n\t\tString pw = usuario.getPassword();\r\n\t\tBCryptPasswordEncoder bCryptPasswordEncoder = new BCryptPasswordEncoder... | [
"0.73427415",
"0.7260936",
"0.6837133",
"0.6772336",
"0.67565227",
"0.6731255",
"0.66527325",
"0.6651385",
"0.65881014",
"0.6567544",
"0.6519758",
"0.6508177",
"0.6485992",
"0.6482844",
"0.6436376",
"0.6357104",
"0.63389635",
"0.6305765",
"0.62876266",
"0.62785566",
"0.627669... | 0.631175 | 17 |
Vemos si existe alguna cuenta activa. | public boolean obtenerSesion(){
SharedPreferences preferences = getSharedPreferences(STRING_PREFERENCES,MODE_PRIVATE);
return preferences.getBoolean(PREFERENCE_ESTADO_BUTTON_SESION,false);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean hayPartidaActiva ()\n {\n return partidaActiva;\n }",
"public boolean isUsuarioActivo(String nombreUsuario){\n\t\t\n \tUsuario u = this.buscarUsuarioPorNombre(nombreUsuario);\n \tif (u!=null){\n \t\treturn u.getEstado().toString().equals(\"A\");\n \t}\n \treturn false;\... | [
"0.61803836",
"0.6160154",
"0.6158588",
"0.61531144",
"0.5961167",
"0.59521675",
"0.58825696",
"0.5878141",
"0.5865961",
"0.586465",
"0.58163863",
"0.5808891",
"0.5782032",
"0.577889",
"0.57568604",
"0.57563686",
"0.5700812",
"0.565645",
"0.56543636",
"0.5647443",
"0.5614345"... | 0.0 | -1 |
Cambia el estado del boton | public void setBoton() {
SharedPreferences preferences = getSharedPreferences(STRING_PREFERENCES,MODE_PRIVATE);
preferences.edit().putBoolean(PREFERENCE_ESTADO_BUTTON_SESION,checkBox.isChecked()).apply();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setOn(){\n state = true;\n //System.out.println(\"Se detecto un requerimiento!\");\n\n }",
"public void comprobarEstado() {\n if (ganarJugadorUno = true) {\n Toast.makeText(this, jugadorUno + \" es el ganador\", Toast.LENGTH_SHORT).show();\n }\n if (ga... | [
"0.66817427",
"0.6442662",
"0.6427406",
"0.63580227",
"0.6333699",
"0.6244114",
"0.6180241",
"0.61575615",
"0.6124213",
"0.6119318",
"0.6056306",
"0.6056305",
"0.6043931",
"0.6042058",
"0.60369676",
"0.6034214",
"0.60099566",
"0.60093313",
"0.60062367",
"0.59810174",
"0.59452... | 0.66361815 | 1 |
/ JADX INFO: super call moved to the top of the method (can break code semantics) | a(ArrayList arrayList) {
super(1);
this.$result = arrayList;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void method_6349() {\r\n super.method_6349();\r\n }",
"public void method_1449() {\r\n super.method_1449();\r\n }",
"public void method_1449() {\r\n super.method_1449();\r\n }",
"public void method_1449() {\r\n super.method_1449();\r\n }",
"protected void method_3848() {\... | [
"0.7415376",
"0.7120564",
"0.7120564",
"0.7120564",
"0.71153504",
"0.70223135",
"0.7006699",
"0.6959695",
"0.69354844",
"0.68295795",
"0.6789057",
"0.6759874",
"0.6727165",
"0.6727165",
"0.6680012",
"0.6670413",
"0.6636899",
"0.66286534",
"0.6619911",
"0.6605483",
"0.6603786"... | 0.0 | -1 |
/ JADX WARNING: Code restructure failed: missing block: B:10:0x0024, code lost: throw r3; / JADX WARNING: Code restructure failed: missing block: B:5:0x001d, code lost: r3 = moveexception; / JADX WARNING: Code restructure failed: missing block: B:9:0x0021, code lost: kotlin.io.CloseableKt.closeFinally(r0, r2); / Code d... | public static final void appendBytes(@org.jetbrains.annotations.NotNull java.io.File r2, @org.jetbrains.annotations.NotNull byte[] r3) {
/*
java.lang.String r0 = "$this$appendBytes"
kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull(r2, r0)
java.lang.String r0 = "array"
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override // X.AnonymousClass0PN\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public void A0D() {\n /*\n r5 = this;\n super.A0D()\n X.08d r0 = r5.A05\n X.0OQ r4 = r0.A04()\n X.0Rk r3 = r4.A00() // Catch:{ all -> 0x... | [
"0.6973439",
"0.6797596",
"0.66826797",
"0.6475468",
"0.6395961",
"0.63812894",
"0.63672066",
"0.63667876",
"0.6344299",
"0.630975",
"0.63015956",
"0.6258424",
"0.6071477",
"0.6012242",
"0.59964466",
"0.5954397",
"0.58955735",
"0.5862448",
"0.58420926",
"0.5823754",
"0.581648... | 0.0 | -1 |
/ JADX WARNING: Code restructure failed: missing block: B:10:0x0023, code lost: throw r3; / JADX WARNING: Code restructure failed: missing block: B:5:0x001c, code lost: r3 = moveexception; / JADX WARNING: Code restructure failed: missing block: B:9:0x0020, code lost: kotlin.io.CloseableKt.closeFinally(r0, r2); / Code d... | public static final void writeBytes(@org.jetbrains.annotations.NotNull java.io.File r2, @org.jetbrains.annotations.NotNull byte[] r3) {
/*
java.lang.String r0 = "$this$writeBytes"
kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull(r2, r0)
java.lang.String r0 = "array"
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override // X.AnonymousClass0PN\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public void A0D() {\n /*\n r5 = this;\n super.A0D()\n X.08d r0 = r5.A05\n X.0OQ r4 = r0.A04()\n X.0Rk r3 = r4.A00() // Catch:{ all -> 0x... | [
"0.6968987",
"0.6818016",
"0.66919243",
"0.6501563",
"0.64228284",
"0.64011806",
"0.6393834",
"0.636736",
"0.63608515",
"0.6329392",
"0.63186073",
"0.6278746",
"0.60943395",
"0.6018817",
"0.60118216",
"0.5965537",
"0.5909961",
"0.58785045",
"0.5874184",
"0.58714724",
"0.58489... | 0.0 | -1 |
/ JADX WARNING: Code restructure failed: missing block: B:12:0x0033, code lost: kotlin.io.CloseableKt.closeFinally(r0, r3); / JADX WARNING: Code restructure failed: missing block: B:13:0x0036, code lost: throw r4; / JADX WARNING: Code restructure failed: missing block: B:8:0x002f, code lost: r4 = moveexception; / Code ... | public static final void forEachBlock(@org.jetbrains.annotations.NotNull java.io.File r3, int r4, @org.jetbrains.annotations.NotNull kotlin.jvm.functions.Function2<? super byte[], ? super java.lang.Integer, kotlin.Unit> r5) {
/*
java.lang.String r0 = "$this$forEachBlock"
kotlin.jvm.inter... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public JBlock _finally() {\n // This method could not be decompiled.\n // \n // Original Bytecode:\n // \n // 0: iconst_0 \n // 1: nop \n // 2: nop \n // 3: nop \n // 4: aload_3 \n ... | [
"0.6916314",
"0.69139194",
"0.6867838",
"0.6682664",
"0.6548818",
"0.6398269",
"0.63052857",
"0.6286383",
"0.62798285",
"0.62780935",
"0.62695897",
"0.6255405",
"0.6155533",
"0.6087545",
"0.6051897",
"0.60361797",
"0.60196275",
"0.59779173",
"0.59759474",
"0.59753597",
"0.593... | 0.5569991 | 48 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.