query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
Counts the number of detailInventaire in the database
@Transactional(readOnly = true) public Long countDetailInventaire() { return countDetailInventaire(null); }
[ "int getNewsindentifydetailCount();", "public int getOrderDetailCount() {\n String sqlCountQuery = \"SELECT * FROM \" + CoffeeShopDatabase.OrderDetailTable.TABLE_NAME;\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor cursor = db.rawQuery(sqlCountQuery, null);\n cursor.close()...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
GIVEN WHEN se ejecuta el metodo fibonacciIterativo() para varios casos THEN se comprueba que el resultado sea el esperado
@org.junit.jupiter.api.Test void testFibonacciIterativo() { assertEquals(0, Algoritmos.fibonacciIterativo(-5)); assertEquals(0, Algoritmos.fibonacciIterativo(-1)); assertEquals(0, Algoritmos.fibonacciIterativo(0)); assertEquals(1, Algoritmos.fibonacciIterativo(1)); assertEquals(1, Algoritmos.fibonacciIterati...
[ "@Test\n public void fibonacciTest() {\n final Sequence<Integer> fibo = getFibo();\n final Number answer = fibo.takeWhile(lessThan(4000000))\n .filter(even())\n .reduce(sum());\n assertThat(answer, is(4613732));\n }", "@Test\n void prueba_fibonacci() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column CTSTELLER.ROLE_CODE
public void setROLE_CODE(BigDecimal ROLE_CODE) { this.ROLE_CODE = ROLE_CODE; }
[ "public void setRoleCode(Integer roleCode) {\n this.roleCode = roleCode;\n }", "public String getRoleCode() {\n return roleCode;\n }", "public BigDecimal getROLE_CODE() {\r\n return ROLE_CODE;\r\n }", "public void setRoleCode(String roleCode) {\n this.roleCode = roleCode =...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Add the default binary parser if no binary parser configured.
public static boolean addDefaultBinaryParser(IProject project) throws CoreException { ICConfigExtensionReference[] binaryParsers = CCorePlugin.getDefault().getDefaultBinaryParserExtensions(project); if (binaryParsers == null || binaryParsers.length == 0) { ICProjectDescription desc = CCorePlugin.getDefault().get...
[ "MarkupParser defaultParser();", "public BinaryParser(final String binary) {\r\n this.binary = binary;\r\n }", "void registerParser(BaseParser parser);", "private static void loadParser() {\n if(parser_ == null)\n parser_ = ConfigIOFactory.getInstance(\"json\");\n }", "private...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column sales_record.market_activity_id
public String getMarketActivityId() { return marketActivityId; }
[ "public Integer getActivityId() {\n\t\treturn activityId;\n\t}", "public Integer getActivityId() {\n return activityId;\n }", "public Integer getActivity_id() {\n return activity_id;\n }", "@Column(name = \"user_activity_id\", precision = 10)\n @GeneratedValue\n @Id\n public Integ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "entryRuleERequirementAssignment" $ANTLR start "ruleERequirementAssignment" InternalAADMParser.g:274:1: ruleERequirementAssignment : ( ( rule__ERequirementAssignment__Group__0 ) ) ;
public final void ruleERequirementAssignment() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalAADMParser.g:278:2: ( ( ( rule__ERequirementAssignment__Group__0 ) ) ) // InternalAADMParser.g:279:2: ( ( rule__ERequirementAssignment__Grou...
[ "public final void ruleERequirementAssignments() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAADMParser.g:253:2: ( ( ( rule__ERequirementAssignments__Group__0 ) ) )\n // InternalAADMParser.g:254:2: ( ( rule__ERequirement...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional uint64 valid_until_time = 2;
@java.lang.Override public boolean hasValidUntilTime() { return ((bitField0_ & 0x00000002) != 0); }
[ "long getValidUntilTime();", "boolean hasValidUntilTime();", "boolean hasValidUntilTimestampMsec();", "com.google.protobuf.Timestamp getRequestedExpiration();", "public boolean hasValidUntil() {\n return fieldSetFlags()[9];\n }", "com.google.protobuf.TimestampOrBuilder getRequestedExpirationOrBuil...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__AstExpressionBitxor__RightAssignment_1_2" $ANTLR start "rule__AstExpressionBitand__OperatorAssignment_1_1" ../org.caltoopia.frontend.ui/srcgen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:25220:1: rule__AstExpressionBitand__OperatorAssignment_1_1 : ( ( '&' ) ) ;
public final void rule__AstExpressionBitand__OperatorAssignment_1_1() throws RecognitionException { int stackSize = keepStackSize(); try { // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:25224:1: ( ( ( '&' ) ) ) ...
[ "public final void rule__AstExpressionBitxor__RightAssignment_1_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:25209:1: ( ( ruleAs...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set shopper id address.
void setShopperIpAddress( String shopperIpAddress);
[ "public void setBillingAddressInCart(Address addr);", "public void setShippingAddressInCart(Address addr);", "public void setShopId(java.lang.String value) {\n this.shopId = value;\n }", "public void setIdPersonAddress(int value) {\n this.idPersonAddress = value;\n }", "public void setAddressI...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Calculate trade date based on setllement date and currency i.e. returns the next working date for a non working settlement date.
private LocalDate getTradeDay(String currency, LocalDate settlementDate) { return new TradableDays().getTradableDate(currency, settlementDate); }
[ "public LocalDate getNextWorkingDay(TradeEntity e) {\r\n\t\tLocalDate date = e.getSettlementDate();\r\n\t\twhile (!isWorkingDay(e.getCurrency(), date.getDayOfWeek())) {\r\n\t\t\tdate = date.plusDays(1);\r\n\t\t}\r\n\t\treturn date;\r\n\t}", "public static Date updateSettlementDateToNextWorkingDay(Date settlementD...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets roles and users permitted to write stream metadata.
public Builder metaWriteRoles(List<String> metaWriteRoles) { this.metaWriteRoles = metaWriteRoles; return this; }
[ "private boolean hasWritePermission() {\n return true;\n\n }", "private void changeWriteSettingsPermission(Context context) {\n Intent intent = new Intent(Settings.ACTION_MANAGE_WRITE_SETTINGS);\n context.startActivity(intent);\n }", "public void setWriteOnly(boolean is) {\n _w...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Instantiates a new risk reinforcement phase model.
private RiskReinforcementPhaseModel() { }
[ "public static RiskReinforcementPhaseModel getInstance() {\r\n\t\tif (instance == null)\r\n\t\t\tinstance = new RiskReinforcementPhaseModel();\r\n\t\treturn instance;\r\n\t}", "public TradingModel() {\r\n }", "QualityRisk createQualityRisk();", "private Vehicle createNewVehicle() {\n\t\tString make = gener...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the last facility user mapping in the ordered set where customerId = &63; and customerContactId = &63;.
public FacilityUserMapping fetchByFacilityByCustomerContact_Last( long customerId, long customerContactId, OrderByComparator orderByComparator) throws SystemException { int count = countByFacilityByCustomerContact(customerId, customerContactId); List<FacilityUserMapping> list = findByFacilityByCustomerCont...
[ "public FacilityUserMapping fetchByFumByFacilityCustomerContact_Last(\n\t\tlong customerId, long customerContactId, long faciltyId,\n\t\tOrderByComparator orderByComparator) throws SystemException {\n\t\tint count = countByFumByFacilityCustomerContact(customerId,\n\t\t\t\tcustomerContactId, faciltyId);\n\n\t\tList<...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
whether the MDate is before the given MDate
public boolean before(MDate md){ return time<md.time;}
[ "public boolean isBefore(Date that) {\n return compareTo(that) < 0;\n }", "public boolean before(Date other){\r\n\t\t//checking the year, if the year is before then no need to check month or day\r\n\t\tif(this.getYear() < other.getYear()){\r\n\t\t\treturn true;\r\n\t\t//if the year is the same, checking...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
set the painted line's width
public void setLineWidth(int width) { mPaintLine.setStrokeWidth(width); }
[ "void setLineWidth(float width) { }", "int LineSetWidth(int id, int width);", "public void setLineWidth ( int width ) {\r\n\t\tline_width = width;\r\n\t}", "void setLineThickness(int thickness);", "public void setLineWidth(float newWidth) {\r\n Validate.nonNegative(newWidth, \"new width\");\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Resets the final status of stones.
public void resetFinalStatus() { finalStatus = new GoBoard(_size); }
[ "public void reset() {\r\n state = 0;\r\n }", "public void resetSiegeStatus() {\n if (this.getSiegeStatus().equals(FarmInformation.SIEGE_STATUS.AT_HOME)) {\n // only reset, if reset is needed\n } else {\n siegeTroop = null;\n siegeTroopArrival = -1;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
System.err.println(String.format("} BSVTypeVisitor.popScope() %s", scope.name));
public void popScope() { scope = scopeStack.pop(); assert scopeStack.size() > 0; // nobody should pop the global scope }
[ "public void popScope() {\n\t\tscopeStack.pop();\n\t}", "public void popScope() {\n if (DEBUG) System.out.println(\"popScope(\" + nesting + \")\");\n top.clear(FLAG_SCOPE);\n }", "@Override\n\tpublic void exitParStat(EmojiLangParser.ParStatContext ctx) {\n\t\tscope = scopestack.pop();\n\t}", "public vo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Access method for ridAudUid.
public Integer getRidAudUid() { return ridAudUid; }
[ "public void setRidAudUid(Integer aRidAudUid) {\n ridAudUid = aRidAudUid;\n }", "public Integer getBtrAudUid() {\n return btrAudUid;\n }", "public Integer getAtrfAudUid() {\n return atrfAudUid;\n }", "public void setBtrAudUid(Integer aBtrAudUid) {\n btrAudUid = aBtrAudUid;...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
sets the position the objectView based on a position
public void setObjectPosition(int iPosition){ objectView.setLocation(getPositionX(iPosition), iObjectPosY); }
[ "PositionedObject(){\n float x = DrawingHelper.getGameViewWidth()/2;\n float y = DrawingHelper.getGameViewHeight()/2;\n _position.set(x,y);\n }", "void setPosition(EnvironmentalObject object, int x, int y);", "protected ViewObjectPosition(Position position){\r\n super(position);\r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the method of the ConfigurationService class with the specified name and argument list.
private static Method getMethod( String name, List<Pair<OvsDbConverter.Entry, Object>> args) throws NoSuchMethodException { Class<?>[] types = new Class<?>[args.size()]; for (int index = 0; index < args.size(); index++) { types[index] = args.get(index).first.type; } ...
[ "public Class<ServiceConfig> getConfigurationClass();", "public String getServiceClassName(String name);", "ServiceConfiguration getServiceConfiguration (\n String classname)\n throws RemoteException, ArgumentMalformedException,\n ConfigurationFactoryFailedException;", "Method ge...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
required string last_price = 86;
String getLastPrice();
[ "java.lang.String getLastPrice();", "public String getLastPrice() {\n Object ref = lastPrice_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n i...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the first nLines lines from a buffer.
public static StringBuilder getFirstLines(BufferedReader buff, int nLines) { StringBuilder ret = null; try { String crtLine = null; int lineCnt = 0; if (buff != null) { ret = new StringBuilder(); while ((crtLine = buff.readLine()) != nu...
[ "public String getLine(BufferedReader buffer) throws IOException{\r\n\t\tString line = buffer.readLine();\r\n\t\t++nbOfLines;\r\n\t\treturn line;\r\n\t}", "int getBufferLineCount();", "List<String> getLastNFileLines(File readFile, int linesToRead, int headSize);", "List<String> getLastNFileLines(File readFile...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Implement tenant deletion
@Override public void deleteTenant(int tenantId, boolean removeFromPersistentStorage) throws UserStoreException { return; }
[ "public Result deleteTenant() {\n\t\ttry {\n\t\t\tTenantDao tenantDao = cassandraFactory.getTenantDao();\n\t\t\ttenantDao.deleteTenant(selectedTenant.getTenantId());\n\t\t} catch (DaoException e) {\n\t\t\tLogger.error(\"Error occurred while deleting tenant \", e);\n\t\t}\n\n\t\treturn redirect(\"/tenant/1/10/descen...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Unregister: Given a student id number and a course code, this function should unregister the student from that course.
static void unregisterStudent(Connection conn, String student, String course) throws SQLException { if(!isCourseExist(conn, course)) { System.out.println("Course "+course+" does not exist."); return; } String courseFullName = getCourseFullName(conn, course); String UnregisterQuery = ...
[ "public String unregister(String student, String courseCode){\n String query = \"DELETE FROM Registrations WHERE student = '\" + student + \"' AND course = '\" + courseCode + \"';\";\n try(Statement ps = conn.createStatement();){\n int n = ps.executeUpdate(query);\n ps.close();\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Controls whether to discover available targets and notify via `targetCreated/targetInfoChanged/targetDestroyed` events.
void setDiscoverTargets(@ParamName("discover") Boolean discover);
[ "public void onTargetsLoaded() {\n IAndroidTarget[] targets = null;\n if (Sdk.getCurrent() != null) {\n targets = Sdk.getCurrent().getTargets();\n }\n mSdkTargetSelector.setTargets(targets);\n \n // If there's only o...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Replaces A XOr B with (A AND !B) OR (!A AND B)
private Node removeXOr(Node node) { Node newLeftNode = new Node(new EquationEntity(EntitySymbols.AND), node.getLeftNode(), new Node(new EquationEntity(EntitySymbols.NOT), node.getRightNode())); Node newRightNode = new Node(new EquationEntity(EntitySymbols.AND), new Node(new EquationEntity(EntitySymbols....
[ "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}", "void applyDisjunction(List filterElements);", "void applyOr(FilterElement lhs, FilterElement rhs);", "private static Expression matchLogicalOrOrBinaryInclusiveOr()\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
creates the controls for RootCommit Area
public void createControlsRootCommit(Composite parent) { if (this.process == null) { commitRoot.setParent(shell_dummy_commitRoot); commitRoot.setVisible(false); hinweisComposite.setParent(parent); hinweisComposite.setVisible(true); parent.layout(true); } else { hinweisComposite.setVisib...
[ "public void createControl(Composite ancestor) {\n\t\tfControl = SWTFactory.createComposite(ancestor, 1, 1,\n\t\t\t\tGridData.FILL_BOTH);\n\t\tif (fTitle == null) {\n\t\t\tfTitle = PHPDebugUIMessages.PHPexesComboBlock_3;\n\t\t}\n\t\tGroup group = SWTFactory.createGroup(fControl, fTitle, 1, 1,\n\t\t\t\tGridData.FILL...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column tb_app_release.serial_no
public String getSerialNo() { return serialNo; }
[ "public String getSerialNo() {\r\n return serialNo;\r\n }", "public String getSerialNo() {\n\t\treturn serialNo;\n\t}", "public java.lang.String getSerialNo () {\n\t\treturn serialNo;\n\t}", "public java.lang.Integer getSerialNo() {\n return serialNo;\n }", "public java.lang.String getPr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a new PKCS8EncodedKeySpec with the given encoded key.
public PKCS8EncodedKeySpec(byte[] encodedKey) { super(encodedKey); }
[ "public PKCS8EncodedKeySpec getKeySpec(\n Cipher c)\n throws InvalidKeySpecException\n {\n try\n {\n return new PKCS8EncodedKeySpec(c.doFinal(this.getEncryptedData()));\n }\n catch (Exception e)\n {\n throw new InvalidKeySpecException(\"can't ge...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
We must determine if a set has already been tried before, so we don't waste resources trying it again. We don't want to try combinations that have been subsumed by a successful combination, nor do we want to try combinations that have been attempted before.
private static boolean isCombinationAllowed(Set<Set<Integer>> triedCombinations, Set<Set<Integer>> successfulCombinations, Set<Integer> combination, int requiredCombinationSize) { //If a combination doesn't have the r...
[ "public void checkAndRedeal() {\n\t\tcheckForSet();\n\t\twhile (nbrOfSets <= 0) {\n\t\t\tLog.i(\"TagBag\", \"Inget SET\");\n\t\t\tremoveFromActive();\n\t\t\tCollections.shuffle(deckArray);\n\t\t\tplaceCardsOnTable(12);\n\t\t\tcheckForSet();\n\t\t}\n\t}", "public static boolean settleDuplicateTest() {\r\n Sett ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a new SortingFocusTraversalPolicy with the given comparator set.
public SortingFocusTraversalPolicy(Comparator comparator) { this.comparator = comparator; }
[ "public SortingFocusTraversalPolicy(Comparator comparator) {\n\tthis.comparator = comparator;\n }", "LayoutFocusTraversalPolicy(Comparator<? super Component> c) {\n super(c);\n }", "protected SortingFocusTraversalPolicy() {\n }", "public SortedList(Comparator<T> comparator){\n this(null...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sends a ControlToken.BOARDREQUEST to the first client in the vector, who presumably has the updated positions.
public void requestBoard(){ try { clientThreads.get(0).getOOS().writeObject( new DataWrapper(DataWrapper.CTCODE, new ControlToken(ControlToken.BOARDREQUEST))); } catch(IOException ioe){ ioe.printStackTrace(); } }
[ "@Override\r\n public void update(ActionMessage message) {\r\n\r\n if(message instanceof ActionRequest){\r\n String s=((ActionRequest) message).getAction();\r\n switch(s){\r\n case \"move\"-> status.resetStatus(PerformingAction.MOVE);\r\n case \"build\"-...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the first position point and shifts the rest of the points accordingly. Returns the vector that it shifted all the points by
public Vector2f setFirstPositionAndShiftAll(Vector2f n) { Vector2f d = n.pureSubtract(pts[0]); shiftAllPoints(d); bounds.shiftRectangleBy(d); return d; }
[ "public Vector2f setFirstPositionAndShiftAll(float x, float y)\n\t{\n\t\treturn setFirstPositionAndShiftAll(new Vector2f(x, y));\n\t}", "@Test public void setAllPoints()\n\t{\n\n\t\t{\n\t\t\tPolygon p = new Polygon(new Vector2f(0, 0),\n\t\t\t\t\t\tnew Vector2f(1, 1));\n\n\t\t\tp.setFirstPositionAndShiftAll(3, 3);...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column dbo.FLOW_Form.isPageForm
public Integer getIspageform() { return ispageform; }
[ "public Field<Boolean> getManualField() throws AccessPoemException {\n Column<Boolean> c = _getEventTable().getManualColumn();\n return new Field<Boolean>((Boolean)c.getRaw(this), c);\n }", "Method method(Form form) {\n String method = evaluator.attribute(form.id(), Attribute.method).toLowerCase();\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column g_person.PERSON_IMAGE
public void setPersonImage(String personImage) { this.personImage = personImage == null ? null : personImage.trim(); }
[ "public String getPersonImage() {\r\n return personImage;\r\n }", "public void setPicture(String img_file){\n\t\tscript.ageList.get(script.currentAge).setPicture(img_file);\n\t}", "public void setProfileImg() {\n }", "public void setImage(String value) {\n setAttributeInternal(IMAGE, value...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Use this API to add responderpolicy.
public static base_response add(nitro_service client, responderpolicy resource) throws Exception { responderpolicy addresource = new responderpolicy(); addresource.name = resource.name; addresource.rule = resource.rule; addresource.action = resource.action; addresource.undefaction = resource.undefaction; ad...
[ "void addPolicy(Policy policy);", "public static base_responses add(nitro_service client, responderpolicy resources[]) throws Exception {\n\t\tbase_responses result = null;\n\t\tif (resources != null && resources.length > 0) {\n\t\t\tresponderpolicy addresources[] = new responderpolicy[resources.length];\n\t\t\tf...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set the type for the key
public void setKeyType( KeyType type ) { m_keyType = type; }
[ "public void setTypeKey(String typeKey) {\n this.typeKey = typeKey;\n }", "public void setKeyTypeAsString( String type ) throws Exception {\n boolean found = false;\n for ( KeyType k : KeyType.values() ) {\n if ( k.toString().equalsIgnoreCase( type ) ) {\n m_keyType = k;\n found...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Helper method for determining a reverse iterator for the specified key. This implementation returns an iterator that returns the parts of the given key in reverse order, ignoring indices.
protected Iterator<String> reverseIterator(final DefaultConfigurationKey key) { final List<String> list = new ArrayList<>(); for (final DefaultConfigurationKey.KeyIterator it = key.iterator(); it.hasNext();) { list.add(it.nextKey()); } Collections.reverse(list); retur...
[ "IReverseIterator<ITrieNode<TKey>> getChildrenReverseIterator();", "Iterator<T> reverseEnd();", "Iterator<T> reverseBegin();", "public Iterator<Entry<V>> reverseIterator() { return new RevIterator((Node<V>)max()); }", "CloseableIterator<IndexEntry> descendingIterator();", "public Iterator<E> iteratorRev()...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Compute the difference between currentNode's subRightTreeHeight and subLeftTreeHeight
public int subTreeDiff(BSTNode<K> currentNode) { int diff = nodeHeight(currentNode.getRightChild()) - nodeHeight(currentNode.getLeftChild()); return diff; }
[ "int heightDifference(Node node) {\n\t\tint leftTarget = 0;\n\t\tint rightTarget = 0;\n\t\tif (node.left != null) {\n\t\t\tleftTarget = 1 + node.left.height;\n\t\t}\n\t\tif (node.right != null) {\n\t\t\trightTarget = 1 + node.right.height;\n\t\t}\n\n\t\treturn leftTarget - rightTarget;\n\t}", "private int _height...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructs a filter that accepts SyndEntry objects with a pubDate less than or equal to the current time, as given by System.currentTimeMillis().
public PubDateFilter() { this(System.currentTimeMillis()); }
[ "public PubDateFilter(long epoch) {\r\n this(epoch,false);\r\n }", "public void applyFilterToItemsLessThanOrEqual(List<StatusItem> input, Date time)\n\t{\n\t\t// the items from AWS are NOT in order! We need to filter them down. then sort. \n\t\tPredicate<StatusItem> personPredicate = item -> item.getPub...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the value of the 'transactionStatus' field.
public com.opentext.bn.converters.avro.entity.FinalTaskInfo.Builder setTransactionStatus(com.opentext.bn.converters.avro.entity.TransactionStatus value) { validate(fields()[0], value); this.transactionStatus = value; fieldSetFlags()[0] = true; return this; }
[ "public void setTransactionStatus(com.mgipaypal.ac1211.client.TransactionStatus transactionStatus) {\r\n this.transactionStatus = transactionStatus;\r\n }", "public void setTransactionStatus(String value) {\n setAttributeInternal(TRANSACTIONSTATUS, value);\n }", "public void setStatus(Transa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set the name of the token file. Used to distingush between client and server names.
public static void setOutTokenFile(String file) { if(gTokenToClassName != null) { throw new IllegalStateException("Must be set before initializing this class"); } gOutTokenFile = file; }
[ "public static void setTokenFile(String file) {\n if(gTokenToClassName != null) {\n throw new IllegalStateException(\"Must be set before initializing this class\");\n }\n gTokenFile = file;\n }", "public void setTokenName(String name)\r\n {\r\n tokenName = name;\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Populates a RCU packet ready to be delivered to the Target ASN
public RCU getRCU(ASN targetASN, int RTTFlag) { try { InetAddress ipaddress =InetAddress.getByName(targetASN.getIpa()); RCU packet = new RCU(RouteController.LocalConfig.myASN.getRCID(), targetASN.getASNID(),2,targetASN.getLinkCost(),RTTFlag,ipaddress); if (targetASN.getRCID()...
[ "protected void pktDupeAcked(int seqNum) {}", "public static native void ChannelCounterparty_set_unspendable_punishment_reserve(long this_ptr, long val);", "public NetBIOSDatagram ( byte[] pkt) {\n\t m_buf = pkt;\n\t}", "protected void pktsAcked(int n, long rtt) {}", "public void DHCPRelease()\r\n\t{\r\n\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
A media bundle asset to be used in the ad. For information about the media bundle for HTML5_UPLOAD_AD, see Media bundles that are part of dynamic product types use a special format that needs to be created through the Google Web Designer. See for more information. .google.ads.googleads.v14.common.AdMediaBundleAsset med...
@java.lang.Override public com.google.ads.googleads.v14.common.AdMediaBundleAssetOrBuilder getMediaBundleOrBuilder() { if (mediaAssetCase_ == 2) { return (com.google.ads.googleads.v14.common.AdMediaBundleAsset) mediaAsset_; } return com.google.ads.googleads.v14.common.AdMediaBundleAsset.getDefaultI...
[ "@java.lang.Override\n public com.google.ads.googleads.v14.common.AdMediaBundleAsset getMediaBundle() {\n if (mediaAssetCase_ == 2) {\n return (com.google.ads.googleads.v14.common.AdMediaBundleAsset) mediaAsset_;\n }\n return com.google.ads.googleads.v14.common.AdMediaBundleAsset.getDefaultInstance(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets a boolean value of an annotation from a Kubernetes metadata object
private static boolean booleanAnnotation(ObjectMeta metadata, String annotation, boolean defaultValue, String... deprecatedAnnotations) { String str = annotation(annotation, null, metadata, deprecatedAnnotations); return str != null ? parseBoolean(str) : defaultValue; }
[ "boolean hasKubernetesMetadata();", "public static boolean booleanAnnotation(HasMetadata resource, String annotation, boolean defaultValue, String... deprecatedAnnotations) {\n ObjectMeta metadata = resource.getMetadata();\n String str = annotation(annotation, null, metadata, deprecatedAnnotations);...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the next step of the path.
@Override public MFEDirection next() { if (!this.isPathValid()) { String msg = "Annotated Path" + this.getStart().getLocation() + "->" + this.getGoal().getLocation() + ": Cannot get next step " + "when path is invalid."; logger.severe(msg); throw new Illeg...
[ "java.lang.String getNextStep();", "public ActionItemWork getNextStep() {\n return nextStep;\n }", "public String nextStep();", "public Step<E, ?> getNextStep();", "String getStep();", "String getPrevStep();", "public MapPath getNextMapPath() {\n return this.next;\n }", "private String g...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the value of cnpj
public String getCnpj() { return cnpj; }
[ "public String getCnpj()\n\t{\n\t\treturn cnpj;\n\t}", "public String getCpf_cnpj() {\n return cpf_cnpj;\n }", "public double getJc() {\r\n\t\treturn jc;\r\n\t}", "public String getCnpj() throws ACBrException {\n ByteBuffer lCnpj = ByteBuffer.allocate(STR_BUFFER_LEN);\n int ret = ACBrA...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column user.des
public String getDes() { return des; }
[ "public String getDelectuser() {\n return delectuser;\n }", "public String getDesName() {\r\n\t\treturn desName;\r\n\t}", "public String getOisDeluser() {\n return oisDeluser;\n }", "@Column(name = \"SD_PRO_DES\")\n\tpublic String getTaskDes()\n\t{\n\t\treturn taskDes;\n\t}", "public Str...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Use SemanticLangidParams.newBuilder() to construct.
private SemanticLangidParams(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); }
[ "speech.multilang.Params.SemanticLangidParamsOrBuilder getSemanticLangidParamsOrBuilder();", "public Builder setSemanticLangidParams(speech.multilang.Params.SemanticLangidParams value) {\n if (semanticLangidParamsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerExceptio...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test when moving the Rook up to a place where the path is blocked
@Test void RookMoveUpBlocked() { Board board = new Board(8, 8); Piece rook1 = new Rook(board, 6, 4, 1); Piece rook2 = new Rook(board, 6, 2, 1); board.getBoard()[6][4] = rook1; board.getBoard()[6][2] = rook2; board.movePiece(rook1, 6, 1); Assertions.assertEq...
[ "private void followPath(){\r\n\t\tif(noBeepersPresent()){\r\n\t\t\twhile(frontIsClear() && leftIsBlocked() && rightIsBlocked() && noBeepersPresent()){\r\n\t\t\t\tmakeMove();\r\n\t\t\t}\r\n\t\t\tif(frontIsBlocked() && leftIsBlocked() && rightIsBlocked() && noBeepersPresent()){\r\n\t\t\t\tturnAround();\r\n\t\t\t\tpa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Check a string is school year format. Ex: 20172018
public static boolean validSchoolYear(String schoolYear) { String regex = "^[0-9]{4}-[0-9]{4}$"; return schoolYear != null && schoolYear.matches(regex); }
[ "private boolean isYear(String s) {\n if (s.length() != 4) {\n return false;\n }\n for (int i=0; i<s.length(); i++) {\n if (!Character.isDigit(s.charAt(i))) {\n return false;\n }\n }\n return true;\n }", "public boolean validYea...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get Ogr Tables in Database
public String getOgrTables() { return conn.getOgrTables(); }
[ "Object getTables();", "java.lang.String getTable();", "public ArrayList<Table> getTablesFromDataBase() {\n currResponse = sercli.httpGet(\"http://shouganai.net:8080/restaurant/rest/tables\");\n allDbTables= (Tables) sercli.convertXML(currResponse, Tables.class); \n return allDbTables.getTables();\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Represents a member of a queue. PropertyChangeEvents are fired for the following properties: state position reportedPosition
public interface AsteriskQueueEntry extends LiveObject { String PROPERTY_STATE = "state"; String PROPERTY_POSITION = "position"; String PROPERTY_REPORTED_POSITION = "reportedPosition"; int POSITION_UNDETERMINED = -1; /** * Returns the date this member joined the Queue.<p> * This property...
[ "public void stateChanged(ChangeEvent e) {\n _updateQueueDisplay();\n }", "public static interface MemberForwardObserver\n {\n /**\n * Called when the supplied member object is about to be sent to the specified node.\n */\n void memberWillBeSent (String node, MemberObjec...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the value of the 'field499' field. doc for field499
public java.lang.CharSequence getField499() { return field499; }
[ "public java.lang.CharSequence getField499() {\n return field499;\n }", "java.lang.String getField1500();", "java.lang.String getField1000();", "java.lang.String getField1301();", "java.lang.String getField1999();", "public java.lang.CharSequence getField1000() {\n return field1000;\n }", "p...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Accessor that sets the display loc variable to new, so that a new image is created once the algorithm completes.
public void setDisplayLocNew() { displayLoc = NEW; }
[ "@Override\n public void setDisplayedLocation(Location loc) {\n pane.setVvalue(loc.getyCoord());\n pane.setHvalue(loc.getxCoord());\n setCurrentFloor(loc.getLevel());\n displayedLocation = getDisplayedLocation();\n }", "public void setDisplayLocReplace() {\r\n displayLoc =...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set the name by _name.
public void setName(String name) { _name = name; }
[ "public void setName(String name) {\n NAME = name;\n }", "public void setName(Name v) {\n this.name = v;\n }", "public void setName(String name)\r\n {\r\n this.name = name;\r\n this.gmName = name;\r\n }", "public void setName(String name) {//setName method\n\t\tthis.nam...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the max age for the cookie, based on whether the cookie should be browser session only. If the cookie is only meant to last the same length the users browser is open, then the max age is set to 1. Otherwise the max age is set to expiry time.
private int getCookieMaxAge(Date now, Date exp) { if (!browserSessionOnly) { return new Long((exp.getTime() - now.getTime()) / 1000L).intValue(); } else { return -1; } }
[ "@Description(\"The configured session cookie max-age in milliseconds sent to the browser\")\n @Units(\"milliseconds\")\n public long getCookieMaxAge();", "public Integer getMaxAge() {\r\n\t\t\treturn maxAge;\r\n\t\t}", "public int getMaxAge()\n {\n return MAX_AGE;\n }", "public int getMaxAge...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ moveToTrailer is called by Board's endDay method resets all player attributes except $, cr, rank, and ID
public void moveToTrailer(Room trailers){ this.myRoom = trailers; if (this.myRole != null){ this.myRole.actorLeaves(); } this.myRole = null; this.myScene = null; this.practiceCnt = 0; this.actionTaken = false; this.turnDone = false; this.roleOnCard = false; this.mode = 0; ...
[ "public void resetForNextDay(){\n board.xml.set.generateSceneCards();\n int playerCount = board.getPlayerCount();\n Player[] players = board.getPlayers();\n for(int i = 0; i < playerCount; i++) {\n players[i].setPos(\"Trailer\");\n }\n\n board.incrementDay();\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the d left.
public float getdLeft() { return dLeft; }
[ "int getLeft();", "public L getLeft() {\n return left;\n }", "public Node getLeft() \n\t{\n\treturn left;\n\t}", "float getLeft();", "public Node getLeft() \n\t{\n\t\treturn left;\n\t}", "protected long getLeftPosition() {\n return leftPosition;\n }", "public Node getLeft () {\r\n\t\tret...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checks if this context node is the root context node.
public boolean isRootContextNode();
[ "public boolean isContextRoot()\r\n {\r\n return this.contextRoot;\r\n }", "public boolean isRoot()\r\n\t{\r\n\t\treturn (m_parent == null);\r\n\t}", "public boolean isRoot() {\r\n\t\tif (root != null) {\r\n\t\t\treturn root.booleanValue();\r\n\t\t}\r\n\t\treturn UserManager.ROOT_ID.equals(getId())...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
deprecated; instead use: AcUspsInternationalCandidateRouteTmpLegTools.OperatorCodeComparator
public static JwComparator<AcUspsInternationalCandidateRouteTmpLeg> getOperatorCodeComparator() { return AcUspsInternationalCandidateRouteTmpLegTools.instance.getOperatorCodeComparator(); }
[ "public static JwComparator<AcUspsInternationalCgrDeleteLeg> getOperatorCarrierCodeComparator()\n {\n return AcUspsInternationalCgrDeleteLegTools.instance.getOperatorCarrierCodeComparator();\n }", "public static JwComparator<AcUspsInternationalCandidateRouteTmpLeg> getOperatorFlightNumberComparator()...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
returns true if field is hw accessible (either read or write)
public boolean isHwAccessible() { return isHwReadable() || isHwWriteable(); }
[ "boolean isFieldManagementAvailable();", "public static boolean canAccessFieldsDirectly(){\n return false; //TODO codavaj!!\n }", "public boolean isAccessible() {\n return accessible;\n }", "public Boolean isAccessible() {\n return this.isAccessible;\n }", "boolean isReadAccess...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Click on Submit button of level
public void clickLevelSubmitBtn(){ SeleniumUtilModified.sleep(2); SeleniumUtilModified.waitForElementToBeVisible(levelSubmitBtn, driver); SeleniumUtilModified.element(levelSubmitBtn, driver).click(); Reporter.log("Clicked on Submit button for submitting the activity..."); }
[ "public void hit_SubmitBtn() {\n\t element(\"Submit_Btn\").click();\n }", "public void clickSubmitButton(){\n actionsWithOurElements.clickOnElement(buttonSubmit);\n }", "public static void pressSubmit(){\n DriverManager.driver.findElement(Constans.SUBMIT_BUTTON_LOCATOR).click();\n }", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
get Module Artifact diff with paging
public List<ModuleArtifact> getModuleArtifactsForDiffWithPaging(BuildParams buildParams, String offset, String limit) { ResultSet rs = null; List<ModuleArtifact> artifacts = new ArrayList<>(); Map<String, ModuleArtifact> artifactMap = new HashMap<>(); ResultSet rsArtCurr = null; ...
[ "public List<ModuleDependency> getModuleDependencyForDiffWithPaging(BuildParams buildParams, String offset, String limit) {\n ResultSet rs = null;\n ResultSet rsDep = null;\n ResultSet rsDepCompared = null;\n List<ModuleDependency> dependencies = new ArrayList<>();\n Map<String, M...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns all rows from the SNMP_EVENTS_PROCESS table that match the criteria 'WARNMESSAGE = :warnmessage'.
@Transactional public List<SnmpEventsProcess> findWhereWarnmessageEquals(String warnmessage) throws SnmpEventsProcessDaoException { try { return jdbcTemplate.query("SELECT MARK, MANUFACTURE, RESULTLIST, WARNMESSAGE, SUMMARY FROM " + getTableName() + " WHERE WARNMESSAGE = ? ORDER BY WARNMESSAGE", this,warnmessage...
[ "SQLWarning getWarnings() throws SQLException;", "public String get_warn_messages() {\n if (warning_codes.size() == 0)\n return \"\";\n StringBuffer warn_msgs = new StringBuffer();\n for (int i = 0; i < this.warning_codes.size(); i++) {\n if (i > 0)\n warn...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a new object of class 'Cache'.
Cache createCache();
[ "<K, V> CrossBuildInMemoryCache<K, V> newCache();", "@Override\r\n protected Cache createCache(URL url) {\r\n return new JCache(url);\r\n }", "@SuppressWarnings(\"unchecked\")\n public static synchronized <T extends Cache> T createCache(String name) {\n T cache = (T) caches.get(name);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get http proxy port to be used for signaling.
public int getHttpProxyPort();
[ "int getHttpProxyPort();", "public Integer getProxyPort();", "public int HTTPproxyPort();", "int getRemoteProxyPort();", "public final String getProxyPort() {\n return properties.get(PROXY_PORT_PROPERTY);\n }", "public int getPort() {\n\t\treturn StringUtil.getInt(proxyPort, 0);\n\t}", "public Strin...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Check if the mouse is inside the sprite
public void checkMouse() { boolean bool = false; //variable to show if the mouse is inside the sprite if (mx > x) { if (my > y) { if (mx < x2) { if (my < y2) { bool = true; //The mouse is in the sprite, so change bool to true } } } } if (bool == true) { //If the mouse is in t...
[ "@Override\r\n\tpublic final boolean isMouseOver() {\r\n\t\tfinal float x = getMouseWorldX();\r\n\t\tfinal float y = getMouseWorldY();\r\n\r\n\t\tfinal boolean ans = x >= getState().position.x - getWidth()/2 && x <= getState().position.x + getWidth()/2 && y >= getState().position.y && y <= getState().position.y + g...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get credentials list from database Send credentials list packet to client
private void credentialsList(boolean broadcast) { List<Credential> credentials = clientDatabase.getCredentials(); Packet credentialsConfirmationPacket = new PacketBuilder() .ofType(PacketType.CREDENTIALS.getConfirmation()) .addArgument("credentials", credentials) ...
[ "String getAuthlist();", "public static List<String> getCredentials() {\n String fileContent = \"\";\n BufferedInputStream bis = (BufferedInputStream) FileClient.class.getClassLoader().getResourceAsStream(\"Files/authdb.txt\");\n if (bis != null) {\n try {\n while (b...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The interface Solr service.
public interface SolrService { /** * Save index start. * * @param userId the user id */ @Transactional void saveIndexStart(Long userId); /** * Queue index. * * @param personTotaraId the person totara id */ @Transactional void queueIndex(Long personTotara...
[ "private SolrProxy() {\r\n\r\n\t\t/*\r\n\t\t * Connect to Apache Solr\r\n\t\t */\r\n\t\ttry {\r\n\r\n\t\t\tString endpoint = bundle.getString(GlobalConstants.SEARCH_ENDPOINT);\r\n\t\t\tserver = new CommonsHttpSolrServer(endpoint);\r\n\t\t\t\r\n\t\t} catch (MalformedURLException e) {\r\n\t\t\te.printStackTrace();\r\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Validates the client by using the information in the connection to make a request that will ensure the client is valid.
public abstract void validateConnection() throws InvalidCredentialsException, IOException;
[ "private void checkValid()\n {\n synchronized (lock)\n {\n if (!valid)\n {\n throw new RuntimeException(\"MessageClient has been invalidated.\"); // TODO - localize\n }\n }\n }", "public abstract boolean validateConnection();", "void val...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This is an interface of Command. Every Command should have the excute, getDoc and getOutput method.
public interface Command { /** * every command will excute and do not return anything. * @param input is the input of the user */ public void excute(String input); /** * every command should getdoc, should return the document of the command * @return the doc of each command as a String */ p...
[ "public interface Command {\n \n public void ejecutar();\n public void configureContext(Contenedor container);\n public Command parser(String comando);\n public String help();\n \n}", "public interface Command {\n\n /**\n * This method is used to initialize the command.\n */\n void start(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the SynonymMapsImpl object to access its operations.
public SynonymMapsImpl synonymMaps() { return this.synonymMaps; }
[ "public List<SynonymMap> getSynonymMaps() {\n return this.synonymMaps;\n }", "public IDiskoMapManager getMapManager();", "public Map<Concept, List<Obs>> getObsMap() {\n \treturn obsMap;\n }", "public MapDAO getMapDAO() {\r\n \t\treturn mapDAO;\r\n \t}", "public FSLNSResolver getNamespaceMap(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Getter for asynchronous reporting state enabled
public boolean isAsyncReportingEnabled() { return mAsyncReportingEnabled; }
[ "boolean getCallReportingEnabled();", "public java.lang.Boolean getAwaiting_inspection() {\n return awaiting_inspection;\n }", "public boolean isPolledReportingEnabled() { return mPolledReportingEnabled; }", "public boolean setAsyncReportingEnabled(boolean isEnabled)\n\t{\n\t\tboolean succeeded = fa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get all projects in the repository that have a release recorded.
public Set<IProject> getProjectsWithRelease() throws SimalRepositoryException;
[ "public Set<IProject> getProjectsWithoutRelease() throws SimalRepositoryException;", "public List<ProjectModel> getProjectForRelease()\r\n\t{\r\n\t\treturn projectForRelease;\r\n\t}", "public Set<Release> getReleasesForProject(String projectId) throws IllegalArgumentException, IOException {\n HashSet<Rel...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/Calendar calendar = Calendar.getInstance(); calendar.setTimeInMillis(epoch); calendar.getTime().toGMTString(); calendar.setTimeZone(TimeZone.getTimeZone("GMT"));
public static String notificationepochToDate(long epoch) { try { if(epoch==0){ return ""; } String Date1 = ""; String Time1 = ""; SimpleDateFormat dateFormatGmt = new SimpleDateFormat("hh:mm a"); SimpleDateFormat dateFormatGmt1 = new SimpleDateFormat("dd-MMM-yyyy"); dateFormatGmt.setTimeZ...
[ "private static String getGMT(Date aDate)\n{\n if(_fmt==null) {\n _fmt = new SimpleDateFormat(\"EEE, d MMM yyyy HH:mm:ss z\");\n _fmt.setTimeZone(TimeZone.getTimeZone(\"GMT\"));\n }\n\n return _fmt.format(aDate);\n}", "public static String epochToDateTime(long epoch)\n\t{\n\n\t\treturn new ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
View view = LayoutInflater.from(getContext()).inflate(R.layout.fab_morph_layout, this, true);
private void inflate() { View view = LayoutInflater.from(getContext()).inflate(resourceId, this, true); fab = (FloatingActionButton) view.findViewById(R.id.fab); // your fab needs to have this id vTarget = view.findViewById(R.id.morphTarget); // your target view needs to have this id v...
[ "protected LayoutInflater getInflater(){\n return getActivity().getLayoutInflater();\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\n\t\tif (view != null) {\n\t\t\tLog.i(\"222222\", \"11111111\");\n\t\t\tViewGroup parent =...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Print data processing Parses output data for escape sequences and valid control characters CR and LF. See UPOS specification for POSPrinter, chapter Data Characters and Escape Sequences. Returns list of objects that describe all parts of the output string. These objects can be used by validate and print functions to ...
public List<PrintDataPart> outputDataParts(String data) { List<PrintDataPart> out = new ArrayList<PrintDataPart>(); int index; try { while ((index = data.indexOf("\33|")) >= 0) { outputPrintableParts(data.substring(0, index), out); data = data.su...
[ "private void printData(String data) {\n\t\tSystem.out.println(data);\n\t}", "public void print( String data ) {\n\t\tSystem.out.print(data);\n\t}", "public void printToConsole(Object data){\r\n\t\tSystem.out.println(data);\r\n\t}", "void validateData(PointCardRWService.EscUnknown printData) throws JposExcept...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method is used to get updated cart order and calculate amount and save into order cart table cartId
@Override public Optional<OrderResponseDto> updateCart(Long cartId) { OrderCart orderCart = checkAndGetOrderCartIfExist(cartId); orderCart.setAmount(new BigDecimal(CalculationUtility.sum(orderCart.getOrderProducts())) .setScale(2, RoundingMode.DOWN)); return Optional.ofNullable(orderMapper.entityToResponseDt...
[ "public void updateCartByPurchaseOrder(Cart cart,PurchaseOrder purchaseOrder) throws UserApplicationException;", "@Override\n public Cart update(Cart cart) throws DaoException {\n PreparedStatement statement = null;\n try {\n statement = connection.prepareStatement(UPDATE_CART);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Compares this node to another node. If they are exactly the same, we return true. Otherwise we return false. If whitespace is true, we insist whitespace matches; Otherwise we disregard differences in line breaks and spaces (reducing all white space to a single space before the compare).
public MATCH compareToNode(Node n, boolean whitespace){ if(!type.equals(n.getType())){ // If not the same type, it makes no sense to return MATCH.differentType; // compare further... } boolean attribs = compareAttributes(this.attributes,n.getAttr...
[ "boolean identicalTrees(Node a, Node b) {\n\t\t/* 1. both empty */\n\t\tif (a == null && b == null)\n\t\t\treturn true;\n\n\t\t/* 2. both non-empty -> compare them */\n\t\tif (a != null && b != null)\n\t\t\treturn (a.key == b.key && identicalTrees(a.left, b.left) && identicalTrees(a.right, b.right));\n\n\t\t/* 3. o...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Post a price map to the exchange.
@ShellMethod("Post a price map to the exchange.") public void priceMapRegister() { FacilityPriceMap priceMap = promptForPriceMapFromList(); if (priceMap == null) { return; } if (shell.confirm( messageSource.getMessage("priceMap.register.confirm.ask", null, Locale.getDefault()))) { ...
[ "@RequestMapping(\"/addprice\")\n\tpublic HashMap<String, Object> addPrice(@RequestBody Price p) {\n\t\tHashMap<String, Object> result = new HashMap<String, Object>();\n\t\tSystem.out.println(\"Got a request to add price: \" + p);\n\t\ttry {\n\t\t\tp.isValid();\n\t\t} catch (Exception ex) {\n\t\t\tresult.put(\"succ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__S_Action__Group__2__Impl" $ANTLR start "rule__S_Action__Group__3" InternalGaml.g:7872:1: rule__S_Action__Group__3 : rule__S_Action__Group__3__Impl rule__S_Action__Group__4 ;
public final void rule__S_Action__Group__3() throws RecognitionException { int rule__S_Action__Group__3_StartIndex = input.index(); int stackSize = keepStackSize(); try { if ( state.backtracking>0 && alreadyParsedRule(input, 434) ) { return ; } // Internal...
[ "public final void rule__Action__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:10061:1: ( rule__Action__Grou...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Binds list, navigation and simple direct properties.
@SuppressWarnings("unchecked") private void bindBasics() { // bind the list JListBinding listBinding = SwingBindings.createJListBinding(UpdateStrategy.READ_WRITE, beanList, list); listBinding.setDetailBinding(BeanProperty.create("value")); listBinding.bind(); ...
[ "@Test\r\n public void testListPropertyBindingToListProperty() {\r\n ObservableList<String> list = createObservableList(true);\r\n ListProperty<String> p1 = new SimpleListProperty<>(list);\r\n ListProperty<String> p2 = new SimpleListProperty<>(list);\r\n p2.bind(p1);\r\n assert...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
========================================================================== == Methods ========================================================================== Constructor to create a new multidef object. This version takes its information from a symbol that it will be replacing. This is just a convenience form of the...
MultiDef(String name, // the name of the definition Definition oldDef) { // a standing def with its name this(name, oldDef.getOccurrence(), oldDef.getParentScope()); }
[ "MultiDef(String name, // the name of the definition\n Occurrence occ, // where it was defined\n ScopedDef parentScope) { // the overall symbol table\n super(name, occ, parentScope);\n \n // Create the list to store the definitions\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
public String max() Returns the info of the item with the largest key in the tree, or null if the tree is empty
public String max()// return the value of the maximum key in the tree { if(empty()) { return null; } WAVLNode x = root; while(x.right!=EXT_NODE) { x=x.right; } return x.info; }
[ "public String max() {\n\t\tif (this.empty()) {\n\t\t\treturn null;\n\t\t}\n\t\treturn treeMax(this.root).getValue();\n\t}", "public String getHighestChromKey(){\n if(childItems.size() > 0)\n return highestChromKey;\n else\n return null;\n }", "public int findMax() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
find all trainingssession of a corresponding plan_interClassCommunication
List<TrainingsSession> searchByPlanID(int ID_plan) throws PersistenceException;
[ "public List<TrainingPlanning> obtainPlannedAttendenceTrainingSession(Long trainingsessionId);", "List<Training> obtainAllTrainings();", "ai.visma.asgt.v2.type.Training getTrainings(int index);", "java.util.List<ai.visma.asgt.v2.type.Training> \n getTrainingsList();", "public List<Training> getAllTrain...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Tests if the GetAllToDoItemsEmailContent method returns correct results when there are selected items in the database, and the report is printed for one list only
public void testGetAllToDoItemsEmailContentWithSelectedItems_activityIdSet() { // arrange Uri listUri = helper.insertNewList("testlist"); int listId = Integer.parseInt(listUri.getPathSegments().get(1)); Uri categoryUri = helper.insertNewCategory(listId, "dudus", 1); int categoryId = Integer.parseInt(categor...
[ "public void testGetAllToDoItemsEmailContentWithSelectedItems()\n\t{\n\t\t// arrange\n\t\tUri listUri = helper.insertNewList(\"testlist\");\n\t\tint listId = Integer.parseInt(listUri.getPathSegments().get(1));\n\n\t\tUri categoryUri = helper.insertNewCategory(listId, \"dudus\", 1);\n\t\tint categoryId = Integer.par...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checks whether the specified animation facet is allowed on the specified component.
public static boolean isAnimationAllowed(RadianceThemingSlices.AnimationFacet animationFacet) { return AnimationConfigurationManager.getInstance().isAnimationAllowed(animationFacet, null); }
[ "public static boolean isAnimationAllowed(Component comp, RadianceThemingSlices.AnimationFacet animationFacet) {\n if (comp == null) {\n throw new IllegalArgumentException(\"Component scope APIs do not accept null components\");\n }\n return AnimationConfigurationMana...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method to return if an object is enlisted in the current transaction. This is only of use when running "persistencebyreachability" at commit.
public boolean isEnlistedInTransaction(Object id) { if (pbrAtCommitHandler == null || !tx.isActive()) { return false; } if (id == null) { return false; } return pbrAtCommitHandler.isObjectEnlisted(id); }
[ "default boolean isInTransaction() {\n return TransactionalContext.isInTransaction();\n }", "public boolean isInTransaction() {\r\n return this.inTransaction;\r\n }", "public boolean isStoredInObject() {\r\n return lockValueStored == IN_OBJECT;\r\n }", "@Override\n public boolea...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Handle an individual byte from the byte encoded request object.
public abstract void handle(byte b) throws Exception;
[ "void accept(String fieldName, byte[] utf8Data, int offset, int length);", "byte readByte();", "public byte readByte();", "@Override\n public byte[] handleBinaryRequest(byte[] request) throws IOException, AutomationException {\n serverLog.addMessage(3, 200,\n \"Request received in Sample Object Int...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test of getSGEName method, of class GATKAnnotateVariantsJob.
@Test public void testGatkAnnotateSNP() { File referenceFile = new File(getClass().getResource("Rnor_chr1_10000000_11000000.fa").getFile()); File expectedRawSNPCalls = new File(getClass().getResource("expectedSNPCalls_raw.vcf").getFile()); File expectedRawSNPCallsIdx = new File(getCl...
[ "public java.lang.CharSequence getVariantName() {\n return variantName;\n }", "public java.lang.CharSequence getVariantName() {\n return variantName;\n }", "private String getGeneName () {\n try {\n return getValueOfQualifier (\"gene\");\n } catch (InvalidRelationException e) {\n ret...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Uses default deserialization to turn a byte array into an object. Decrypts the value first. All exceptions are converted into IOExceptions.
@Override public <T> T deSerialize( final byte[] data, final ClassLoader loader ) throws IOException, ClassNotFoundException { if ( data == null ) { return null; } final byte[] deccrypted = decrypt(data); return serializer.deSerialize(deccrypted, load...
[ "public Object deserialize(byte[] value) throws Exception;", "Object deserialize(byte[] bytes) throws Exception;", "T deserialize(byte[] bytes);", "T decode(byte[] bytes) throws IOException;", "public Object decryptObject(byte[] o){\n\t\tif (o==null) {\n\t\t\treturn null;\n\t\t}\n try {\n\t\t\tObject...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the id contact.
public void setIdContact(final Integer idContactt) { this.idContact = idContactt; }
[ "public void setContactId(int tmp) {\n this.contactId = tmp;\n }", "public void setIdContacto(String idContacto) {\r\n\t\tthis.idContacto = idContacto;\r\n\t}", "public void setIdContacto(int aIdContacto) {\r\n idContacto = aIdContacto;\r\n }", "public void setContact(int value) {\n this....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Container's getter for PenaltyPaymentVO1.
public ViewObjectImpl getPenaltyPaymentVO1() { return (ViewObjectImpl)findViewObject("PenaltyPaymentVO1"); }
[ "public ViewObjectImpl getLoanCashPenaltyVO1() {\n return (ViewObjectImpl)findViewObject(\"LoanCashPenaltyVO1\");\n }", "public ViewObjectImpl getPublicNonCashPenaltyVO1() {\n return (ViewObjectImpl)findViewObject(\"PublicNonCashPenaltyVO1\");\n }", "public DsPVOImpl getDsPVO1() {\n r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the base offset (nonmodifiable part of the offset).
public void setBaseOffset(PuertoOffset baseOffset) { positionViewer.setBaseOffset(baseOffset); }
[ "public void setBaseOffset (@Nonnegative long baseOffset);", "protected abstract void setBase(int position, int value);", "public void setSTLBase(double offset) {\n\tif (offset <= 0.0) {\n\t throw new IllegalArgumentException\n\t\t(errorMsg(\"setSTLBaseErr\", offset));\n\t} else {\n\t computeBoundingBoxIf...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get Image from cache
public Bitmap getCacheImage(String tag) { return getCacheImage(0, 0, tag); }
[ "public Bitmap getImageCache(Integer cacheKey)\n {\n synchronized (mLinkedHashMap)\n {\n Bitmap bitmap;\n // Get file from cache\n String file = mLinkedHashMap.get(cacheKey);\n if (file != null)\n {\n bitmap = BitmapFactory.decod...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method returns all the legal moves for a Rook on a p's location on the Board.
public int[][] getMovesRook(Piece p) { x = p.getX(); y = p.getY(); int legalMoves[][] = new int[8][8]; for (int i = x + 1; i < 8; i++) {//Traversing from piece coords, right till end of board. if (b.getPieceAt(y, i) != null) { if (p.isWhite() == b.getPieceAt(...
[ "public ArrayList<Location> getMoveLocations(Piece p)\n {\n Location loc = getLocation(p);\n ArrayList<Location> locs = getCandidateLocations(loc);\n if (p==null)\n return null;\n for (int i = 0; i < locs.size(); i++)\n {\n if (canMoveTo(p,locs.get(i))==IL...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method will show any regular tickets in the input tickets ArrayList.
private static void showAllRegularTickets(ArrayList<Ticket> tickets) { //TODO showAllRegularTickets Code required }
[ "private static void showSummary(ArrayList<Ticket> tickets) {\n //TODO showSummary Code required\n }", "private static void showAllPremiumTickets(ArrayList<Ticket> tickets) {\n //TODO showAllPremiumTickets Code required\n }", "@Override\n\tpublic void allTickets() {\n\t//\tmanyTickets.remove...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Creates a webtransportconnection if one does not already exist for the given RequestElement
public void openWebTransportConnection() throws IOException{ if(mCurrentRequestElement.webtransportconnection == null){ try{ mCurrentRequestElement.webtransportconnection = new WebTransport("https://" + mCurrentRequestElement.mHostText + ":" + Integer.toString(mCurrentRequestElement.mPortInt) + "/").getConn...
[ "private Connection createNewConnection(Endpoint e) {\n\t\tConnection temp;\n\t\ttry {\n\t\t\tConnectionManager.logger.log(Level.FINEST, \"acquiring write lock\");\n\t\t\tconnectionsLock.writeLock().lock();\n\t\t\tConnectionManager.logger.log(Level.FINEST, \"acquired write lock\");\n\t\t\ttemp = connections.get(e);...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Are NULL values sorted at the start regardless of sort order?
public boolean nullsAreSortedAtStart() throws SQLException { return false; }
[ "public boolean nullsAreSortedAtStart()\n throws SQLException\n {\n return false;\n }", "public boolean nullsAreSortedLow()\n throws SQLException\n {\n return true;\n }", "public boolean nullsAreSortedLow()\n throws SQLException\n {\n // The SimpleText driver does no...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }