Dataset Viewer
Auto-converted to Parquet Duplicate
query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
sequencelengths
19
20
metadata
dict
Marks the leaf "cellaccessmode" with operation "create".
public void markCellAccessModeCreate() throws JNCException { markLeafCreate("cellAccessMode"); }
[ "public void markMajorActionCreate() throws JNCException {\n markLeafCreate(\"majorAction\");\n }", "public void markMajorAbateCreate() throws JNCException {\n markLeafCreate(\"majorAbate\");\n }", "public void markMinorAbateCreate() throws JNCException {\n markLeafCreate(\"minorAbate...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The functions that a Cart item should have to interact with Database
public interface CartItemDao { /** * Add the cart item into cart * * @param cartItem */ void addCartItem(CartItem cartItem); /** * Remove the cart item from cart * * @param CartItemId */ void removeCartItem(int CartItemId); /** * Clear the cart * * @param cart */ void removeAllCartItems(Cart cart); }
[ "hipstershop.Demo.CartItem getItem();", "void addCartItem(CartItem cartItem);", "public void insertCart(Cart cart) throws UserApplicationException;", "public interface IShoppingCart {\n\t/**\n\t * add a simple product to the cart\n\t * \n\t * @param product\n\t */\n\tpublic Product addProduct(String name, Str...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Pulls the column names from the fitting criteria columns for a single markov chain
private ArrayList<String> populateTableColumnNames(){ ArrayList<String> columnNames = new ArrayList<>(); if(this.digPopGUIInformation.getFittingCriteriaColumnNames() != null){ columnNames = this.digPopGUIInformation.getFittingCriteriaColumnNames(); } else{ //Census Value Names columnNames.addAll(Arrays.asList("ID","Census Region Trait" ,"Census Region Total","Survey Trait Table" ,"Survey Trait Select","Survey Trait Field" ,"Survey Total Table", "Survey Total Field" , "User Entered Description", "Trait Weight")); this.digPopGUIInformation.setFittingCriteriaColumnNames(columnNames); } return columnNames; }
[ "abstract String[] getColumnNamesForConstraint(String constraintName);", "private String generateColumnNames() {\n String text = SUBJECT_ID + DELIMITER\n + SUBJECT_AGE + DELIMITER\n + SUBJECT_GENDER + DELIMITER\n + LEFT_CHOICE + DELIMITER\n + RIGH...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Generates a (relative) directory name based on a class name. Uses the appropriate separators for the platform.
public static String generateDirectorynameFromClassname(String classname) { // the generated directory name is usable on both Linux and Windows // (which uses \ as a separator). return OUTPUT_FOLDER_PREFIX + classname.replace('.', '/') + '/'; // File tmp = new File(OUTPUT_FOLDER_PREFIX + classname.replace('.', // '/') + '/'); // return tmp.getAbsolutePath(); }
[ "protected final String toClassFileName(final String name) {\n String className = name.replace('.', File.separatorChar);\n\n className = className.replace('/', File.separatorChar);\n\n className = className + \".class\";\n\n return className;\n }", "private String generateClassPath(String name) {\n\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Function to create and write the output in a _Decoded.txt file
private void createDecodedFile(String decodedValues, String encodedFileName) throws Exception { String decodedFileName = encodedFileName.substring(0, encodedFileName.lastIndexOf(".")) + "_decoded.txt"; //FileWriter and BufferedWriter to write and it overwrites into the file. FileWriter fileWriter = new FileWriter(decodedFileName, false); BufferedWriter bufferedWriter = new BufferedWriter(fileWriter); bufferedWriter.write(decodedValues); //Flush and Close the bufferedWriter bufferedWriter.flush(); bufferedWriter.close(); }
[ "private void createDecodedFile() {\r\n try {\r\n //Keep iterating until all characters have been written to outfile\r\n int iter = 0; \r\n while(iter < characters) {\r\n //Continue reading file bytes until at a character leaf\r\n while(!tree.atL...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the Bcc header field of this message to the specified address.
public void setBcc(Address bcc) { setAddressList(FieldName.BCC, bcc); }
[ "public void setBcc(Address... bcc) {\n setAddressList(FieldName.BCC, bcc);\n }", "public void setBccAddress(String strAddress) {\n\t\tif(strAddress!=null)\n\t\t{\n\t\t\tString[] alAddress = StringUtil.toArr(strAddress,\";\"); \n\t \tthis.bccAddress = new Address[alAddress.length]; \n\t \tfor (int...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the value of the 'PRPSL_AGCY_ID' field.
public org.LNDCDC_ADS_PRPSL.PRPSL_AGCY_XMAP.apache.nifi.LNDCDC_ADS_PRPSL_PRPSL_AGCY_XMAP.Builder setPRPSLAGCYID(java.lang.Long value) { validate(fields()[4], value); this.PRPSL_AGCY_ID = value; fieldSetFlags()[4] = true; return this; }
[ "public void setPRPSLAGCYID(java.lang.Long value) {\n this.PRPSL_AGCY_ID = value;\n }", "public void setPRPSLAGCYXMAPID(java.lang.Long value) {\n this.PRPSL_AGCY_XMAP_ID = value;\n }", "public java.lang.Long getPRPSLAGCYID() {\n return PRPSL_AGCY_ID;\n }", "public java.lang.Long getPRPSLAGCYID...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Editar VisitaFinalCasoCovid19 existente en la base de datos
public boolean editarVisitaFinalCasoCovid19(VisitaFinalCasoCovid19 visitacaso) throws Exception{ ContentValues cv = VisitaFinalCasoCovid19Helper.crearVisitaFinalCasoCovid19ContentValues(visitacaso); return mDb.update(Covid19DBConstants.COVID_VISITA_FINAL_CASO_TABLE , cv, Covid19DBConstants.codigoVisitaFinal + "='" + visitacaso.getCodigoVisitaFinal() + "'", null) > 0; }
[ "public boolean editarCuestionarioCovid19(CuestionarioCovid19 partcaso) throws Exception{\n\t\tContentValues cv = CuestionarioCovid19Helper.crearCuestionarioCovid19ContentValues(partcaso);\n\t\treturn mDb.update(Covid19DBConstants.COVID_CUESTIONARIO_TABLE, cv, Covid19DBConstants.codigo + \"='\"\n\t\t\t\t+ partcaso....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Helper method. Forwards a request to the default dispatcher.
private void forward(final HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { RequestDispatcher rd = getServletContext().getNamedDispatcher("default"); rd.forward(request, response); }
[ "public void sendNowWith(RequestDispatcher viaThis);", "public void sendGlobalWith(RequestDispatcher viaThis);", "public void bindDefaultRequestHandler(DmpRequestProcessorIF requestProcessor);", "void dispatchRequest(String urlPath) throws Exception;", "public interface ActionDispatcher {\n\n /**\n * Dis...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
stop if there are some errors
public boolean proceedOnErrors() { return false; }
[ "public boolean abortOnFailedAnalysis()\n {\n return true;\n }", "private void error() {\n this.error = true;\n this.clients[0].error();\n this.clients[1].error();\n }", "public boolean hasContinueOnError();", "private void checkHalt() {\n if (state.getIsStop()) {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Check if sensor is in hybrid mode
public boolean isHybridMode(long sensorAddress) throws SQLException { boolean isHybrid = false; PreparedStatement l_pstmt = m_db .prepareStatement("select sens_is_in_hybrid_mode from sensor where sens_address = ?"); l_pstmt.setLong(1, sensorAddress); ResultSet l_rs = l_pstmt.executeQuery(); if (l_rs.next()) isHybrid = l_rs.getBoolean(1); l_rs.close(); l_pstmt.close(); return isHybrid; }
[ "public boolean canDetectSensors();", "private boolean onlineMode() {\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this);\n boolean allowed = preferences.getBoolean(Constants.PREF_ALLOW_TRACKING_WITHOUT_WLAN, false);\n\n ConnectivityManager connManager = (Co...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test of getMagnitude method, of class Unit.
@Test public void testGetMagnitude() { System.out.println("getMagnitude"); Unit instance = new Unit(); Magnitude expResult = null; Magnitude result = instance.getMagnitude(); assertEquals(expResult, result); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); }
[ "@Test\n public void testSetMagnitude() {\n System.out.println(\"setMagnitude\");\n Magnitude magnitude = null;\n Unit instance = new Unit();\n instance.setMagnitude(magnitude);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The te...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sorts an array of clocks in place, using insertion sorting. Used public because the method needs to be accessed from outside, void because the method does not return something
public void inPlaceInsertionSort(Clock [] s){ int x; int i; Clock temp= new Clock(0,0,0); for(x=1;x<s.length;x++){ temp = s[x]; for (i=x-1;(i>=0)&&(s[i].isAfter(temp));i--){ s[i+1]= s[i]; } s[i+1]=temp; } }
[ "@Test\n public void testInsertionSort() {\n Integer[] copy = Arrays.copyOf(data, data.length);\n System.out.println(\"\\nUnsorted Data\");\n sorter.timedSort(SortAlgorithm.INSERTION, copy, comp);\n assertTrue(\"Not sorted\", isSorted(copy, comp));\n System.out.println(\"\\nSorted Data\");\n sort...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Represents the status of the changed resource. .google.ads.googleads.v0.enums.ChangeStatusOperationEnum.ChangeStatusOperation resource_status = 8;
public com.google.ads.googleads.v0.enums.ChangeStatusOperationEnum.ChangeStatusOperation getResourceStatus() { @SuppressWarnings("deprecation") com.google.ads.googleads.v0.enums.ChangeStatusOperationEnum.ChangeStatusOperation result = com.google.ads.googleads.v0.enums.ChangeStatusOperationEnum.ChangeStatusOperation.valueOf(resourceStatus_); return result == null ? com.google.ads.googleads.v0.enums.ChangeStatusOperationEnum.ChangeStatusOperation.UNRECOGNIZED : result; }
[ "public com.google.ads.googleads.v0.enums.ChangeStatusOperationEnum.ChangeStatusOperation getResourceStatus() {\n @SuppressWarnings(\"deprecation\")\n com.google.ads.googleads.v0.enums.ChangeStatusOperationEnum.ChangeStatusOperation result = com.google.ads.googleads.v0.enums.ChangeStatusOperationEnum.ChangeSt...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Dokumentacni komentar metody na zaklade hlavnich parametru obrazovky, vypocet parametru: PPI na vysku a na sirku a vypocet horizontalni roztec bodu "pitch"
public static void main(String[] args) { //zakladni parametry obrazovky int hSize = 332; int vSize = 186; int hResolution = 1920; int vResolution = 1080; //vypocet PPI na vysku a na sirku double hPPI = hResolution/(hSize/25.4); double vPPI = vResolution/(vSize/25.4); double rPPI = hPPI/vPPI; //vypocet horizontalni roztec bodu (pitch) a velikost obrazku v milimetrech double pitch = ((double)(1) / hResolution)*hSize; double width = (200 / hPPI)* 25.4; double height = (100/vPPI)*25.4; /*vypis vsech parametru */ System.out.println("hSize [mm] = "+hSize); System.out.println("vSize [mm] = "+vSize); System.out.println("hResolution [pixels] = "+hResolution); System.out.println("vResolution [pixels] = "+vResolution); System.out.println("----------------------------"); System.out.println("hPPI = "+hPPI); System.out.println("vPPI = "+vPPI); System.out.println("rPPI = "+rPPI); System.out.println("pitch [mm] = "+pitch); System.out.println("width [mm] = "+width); System.out.println("height [mm] = "+height); }
[ "public void setPitch(int pitch);", "@Override\r\n public void setParams() {\r\n addParam(PERIOD, 10, 1200, 10, 360);\r\n addParam(ENTRY, 1, 30, 1, 12);\r\n }", "public void setPitch(double x){\n pitch = x;\n }", "float getPitch();", "public float getPitchAngle() { return PitchAngle;...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Define o valor da propriedade dsComplementoCep.
public void setDsComplementoCep(int value) { this.dsComplementoCep = value; }
[ "double setPrecioCompra(double dtopp,double prCompraEdicion,double impPortes,double impComision)\n {\n return prCompraEdicion+impPortes+impComision;\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.math.BigDecimal getProdsCompldOpsELPOverride();", "public PaqueteComerciar getPaqueteComerci...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Try to find and set a path to EntityLiving. Returns true if successful. Args : entity, speed
public boolean tryMoveToEntityLiving(WrappedEntity entityIn, double speedIn) { return navigation.a(entityIn.getEntity(), speedIn); }
[ "public boolean tryMoveToEntityLiving(org.bukkit.entity.Entity entityIn, double speedIn) {\n\t\treturn navigation.a(((CraftEntity) entityIn).getHandle(), speedIn);\n\t}", "public void walkTo(Location loc, float speed) {\n try {\n\n Object handle = getHandle();\n\n // Set the onGround ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
stop() is used to stop event simulation
public synchronized void stop() { isStopped = true; generators.forEach(EventGenerator::stop); EventSimulatorDataHolder.getSimulatorMap().remove(uuid); if (log.isDebugEnabled()) { log.debug("Stop event simulation for uuid : " + uuid); } }
[ "private void handleStop(ActionEvent actionEvent)\n {\n simulator.stop();\n }", "public void stop() {\n setClosedLoopControl(false);\n }", "public void stop ()\n {\n stopped = true;\n\t\ttrc.info( \"signal is stopped \" + Coroutine.getTime () );\n // trc.show (\"run\", \"signal...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method increases the number of visited nodes by 1.
public void UpNumberOfVisitedNodes() { NumberOfVisitedNodes++; }
[ "public void setNumberOfVisitedNodes(int numberOfVisitedNodes) {\n NumberOfVisitedNodes = numberOfVisitedNodes;\n }", "public void markAllNodesAsUnvisited() {\r\n visitedToken++;\r\n }", "public void increaseInEdgeCount() {\n\t\tinEdgeCount++;\n\t}", "protected void incEdgeCount() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test the connection with bad password
@Test public void testConnectionWhenBadPass() { Form form = new Form(); form.param("login", "user"); form.param("psw", "00000"); Response connect = target.path(auth).request().post(Entity.form(form)); assertEquals(530,connect.getStatus()); }
[ "public void testIncorrectPassword() {\n Password p = new Password(\"jesus\".toCharArray());\n assertFalse(p.checkPassword(\"buddha\".toCharArray()));\n }", "@Test\n public void testConnectionWhenBadUser() {\n \tForm form = new Form();\n \tform.param(\"login\", \"test\");\n \tform.par...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adds the given item to the heap.
public void add(T item) { ensureCapacity(); array_heap[num_items + 1] = item; num_items++; bubbleUp(num_items); }
[ "public void add(int item)\n {\n if (isEmpty())\n {\n heap[1] = item;\n }\n else\n {\n int newIndex = lastIndex + 1;\n int parentIndex = newIndex / 2;\n while (parentIndex > 0 && item > heap[parentIndex])\n {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The UriDelegationPeer is used as a mechanism to pass arguments from the UriArgManager which resides in "launcher space" to our argument delegation service implementation that lives as an osgi bundle. An instance of this peer is created from within the argument delegation service impl and is registered with the UriArgManager.
public interface ArgDelegationPeer { /** * Handles <code>uriArg</code> in whatever way it finds fit. * * @param uriArg the uri argument that this delegate has to handle. */ public void handleUri(String uriArg); /** * Called when the user has tried to launch a second instance of * SIP Communicator while a first one was already running. A typical * implementation of this method would simply bring the application on * focus but it may also show an error/information message to the user * notifying them that a second instance is not to be launched. */ public void handleConcurrentInvocationRequest(); }
[ "void addPeerEndpoint(PeerEndpoint peer);", "java.lang.String getDelegatorAddress();", "protected void setPeer() {\n //--ARM-- setPeer()\n }", "public void setPeer(Peer peer);", "void addPeer(Uuid peer) throws RemoteException;", "public P2PSocketLeaseManager(PeerGroup group,PipeAdvertisement adv,Objec...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Disable the inventory menu if the user has no items. Disable the pick up item menu if there are no items to pick up.
private void setUsabilityOfMenus(World world) { inventoryMenu.setDisable(world.getInventory().size() == 0); pickupItemMenu.setDisable(world.getPickupItems().size() == 0); }
[ "private void setUsabilityOfInventoryMenuItems(World world) {\n\t\tif (!roomToDrop(world)) {\n\t\t\tfor (MenuItem itemToDisable : inventoryMenu.getItems()) {\n\t\t\t\titemToDisable.setDisable(true);\n\t\t\t}\n\t\t}\n\t}", "private void disableBoughtItems() {\n for (int i = 0; i < itemButtons.size(); i++) {...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adds the given filter to the idAttrs edition editor.
public void addFilterToIdAttrs(ViewerFilter filter);
[ "public void addFilterToIdParams(ViewerFilter filter);", "public void addFilterToAttributes(ViewerFilter filter);", "public void addBusinessFilterToIdAttrs(ViewerFilter filter);", "public void addBusinessFilterToIdParams(ViewerFilter filter);", "public void addFilterToAnotations(ViewerFilter filter);", "p...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Download Stock data every night at 10 PM
@Scheduled(cron="0 51 22 * * *") public void downloadStockData() throws IOException { System.out.println("Downloading Stock Quotes...."); DownloadData.main(null); }
[ "public void getHistoricalData(KiteConnect kiteConnect) throws KiteException, IOException {\n SimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n Date from = new Date();\n Date to = new Date();\n try {\n from = formatter.parse(\"2019-12-20 09:15:00\"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
44