query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
This method was generated by MyBatis Generator. This method returns the value of the database column city_data.cured_Count
public String getCuredCount() { return curedCount; }
[ "public int getCityCount() {\n\t\treturn cityCount;\n\t}", "public int countCities(){\n int cityListLen = cities.size();\n return cityListLen;\n }", "public int getNumberOfCities(){\n\t\treturn allcities.size();\n\t}", "public static int getTotalCities(){\n return allCities.size();\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Retrieve the count of objects that match a qualifier.
public static int countOfObjectsMatchingQualifier( EOEditingContext context, EOQualifier qualifier) { return ERXEOControlUtilities.objectCountWithQualifier( context, ENTITY_NAME, qualifier); }
[ "public abstract int getCountEntitiesForCurrentRequirements();", "long count(Specification<E> spec);", "public int getObjectCount() {\n\t\treturn objects.size(); // Replace with your code\n\t}", "public int occurrences(Object obj);", "com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Count getC...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set class lock to false, found with classId.
@Modifying @Transactional @Query(value = "UPDATE classes cl SET cl.locked = :unlock WHERE(cl.class_id = :classId)", nativeQuery = true) public void unlockClass(@Param("classId") int classId, @Param("unlock") boolean unlock);
[ "boolean isLockable( String className );", "public void setClassId(Long classId) {\n this.classId = classId;\n }", "public void methodWithCls1Locking() {\n\n synchronized (cls) {\n System.out.println(Thread.currentThread().getName() + \" has obtained a lock on \" + cls.toStri...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Walls and doors never move, so we put them into a sprite cache.
private int createWallsAndDoors (SpriteCache sc) { sc.clear(); sc.beginCache(); sc.setColor(Color.BLUE); Array<Rectangle> rects = world.getWallRects(); for (int i = 0; i < rects.size; i++) { Rectangle rect = rects.get(i); sc.add(Assets.pureWhiteTextureRegion, rect.x, rect.y, rect.width, rect.height); ...
[ "private void createWalls()\r\n\t{\r\n\t\t//create the top wall\r\n\t\tSprite topWall = new Sprite(0,0)\r\n\t\t{\r\n\t\t\t@Override\r\n\t\t\tpublic void draw(Graphics g)\r\n\t\t\t{\r\n\t\t\t\tg.setColor(Color.white);\r\n\t\t\t\tg.fillRect(x, y, PongWindow.WIDTH, WALL_THICKNESS);\r\n\t\t\t}\r\n\t\t\t@Override\r\n\t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Setter method for property localFlg.
public void setLocalFlg(String localFlg) { this.localFlg = localFlg; }
[ "public String getLocalFlg() {\n\t\treturn localFlg;\n\t}", "public void setReportFlg(String reportFlg) {\r\n\t\tthis.reportFlg = reportFlg;\r\n\t}", "private void setLocalPath(String localPath){\n\t\tPathLocation.location = localPath;\n\t}", "public void setLocalRichInfoFinder(LocalRichInfoFinder localRichIn...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets instance of dispatching properties.
public static DispatchingProperties getInstance() { // if (handler == null) { // handler = new DispatchingProperties(); // } // return handler; return (DispatchingProperties) Properties.forClassName(Properties.DISPATCHING_PROPERTIES_HANDLER_CLASS); }
[ "Property getProperty();", "public static PropertyUtil getInstance(){\t\t\n\t\tif(resource==null){\n\t\t\tresource = new PropertyUtil();\n\t\t}\n\t\treturn resource;\n\t}", "private PropertyChangeSupport prop () {\n synchronized (this) {\n if (propSupp == null) {\n p...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the desired screen state.
public int getScreenState() { return mScreenState; }
[ "public Screen getCurrentScreen();", "public abstract TnScreen getCurrentScreen();", "ScreenBase getCurrentScreen();", "public static Screen getCurrentScreen() {\n return currentScreen;\n }", "public Screen getCurrentScreen() {\r\n return currentScreen;\r\n }", "STATE getCurrentState()...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
`status: Not Mapped` coredatatypereference: BIAN::DataTypesLibrary::CoreDataTypes::ISO20022andUNCEFACT::Identifier generalinfo: Reference to the Regulatory Compliance Administrative Plan instance
public String getRegulatoryComplianceAdministrativePlanInstanceReference() { return regulatoryComplianceAdministrativePlanInstanceReference; }
[ "public String getRegulatoryAndLegalAuthorityRelationshipManagementPlanPlan() {\n return regulatoryAndLegalAuthorityRelationshipManagementPlanPlan;\n }", "public String getRegulatoryAndLegalAuthorityRelationshipManagementPlanDescription() {\n return regulatoryAndLegalAuthorityRelationshipManagementPlanDesc...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Check for the db records and clear records more than 20
@Synchronized public void cleanTransferModelRecordsPeriodically() { try { ArrayList<Long> arrayList = getTransferModelsListIds(); ArrayList<String> arrayListToDelete = new ArrayList<>(); if (!arrayList.isEmpty() && arrayList.size() > 20) { for (int i...
[ "public void clean() {\r\n\t\tint count=em.createQuery(\"DELETE FROM ConversionRate e\").executeUpdate();\r\n\t\tlog.log(Level.WARNING,\"ConvertionRate records deleted {0}\",count);\r\n\t\t\r\n\t}", "public void deleteAllRecords() {\n deleteAllRecordsFromDB();\n }", "private void deleteAllRecords() {\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the value of the cantidad property.
public int getCantidad() { return cantidad; }
[ "public java.lang.Integer getCantidad() {\r\n return cantidad;\r\n }", "public int getCantidad() {\n return cantidad;\n }", "public Canton getCanton() {\n\t\treturn canton;\n\t}", "public int getNacionalidad() {\n return nacionalidad;\n }", "public int getCantidadPaquetes(){\r\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
If SO_KEEPALIVE is enabled (default), this method ensures sane default values for the extended socket options TCP_KEEPIDLE and TCP_KEEPINTERVAL. The default value for TCP_KEEPIDLE is system dependent, but is typically 2 hours. Such a high value can result in firewalls eagerly closing these connections. To tell any inte...
public static void tryEnsureReasonableKeepAliveConfig(NetworkChannel socketChannel) { assert socketChannel != null; try { if (socketChannel.supportedOptions().contains(StandardSocketOptions.SO_KEEPALIVE)) { final Boolean keepalive = socketChannel.getOption(StandardSocketOptio...
[ "public static SocketOption<Integer> getTcpKeepIdleSocketOptionOrNull() {\n return getExtendedSocketOptionOrNull(\"TCP_KEEPIDLE\");\n }", "public static SocketOption<Integer> getTcpKeepIntervalSocketOptionOrNull() {\n return getExtendedSocketOptionOrNull(\"TCP_KEEPINTERVAL\");\n }", "public ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Finds the index of the end of a loop
private static int findEndIndex(String s) { s=s.substring(0, s.indexOf('w')); int i=instructionPointer; while(!instructionArray[i].contains("end;") || instructionArray[i].contains(" "+s)) { i++; } return i; }
[ "int getEndIndex();", "public int getLoopEndPointer() {\n return loopEndPointer;\n }", "public int getEndPosition();", "public int getEnd() {\r\n\t\treturn this.offset + this.numResults;\r\n\t}", "protected int findNonEmptyPosition() {\n\t\t\twhile (!set.bv[++indice]) {\n\t\t\t}\n\t\t\treturn indi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Load author array to nodes; only for original keywords
public int loadAuthor2(double[] authorNumbers, int index) { if(this.isValid() && this.insertedKeywordIndex == -1) { this.author2 = authorNumbers[index]; index++; } for(int i=0; i<this.childNode.size(); i++) { ACMTreeNode child = this.childNode.get(i); index = child.loadAuthor2(authorNu...
[ "void setAuthorArray(java.lang.String[] authorArray);", "void xsetAuthorArray(org.apache.xmlbeans.XmlString[] authorArray);", "public int loadAuthor1(double[] authorNumbers, int index) {\r\n\r\n\t\tif(this.isValid() && this.insertedKeywordIndex == -1) {\t\t\r\n\t\t\tthis.author1 = authorNumbers[index];\r\n\t\t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the IDs for project categories to evaluate the participation metrics data for.
public void setProjectCategoryIds(long[] projectCategoryIds) { this.projectCategoryIds = projectCategoryIds; }
[ "CategoryReportBuilder classificationIdIn(List<String> classificationIds);", "public void setProjectCategories(List<ProjectCategory> projectCategories) {\n this.projectCategories = projectCategories;\n }", "private void setUpCategories() {\n\t\tcategories = new int[nPlayers][N_CATEGORIES+1];\n\t\tcate...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Illegal if false we only support layered highlights
@Override public void setDrawsLayeredHighlights(boolean newValue) { if (newValue == false) { throw new IllegalArgumentException( "UnderlineHighlighter only draws layered highlights"); } super.setDrawsLayeredHighlights(true); }
[ "public boolean getHighlight();", "public Color getHighlight();", "void paintHighlight(Graphics2D g);", "public void highlight() {\n\t\t\n\t}", "public boolean isHighlight() {\r\n\t\treturn _highlight;\r\n\t}", "public void setDrawsLayeredHighlights(final boolean b) {\n drawsLayeredHighlights = b;\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Computes mean value of an arraylist of doubles
private static double getMean(ArrayList<Double> m) { double sum = 0; for (int i = 0; i < m.size(); i++) { sum += m.get(i); } return sum / m.size(); }
[ "private double getAverage(double[] list){\r\n\t\tdouble result = 0;\r\n\t\tfor(double element: list){\r\n\t\t\tresult += element;\r\n\t\t}\r\n\t\treturn result / list.length;\r\n\t}", "public double mean (List<? extends Number> a){\n\t\tint sum = sum(a);\n\t\tdouble mean = 0;\n\t\tmean = sum / (a.size() * 1.0);\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get random planet position as a point on a circle with a random radius, on the xz plane. Also add some random y variation.
private Vector3f getPlanetPosition() { Vector3f position = new Vector3f(); double theta = Math.random() * 2 * Math.PI; double r = MathUtils.randRange(MIN_ORBITAL_RADIUS, MAX_ORBITAL_RADIUS); position.x = (float) (r * Math.cos(theta)); position.z = (float) (r * Math.sin(theta)); // Introduce y variatio...
[ "public static Vector3d generateRandomPosition(){\n\n double x = Math.random() * c;\n double y = Math.random() * c;\n double z = Math.random() * 1e9;\n\n double[] randomPos = {x, y, z};\n double[] earthPosValues = {Planet.planets[3].posVector.getX(),Planet.planets[3].posVector.get...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns all rows from the witness table that match the criteria 'slno = :slno'.
public Witness[] findWhereSlnoEquals(int slno) throws WitnessDaoException { return findByDynamicSelect( SQL_SELECT + " WHERE slno = ? ORDER BY slno", new Object[] { new Integer(slno) } ); }
[ "public Renquiry[] findWhereSlnoEquals(int slno) throws RenquiryDaoException;", "public Witness[] findAll() throws WitnessDaoException\n\t{\n\t\treturn findByDynamicSelect( SQL_SELECT + \" ORDER BY slno, comcaseno, wtype\", null );\n\t}", "public Witness findByPrimaryKey(int slno, String comcaseno, String wtype...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Helper method to convert array of String instances to constructor values for a GeneralContextAtributeAnalyzer and uses them to return a single instance of the GeneralContextAtributeAnalyzer class. Feb 12, 2018
private SentenceContextAttributeAnalyzer getSentenceContextAttributeAnalyzer( String[] analyzerConstructorValues) { int fieldIndex; fieldIndex = RaptatConstants.SENTENCE_CONTEXT_ATTRIBUTE_ANALYZER_FIELDS.RETURN_DEFAULT.ordinal(); boolean returnDefault = Boolean.parseBoolean(analyzerC...
[ "private Analyzer getAnaLyzer() {\n\n\t\tif (this.analyzer.equals(\"KeywordAnalyzer\")) {\n\n\t\t\treturn new KeywordAnalyzer();\n\t\t}\n\n\t\telse if (this.analyzer.equals(\"SimpleAnalyzer\")) {\n\n\t\t\treturn new SimpleAnalyzer();\n\t\t}\n\n\t\telse if (this.analyzer.equals(\"StopAnalyzer\")) {\n\n\t\t\treturn n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set mote interfaces of this mote type
public void setMoteInterfaces( Vector<Class<? extends MoteInterface>> moteInterfaces) { this.moteInterfaces = moteInterfaces; }
[ "public Vector<Class<? extends MoteInterface>> getMoteInterfaces() {\n return moteInterfaces;\n }", "public void setInterfaces(String[] interfaces)\n {\n this.interfaces = interfaces;\n }", "public void setInterfaces(java.util.List<com.bbn.tc.schema.avro.cdm18.Interface> value) {\n this.inte...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a copy of the provided mapper and its injected values and adds the caller to the new copy
default ObjectMapper injectIntoNew(ObjectMapper mapper) { // If is already MutableInjectable, add my values to other, else begin from scratch. if (mapper.getInjectableValues() instanceof MutableInjectableValues) { return mapper.copy() .setInjectableValues(inject(((MutableInjectableValues) mapper.getInjec...
[ "public void addMapper(Mapper mapper);", "public abstract void setMapper(Mapper mapper);", "private <Type> Introspector.ParameterMapperWrapper<Type> createParameterMapperWrapper(\n ParameterMapper<? super Type> mapper,\n String name\n )\n {\n return (Type value, Map<String, Object> pa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set the value related to the column: history_of_illness
public void setHistoryOfIllness (java.lang.String historyOfIllness) { this.historyOfIllness = historyOfIllness; }
[ "public void setLiquorExposure(java.lang.Long value);", "public void refillLife(){\r\n\t\tthis.life = totalLife;\r\n\t}", "public java.lang.String getHistoryOfIllness () {\n\t\treturn historyOfIllness;\n\t}", "public void setHistorical(boolean historical)\n {\n synchronized (monitor())\n {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
log GPS data and antenna orientation data with button press (if button not pressed before experiment start) method below (writeGPSDataToDB(...)) is called automatically.
public void logLocation(View view) { writeGPSDataToDB(locationHandler.getLatitude(), locationHandler.getLongitude(), locationHandler.getAltitude()); databaseHandler.setValueInExpInfo(((TextView) findViewById(R.id.accelerate_indicator_rec)).getText().toString(), "receiver_orientation", experimentNumber);...
[ "private void logGPSOn() {\n Date now = new Date();\n int batLevel = bm.getIntProperty(BatteryManager.BATTERY_PROPERTY_CAPACITY);\n // we have turned the GPS on but haven't necessarily acquired a signal yet (redundant with LOC_ON when only logging)\n String logString = \"GPS_ON (LOGGING_...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get all row selection ids
public Collection<String> getRowSelectionIds () { return getSelectionIds (rowSelections); }
[ "private Set<Object> fetchSelectedIDs()\r\n {\r\n Set<Object> ids = new HashSet<Object>();\r\n for (T item : selectionModel.getSelectedSet())\r\n {\r\n ids.add(selectionModel.getKey(item));\r\n }\r\n return ids;\r\n }", "public int[] getSelectionIDs()\n\t{\n\t\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
print the mat that with points.
public void printPointMat(){ System.out.println("PointMat"); for (int i = 0; i < myNodeMat.length; i++) { for (int j = 0; j < myNodeMat[0].length; j++) { System.out.print(myNodeMat[i][j].toString()); } System.out.println(); } }
[ "void printMatrix() {\n\t\tfor (int i = 0; i < mat.length; i++) {\n\t\t\tSystem.out.println();\n\t\t\tfor (int j = 0; j < mat[i].length; j++) {\n\t\t\t\tSystem.out.printf(\"%5d\", mat[i][j]);\n\t\t\t}\n\t\t}\n\t}", "public static void printMatrix(Safe safe) {\n Coordinate[][] mat = safe.getMatrix();\n\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Access method for renewalOpenFlag.
public Character getRenewalOpenFlag() { return renewalOpenFlag; }
[ "public void setRenewalOpenFlag(Character aRenewalOpenFlag) {\n renewalOpenFlag = aRenewalOpenFlag;\n }", "public int getRenewal_status() {\n return renewal_status;\n }", "public void setRenewFlag(Long RenewFlag) {\n this.RenewFlag = RenewFlag;\n }", "public Boolean getOpen() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Removes all the thu tuc2 giay tos where thuTucHanhChinhId = &63; and danhMucGiayToId = &63; and giaidoan = &63; from the database.
public void removeByThuTuc2GiayTo(long thuTucHanhChinhId, long danhMucGiayToId, int giaidoan) throws com.liferay.portal.kernel.exception.SystemException;
[ "public void removeByThuTuchanhChinh(long thuTucHanhChinhId, int daXoa,\n\t\tint giaidoan)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "public java.util.List<org.oep.cmon.dao.dvc.model.ThuTuc2GiayTo> findByThuTuc2GiayTo(\n\t\tlong thuTucHanhChinhId, long danhMucGiayToId, int giaidoan)\n\t\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Removes the cacheResponse attribute value. org.dmd.dmg.generators.BaseDMWGenerator.formatSV(BaseDMWGenerator.java:1510)
public void remCacheResponse(){ ((GetResponseDMO) core).remCacheResponse(); }
[ "public static void discourageCache(HttpServletResponse response) {\n\t\tDate now = new Date();\n\t\tresponse.setDateHeader(\"Expires\", now.getTime());\n\t\tresponse.setDateHeader(\"Last-Modified\", now.getTime());\n\t\tresponse.setHeader(\"Cache-Control\", \"no-cache\");\n\t\tresponse.setHeader(\"Cache-Control\",...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a range of all the products where userId = &63;. Useful when paginating results. Returns a maximum of end start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtilALL_POS will return the full re...
public java.util.List<Product> findByUserId( long userId, int start, int end);
[ "public java.util.List<Product> findByUserId(\n\t\tlong userId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Product>\n\t\t\torderByComparator);", "public java.util.List<Product> findByUserId(\n\t\tlong userId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a new PushPopRemover.
public PushPopRemover(BranchTargetFinder branchTargetFinder, CodeAttrInfoEditor codeAttrInfoEditor) { this.branchTargetFinder = branchTargetFinder; this.codeAttrInfoEditor = codeAttrInfoEditor; }
[ "private Command createPopCommand() {\n\t\treturn new PopCommand();\n\t}", "Popis createPopis();", "private Command createPushCommand() {\n\t\treturn new PushCommand();\n\t}", "protected PushPullController createPushPullController() {\n return new PushPullController();\n }", "RemoveEdges createRemoveEdg...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructor for the ContactHistory object
public ContactHistory(ResultSet rs) throws SQLException { buildRecord(rs); }
[ "public ContactHistory() {\n }", "public History(){}", "public History () {\r\n this(\"unknown\");\r\n }", "public History() {\n\t\thistory = new ArrayList<>();\n\t}", "public UpdateHistory() {\n this(\"update_history\", null);\n }", "public ContactRecord() {\n super(Contact.CO...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the list of registered application to the given virtual record identifier
public List<ApplicationRecord> getListRegisteredApplications(String vnfrId) { ApplicationRecord[] list = restTemplate.getForObject(serviceProfile.getServiceApiUrl(), ApplicationRecord[].class); return Arrays.asList(list); }
[ "@Override\r\n public int[] getApplicationIDs() {\n tag.selectApplication(0);\r\n return tag.getApplicationIDs();\r\n }", "java.util.List<java.lang.Integer> getAppidsList();", "int getAppids(int index);", "public List<String> getApplicationIdentifiers() {\n return applicationIdentif...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets value as attribute value for CODEAUDITEUR using the alias name Codeauditeur.
public void setCodeauditeur(String value) { setAttributeInternal(CODEAUDITEUR, value); }
[ "public String getCodeauditeur()\n {\n return (String) getAttributeInternal(CODEAUDITEUR);\n }", "public void setUomCode(String value) {\n setAttributeInternal(UOMCODE, value);\n }", "void setRateValue(int projectID, int packageID, int attributeID, int value) throws SquareException;", "public v...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Recursively find ServerTreeNode with passed Server
public ServerTreeNode findServerNode(Server server) { if (isFolder()) { for (ServerTreeNode child : childNodes()) { ServerTreeNode node = child.findServerNode(server); if (node != null) { return node; } } } else ...
[ "private void createServerTree() {\n for (int nodeNumber = 1; nodeNumber <= TOTAL_SERVERS; nodeNumber++) {\n ServerTree serverTree = new ServerTree(nodeNumber);\n if(rootNode==null){\n rootNode= serverTree;\n }\n serverMap.put(nodeNumber, serverTree)...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Construct new Scene
public Scene() { super(); }
[ "private Scene createScene() {\r\n\t\tScene scene = new Scene(root, width, height, Color.YELLOW);\r\n\t\tscene.getStylesheets().add(\r\n\t\t\t\tgetClass().getResource(\"application.css\").toExternalForm());\r\n\t\tscene.setOnKeyPressed(new SceneKeyPressedListener(this, root));\r\n\t\treturn scene;\r\n\t}", "publi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Deserialize a packet with its header.
private static InPacket deserializePacket(ByteArrayDataInput in) throws IOException { byte id = in.readByte(); int len = in.readInt(); byte[] array = new byte[len]; in.readFully(array); return deserializeRawPacket(id, array); }
[ "public static Packet deserialize(InputStream is) {\n\t\t// Read the first 28 bytes\n\t\tbyte[] header = new byte[HEADERSIZE];\n\t\ttry {\n\t\t\tis.read(header, 0, HEADERSIZE);\n\t\t\treturn new Packet(header, is);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}", "Objec...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Access the String contents from the given resource location. The contents is cached by StringResource. Use get(location,false); for noncached access.
public static String get(String location) { return get(location, true); }
[ "public StringResource(String location) {\n this.content = get(location);\n }", "public StringResource(String location, boolean escapeNeeded) {\n this.content = get(location);\n this.escapeNeeded = escapeNeeded;\n }", "public String loadResourceAsString(String path) throws IOException...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates new form InterfaceProdutos
public InterfaceProdutos() { initComponents(); }
[ "public it.bysoftware.ct.model.OrganizzazioneProduttori create(long id);", "public FormNovoProduto() {\n initComponents();\n }", "public NovoProduto() {\n\t\tinitComponents();\n\t}", "public TelaProduto() {\n initComponents();\n \n carregaProdutos();\n }", "public CrearProd...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column PMSTRADE.OPTION_SHORT_POSITION
public BigDecimal getOPTION_SHORT_POSITION() { return OPTION_SHORT_POSITION; }
[ "public void setOPTION_SHORT_POSITION(BigDecimal OPTION_SHORT_POSITION) {\r\n this.OPTION_SHORT_POSITION = OPTION_SHORT_POSITION;\r\n }", "public BigDecimal getSHORT_POSITION() {\r\n return SHORT_POSITION;\r\n }", "public void setSHORT_POSITION(BigDecimal SHORT_POSITION) {\r\n this.SH...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
From json stochastic sampling subnet layer.
@Nonnull @SuppressWarnings("unused") public static StochasticSamplingSubnetLayer fromJson(@Nonnull final JsonObject json, Map<CharSequence, byte[]> rs) { return new StochasticSamplingSubnetLayer(json, rs); }
[ "public StochasticSamplingSubnetLayer(final Layer subnetwork, final int samples) {\n super(subnetwork);\n this.samples = samples;\n }", "public static ImgLinearSubnetLayer fromJson(@Nonnull final JsonObject json, Map<CharSequence, byte[]> rs) {\n return new ImgLinearSubnetLayer(json, rs);\n }", "@Non...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Cancel task if player is offline or is no longer tracking target
public void run() { if (!player.isOnline() || !trackingPlayers.containsKey(player) || !trackingPlayers.get(player).equals(target)) this.cancel(); //Cancel task if target is offline else if (!targ...
[ "public void cancel() {\n // prevent a nonexistent task from being run\n if (!scheduled) return;\n else scheduled = false;\n \n // tell bukkit to cancel it\n task.cancel();\n \n }", "public static void cancelTask(Player player) {\n \n boolean found...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the template name.
public void setTemplateName(String templateName) { this.templateName = templateName; }
[ "public void setTemplateName(String t) {\n templateName = t;\n }", "public void setTemplateName(java.lang.Object templateName) {\n this.templateName = templateName;\n }", "public void setTemplateName(String templateName) {\n this.templateName = templateName == null ? null : templateNa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets all nodes of a given name
static final public java.util.List<Node> getAllNodes(Node _parent, String _name) { java.util.List<Node> list = new ArrayList<Node>(); NodeList childrenList = _parent.getChildNodes(); for (int i=0,n=childrenList.getLength(); i<n; i++) { Node child = childrenList.item(i); if (child.getNodeName().e...
[ "public List<StateMachineNode> findNodes(String name) {\n return nodes.get(name);\n }", "public Node [] getNodesByName(Node parent, String nodeName) throws Exception;", "public List<SaveGameNode> getAllChilden(String name) {\r\n List<SaveGameNode> list = new ArrayList();\r\n list.addAll(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
A basic test migration of a 0.5 file to 0.6 format.
@Test public void testMigrate() throws IOException { File inputFile; File expectedOutputFile; File outputFile; // Generate files. inputFile = fileUtils.getDataFile("v0_5/migration-input.osm"); expectedOutputFile = fileUtils.getDataFile("v0_6/migration-expected.osm"); outputFile = File.createTempFile("...
[ "@Test\n\tpublic void testMigrateChange() throws IOException {\n\t\tFile inputFile;\n\t\tFile expectedOutputFile;\n\t\tFile outputFile;\n\t\t\n\t\t// Generate files.\n\t\tinputFile = fileUtils.getDataFile(\"v0_5/migration-input.osc\");\n\t\texpectedOutputFile = fileUtils.getDataFile(\"v0_6/migration-expected.osc\")...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test of getNombre method, of class Usuario.
@Test public void testGetNombre() { System.out.println("getNombre"); Usuario instance = new Usuario(); String expResult = null; String result = instance.getNombre(); assertEquals(expResult, result); // TODO review the generated test code and remove the default ...
[ "public void testGetNomUtilisateur() {\n System.out.println(\"getNomUtilisateur\");\n Utilisateur instance = null;\n String expResult = \"\";\n String result = instance.getNomUtilisateur();\n assertEquals(expResult, result);\n // TODO review the generated test code and remo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checks whether the 'field83' field has been set
public boolean hasField83() { return fieldSetFlags()[83]; }
[ "public boolean hasField943() {\n return fieldSetFlags()[943];\n }", "public boolean hasField113() {\n return fieldSetFlags()[113];\n }", "public boolean hasField811() {\n return fieldSetFlags()[811];\n }", "public boolean hasField843() {\n return fieldSetFlags()[843];\n }", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Remove workload from a component.
@Override public RemoveWorkloadResult removeWorkload(RemoveWorkloadRequest request) { request = beforeClientExecution(request); return executeRemoveWorkload(request); }
[ "public void remove(Component component);", "public void removeComponent(Component c);", "public synchronized void removeComponent(Component c) { components.remove(c); }", "IComponent removeComponent(String compName);", "public void removeComponentChange(IComponentChange componentChangeToRemove);", "publi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "entryRuledictKeyType" $ANTLR start "ruledictKeyType" InternalMASL.g:950:1: ruledictKeyType returns [EObject current=null] : ( ( (lv_n_0_0= rulenamedTypeRef ) ) | ( (lv_i_1_0= ruleinstanceTypeRef ) ) ) ;
public final EObject ruledictKeyType() throws RecognitionException { EObject current = null; AntlrDatatypeRuleToken lv_n_0_0 = null; AntlrDatatypeRuleToken lv_i_1_0 = null; enterRule(); try { // InternalMASL.g:956:2: ( ( ( (lv_n_0_0= rulenamedTypeRef ) ) | ( (l...
[ "public final EObject entryRuledictKeyType() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruledictKeyType = null;\n\n\n try {\n // InternalMASL.g:943:52: (iv_ruledictKeyType= ruledictKeyType EOF )\n // InternalMASL.g:944:2: iv_ruledictKeyType= rul...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
mark a page as continaing a form. This must be done before the header is generated
public static void markAsFormPage(HttpServletRequest request){ request.setAttribute(FORM_PAGE_ATTR, Boolean.TRUE); }
[ "public void setIspageform(Integer ispageform) {\n this.ispageform = ispageform;\n }", "protected void drawBounds(Graphics page)\n\t{\n\n\t}", "protected void formMode() {\n\t\tif (mainLayout == null) {\n\t\t\tmainLayout = new DefaultVerticalLayout(false, true);\n\n\t\t\tText label = new Text(getTitle...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
add an object c at the end of SinglyLinkedList
public void addAtEndNode(Object c) { if (tail == null) { head = tail = new ObjectNode(c, null); } else { tail.addNodeAfter(c); tail = tail.getLink(); } countNodes += 1; }
[ "public void addAtEndNode(Object c) {\n ObjectNode node = new ObjectNode(c, null);\n if (head == null) {\n head = node;\n } else {\n ObjectNode cur = head;\n while (cur.getLink() != null) {\n cur = cur.getLink();\n }\n cur.se...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the OneCard ID of the driver
public String getOneCardId() { return oneCardId; }
[ "int getCardId();", "java.lang.String getIdCard();", "public String getSoftwareDriverId();", "public java.lang.String getDriverId() {\n java.lang.Object ref = driverId_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the commision amt.
public void setCommisionAmt(String commisionAmt) { this.commisionAmt = commisionAmt; }
[ "private void setCommission_amt(java.math.BigDecimal value) {\n __getInternalInterface().setFieldValue(COMMISSION_AMT_PROP.get(), value);\n }", "public void setCommission_amt(java.math.BigDecimal value) {\n __getInternalInterface().setFieldValue(COMMISSION_AMT_PROP.get(), value);\n }", "public void ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sum the medals of a given type specified by the medal index
public int sumMedalsForType(int medalIndex) { int sum = 0; for(int row = 0; row < this.counts.length; row++) { sum += this.counts[row][medalIndex]; } return sum; }
[ "private void calculateMediem(){\r\n int mediemNum = accountInTotal/2;\r\n Account mediemAccount = theAccounts.get(mediemNum);\r\n System.out.println(mediemAccount.toString());\r\n }", "public abstract double averageAlcoholContent(WineType wineType);", "private int barSum(int index) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Fetch all the achievements by user in a particular game.
@Method(selector = "getAllAchievementsForUser:inGame:completionBlock:") public native void getAllAchievementsForUser(String userName, String gameName, @Block App42ResponseBlock completionBlock);
[ "List<Achievement> getAchievementsForUser(int userId);", "@Method(selector = \"getAllUsersWithAchievement:inGame:completionBlock:\")\n\tpublic native void getAllUsersWithAchievement(String achievementName, String gameName, @Block App42ResponseBlock completionBlock);", "private void getAllAchievements() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets a value of property TrackNumber from an RDF2Go node. First, all existing values are removed, then this value is added. Cardinality constraints are not checked, but this method exists only for properties with no minCardinality or minCardinality == 1.
public static void setTrackNumber( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) { Base.set(model, instanceResource, TRACKNUMBER, value); }
[ "public void setTrackNumber( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), TRACKNUMBER, value);\r\n\t}", "public void addTrackNumber( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.add(this.model, this.getResource(), TRACKNUMBER, value);\r\n\t}", "public ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Retourne l'ensemble des cartes d'une meme couleur autre que l'atout probablement possedees par les autres joueurs on tient compte du pli en cours
CustList<HandBelote> cartesPossiblesRegles(Suit _couleur, HandBelote _cartesJoueur) { IdMap<Suit,HandBelote> repartition_ = _cartesJoueur.couleurs(bid); HandBelote suitCards_ = GameBeloteCommon.hand(repartition_,_couleur); HandBelote cartesJouees_ = cartesJouees(); cartesJouees_.ajouterC...
[ "private void distribuirCartas() {\n\t\tfor (int i = 0; i < 3; i++) {\n\n\t\t\tfor (Jogador jogador : jogadores) {\n\t\t\t\tCarta carta = baralho.retirarCarta();\n\t\t\t\tjogador.recebeCarta(carta);\n\t\t\t}\n\t\t}\n\n\t\t// vira ultima carta do baralho\n\t\tvira = baralho.retirarCarta();\n\t\t\n\t\tbroadcastVira()...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a new instance of SellerView
public SellerView() { this.seller = new Seller(); }
[ "public Seller1() {\n initComponents();\n }", "public LicenseController() {\n super(LicenseView.class);\n }", "static StoreView newInstance() {\n return new StoreView();\n }", "public manageseller() {\n initComponents();\n }", "public Seller getSeller()\n {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__XTryCatchFinallyExpression__Group__2" $ANTLR start "rule__XTryCatchFinallyExpression__Group__2__Impl" ../de.nie.fin.ui/srcgen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15058:1: rule__XTryCatchFinallyExpression__Group__2__Impl : ( ( rule__XTryCatchFinallyExpression__ExpressionAssignment_...
public final void rule__XTryCatchFinallyExpression__Group__2__Impl() throws RecognitionException { int stackSize = keepStackSize(); try { // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:15062:1: ( ( ( rule__XTryCatchFinallyExpression_...
[ "public final void rule__XTryCatchFinallyExpression__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:14590:1:...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Render game and status text. / \param core Processing core to use for rendering.
public void render(PApplet core) { super.render(core); mWaveStatus.render(core); mMissileStatus.render(core); }
[ "public void render(PApplet core) {\n\n super.render(core);\n\n mContext.crosshair.setTranslation(core.mouseX, core.mouseY);\n mContext.crosshair.render(core);\n\n }", "private static void print(boolean guiEnabled, String content) {\r\n if(guiEnabled) {\r\n statsText.appe...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Handle a ColdFusion start tag including its attributes.
public void handleCFStartTag(HtmlObjects.CFTag t) { }
[ "public void setStartTag(JspTag startTag) {\n this.startTag = startTag;\n }", "public void setStartTagChar(char start_tag) {\n\t\tthis.start_tag = start_tag;\n\t}", "protected void handleStart(HtmlDocument.Tag tag) {\n if (!tag.isSelfTerminating()) {\n // Add to the stack of tags n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the minVolumeSize value for this ConverterStorageParams.
public void setMinVolumeSize(java.lang.Long minVolumeSize) { this.minVolumeSize = minVolumeSize; }
[ "public void setMinStorageSize(Long MinStorageSize) {\n this.MinStorageSize = MinStorageSize;\n }", "public java.lang.Long getMinVolumeSize() {\r\n return minVolumeSize;\r\n }", "public void setMinSpringSize(float minSpringSize) {\r\n\t\tthis.minSpringSize = minSpringSize;\r\n\t\tspringSize ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a new object of class 'Fault Port'.
FaultPort createFaultPort();
[ "public Fault createFault();", "public BindingFault createBindingFault();", "Fault toFault(Throwable t);", "public FaultMessage() {\n }", "public MQFault() {\n }", "public static MessageContainer createFault(String id, Object content) {\n return new MessageContainerImpl(MessageContainer.FAULT...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
.bolg.CreateAndJoinRoomResponse create_and_join_room_resp = 2;
org.bolg_developers.bolg.CreateAndJoinRoomResponseOrBuilder getCreateAndJoinRoomRespOrBuilder();
[ "org.bolg_developers.bolg.CreateAndJoinRoomResponse getCreateAndJoinRoomResp();", "org.bolg_developers.bolg.JoinRoomResponse getJoinRoomResp();", "org.bolg_developers.bolg.CreateAndJoinRoomRequest getCreateAndJoinRoomReq();", "org.bolg_developers.bolg.JoinRoomResponseOrBuilder getJoinRoomRespOrBuilder();", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Construct an empty TempList.
public TempList() { list = new ArrayList<T>(); }
[ "EmptyList createEmptyList();", "private List getTempList() {\n \t\tif (_tempList == null) {\n \t\t\t_tempList = new ArrayList();\n \t\t} else {\n \t\t\t// Prepare list for use\n \t\t\t_tempList.clear();\n \t\t}\n \n \t\treturn _tempList;\n \t}", "static List createEmptyList() {\n return new LinkedList<>();\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Crea el detalle de la factura. En el vector de lineas se agregan las lineas generadas.
private static void crearDetallesFiscal(Venta ventaActual) { if (logger.isDebugEnabled()) { logger.debug("crearDetallesFiscal(Venta) - start"); } DecimalFormat precio = new DecimalFormat("#,##0.00"); DecimalFormat cantidad = new DecimalFormat("#0.00"); DetalleTransaccion detalleActual; artDespachados =...
[ "private void crearLineasDelimitadoras(){\n Line2D.Float linea;\n int xp,yp,xl,yl;\n\n // Se crean las lineas verticales: tantas como columnas +1\n for(int i=0; i < columnas+1; i++){\n // Posicion de partida: xp valdra tanto como i*dimensionCasilla\n // yp valdra siempre 0...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method which returns an initial population using the Nearest Neighbour Algorithm
private static ArrayList<Chromosome> generateNearestNeighbourPopulation(int pathLength, int nnPopulationSize){ // declaring the arraylist of chromosomes which will store the ArrayList<Chromosome> nnPopualtion = new ArrayList<>(); // declaring a set which will contain all the starting cities tha...
[ "public abstract int getPopulation(int west, int south, int east, int north);", "private void initNeighbors() {\n \t// the problem of getting itself as neighbor is not yet solved\n \tList<Agent> poplist = new ArrayList<Agent>(population);\n \tfor (Agent human: population) {\n \t\tCollections.shuffle(p...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rulePrimaryExpression" $ANTLR start "entryRulePredicateCall" InternalDsl.g:1582:1: entryRulePredicateCall returns [EObject current=null] : iv_rulePredicateCall= rulePredicateCall EOF ;
public final EObject entryRulePredicateCall() throws RecognitionException { EObject current = null; EObject iv_rulePredicateCall = null; try { // InternalDsl.g:1583:2: (iv_rulePredicateCall= rulePredicateCall EOF ) // InternalDsl.g:1584:2: iv_rulePredicateCall= rulePre...
[ "public final void entryRulePredicatePrimary() throws RecognitionException {\n\n \tHiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens(\"RULE_ML_COMMENT\", \"RULE_SL_COMMENT\", \"RULE_WS\");\n\n try {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassis...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ DLNode creates a node holding o
public DLNode(Object o) { data = o; next = this; prev = this; }
[ "Node createNode();", "public DLNode(Object o, DLNode n, DLNode p) \n\t\t{\n\t\t\tdata = o;\n\t\t\tnext = n;\n\t\t\tprev = p;\n\t\t}", "abstract protected Node makeNode();", "TNode createTNode();", "protected abstract BaseNode createNode(NodeDataLookup lookup);", "void nodeCreate( long id );", "Node<E> ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The name of the scanner to use in log files.
public abstract String getScannerName();
[ "public String getScannerName();", "String loggerName();", "private static String getClassName() {\r\n\t\tSystem.out.println(\"Please enter class name\");\r\n\t\tString className = scanner.next();\r\n\t\tlogger.info(\"CLASS:\" + className);\r\n\t\treturn className;\r\n\t}", "public String getName() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constrution of TREE from message file
public String buildTreeFromMessage(){ parseMsg(); if(printOCCTable)printTable(); constructTree(); reconstructTree(); if(printHuffTree) printTree(); return printBFSTree(); }
[ "void createTreeFromFile(String fileName) {\n\t\ttry {\n\t\t\tBufferedReader theReader = new BufferedReader(new FileReader(fileName));\n\t\t\tString read;\n\t\t\tString[] data;\n\t\t\tread = theReader.readLine();\n\t\t\twhile(read != null) {\n\t\t\t\tdata = parseLine(read);\n\t\t\t\ttheTree.insert(data[0], data[1],...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
lista de publicaciones con stock
public List<Publicacion> listarPublicacionesConStock() { PublicacionDAOImp publicacionDAOImp = new PublicacionDAOImp(); return publicacionDAOImp.devolverPublicacionesConStock(); }
[ "List<Stock> getStocks();", "java.util.List<stockFilePT102.StockDocument.Stock> getStockList();", "List<Stock> getStocksOfAllProducts();", "public List<Stock> getAllStocks() {\r\n List<Stock> stocks = new ArrayList<Stock>();\r\n try {\r\n Class.forName(\"com.mysql.cj.jdbc.Driver\");\r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adds an assistantSkills to assistantSkills.
public Builder addAssistantSkills(SkillImport assistantSkills) { com.ibm.cloud.sdk.core.util.Validator.notNull( assistantSkills, "assistantSkills cannot be null"); if (this.assistantSkills == null) { this.assistantSkills = new ArrayList<SkillImport>(); } this.assistantSkills.ad...
[ "public Builder assistantSkills(List<SkillImport> assistantSkills) {\n this.assistantSkills = assistantSkills;\n return this;\n }", "public void addSkills(SkillsInfo skill) {\n skills.add(skill);\n }", "public void setSkills(java.lang.String skills) {\n this.skills = skills;\n }...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Metodo que retorna o valor total de todos os alugueis
public double getValorTotalDeAlugueis() { Iterator<Aluguel> itAluguel = alugueis.iterator(); double valorTotal = 0; while (itAluguel.hasNext()) { valorTotal += itAluguel.next().getImovel().getValor(); } return valorTotal; }
[ "private int puntajeTotal() {\r\n\t\tint puntajeTotal=0;\r\n\t\tfor (Huevo h : listaHuevo) {\r\n\t\t\tpuntajeTotal+= h.getPuntaje();\r\n\t\t}\r\n\t\treturn puntajeTotal;\r\n\t}", "public double getCustoTotal(){\r\n return despesas + entrada;\r\n }", "int getTotal();", "public int getTotal () {\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adds a ProcessStateChanged listener.
public void addProcessStateChangedListener(ProcessStateChangedListener listener) { listenerProcessStateChanged.add(listener); }
[ "public void removeProcessStateChangedListener(ProcessStateChangedListener listener) {\n\t\tlistenerProcessStateChanged.remove(listener);\n\t}", "public void addProcessListener(ProcessListener l) {\n\t\tlistenerList.add(l);\n\t}", "public void setOnProcessListener(OnProcessListener listener) {\n mListene...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Listens to EntityDeaths and if it is a PlacedMob, let it know it died. This should not drop the treasure as that is handled by PlacedMob
@EventHandler public void onEntityDeath(EntityDeathEvent event){ if(RandomEncounters.getInstance().getLogLevel()>11){ RandomEncounters.getInstance().logMessage("Something died, let me figure out if it means anything."); } PlacedMob placedMob = PlacedMob.getInstance(event.get...
[ "public void deathEvent(EntityDeathEvent e) {\n\n\t\t// Check if the entity is a baby dragon and disable the drops if it is found.\n\t\tif (checkName(e.getEntity())) {\n\t\t\te.getDrops().clear();\n\n\t\t\t// Check if the entity is a enderdragon and remove all the baby dragons.\n\t\t} else if (e.getEntity() instanc...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
called when we would want to toggle check for all items in the adapter
public void toggleChecked(boolean b) { for (int i = 0; i < itemsDigested.size(); i++) { ListItem item = itemsDigested.get(i); if (b && item.getChecked() != ListItem.CHECKED) { item.setChecked(true); notifyItemChanged(i); } else if (!b && item.getChecked() == ListItem.CHECKED) { ...
[ "public void checkAllItems() {\n // select all non selected checkboxes\n for (Item item : itemRepository.findAllByStatus(false)) {\n item.setStatus(true);\n }\n }", "public void uncheckAllSelectedItems(){\n\t\t((ContactListAdapter) getAdapter()).uncheckAll();\t\n\t\tinvalidate()...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructs a hex painter, loads all relevant images
public HexPainter(double hexRadius) throws IOException { this.hexRadius = hexRadius; width = hexRadius*2; height = hexRadius*Math.sqrt(3); //not sure if this number should be 6 or 7 hexMask = hexShape(hexRadius); loadImages(); up = new UnitPain...
[ "public void buildHexes(){\n\t\t// Normal hexes\n\t\tHexLocation loc1 = new HexLocation(0, -2);\n\t\tTerrainHex hex1 = new TerrainHex(loc1, HexType.WOOD, 11);\n\t\thexes.put(loc1, hex1);\n\n\t\tHexLocation loc2 = new HexLocation(1, -2);\n\t\tTerrainHex hex2 = new TerrainHex(loc2, HexType.SHEEP, 12);\n\t\thexes.put(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checks if sPlayer is Owner of the DigiLock placed on sBlock.
public static boolean isOwner(SpoutPlayer sPlayer, SpoutBlock sBlock) { if (sBlock != null) if (BITDigiLock.loadDigiLock(sBlock).getOwner().toLowerCase() .equals(sPlayer.getName().toLowerCase())) return true; return false; }
[ "public boolean isOwner(SpoutPlayer sPlayer) {\r\n \t\tif (owner.toLowerCase().equals(sPlayer.getName().toLowerCase()))\r\n \t\t\treturn true;\r\n \t\treturn false;\r\n \t}", "boolean isOwner(final Player player) {\r\n if (this.isExplicitOwner(player.getName())) return true;\r\n \r\n if (player.is...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Initializes the TextPanes and Documents for the specific resident overview. Initializes 3 SimpleAttributeSets in order to later on format the individual parts of the overview differently.
private void residentOverviewInitialization() { tpBaseData = new JTextPane(); tpMedication = new JTextPane(); tpDiagnosisSheet = new JTextPane(); tpClosestRelative = new JTextPane(); tpVisits = new JTextPane(); tpOther = new JTextPane(); docBaseData = tpBaseData....
[ "private void residentOverviewPanelInitialization() {\n JScrollPane spBaseData = new JScrollPane(tpBaseData);\n JScrollPane spMedication = new JScrollPane(tpMedication);\n JScrollPane spDiagnosisSheet = new JScrollPane(tpDiagnosisSheet);\n JScrollPane spClosestRelative = new JScrollPane(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the esf state ID of this e s f state.
@Override public void setEsfStateId(long esfStateId) { _esfState.setEsfStateId(esfStateId); }
[ "public void setStateId(String stateId) {\n this.stateId = stateId;\n }", "public void setStateId(long stateId);", "@Override\n\tpublic long getEsfStateId() {\n\t\treturn _esfState.getEsfStateId();\n\t}", "public void setId_state(Integer id_state) {\n this.id_state = id_state;\n }", "public vo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Buscar todos las Parcial
public ResultSet buscaTodosParcial() { try { String query = "SELECT * FROM Parcial"; rs = st.executeQuery(query); return rs; } catch (Exception e) { e.printStackTrace(); return null; } }
[ "public void AlmacenarDatos(){\n _ListaPilotos.add(new Piloto(\"P1\",\"Juan - Mazda Rojo\"));\n _ListaPilotos.add(new Piloto(\"P2\",\"Luis - Toyota Gris\"));\n _ListaPilotos.add(new Piloto(\"P3\",\"Marcelo - Mazda Amarillo\"));\n _ListaPilotos.add(new Piloto(\"P4\",\"Mariano - Honda Blan...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Retrieves the value of the organizationCollection attribute.
@ManyToMany(fetch = FetchType.LAZY) @Fetch(FetchMode.SUBSELECT) @JoinTable(name = "StorageSpace_Organization", joinColumns = @JoinColumn(name = "STORAGESPACE_ID"), inverseJoinColumns = @JoinColumn(name = "ORGANIZATION_ID")) @org.hibernate.annotations.ForeignKey(name = "STORAGESPACE_ORGANIZATION_ID", inverseName = "ORGA...
[ "public java.lang.String getOrganization()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ORGANIZATION$2, 0);\n if (target =...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Search jobOffer by region
public List<JobOffer> readByRegion(String region) throws JobOfferNotFoundException { try { return StreamSupport .stream(jobOfferRepo.findAll().spliterator(), false) .filter(jobOffer -> jobOffer.getRegion().equalsIgnoreCase(r...
[ "public List<Job> getJobsByRegion(String region) {\n return jobRepository\n .findAll()\n .stream()\n .filter(job -> job.getRegion().equals(region))\n .collect(Collectors.toList());\n }", "public List<JobOffer> searchJobOffersBySkill(String desc...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
In LeetCode Store, there are some kinds of items to sell. Each item has a price. However, there are some special offers, and a special offer consists of one or more different kinds of items with a sale price. You are given the each item's price, a set of special offers, and the number we need to buy for each item. The ...
public int shoppingOffers(List<Integer> price, List<List<Integer>> special, List<Integer> needs) { HashMap<List<Integer>, Integer> needsToRes=new HashMap<List<Integer>, Integer>(); return shoppingUtil(price, special, needs, needsToRes); }
[ "private double checkBetterSolutionHeuristic(Item[] currentItems, double _bestCost, boolean randomChoice, int iterations){\n double bestCost = _bestCost;\n boolean compare = false;\n\n ArrayList<Item> listOfItems = new ArrayList<Item>(Arrays.asList(currentItems));\n Random rnd = new Rand...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This API is used to fetch update request count.
public long fetchUpdateRequestCount();
[ "public Integer getUpdateCnt() {\n return updateCnt;\n }", "public int getUpdatedCount()\n {\n return updatedCount;\n }", "public long getCpRequestCount();", "long getUpdateCounts(int index);", "default long getRequestCount() {\n return getReadRequestCount() + getWriteRequestCount(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set the "codebase" property
public void setCodebase( String value ) throws Jaxception { setProperty( "codebase", value ); }
[ "public void setCodebase(String codebase) {\n this.codebase = codebase;\n }", "public String getCodeBase(){\n\t\treturn codebase;\n\t}", "public String getCodebase() {\n return codebase;\n }", "@Override\r\n public String getCodeBase() {\r\n return getAttributeWithDefault(\"codeb...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Add other matrix to this
public void add (Matrix<E> other);
[ "public Matrix add(Matrix other) {\n if (width != other.getWidth() ||\n height != other.getHeight()) {\n throw new RuntimeException(\"Matrix addition only works on two dimensional identical Matrices\");\n }\n\n Matrix result = new Matrix<Double>(width, height);\n\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test of setFecha method, of class Proyecto.
@Test public void testSetFecha() { System.out.println("setFecha"); String fecha = ""; Proyecto instance = new Proyecto(); instance.setFecha(fecha); }
[ "@Test\n public void testSetFecha() {\n System.out.println(\"setFecha\");\n Date fecha = null;\n Reserva instance = new Reserva();\n instance.setFecha(fecha);\n \n }", "@Test\n public void testSetFechaAdquisicion() {\n System.out.println(\"setFechaAdquisicion\");...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/////////////////////////////////////////////////////////////////////// Public methods /////////////////////////////////////////////////////////////////////// Creates an Empty Asset Group summary
public AssetGroupSummary() { super(); }
[ "public PolicyGroupSummary() {\n }", "private PaletteContainer createDefault1Group() {\r\n\t\tPaletteGroup paletteContainer = new PaletteGroup(\r\n\t\t\t\tMessages.Default1Group_title);\r\n\t\tpaletteContainer.setId(\"createDefault1Group\"); //$NON-NLS-1$\r\n\t\tpaletteContainer.setDescription(Messages.Default...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns keystore format. By default JKS is used.
String getKeyStoreFormat();
[ "public String getKeystoreType() {\n return getHelpedParameters().getFirstValue(\"keystoreType\", \"JKS\");\n }", "String getKeyStoreFile();", "public KeyStore getKeyStore(InputStream keystoreIS, String password) throws CertException;", "public String getKeyStoreDescription(int keystoreIndex) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the designated parameter to the given Reader object, which is the given number of characters long. When a very large UNICODE value is input to a LONGVARCHAR parameter, it may be more practical to send it via a java.io.Reader object. The data will be read from the stream as needed until endoffile is reached. The JD...
void setCharacterStream(int parameterIndex, java.io.Reader reader, int length) throws SQLException;
[ "@Override\n\tpublic void setCharacterStream(String parameterName, Reader reader, long length) throws SQLException {\n\n\t}", "void setCharacterStream(int parameterIndex, java.io.Reader reader, long length) throws SQLException;", "public void setCharacterStream(\n\t\tint parameterIndex,\n\t\tjava.io.Reader rea...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get diffs between the source and target paths in this branch
IFileDiff[] getDiffs();
[ "DifferenceState getDifference(RepoPath path);", "public List<Diff> getDiffs();", "DifferenceState getDifference(String absolutePath);", "IFileDiff[] getDiffs(String sourceFilter, String rightFilter);", "static SvnEntry.Path[] parseDiff(File tmpFile) throws BuildException {\n // parse the output of t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
test github login, it will automatically call back to our endpoint.
@Test public void testGithubLogin() throws Exception { String URL = "https://github.com/login/oauth/authorize?client_id=" + "d644cfff862d6e5d155a&redirect_uri=http://localhost:8080/oauth/github/callback"; Integer status = HttpClientUtils.doGet(URL); // System.out.println(status); assertEquals("...
[ "public void testLogin() {\n login(datum.junit);\n\t}", "@Test\n public void testLogin() throws Exception {\n String email = \"test@gmail.com\";\n String password = \"toto\";\n loginService.login(email, password);\n }", "@Test\n\tpublic void testLogin() {\n\t\tmanager.login(id,...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Cuenta los arcos adyacentes de un nodo
public int contarArcos(){ return adj.size(); }
[ "public void arbolize() {\n //generando arbol desde nodos\n while (this.size > 1) {\n NodoCaracter smallest, smaller, ncAux;\n int aux;\n smallest = new NodoCaracter(inicio);\n smaller = new NodoCaracter(inicio.siguiente);\n aux = smallest.getFreq...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Wait for a successful subscription.
private void waitForSubscription() { synchronized (subscribed) { while (!subscribed.get()) { try { subscribed.wait(); } catch (InterruptedException e) { LOG.log(Level.SEVERE, "InterruptedException occurred.", e); ...
[ "private boolean waitForSubscriptionInitDone(final SubscriptionThread t) {\n return new PollCondition(configuration.getPollIntervalMs(),\n configuration.getPollTimeoutMs()) {\n @Override\n protected boolean condition() {\n return t.getStatu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column host_summary_by_statement_latency.full_scans
public void setFull_scans(BigDecimal full_scans) { this.full_scans = full_scans; }
[ "public BigDecimal getFull_scans() {\n return full_scans;\n }", "protected void latchStats()\n {\n operationalData.latchStats( pDuration.uncheckedGet() );\n enginePerformance.latchStats();\n }", "public void setFullCount(Integer fullCount) {\n this.fullCount = fullCount;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
returns a set of event DTOs that match the requested preference throws a ResourceNotFoundException if no event matches the requested preference
public Set<EventTO> getAllEventsByPreference(String preference) { Set<Event> events = eventRepository.findallByPreference(preference); if (!(events.isEmpty())) { LOGGER.info("Returning alls events with preference '{}'", preference); return mapperService.convertToEventTO(events); ...
[ "List<Event> findEventsByEventType(String eventType);", "List<Event> searchAllEventsFromDataStore();", "public List<EventDto> getEventsByType(int typeId);", "@RequestMapping(method = RequestMethod.GET)\n public List<AdminEventRepresentation> getEvents(@QueryParam(\"operationTypes\") List<String> operationT...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Retorna o inicio da venda
public LocalDateTime getInicio() { return this.inicio; }
[ "public int getDtVenda() {\n return dtVenda;\n }", "public int getFechaInicio() {\n return fechaInicio;\n }", "public Date getFechaInicioVigente() {\r\n\t\treturn fechaInicioVigente;\r\n\t}", "public void obtener() {\r\n \t\r\n \tif (raiz!=null)\r\n {\r\n int inform...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__Module__Group__1__Impl" $ANTLR start "rule__Module__Group__2" ../com.ironglass.hdlforge.ui/srcgen/com/ironglass/hdlforge/ui/contentassist/antlr/internal/InternalSystemVerilog.g:1337:1: rule__Module__Group__2 : rule__Module__Group__2__Impl rule__Module__Group__3 ;
public final void rule__Module__Group__2() throws RecognitionException { int stackSize = keepStackSize(); try { // ../com.ironglass.hdlforge.ui/src-gen/com/ironglass/hdlforge/ui/contentassist/antlr/internal/InternalSystemVerilog.g:1341:1: ( rule__Module__Group__2__Impl r...
[ "public final void rule__Module__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalOCLlite.g:2667:1: ( rule__Module__Group__2__Impl rule__Module__Group__3 )\n // InternalOCLlite.g:2668:2: rule__Module__Group__2__Imp...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns all the jobs where groupId = &63; and userId = &63; and status = &63;.
public static List<Job> findByStatus_G_U(long groupId, long userId, int status) { return getPersistence().findByStatus_G_U(groupId, userId, status); }
[ "public static List<Job> filterFindByStatus_G_U(long groupId, long userId,\n\t\tint status) {\n\t\treturn getPersistence().filterFindByStatus_G_U(groupId, userId, status);\n\t}", "public static List<Job> filterFindByJobStatus_G_U(long groupId,\n\t\tlong userId, int jobStatus) {\n\t\treturn getPersistence()\n\t\t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }