query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
Utility method to write an element start tag.
private void writeStartElement(java.lang.String prefix, java.lang.String namespace, java.lang.String localPart, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException { java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); ...
[ "public void writeStartTag(String element)\r\n\t\tthrows XMLStreamException\r\n\t{\r\n\t\t/*\r\n\t\t * Write start tag for XML block.\r\n\t\t */\r\n\t\twriteStartElement(element);\r\n\t\twriteStartElementEnd();\r\n\t}", "public abstract StartElement createStartElement(String prefix, String namespaceUri, String lo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Erasure of method printSets(ArrayList>) is the same as another method in type Test_0804 .. hmm generic issue?
public static void printSets_String( ArrayList<ArrayList<String>> sets) { for(ArrayList<String> set : sets) { //MISTAKE: //forget size = 0 if(set.size() == 0) { out.println("{ }"); } else { boolean isFirstElt = true; for(String elt : set) { out.print( (isFirstElt? "{ ": ",") + e...
[ "public static void main(String[] args) {\n\tHashSet nonGenericHashSet = new HashSet();\n\t// add to set\n\tnonGenericHashSet.add(\"abc1\");\n\tnonGenericHashSet.add(\"1af2\");\n\tnonGenericHashSet.add(\"8dn3\");\n\tnonGenericHashSet.add(2700);\n\tnonGenericHashSet.add(\"2911a\");\n\t\n\t//print contents\n\tSystem....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Removes the ith "formtoolbar" element
public void removeFormToolbar(int i) { synchronized (monitor()) { check_orphaned(); get_store().remove_element(FORMTOOLBAR$0, i); } }
[ "void unsetFormToolbar();", "void unsetForm();", "void hidePerspectivesToolBar();", "public void removeButton()\n {\n \n }", "com.appnomic.appsone.ui.extension.FormToolbarType addNewFormToolbar();", "public void removeEditor() {\n/* 752 */ if (this.editor != null) {\n/* 753 */ unc...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets just the first key field (most common case)
public void setKey(Object key);
[ "public void setKey(String key1) {\r\n this.key = key1;\r\n }", "@Override\n\tpublic void addFirst(String key, Object value) {\n\t\t\n\t}", "@Nullable\n default KEYTYPE getFirstKey ()\n {\n return getFirstKey (null);\n }", "void setFirstChildKey(long nodeKey);", "public void giveKey() {\r\n\t\tsma...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a glob pattern matching any date filter present. If no date filter, is returned to search on all dates
public String dateFilter(){ // Defaults to * to match all dates, if no date filter is present String date = "*"; // Iterate through all of the filter parameters. If date is in there, pull the date value String[] filters = argFlags.getFilterArgs().split(","); for(int i = 0; i < f...
[ "private static String toRegexPattern(String globPattern, boolean isDos) {\n int i;\n StringBuilder regex = new StringBuilder(\"^\");\n boolean inGroup = false;\n int i2 = 0;\n while (i2 < globPattern.length()) {\n int i3 = i2 + 1;\n char c = globPattern.char...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column lt_ad_google_adwords_report_destination_url.account_descriptive_name
public void setAccountDescriptiveName(String accountDescriptiveName) { this.accountDescriptiveName = accountDescriptiveName; }
[ "public void setAcct_name(String acct_name)\n/* */ {\n/* 250 */ this.acct_name = acct_name;\n/* */ }", "java.lang.String getDisplayaccountname();", "@Override\n public void setNameAlias(String nameAlias) {\n if (this.nameAlias != null && nameAlias != null) {\n if (localAlias...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the underlying container
public IContainer getContainer() { return _container; }
[ "Object getContainer();", "public T getContainer() {\n return container;\n }", "public AbstractComponentContainer getContainer();", "public String getContainer()\n {\n return this.container;\n }", "protected VBox getContainer() {\n\t\treturn container;\n\t}", "@Override\n public ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Use this to override default linkAnchorDelegate
public void setLinkAnchorDelegate(LinkProvider delegate) { if (delegate == null) throw new NullPointerException("passed illegal null value for delegate"); linkAnchorDelegate = delegate; }
[ "@Override\n protected int getAnchorHeight() {\n return ANCHOR_HEIGHT;\n }", "public Links__() {\n }", "public void setAnchor (String anchor) {\n this.anchor = anchor;\n }", "@Override\r\n\tpublic void onStartLink(String name) {\n\t\t\r\n\t}", "public String getAnchor() \r\n {\r\n r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
ID int32 id = 1;
public Builder clearId() { id_ = 0; onChanged(); return this; }
[ "public int id () ;", "int id() {\n return id;\n }", "public Integer getId();", "public int getId () { return id; }", "public int getId(){\r\n return id;\r\n }", "public int getId(){\n return id;\n }", "public int getId() \n {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Implement permissions requests on apps that target API level 23 or higher, and are running on a device that's running Android 6.0 (API level 23) or higher. If the device or the app's targetSdkVersion is 22 or lower, the system prompts the user to grant all dangerous permissions when they install or update the app.
private boolean RequestCallPhone() { if (Build.VERSION.SDK_INT < Build.VERSION_CODES.M) { return true; } // Checks whether your app has a given permission and whether the app op that corresponds to this permission is allowed. if (checkSelfPermission(CALL_PHONE) == PackageMan...
[ "@TargetApi(23)\n private void requestUserForPermission(){\n int currentApiVersion = android.os.Build.VERSION.SDK_INT;\n if (currentApiVersion < Build.VERSION_CODES.M){\n // This OS version is lower then Android M, therefore we have old permission model and should not ask for permission\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Metodo para cargar ordenes de produccion
public static SelectItem cargarComboOrden() { SelectItem ordenItem = new SelectItem(); ordenItem.setName(COMBO_ORDEN); ordenItem.setTitle(TITULO_ORDEN); return ordenItem; }
[ "public void cargarProcesos(){\r\n\t\tthis.setProcesosInhabilitados(this.getCargador().cargarProcesos(this.getTipo()));\r\n\t\tthis.habilitarProcesos();\r\n\t}", "private void cargar()\n{\n\ttry {\n\t\tString file = PROPERTY_PATH + \"\\\\\" + PROPERTY_FILE;\n\t\tmyResource = null;\n\t\t// System.out.println (\"Ge...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates new form Raca
public animal() { initComponents(); con_animal = new conexao(); con_raca=new conexao(); con_animal.conecta(); con_raca.conecta(); con_animal.executeSQL("select * from animal order by " + ordenacao2); con_raca.executeSQL("select * from raca order by " + ordenacao);...
[ "public String doNewForm(){\n\t\tsetUser(new User());\n\t\t//Por defecto, no se ha pulsado cambiar foto\n\t\tsetCambiarFoto(false);\n\t\t//cargo la lista de roles\n\t\tthis.lstRoles=userService.findAllRoles();\n\t\t//cargo la lisra de familias\n\t\tthis.lstFamilias=familiaService.getFamiliasAllForCombo();\n\t\t//Co...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Converts the given number to a BigDecimal.
public static BigDecimal numberToBigDecimal(Number number) { return number == null ? null : new BigDecimal(number.toString()); }
[ "protected BigDecimal toBigDecimal(Integer number) {\n\t\treturn number != null ? new BigDecimal(number.intValue()) : null;\n\t}", "public com.ibm.fhir.model.type.Decimal toFhirDecimal(BigDecimal value);", "public static BigDecimal decimal(final Integer value) {\n if (value == null) {\n return...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method adds null objects to the bag, then uses the itemCout() method to count the number of null objects
@Test public void countNull() { ShoppingBag bagToTest = makeBag(); bagToTest.add(null); bagToTest.add(null); bagToTest.add(null); assertEquals(bagToTest.itemCount(null), 3); }
[ "public int getNumberOfNullItems(){\r\n return localNumberOfNullItems;\r\n }", "public int countObjects() {\n\t\tif (this == null) {\n\t\t\treturn 0;\n\t\t} else {\n\t\t\treturn yes.countObjects() + no.countObjects();\n\t\t}\n\t}", "public void emptyBag()...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Created by Andrii_Lisovyn on 11.03.2015.
public interface Processor { boolean isPairResult(); Map<String, Integer> process(File file, boolean isParallel); }
[ "@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\t\tpublic void kayit1() {\n\t\t\t\n\t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get a count of distinct institutional items in the repository.
public Long getDistinctInstitutionalItemCount();
[ "public Long getDistinctInstitutionalItemCount() {\r\n\t\treturn institutionalItemDAO.getDistinctInstitutionalItemCount();\r\n\t}", "int distinctCount();", "long distinctCount();", "public Long getCount(List<Long> institutionalCollectionIds)\r\n\t{\r\n\t\tQuery q = hbCrudDAO.getSessionFactory().getCurrentSess...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
show this message when the user clicks on help
public void actionPerformed(ActionEvent e) { JOptionPane.showMessageDialog ( null, "\nPlease Visit Our Website: \n\nhttps://www.healthTracker.org/" ); }
[ "public void showHelp() {\n \t\n }", "@Override\n\tpublic void clickHelp() {\n\t\t\n\t}", "public void displayHelp() {\r\n StringBuilder sb = new StringBuilder();\r\n sb.append(\"\\n----- HELP -----\\n\\n\")\r\n .append(\"! : broadcast message headed by sender's na...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
id of the instance of the dapp. One dapp could have multiple instances (e.g. multiple websites) string instance_id = 2;
public Builder setInstanceIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); instanceId_ = value; onChanged(); return this; }
[ "public String getInstanceID(){\n\t\treturn instanceID;\n\t}", "public Long getInstanceid() {\n return instanceid;\n }", "public void setInstanceid(Long instanceid) {\n this.instanceid = instanceid;\n }", "public int getInstanceId() {\n return this.instanceId;\n }", "@NotNull\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Set the Nimbus look and feel / If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel. For details see
static void main(String args[]) { try { for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) { if ("Nimbus".equals(info.getName())) { javax.swing.UIManager.setLookAndFeel(info.getClassName()); brea...
[ "public static void nimbusLookAndFeel() {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
set look and feel to the system look and feel
public static void main(String args[]) { try { UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); } catch (Exception ex) { ex.printStackTrace(); } sock = new Sock(); SwingUtilities.invokeLater(new Runnable() { @Override ...
[ "public void look(){\n try{\n UIManager.setLookAndFeel(\"com.sun.java.swing.plaf.windows.WindowsLookAndFeel\");\n }catch(Exception e){\n e.printStackTrace();\n } \n }", "public static synchronized void setNativeLook() {\r\n\t\ttry {\r\n\t\t\tUIManager.setLookAndFeel(UIMan...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Computes hash code for a list of doubles.
public static int computeHash(DoubleList doubleList) { int hc = 17; int sz = doubleList.size(); for (int i=0; i<sz; i++) { // Colt's HashFunctions.hash(f) uses Float.floatToIntBits(f*663608941.737f), // but I think this will be fine here. long bits = Double.doubleToLongBits(doubleList.get(...
[ "public int hashCode() {\n long bits = 1L;\n for (int i = 0; i < length; i++) {\n bits = 31L * bits + Double.doubleToLongBits(values[i]);\n }\n return (int) (bits ^ (bits >> 32));\n }", "@Override\n public int hashCode() {\n final int prime = 31;\n int re...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/Scanner sc = new Scanner(System.in); String str = sc.nextLine(); System.out.println(encode(str));
public static void main(String[] args) { int n = 16331; System.out.println(decode(n)); }
[ "public static void main(String[] args) {\n\t\tString s=new Scanner(System.in).next();\r\n\t\tSystem.out.println(encode(s));\r\n\t}", "public static String encode(){\n String encoded;\n int[] ints;\n\n //get string from user\n System.out.print(\"Du har valgt encode - indtast en tekst: ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column article.praise
public void setPraise(Integer praise) { this.praise = praise; }
[ "public void setArticlePrice(Double articlePrice) {\r\n\t\tthis.articlePrice = articlePrice;\r\n\t}", "public void setRemedy(String remedy) {\n LOGGER.log(Level.INFO, \"Plague entity: set remedy\");\n this.remedy = remedy;\n }", "public void addArticle(Article article) /*throws DatabaseExcepti...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Generally check if the game init
public boolean isEmpty() { return fruitHash.isEmpty(); }
[ "boolean hasC2SInitGame();", "public static boolean checkInit() {\n if (!AnalyticsMgr.isInit) {\n Logger.d(\"AppMonitor\", \"Please call init() before call other method\");\n }\n return AnalyticsMgr.isInit;\n }", "boolean hasInitScence();", "public void init()\n {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
register all supported UML versions
protected void setUpUML() { EPackage.Registry.INSTANCE.put("http://www.eclipse.org/uml2/2.0.0/UML", UMLPackage.eINSTANCE); EPackage.Registry.INSTANCE.put("http://www.eclipse.org/uml2/2.1.0/UML", UMLPackage.eINSTANCE); EPackage.Registry.INSTANCE.put("http://www.eclipse.org/uml2/3.0.0/UML", UMLPac...
[ "private static void languageRegistry() {\n\t\tLanguageRegistry.addName(aqueousOre, \"Aqueous Ore\");\n\t\tLanguageRegistry.addName(liquidator, \"Liquidator\");\n\t}", "private static void languageRegistry(LanguageRegistry lr) {\n \t\tlr.addName(liquidator, \"Liquidator\");\n \t\tlr.addName(workStation, \"Work St...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public void mouseEntered(MouseEvent e) { }
[ "@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" ] ] } }
Gets a stats provider that does not track stats in an internal time series repository. The stored variables will only be available as instantaneous values.
StatsProvider untracked();
[ "public StatisticsProvider getStatisitcs();", "private static Stats get() {\n if (sInstance == null) {\n synchronized(Stats.class) {\n if (sInstance == null) {\n Logger.v(TAG, \"Stats inited\");\n List<BaseAnalyticsCollector> collectors = sCol...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
EFFECTS OF REGIONS FEAR OF DEATH residually reduce the fear of death for citizens for now, we reduce it by one for all citizens
protected void reduceCitizenTrait(Trait trait) { ArrayList<Person> persons = PersonManager.getInstance().getPersons(); Iterator<Person> itr = persons.iterator(); while(itr.hasNext()) { Person next = itr.next(); next.getTraitLevels().put(trait, (next.getTraitLevels().get(trait) - 1)); } }
[ "public static void calculate_outage_effects(){\n \n /* check all hosts causing problems */\n for(hostoutage temp_hostoutage : hostoutage_list ){\n \n affected temp_affected = new affected();\n /* calculate the outage effect of this particular hosts */\n calculate_outage_effect_...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method to return max of two numbers
static int max(int a, int b) { return (a > b) ? a : b; }
[ "public static int max(int a, int b) \n\t { \n\t return (a > b)? a : b; \n\t }", "public static int max(int a, int b){\n //TODO the body of this function in one line\n }", "private int max(int a, int b) {\r\n\t\treturn (a > b) ? a : b;\r\n\t}", "private int max(int num1,int num2){\r\n\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TearDown method for test method testPythonCartridgeAgent
protected void tearDown(String sourcePath) { for (Map.Entry<String, Executor> entry : executorList.entrySet()) { try { String commandText = entry.getKey(); Executor executor = entry.getValue(); log.info("Terminating process: " + commandText); ...
[ "@AfterSuite\n public void tearDownAgentStartupTest() {\n tearDown();\n }", "protected void tearDown()\n {\n // try\n // {\n // remoteTestDir1.delete();\n // }\n // catch (VlException e)\n // {\n // e.printStackTrace();\n // }\n }", "@Te...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get temperature low time int.
public int getTemperatureLowTime(){ return temperatureLowTime; }
[ "public int getLow() {\n\t\treturn this.low.getTemp();\n\t}", "public long getTargetTemperatureLowF() {\n return mTargetTemperatureLowF;\n }", "public int getTemperature();", "public static double getTemperature() {\n double theTemperature;\n long timeSpentSoFar = System.currentTimeMil...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Log.d(TAG, "onPageScroll: " + String.format("position=%d, posstionOffset=%f, positionPixels=%d", position, positionOffset, positionOffsetPixels));
@Override public void onPageScroll(int position, float positionOffset, int positionOffsetPixels) { if (mAnimated) { mAnimPosition = position; mCurrentOffset = positionOffset; invalidate(); } }
[ "@Override\n\tpublic void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) {\n\t\t\n\t}", "@Override\n public void onPageScrolled(int position, float offset,\n int offsetPixels) {\n\n }", "@Override\n public v...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return deep copy of matrix mirrored along the Y axis
private static int[][] mirror(int[][] matrix) { int[][] result = new int[3][3]; for (int row = 0; row < 3; row++) { for (int col = 0; col < 3; col++) { result[row][2-col] = matrix[row][col]; } } return result; }
[ "private void reflectY() {\r\n // Fill in the code\r\n int temp;\r\n \r\n for(int col = 0;col<size/2;col++){\r\n for(int row=0;row<size;row++){\r\n temp = matrix[row][col];\r\n //matrix[row][col] = matrix[size - col - 1][col];\r\n matrix[row][col] = matri...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns true if this object is equal to the specified object, and false otherwise.
public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof RectangleEdge)) { return false; } RectangleEdge order = (RectangleEdge) obj; if (!this.name.equals(order.name)) { return false; } ...
[ "public boolean equals (Object object);", "public boolean sameValueAs(Object o)\n { return equals( o ); }", "@Override\n public boolean equals(final Object object) {\n return equalsByAPI(object);\n }", "@Override\n\tpublic boolean equals(Object object) {\n\t\treturn object.toString().equal...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
returns 1 if no valid child found at given index
@Override int findChildIndex(byte radix) { // ignores blankRadixIndex byte[] radices = getRadices(); int blankIndex = (int)getBlankRadixIndex(); for (int i = 0; i < getChildrenCount(); i++) { if (i == blankIndex) continue; if (radices[i] == rad...
[ "private static int findChild(int index) {\n\t\tString binary=Integer.toBinaryString(Integer.lowestOneBit(index));\n\t\treturn index - Integer.parseInt(binary,2);\n\t}", "@Override\r\n public int getIndexOfChild (Object parent, Object child)\r\n {\n return 0;\r\n }", "public int getIndexOf...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates the new project creation page.
protected NewReverseSourceWizardPage createNewProjectCreationPage() { NewReverseSourceWizardPage newProjectPage = new NewReverseSourceWizardPage(); //$NON-NLS-1$ return newProjectPage; }
[ "@Override\r\n\tpublic void createProject() {\n\t\t\r\n\t}", "public final void createProject() {\r\n this.project = new Project();\r\n this.project.setName(\"\");\r\n this.project.setOwner(ProjectBrowserSession.get().getUserEmail());\r\n this.project.setDescription(\"\");\r\n \r\n GregorianCa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Builds the complete resource from available data.
@Override public FifResource build() { assert (this.resource != null) : "Empty data \"resource\""; assert (this.metadata != null) : "Empty data \"metadata\""; Descriptor transactionDesc = new Descriptor(); try { transactionDesc.setMetadata(this.metadata); } catch (MetadataWithSameAttributeException e) {...
[ "public Builder(Resource resource) {\r\n\t\t\tfor (IDDMSComponent component : resource.getTopLevelComponents()) {\r\n\t\t\t\t// Metacard Set\r\n\t\t\t\tif (component instanceof MetacardInfo)\r\n\t\t\t\t\tsetMetacardInfo(new MetacardInfo.Builder((MetacardInfo) component));\r\n\t\t\t\t// Resource Set\r\n\t\t\t\telse ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
GENLAST:event_btnSubmitActionPerformed clear all button
private void btnClearAllActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnClearAllActionPerformed { int response = JOptionPane.showConfirmDialog(null, "Do you want to clear the ENTRIES?", "Confirm", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE); ...
[ "private void btnCancelActionPerformed(java.awt.event.ActionEvent evt) {\n ClearAll();\r\n }", "private void clearFieldButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_clearFieldButtonActionPerformed\n \n clearAll();\n }", "private void btnClearActionPerformed(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
A list of files
Map<String, UserDatasetFile> getFiles() throws WdkModelException;
[ "File[] list() throws IOException;", "List<File> getFiles();", "File[] listFiles(String path);", "java.util.List<java.lang.String>\n getFilenameList();", "List<Path> list(String ext) throws IOException;", "public List<String> listFiles(String prefix) throws Exception;", "public File[] listFiles()...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__FQN__Group__0__Impl" $ANTLR start "rule__FQN__Group__1" InternalCrySL.g:4589:1: rule__FQN__Group__1 : rule__FQN__Group__1__Impl rule__FQN__Group__2 ;
public final void rule__FQN__Group__1() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalCrySL.g:4593:1: ( rule__FQN__Group__1__Impl rule__FQN__Group__2 ) // InternalCrySL.g:4594:2: rule__FQN__Group__1__Impl rule__FQN__Group__2 ...
[ "public final void rule__FQN__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalActivityArchitecture.g:1258:1: ( rule__FQN__Group__1__Impl )\n // InternalActivityArchitecture.g:1259:2: rule__FQN__Group__1__Impl\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
fine del metodo Traversa l'intero albero e ritorna una lista dei nodi.
public ArrayList<AlberoNodo> getNodi(int metodo) { /* valore di ritorno */ return (this.getNodoRoot()).getNodi(metodo); }
[ "@Override\r\n\tpublic ArrayList<Episodio> nuoviEpisodi(SerieTV serie) {\n\t\treturn null;\r\n\t}", "private static Tupla[] lerPontos(){\n Tupla[] lista = new Tupla[11];\n \n File arq = new File(path);\n Scanner in = null;\n try {\n arq.createNewFile();\n i...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Access to production table.
public short[][] production_table() {return _production_table;}
[ "protected short[][] production_table() {return _production_table;}", "public String getTableDbName() { return \"NEXT_SCHEMA_PRODUCT_STATUS\"; }", "public static String getOracleProductTable() {\n\t\treturn oracle_product_table;\n\t}", "public void setupProductionLog() {\n initializeDB();\n\n production...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the operation type.
public AbstractOperation(char operationType) { this.operationType = operationType; }
[ "public void setOperType(String value) {\n\n\t\tthis.operType = value;\n\t}", "public void setType(String _type) { type = _type; }", "public String getOperationType() {\n return this.operationType;\n }", "public void setType(String type)\n {\n this.type = type;\n }", "public void setTy...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the database password.
public static String getDBPassword() { return properties.getProperty("multiverse.db_password"); }
[ "public String getDatabasePassword() {\n return configuration.getPassword();\n }", "public String getDatabasePassword() {\n return databasePassword;\n }", "String getConfigDatabasePassword();", "public String getJdbcPassword();", "public String getDbPassWord() {\r\n\t\t\treturn prop.getP...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Signals if the determined visible Elements or ElementNodes respectively, should be handled as a flat structure, i.e. those Elements or ElementNodes define root nodes.
public boolean isFlat();
[ "protected boolean isRootNodeVisible() {\n \t\treturn false;\n \t}", "@Override\r\n\tprotected boolean isHandled(EObject eObject) {\r\n\t\treturn foldableElements.contains(eObject.eClass());\r\n\t}", "public boolean isDominator() {\n\t\treturn subsumingNodes.isEmpty() && !isEquivalentToOriginal();\n\t}", "fin...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
A list of buckets in the histogram, sorted from lowest bucket to highest bucket. repeated .tensorflow.metadata.v0.Histogram.Bucket buckets = 3;
@Override public BucketOrBuilder getBucketsOrBuilder( int index) { return buckets_.get(index); }
[ "java.util.List<java.lang.Long> getBucketCountsList();", "public int buckets() {\n return filter_.size();\n }", "@Test\n public void testOneBucket1() {\n final int n = 100;\n final double[] data = new double[n];\n final double expectedBinWidth = 99;\n final double[] expectedLowerBinValues...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
For a given day within the month, get the milkWeight
public double getDayMilks(int day) { if (day < 0) { throw new IllegalArgumentException("Days cannot be negative"); } try { return days[day]; } catch (NullPointerException e) { throw new IllegalArgumentException( "That day does not exist in this month"); } }
[ "@Override\n public void addMilkWeight(int day, int month, int year, long weight) {\n // Pop-up message if the weight is incorrect\n if (weight < 0) {\n Alert alert = new Alert(AlertType.WARNING, \"Weight cannot be negative\");\n alert.showAndWait().filter(r -> r == ButtonType.OK);\n return;\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
See below the steps to initialize Audit Client
@PostConstruct public void init() throws EventHubClientException, AuditException { //Step 1, get configuration from VCAP of predix-audit instance that is bound to the application AuditConfiguration auditConfiguration = getConfigFromVcap(); //Step 2 instantiate Audit Callback AuditCa...
[ "private OauthClientInitializer()\n {\n\n\n this.serviceAccountUserId = \"CiscoUCServiceAccount\";\n this.serviceAccountPassword = \"|%a{!5w%N6sG:>~2f5M66HgJ56uXewGU\";\n this.scope = \"Identity:SCIM ciscouc:admin\";\n this.cisHost = \"https://idbroker.webex.com/idb\";\n this....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
A RocketBattery object that represents one of the rocket's battery.
public RocketBattery(String name, String batteryUnit) { super(); this.setSkinType(SkinType.BATTERY); this.setAnimated(true); this.setCustomFontEnabled(true); this.setCustomFont(Fonts.latoRegular(50.0)); this.batteryName = name; this.batteryUnit = batteryUnit; ...
[ "public Battery createNewBattery() {\n AssetIdManager modifier = AssetIdManager.getDefaultAssetIdManager();\n long assetId = modifier.getNextId();\n Battery battery = new BatteryImpl(assetId);\n registry.register(assetId, battery);\n return registry.getCopy(assetId);\n }", "public Battery attachBa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This is the method called to create the Notification
public android.app.Notification setNotification(Context context, String title, String text, int icon) { if (notificationPendingIntent == null) { Intent notificationIntent = new Intent(context, MainActivity.class); notificationIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_A...
[ "void createNotification() {\n\n }", "protected void createNewNotification() {\n Log.d(TAG, \"Create a new notification\");\n\n final String mTrainLabel = wagenstandAlarm.trainLabel;\n\n Builder builder = new Builder(mContext, NOTIFICATION_CHANNEL_ID)\n .setSmallIcon(R.drawa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public String toString() { return address + " " + business; }
[ "@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" ] ] } }
/se esta probando que en caso de no tener item se arroje la exception esperada
@DisplayName("should trow incorrect exception when Order Items are empty") /*Esta anotacion permite que el test se comience a ejecutar*/ @Test public void shouldTrowIncorrectExceptionWhenOrderItemsAreEmpty(){ OrderRequest orderRequest = new OrderRequest(); orderRequest.setAccountId("12345678...
[ "public ItemNotFoundException(){\r\n super(\"Item not found in the current List\");\r\n }", "public GroceryException() {\r\n super(\"Item is not found\");\r\n }", "public void completeItemNotFound()\n {\n // Not implemented\n }", "@Test\r\n public void testOMDi3() throws Ex...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Should only be called from loadTable(tab) to update orange dot
private void detectOpenIssues(Tab tab) { JTable table = tab.getTable(); boolean openIssue = false; for (int row = 0; row < table.getRowCount(); row++) { String tableCellValue = ""; if (table.getValueAt(row, 4) != null) { tableCellValue = table.getValueAt(r...
[ "private void drawTable() {\n\t\tif (m_tableNr != 0) {\n\t\t\tm_tableNrLabel.setText(\"Tafel: \" + m_tableNr + \"\\nNaam: \" + m_tableName);\n\t\t} else\n\t\t\tm_tableNrLabel.setText(\"\");\n\n\t\tif (m_tableName == null || m_tableName.compareTo(\"\") == 0)\n\t\t\tm_tableNameLabel.setText(\"\");\n\t\telse\n\t\t\tm_...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public static void main(String[] args) { Scanner scan=new Scanner(System.in); System.out.println("enter the size for matrix1 and matrix2 "); int n1=scan.nextInt(); int matrix1[][]=new int[n1][n1]; int matrix2[][]=new int[n1][n1]; System.out.println("enter elements in mat...
[ "@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" ] ] } }
optional string nickname = 3;
public Builder clearNickname() { bitField0_ = (bitField0_ & ~0x00000004); nickname_ = getDefaultInstance().getNickname(); onChanged(); return this; }
[ "int getPlayerNickname();", "public String getNick(){\n return nick;\n }", "public String nick();", "void askNickname();", "public String getNickname() {\n\t\treturn \"aaaa\";\n\t}", "public Builder setNickname(\n java.lang.String value) {\n if (value == null) {\n throw new NullPoin...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Retrieve the previous page link
public String getPrevious() { if (getRecordCount() == 0) { return ""; } int N = start - pagesize; if (N < 1) { return ""; } return getPageLink(N); }
[ "OptionalInt getPreviousPage();", "public Node getLinkPrev(){\n\t\t return previous;\n\t\t}", "public void previous() {\n if (this.page == 1) {\n this.page = this.getPagecount();\n } else {\n this.page--;\n }\n }", "public int getPrevPageNumber() {\n\t\treturn ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method: updateFlight Description: handler mapped with put function to edit the flight details with flightId
@Override public Flight updateFlight(Flight flight) { if (flight == null) { throw new NullFlightDetailsException("no data provided"); } Optional<Flight> flightdetails = flightRepository.findById(flight.getFlightId()); if (!flightdetails.isPresent()) { throw new FlightDetailsNotFoundExce...
[ "@Update\r\n int updateFlight(Flight flight);", "@PutMapping(value=\"/flight/modify\")\r\n\tpublic ResponseEntity<Flight> modifyData(@ModelAttribute Flight flight) throws FlightExceptions{\t\t\t\r\n\t\t\r\n\t\tlogger.info(\"Modifying flights.\");\r\nFlight flightToBeModified=flightService.modifyFlight(flight);...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
this function is used to initialize the data
public void initDate() { day=8; month=6; year=2021; }
[ "@Override\n\tpublic void initData() {\n\n\t\t\n\t}", "private void initDatas() {\n\n\t}", "protected void initializeData() {\r\n\t\tinitializeTable();\r\n\t\tfillTable();\r\n\t}", "@Override\n public void doInitDataes()\n {\n }", "private void fillData()\n {\n \n }", "private void i...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
warning, this can make the set corrupt. Usable in case one updates a replication locally at the same time ignoring all change broadcasts induced by self (using originatorId)
public void unsafeRemove(String key) { map.remove(key); }
[ "@Override\n public void uniqueOriginators(TLongHashSet destSet) {\n for (TaggedInterval t : originators) {\n destSet.add(t.tag());\n }\n }", "private void m26705d() {\n if (this.f19877d == Integer.MIN_VALUE) {\n throw new IllegalStateException(\"generateNe...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Translate the orientation to number
public int toInt(){ return this.numberOrientation; }
[ "public int toInt() {\n // This method convert orientation to associated integer to meet the requirement of task.\n\n if (this==NORTH)\n return 0;\n else if (this == EAST)\n return 1;\n else if (this==SOUTH)\n return 2;\n else return 3;\n }", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Decode a hexencoded byte array
byte[] parseHexString(String string);
[ "private static byte[] decode(char[] data)\n {\n int len = data.length;\n if ((len & 0x01) != 0)\n {\n throw new DecoderException(\"Odd number of characters.\");\n }\n final byte[] out = new byte[len >> 1];\n\n // two characters form the hex value.\n fo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Print in screen String without new line
public static void print(String s) { System.out.print(s); }
[ "public synchronized void println()\n\t{\n\t\toutputArea.append(\"\".concat(\"\\n\"));\n \n //set caret to the end of text\n outputArea.setCaretPosition(outputArea.getDocument().getLength());\n\t}", "public void println() {\n write('\\n');\n }", "public void println(String s) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
retornar una lista de estudiantes
public ArrayList<Laptop> getAllLaptop() throws IOException { ArrayList<Laptop> laptopsArray = new ArrayList<Laptop>(); for (int i = 0; i < this.regsQuantity; i++) { Laptop lTemp = this.getLaptop(i); if (lTemp != null) { laptopsArray.add(lTemp); } ...
[ "private ArrayList<Estudiante> obtenerListaEstudiantes(){\n metas = ManejaBDMetas.retornarDatos(OperacionesBaseDeDatos.obtenerInstancia(getApplicationContext()),2,idMeta);\n ArrayList<Estudiante> lista = new ArrayList<Estudiante>();\n Estudiante e;\n for(int i=0; i<metas.size(); i++){\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the child elements from a parent element by tag name.
public List<WebElement> getElementChildren(By locator, String cssSelector){ WebElement listElement = getWebElement(locator); listElement.click(); return listElement.findElements(By.cssSelector(cssSelector)); }
[ "public static\r\n Element[]\r\n getChildElements(\r\n Element parent,\r\n String tagName\r\n )\r\n {\r\n NodeList nodes = getChildrenByTagName(parent, tagName);\r\n int i = nodes.getLength();\r\n Element[] result = new Element[i];\r\n while ( --i >= 0 )\r\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "ruleXExpressionOrVarDeclaration" $ANTLR start "entryRuleXVariableDeclaration" InternalCreate.g:2029:1: entryRuleXVariableDeclaration : ruleXVariableDeclaration EOF ;
public final void entryRuleXVariableDeclaration() throws RecognitionException { try { // InternalCreate.g:2030:1: ( ruleXVariableDeclaration EOF ) // InternalCreate.g:2031:1: ruleXVariableDeclaration EOF { if ( state.backtracking==0 ) { before(gramm...
[ "public final void entryRuleXVariableDeclaration() throws RecognitionException {\n try {\n // ../fr.obeo.dsl.sprototyper.ui/src-gen/fr/obeo/dsl/ui/contentassist/antlr/internal/InternalSPrototyper.g:2196:1: ( ruleXVariableDeclaration EOF )\n // ../fr.obeo.dsl.sprototyper.ui/src-gen/fr/ob...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Default scroll callback with the current scrolled page This method only gets called when the current page is bigger than the previous one
void onScrolled(int page);
[ "public void onPageScrollStateChanged(int arg0) {\n\n }", "@Override\n public void onPageScrolled(int arg0, float arg1, int arg2) {\n\n }", "@Override\r\n\t\t\t\tpublic void onPageScrollStateChanged(int arg0) {\n\r\n\t\t\t\t}", "@Override\n public void onPageScrolled(int arg0, ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub Scanner entradaTeclado = new Scanner(System.in);
public static void main(String[] args) { String [] fruta = {"papaia", "couve", "alface", "laranja", "morango","uva","folha de aborbora"}; for (int contador = 0; contador < fruta.length; contador++) { for ( contador = 0; contador < fruta.length; contador++) { if (fruta[contador].equals("...
[ "public static String leerTeclado()\r\n\t{\r\n\t\tString resultado = \"\";\r\n\t\t\r\n\t\t@SuppressWarnings(\"resource\")\r\n\t\tScanner sc = new Scanner(System.in);\r\n\t\t\r\n\t\tresultado = sc.nextLine();\t\r\n\t\t\r\n\t\treturn resultado;\r\n\t}", "public void Ingresar()\n {\n Scanner lector = new ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Releases all special keys that was previously pressed. This function releases Alt, Control, Shift, Windows key.
public static void releaseAllSpecialKeys() { if(IS_ALT_PRESSED) { releaseKey(VK_ALT); IS_ALT_PRESSED = false; } if(IS_CTRL_PRESSED) { releaseKey(VK_CONTROL); IS_CTRL_PRESSED = false; } if(IS_SHIFT_PRESSED) { releaseKey(V...
[ "public void keyReleased(KeyEvent e) {\n altCtrlDown = false;\n }", "final protected void handleShortcuts(KeyEvent evt) {\t\t\n\t\t// WTF? no VK alt Gr on Windows, instead Ctrl + Alt\n\t\t// Actually just always do this, so Ctrl + Alt is Alt Gr\n\t\tif (_keycode == KeyEvent.VK_AL...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Funcion para la descripcion del juego
public void getGameDescriptionJSON(String jsoncad){ try{ //convirtiendo json string a json object JSONObject jsonObj = new JSONObject(jsoncad); game.setText(jsonObj.getString("title")); description.setText(jsonObj.getString("description")); Rect rect ...
[ "String getDescription( );", "@Override\r\n\tString getDescription() {\n\t\treturn description ;\r\n\t}", "@Override\n\tpublic void getDescription() {\n\n\t}", "public String getDescription() { return desc; }", "@Override\n public final String getDescription(){return descr;}", "@Override\r\n\tpublic St...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Firebase reference to all users.
public DatabaseReference getRefUsers() { return refUsers; }
[ "public DatabaseReference getUsersRef() {\n return (getUserEmail() != null)\n ? db.getRoot().child(DBA_ORIENTATION).child(REF_USERS)\n : null;\n }", "public void dataload(){\n \n FirebaseDatabase database = FirebaseDatabase.getInstance();\n DatabaseRe...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public float getRotation() { return rotation; }
[ "@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" ] ] } }
Test package inference when both /java/ and /javatests/ are present.
@Test public void inferPackage_pathContainsJavaAndJavatests2() { String relativePath = "some/random/path/javatests/psych/java/com/package/name/with/slashes"; String inferredPackage = BlazeImportUtil.inferJavaResourcePackage(relativePath); assertThat(inferredPackage).isEqualTo("com.package.name.with.slashe...
[ "public void testPackage() {\n setSystemProperty(WeavingURLClassLoader.WEAVING_ASPECT_PATH, \"\");\n setSystemProperty(WeavingURLClassLoader.WEAVING_CLASS_PATH, CLASSES_JAR);\n WeavingURLClassLoader loader = new WeavingURLClassLoader(getClass().getClassLoader());\n try {\n Cla...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Handle show more options selected
private void handleShowMoreOptionsSelect(final long currentSyncId) { if (currentMoreOptsMode.equals(MoreOptsMode.LESS)) { DsUtil.showLabel(filterNavMoreOptContainerId); currentMoreOptsMode = MoreOptsMode.MORE; DsUtil.setLabelText(filterNavMoreOptLinkTxtId,MORE_OPTS_LESS_TEXT); PageAssembler.attachHandler(...
[ "@Override\n\t\t\tpublic void onMoreClickListener(String number, String orderId,int downstat) {\n\t\t\t\tshowMoreOptionDialog(number, orderId,downstat);\n\t\t\t}", "public void selectMoreToCompare()\r\n\t\t\t{\r\n\t\t\t\tclick(selectMoreToCompareText);\r\n\t\t\t}", "@OnClick(R.id.btn_more)\n public void onCl...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public void updateFileReceiveDate(long id,long userId) { SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd"); DateFormat dFormat = new SimpleDateFormat("yyyy-MM-dd"); String strDate = dFormat.format(new Date()); Date date=new Date(); try { date = dateFormat.parse(strDate); } catch ...
[ "@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" ] ] } }
Directly sets the normals data buffer.
public void setNormalData( GeomNioFloatData data ) { normals = data; if ( normals == null ) { hasNormals = false; vertexFormat &= ~NORMALS; } else { hasNormals = true; vertexFormat |= NORMALS; ...
[ "private void setNormalData() {\n _meshData.setNormalBuffer(BufferUtils.createVector3Buffer(_meshData.getNormalBuffer(), 24));\n\n // top\n _meshData.getNormalBuffer().put(yAxis.getXf()).put(yAxis.getYf()).put(yAxis.getZf());\n _meshData.getNormalBuffer().put(yAxis.getXf()).put(yAxis.get...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The list of transactions. repeated .types.Transaction transactions = 1;
public java.util.List<org.libra.grpc.types.TransactionOuterClass.Transaction> getTransactionsList() { if (transactionsBuilder_ == null) { return java.util.Collections.unmodifiableList(transactions_); } else { return transactionsBuilder_.getMessageList(); } }
[ "public List getTransactions();", "public List<Transaction> getTransactionsList(){\n return transactionsList;\n }", "public List<Transaction> transactions() {\n\t\treturn acctActivity.transactions() ;\n\t}", "public void setTrans(List<Transaction> transactions) {\n\t\tthis.transactions = transaction...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method that return the dni.
public int getDni () { // Return the value. return this.dni; }
[ "public String getDNI() {\n return textDNI.getText();\n }", "public long dameDni() { return dni; }", "@Override\n public int getDNI() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "public Strin...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
endregion GoogleApiClient.ConnectionCallbacks region GoogleApiClient.OnConnectionFailedListener
@Override public void onConnectionFailed(@NonNull ConnectionResult connectionResult) { Log.e(TAG, "Connection to Google API client failed with error code :" + connectionResult.getErrorCode()); }
[ "@Override\n public void onConnectionFailed(ConnectionResult connectionResult) {\n // GoogleApiClient connection has failed.\n // Report error to listener\n reportError();\n }", "@Override\n public void onConnectionFailed(ConnectionResult result) {\n L.i(\"Connection failed: C...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This function is used to perform ReCalculate function in Edit Schedule Events Page
public void fnFWFESEReCalculate() throws InterruptedException { childTest = test.createNode("Description: Re-Calculate." + "<br>" + "<< Screen Name: Folder Workflows >></br>"); FluentWait<WebDriver> wait = new FluentWait<WebDriver>(driver) .withTimeout(Duration.ofSeconds(70)) .pollingEvery(Duration.ofSe...
[ "@Override\n public void recalculate() {\n }", "int getRecalculation();", "private void setRescheduleVars(int offset) {\n rescheduleDayStart = (Calendar) eventToCreate.getStartDateTime().clone();\n rescheduleDayStart.add(Calendar.DATE, offset);\n rescheduleDayEnd = (Calendar) eventToC...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Executed when the application is started
public void contextInitialized(ServletContextEvent e) { ServletContext sc = e.getServletContext(); LavacaConfig.instance(sc).load(sc); LavacaDust.load(sc); }
[ "public static void onStartup() {\n\t}", "private void startup()\n\t{\n\t}", "public void startup() {\n }", "protected void onStarting()\n\t{}", "public void onStart() {\r\n\r\n\t}", "@Override\n\tpublic void onStarting() {\n\t}", "protected void onStart() { }", "protected void onStart() {\r\n }...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
geeft een string representatie van een speler
public String toString(){ return super.toString(); }
[ "@Override\n\tpublic String parler() {\n\t\tString chaine=\"Je Rugis.\";\n\t\treturn chaine;\n\t}", "public interface Text {\n\n String HELP = \"Tja, Hilfe gibt es hier leider nicht - Belastend! \";\n String STOP = \"Ich hoffe dein restlicher Tag wird so belastend wie meiner. \";\n Stri...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Each transformation will apply transform function to given input column. And the result will be used for training. When creating transformation for BigQuery Struct column, the column should be flattened using "." as the delimiter. repeated .google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecasting...
java.util.List< com.google.cloud.aiplatform.v1beta1.schema.trainingjob.definition.AutoMlForecastingInputs .Transformation> getTransformationsList();
[ "@Test\n public void testTransformOverwriteField()\n {\n\n final TransformSpec transformSpec = new TransformSpec(\n null,\n ImmutableList.of(\n new ExpressionTransform(\"x\", \"concat(x,y)\", TestExprMacroTable.INSTANCE)\n )\n );\n\n Assert.assertEquals(\n Immutable...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
f0 > "PRINT" f1 > Exp()
public MType visit(PrintStmt n, MType argu) { MType _ret=null; n.f0.accept(this, argu); n.f1.accept(this, argu); return _ret; }
[ "public String visit(Exp n) {\n return n.f0.accept(this);\n }", "void printExpression(String Expression);", "void gen(String opcode, String operand1, String operand2){\n \tafile.println(\"\\t\"+opcode+\"\\t\"+ operand1+\" \"+ operand2);\n\t}", "void gen(String opcode, String ope...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
ArrayList stringNames = new ArrayList();
static ArrayList<Integer> parseRestricted(String filename) { ArrayList<Integer> domainSizes = new ArrayList<Integer>(); FileInputStream fstream = null; try { fstream = new FileInputStream(filename); } catch (FileNotFoundException e) { System.err.println("...
[ "List<String> getStringList(String name);", "public Names()\n {\n namesArray = new String[3];//initialize here the namesArray to a String array with 3 elements\n namesArrayList = new ArrayList<String>();// initialize here the namesArrayList\n }", "public static ArrayList<String> createString...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the result of interpreting the object as an instance of 'Void Type'. This implementation returns null; returning a nonnull result will terminate the switch.
public T caseVoidType(VoidType object) { return null; }
[ "public T caseVoidType(VoidType object)\n {\n return null;\n }", "public boolean isVoidType()\t\t{ return false; }", "@Override\n\tpublic void caseVoidType(VoidType t) {\n\n\t}", "public boolean isVoid()\n {\n return (getReturns() == Void.TYPE);\n }", "static AST.Type voidFor(T...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
End of onCreate Method to avoid closing the application on Back pressed
@Override public void onBackPressed() { if(drawerLayout.isDrawerOpen(GravityCompat.START)) { drawerLayout.closeDrawer(GravityCompat.START); } else { super.onBackPressed(); } }
[ "void quitApp() {\n // drop activity from memory\n finish();\n\n System.exit(0);\n }", "@Override\n public void onBackPressed() {\n exitAppMethod();\n }", "private void backToHome() {\n\t\tthis.onDestroy();\n\t\tfinish();\n\t\tSystem.exit(0);\n\t}", "protected void onDestr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ / / / /
void postWriteCleanup() { /* 3626 */ runUnlockedCleanup(); /* */ }
[ "private void calculatePaths() {\n\n\n }", "public static void main (String arg[]){\n\tSystem.out.println(\" ( ) ( ( \"); \n\n\tSystem.out.println(\" ( )\\\\ ) ( /( ( )\\\\ ) ( )\\\\ ) \");\n\t\n\tSystem.out.println(\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
repeated .pbui_Item_MeetOneStatistic item = 2;
public Builder addItem( int index, com.mogujie.tt.protobuf.InterfaceStatistic.pbui_Item_MeetOneStatistic.Builder builderForValue) { copyOnWrite(); instance.addItem(index, builderForValue); return this; }
[ "org.gof.demo.worldsrv.msg.Msg.DItemOrBuilder getItemOrBuilder();", "org.gof.demo.worldsrv.msg.Msg.DItem getItem();", "pomelo.item.ItemOuterClass.MiniItemOrBuilder getItemInfoOrBuilder();", "public void item() {\n\t\t\n\t}", "void countMe(){\n counters.increaseValueByOne(COUNTER_INDEX);\n }", "p...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the type of notification.
public Type getType() { return notificationType; }
[ "public String getNotificationType() {\n\t\treturn (String) get_Value(\"NotificationType\");\n\t}", "@Override\n\tpublic NotificationType getNotificationType() {\n\t\treturn NotificationType.TASK_QUESTION;\n\t}", "NotificationType createNotificationType();", "public String getNotificationProcessType() {\n\t\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
inicializacion de la board principal
private void initBoards(){ for (int i = 0; i < Board.ROWS; i++) { for (int j = 0; j < Board.COLS; j++) { this.board[i][j] = 0; } } // inicializacion de las board secundarias for (int i = 0; i < 5; i++) { for (int j = 0; j < 5; ...
[ "public void initBoard() {\n setSizeOfTile(findSizeOfTile());\n\n //Initialize board with zeros\n initBoardTable();\n\n //Initialize Canvas\n initCanvas();\n }", "private void initializeBoard()\n {\n _gameBoard = new GameBoard(GameData.getGameBoard(_gameName));\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
load all data list view
private void setListViewAdapter() { dataOpens = new ArrayList<>(); adapter = new OpenAdapter(this, R.layout.item_listview_open, dataOpens); listView.setAdapter(adapter); }
[ "private void initView()\n {\n mActiveGoodsViewAdapter.addItems((ArrayList<GoodsItem>) mMainDB.readAll(false));\n mActiveGoodsViewAdapter.notifyDataSetChanged();\n }", "private void loadAdpter() {\n\t\tif (list != null) {\r\n\t\t\t// List<News> mylist = list;\r\n\t\t\t// int y = mylist.size();...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Tests for nil "YomiOf" element
boolean isNilYomiOf();
[ "private Object isElementPresent(By id) {\n\treturn null;\n}", "public boolean isNilXyflag()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_us...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Draw particles on out image
private void drawParticles(Img<ARGBType> out, Calibration cal, float scale, int col) { // Create a list of particles final List<Particle> pt = new ArrayList<Particle>(); for (int i = 0; i < iParticles.size(); i++) { pt.add(iParticles.get(i)); } if (iRadius == -1) { ...
[ "public void draw()\r\n\t{\r\n\t\tint i=0;\r\n\t\t\r\n\t\t//Aditive Mode Draw\r\n\t\tif(aditive_mode)\r\n\t\t{\r\n\t\t\t//Set Aditive blend\r\n\t\t\tGlobal.camera.batch.setBlendFunction(GL20.GL_SRC_ALPHA, GL20.GL_ONE);\r\n\t\t\t\r\n\t\t\ti=0;\r\n\t\t\twhile(i<particle_count)\r\n\t\t\t{\r\n\t\t\t\tif(isactive[i])\r\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public void saveAllData(Collection<Data> inAll, User inUser) { }
[ "@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" ] ] } }
Add a value to the set of values that you are keeping a histogram of.
public void addValue(Field v) { rowCount++; int bucket = findBucket(((IntField)v).getValue()); segmentation[bucket].height++; }
[ "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" ] ] } }
User data change listener
private void addLatLngChangeListener() { final Query query = mFirebaseDatabase.child(data); mDataUpateListners = query.addValueEventListener(new ValueEventListener() { @Override public void onDataChange(DataSnapshot dataSnapshot) { if (data != null) { ...
[ "private void userDataChanged() {\r\n // Add your handling code here:\r\n dataChanged = true;\r\n }", "private void addUserChangeListener() {\n // User data change listener\n mFirebaseDatabase.child(UserId).addValueEventListener(new ValueEventListener() {\n @Override\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Send message from one user to another
public Message sendMessage(User from, String to, String subject, String message) throws CompetitionException { User user2= findUser(to); Message msg = new Message(from, user2, subject, message); from.getOutbox().add(msg); user2.getInbox().add(msg); return msg; }
[ "private void sendMessage(){\n\t\ttry\n\t\t{\n\t\t\tthis.getUserList();\n\t\t} \n\t\tcatch (IOException e1)\n\t\t{\n\t\t\tSystem.out.println(\"Error getting user list\");\n\t\t}\n\t\tSystem.out.println(\"What user would you like to send a message to? (enter their ID number)\");\n\t\tint remoteId = in.nextInt();\n\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get x do ponto
public double getX() { return X; }
[ "public Ponto getPonto() {\n return ponto;\n }", "@Override\n public double getUltimoPonto() {\n return this.getC();\n }", "@Override\n public double getPrimeiroPonto() {\n return this.getA();\n }", "public Figura(Ponto c) {\r\n\t\tcentro = c;\r\n\t}", "public int getPosi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Logs in the User, asking for a username and password.
public static boolean logIn() { try { UserInteraction.printMessage(Messages.ASK_USERNAME, true); String username = InputAsker.pedirCadena(""); UserInteraction.printMessage(Messages.ASK_PASSWORD, true); String password = InputAsker.pedirCadena(""); User user1 = users.getUsers().stream().filt...
[ "@Override\n\tpublic void login() {\n\t\tUserBiz userBiz = new UserBizImpl();\n\t\t\n\t\tScanner scanner = new Scanner(System.in);\n\t\tSystem.out.println(\"请输入用户名\");\n\t\tString username = scanner.next();\n\t\tboolean usernameexists = userBiz.isusernameexists(username);\n\t\tif (usernameexists) {\n\t\t\tSystem.ou...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set the folder property: Blob Folder.
public BlobAccountSink setFolder(String folder) { this.folder = folder; return this; }
[ "private void setFolder(final String aFolder)\r\n\t{\r\n\r\n\t\tthis.folder = new File(aFolder);\r\n\t}", "public void setFolder(File path) {\n this.path = path;\n }", "public void setDataFolder(String dataFolder)\r\n\t{\r\n\t\tthis.dataFolder = dataFolder;\r\n\t}", "@Override\n\t\t\t\tpublic void saveFol...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }