query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
/ renamed from: a
public void mo34303a(String str, Integration<?> integration, C11666k kVar) { if (C11633h.m30500a(this.f30206b.mo34332b(), str)) { integration.mo34323a(this.f30206b); } }
[ "public interface C3511a {\n /* renamed from: a */\n void mo29057a(int i);\n }", "interface C4511c {\n /* renamed from: a */\n void mo29775a();\n }", "public interface ans {\n /* renamed from: a */\n void mo1174a();\n}", "public interface C24712af {\n /* renamed from...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Maps the department codes used in the source CSV to the actual department names.
private String getDepartment(String num) { String deptName = "UNDEFINED"; switch (num) { case "1": deptName = "Food Science"; break; case "2": deptName = "Forest"; break; case "3": deptName = "Electrical"; break; case "4": deptName = "Aerospace Engineering"; break; case "5": dep...
[ "public Map<Integer, String> idDept(){\n\t\tMap<Integer, String> result = new TreeMap<>();\n\t\t//get same data from DB to populate a comboBox\n\t\tresult.put(1, \"Account\");\n\t\tresult.put(2, \"IT S2\");\n\t\tresult.put(3, \"Sales\");\n\t\tresult.put(4, \"Support\");\n\t\tresult.put(5, \"Other Labelz\");\n\t\tre...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ renamed from: a
public String m5373a(String str) { if (str.length() <= this.f4172b) { return str; } m5372a(new IllegalArgumentException(String.format(Locale.US, "String is too long, truncating to %d characters", new Object[]{Integer.valueOf(this.f4172b)}))); return str.substring(0, this.f417...
[ "public interface C3511a {\n /* renamed from: a */\n void mo29057a(int i);\n }", "interface C4511c {\n /* renamed from: a */\n void mo29775a();\n }", "public interface ans {\n /* renamed from: a */\n void mo1174a();\n}", "public interface C24712af {\n /* renamed from...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets up varibles for damage
public void damageEvent() { int damage = MiniRPG.players.get(selectedPlayerIndex).getDamage(); monsterHP = monsters.get(selectedMonsterIndex).getHp() - damage; monsters.get(selectedMonsterIndex).setHp(monsterHP); String DamageReport = monsters.get(selectedMonsterIndex).getName() + " take...
[ "public void setDamageAmount(float damage);", "void setDamage (int d) {\n\t\tdamage = d;\n\t}", "@Override\n public void setDamage(int damage) {\n }", "@Override\n\tpublic void setDamage(double damage) {\n\t}", "public void set_damage(double value)\r\n\t{\r\n\t\tdamage = value;\r\n\t}", "public void...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
a Name is a fully qualified name such as java/lang/System:out:java/io/PrintStream. A name has a different numbering system than a class or object.
public char newName(byte type,char classId,String name);
[ "public String getName()\r\n/* 122: */ {\r\n/* 123:250 */ return ClassUtils.getQualifiedName(getType());\r\n/* 124: */ }", "public static void printChildName(String name) {\n\t}", "public String getName() {\n return internalName.replace('/', '.');\n }", "public String getName() {\n if...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.maps, menu); return true; }
[ "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflator = getMenuInflater();\n\t\tinflator.inflate(R.menu.activity_action_bar, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\r\n public boolean onCreateOptionsMenu( android.view.Menu menu)\r\n {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Specifies the rawContent property: The raw content that represents to watchlist items to create. In case of csv/tsv content type, it's the content of the file that will parsed by the endpoint.
Update withRawContent(String rawContent);
[ "public void setContentRawString(String newContent);", "public BaiduMessage withRawContent(String rawContent) {\n setRawContent(rawContent);\n return this;\n }", "byte[] getRawContent();", "public byte[] getRawContent() {\n byte[] ret = new byte[httpObject.content().readableBytes()];\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set value of BankAccountDetails_Bank
public final void setBankAccountDetails_Bank(com.mendix.systemwideinterfaces.core.IContext context, nativemobile.proxies.Bank bankaccountdetails_bank) { if (bankaccountdetails_bank == null) getMendixObject().setValue(context, MemberNames.BankAccountDetails_Bank.toString(), null); else getMendixObject()....
[ "public void setBankAccountNo(String bankAccountNo);", "public void setBankAccount(BankAccountDetails bankAccount) {\n this.bankAccount = bankAccount;\n }", "public void setBank_code(String bank_code)\n/* */ {\n/* 291 */ this.bank_code = bank_code;\n/* */ }", "void updateBankAccount(BankAc...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Find the _Fields constant that matches fieldId, or null if its not found.
public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // PLATFORM_ARGS return PLATFORM_ARGS; case 2: // INIT_HOSTING_MACHINE_REQ return INIT_HOSTING_MACHINE_REQ; default: return null; } }
[ "@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1: // HR_ID\n return HR_ID;\n case 2: // COMPANY_ID\n return COMPANY_ID;\n case 3: // COMPANY_TAG_IDS\n return COMPANY_TAG_...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
repeated .jaeger.api_v2.Span spans = 1;
java.util.List<Model.Span> getSpansList();
[ "@Test\n public void messageWithMultipleSpans_json2() {\n messageWithMultipleSpans(SpanBytesEncoder.JSON_V2);\n }", "kamino.IngestionV1.Span getSpans(int index);", "public static JaegerTracer initTracer(String service) {\n SamplerConfiguration samplerConfig = SamplerConfiguration.fromEnv().withType(\"co...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method corresponds to the database table ych_org_video_introduce
int updateByPrimaryKey(OrgVideoIntroduce record);
[ "@Mapper\npublic interface VideoMapper {\n\n @Select(\"select * from t_video where id = #{id}\")\n public Video get(@Param(\"id\") Long id);\n\n @Select(\"select * from t_video\")\n public List<Video> getAll();\n\n @Insert(\"insert into t_video(name, description, size, length, path) values(#{name}, #...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Add an extension value and string to the content od the current node. This is used for adding variable references to the content
public void addContentValueExtension(Extension code, WBSAXString value) throws WBSAXException { try { getCurrentText().getBuffer().append(code, value); } catch (WBDOMException e) { throw new WBSAXException(e); } }
[ "private void setExtension(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n extension_ = value;\n }", "public void add_content(String content) {\n\t\tsuper.content = content;\r\n\t}", "public void setContent(String content){\n this.content ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
INTERNAL PROCESSING// Checks the arguments list to assign values to the fields. Terminates the program's execution in case of error.
private static void processArguments(String[] args) { if (args.length != 3){ cliBashln("Incorrect arguments."); cliBashln("Usage: java FileClient hostname port localFolder"); System.exit(1); } hostName = args[0]; try{ hostPort = Integer.parseInt(args[1]); } catch (NumberFormatException e) { cli...
[ "private void checkArguments(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tfor (int i = 0; i < args.length; i++) {\n\t\t\tString[] _temp = args[i].split(\"=\");\n\t\t\tif (\"-parentDir\".equals(_temp[0])) {\n\t\t\t\tm_parentDir = _temp[1];\n\t\t\t} else if (\"-inFolder\".equals(_temp[0])) {\n\t\t\t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get a map of products to their quantities in the shopping cart
public Map<Product, Integer> getItemWithQuantityProduct() { Map<Product, Integer> cartItemMap = new HashMap<>(); cartItemMap.putAll(this.cartItemMaps); return cartItemMap; }
[ "public HashMap<String, String> getBasketQuantities() {\n return basketQuantities;\n }", "public HashMap<String, String> getInventoryQuantities() {\n return inventoryQuantities;\n }", "public HashMap<Item, Integer> getItemsWithQuantity() {\n return items;\n }", "public Map<String, Cart...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a trigger that fires when the watermark passes timestamp of the first element added to the pane.
static <W extends BoundedWindow> TimeTrigger<W> pastFirstElementInPane() { return new FromFirstElementInPane<W>(TimeTrigger.IDENTITY); }
[ "int getTriggerBegin();", "@Override\n\tpublic void watermark () {\n\t\t//TODO: implement\n\t}", "public CustomEventsTrigger() {}", "@Override\n public void onMerge(TimeWindow window,\n OnMergeContext ctx) {\n long windowMaxTimestamp = window.maxTimestamp();\n if (windo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Retrieve department object to get departmentID
public Department retrieveDepartment(String department);
[ "public Department getDepartmentbyId(int departmentId);", "public void getDepartment(int departmentId) {\n\t\t\n\t}", "public int getDepartmentID()\n {\n return departmentID;\n }", "public java.lang.Integer getDepartment() {\n return departmentPk;\n }", "public int getDepartmentId() {...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ renamed from: v
public int mo3967v(String tag, String msg) { return Log.v(tag, msg); }
[ "void mo5832a(V v);", "protected abstract int mo4149c(V v);", "protected abstract V mo332a(int i, V v);", "protected void SetVector(NodeVector v) {\n/* 87 */ setObject(v);\n/* */ }", "protected final void mo7539a(V v) {\n this.a = v;\n }", "public float getV()\n {\n return v...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
My 2nd: sequential search with O(N) time
public int findPeakElement2(int[] nums) { int i = 0; for (; i < nums.length - 1 && nums[i] < nums[i + 1]; i++); // Stop at i=len-1 or A[i]>=A[i+1]. In both cases, peak is i return i; }
[ "public static void searchSequence(){\n int array[] = new int[10000000];\n int searchNum = sequenceInts(array);\n \n System.out.println(\"Searching for: \" + searchNum);\n\n long startTime1 = System.nanoTime();\n int inArray = jumpSearch(searchNum,array);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the new local
public static void setNewLocalManager(final PropertiesResourceManager newLoc){ localManager = newLoc; }
[ "public void setLocal(boolean local) {\n \t\tthis.local = local;\n \t}", "public void setLocal(boolean local) {\n isLocal = local;\n }", "void setLocalChanges(boolean isLocal) {\n setLocal = isLocal;\n }", "private boolean setLocalValue(JRPropertiesMap nodeMap, String newLocal) {\n\t\tlo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Contact the FriendRequestService to delete.
public abstract String delete(String userName);
[ "public void deleteFriendRequest(final int option) {\n friendRequestRef.document(userId).collection(\"sent to\")\n .document(currentUser.getUid()).delete().addOnSuccessListener(new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void aVoid) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Serializes an object in raw byte format.
@Override public byte[] serialize() { ByteArrayOutputStream data = new ByteArrayOutputStream(); data.writeBytes(NumberSerializer.serialize(m_services.getValue())); data.writeBytes(m_address); data.writeBytes(NumberSerializer.serialize((short) getPort())); return data.to...
[ "byte[] serialize(T object);", "@Override\n byte[] encode(final Object obj);", "com.google.protobuf.ByteString getBytesObj();", "private byte[] javaSerialize(Object object) throws IOException {\n ByteArrayOutputStream bytes = new ByteArrayOutputStream();\n ObjectOutputStream objectOutputStr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the values of the vector to the values contained in the given array
public void set (double values[]) throws Exception { if (values.length != this.size) { throw new Exception ("Bad size"); } this.values = values; }
[ "public final void set(double[] vector) {\n for (int i = length - 1; i >= 0; i--) {\n values[i] = vector[i];\n }\n }", "public Vector(double[] array) {\r\n this.array = array;\r\n }", "public void SetValue(Vector3[] value)\n\t{\n\t\tif ((this._parameterClass != EffectParame...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
//////////////////////////////////// Edit ///////////////////////////////////////// ///////// Edit Users /////////////// Creates an empty list and searches within the repository user list (checking if the user is an instance of the send class) for a given user and if found, adds it to the new list instead of the curren...
public List<User> editUsers(Class c, User user) { List<User> novaLista = new ArrayList<>(); for(User u : users) { if(c.isInstance(u)) { if(u.getUsername().equals(user.getUsername())) { novaLista.add(user); } ...
[ "private void setUserListLater(PresenceInfo info, ChangeType type) {\n \n \tif (type.equals(ChangeType.USER_REMOVED) || ((members.contains(info) == false &&\n \t\tinvitedMembers.contains(info) == false &&\n \t\tisInRangeOfSomebody(info) == false))) {\n \n \t remove(info);\n \t return;\n \t}\n \n \tif (mode.eq...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Display Synset on the terminal
public void printAntonym(String wordForm, ArrayList<IWord> synsets) { // Display the word forms and definitions for synsets retrieved if (!synsets.isEmpty()) { System.out.println("================= ANTONYM===================="); System.out.println("The following antonymes contain...
[ "public void setRaw(){\n try{\n String[] cmd = {\"/bin/sh\", \"-c\", \"stty -echo raw </dev/tty\"};\n Process newProcess1=Runtime.getRuntime().exec(cmd);\n newProcess1.waitFor();\n } catch(Exception ex){\n ex.printStackTrace();\n }\n }", "protect...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the "TelephoneAreaCodeID" element
public gov.niem.niem.proxy.xsd._2_0.String getTelephoneAreaCodeID() { synchronized (monitor()) { check_orphaned(); gov.niem.niem.proxy.xsd._2_0.String target = null; target = (gov.niem.niem.proxy.xsd._2_0.String)get_store().find_element_user(TELEPHONEAREACODEID$0,...
[ "String getAreaCode();", "public String getAreacodepro() {\n return areacodepro;\n }", "public String getAreaNo()\n\t{\n\t\treturn getColumn(OFF_AREA_NO, LEN_AREA_NO);\n\t}", "public String getMcpeAreaCodeName() {\r\n return mcpeAreaCodeName;\r\n }", "@Column(length = 5, name = \"area_co...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Update a single row in the stock table.
private void updateTable(StockData price) { // Make sure the stock is still in the stock table. if (!stocks.contains(price.getSymbol())) { return; } int row = stocks.indexOf(price.getSymbol()) + 1; // Format the data in the Price and Change fields. String priceText = NumberFormat.getFormat("#,...
[ "int updateByPrimaryKey(stockPrice record);", "int updateByPrimaryKeySelective(ItemStockDo record);", "int updateByPrimaryKey(PauseStock record);", "@Override\r\n\tpublic int stockUpdate(StockDto dto) {\n\t\treturn dao.stockUpdate(dto);\r\n\t}", "@Override\n\tpublic void updateStock(int stock) throws Except...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Just set these to uniformly distributed in [0.5, 0.5]
public void randomizeBiases() { this.biases = Matrix.randomUniform(1, this.outputSize, 0.5f); }
[ "@Override\n protected double nextRandomWeight() {\n return min + randomGen.nextDouble() * (max - min);\n }", "@Override\r\n\tpublic void randomize(Random r, double min, double max) {\n\t\t\r\n\t}", "public void setx() {\n\t\tRandom rand=new Random();\n\t\tthis.x=rand.nextInt(5)*100;\n\t}", "@Ove...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional int32 gold = 6 [default = 1];
boolean hasGold();
[ "public int getGold()\n {\n return gold;\n }", "public void generateGold()\n {\n gold=gold+3;\n }", "double getGold();", "public int getGold(){\n\treturn this.gold;\n\t}", "@Override\n\tpublic int goldNeeded() {\n\t\treturn super.goldNeeded() + 200;\n\t}", "public int getCurrentGold(){\r\n\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Tick function called every tick
public void tick() { if( teleportCooldown > 0 ) teleportCooldown--; }
[ "public static void tick() {\n\t}", "public void tick(){\n\t\t\n\t}", "public void tick() {\n }", "public void tick()\n\t{\n\t}", "void onTick()\n\t{\n\t\tif (trackTick)\n\t\t{\n\t\t\tstartOfLastTick = Instant.now(); //Reset the tick timer\n\t\t\ttrackTick = false;\n\t\t}\n\t\telse\n\t\t{\n\t\t\ttrac...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a new Message RecordBuilder by copying an existing Builder.
public static avro.Message.Builder newBuilder(avro.Message.Builder other) { if (other == null) { return new avro.Message.Builder(); } else { return new avro.Message.Builder(other); } }
[ "public static org.avrotest.joinedfqrecord.Builder newBuilder(org.avrotest.joinedfqrecord.Builder other) {\n return new org.avrotest.joinedfqrecord.Builder(other);\n }", "private Builder(io.konu.chat.model.avro.Message.Builder other) {\n super(other);\n if (isValidValue(fields()[0], other.id)) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
fin del metodo eliminar / metodos para obtener los registros de la base de datos >>
public ArrayList<LibroVO> cargarLibros(){ Conexcion cnx=new Conexcion();// cargamos la conexion a la base de datos ArrayList<LibroVO> listado=new ArrayList<>();// arreglo para cargar la informacion a mostrar try{ cnx.conectar();// abrir conexion String cslt="SELECT ...
[ "private void LimpiandoReguistro(){\r\n\t\tcod_rol = null;\r\n\t\tdescripcion = null;\r\n\t\tArbolOpciones = null;\r\n\t}", "public void borrarDatos() {\n parametros = null;\n tieneDatasource = null;\n nombreReporte = null;\n nombreDocumento = null;\n nombreSubCarpeta = null;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checks if a player finished and refreshes the process in case of finishing.
private void updateFinishedPlayer(Player player) { if(player == null) return; if(player.getCards().size() == 0) { player.getLeftPlayer().setRightPlayer(player.getRightPlayer()); player.getRightPlayer().setLeftPlayer(player.getLeftPlayer()); player.setType(PlayerConstants.PlayerType.NOT_...
[ "public static void taskComplete(Player player) {\r\n\t\t\r\n\t}", "void onPlayerFinished();", "public boolean raceFinished() {\n return finished == players.size();\n }", "private boolean isCompleted() {\n\t\tint currentNoOfPlayers = players.size();\n\t\tif(currentNoOfPlayers != intialNoOfPlayers)\n\t\t\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
get file list where the path has
private static void createRepositorys(String entityPath,String repositoryPath) { File dir = new File(entityPath); for (File file1:dir.listFiles()) { if (file1.isFile()) { String filePath = file1.getPath(); createRepository(repositoryPath,filePath); } else if (file1.isDirectory()) { String re...
[ "File[] listFiles(String path);", "public List<File> getLocations();", "List<Path> list(String ext) throws IOException;", "private List<Path> getListOfContainedFiles(Path path) {\n try {\n return Files.list(path).collect(Collectors.toList());\n } catch (IOException e) {\n l...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__Database__Group_5__1__Impl" $ANTLR start "rule__Database__Group_6__0" InternalStubbrLang.g:11535:1: rule__Database__Group_6__0 : rule__Database__Group_6__0__Impl rule__Database__Group_6__1 ;
public final void rule__Database__Group_6__0() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalStubbrLang.g:11539:1: ( rule__Database__Group_6__0__Impl rule__Database__Group_6__1 ) // InternalStubbrLang.g:11540:2: rule__Database_...
[ "public final void rule__Statement__Group_6__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:7871:1: ( rule__Statement__Group_6__0__Impl rule__Statement__Group_6__1 )\n // InternalMyDsl.g:7872:2: rule__Statement_...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
accessor for grappleability of object
public boolean isGrappleable() { return _grappleable; }
[ "Property getRealProperty();", "@Override\n public A get() {\n return value;\n }", "Property getAtt();", "public double getDirectionalDeadzone ()\r\n{\r\n return this.directionalDeadzone;\r\n}", "boolean getAnon();", "@Override // X.AnonymousClass0WY\n public final Boolean get() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Over level 48 herb buys item in notes. 0 == noted 2 == unnoted
public int index() { if (getLevel() >= 48) return 0; return 2; }
[ "private void boughtByCurrentUser() {\n try {\n PSLotStatus lTemplate = new PSLotStatus();\n PSLotStatus lStatus = (PSLotStatus) space.readIfExists(lTemplate, null, 100);\n\n int noOfItems = lStatus.nextLot;\n\n for (int currentItem = 0; currentItem < noOfItems; cu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Catalog attributes that were reset. [Catalog attributes][google.cloud.retail.v2beta.CatalogAttribute] that are either [in use][google.cloud.retail.v2beta.CatalogAttribute.in_use] by products or are predefined attributes cannot be deleted; however, their configuration properties will reset to default values upon removal...
com.google.protobuf.ByteString getResetCatalogAttributesBytes(int index);
[ "public void attributesInittedClear() {\r\n this.attributesInitted = false;\r\n \r\n Map<String, String> virtualAttributes = BaseSourceAdapter.virtualAttributesForSource(this.getSource());\r\n\r\n if (GrouperUtil.length(virtualAttributes) == 0) {\r\n return;\r\n }\r\n\r\n // remove the virtua...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
removes the selected meal list object from the meal list Event Listener on Button[RemoveFromMealList].onAction
@FXML public void removeFromMealList(ActionEvent event) { FoodItem currItem = MealList.getSelectionModel().getSelectedItem(); mealObList.remove(currItem); initialize(); }
[ "private void btnDelClicked() {\r\n\t\tint intIndice = 0;\r\n\t\tif (!lstAnimal.isSelectionEmpty()) {\r\n\t\t\tintIndice = lstAnimal.getSelectedIndex();\r\n\t\t\t// remove do JList\r\n\t\t\tmodel.remove(intIndice);\r\n\t\t\t// remove dos vetores de perguntas e respostas\r\n\t\t\tpergunta.remove(intIndice);\r\n\t\t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
repeated .hadoop.yarn.QueueConfigurationsMapProto queueConfigurationsMap = 12;
org.apache.hadoop.yarn.proto.YarnProtos.QueueConfigurationsMapProtoOrBuilder getQueueConfigurationsMapOrBuilder( int index);
[ "public interface TTConfig extends MRConfig {\n // Task-tracker configuration properties\n public static final String TT_HTTP_ADDRESS = \n \"skewtune.tasktracker.http.address\";\n\n public static final String TT_HOST_NAME =\n org.apache.hadoop.mapreduce.server.tasktracker.TTConfig.TT_HOST_NAM...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__Member__NameAssignment_2_0_2_0_2" $ANTLR start "rule__Member__TypeAssignment_2_0_2_0_4" InternalSARL.g:45237:1: rule__Member__TypeAssignment_2_0_2_0_4 : ( ruleJvmTypeReference ) ;
public final void rule__Member__TypeAssignment_2_0_2_0_4() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalSARL.g:45241:1: ( ( ruleJvmTypeReference ) ) // InternalSARL.g:45242:2: ( ruleJvmTypeReference ) { // In...
[ "public final void rule__XRelationalExpression__TypeAssignment_1_0_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../fr.obeo.dsl.sprototyper.ui/src-gen/fr/obeo/dsl/ui/contentassist/antlr/internal/InternalSPrototyper.g:25730:1: ( ( ruleJ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
repeated .dash.BuildData.Target targets = 6;
public com.google.devtools.build.lib.bazel.dash.DashProtos.BuildData.Target.Builder addTargetsBuilder( int index) { return getTargetsFieldBuilder().addBuilder( index, com.google.devtools.build.lib.bazel.dash.DashProtos.BuildData.Target.getDefaultInstance()); }
[ "@Test\n public void testMultiCall() {\n Vector<String> v = new Vector<>();\n v.add(\"call-multi\");\n v.add(\"call-multi\");\n buildRule.getProject().executeTargets(v);\n assertThat(buildRule.getLog(), containsString(\"multi is SETmulti is SET\"));\n }", "@Test\n\tpublic ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method corresponds to the database table t_bill_pplication_destruction_mingxi
public Criteria createCriteria() { Criteria criteria = createCriteriaInternal(); if (oredCriteria.size() == 0) { oredCriteria.add(criteria); } return criteria; }
[ "protected short[][] production_table() {return _production_table;}", "@Override\n\tpublic List getWaste() {\n\t\t List temp = new ArrayList();\n\t\t\tMap map = new HashMap();\n\t\t Session session = this.sessionFactory.getCurrentSession();\n\t\t\tString hql = \"SELECT (a.allocation-a.consumption) as waste, a....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Add any custom codes here
public RegistryProfileType(int registryId, String registryDesc, boolean active, Date registeredDate) { super(registryId, registryDesc); this.active = active; this.registeredDate = registeredDate; }
[ "protected void emitCustomCode() {\n\n\t\temitStdFunc(\"initChars\");\n\t\temitStdFunc(\"allChars\");\n\t\temitFuncBoxInt();\n\t\temitFuncBoxBool();\n\t\temitFuncStrCat();\n\t\temitFunStrEql();\n\t\temitFunStrNeql();\n\t\tif (emitListConcatFlag) {\n\t\t\temitListConcatFunc();\n\t\t}\n\n\t\temitErrorFunc(errorNone, ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void beforeTextChanged(CharSequence s, int start, int count, int after) { }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the path through the maze. First element is starting location, and last element is exit location. If there was not path, or if this is called before search, returns empty list.
public ArrayList<MazeCoord> getPath() { return solutionPath; }
[ "public List<BoardLocation> getPath()\n\t\t{\n\t\t\tList<BoardLocation> locations = new ArrayList<BoardLocation>();\n\t\t\tMove current = this;\n\n\t\t\twhile ( current != null )\n\t\t\t{\n\t\t\t\tlocations.add( current.loc );\n\t\t\t\tcurrent = current.previous;\n\t\t\t}\n\n\t\t\treturn locations;\n\t\t}", "Arra...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Write your solution here.
public void sort(LinkedList<Integer> s1) { if (s1 == null || s1.size() == 0){ return; } LinkedList<Integer> s2 = new LinkedList<Integer>(); sort2(s1,s2); }
[ "public static void solution() {\n\n\t}", "private static void solve() {\n\t\t\n\t}", "public static void main(String[] args) {\r\n\t\t// TODO Auto-generated method stub\r\n//System.out.println(solution(\"we test coders.Give us a try\"));\r\n\t\t//System.out.println(solution(\"forget cvs...save time.x x\"));\r\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__XMemberFeatureCall__Group_1_0_0_0__1__Impl" $ANTLR start "rule__XMemberFeatureCall__Group_1_0_0_0__2" InternalCreate.g:11950:1: rule__XMemberFeatureCall__Group_1_0_0_0__2 : rule__XMemberFeatureCall__Group_1_0_0_0__2__Impl rule__XMemberFeatureCall__Group_1_0_0_0__3 ;
public final void rule__XMemberFeatureCall__Group_1_0_0_0__2() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalCreate.g:11954:1: ( rule__XMemberFeatureCall__Group_1_0_0_0__2__Impl rule__XMemberFeatureCall__Group_1_0_0_0__3 ) // Interna...
[ "public final void rule__XMemberFeatureCall__Group_1_1_1_2__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../fr.obeo.dsl.sprototyper.ui/src-gen/fr/obeo/dsl/ui/contentassist/antlr/internal/InternalSPrototyper.g:14570:1: ( rule__XMemberF...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Setter for relation 'ObjectNode>RepresentedRole' Metamodel description: Shortcut to directly represent an association end by the node. This replaces the normal way: representing an instance bound to the associationEnd.
@objid ("7630abcc-8457-492e-8c6d-629ef1d17530") void setRepresentedRole(AssociationEnd value);
[ "public void setEndRoleName(String endRoleName) {\n\t\tif (endRoleName != null /* && !endRoleName.equals(\"\") */) {\n\t\t\taddDecoration(endRoleNameLabel, endRoleName, endRoleNameUDist,\n\t\t\t\t\tendRoleNameVDist, true);\n\t\t}\n\t}", "private void drawAssociationEnd(RamEnd<AssociationEnd, ClassifierView<?>> ra...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Entry point of the application
public static void main(String[] args) { //Creating the instance of the Human class Human human = new Human("Abdul", 33, "Computer Programmer", 60000); human.intro();//Here the base class Human has the access to its own methods System.out.println("\n"); //Creating the instance of the child class ...
[ "public static void main(String[] args){\n Application app = new Application();\n app.run();\n }", "public void entry() {\n\n\t}", "public static void main(String[] args) {\n Application app = new Application();\n app.run();\n\n }", "public static void main (String[]args){//S...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
saveGame writes the model object to file using Serializable
public void saveGame() throws Exception { FileOutputStream in = new FileOutputStream("gameState.txt"); ObjectOutputStream ois = new ObjectOutputStream(in); ois.writeObject(model); }
[ "public void saveGame(){\n\t\ttry {\r\n\t\t\t//open a file called Saveobj.save\r\n\t\tFileOutputStream saveFile=new FileOutputStream(\"SaveObj.sav\");\r\n\t\t\r\n\t\t// Create an ObjectOutputStream to put objects into save file.\r\n\t\tObjectOutputStream save = new ObjectOutputStream(saveFile);\r\n\t\t // Getname w...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
methods for adding and removing items from the list
public void addItem (Book item) { titles[numberOfItems++] = item; }
[ "public void removeItem()\n {\n }", "public static void main(String[] args) {\n// \r\n//// BUSCANDO ITEM NA LISTA\r\n// System.out.println(\"----Item Buscado----\");\r\n// System.out.println(myList.getElement(2));\r\n// \r\n//// REMONVENDO PELO ELEMENTO\r\n//// ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public boolean deleteProduct(Product product) { try { sessionFactory.getCurrentSession().delete(product); return true; }catch (Exception e) { // TODO: handle exception } return false; }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Unit test for isPartitionColumn().
@Test public void testIsPartitionColumn() { { // Case 1 // No partition fields: isPartitionColumn() should return false. int fieldId = 3; IcebergColumn column = new IcebergColumn("name", Type.BOOLEAN, "comment", 0, fieldId, 5, 0, true); List<IcebergPartitionField> fieldList...
[ "boolean hasQueryPartition();", "@Override\n public void testPartition() {\n\n }", "public void testPartitioned() throws Exception {\n cacheMode = PARTITIONED;\n nearEnabled = true;\n\n check();\n }", "@Test\n public void testEmptyPartitionValue() throws Exception {\n FeFsTab...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets student by given id
@GetMapping(value = "/students/{id}") @ApiOperation(value = "Get student by given id", response = Student.class) public StudentResource getStudentById(@PathVariable Integer id) { return studentService.getStudentResourceById(id); }
[ "public Student getStudent(int id);", "Student getStudent(int id);", "public Student getStudent(long id) throws Exception{\n for(Student student:students){\n if(student.getId()==id){\n return student;\n }\n }\n return null;\n }", "@Override\n\tpubli...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets whether the location entry is tracked
public boolean isTrackLocation() { return trackLocation; }
[ "boolean hasTracking();", "public static boolean isTracking() {\n\t\treturn isTracking;\n\t}", "public boolean isTracking() {\n\t\treturn isTracking;\n\t}", "boolean hasRawLocation();", "public boolean isTrackingOn() {\n return mSharedPreferences.getBoolean(KEY_TRACKING_ON, false);\n }", "public...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Action for 'NO' Button
public void onClick(DialogInterface dialog, int id) { dialog.cancel(); }
[ "public static void btnNoPressed() {\r\n\t\tselection = JOptionPane.NO_OPTION;\r\n\t\tpropagating = false;\r\n\t\tdialog.dispose();\r\n\t}", "public void clickedNo() {\n\t\t\n\t\t// Get rid of Yes/No buttons now that they have been clicked\n\t\tgetObject(\"yes\").setVisible(false);\n\t\tgetObject(\"no\").setVisib...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override protected void onRestart() { super.onRestart(); }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a list of Transfers for a given payment that have been previously created.
public static PayabbhiCollection<Transfer> transfers(String id) throws PayabbhiException { return transfers(id, null); }
[ "public ArrayList<Payment> getPayments() {\n Payment p = new Payment(0);\n String query = \"SELECT * FROM payments WHERE bookingid = \"\n + this.getPk();\n\n return p.getCustom(query);\n }", "List<Payment> listNonPaidpayments();", "List<Transfers> getTransfers();", "public Arra...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
clear all data except cookies
public void reset() { if (mHttpURLConnection != null) { mHttpURLConnection.disconnect(); } mHttpURLConnection = null; mStatusCode = null; }
[ "void clearAllCookies() {\n // null mDataBase implies that the host application doesn't support\n // persistent cookie.\n if (mDataBase == null) {\n return;\n }\n\n mDataBase.clearCookies();\n }", "public void removeAllCookies() {\r\n cookieStore.removeAll()...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column ods_dish.Description
public void setDescription(String description) { this.description = description; }
[ "public void setDesc(String desc)\r\n {\r\n this.desc = desc;\r\n }", "public void setDesc(String desc) {\n \n this.desc = desc;\n }", "public void setDescription(String des)\n {\n this.itemDescription = des;\n }", "void setDescription(String d) {\n\t\tdescription = d;\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Insert a new edge connection two vectors with the given time.
public Graph.GraphBuilder withVector(String source, String destination, Integer time) { if (source == null || destination == null || time == null) throw new NullPointerException(); if (source.equals(destination)) throw new IllegalArgumentException( String.format("Source %s and Destination %s cannot...
[ "private Edge(Vertex start, Vertex end, int contactTime) {\n this.start = start;\n this.end = end;\n this.contactTimes = new TreeSet<>();\n this.contactTimes.add(contactTime);\n }", "public void insertVertexTime(VertexPulse v){\n\t\tentrance.insertVertexTime(v);\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Scanner input = new Scanner(System.in); //Commented out because Scanner has now been raised in scope
public static void login(int loginMethod) { String filename = ""; switch(loginMethod) { case 1: filename = "type1.txt"; break; case 2: filename = "type2.txt"; break; case 3: filename = "type3.txt"; break; default: println("Invalid login method"); break; } print(" Enter username $>"); ...
[ "private InputFromConsole() {\r\n\t\tscanner = new Scanner(System.in);\r\n\t}", "public ConsoleInput() {\n sc = new Scanner(System.in);\n }", "public Input(){// no argument constructor\n System.out.println(\"creating new input instance.\");// extra line, can comment out\n this.scanner = ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets a recent Reddit post to then post to an instagram story.
public Content getStory() { UserAgent userAgent = new UserAgent("SMBuilder", "com.mzinck.smbuilder", "v0.1", username); Credentials credentials = Credentials.script(username, password, clientId, clientSecret); //clientid client secret NetworkAdapter adapter = new OkHttpNetworkAdapter(userAgent);...
[ "public String queryReddit(String subR,int n,String searching) {\n Logger logger = LoggerFactory.getLogger(RedditStream.class);\n StringBuilder Postscore = new StringBuilder();\n\n SearchPaginator search = redditClient.subreddit(subR)\n .search()\n .limit(n)\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the event's index
public int getEventIndex() { return eventIndex; }
[ "int getEvents(int index);", "public int getIndex()\n {\n return index;\n }", "public int getEventNumber()\n {\n return eventNumber;\n }", "public int getIndex() {\n\n return index;\n }", "public E getIndex() {\n return index;\n }", "public final int getIndex(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Created by PC on 2016/6/5.
public interface IMessageDAO { int saveMessage(Message message); }
[ "@Override\n public void extornar() {\n \n }", "@Override\n }", "private static void EX5() {\n\t\t\r\n\t}", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n public int utilite() {\n ret...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
private void initComponents() {//GEN-BEGIN:initComponents java.awt.GridBagConstraints gridBagConstraints; buttonGroup2 = new javax.swing.ButtonGroup(); buttonGroup3 = new javax.swing.ButtonGroup(); buttonGroup1 = new javax.swing.ButtonGroup(); jPopupMenu1 = new javax.swing.JPopu...
[ "public StForm() {\n initComponents();\n }", "public CineForm() {\n initComponents();\n }", "public javaform() {\n initComponents();\n }", "public EditDemographicForm() {\n initComponents();\n }", "public FightForm() {\n initComponents();\n }", "public For...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
When previous button is clicked, decrease position by one and start playing
@Override public void onClick(View view) { if(position == 0){ // If current song is the first of list, set previous song to first position position = 0; } else{ position--; } startPlaying(position); ...
[ "public void buttonPreviousClicked() {\n if(reader != null){\n if(sliderMedia.getValue()>1){\n reader.getPlayer().seek(Duration.ZERO);\n return;\n }\n buttonStopClicked();\n viewPlaylists.getSelectionModel().select(runningPlaylist);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column sotwo_goods_specification.specification
public void setSpecification(String specification) { this.specification = specification; }
[ "public void setSpecification(NlsString value1)\n // -end- 33EC14D000FA set_head40432AE50263 \"specification\"\n {\n // -beg- preserve=no 33EC14D000FA set_body40432AE50263 \"specification\"\n if(specification!=value1 && (specification==null || !specification.equals(value1))){\n specification = value1;...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create a new hypergraph generator
public GraphGenerator(int t, List<String> var_names) { super(t, var_names); m_tGroups = generateTuples(); }
[ "GraphGenerator() \n\t{\n\t}", "public static HyperGraph generateHyperGraph() {\n\t\tHyperGraph graph = new HyperGraph(\"c:\\\\HypergraphDB\");\t\n\t\t\t\t\n\t\tStopWatch timer = new LoggingStopWatch(\"generateHyperGraph()\");\n\t\t\n\t\tint count = 10 * 1000 * 1000;\n\t\t\t\n\t\tHGHandle[] handles = new HGHandle...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
System.out.println("Rendering dagger"); if (entityIn.ticksExisted >= 2 || !(this.renderManager.info.getRenderViewEntity().getDistanceSq(entityIn) < 12.25D))
public void render(T entityIn, float entityYaw, float partialTicks, PoseStack matrixStackIn, MultiBufferSource bufferIn, int packedLightIn) { { // ArrowRenderer<?> d; matrixStackIn.pushPose(); matrixStackIn.scale(this.scale, this.scale, this.scale); matrixStackIn.mulPose(Vector3f.YP.rotationDegrees(Mth.le...
[ "@Override\r\n\tpublic void render(float delta) {\n\t Gdx.gl.glClearColor(0.0f, 0.0f, 0.0f, 1);\r\n\t Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT |GL20.GL_DEPTH_BUFFER_BIT);\r\n\t \r\n\t\t if( state == State.CHANGING )\r\n\t\t {\r\n\t\t \t if ( first )\r\n\t\t \t {\r\n\t\t\t \t Co...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return the timeout between two consecutives Selector.select() when a temporary Selector is used.
public int getReadTimeout() { return readTimeout; }
[ "private final int performSelect(long millisTimeout) throws ExceptionUDT {\n\t\tint readyCount = 0;\n\t\tsaveWakeupBase();\n\t\tif (millisTimeout < 0) {\n\t\t\t/* infinite: do select in slices; check for wakeup; */\n\t\t\tdo {\n\t\t\t\treadyCount = doSelectSocketUDT(DEFAULT_MIN_SELECTOR_TIMEOUT);\n\t\t\t\tif (ready...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Este metodo toma los atributos de la clase
int sumar() { return a + b; }
[ "@Override\n }", "@Override\n\t\tpublic void classement() {\n\t\t\t\n\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "public Levyt(){\n\t\t\t//oletus muodostaja\n\t\t}", "@Override\r\n public void publicando() {\n }...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by Apache iBATIS ibator. This method returns the value of the database column DY_STP_RETRANSMITION_QOS.DAY
public Date getDay() { return day; }
[ "public Number getDayDate()\n {\n return (Number)getAttributeInternal(DAYDATE);\n }", "public BigDecimal getDAY_OF_WEEK() {\r\n return DAY_OF_WEEK;\r\n }", "public int getDay(){\n\t\treturn expDay;\n\t}", "public BigDecimal getElapsedDay() {\r\n return elapsedDay;\r\n }", "String ge...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Permet d'ajouter des formes dans le canvas, dans la liste de formes et dans le combo box
public void ajouterForme(DetailsForme detailsForme) { Forme forme = null; switch (formeChoisie) { case CARRE -> { forme = new Carre(detailsForme.getX1(), detailsForme.getY1(), detailsForme.getLargeur(), detailsForme.getCouleurBordure(), detailsForme.getCouleurInterieur(), det...
[ "public void contar ()\n{\n TipoAtaque = (String)cbAtaque.getSelectedItem();\n pdef = Integer.parseInt((String)cbDefensa.getSelectedItem());\n pata = Integer.parseInt((String)cbPAtaque.getSelectedItem());\n \n Estructuras lz = lplantas;\n// if (lz == null)\n// ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public String getName() { return null; }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Unassigned a delivery request using the design pattern Command. The delivery request must be already assigned to a delivery man. The delivery request is not removed from the map.
public CmdUnassignDelivery(Map map, Delivery delivery) { this.map = map; this.delivery = delivery; this.oldDeliveryMan = delivery.getDeliveryMan(); if (oldDeliveryMan != null) { this.oldIndex = oldDeliveryMan.getDeliveries().indexOf(this.delivery); } else { ...
[ "public RemoveDeliveryCommand(Delivery delivery) {\n this.delivery = delivery;\n this.timeSlot = delivery.getTimeSlot();\n this.node = delivery.getNode();\n }", "public void unregisterOutstandingRequest( AbandonableRequest request )\n {\n try\n {\n outstandingLo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Invoked when the value of a variable has changed. Slider listeners are notified if the slider value has changed.
@Override public void changeVariables(Object source, Map<String, Object> variables) { super.changeVariables(source, variables); if (variables.containsKey("value")) { final Object value = variables.get("value"); final Double newValue = new Double(value.toString()); ...
[ "public void changed(ObservableValue<? extends Number> obsValue, Number number, Number sliderNum) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetColorEffect();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}", "public void valueChanged(ValueEvent e);", "public SliderBuilder onChange(Co...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Overriden method getCount to get the number of tabs
@Override public int getCount() { return tabCount; }
[ "@Override\r\n public int getCount() {\r\n return numOfTabs;\r\n }", "@Override\n public int getCount() {\n return mNumbOfTabs;\n }", "@Override\n\tpublic int getCount() {\n\t\treturn mTabs.size();\n\t}", "@Override\n public int getCount() {\n return tabCount;\n }", "@Override...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column logging_event.arg3
public String getArg3() { return arg3; }
[ "public int get_log_msg_debug_arg3() {\n return (int)getUIntElement(offsetBits_log_msg_debug_arg3(), 16);\n }", "java.lang.String getArg3();", "public java.lang.String getArg3() {\n java.lang.Object ref = arg3_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by Apache iBATIS ibator. This method corresponds to the database table player_share
public int deleteByPrimaryKey(Integer id) throws SQLException { PlayerShare key = new PlayerShare(); key.setId(id); int rows = sqlMapClient.delete( "player_share.ibatorgenerated_deleteByPrimaryKey", key); return rows; }
[ "private boolean createShareTable() {\n boolean success = false;\n\t\n try {\n // Create the shares table.\n\t //Changed symbol to VARCHAR because of issues with \n\t //space handling in PostgreSQL. \n Statement statement = connection.createStatement();\n stateme...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
addPreference Adds a preference to the user.
public void addPreference(Parameter parameter) { removePreference(parameter.getName()); IServer.associationHasPreferences().add(this, parameter); IServer.firePreferenceAdded(new ParameterAddRemoveEvent(this, parameter)); }
[ "public VolunteerPrefDTO addAvailabilityEntry(long userId, VolunteerPrefDTO preference)\n\t\t\tthrows InvalidPreferenceException;", "void setPreference(String preference);", "void setPreference(int preference)\r\n {\r\n this.preference = preference;\r\n }", "public void addToScreen(PreferenceScre...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the params. Value could be null.
public Object[] getParameters() { if (parameters == null) { return null; } else { return (Object[]) parameters.clone(); } }
[ "public String[] getParams() {\r\n\t\treturn params;\r\n\t}", "public final Object[] getParams() {\n return params;\n }", "public Map<String, Object> getParams() {\n if (params == null) {\n params = new HashMap<String, Object>();\n }\n return params;\n }", "public Map<String, String> ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set of default configurations. This class is required to be called upon the creation of a new jasper template. This configuration class uses these key values to plot the appropiate tree for editing configuration settings. Please be cautious when changing any key value names. Ensure that all references to these key valu...
public static Configuration getDefaultConfiguration() { Configuration config = new Configuration(); config.setSetting(SHEET_INFO_FIELD_1_TEXT, new Rectangle(1, 4, 0, 0)); config.setSetting(SHEET_INFO_FIELD_1_BARCODE_1D, new Rectangle(38, 1, 29, 8)); config.setSetting(SHEET_I...
[ "public LauncherTemplateFileConfigs(){\n mLayoutFile = new LauncherLayoutFile();\n mCommonDataFile = new LauncherCommonDataFile();\n mPagesFile = new HashMap<String, LauncherPageFile>();\n }", "public void constructDefaultSettings() {\n\n LineSetting lifeStory = new LineSetting(Colo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
============================== Helper functions ==============================
private void markWsConnected(boolean success) { client.webSocketFuture = CompletableFuture.completedFuture(success); }
[ "protected void method_5557() {}", "@Override\n public void extornar() {\n \n }", "private static void EX5() {\n\t\t\r\n\t}", "@Override\n public int utilite() {\n return 0;\n }", "@Test\r\n final void testReadFromString() {\r\n // Test code removed, has to be ported to usin...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
region registerType (single class)
@Test public void register_WhenSingleClass_ThenDifferentInstances() { // given testObject.registerType(ClassConstructorDefault.class); // when ClassConstructorDefault result1 = testObject.resolve(ClassConstructorDefault.class); ClassConstructorDefault result2 = testObject...
[ "boolean register(T type);", "private static void registerType() {\n ElementTypeManager typeManager = ElementTypeManager.defaultManager();\n typeManager.registerType(NeutronDetector.class, s_strType);\n }", "public Registration register (Class type, Serializer serializer);", "void register(Cl...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ access modifiers changed from: protected / renamed from: a
public Boolean doInBackground(Void... voidArr) { AbstractC2969a aVar; int i = 0; if (this.f12307a == null) { return false; } boolean z = false; while (true) { try { z = this.f12307a.mo22829b(); if (!z) { ...
[ "protected void a() {}", "protected void a()\n\t{\n\t\tsuper.a();\n\t}", "protected void method_5557() {}", "protected abstract void mo3493a();", "@Override\n\tpublic void aamir() {\n\n\t}", "private void a() {\n }", "@Override\r\n\tpublic void a2() {\n\t\t\r\n\t}", "@Override\r\n public void pu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method that returns a list of years by user.
public ArrayList<String> returnYearsSubjectUser(String applicant){ SubjectDAO subjectDao = new SubjectDAO(); return subjectDao.getYearsSubjectUser(applicant); }
[ "public static List<Integer> getYearsAsList() {\n return IntStream.rangeClosed(FIRST_TOGGL_YEAR, CURRENT_YEAR).boxed().collect(Collectors.toList());\n }", "public ObservableList<String> getYears() {\n return FXCollections.observableArrayList(yearLog);\n }", "public List<Long> getAllYearList() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Compares the most popular majors of the colleges
public int compare(College college1, College college2) { return college1.getMajor().compareTo(college2.getMajor()); }
[ "private static void example56() {\r\n Stream<Artist> sa = SampleData.threeArtists();\r\n\r\n Optional<Artist> biggestGroup = sa.collect( //\r\n Collectors.maxBy( //\r\n Comparator.comparing( //\r\n a -> a.getMembers().count())));\r\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Fields declarations Default constructor
public ConfigRequest() { this(null, null, true); }
[ "public SimpleClassWithFields() {\n }", "public Personnage() {\n //OJO en vez de poner afuera las variables inicializadas con un valors par defaut las hubiera podido poner aqui, EGAL\n }", "private Child()\n {\n // Give a default name (to be filled out later)\n firstName = \"FirstN...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Add a value to the set of values that you are keeping a histogram of.
public void addValue(int v) { int index = val2Idx(v); ++ histogram[index]; ++ ntups; }
[ "public void addHistogram(Histogram other) {\n for (int i = 0; i < other.getLength(); ++i) {\n increment(i, other.getValue(i));\n }\n }", "public void add(final AbstractHistogram otherHistogram) throws ArrayIndexOutOfBoundsException {\n long highestRecordableValue = highestEquivalentValue(value...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column sc_flow_main.uid
public void setUid(String uid) { this.uid = uid; }
[ "@Override\r\n\tpublic void setUid(int uid) {\n\t\tsuper.setUid(uid);\r\n\t}", "public void setUid(int value) {\n this.uid = value;\n }", "@Override\n\tpublic void setUid(UID uid) {\n\n\t}", "public void setUpd_userid(java.lang.String param){\n \n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
add in last address
public void addlast(E data) { Node newnode = new Node(data); // created newnode that points the last tail to null which is the next ref_head newnode.setNext(null); // if head is empty list is empty if(head == null) { head = newnode; tail = newnode; ...
[ "@Override\n public int getNewAddress() {\n return lastAddress++;\n }", "public void addAddress(long userID, String newAddress){\n\t}", "public void InsertAddress() {\n\n\t}", "public AddAddress() {\n\t\tsuper();\n\t}", "void addAddressById(int idAddr, int idUser );", "private InternetAddress...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the tool's name.
public String getName();
[ "public String getToolName() {\r\n return toolName;\r\n }", "abstract public String getToolName();", "public String getName() {\n\t\t\t\treturn StringUtil.toFriendlyName(\r\n\t\t\t\t\t\tMoveVertexTool.class.getName(), \"Tool\");\r\n\t\t\t}", "public String getName() {\n\t\t\t\treturn StringUtil.toFr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ modifier index 0> food 1>production 2>population_limit
public int[] getModifier() { return modifier; }
[ "proto.Game getExpansions(int index);", "@VTID(15)\r\n int index();", "public interface IIndexMapper {\n @Select(\"select * from goods order by goodscreatetime desc limit 0,8\")\n public List<Goods> getTopEightNew();\n\n @Select(\"select photo from goodsphoto where goods=#{goodID}\")\n public Str...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates new form NewJPanel
public EpicPanel() { initComponents(); }
[ "public JPanel creaPannello();", "public void createPanel() {\n\t\tbasePanel = new JPanel();\n\t\toperatePanel = new JPanel();\n\t\tquantityPanel = new JPanel();\n\t\tbuttonPanel = new JPanel();\n\t\tbasePanel.setLayout(new BorderLayout());\n\t\toperatePanel.setLayout(new GridLayout(3, 1));\n\t\tpromptLabel = new...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
resynchronizes with the global time obtained from the DIR
@SuppressWarnings("deprecation") private void resync() { switch (syncSource) { case LOCAL_CLOCK : return; case XTREEMFS_DIR : { try { long tStart = System.currentTimeMillis(); lastSyncAttempt = tStart; long o...
[ "public abstract void syncTime();", "public void globalUpdate(long time);", "private void getCurrentTime() {\n\t\t\n\t\tPlatform.runLater(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\tfor (;;) {\n\t\t\t\t\ttxtHora.setText(watch.getCurrentTime());\n\t\t\t\t\twatch.sumSecond();\n\t\t\t\t}\n\t\t\t}\n\t\t});...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Displays the given score for Team B.
public void displayForTeamB(int score) { TextView scoreView = (TextView) findViewById(R.id.team_b_score); scoreView.setText(String.valueOf(score)); }
[ "public void displayForTeamB(int score) {\n TextView scoreTeamBView = (TextView) findViewById(R.id.team_b_score);\n scoreTeamBView.setText(String.valueOf(score));\n }", "public void displayGolsForTeamB(int score) {\n TextView scoreView = (TextView) findViewById(R.id.text1teamB);\n s...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
jhipsterneedleentityaddfield JHipster will add fields here, do not remove
public Long getId() { return id; }
[ "@Override\n public void editNewlyAddedField() {\n }", "public void createFields() {\n }", "public EntityInfoBuilder<T> addField(String fieldPath) {\n String columnName = fieldPath.toLowerCase().replaceAll(\"\\\\.\", \"_\");\n return addField(fieldPath, columnName, false);\n }", "@Ov...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This will call function of a variable and return result as an Object
private Object callVarFunction(Object var, String functionName, Object[] arguments) throws SyntaxException, ParsingException { if (var instanceof Boolean) var = var.toString(); if (var instanceof Automaton) { Automaton a = (Automaton) var; return callAutomatonMemberFunction(a, f...
[ "abstract public Object evalVariable(String varName);", "T eval();", "Object invoke(Object runningValue) throws Exception;", "public Object getObj() { return objToCall; }", "String getObj1();", "@Override\n public String getFunction(String variable, String function, Object... args) {\n return ge...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Invoked by a bean factory after it has set all bean properties.
@Override public void afterPropertiesSet() throws NotConfiguredException { super.afterPropertiesSet(); if (this.auditEventService == null || this.auditEventDao == null || this.registeredUserDao == null) { throw new NotConfiguredException("AdminRpc is...
[ "@Override\r\n\tpublic void afterPropertiesSet() throws Exception {\n\t\r\n\t\tSystem.out.println(\"intialising property for beans\");\r\n\t\t\r\n\t}", "public void afterPropertiesSet() throws Exception {\n\t\tSystem.out.println(\"Lifecycle Step 7..Initializing Bean\");\r\n\t\t\r\n\t}", "public void afterProper...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }