query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
$ANTLR end "rule__VoidOperation__PListAssignment_2_0" $ANTLR start "rule__VoidOperation__PListAssignment_2_1_1" InternalBSQL2Java.g:3344:1: rule__VoidOperation__PListAssignment_2_1_1 : ( RULE_ID ) ;
public final void rule__VoidOperation__PListAssignment_2_1_1() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalBSQL2Java.g:3348:1: ( ( RULE_ID ) ) // InternalBSQL2Java.g:3349:2: ( RULE_ID ) { // InternalBSQL2Jav...
[ "public final void rule__VoidOperation__PListAssignment_2_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalBSQL2Java.g:3333:1: ( ( RULE_ID ) )\n // InternalBSQL2Java.g:3334:2: ( RULE_ID )\n {\n // In...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Date on when the claim received first in WGS
@ApiModelProperty(required = true, value = "Date on when the claim received first in WGS") public Long getClaimReceivedDate() { return claimReceivedDate; }
[ "java.lang.String getDateOfClaim();", "com.google.type.Date getAcquireDate();", "java.lang.String getFoundingDate();", "org.apache.xmlbeans.XmlString xgetDateOfClaim();", "org.hl7.fhir.DateTime getRecordedDate();", "public ZonedDateTime getClaimFromDate() {\n return claimFromDate;\n }", "XMLGregoria...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Build a message embed detailing the given dictionary word. Attempt to retrieve an image based on the word to use in the embed, if unsuccessful the embed will not contain an image.
private MessageEmbed buildDictionaryWordEmbed(DictWord dictWord) { EmbedBuilder builder = new EmbedBuilder() .setColor(EmbedHelper.ORANGE) .setTitle("Dictionary | " + dictWord.getWord()) .setDescription(dictWord.getTruncatedDescription(200)) .setTh...
[ "private String getImageForWord(String word) {\n HashMap<String, String> headers = new HashMap<>();\n headers.put(\"Authorization\", \"Client-ID \" + Secret.UNSPLASH_CLIENT_ID);\n String url = \"https://api.unsplash.com/search/photos?page=1&query=\" + EmbedHelper.urlEncode(word);\n Netwo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__XorOpExp__NameAssignment_1_1" $ANTLR start "rule__XorOpExp__TargetAssignment_1_2" InternalOCLlite.g:10464:1: rule__XorOpExp__TargetAssignment_1_2 : ( ruleOrOpExp ) ;
public final void rule__XorOpExp__TargetAssignment_1_2() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalOCLlite.g:10468:1: ( ( ruleOrOpExp ) ) // InternalOCLlite.g:10469:2: ( ruleOrOpExp ) { // InternalOCLlite....
[ "public final void rule__XorOpExp__Group_1__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalOCLlite.g:4136:1: ( ( ( rule__XorOpExp__TargetAssignment_1_2 ) ) )\n // InternalOCLlite.g:4137:1: ( ( rule__XorOpExp__Targ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checks that the XML report file contains the parameter values. It does this by looking up Xpath expressions. The report file contains element keys which locate the elements. These can be used to find the element which should contain the value of a particular parameter.
private void validateReportFile(Pconfig report, File reportFile) throws Exception { DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); factory.setNamespaceAware(true); DocumentBuilder builder = factory.newDocumentBuilder(); Document doc = builder.parse(reportFile); XPathFactory xf...
[ "public boolean checkParamsExist() throws Jaxception\n {\n return page.checkElementExists( SearchType.SEARCH_FIRST_TAG, \"PARAM\", elementIndex );\n }", "public boolean containsAllParameterNodes()\n\t{\n\t\tint size = size();\n\n\t\tfor (int index = 0; index < size; index++)\n\t\t{\n\t\t\tif (! (((Val...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
clears graph, deletes all history entrys and sets the turtle start Position back.
public void clearGraph(){ this.turtleColorHistory.clear(); this.turtlePosHistory.clear(); this.turtleVisibleHistory.clear(); actualMax[0] = 0; actualMax[1] = 0; this.setPreferredSize( this.getNeededSize( this.turtlePosHistory ) ); }
[ "public void resetGraph(){\n removeAllSeries();\n removeSeries(xySeries);\n removeSeries(currentPoint);\n xySeries = new PointsGraphSeries<>();\n currentPoint = new PointsGraphSeries<>();\n initGraph();\n }", "public static void reset() {\n allGraphs.clear();\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/This method sets the balance of the user. The user must start between $1000.00 and $2000.00 inclusive.
private void getSetUserBalance() { double y = 0.0; while(y < 1000.00 || y > 20000.00) { System.out.println("6. How much money would you like to deposit in your account? You must start off between $1000.00 and $20000.00.: "); y = scanObj.nextDouble(); if (y < 1000.00 || y > 20000.00) { System.out....
[ "public void setBalance(double bal){\n balance = bal;\r\n }", "void setBalance(double accountBalance) {\n\t\t\n\t\tbalance = accountBalance;\n\t}", "public void setBalance(int balance) {\r\n\t\tif(0<=balance&&balance<=1000000) {\r\n\t\tthis.balance = balance;\r\n\t}else{\r\n\t\t System.out.println(\"잘못 ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Asserts that actual running time of sort is close enough to expected running time. "Close enough" actually means no more than 3% deviation from expected results. This assert should be used on profiling result of sort of randomly generated data.
public static void assertSortProfilingIsCloseToRunningTime(Period expectedRunningTime, Period actualRunningTime, int initialDataLength, ...
[ "public static void assertSortProfilingIsCloseToAverageCompares(long expectedAverageCompares,\n long actualCompares,\n int dataLength) {\n System.out.println(\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR start "textStatment" E:\\lijz\\javamonkey\\git\\oschina_beetl\\src\\org\\bee\\tl\\core\\Bee.g:199:1: textStatment : ( LEFT_TOKEN textVar RIGHT_TOKEN > ^( HOLDER textVar ) | LEFT_TOKEN '!(' textVar ')' RIGHT_TOKEN > ^( HOLDER textVar SAFE_OUTPUT ) );
public final BeeParser.textStatment_return textStatment() throws RecognitionException { BeeParser.textStatment_return retval = new BeeParser.textStatment_return(); retval.start = input.LT(1); int textStatment_StartIndex = input.index(); BeeCommonNodeTree root_0 = null; Tok...
[ "public final BeeParser.constantsTextStatment_return constantsTextStatment() throws RecognitionException {\r\n BeeParser.constantsTextStatment_return retval = new BeeParser.constantsTextStatment_return();\r\n retval.start = input.LT(1);\r\n int constantsTextStatment_StartIndex = input.index();\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns whether the last scan made was legal, i.e: the person was not scanned recently before
public boolean wasLegalScan() { return legalScan; }
[ "boolean hasLastCheckinMsec();", "public boolean isLastShift () {\r\n\t Segment shift = getRecentShift();\r\n\t return shift != null && shift != recentShift;\r\n }", "private boolean isLastDigitLicNumRestricted() {\r\n \r\n\t\tboolean isRestricted = false, isWeekend = false;\r\n\r\n\t\tcalendarDate = Ca...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns true if field exchangeInstID is set (has been assigned a value) and false otherwise
public boolean isSetExchangeInstID() { return this.exchangeInstID != null; }
[ "public boolean isSetExchangeID() {\n return this.exchangeID != null;\n }", "public boolean hasExchangeTransactionID() {\n return fieldSetFlags()[9];\n }", "boolean isSetExchange();", "public boolean isSetVendorId()\n {\n synchronized (monitor())\n {\n check_orphaned();...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Marks the leaf "nstesttimer" with operation "create".
public void markNsTestTimerCreate() throws JNCException { markLeafCreate("nsTestTimer"); }
[ "public void markNsBlockTimerCreate() throws JNCException {\n markLeafCreate(\"nsBlockTimer\");\n }", "public void markRequestTimerCreate() throws JNCException {\n markLeafCreate(\"requestTimer\");\n }", "public void markNsAliveTimerCreate() throws JNCException {\n markLeafCreate(\"ns...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test of setOriginalPrice method, of class Flight.
@Test public void testSetOriginalPrice() { System.out.println("setOriginalPrice"); double originalPrice = 100.0; Flight instance = null; instance.setOriginalPrice(originalPrice); // TODO review the generated test code and remove the default call to fail. fail("...
[ "@Test\n public void testSetOriginalPrice() {\n //Passes if the original price is set properly\n System.out.println(\"setOriginalPrice\");\n double oP = 752.87;\n Flight f1 = new Flight(1234,\"Toronto\",\"Montreal\",\"6:30am\",250,752.87);\n f1.setOriginalPrice(oP);\n }", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the value for child leaf "nsfrmaxsegmentsize", using a String value.
public void setNsFrMaxSegmentSizeValue(String nsFrMaxSegmentSizeValue) throws JNCException { setNsFrMaxSegmentSizeValue(new YangUInt16(nsFrMaxSegmentSizeValue)); }
[ "public void addNsFrMaxSegmentSize() throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"ns-fr-max-segment-size\",\n null,\n childrenNames());\n }", "public void markNsFrMaxSegmentSizeReplace() throws JNCException {\n markLeafReplace(\"nsFrMaxSegmentSize\");\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a new virtual node state
VirtualNodeState createNodeState(VirtualNodeState parent, Name name, NodeId id, Name nodeTypeName) throws RepositoryException;
[ "void create( State state );", "private long createNode(Object state)\n {\n //Give the Node a new random Id.\n Random random = new Random();\n long newId = random.nextLong();\n \n //Make sure the Id is unique.\n while(containsKey(newId))\n newId = random.nex...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get all committed values which are sorted by their variable index
public Map<Integer, Integer> getAllSortedCommittedValues() { LinkedHashMap<Integer, Integer> sortedMap = new LinkedHashMap<>(); variables.entrySet() .stream() .sorted(Map.Entry.comparingByKey()) .forEachOrdered(x -> sortedMap.put(x.getKey(), x.getValue().getKey())); return sortedMa...
[ "CloseableIndexed<ActualType> getSortedIndexedValues();", "Collection<Index> getAllCurrentValues();", "io.dstore.values.IntegerValue getOrderBy();", "public SortedSet<Variable> getVariableOrdering() {\n return variableOrdering;\n }", "public Collection<Object> getDistinctIndexedValues(L index);", "com...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Copy actions to decision table model. Assertion of bindings occurs in FactPatternsPage
@Override public void makeResult(GuidedDecisionTable52 dtable) { for ( Map.Entry<Pattern52, List<ActionSetFieldCol52>> ps : patternToActionsMap.entrySet() ) { Pattern52 p = ps.getKey(); //Patterns with no conditions don't get created if ( p.getChildColumns().size() > 0 )...
[ "protected Collection<IAction> generateCreateActionsGen(\n\t\t\tCollection<?> descriptors, ISelection selection) {\n\n\t\tCollection<IAction> actions = new ArrayList<IAction>();\n\n\t\tif (descriptors != null) {\n\t\t\tfor (Object descriptor : descriptors) {\n\t\t\t\tif (descriptor instanceof CommandParameter) {\n\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Determines whether the session specification denotes an outgoing session. Outgoing sessions can be used to initialize connectors.
public boolean isOutgoing();
[ "public boolean isOutgoing() {\n return OUTGOING;\n }", "boolean isSessionReceiver() {\n return isSessionReceiver;\n }", "public boolean isSession();", "public boolean isOutbound() {\n return outbound;\n }", "public boolean isSession() {\n\t\treturn config.getBoolean(QuestConfigurati...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the line count of the file
public int getLineCount(){ int lines = 0; BufferedReader reader = null; try{ reader = new BufferedReader(new FileReader("file.txt")); } catch(FileNotFoundException e) { System.out.println("File not found."); ...
[ "public int getLineCount() {\n int lineCount = 0;\n Scanner fileContent = null;\n try {\n fileContent = new Scanner(new File( file) );\n } catch ( Exception e )\t{}\n fileContent.reset();\n fileContent.useDelimiter(\" \");\n while(fileContent.hasNext()) ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Notifies all listeners that the player has changed
void notifyPlayerChanged(PlayerNumber newPlayer);
[ "public void playersUpdated(IPlayers players);", "void playerPositionChanged(Player player);", "void gamePlayersChanged(Game game);", "public void notifyObservers(){\n for (GameObserver g: observers){\n g.handleUpdate(new GameEvent(this,\n currentPlayer,\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column t_company_user.user_accout
public void setUserAccout(String userAccout) { this.userAccout = userAccout == null ? null : userAccout.trim(); }
[ "protected void setActiveUser(User user){\n System.out.println(\"Active is:\"+user.getName());\n this.activeUser = user;\n }", "void updateAmigo(AmigoUser updatedUser) throws SQLException;", "public AppUser asccOwnerUserIdFk() {\n if (_asccOwnerUserIdFk == null)\n _asccOwnerUs...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checks whether the key with the provided keyname is down
public static boolean isDown(char key) { return keyNames.contains(key); }
[ "public static boolean isDown(int key)\r\n\t{\r\n\t\treturn keys[key];\r\n\t}", "public static boolean isDown(int keyCode) {\n\t\treturn keyCodes[keyCode];\n\t}", "public boolean isValidForDecryption()\r\n{\r\n\tboolean valid=false;\r\n\tTimestamp now=new Timestamp( (Calendar.getInstance()).getTimeInMillis());\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the sim pro science app link remote service.
public org.kisti.edison.service.SimProScienceAppLinkService getSimProScienceAppLinkService() { return simProScienceAppLinkService; }
[ "RRemoteService getRemoteService();", "public org.kisti.edison.service.SimProScienceAppLinkLocalService getSimProScienceAppLinkLocalService() {\n\t\treturn simProScienceAppLinkLocalService;\n\t}", "public SimProScienceAppLinkFinder getSimProScienceAppLinkFinder() {\n\t\treturn simProScienceAppLinkFinder;\n\t}",...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the miss send len.
public short getMissSendLen() { return this.missSendLen; }
[ "public int getSendCount();", "public long sentBytesCount() {\n return sentBytesCnt.longValue();\n }", "public int getLength() {\r\n\t\treturn messageData.length;\r\n\t}", "public int unacked() { return unackSize; }", "public int getMaxTransmitPacketSize() { throw new RuntimeException(\"Stub!\"); ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
.build_event_stream.BuildEventId.FetchId fetch = 17;
com.google.devtools.build.lib.buildeventstream.BuildEventStreamProtos.BuildEventId.FetchIdOrBuilder getFetchOrBuilder();
[ "com.google.devtools.build.lib.buildeventstream.BuildEventStreamProtos.BuildEventId.FetchId getFetch();", "public Builder setFetch(com.google.devtools.build.lib.buildeventstream.BuildEventStreamProtos.BuildEventId.FetchId value) {\n if (fetchBuilder_ == null) {\n if (value == null) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Implement this st.push(sn++); declaration.slotnumber = (st.peek());
@Override public Object visitDec(Dec declaration, Object arg) throws Exception { declaration.slotnumber = (num++); //System.out.println(declaration.slotnumber); return null; }
[ "private void setSlot(int slot) {\n\t}", "public int getSlot() {\r\n return slot;\r\n }", "public int getSlot() {\n return slot;\n }", "public int getSlot() {\n\t\treturn slot;\n\t}", "public Stack getStack(int slot);", "public void setSlot(int slot){\n this.slot = slot;\n }"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Try to start matrix with incorrect range and test result
@Test public void testRunMatrixWithIncorrectRange() throws Exception { logger.info("Start testRunMatrixWithIncorrectRange()"); try { MatrixList matrixList = sfapi.getMatrixList(); matrix = getMatrixFromList(matrixList, matrixFile); if (matrix == null) { ...
[ "@Test\n public void testRandomStartRow() {\n String[] args = {\"Random\", \"2\", \"RIGHT:DOWN\", \"U(2:9)\", \"10\", \"3\", \"2\"};\n RandomGeneration inst = new RandomGeneration(NUM_ROWS, NUM_COLS, args);\n\n int maxStartRow = Integer.MIN_VALUE;\n int minStartRow = Integer.MAX_VALUE;\n\n for (int ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column TRS_SYN_SETLMT_ACC.ACC_SL
public BigDecimal getACC_SL() { return ACC_SL; }
[ "public BigDecimal getACC_SL()\r\n {\r\n\treturn ACC_SL;\r\n }", "public BigDecimal getSALE_ACC_SL()\r\n {\r\n\treturn SALE_ACC_SL;\r\n }", "public BigDecimal getINVESTMENT_ACC_SL()\r\n {\r\n\treturn INVESTMENT_ACC_SL;\r\n }", "public BigDecimal getSETTLEMENT_ACC_SL() {\r\n return SET...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates the glass parameter for the background strip painter.
SGlassParameter getStripBGGlassParameters();
[ "public GraphiteGlassSkin() {\n\t\tsuper();\n\n\t\tColorSchemes schemes = RadianceSkin.getColorSchemes(\n\t\t\t\tthis.getClass().getClassLoader().getResourceAsStream(\n \"org/pushingpixels/radiance/theming/api/skin/graphite.colorschemes\"));\n\n\t\tRadianceColorScheme backgroundScheme = schem...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Show a dialog prompting user whether to end the shift. See onDialogPositive/NegativeClick for resulting behavior.
private void showEndShiftDialog() { Log.i(LOG_TAG, "showEndShiftDialog() called"); EndShiftDialogFragment newFragment = new EndShiftDialogFragment(); newFragment.show(getSupportFragmentManager(), "endShift"); }
[ "@Override\n public void onDialogPositiveClick(DialogFragment dialog) {\n // User touched the dialog's positive button\n Log.d(LOG_TAG, \"onDialogPositiveClick() called\");\n endShift();\n }", "private void confirmExit(){\n if (exitConfirmationWindow()) {\n ExitActionPerformed(f...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates projective transform from a matrix.
public ProjectiveTransform2D(final Matrix matrix) { super(matrix); }
[ "@Override\r\n MathTransform2D createInverse(final Matrix matrix) {\r\n return new ProjectiveTransform2D(matrix);\r\n }", "public Transform(M4 matrix) {\n this.matrix = matrix;\n }", "public SpPoint2d transform(Matrix m);", "public void transform(Matrix4 transformation);", "...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Retrieve the active expectations match the httpRequest parameter, use null for the parameter to retrieve all expectations
public String retrieveActiveExpectations(RequestDefinition requestDefinition, Format format) { HttpResponse httpResponse = sendRequest( request() .withMethod("PUT") .withContentType(APPLICATION_JSON_UTF_8) .withPath(calculatePath("retrieve")) ...
[ "public Expectation[] retrieveActiveExpectations(RequestDefinition requestDefinition) {\n String activeExpectations = retrieveActiveExpectations(requestDefinition, Format.JSON);\n if (isNotBlank(activeExpectations) && !activeExpectations.equals(\"[]\")) {\n return expectationSerializer.dese...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Property name : Tank capacity EPC : 0xE2 Contents of property : This property indicates the tank capacity in liters. Value range (decimal notation) : 0x0000 to 0xFFFD (0 to 65533 liters) Data type : unsigned short Data size : 2 bytes Unit : liters Access rule : Announce undefined Set undefined Get optional
public Getter reqGetTankCapacity() { addProperty(EPC_TANK_CAPACITY); return this; }
[ "protected void onGetTankCapacity(EchoObject eoj, short tid, byte esv, EchoProperty property, boolean success) {}", "public Getter reqGetTankCapacity() {\n\t\t\treqGetProperty(EPC_TANK_CAPACITY);\n\t\t\treturn this;\n\t\t}", "public Informer reqInformTankCapacity() {\n\t\t\treqInformProperty(EPC_TANK_CAPACITY);...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Obtiene Lista de Historico de Bloqueo de Consultora que ser enviada al Sistema Comercial
public List getHistoricoBloqueoConsultoraTemporal(Map params) throws Exception;
[ "public void listarHistorico(){\r\n historicos = historicoDAO.listarHistorico(divida.getId());\r\n }", "public List<Object[]> getHistorialCompras(AjaxBehaviorEvent event) {\n List<Object[]> compras = new ArrayList<>();\n if (usuario != null) {\n compras = servicioReportes.consul...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column testcaseresult.testcaseid
public void setTestcaseid(Integer testcaseid) { this.testcaseid = testcaseid; }
[ "public void setTestsuiteresultid(Integer testsuiteresultid) {\r\n this.testsuiteresultid = testsuiteresultid;\r\n }", "public void setTestCaseId(int testCaseId) {\n this.testCaseId = testCaseId;\n }", "public void setTestId(Integer testId) {\n this.testId = testId;\n }", "public...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Parse ESM file and convert to string.
private String readESMFile(String esmFile) { int id = plugin.getResources().getIdentifier(esmFile, "raw", plugin.getPackageName()); InputStream inputStream = plugin.getResources().openRawResource(id); String esms = ""; BufferedReader reader = new BufferedReader(new InputStreamReader(inpu...
[ "public String parse(File file);", "public static void ConvertToString() {\n\t\t_asmFileStr = _asmFile.toString();\n\t\t_asmFileStr = _asmFileStr.substring(0, _asmFileStr.lastIndexOf('.'));\n\t}", "private StringBuilder readFile() throws EdmException {\n\n\t\tlog.debug(\"Parsing file: \" + fileName);\n\n\t\tStr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__JvmLowerBound__Group__0__Impl" $ANTLR start "rule__JvmLowerBound__Group__1" ../org.xtext.example.rmodp.ui/srcgen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:27367:1: rule__JvmLowerBound__Group__1 : rule__JvmLowerBound__Group__1__Impl ;
public final void rule__JvmLowerBound__Group__1() throws RecognitionException { int stackSize = keepStackSize(); try { // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:27371:1: ( rule__JvmLowerBound__Group__...
[ "public final void ruleJvmLowerBound() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:3597:2: ( ( ( rule__JvmLowerBound_...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
You can use this operation to add principal tags.
public void setPrincipalTags(java.util.Map<String, String> principalTags) { this.principalTags = principalTags; }
[ "public SetPrincipalTagAttributeMapRequest addPrincipalTagsEntry(String key, String value) {\n if (null == this.principalTags) {\n this.principalTags = new java.util.HashMap<String, String>();\n }\n if (this.principalTags.containsKey(key))\n throw new IllegalArgumentExcept...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
create test suites and test cases
@Test public void test() throws Exception { TestSuiteLog parentSuite = TestLogger.getTestSuite("My TestSuite"); TestCaseLog testCase = TestLogger.getTestCase("example.TestCase"); parentSuite.addTestCase(testCase); TestSuiteLog childSuite = TestLogger.getTestSuite("My TestSuite2"); ...
[ "TestSuite createTestSuite();", "Testsuite createTestsuite();", "private Test createSuite()\n {\n //Let's discover what tests have been scheduled for execution.\n // (we expect a list of fully qualified test class names)\n String tests = System.getProperty(TEST_LIST_PROPERTY_NAME);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
tells Minecraft to use our new WorldChunkManager
public void registerWorldChunkManager() { this.worldChunkMgr = new WorldChunkMangerHeaven(worldObj.getSeed(), terrainType); this.hasNoSky = false; }
[ "public void registerWorldChunkManager() {\n\t\tthis.worldChunkMgr = new WorldChunkManagerHell(BiomeGenBase.sky, 0.5F, 0.0F);\n\t\tthis.dimensionId = 1;\n\t\tthis.hasNoSky = true;\n\t}", "protected abstract void updateSpawnerChunks(WorldServer world, Set<ChunkPos> spawnerChunks);", "public void initialAllWorlds...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method is to get values from jmx.xml file.
private void parseJMXConfigXML(String jmxXmlPath) { /** * Parse the following file * <JMX xmlns="http://wso2.org/projects/carbon/jmx.xml"> <StartRMIServer>true</StartRMIServer> <HostName>localhost</HostName> <RMIRegistryPort>9995</RMIRegistryPort> <...
[ "void retreiveNotificationManagerProperties() {\r\n\r\n\t\tfinal EventManager evtMgr = EventManager.getInstance();\r\n\r\n\t\t// setting the path of the xmlfile for reading the file.\r\n\t\tfinal String sFileNameWithPath = evtMgr.getConfigXMLFilePath() != null ? evtMgr.getConfigXMLFilePath()\r\n\t\t\t\t: EventConst...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
queued map object to be added to world entity list
public void addEntity(MapObject mo){ queuedEntities.add(mo); }
[ "protected void loadQueuedEntities(){\n\t\t//add queued entities to world before updating them\n\t\tif(!queuedEntities.isEmpty())\n\t\t\tfor(MapObject mo: queuedEntities){\n\t\t\t\tlistWithMapObjects.add(mo);\n\t\t\t}\n\t\tqueuedEntities.clear();\n\t}", "public void removeEntity(MapObject mo){\n\t\tqueuedRemoval....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rulespeciesOrGridDisplayStatement" $ANTLR start "entryRule_EquationsKey" InternalGaml.g:986:1: entryRule_EquationsKey : rule_EquationsKey EOF ;
public final void entryRule_EquationsKey() throws RecognitionException { int entryRule_EquationsKey_StartIndex = input.index(); try { if ( state.backtracking>0 && alreadyParsedRule(input, 67) ) { return ; } // InternalGaml.g:987:1: ( rule_EquationsKey EOF ) // Interna...
[ "public final void rule_EquationsKey() throws RecognitionException {\n int rule_EquationsKey_StartIndex = input.index();\n\n \t\tint stackSize = keepStackSize();\n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 68) ) { return ; }\n // InternalG...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
boolean flag = iteration > maxIteration || localSearchTime > maxLocalSearchTime
@Override protected boolean isStoppingConditionReached() { boolean flag = iteration > maxIteration || localSearchTime > maxLocalSearchTime || !isUpdate; isUpdate = false ; return flag ; }
[ "protected final boolean isIterationAllowed() {\n\n final int tmpIterations = this.countIterations();\n final long tmpTime = this.countTime();\n\n return (tmpTime < options.time_abort) && (tmpIterations < options.iterations_abort);\n }", "boolean hasLoopCnt();", "public boolean hasNextIt...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
DELETE /alarmdefinitions/:id : delete the "id" alarmDefinition.
@DeleteMapping("/alarm-definitions/{id}") public ResponseEntity<Void> deleteAlarmDefinition(@PathVariable Long id) { log.debug("REST request to delete AlarmDefinition : {}", id); alarmDefinitionService.delete(id); return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY...
[ "boolean deleteSurveyDefinition(UUID id)\n throws SurveyServiceException;", "@GetMapping(\"/alarm-definitions/{id}\")\n public ResponseEntity<AlarmDefinitionDTO> getAlarmDefinition(@PathVariable Long id) {\n log.debug(\"REST request to get AlarmDefinition : {}\", id);\n Optional<AlarmDefinitio...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Breadthfirst traversal start at vertex visit vertex, discover neighbors discover all neighboring vertices next, pick vertex & discover those neighbors repeat PSEUDOCODE: start Queue = startVertex while: visitedNodes > totalNodes && queue is not empty Tree is wider then it is deep Makes use of queues (firstin, firstout)
public void breadthFirst(Vertex[] vertices ){ Vertex temp = vertices[0]; temp.state=1; //for tracking the visited nodes, visited/discovered A boolean[] seen = new boolean[vertices.length]; Queue<Vertex> q = new LinkedList<Vertex>(); //queue for breadth first traversal q.add(temp); //root node added to q...
[ "public String breadthFirstSearch( AnyType start_vertex ) throws VertexException {\n \n StringBuffer buffer = new StringBuffer();\n \n // ----------------------------\n // TODO: Add your code here\n // ----------------------------\n boolean exists = false;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This will let you whisper to the specified user
public void whisper(User user, String message) { if (!channels.isEmpty()) { this.sendMessage("/w " + user + " " + message, Channel.getChannel(channels.get(0), this)); } else if (!wen) { LOGGER.log(Level.INFO,"You have to be either connected to at least one channel or join another Server to be able to whi...
[ "public void askToWatchGame() {\n\t\tClientUser thisUser = Client.getThisUser();\n\t\tif (users.containsKey(thisUser)) {\n\t\t\tClient.getMainWindow().getMainChatPanel().displayInfo(\"You're already playing this game. You can't watch and play the same game.\");\n\t\t\treturn;\n\t\t}\n\t\tClientWtchgHandler.askToWat...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Enable or disable all menu items that are in the given group.
public void setGroupEnabled(int group, boolean enabled);
[ "void enableGroup(String groupName);", "public void changeMenuEnables() {\r\n menuBarMaker.enableAllMenuItems();\r\n menuBarMaker.setEnabledMenuItems(imageA.getNDims(), imageA.getType());\r\n }", "private void setEnabledAllChildren(final ViewGroup viewGroup,\n\t\t\tfinal boolean enabled) {\n\t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the color of this polygons edges
public void setEdgeColor(Color color) { this.edgeColor = color; }
[ "void setEdgeColor(Color c);", "public void setColor(Color color){\n for(int i = 0; i < getVertexCount(); i++){\n setVertexColor(i,color);\n }\n }", "@Override\n public void setColor(Vector color) {\n for(HalfEdgeTriangle t: triangleList){\n t.setColor(color);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Helper to create a new version request.
public static SnapshotRequest createVersionRequest() { return new SnapshotRequest(); }
[ "public com.vodafone.global.er.decoupling.binding.request.GetVersionRequest createGetVersionRequest()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.GetVersionRequestImpl();\n }", "private void makeRequest() {\n\t\tRequest request ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Cancel the given jobs
void cancel(List<Job> jobs, CommandRunner runner) throws Exception;
[ "public void cancelJobs() {\n\t\tsynchronized (lock) {\n\t\t\tfinal List<JobDetails> cancelledJobs = new ArrayList<>();\n\t\t\tif (currentJob != null) {\n\t\t\t\tJobDetails details = currentJob;\n\t\t\t\tcurrentJob = null;\n\t\t\t\tdetails.job.cancel();\n\t\t\t\tcancelledJobs.add(details);\n\t\t\t}\n\t\t\tfor (JobD...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
delete location with id
public void deleteLocation(int id){ db.delete(DBEntryContract.LocationEntry.TABLE_NAME, "_id = ?", new String[]{String.valueOf(id)}); }
[ "void deleteLocationById(long id);", "public void removeLocation(final Long id);", "public void delete(Integer id) {\n locationRepository.deleteById(id);\n }", "public void deleteLocation(Long locationId) throws LocationException;", "public void deleteLocation(int locationID) throws ClassicDatabas...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return the skill landing percent probability.
public final int getLandingPercent() { return _skill_landing_percent; }
[ "float getBonusPercentHP();", "public double calculateHpPercent();", "float getPercentHealth();", "int getPercentageHeated();", "@Override\n public double attackingDamage() {\n double chanceOfSkill = this.percentageOfAttacking(MIN_BOUNDER_PERCENTAGE, MAX_BOUNDER_PERCENTAGE) * 100;\n if (cha...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the result of interpreting the object as an instance of 'Located Element'. This implementation returns null; returning a nonnull result will terminate the switch.
public T caseLocatedElement(LocatedElement object) { return null; }
[ "public T caseElement(Element object) {\n\t\treturn null;\n\t}", "public RTWLocation element(RTWElementRef e);", "public T caseElement(Element object)\n {\n return null;\n }", "public T caseContainedElement(ContainedElement object) {\r\n\t\treturn null;\r\n\t}", "public T caseIdentifiableElement(Identi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column ei_net_order.eino_total_volume
public void setEinoTotalVolume(Double einoTotalVolume) { this.einoTotalVolume = einoTotalVolume; }
[ "public Double getEinoTotalVolume() {\r\n return einoTotalVolume;\r\n }", "public void setbiboVolume( org.ontoware.rdf2go.model.node.Node value) {\n\t\tBase.set(this.model, this.getResource(), VOLUME, value);\n\t}", "public double getTotalVolume() {\n return totalVolume;\n }", "public void...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns all rows from the T_DEVICE_INFO table that match the criteria 'DOMAINID = :domainid'.
public List<TDeviceInfo> findWhereDomainidEquals(long domainid) throws TDeviceInfoDaoException;
[ "public List<TDeviceInfo> findWhereDtidEquals(long dtid) throws TDeviceInfoDaoException;", "public List<TDeviceInfo> findWhereDevidEquals(long devid) throws TDeviceInfoDaoException;", "public TDeviceInfo findByPrimaryKey(long devid) throws TDeviceInfoDaoException;", "public List<TDeviceInfo> findWhereSridEqua...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Two sets are equal if they have the same name and the same type.
@Override public boolean equals(Object other) { if (!(other instanceof AlloySet)) return false; if (other==this) return true; AlloySet otherSet = (AlloySet)other; return getName().equals(otherSet.getName()) && type.equals(otherSet.type); }
[ "boolean sameSet(T t1, T t2);", "public abstract void assertEquals(Set<?> actual, Set<?> expected);", "@Test\n public void testEqualSets() {\n SortedSet<Integer> same = new SortedSet<>(expectedData.length);\n for (int i = 0; i < expectedData.length; i++)\n same.add(expectedData[i]);\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
prepare for drawing and setup paint stroke properties
private void setupDrawing() { path = new Path(); paint = new Paint(); paint.setColor(BLACK); paint.setAntiAlias(true); paint.setStrokeWidth(5); paint.setStyle(Paint.Style.STROKE); paint.setStrokeJoin(Paint.Join.ROUND); paint.setStrokeCap(Paint.Cap....
[ "private void setupPaint() {\n drawPaint = new Paint();\n drawPaint.setColor(paintColor);\n drawPaint.setAntiAlias(true);\n drawPaint.setStrokeWidth(5);\n drawPaint.setStyle(Paint.Style.STROKE);\n drawPaint.setStrokeJoin(Paint.Join.ROUND);\n drawPaint.setStrokeCap(Pa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the billToAddress2 value for this Account.
public void setBillToAddress2(java.lang.Object billToAddress2) { this.billToAddress2 = billToAddress2; }
[ "public void setBillerAddress2(java.lang.String billerAddress2) {\r\n this.billerAddress2 = billerAddress2;\r\n }", "public void setAddress2(final String address2)\n {\n this.address2 = address2;\n }", "public void setAddress2(java.lang.Object address2) {\n this.address2 = address2...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
test document failures (failures after seq_no generation) are added as noop operation to the translog for primary and replica shards
public void testDocumentFailureReplication() throws Exception { final IOException indexException = new IOException("simulated indexing failure"); final EngineFactory engineFactory = config -> InternalEngineTests.createInternalEngine((dir, iwc) -> new IndexWriter(dir, iwc) { @Override ...
[ "public void testAddNewReplicaFailure() throws Exception {\n logger.info(\"--> starting [Primary Node] ...\");\n final String primaryNode = internalCluster().startNode();\n\n logger.info(\"--> creating test index ...\");\n prepareCreate(\n INDEX_NAME,\n Settings.bui...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the SCALE_NAME_m value for this TScaleParams.
public void setSCALE_NAME_m(java.lang.String SCALE_NAME_m) { this.SCALE_NAME_m = SCALE_NAME_m; }
[ "public void setSCALE_NAME_s(java.lang.String SCALE_NAME_s) {\n this.SCALE_NAME_s = SCALE_NAME_s;\n }", "public void setSCALE_NAME_h(java.lang.String SCALE_NAME_h) {\n this.SCALE_NAME_h = SCALE_NAME_h;\n }", "public java.lang.String getSCALE_NAME_m() {\n return SCALE_NAME_m;\n }", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
reset space population data and assign half the population to Counter and randomly distribute the remainder btw Lobby and CSP
private void distributePopulation() { int halfPop = population/2; counter.setPopulation(halfPop + 11); lobby.setPopulation(2); customerSP.setPopulation(6); Random rand = new Random(); for (int i=0; i < population - halfPop; i++) { int next = rand.nextInt(2); //generates 0 or 1 if (next==0) customerSP.set...
[ "public void GenerateRandomPopulation(){\n\t\tint[] Sample = new int[this.GenesNum];\n\t\tfor(int i=0; i<Sample.length; i++){\n\t\t\tSample[i] = i;\n\t\t}\n\n\t\tfor(int j=0; j< this.PopulationSize; j++){\n\t\t\tint[] temp = Arrays.copyOf(Sample, Sample.length);\n\t\t\tthis.Population[j] = this.permute(temp, temp.l...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__Collection__Group__7" $ANTLR start "rule__Collection__Group__7__Impl" InternalMyDsl.g:13004:1: rule__Collection__Group__7__Impl : ( RULE_LIST_START ) ;
public final void rule__Collection__Group__7__Impl() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalMyDsl.g:13008:1: ( ( RULE_LIST_START ) ) // InternalMyDsl.g:13009:1: ( RULE_LIST_START ) { // InternalMyDsl.g:...
[ "public final void rule__Collection__Group_9__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:13158:1: ( rule__Collection__Group_9__1__Impl )\n // InternalMyDsl.g:13159:2: rule__Collection__Group_9__1__Impl\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Determines if the appointment has a valid time.
public boolean validateAppointment(Appointment element) { int t = element.getTime(); if (t == 900 || t == 1000 || t == 1100 || t == 1300 || t == 1400 || t == 1500) { return true; } else { ...
[ "boolean hasValidUntilTime();", "public boolean checkTime() {\n \tCalendar current = Calendar.getInstance();\n \tif(current.getTimeInMillis() < start.getTimeInMillis())\n \t\treturn false;\n \telse\n \t\treturn true;\n }", "public static boolean checkValidTime(String time) {\r\n\r\n Dat...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the green value at position (x,y).
public final int getGreenAt(final int x, final int y) { return getColorAt(x, y, OFFSET_GREEN); }
[ "int getGreen(int x, int y);", "public abstract int getGreen(int pixel);", "public Color getPixel(int x, int y);", "float getGreen();", "void setGreen(int x, int y, int value);", "public Color getPixelColor(double x, double y)\n {\n return _wnd.getPixelColor(x, y);\n }", "Color getColor(double posi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ El metodo dispositivoGPS requiere del parametro nameDisp para obtener los datos del gps del dispositivo IOT cuyos datos se encuentran en la seccion Registros cuyos id's son el nombre o codigo unico del dispositivo. Solo se implementa este metodo cuando se selecciona el checkBox box_Dispositivo.
private void dispositivoGPS(String nameDisp){ DatabaseReference db_dispositivo = db_reference.child("Registros"); db_dispositivo.addValueEventListener(new ValueEventListener() { @Override public void onDataChange(@NonNull DataSnapshot dataSnapshot) { Boolean exis...
[ "private void setBuscarServicio() {\n String[] datos = ctr_nombramiento.getDatosServicio(fecha);\n if (datos != null) {\n this.btn_buscar.setEnabled(false);\n JPanel pn_turno_linea, pn_horario, pn_nota, pn_puesto_descripcion;\n String[] datos_servicio;\n boo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Descripcion de la etiqueta /Crea un etiqueta
public Etiqueta(String etiqueta, String descripcion) { this.etiqueta = etiqueta; this.descripcion = descripcion; }
[ "private static void crearEtiquetas() {\r\n\t\tetiqueta.setBackground(new Color(shell.getDisplay(), 255, 255, 255));\r\n\t\tetiqueta.setBounds(400, 0, 300, 300);\r\n\t\tString size = String.valueOf(13);\r\n\t Label etiquetaSize = new Label(shell, SWT.NONE);\r\n\t etiquetaSize.setText(\"El numero de instruccio...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional string backendDocid = 2;
boolean hasBackendDocid();
[ "java.lang.String getDocumentId();", "public void setDocumentNo (String DocumentNo);", "public String getDocumentNo();", "public String documentIdentifier();", "public String getDocId(){\n\t\treturn this.id;\n\t}", "public String getDocId() {\n return docId;\n }", "public static void setBac...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Container's getter for CmsVideoQVO.
public CmsVideoQVOImpl getCmsVideoQVO() { return (CmsVideoQVOImpl)findViewObject("CmsVideoQVO"); }
[ "public CmsVideoQueryVOImpl getCmsVideoQueryVO() {\n return (CmsVideoQueryVOImpl)findViewObject(\"CmsVideoQueryVO\");\n }", "public CmsVideoTVOImpl getCmsVideoTVO() {\n return (CmsVideoTVOImpl)findViewObject(\"CmsVideoTVO\");\n }", "public CmsVideoVOImpl getCmsVideoVO() {\n return (Cm...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
transforms a SearchFilterVO into a MasterDataVO
public static MasterDataVO transformToMasterData(SearchFilterVO searchFilter) { Map<String, Object> mpField = new HashMap<String, Object>(); mpField.put("name", searchFilter.getFilterName()); mpField.put("description", searchFilter.getDescription()); mpField.put("clbsearchfilter", searchFilter.getFilterPref...
[ "public static SearchFilterVO transformToSearchFilter(MasterDataVO mdVO_searchfilter, MasterDataVO mdVO_searchFilteruser) {\r\n\t\tSearchFilterUserVO searchFilerUserVO = SearchFilterUserVO.transformToSearchFilterUser(mdVO_searchFilteruser);\r\n\r\n\t\tSearchFilterVO searchFilter = new SearchFilterVO(\r\n\t\t\t\tmdV...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
CLI for RandomGenerator Usage: java jar randomgeneratorversion listString [options] where: listString = a concatenated list using either the default delimiter (~~~) or the value of the delimiterString provided. options: delimiter = the custom delimiter to use returnSize = the number of elements to return examples: java...
public static void main(String[] args) throws FileNotFoundException { InputStream is = null; RandomGenerator randomGenerator = new RandomGenerator(); try { ClassLoader classloader = Thread.currentThread().getContextClassLoader(); is = classloader.getResourceAsStream("pro...
[ "public List<String>random(){\n List<String> vals= new ArrayList<String>();\n Random rnd = new Random();\n//check if the random command came with only one argument\n if(size()==1){\n int val=Integer.valueOf( data.get(0) );\n data.set(0,String.valueOf((int) val));\n }\n //check if it cam...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Validates a list of values as being nonnegative with an assertion.
public static void nonnegative(final double... values) { nonnull(values); for (int iValue = 0; iValue < values.length; ++iValue) { double value = values[iValue]; if (value < 0) { throw new AssertionError("argument " + (iValue + 1) + " of " + values.length + ...
[ "private void validationInt(List<Integer> list) {\n\t\tint i=0;\n\t\tfor(i=0;i<list.size();i++) {\n\t\t\tif(!(list.get(i) > 0)){\n\t\t\t\tthrow new IntValueLessOneException(list.get(i));\n\t\t\t}\n\t\t}\n\t}", "public void testCheckNotNonPositiveThrowsOnNegative() {\n try {\n Util.checkNotNonPos...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The JCADataSource that is using the channel.
public JCADataSource getJcaDataSource() { return jcaDataSource; }
[ "public static DataSource getDataSource() {\n return dataSource;\n }", "public String getDatasource()\r\n\t{\r\n\t\treturn _dataSource;\r\n\t}", "public DataSource getDatasource() {\r\n\t\treturn datasource != null ? datasource : (datasource = DatasourceFactory.get(configLocation, connectionName));\r\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The feed item referenced in the query. .google.ads.googleads.v1.resources.FeedItem feed_item = 50;
com.google.ads.googleads.v1.resources.FeedItem getFeedItem();
[ "com.google.ads.googleads.v6.resources.FeedItem getFeedItem();", "com.google.ads.googleads.v6.resources.FeedItemOrBuilder getFeedItemOrBuilder();", "com.google.ads.googleads.v6.resources.FeedItemTarget getFeedItemTarget();", "com.google.ads.googleads.v1.resources.FeedItemTarget getFeedItemTarget();", "publi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Getter for deleteCommentButton field.
public final IButton getDeleteCommentButton() { if (this.deleteCommentButton == null) { this.deleteCommentButton = Button .getByCss("#command-navigation > input:nth-child(4)"); } return deleteCommentButton; }
[ "public Button getDeleteButton() {\n\t\treturn deleteButton;\n\t}", "public JButton getDeleteButton() {\r\n return deleteButton;\r\n }", "public IButton getDeleteButton() {\n return controls.getDeleteButton();\n }", "public String getDeleteButtonText() {\n\t\treturn deleteButtonText;\n\t}", "p...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
//GENEND:|94getter|2| //GENBEGIN:|96getter|0|96preInit Returns an initiliazed instance of stopCommand component.
public Command getStopCommand() { if (stopCommand == null) {//GEN-END:|96-getter|0|96-preInit // write pre-init user code here stopCommand = new Command("Stop", Command.STOP, 0);//GEN-LINE:|96-getter|1|96-postInit // write post-init user code here }//GEN-BEGIN:|96-get...
[ "public Command getCmdStop() {\n if (cmdStop == null) {//GEN-END:|71-getter|0|71-preInit\n // write pre-init user code here\n cmdStop = new Command(\"Stop\", Command.ITEM, 22);//GEN-LINE:|71-getter|1|71-postInit\n // write post-init user code here\n }//GEN-BEGIN:|71-ge...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
method to increment the number of correct answers this game
public void incrementRightAnswers(){ right ++; }
[ "public void incrementNumberOfCorrectAnswers() {\n\t\tthis.numberOfCorrectAnswers++;\n\t}", "public void incrementWrongAnswers(){\n\t\twrong ++;\n\t}", "public void incrementRightAnswers(){\n right ++;\n }", "private void correctAnswer() {\n\t\t// dedicated function for easy alterations in case scor...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Calls the slidingWindowData method and then prints the results.
public String slidingWindow(int n, double[] data) { if (n > data.length) { return "Error, n has to be smaller or equal to the amout of data."; } double[] sliddenData = HelperClass.slidingWindowData(n, data); return HelperClass.printData(sliddenData); }
[ "public void displaySlide() {\r\n\r\n\t\tfor (int row = 0; row < slideData.length; row++) {\r\n\t\t\tfor (int col = 0; col < slideData[0].length; col++) {\r\n\t\t\t\tSystem.out.print(slideData[row][col]);\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t}", "public void printData() {\n System.out.printl...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adding new service lines
public void addNewServiceLines() { //To check the status of "Continued_Execution" parameter, if it is set to NO it will skip this method, if not it will resume the execution if(oParameters.GetParameters("Continued_Execution").equalsIgnoreCase("No")) { //Adding step result to report oReport.AddStepRes...
[ "void addService(ServiceInfo serviceInfo);", "public void addService(Service service);", "public void updateList() {\r\n App.servList.add(new Service(scInput.getText().toUpperCase(), ClientPanel.editionData[0], dcInput.getText().toUpperCase(), addInput.getText()));\r\n ServicePanel.addServ();\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
return if this BA has reactive armor
public boolean isReactive() { for (Mounted equip : getMisc()) { if (equip.getType().hasFlag(MiscType.F_REACTIVE)) { return true; } } return false; }
[ "public boolean getHasCustomArmor() {\n return this.hasCustomArmor;\n }", "public boolean isArmor()\n\t{\n\t\treturn (_item instanceof L2Armor);\n\t}", "public boolean isPirActivate() {\r\n return pirActivate;\r\n }", "public boolean isAmmoCard() {\n return ammoCard;\n }", "pub...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Find type of mvi
static int type_of_mvi(String passed){ if(passed.charAt(4)!='M') return 1; else if(general_registers.contains(passed.charAt(4))) return 2; else return 0; }
[ "String getVnfType();", "public String getViptype() {\n return viptype;\n }", "DvkType getType();", "String vmExtensionType();", "private String getVmKind(String kind) {\n if(kind.equals(\"var\"))\n {\n kind = \"local\";\n }\n else if(kind.equals(\"field\"))\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This function can be invoked to get the number of tokens remaining to the specified player.
int getFavorTokens(int playerId);
[ "public int getPlayerTokens()\n {\n return tokens;\n }", "public int getPlayerTokens() {\r\n\r\n\t\treturn player.getTokens();\r\n\t}", "public int numAvailableTokens();", "int getPlayerCardCount();", "public long getRemainingTokens() {\n return remainingTokens;\n }", "int getReleas...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column TRSDET_SWITCHED.PARTY_TYPE_NEW
public String getPARTY_TYPE_NEW() { return PARTY_TYPE_NEW; }
[ "public void setPARTY_TYPE_NEW(String PARTY_TYPE_NEW) {\r\n this.PARTY_TYPE_NEW = PARTY_TYPE_NEW == null ? null : PARTY_TYPE_NEW.trim();\r\n }", "public String getPARTY_TYPE() {\r\n return PARTY_TYPE;\r\n }", "public BigDecimal getPARTY_NO_NEW() {\r\n return PARTY_NO_NEW;\r\n }", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Writes the given contents to a file.
public void writeFileContents(String filename, String contents) { }
[ "public static void writeToOutfile(String filename, String contents) {\n try {\n FileWriter outfile = new FileWriter(filename);\n outfile.write(contents);\n outfile.close();\n } catch (IOException e) {\n System.out.println(\"ERROR: IOException\");\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test that the remove config shell command is executed on the device with the config id.
@Test public void testRemoveDeviceConfig() throws DeviceNotAvailableException { // Mock the remove config commands. when(mTestDevice.executeShellCommand(startsWith(STATS_CONFIG_REMOVE_MATCHER))) .thenReturn(""); long configId = 111; // Call and verify that the remove ...
[ "void rs2_delete_config(Realsense2Library.rs2_config config);", "public int removeCustomDevice(String id);", "FlexibleConfig removeConfig(SimpleUri configId);", "@Test\n public void testDelete() {\n \n System.out.println(\"delete\");\n LaunchConfiguration lc = testLaunchConfigurations....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get XML for the input Vector of attachment
private String getAttachmentXML(Vector vAttachment) { StringBuffer xmlBuf = new StringBuffer(512); if(vAttachment != null) { xmlBuf.append("<attachment_list>"); for(int i=0; i<vAttachment.size(); i++) { dbAttachment att = (dbAttachment) vAttachment.elementAt(i); ...
[ "XMLString getXmlIn();", "public String getXml( HttpServletRequest request ) throws SiteMessageException\n {\n // gets the portlet parent\n Portlet portlet = PortletHome.findByPrimaryKey( getAliasId( ) );\n String strXmlAlias = portlet.getXml( request );\n String strTagPortletName =...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ get 3 inputs from user store in price array get 3 inputs from user store in quantity array add all prices to subtotal take 5.5% of total as tax output total w/ tax
public static void main(String[] args) { final int MAX_AMOUNT =3; double RATE_TAX = 0.055; Scanner input = new Scanner(System.in); double prices[] = new double [MAX_AMOUNT], subtotal =0, tax=0, total=0; int quantity[] = new int[MAX_AMOUNT]; for(int i=0; i<MAX_AMOUNT; i++...
[ "public static void main(String[] args) {\n\tScanner sc = new Scanner(System.in);\n\tint numberOfItems = sc.nextInt();\n\t\n\t// Initialize itemNames and itemPrices arrays\n\tString[] itemNames = new String[numberOfItems];\n\tdouble[] itemPrices = new double[numberOfItems];\n\t\n\t// Fill itemNames and itemPrices a...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checks whether the 'field245' field has been set
public boolean hasField245() { return fieldSetFlags()[245]; }
[ "public boolean hasField243() {\n return fieldSetFlags()[243];\n }", "public boolean hasField543() {\n return fieldSetFlags()[543];\n }", "public boolean hasField123() {\n return fieldSetFlags()[123];\n }", "public boolean hasField145() {\n return fieldSetFlags()[145];\n }", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
get all vendor cuisine list by cuisine id and active
List<VendorCuisine> getVendorCuisineListByCuisine(Long cuisineId, Boolean active) throws NotFoundException;
[ "List<VendorCuisine> getVendorCuisineListByVendor(Long vendorId, Boolean active);", "List<VendorCuisineDTO> getVendorCuisineDetailListByVendor(Long vendorId, Boolean active);", "VendorCuisine getVendorCuisineById(Long id) throws NotFoundException;", "public List<New> listByActiveCiteria(String active);", "@...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set the tolerable duration, in seconds, that a request of the given RCAT category can be pending in SAF handling when a request from an M2M Application does not specify a tolerable delay. A value of 1 represents an infinite duration.
public RequestCategory withTolerableDelay(Integer tolerableDelay) { this.tolerableDelay = tolerableDelay; return this; }
[ "void setThreadDuration(int value);", "public void setRentalDuration(short value) {\n this.rentalDuration = value;\n }", "public void setTolerableDelay(Integer tolerableDelay) {\n\t\tthis.tolerableDelay = tolerableDelay;\n\t}", "public void setDuration (int d)\r\n {\r\n if (d >= DEFAULT_V...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method makes a deep copy of a given Polynom.
@Override public Polynom_able copy() { Polynom newpolynom = new Polynom(); Iterator<Monom> iterator = this.iteretor(); Monom temp; while(iterator.hasNext()) { temp = iterator.next(); Monom newMonom = new Monom(temp); newpolynom.add(newMonom); } return newpolynom; }
[ "@Override\r\n\tpublic Polynom_able copy() {\r\n\t\tPolynom_able polynom_able = new Polynom();\r\n\t\tIterator<Monom> iterator = this.iteretor();\r\n\t\twhile (iterator.hasNext()) {\r\n\t\t\tMonom m = iterator.next();\r\n\t\t\tpolynom_able.add(m);\r\n\t\t}\r\n\t\treturn polynom_able;\r\n\t}", "@Override\n\tpublic...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
if we do not get any data or any error we are displaying a toast message that we do not get any data
@Override public void onFailure(@NonNull Exception e) { Toast.makeText(ServiceOrder.this, "Fail to get the data.", Toast.LENGTH_SHORT).show(); progressBar.setVisibility(View.GONE); EmptyView.setText("Fail to get ...
[ "private void displayErrorToast()\n {\n Toast.makeText(\n getApplicationContext(),\n \"Connection to the server failed, please try again!\",\n Toast.LENGTH_LONG ).show();\n }", "public void successLoad(){\n if(CheckForMobileNetwork() || CheckForWifi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Removes the siac r bil stato op.
public SiacRBilStatoOp removeSiacRBilStatoOp(SiacRBilStatoOp siacRBilStatoOp) { getSiacRBilStatoOps().remove(siacRBilStatoOp); siacRBilStatoOp.setSiacTEnteProprietario(null); return siacRBilStatoOp; }
[ "public SiacRBilTipoStatoOp removeSiacRBilTipoStatoOp(SiacRBilTipoStatoOp siacRBilTipoStatoOp) {\n\t\tgetSiacRBilTipoStatoOps().remove(siacRBilTipoStatoOp);\n\t\tsiacRBilTipoStatoOp.setSiacTEnteProprietario(null);\n\n\t\treturn siacRBilTipoStatoOp;\n\t}", "public SiacDBilStatoOp removeSiacDBilStatoOp(SiacDBilStat...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method contains the logic for reinforcement of human player The human player can choose any country any number of armies to reinforce it
@Override public Integer reinforceArmyToCountry(Country country, RiskBoardView riskBoardView, boolean isInitialPhase, Player player) { Object [] possibilities = new Object [player.getArmyCountAvailable()]; for(int index = 0; index < player.getArmyCountAvailable(); index++) { possibilities[index] = index+1; ...
[ "private void prepareToReinforce(){\n\t\tConsoleLoggerService.getInstance(null).write(\"->->\"+current_player.getName()+\"******REINFORCEMENT PHASE BEGIN*******\\n\");\n\t\tcurrent_player.setCurrentPhase(GamePhase.REINFORCEMENT);\n\t\tGamePlayEvent gpe = new GamePlayEvent(EventType.GENERIC_UPDATE, new HashMap<>());...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Finds square by name
public USquare findUSquareByName(String name) { for (USquare usq : uSquares) { if (usq.getSquareName().equals(name)) { return usq; } } return null; }
[ "Square getSquare(int x, int y);", "public PieceType findByName(String name);", "private Shape find(String name, ArrayList<Shape> listShapes, ArrayList<Command> commands) {\r\n for (Shape shape : listShapes) {\r\n if (shape.getName().equals(name)) {\r\n return shape;\r\n }\r\n }\r\n th...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
itVrLocNonCorrelated Calculates the absolute location of the interfering receiver and interfering transmitter when they are not correlated with each other (i.e. using a specific distribution that the user can select)
private static Point2D itVrLocNonCorrelated(Distribution distanceFactor, InterferenceLink link ) { RelativeLocation location = link.getInterferingLinkRelativePosition().getRelativeLocation(); double protectionDistance = link.getInterferingLinkRelativePosition().getProtectionDistance().trial(); ...
[ "private static void itVrLocCorrelated(MutableLinkResult result, Point2D victimSystemPosition, InterferenceLink link ) {\n InterferingLinkRelativePosition.CorrelationMode sCorrelationMode;\n Point2D rDeltaItIr, delta;\n Point2D rIt = new Point2D(0,0), rIr = new Point2D(0,0);\n\n Relative...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Perform the test for the given matrix column (A119) and row (B79).
public void testA119_B79() { test_id = getTestId("A119", "B79", "53"); NonRootModelElement src = selectA("A119"); NonRootModelElement dest = selectB("B79"); A_B_Action(src, dest); assertTrue("Paste menu item was available even though destination was invalid", checkResult_paste...
[ "public void testA119_B71() {\n test_id = getTestId(\"A119\", \"B71\", \"45\");\n\n NonRootModelElement src = selectA(\"A119\");\n\n NonRootModelElement dest = selectB(\"B71\");\n\n A_B_Action(src, dest);\n assertTrue(\"Paste menu item was available even though destination was inv...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set the field CSS horizontal "textalign" style.
public void setTextAlign(String align) { setStyle("text-align", align); }
[ "public void setTextAlign(TEXT_ALIGN align);", "public void setHorizontalAlignment( short align )\n {\n this.halign = align;\n }", "public void setNameTextAlign(TextAlign align)\n {}", "public void setHorizontalTextAlignment(short value)\n {\n field_1_options = HorizontalTextAlignmen...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
GENLAST:event_btnExportModifActionPerformed /Will export selected sections in modified with headers
private void btnExportModifHeaderActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnExportModifHeaderActionPerformed int o = DtxManager.fcSection.showSaveDialog(this); /*Get the file*/ File f = DtxManager.fcSection.getSelectedFile(); if (o != JFileChooser.APPROVE_OPTIO...
[ "private void btnExportModifActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnExportModifActionPerformed\n int o = DtxManager.fcSection.showSaveDialog(this);\n /*Get the file*/\n File f = DtxManager.fcSection.getSelectedFile();\n if (o != JFileChooser.APPROVE_OPTION |...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a new object of class 'Vertex'.
Vertex createVertex();
[ "public Vertex toVertex() {\n return new Vertex(\n getX(),\n getY(),\n getZ()\n );\n }", "Vertex create(VLabel label) {\n return new Vertex(label);\n }", "public Vertex(String id) { \n name = id; \n }", "public Vertex (String id){\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }