query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
Unwraps the ICMP header and data and displays it
static void unwrapICMP(byte[] packet, int i) { System.out.println("----------ICMP-------------"); System.out.println("Type : " + getNextNBytesLong(packet, i++, 1)); System.out.println("Code : " + getNextNBytesLong(packet, i++, 1)); System.out.println("Checksum : 0x" + getNextNBytesHex(pa...
[ "private static void processIcmp(){\n\n byte[] typeBytes = readBytes(1);\n byte[] codeBytes = readBytes(1);\n byte[] checksumBytes = readBytes(2);\n\n String typeHex = convertToHex(typeBytes);\n String codeHex = convertToHex(codeBytes);\n String checksum = convertToHex(chec...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the reclamationLevel value for this TradeHistoryEntryVo.
public java.lang.Integer getReclamationLevel() { return reclamationLevel; }
[ "public RationLevel getRationLevel() {\n\t\treturn rl;\n\t}", "public String getReceptionLevelString()\n {\n return this.hasReceptionLevel()? \n String.valueOf(this.getReceptionLevel()) : \n \"\";\n }", "public Long getRiskLevel() {\n return this.RiskLevel;\n }", "...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Invokes the screen's method to print the top entity on screen.
@Override public void render(Screen screen) { getTopEntity().render(screen); }
[ "public void displayTopCard(){\r\n\t\tSystem.out.print(\"\\n\");\r\n\t\tSystem.out.println(\"The dealers top card is: \");\r\n\t\tif(dealerHand != null){\r\n\t\t\tSystem.out.println(dealerHand.get(0));\r\n\t\t}\r\n\t}", "private void printTop() {\n\t\tfor (int t=1; t<=20; t++) {\n\t\t\tString sGenome = caGenome.g...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
end of doMapSeq2Seq method
private HashMap<Integer, Integer[]> doMapSeq2Seqs(GappedAlignmentString gas_seq, GappedAlignmentString[] gas_targetSeqs) { int N = gas_seq.gappedLength(); // making map allocation more efficient int initCapacity = (int)Math.ceil(1.5*N); HashMap<Integer, Integer[]> map = new HashMap<Integer, Integer[]>...
[ "java.lang.String getNewSeq();", "static int[] mapSequences(AlignmentResult aln, boolean anchorA)\r\n\t{\r\n\t\tchar[] a, b;\r\n\t\tint mapLength;\r\n\t\tif (anchorA)\r\n\t\t{\r\n\t\t\ta = aln.getSequence1();\r\n\t\t\tb = aln.getSequence2();\r\n\t\t\tmapLength = aln.getOriginalSequence1().length();\r\n\t\t} else\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test case number: 180 / 27 covered goals: Goal 1. org.apache.commons.lang3.StringUtils.containsNone(Ljava/lang/String;[C)Z: Line 1441 Goal 2. org.apache.commons.lang3.StringUtils.containsNone(Ljava/lang/String;[C)Z: I3 Branch 101 IFNULL L1428 false Goal 3. org.apache.commons.lang3.StringUtils.containsNone(Ljava/lang/St...
@Test public void test180() throws Throwable { boolean boolean0 = StringUtils.containsNone("", ""); String string0 = StringUtils.trimToNull((String) null); }
[ "@Test\n public void test131() throws Throwable {\n String string0 = StringUtils.trim(\"\");\n boolean boolean0 = StringUtils.equalsIgnoreCase(\"\", \"\");\n String string1 = StringUtils.overlay(\"\", \"\", (-2046), (-1653));\n String string2 = StringUtils.substring(\"\", (-589), (-1653));\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__Policy__Group__3" $ANTLR start "rule__Policy__Group__3__Impl" ../org.xtext.example.rmodp.ui/srcgen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:11918:1: rule__Policy__Group__3__Impl : ( 'EV_PolicyValue' ) ;
public final void rule__Policy__Group__3__Impl() throws RecognitionException { int stackSize = keepStackSize(); try { // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:11922:1: ( ( 'EV_PolicyValue' ) ) ...
[ "public final void rule__Policy__Group__3() 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:11910:1: ( rule__Policy__Grou...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test Purpose: This is the test to check whether the method testCountDuplicates return correct number if the current string has escape character. For my case, the method should return 6 since the input string has 7 "\n".
@Test public void testCountDuplicates4() { mycustomstring.setString("abcs\n\n\n\n\n\n\n"); assertEquals(6, mycustomstring.countDuplicates()); }
[ "@Test\n public void testCountDuplicates3() {\n mycustomstring.setString(\"\");\n assertEquals(0, mycustomstring.countDuplicates());\n }", "@Test\n public void testCountDuplicates2() {\n mycustomstring.setString(null);\n assertEquals(0, mycustomstring.countDuplicates());\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the mass of the ball
public double getMass() { return mass; }
[ "public static long mass () { return mass;}", "public float getMass () {\n\t\treturn body.getMass();\n\t}", "public double getMass();", "public double GetMass()\n\t{\n\t\treturn mass;\n\t}", "public double getMass() {\n return mass;\n }", "public double getMass()\n {\n return mass;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Resets the current row to 1 and returns this object.
public Row resetPosition() { rowNumber = -1; return this; }
[ "public void resetRow(int row) {\n\t\trow_index = row;\n\t}", "public DataGenerator<E> reset()\r\n {\r\n this.cursor = 0;\r\n return this;\r\n }", "public ROWTYPE prependRow() {\n return addRowAt(0);\n }", "public void moveToCurrentRow() throws SQLException\n {\n m...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Apply global discount if the input, expected to be a price, exceeds the set threshold.
public BigDecimal applyGlobalDiscount(BigDecimal input) { BigDecimal result = input; if (globalDiscount != null && globalDiscountThresold != null && input.compareTo(globalDiscountThresold)>0) { result = input.multiply(new BigDecimal("1").subtract(globalDiscount)); } return result; }
[ "double calculateNewPrice(double discount_rate, double price);", "public double applyDiscount(){\n SaleDTO saleDTO = sale.createSaleDTO();\n List<DiscountDTO> itemDiscounts=dc.findDiscounts(saleDTO,new ItemDiscount());\n List<DiscountDTO> saleDiscounts=dc.findDiscounts(saleDTO,new SaleDiscoun...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
final A a1 = new A(); final B b1 = new B(); a1.setId("A"); a1.setB(b1); a1.setD("d1"); b1.setId("B"); b1.setC("c1"); save(a1);
public void testIt() throws Exception { final A a2 = new A(); final B b2 = new B(); a2.setId("A"); a2.setB(b2); a2.setD("d2"); b2.setId("B"); b2.setC("c2"); save(a2); final A a3 = load("A"); assertEquals(a3.getD(), a2.getD()); assertEquals(a3.getB().getC(), a2.getB().getC()); }
[ "public void save(BackOrder bo);", "public void persist(A contatto);", "@Test\r\n\tpublic void testSave() {\n//\t\tjoe.age = 28;\r\n//\t\tfriends.save(joe);\r\n\t}", "public Employee saveEmployee(Employee employee);", "public abstract void save();", "PersonaWithSessions savePersonaWithSessions(PersonaWith...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checks if the currently processed character is a number
private boolean checkIfNumber() { return Character.isDigit(data[currentIndex]); }
[ "private int isNum(char c) {\r\n\t\tfor(int i = 0; i < nums.length; i++) {\r\n\t\t\tif(nums[i] == c) {\r\n\t\t\t\treturn Character.getNumericValue(nums[i]);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn -1;\r\n\t}", "private boolean isNumeric(char ch) {\n return (ch >= '0' && ch <= '9');\n }", "public static bool...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Executes the specified task concurrently while maintaining the event order.
@Override protected void doExecute(Runnable task) { if (!(task instanceof ChannelEventRunnable)) { doUnorderedExecute(task); } else { ChannelEventRunnable r = (ChannelEventRunnable) task; getOrderedExecutor(r.getEvent().getChannel()).execute(task); } }
[ "public synchronized void executeTask(Task t) {\n // only one task can be run by executeTask.\n // so we need track this task, make sure it's terminated.\n executingTask = t;\n executingQueue.add(t);\n //run only one task\n executingCountDown = new CountDownLatch(1);\n noti...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Forwards all routes to FrontEnd except: '/', '/index.html', '/api', '/api/' Required because of 'mode: history' usage in frontend routing, see README for further details
@GetMapping(value = "{_:^(?!index\\.html|api).$}") public String redirectApi() { LOG.info("URL entered directly into the Browser, so we need to redirect..."); return "forward:/"; }
[ "@GetMapping(\"/{angularRoute:^[^.]+$}\")\n public String index(@PathVariable String angularRoute) {\n return \"forward:/index.html\";\n }", "@Override\n public void init(Router router) {\n\n // /////////////////////////////////////////////////////////////////////\n // some default f...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Taxi specific settings, not applicable directly to DRT destinationKnown vehicleDiversion onlineVehicleTracker breakSimulationIfNotAllRequestsServed taxiOptimizerParams
public static DrtConfigGroup convertTaxiToDrtCfg(TaxiConfigGroup taxiCfg) { var drtCfg = new DrtConfigGroup(); drtCfg.mode = taxiCfg.getMode(); drtCfg.useModeFilteredSubnetwork = taxiCfg.useModeFilteredSubnetwork; drtCfg.stopDuration = Double.NaN;//used only inside the DRT optimiser // Taxi optimisers do n...
[ "public void setTaxi(Taxi taxi){\n this.taxi = taxi;\n }", "protected void setTaxiNeighbors(Station[] taxi) {\n this.taxi = taxi;\n }", "public void setIsTaxiDriver(Integer isTaxiDriver) {\n this.isTaxiDriver = isTaxiDriver;\n }", "public static void main(String[] args) {\n\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
method to stem the word (convert to base form) only if the word is not having under score For example: saving_account
private String stemmingForAWord(String identifiedWord) { String word; if (identifiedWord.contains("_")) { word = identifiedWord; } else { word = morphology.stem(identifiedWord); } return word; }
[ "String stemOf (String word);", "private static String analyzeTerm(String term) {\n String ret = term.toLowerCase();\n if (stopWords.contains(ret) || ret.isEmpty())\n return \"\";\n return stemmer.stem(ret);\n }", "public String Stem( String word )\n {\n // c...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructs the cell for a given column and row indes
Cell(int column, int row){ coordinate = new Coordinate(column,row); }
[ "public Cell createCell(Row row, int idx){\n return row.createCell(idx++);\n }", "private void createCell(int x, int y) {\n\t\tCoordinateTuple coords = new CoordinateTuple(x, y);\n\t\tcreateCell(coords);\n\t}", "private int getCellIndex(int row, int column) {\n return (columns * row) + column;...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checks if a player is within two coordinates
public static boolean isWithin(Player p, Location l1, Location l2) { if(QueryBoundaryCheck.isWithinX(player.getLocation(), l1.getBlockX(), l2.getBlockX()) && QueryBoundaryCheck.isWithinY(player.getLocation(), l1.getBlockY(), l2.getBlockY()) && QueryBoundaryCheck.isWithinZ(player.getLocation(), l1.getBloc...
[ "private int players_in(Double x1, Double y1, Double x2, Double y2) {\n //gets all online players\n Collection<? extends Player> onlinePlayers = server.getOnlinePlayers();\n\n //count number of players online in area (don't ask me how this works I have no clue)\n return (int) onlinePlaye...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
remove and add RightRing Equipment
public void replaceRightRing(Equipment equipment) { removeRightRing(); addRightRing(equipment); }
[ "public void addRightRing(Equipment equipment) {\n if (rightRing == null && equipment.getEquipmentPart() == EquipmentPart.RING)\n this.rightRing = equipment;\n }", "public void removeEquipedItems()\n {\n this.equipment = new Equipment();\n }", "public void replaceLeftRing(Equi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional int32 display_time = 4;
int getDisplayTime();
[ "public int getDisplayTime() {\n return displayTime_;\n }", "public long getNoShowTime();", "public void setNoShowTime(long time);", "int getCreatetimeus();", "public void setFlextime() {}", "private void updateDisplay() {\n\t\ttime = hours.getDisplayValue() + \":\" + minutes.getDisplayValue();\n\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the maximal number of functions evaluations.
int getMaxEvaluations();
[ "public static int getMaxIterations(){\n\t\treturn MAX_ITERATIONS;\n\t}", "public static int getMaxCount() {\n return maxCount;\n }", "void setMaxEvaluations(int maxEvaluations);", "int maxNumElements();", "int maxIterations();", "public int getMaxCount() { return (this.maxCount); }", "public ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns true if field execOrderId is set (has been assigned a value) and false otherwise
public boolean isSetExecOrderId() { return EncodingUtils.testBit(__isset_bitfield, __EXECORDERID_ISSET_ID); }
[ "boolean hasExecOrderid();", "public boolean isSetRelatedExecTradeId() {\n return EncodingUtils.testBit(__isset_bitfield, __RELATEDEXECTRADEID_ISSET_ID);\n }", "public boolean isSetOrderId() {\n return EncodingUtils.testBit(__isset_bitfield, __ORDERID_ISSET_ID);\n }", "public boolean isSetExecTradeId(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the Request Date
public Date getRequestDate() { return requestDate; }
[ "public Date getRequestDate();", "public Date getRequestDate() {\r\n return (Date)getAttributeInternal(REQUESTDATE);\r\n }", "public Date getDateOfRequest() {\r\n\t\treturn dateOfRequest;\r\n\t}", "public Date getRequestDatetime() {\n\n\t\treturn (this.requestDatetime);\n\t}", "public Date getReqD...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Check expiration date offer. When expires archive them and send emails
private void checkOffers() { try { Calendar now = Calendar.getInstance(); Calendar o = Calendar.getInstance(); Connection conn = DbUtils.getConnection(); String sql = "select o.nazev, o.offer_id, o.datum, kn.email from offer o, knihovna kn" + "...
[ "boolean hasRequestedExpiration();", "public abstract void calculateExpirationDate();", "boolean hasItemExpiration();", "@Scheduled(fixedRate = checkRate)\n public void CheckExpired() {\n log.info(\"Checking if links expired\");\n try {\n for(ShortURL s : urlList) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Compute the local entropy values for the given variable, for the give observations, using the previously provided observations to compute the probabilities. Calls to this method will not harness dynamic correlation exclusion (if set) since we don't know whether it's the same time set or not.
public double[] computeLocalMarginalEntropyUsingPreviousObservations(double states[][], int variableIndex) { return computeLocalMarginalEntropyUsingPreviousObservations(states, variableIndex, false); }
[ "public double[] computeLocalMarginalEntropyOfPreviousObservations(int variableIndex) {\r\n\t\treturn computeLocalMarginalEntropyUsingPreviousObservations(observations, variableIndex, true);\r\n\t}", "public double[] computeLocalJointEntropyOfPreviousObservations() throws Exception {\r\n\t\treturn computeLocalJoi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Shuts down and restarts the given tenant engine. Note that restart happens asynchronously based on available tenant operation threads.
void restartTenantEngine(String token);
[ "void restartAllTenantEngines() throws SiteWhereException;", "public interface ITenantEngineManager<T extends IMicroserviceTenantEngine<?>>\n\textends ITenantEngineConfigurationListener, ITenantEngineLifecycleComponent {\n\n /**\n * Get tenant engine corresponding to the given id.\n * \n * @param t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Collect the store indices on the path from array1 to array2 using only indices different from index.
private void computeStoreIndices(CCTerm index, CCTerm array1, CCTerm array2, Set<CCTerm> storeIndices) { final ArrayNode node1 = mCongRoots.get(array1.getRepresentative()); final ArrayNode node2 = mCongRoots.get(array2.getRepresentative()); final Cursor cursor1 = new Cursor(array1, node1); final Cursor curs...
[ "protected void includeIndices(int[] ixs) {\n\t\tint[] nixs = IntArrays.mergeSorted(index.data,ixs);\n\t\tif (nixs.length==index.length()) return; // no new indices\n\t\tint nl=nixs.length;\n\t\tdouble[] data=this.data;\n\t\tdouble[] ndata=new double[nl];\n\t\tint si=0;\n \n\t\tfor (int i=0; i<nl; i++) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Dynamisches Aenderugszeug Sets the Battery Icon in the ActionBar.
public void setActBarBatteryIcon(Drawable pic){ if(pic!=null && BatteryIcon!=null) BatteryIcon.setIcon(pic); }
[ "public void setBatteryLevelIcon() {\r\n\t\tint current = cameraProperties.getBatteryElectric();\r\n\t\tWriteLogToDevice.writeLog(\"[Normal] -- Main: \",\r\n\t\t\t\t\"current setBatteryLevelIcon= \" + current);\r\n\t\tif (current < 33 && current >= 0) {\r\n\t\t//\tshowWarningDlg(Main.this);\r\n\t\t\tbatteryStatus.s...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the rendering rule of the layer to the given value.
public void setRenderingRule(RasterFunction renderingRule) { getObject().setRenderingRule(renderingRule); return; }
[ "public void setRule(int r)\n { \n rule = r;\n repaint();\n }", "public void setRender(ValueExpression render) {\n this.render = render;\n }", "void setRule(Rule rule);", "private void setRuleData(entity.RuleData value) {\n __getInternalInterface().setFieldValue(RULEDATA_PROP.get()...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column order.pay_date
public void setPayDate(Date payDate) { this.payDate = payDate; }
[ "public void setPayDate(String payDate) {\n this.payDate = payDate;\n }", "public void setPayOrderDT(Date payOrderDT) {\n this.payOrderDT = payOrderDT;\n }", "public void updatePaymentDateById() {\n this.paymentDate = Date.from(LocalDate.now().atStartOfDay(ZoneId.systemDefault()).toIn...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the active edge for the given edge label. If the vertex is deleted and there is no active edge, it returns the latest deleted edge
public AtlasEdge getEdgeForLabel(AtlasVertex vertex, String edgeLabel) { return getEdgeForLabel(vertex, edgeLabel, AtlasEdgeDirection.OUT); }
[ "Edge getEdge();", "E getEdge(int id);", "Edge getEdge(Node q);", "Edge get(Direction direction);", "public Edge getEdgeAt(int index);", "LabeledEdge getLabeledEdge();", "uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureEdge getEdge(int index);", "public Edge returnEdgeById(Id id){\n\t\tif(id.i...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Connect HttpConsumer so it can be used as consumer
public void connect(HttpConsumer consumer) { consumers.put(consumer.getPath(), consumer); }
[ "protected OAuthConsumer getOAuthConsumer() {\r\n\t\tOAuthConsumer consumer = new CommonsHttpOAuthConsumer(apiConsumer.getConsumerKey(), apiConsumer.getConsumerSecret());\r\n//\t\tconsumer.setMessageSigner(new HmacSha1MessageSigner());\r\n//\t\tconsumer.setSigningStrategy(new AuthorizationHeaderSigningStrategy());\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Generates a full class name from a short class name by appending the globallydefined package when necessary
private String expandClassName(String className) { String packageName = getPackageName(); if (className.startsWith(".")) return packageName + className; else if (!className.contains(".")) return packageName + "." + className; else return className; }
[ "protected String getClassNameShort ()\n{\n String sClassName = getClass().getName();\n int pos = sClassName.lastIndexOf('.');\n if (pos >= 0)\n return sClassName.substring(pos+1);\n else\n return sClassName;\n}", "String getPackageCanonicalClassName();", "public static String getShort...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column FreeHost_Product_VPS.HourIOPS4
public void setHouriops4(Integer houriops4) { this.houriops4 = houriops4; }
[ "public void setHouriops7(Integer houriops7) {\r\n this.houriops7 = houriops7;\r\n }", "public void setHouriops2(Integer houriops2) {\r\n this.houriops2 = houriops2;\r\n }", "public void setHouriops6(Integer houriops6) {\r\n this.houriops6 = houriops6;\r\n }", "public void setHou...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the 'J2EE Container Version' literal with the specified integer value.
public static J2EEContainerVersion get(int value) { switch (value) { case _12: return _12_LITERAL; case _13: return _13_LITERAL; case _14: return _14_LITERAL; case _50: return _50_LITERAL; } return null; }
[ "java.lang.String getContainerVersion();", "public static J2EEContainerVersion get(String literal) {\r\n\t\tfor (int i = 0; i < VALUES_ARRAY.length; ++i) {\r\n\t\t\tJ2EEContainerVersion result = VALUES_ARRAY[i];\r\n\t\t\tif (result.toString().equals(literal)) {\r\n\t\t\t\treturn result;\r\n\t\t\t}\r\n\t\t}\r\n\t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets (as xml) the "DateTimeAssigned" element
org.apache.xmlbeans.XmlDateTime xgetDateTimeAssigned();
[ "void xsetDateTimeAssigned(org.apache.xmlbeans.XmlDateTime dateTimeAssigned);", "org.apache.xmlbeans.XmlDateTime xgetDateTimeFulfilled();", "DateTime getPublishedElement();", "org.apache.xmlbeans.XmlString xgetArrivedondate();", "java.util.Calendar getDateTimeAssigned();", "org.apache.xmlbeans.XmlString x...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
An MLUserDataEncryption object containing the encryption mode and customerprovided KMS key ID.
public MLUserDataEncryption getMlUserDataEncryption() { return this.mlUserDataEncryption; }
[ "public TransformEncryption withMlUserDataEncryption(MLUserDataEncryption mlUserDataEncryption) {\n setMlUserDataEncryption(mlUserDataEncryption);\n return this;\n }", "public void setMlUserDataEncryption(MLUserDataEncryption mlUserDataEncryption) {\n this.mlUserDataEncryption = mlUserData...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructs a new Boolean Expression test case with the given name.
public BooleanExpressionTest(String name) { super(name); }
[ "public BooleanExpTest(String name) {\n\t\tsuper(name);\n\t}", "public ConditionalExpressionTest(String name) {\n\t\tsuper(name);\n\t}", "BooleanExpression createBooleanExpression();", "public BitOperatorTest(String name) {\n\t\tsuper(name);\n\t}", "public BinExpressionTest(String name) {\n\t\tsuper(name);\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method takes 3 arrays as parameters and stores them in a load request object so that the Load Service class can access the data that it needs to be able to fill the database.
public LoadRequest(ArrayList<User> users, ArrayList<Person> persons, ArrayList<Event> events) { this.users = users; this.persons = persons; this.events = events; }
[ "public LoadRequest(ArrayList<User> us, ArrayList<Person> ps, ArrayList<Event> es) {\n // init members\n users = us;\n persons = ps;\n events = es;\n }", "public void loadParameters(double x[][],double y[][])\r\n\t{\r\n\t\t\tthis.X=new Basic2DMatrix(x);\r\n\t\t\tthis.Y= new Basic...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Tests localCircuitId() setter method.
@Test public void testSetLocalCircuitId() throws Exception { isisNeighbor.setLocalCircuitId((byte) 1); result4 = isisNeighbor.localCircuitId(); assertThat(result4, is((byte) 1)); }
[ "@Test\n public void testSetLocalExtendedCircuitId() throws Exception {\n isisNeighbor.setLocalExtendedCircuitId(1);\n result = isisNeighbor.localExtendedCircuitId();\n assertThat(result, is(1));\n }", "@Test\n public void testLocalCircuitId() throws Exception {\n isisNeighbor...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Maps from list of DTO to list of model
public List<CurrencyOffer> mapListToModelFromDTO(List<CurrencyOfferDTO> listCurrencyDTO);
[ "List<D> mapToDTO(List<E> entity);", "public List<D> toDto( List<E> entityList );", "List<E> mapToEntity(List<D> dto);", "List<UserDto> toDtoList(List<UserEntity> userEntityList);", "List<TownDto> toDtoList(List<Town> list);", "public List<CurrencyOfferDTO> mapListFromModelToDTO(List<CurrencyOffer> listCu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method returns the title of page.
public String pageTitle() { return webDriver.getTitle(); }
[ "public String getPageTitle() {\n\t\treturn this.pageTitle.toString();\n\t}", "String getPageTitle();", "public String getPageTitle(){\r\n\t\tString value= getTitleOfTheScreen();\r\n\t\treturn value;\r\n\r\n\t}", "public String GetPageTitle()\n\t{\n\t\treturn _driver.getTitle();\n\t}", "public static String...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column ypxx.CPSM
public void setCpsm(String cpsm) { this.cpsm = cpsm; }
[ "public void setStCodeSpC(String stCodeSpC) {\n this.stCodeSpC = stCodeSpC;\n }", "public void setSpmc(String spmc) {\n this.spmc = spmc;\n }", "public void setMppfcCon(String value) {\n String oldValue = getMppfcCon();\n \n try\n {\n setAttributeInternal(MPPF...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Overridden to provide name masking.
@Override protected String handleGetName() { String nameMask = "none"; /*try { nameMask = String.valueOf(this.getConfiguredProperty(UMLMetafacadeProperties.CLASSIFIER_NAME_MASK)); } catch (Exception ignore) { LOGGER.warn("classifi...
[ "protected String handleGetName()\r\n {\r\n final String nameMask = String.valueOf(\r\n this.getConfiguredProperty(UMLMetafacadeProperties.ENTITY_PROPERTY_NAME_MASK));\r\n return NameMasker.mask(super.handleGetName(), nameMask);\r\n }", "private String methodNameMask(String name) {\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Application executor for the WSO2 Carbon Tool executor.
public static void main(String[] args) { String toolIdentifier = System.getProperty(Constants.CARBON_TOOL_SYSTEM_PROPERTY); Optional.ofNullable(toolIdentifier) .ifPresent(identifier -> { try { executeTool(identifier, args); ...
[ "private void deployCarbonApps(String artifactPath) throws CarbonException {\n\n File cAppDirectory = new File(this.cAppDir);\n\n String archPathToProcess = AppDeployerUtils.formatPath(artifactPath);\n String cAppName = archPathToProcess.substring(archPathToProcess.lastIndexOf('/') + 1);\n\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ gives the three sides of a triangle
public Triangle(int a, int b, int c) { if (a <= 0) side1 = 1; else side1 = a; if (b <= 0) side2 = 1; else side2 = b; if (c <= 0) side3 = 1; else side3 = c; }
[ "public void triangulo() {\n fill(0);\n stroke(255);\n strokeWeight(5);\n triangle(width/2, 50, height+100, 650, 350, 650);\n //(width/2, height-100, 350, 150, 900, 150);\n }", "Triangle() {\n\t\tside1 = 1.0;\n\t\tside2 = 1.0;\n\t\tside3 = 1.0;\n\t}", "public static double trianglePerimeter(doub...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Use ModifyConfig.newBuilder() to construct.
private ModifyConfig(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); }
[ "com.google.protobuf.Any getNewConfig();", "private Config(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "com.google.protobuf.Any getOldConfig();", "com.google.protobuf.AnyOrBuilder getOldConfigOrBuilder();", "private SetConfigMessage(com.google.protobuf.GeneratedM...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Consume the specified extensions.
void consumeOnLoad(HandshakeContext context, SSLExtension[] extensions) throws IOException { for (SSLExtension extension : extensions) { if (context.negotiatedProtocol != null && !extension.isAvailable(context.negotiatedProtocol)) { if (SSLLogger.isOn ...
[ "void consumeOnTrade(HandshakeContext context,\n SSLExtension[] extensions) throws IOException {\n for (SSLExtension extension : extensions) {\n if (!extMap.containsKey(extension)) {\n if (extension.onTradeAbsence != null) {\n extension.absentOnTrade(co...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create new ideogram plot.
private void newIdeogramPlot(final Plot plot, final Collection<Experiment> experiments, final IdeogramPlotParameters plotParameters, final ChromosomeArrayDataGetter chromosomeArrayDataGetter) { // Instantiate plot painter IdeogramPlotPainter painter = new IdeogramPlotPainter(chromosomeArrayDa...
[ "PiviDiagram createPiviDiagram();", "private void createChart() {\n\t\tchartSpace = CTChartSpace.Factory.newInstance();\n\t\tchart = chartSpace.addNewChart();\n\t\tCTPlotArea plotArea = chart.addNewPlotArea();\n\n\t\tplotArea.addNewLayout();\n\t\tchart.addNewPlotVisOnly().setVal(true);\n\n\t\tCTPrintSettings prin...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checks if is row level.
public boolean isRowLevel() { return baseStep.isRowLevel(); }
[ "public boolean isGroupRow (int row)\n\t{\n\t\treturn m_data.isGroupRow(row);\n\t}", "boolean checkRow(RenderableDataItem row, int index, int expandableColumn, int rowCount);", "boolean hasRowState();", "public static boolean isMainRow(int row)\r\n {\r\n boolean ret = false;\r\n if(row == WHI...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Slave (read only) data source.
@Bean("slaveDataSource") @ConfigurationProperties(prefix = "spring.ro-datasource") DataSource slaveDataSource() { System.err.println("create slave datasource..."); return DataSourceBuilder.create().build(); }
[ "Slave createSlave();", "void enableReadSlave();", "void setSlaveMode();", "SlaveType getSlave();", "private void loadSlave() {\n String cmd = \"mysql -h\" + dd_des.getHost() + \" -u\" + dd_des.getUsername() + \" -p\" + dd_des.getPassword() + \" -f < \" + getTmpPath() + \"/master_dump.sql\";\n System...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The user clicked on sigIn
@FXML void sigIn_click(ActionEvent event) { String userName = tf_UserName.getText(); String password = tf_password.getText(); try { FieldValidation.idValidation(userName); User.initalizeUser(userName, password, UserType.employee); ServerResponse serverResponse = employeeAuthentication(userName,password...
[ "void onSignInButtonClicked();", "String getOnmouseup();", "void onUserHeadClick();", "private static void userSignIn()\n {\n signInOutButton.setText(\"Sign Out\");\n }", "public boolean didUserClick(){\n return userClick;\n }", "private void signOutClicked() {\n gameHelper.s...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
.estafette.ci.manifest.v1.EstafetteVersion version = 3;
public com.estafette.ci.manifest.v1.EstafetteVersion getVersion() { return version_ == null ? com.estafette.ci.manifest.v1.EstafetteVersion.getDefaultInstance() : version_; }
[ "public com.estafette.ci.manifest.v1.EstafetteVersionOrBuilder getVersionOrBuilder() {\n return getVersion();\n }", "public com.estafette.ci.manifest.v1.EstafetteVersionOrBuilder getVersionOrBuilder() {\n if (versionBuilder_ != null) {\n return versionBuilder_.getMessageOrBuilder();\n } else ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the value of the PremOpsBIDeductible field.
public void setPremOpsBIDeductible(java.lang.String value);
[ "public void setPremOpsBIPDDeductible(java.lang.String value);", "public void setProdsCompldOpsBIDeductible(java.lang.String value);", "public void setProdsCompldOpsBIPDDeductible(java.lang.String value);", "public void setProdsCompldOpsPDDeductible(java.lang.String value);", "public void setPremOpsPDDeduct...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set the salt order.
public final HashWithSalt2Builder setSaltOrder(final SaltOrder saltOrder) { _saltOrder = saltOrder; return this; }
[ "public final SaltOrder getSaltOrder() {\n return _saltOrder;\n }", "public void setSalt(byte[] salt) {\n this.salt = salt;\n }", "public void setSalt(String salt) {\n this.salt = salt;\n }", "public final void setSaltKey(final String salt) {\n try {\n MessageDi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets (as xml) the "Count" element
org.apache.xmlbeans.XmlString xgetCount();
[ "public XPath getCount()\n {\n return m_countMatchPattern;\n }", "org.apache.xmlbeans.XmlInt xgetNumberOfResults();", "void xsetCount(org.apache.xmlbeans.XmlString count);", "int getElementCount();", "public String getNotificationCount() {\n\t\treturn element(\"li_notificationCount\").getText();\n\t}",...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Stores short value into object field.
public static void putShortField(Object obj, long fieldOff, short val) { UNSAFE.putShort(obj, fieldOff, val); }
[ "void setShort(short val);", "public void setShort(short s) {\n shortValue = s;\n }", "public void put(String name, short value){\n\t fields.put(name, new Short(value));\n\t}", "public Buffer putShort(short value);", "public ShortValue(short v) {\n value = v;\n }", "@Overrid...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns price list to event identified by id and in given date.
@Override public PriceListEntity getPriceListForEvent(Integer eventId, Date date) { return priceListDAO.findByEventIdAndDate(eventId, date); // for(int i = 0; i < priceListEntityList.size(); i++) { // if(date.after(priceListEntityList.get(i).getFrom()) && date.before(priceListEntityList.ge...
[ "List <Product> getSoldProductsOn(Date day);", "public Vector<Event> getEvents(Date date) {\r\n\t\tSystem.out.println(\">> DataAccess: getEvents\");\r\n\t\tVector<Event> res = new Vector<Event>();\t\r\n\t\tTypedQuery<Event> query = db.createQuery(\"SELECT ev FROM Event ev WHERE ev.eventDate=?1\", Event.class); ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns true if field isMajorDone is set (has been assigned a value) and false otherwise
public boolean isSetIsMajorDone() { return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __ISMAJORDONE_ISSET_ID); }
[ "public boolean isSetMajor() {\n\t\treturn this.major != null;\n\t}", "public boolean isSetIsMajor() {\n\t\treturn org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __ISMAJOR_ISSET_ID);\n\t}", "boolean isMajor();", "public boolean isDoneFlgTrue() {\n HangarCDef.Flg cdef = getDoneFlgAsFlg();\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Poll realtime notifications. Timeout for a request to a channel is 5 minutes. When the request times out it returns 200 OK empty request. To handle this simply repeat the previous request with an unchanged last_id.
RequestGetOne<Notification> pollChannel(String channelName, String room, int lastId) { String url = String.format(Constants.CHANNELS_POLL_URL, getNotEmptyInstanceName(), channelName); RequestGetOne<Notification> req = new RequestGetOne<>(Notification.class, url, this); req.setLongConnectionTime...
[ "void simplePoll() throws DeviceRequestException;", "private void refresh() {\r\n Response<JsonNode> response = null;\r\n\r\n try {\r\n if (!messages.isEmpty()) {\r\n Message lastMessage = messages.get(messages.size() - 1);\r\n response = TexasHoldemWebServic...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return whether this item is repairable in an anvil.
public boolean getIsRepairable(ItemStack par1ItemStack, ItemStack par2ItemStack) { return false; }
[ "public boolean getIsRepairable(ItemStack toRepair, ItemStack repair) {\n ItemStack mat = new ItemStack(Blocks.OBSIDIAN);\n return !mat.isEmpty() && OreDictionary.itemMatches(mat, repair, false) || super.getIsRepairable(toRepair, repair);\n }", "public boolean getIsRepairable(ItemStack toRepair, ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Renamed from getJavaLaunchConfigType in 3.1
protected ILaunchConfigurationType getConfigurationType() { return internalGetJavaLaunchConfigType(); }
[ "private ILaunchConfigurationType internalGetJavaLaunchConfigType() {\n return getLaunchManager().getLaunchConfigurationType(\"launch.configurationDelegate\"); \n }", "private ILaunchConfigurationType internalGetJavaLaunchConfigType() {\n return DebugPlugin.getDefault().getLaunchManager().getLaunchConfi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Multiplica el objeto con uno de tipo BinaryType
@Override public BinaryType multiplyToBinary(BinaryType multiplicand) { int intMultiplicand = multiplicand.asInt().getValue(); int intMultiplier = this.asInt().getValue(); return TypeFactory.getIntType(intMultiplicand * intMultiplier).asBinary(); }
[ "@Override\n public BinaryType asBinary() {\n return TypeFactory.getBinaryType(this.getValue());\n }", "@Override\n public ITypes multiplyingABinary(Binary b) {\n return FlyweightNull.getFNull().createNull();\n }", "@Override\n public BinaryType addToBinary(BinaryType BinaryType) {\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get a list of Colors associated with the given configuration key. If the key doesn't map to an existing object, the default value is returned.
public List<Color> getColorList(final String key, final List<Color> defaultValue) { return getList(Color.class, key, defaultValue); }
[ "public List<Color> getColorList(final String key) {\n return getColorList(key, new ArrayList<>());\n }", "public Color[] getColorArray(final String key, final Color... defaultValue) {\n return get(Color[].class, key, defaultValue);\n }", "public Color getColor(String key) {\n\t\tif (mapping...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Stores a new TChngreqOffline entity object in to the persistent store
public TChngreqOffline createTChngreqOffline(final TChngreqOffline tChngreqOffline) { LOGGER.info("=========== Create TChngreqOffline ==========="); return genericDAO.store(tChngreqOffline); }
[ "public void save(HrDOvertimetotal entity);", "public void saveTg000003(Tg000003 entity) throws Exception;", "private void storeEntity(Yard entityhubYard, Entity entity) throws YardException{\n if(entity != null){\n entityhubYard.store(entity.getRepresentation());\n entity.getMetada...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Not used Gets all the timesheet rows in database.
public List<TimesheetRow> getAllTimesheetRows(){ return service.getAllTimesheetRows(); }
[ "public List<TimesheetRow> getAllTimesheetRows(Timesheet timesheet){\n\t\tcurrentTimesheet = timesheet;\n\t\ttimesheetRowList = service.getAllTimesheetRows(currentTimesheet.getTimesheetId());\n\t\ttimesheetRowList.add(new TimesheetRow(currentTimesheet.getTimesheetId()));\n\t\treturn service.getAllTimesheetRows(curr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Spring Data Elasticsearch repository for the Payment entity.
public interface PaymentSearchRepository extends ElasticsearchRepository<Payment, Long> { List<Payment> findByCreationDateBetweenOrderByCreationDateAsc(Date from, Date to); }
[ "public interface PaymentSettingsSearchRepository extends ElasticsearchRepository<PaymentSettings, Long> {\n}", "public interface PaymentTransferHistorySearchRepository extends ElasticsearchRepository<PaymentTransferHistory, Long> {\n}", "public interface FeeInvoiceSearchRepository extends ElasticsearchReposito...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns true if the player is walking and has reach the destination
public boolean hasArrived() { if(GameApplication.DEBUG) { Logger.d(this, "hasArrived " + player + "[" + player.getX() + ", " + player.getY() + "] destination=[" + destinationX + ", " + destinationY + "]"); } return walking && player.getX() == destinationX && player.getY() == destinationY; }
[ "public boolean reachDestination() {\r\n\t\t\r\n\t\t// If fish is not close to destination (within 3 pixel of destination).\r\n\t\tif ((Math.abs(this.x - this.destX) >= 3) || \r\n\t\t\t(Math.abs(this.y - this.destY) >= 3)) {\r\n\t\t\treturn false;\r\n\t\t\t// If fish reaches destination.\r\n\t\t} else {\r\n\t\t\tre...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the value of the 'var291' field.
public java.lang.Double getVar291() { return var291; }
[ "public java.lang.Integer getVar298() {\n return var298;\n }", "public java.lang.Integer getVar298() {\n return var298;\n }", "public java.lang.Integer getVar159() {\n return var159;\n }", "public java.lang.Double getVar291() {\n return var291;\n }", "public java.lang.Integer getVar289()...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Description: Clicks on the Account Name Signed In on the home page
@When("^I click on the account name$") public void whenIClickOnTheAccountName() { updateInformationPage.clickAccountName(); }
[ "public void goToAccount() {\n lnkName().click();\n }", "public void clickSignInOnHomePage() {\n logger.writeLog(\"INFO\",\"Clicking on Sign in link: \" + AutomationPracticePageModel.getLinkSignin().getText());\n //waitForElementToBeVisible(By.cssSelector(\".login\"));\n ExplicitWaitUtils...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Before Validate Rules
public void beforeValidate0Q28( ) { }
[ "public void beforeValidate1641( )\n {\n }", "protected void validate() {\n // no op\n }", "@Override\n \tpublic void validate() {\n \t}", "@SuppressWarnings(\"unused\")\n public void beforeValidation() throws EppException {\n // Do nothing.\n }", "protected void beforeValidate(Transactio...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
returns the camera with a specific name
public CameraController getCameraByName(String name) { for (int i = 0; i < cameras.size(); i++) { if (cameras.get(i).getName().compareTo(name) == 0) { return cameras.get(i); } } return null; }
[ "Camera getCamera();", "public java.lang.String getCameraName() {\n return cameraName;\n }", "public Camera getCamera() { return (Camera)CameraSet.elementAt(0); }", "CameraInfo getCameraInfo(int cameraId);", "public String getRMRName() {\n return \"Camera\";\n }", "org.auvua.utils.pr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
evaluateVar() Evaluate a set expression
private static Value evaluateSet(Tree tree, Environment env) throws EvalException { // get the variable final String variable = tree.getSubTree(0).getElement(); // get, and then evaluate, the expression final Tree expr = tree.getSubTree(1); final Value result = evaluateExp( expr...
[ "protected Collection<?> evalSetExpression(ModelElement element,\n\t\t\tExpressionNode node, Variables vars) throws SDMetricsException {\n\t\treturn metricsEngine.evalSetExpression(element, node, vars);\n\t}", "public abstract Set<XVar> collectVars(Set<XVar> set);", "public Result evaluate(MyDataset set);", "...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Tests that calling setSubtotalDiscount updates the appliedRuleIds and the discount record.
@Test public void testSetSubtotalDiscountUpdatesRecords() { ShoppingCart shoppingCart = new ShoppingCartImpl() { { setShoppingItemHasRecurringPricePredicate(new ShoppingItemHasRecurringPricePredicate()); } private static final long serialVersionUID = -3967509335388001024L; @Override public BigD...
[ "@Test\n\tpublic void testSetSubtotalDiscountNotOverrideHigherPrevious() {\n\t\tShoppingCart shoppingCart = new ShoppingCartImpl() {\n\n\t\t\t{\n\t\t\t\tsetShoppingItemHasRecurringPricePredicate(new ShoppingItemHasRecurringPricePredicate()); \n\t\t\t}\n\n\t\t\tprivate static final long serialVersionUID = 7390415668...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return the value associated with the column: inj_detail_vagina
public java.lang.String getInjDetailVagina () { return injDetailVagina; }
[ "public java.lang.String getVaginaInjDetail () {\n\t\treturn vaginaInjDetail;\n\t}", "public void setInjDetailVagina (java.lang.String injDetailVagina) {\n\t\tthis.injDetailVagina = injDetailVagina;\n\t}", "public void setVaginaInjDetail (java.lang.String vaginaInjDetail) {\n\t\tthis.vaginaInjDetail = vaginaInj...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Callback function that is invoked when the OK button in the resolve dialog is pressed.
private void onResolveOkPressed(String dialogValue) { int shortCode = Integer.parseInt(dialogValue); storageManager.getCloudAnchorID( shortCode, (cloudAnchorId) -> { if (cloudAnchorId == null) { return; } ...
[ "protected void okPressed()\n\t{\n\t\t((NewProjectComposite) this.getDialogArea()).updateProject(project);\n\t\tsuper.okPressed();\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t boolean ok = (e.getSource() == DialogDescriptor.OK_OPTION);\n\t accept(ok);\n\t}", "@FXML\n\tprivate void...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Generated Property Setter for attribute FEEDFORWARDINDEX
public void setFeedforwardIndex(int feedforwardIndex) throws G2AccessException { setAttributeValue (FEEDFORWARD_INDEX_, new Integer (feedforwardIndex)); }
[ "public int getFeedforwardIndex() throws G2AccessException {\n java.lang.Object retnValue = getAttributeValue (FEEDFORWARD_INDEX_);\n return ((Integer)retnValue).intValue ();\n }", "MemberMetadata setIndexed(boolean index);", "IndexedProperty buildIndexedProperty(final CelebrosIndexAttributeModel attribu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Specify Spring Transaction Management Policy
@Bean(name = "PROPAGATION_REQUIRED") public SpringTransactionPolicy propogationRequired(PlatformTransactionManager transactionManager) { SpringTransactionPolicy propagationRequired = new SpringTransactionPolicy(); propagationRequired.setTransactionManager(transactionManager); propagationRequired.setPropagati...
[ "public void setIsolationPolicy(IsolationPolicy policy)\n {\n this.policy = policy;\n }", "void transaction(String controllerName, String policyName, Metric transaction);", "public void setPolicy(Policy policy) {\n this.policy = policy;\n \n \n }", "void setTransactionManager(Tran...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Writes the resource to the resultStream.
protected void writeResource(Resource resource, ZipOutputStream resultStream) throws IOException { if (resource == null) { return; } String href = resource.getHref(); if (href.contains("#")) { href = href.substring(0, href.indexOf("#")); } ...
[ "public void writeResult(Object result);", "public void writeResource(Resource resource) {\n writeResource(resource.getModel().getGraph(), resource.asNode(), true);\n }", "public synchronized void writeResources(OutputStream stream)\r\n {\r\n writeResources(stream, null);\r\n }", "void encodeRe...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Given a handle, name and text, return the appropriate message instance or an instance from a subclass of message.
protected static Message makeMessage(String handle, String srcName, String text) { Message result = null; if (handle.compareTo(MessageType.QUIT.toString()) == 0) { result = makeQuitMessage(srcName); } else if (handle.compareTo(MessageType.HELLO.toString()) == 0) { result = makeLoginMessage(srcNa...
[ "private Message(MessageType handle, String srcName, String text) {\n msgType = handle;\n // Save the properly formatted identifier for the user sending the\n // message.\n msgSender = srcName;\n // Save the text of the message.\n msgText = text;\n }", "public Message newMessage(String type, St...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
debug methods Dump the cache map for debugging.
public void dumpMap() { log.debug( "dumpingMap" ); for ( Iterator itr = map.entrySet().iterator(); itr.hasNext(); ) { Map.Entry e = ( Map.Entry ) itr.next(); MemoryElementDescriptor me = ( MemoryElementDescriptor ) e.getValue(); log.debug( "dumpMap> key=" + e.getKey() + ", val=" +...
[ "static void printMapCacheState(IMappingService ms) {\n LOG.debug(\"Map-cache state:\\n{}\", ms.prettyPrintMappings());\n LOG.trace(\"Detailed map-cache state:\\n{}\", ms.printMappings());\n }", "public void dumpCacheEntries()\n {\n log.debug( \"dumpingCacheEntries\" );\n for ( MemoryEl...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the list of coordinates of each line of this record. Each list entry is a array of length 5: [pageNumber, lowerLeftX, lowerLeftY, upperRightX, upperRightY];
public List<Object[]> getLineCoordinates();
[ "List<Integer> lineOffsets();", "protected abstract List<Point> getLinePoints();", "java.util.List<x0101.oecdStandardAuditFileTaxPT1.SourceDocumentsDocument.SourceDocuments.SalesInvoices.Invoice.Line> getLineList();", "org.tensorflow.proto.profiler.XLine getLines(int index);", "public void computeLinePositi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Exports the given synonym list into a configuration file in ZooKeeper
protected void exportSynonymList(RepositoryItem synonymList, Locale locale) throws RepositoryException, SearchServerException { SolrZkClient client = getZkClient(locale); if (client != null) { if (isLoggingInfo()) { logInfo("Exporting synoymym list '" + synonymList.getItemDi...
[ "private void writeAliases(ArrayList<Cutscene> cutscenes)throws FileHandlingException{\n\t\tPrintWriter pw;\n\t\ttry {\n\t\t\tpw = new PrintWriter(\"ext/aliases.txt\");\n\t\t} catch (FileNotFoundException e) {\n\t\t\tthrow new FileHandlingException(\"Unable to write ALIASES file: \" + e.getMessage());\n\t\t}\n\t\tf...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the wrapped inner exception.
public Exception getInnerException() { return innerException; }
[ "public Throwable getNestedException()\r\n {\r\n return nestedException;\r\n }", "public Throwable getNestedException()\n {\n return nested_; \n }", "public Throwable getNestedException()\n {\n return getCause();\n }", "@Override\n\tpublic Throwable getCause() {\n\t\treturn ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
forbids clothing traits forbidden by either modifier
@Override public Set<ClothingTrait> forbiddenClothingTraits() { Set<ClothingTrait> forbiddenTraits = new HashSet<>(first.forbiddenClothingTraits()); forbiddenTraits.addAll(next.forbiddenClothingTraits()); return forbiddenTraits; }
[ "protected boolean canUseOtherDirection() {\n return false;\n }", "Object getUnless();", "public static void InclusiveOR()\n\t{\n\t\tSystem.out.println(a | b);\n\t\tSystem.out.println(a | c);\n\t\tSystem.out.println(b | d);\n\n\t}", "@Override\n public boolean checkInteract(Actor other) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the hasClass value.
public Boolean hasClass() { return this.hasClass; }
[ "public boolean getClassFlag() {\n return m_ClassFlag;\n }", "public boolean existsClass() {\n return getTargetClass() != null;\n }", "boolean isClassProperty();", "public Long getsClass() {\n return sClass;\n }", "boolean isClass();", "public boolean isSetJavaClass()\r\n {\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This is the helper method to get all the companies who have purchased Blueprint feature.
public SPResponse getCompanies(User user) { final SPResponse resp = new SPResponse(); List<Company> findAllCompanies = companyFactory.findCompaniesByFeature(SPFeature.Blueprint); final List<String> existingCompanyIdList = blueprintFactory.getAllBlueprintSettings().stream() .map(BlueprintSettings::ge...
[ "@Override\n public Collection<Company> getCompanies() {\n return database.getCompanies();\n }", "List<Company> getAllCompanies();", "public List<Company> getCompanys() {\n\t\treturn companyDao.findAll();\n//\t\treturn companies;\n\t}", "public List<BaseCompanyDTO> getAllCompaniesWithHiring() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
String sql="select distinct i.cod_institucion, i.nombre, i.cod_institucion_padre from solicitud s, institucion i where i.cod_institucion=s.cod_institucion and s.cod_solicitud="+cod_solicitud+";";
public Institucion buscarInstitucionDeSolicitud(String cod_solicitud){ String sql="select * from institucion where cod_institucion='"+cod_solicitud+"';"; return db.queryForObject(sql, new InstitucionRowMapper()); }
[ "private String getQuerySistemas(long idCandidato){\n\t\tStringBuilder query = new StringBuilder();\n\t\t\n\t\tquery.append(\"SELECT F_DESC_CATALOGO(\")\n\t\t\t.append (Constantes.CATALOGO_SISTEMAS)\n\t\t\t.append(\",ID_SISTEMA_ESPECIALIZADO) \")\n\t\t\t.append(\"AS SISTEMA \")\n\t\t\t.append(\"FROM CAN_SISTEMA_ESP...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get agent's profile for this category.
CategoryProfile getProfileForCategory(final Long agentId, final Long categoryId) throws CvqObjectNotFoundException;
[ "Profile getProfile() {\n\t\treturn (Profile) getTarget();\n\t}", "private IProfile getProfile() {\n \t\treturn profileRegistry.getProfile(getProfileId());\n \t}", "public HumanProfile getUserProfile() {\n return userProfile;\n }", "public Profile getProfile();", "public String getProfile() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Reads all galaxies in from a fit file.
public static Galaxy[] loadGals(String fname) throws FitsException, IOException { // Open the file. Fits f = new Fits(fname); // Load the data. TableHDU tab = (TableHDU) f.getHDU(1); double ra[] = (double[]) tab.getColumn(1); double dec[] = (double[]) tab.getColumn(2); ...
[ "public static Galaxy[] loadRandoms(String fname) throws FitsException, IOException {\n // Open the file.\n Fits f = new Fits(fname);\n\n // Load the data.\n TableHDU tab = (TableHDU) f.getHDU(1);\n double ra[] = (double[]) tab.getColumn(0);\n double dec[] = (double[]) tab....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the western boundary.
public void setWest(int west) { mWest = west; }
[ "public void setWest(Room neighbour) {\n this.west = neighbour;\n }", "public void xsetWestBL(org.apache.xmlbeans.XmlDouble westBL)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlDouble target = null;\n target = (org.apac...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get one organizer by id.
@Override @Transactional(readOnly = true) public OrganizerDTO findOne(Long id) { log.debug("Request to get Organizer : {}", id); Organizer organizer = organizerRepository.findOne(id); return organizerMapper.toDto(organizer); }
[ "Organisation getOrg(Integer id);", "public Author getOne(long id) {\n for (Author author : AUTHORS) {\n if (author.getId() == id)\n return author;\n }\n return null;\n }", "public Personnel get(String id, String organizerId) throws NotFoundException {\n\n\t\tlo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the property enum value.
public void setPropertyEnumValue(Integer valueParam) { propertyEnum = PropertyEnum.enumForValue(valueParam); }
[ "public void setPropertyEnum(PropertyEnum propertyEnum)\r\n\t{\r\n\t\tthis.propertyEnum = propertyEnum;\r\n\t}", "public void setEnum(boolean fEnum)\n {\n if (fEnum)\n {\n m_nFlags |= ACC_ENUM;\n }\n else\n {\n m_nFlags &= ~ACC_ENUM;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The following getter methods are for testing purposes Return the Assigned channel1
public Channel getChannelAssigned1() { return channelAssigned1; }
[ "public Channel getChannelAssigned2() {\n return channelAssigned2;\n }", "public ChannelID getChannelID() {\n return channelID1;\n }", "java.lang.String getChannel();", "int getChannel();", "public int getChannel()\r\n\t{\r\n\t\treturn channel;\r\n\t}", "public String getChannel() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Appends and returns a new empty "Objectid" element
public gov.nih.nlm.ncbi.www.ObjectIdDocument.ObjectId addNewObjectId() { synchronized (monitor()) { check_orphaned(); gov.nih.nlm.ncbi.www.ObjectIdDocument.ObjectId target = null; target = (gov.nih.nlm.ncbi.www...
[ "public ocpp.IdTagInfo addNewIdTagInfo()\n {\n synchronized (monitor())\n {\n check_orphaned();\n ocpp.IdTagInfo target = null;\n target = (ocpp.IdTagInfo)get_store().add_element_user(IDTAGINFO$0);\n return target;\n }\n }", "void addId(String...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Select an existing Productlines entity
@RequestMapping(value = "/Productlines/{productlines_productLine}", method = RequestMethod.GET) public Productlines loadProductlines(@PathVariable String productlines_productLine) { return productlinesDAO.findProductlinesByPrimaryKey(productlines_productLine); }
[ "TraProduct selectByPrimaryKey(String productid);", "public ProductLine productLineById(ProductLine productLine, Connection con) throws SQLException {\r\n\r\n\t\tStatement stmt = con.createStatement();\r\n\t\tString productlineid = productLine.getProductLine();\r\n\t\tString query = \"select product_line,text_des...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Author: Magdoon Basha M Description: Method to change the orientation of device
public void changeOrientation() throws Exception{ String orientation = prop.getProperty("orientation").trim(); System.out.println("ori prop: "+ orientation); // System.out.println( client.getDeviceProperty( "device.name" )); System.out.println("Current Device orientation: "+ client.getDeviceProperty("orientat...
[ "public void setOrientation(int ori);", "public void setOrientation(Direction orientation);", "public void setOrientation(int orientation){\n //save orientation of phone\n mOrientation = orientation;\n }", "public void onDeviceOrientationChanged();", "private void changeOrientation ()\n {\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__XAttributeType__Group__16" $ANTLR start "rule__XAttributeType__Group__16__Impl" ../org.eclipse.osee.framework.core.dsl.ui/srcgen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:3442:1: rule__XAttributeType__Group__16__Impl : ( ( rule__XAttributeType__Group_16__0 )...
public final void rule__XAttributeType__Group__16__Impl() throws RecognitionException { int stackSize = keepStackSize(); try { // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:3446:1: ( ...
[ "public final void rule__XAttributeType__Group_16__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.eclipse.osee.framework.core.dsl.ui/src-gen/org/eclipse/osee/framework/core/dsl/ui/contentassist/antlr/internal/InternalOseeDsl.g:39...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Parses a JSON String and returns a weather object.
private Weather getWeatherObject(String json) { if (json.isEmpty()) return null; // invalid parameter JsonParser parser = new JsonParser(); JsonObject rootObject = parser.parse(json).getAsJsonObject(); JsonArray weatherArray = rootObject.get("weather").getAsJsonArray(); ...
[ "WeatherResponse parseWeatherResponse(String jsonString) throws JSONException;", "public Weather parseWeather(JsonReader reader) throws IOException {\n // TODO -- you fill in here.\n }", "public Weather parseWeather(JsonReader reader) throws IOException {\n\n \treader.beginObject();\n \tWeather ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Load a subcollection based on a master resource and what subcollections have already been created as stored in subCorporaDir.
@Override protected final Collection<OpenAccessPaper> load() { // Access to file that tracks articles already in a subcollection Set<OpenAccessPaper> paperSet = new HashSet<>(); File subCorpusFile = new File(subCorpusPath()); if (subCorpusFile.exists() && subCorpusFile.canRead()) { BufferedReade...
[ "private void loadCollections(ORI container) {\n\n List<Collection> collections = resourceManager.loadChildren(Collection.class, container);\n for (Collection collection : collections) {\n Query emptyQuery = new Query();\n emptyQuery.addDefine(\"c\", collection.getORI());\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }