query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
Optional. Gets or sets the IO type.
public void setIOType(final String iOTypeValue) { this.iOType = iOTypeValue; }
[ "public String getIOType() {\n return this.iOType;\n }", "public String getIOType() {\n return this.iOType;\n }", "public void setIOType(final String iOTypeValue) {\n this.iOType = iOTypeValue;\n }", "public void IOType(String ioType){\n\t\tswitch(ioType){\n\t\tcase \"Con...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the value of the 'recordsReceived' field.
public java.lang.String getRecordsReceived() { return recordsReceived; }
[ "public java.lang.String getRecordsReceived() {\n return recordsReceived;\n }", "public void setRecordsReceived(java.lang.String value) {\n this.recordsReceived = value;\n }", "public boolean hasRecordsReceived() {\n return fieldSetFlags()[4];\n }", "long getMessagesReceived();", "public lon...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Given a String str and a number n check if the prefix (made of up of the first n characters) appears in the remaining part of the String. Print true or false. Assume that the String is not empty and that n is in the range from 1 to str.length(). Examples: input: abXYabc input:1 output: true
public static void main(String[] args) { String str = "abXYabc"; //abXYabc //prefix means first couple of letters int n = 2; // 3 // abX Yabc // rest of the string means word after the prefix String prefix = str.subst...
[ "public boolean prefixAgain(String str, int n) {\n return str.substring(n).contains(str.substring(0,n));\n }", "public static boolean isX(String s, int n) {\n // TODO 6. Hint: Follow this Principle:\n // Make the structure of a loop reflect the structure of the data it processes.\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the value of the 'Property' reference. If the meaning of the 'Property' reference isn't clear, there really should be more of a description here...
Property getProperty();
[ "public final Item getProperty() {\r\n return property;\r\n }", "public String getProperty() {\n return property;\n }", "Property getExternalProperty();", "public Integer getPropertyValue()\r\n\t{\r\n\t\treturn property.getValue();\r\n\t}", "public Property getProperty(String property);"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__PERCENT__Group__0__Impl" $ANTLR start "rule__PERCENT__Group__1" InternalMLRegression.g:2406:1: rule__PERCENT__Group__1 : rule__PERCENT__Group__1__Impl ;
public final void rule__PERCENT__Group__1() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalMLRegression.g:2410:1: ( rule__PERCENT__Group__1__Impl ) // InternalMLRegression.g:2411:2: rule__PERCENT__Group__1__Impl { ...
[ "public final void rule__PERCENT__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMLRegression.g:2383:1: ( rule__PERCENT__Group__0__Impl rule__PERCENT__Group__1 )\n // InternalMLRegression.g:2384:2: rule__PERCENT_...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets a random stop from the graph
public Stop getRandomStop() { int index = ThreadLocalRandom.current().nextInt(0, stops.size()); Iterator<String> iterator = stops.keySet().iterator(); String id = null; for (int i = 0; i <= index; i++) { id = iterator.next(); } return stops.get(id); }
[ "private void generateStartStop () {\n // Create random object\n Random random = new Random ();\n\n // Find starting point\n startPoint = random.nextInt(height - 1);\n //Ensure the start point isn't at the bottom of\n //the maze and that the point to the right of it\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Constructs a String for displaying full date and time for file: 20130222_145324
public static String fullDateForFile(Date date) { SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd_HH-mm-ss", Locale.US); return formatter.format(date); }
[ "protected String getTimestampFilenameFriendly() {\n Date date = new Date();\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyyMMdd-HHmmss\", Locale.GERMANY);\n return sdf.format(date);\n }", "public static String timeNowFilePath() {\n Calendar cal = Calendar.getInstance();\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Basic constructor, reads all level files in LEVEL_FOLDER
public LevelGenerator() { slices = new ArrayList<Slice>(); starts = new ArrayList<Integer>(); ends = new ArrayList<Integer>(); // Get all filenames in the lePath directory} for (final File fileEntry : new File(LEVEL_FOLDER).listFiles()) { if (!fileEntry.isDirectory()) { parseIn(fil...
[ "public LevelLoader(String path) {\n this.path = path;\n this.levelNr = 1;\n }", "public LevelFactory() {\n this(DEFAULT_LEVEL_DIRECTORY);\n }", "void loadLevel(File lvl) throws Exception;", "public LevelLoader(String directoryPath) {\n\t\tdirectory = TextFileReader.getDirectory(di...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column t_news_class.tnc_ModifUserID
public void setTncModifuserid(Long tncModifuserid) { this.tncModifuserid = tncModifuserid; }
[ "public Long getTncModifuserid() {\n return tncModifuserid;\n }", "public void setModifiyUserId(Integer modifiyUserId) {\n this.modifiyUserId = modifiyUserId;\n }", "public void setModifiedUser(long modifiedUser);", "public abstract void setUsuarioModificacion( String usuarioModificacion )...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Search Faculty with pagination
public List search(FacultyBean bean, int pageNo, int pageSize) throws ApplicationException { log.debug("Model search Started"); StringBuffer sql = new StringBuffer("SELECT * FROM ST_FACULTY WHERE 1=1"); if (bean != null) { if (bean.getCollegeId(...
[ "public List search(FacultyDTO dto, int pageNo, int pageSize);", "public List search(FacultyDTO dto);", "@Transactional(readOnly = true)\n\tpublic List search(FacultyDTO dto, int pageNo, int pageSize) {\n\t\treturn dao.search(dto, pageNo, pageSize);\n\t}", "List search(CourseDTO dto, int pageNo, int pageSize)...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__Transformation__Group__1__Impl" $ANTLR start "rule__Transformation__Group__2" ../fr.tpt.aadl.ramses.transformation.trc.xtext.ui/srcgen/fr/tpt/aadl/ramses/transformation/trc/xtext/ui/contentassist/antlr/internal/InternalTRC.g:2042:1: rule__Transformation__Group__2 : rule__Transformation__Group__2__Impl...
public final void rule__Transformation__Group__2() throws RecognitionException { int stackSize = keepStackSize(); try { // ../fr.tpt.aadl.ramses.transformation.trc.xtext.ui/src-gen/fr/tpt/aadl/ramses/transformation/trc/xtext/ui/contentassist/antlr/internal/InternalTRC.g:2046:...
[ "public final void rule__Transformation__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../fr.tpt.aadl.ramses.transformation.trc.xtext.ui/src-gen/fr/tpt/aadl/ramses/transformation/trc/xtext/ui/contentassist/antlr/internal/Interna...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Election of a new GL: promote a GM if possible, create new GL instance
void leaderElection() { if (gmInfo.isEmpty()) { // Ex-nihilo GL creation GroupLeader gl = new GroupLeader(Host.currentHost(), "groupLeader"); try { gl.start(); } catch (Exception e) { e.printStackTrace(); } T...
[ "void setGL(GL3 gl)\r\n {\r\n this.gl = gl;\r\n }", "public void reinitialize(GL2 gl);", "public void init(final GL gl) {\n this.dog_object = gl.glGenLists(1);\n this.update(gl);\n }", "public boolean createGLObject( )\r\n\t{\r\n\t\t\r\n\t\tLog.d( TAG, \"Creando los objetos OpenGL del mobi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
this method contain get FeedbackType desc in db
public String getAllFeedbackTypeDesc() { logger.info("::getAllFeedbackTypeDesc method started:::"); Response response = new Response(); response.setMessage(StatusUtil.HAPPY_STATUS_FAILURE); response.setMessage("get all feedback types desc Failure!Please Try Again."); try { // get all feed back type ...
[ "public String getFeedbackType() {\n return getAttributeValue(ATTR_TYPE);\n }", "public String getFeedbackType()\n\t{\n\t\treturn getAttributeAsString(TYPE_ATTR_NAME);\n\t}", "public DescriptionType getDescriptionType();", "public String getData_type_desc() {\n return data_type_desc;\n }",...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checksums for the complete object. If the checksums computed by the service don't match the specifified checksums the call will fail. May only be provided in the first or last request (either with first_message, or finish_write set). .google.storage.v1.ObjectChecksums object_checksums = 6;
public boolean hasObjectChecksums() { return objectChecksumsBuilder_ != null || objectChecksums_ != null; }
[ "public com.google.storage.v1.ObjectChecksumsOrBuilder getObjectChecksumsOrBuilder() {\n if (objectChecksumsBuilder_ != null) {\n return objectChecksumsBuilder_.getMessageOrBuilder();\n } else {\n return objectChecksums_ == null ?\n com.google.storage.v1.ObjectChecksums.getDefault...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the position angle from the instrument data object.
public String getPositionAngle() { Flamingos2 inst = (Flamingos2) _oe.getInstrument(); return inst.getPosAngleDegreesStr(); }
[ "private double getAngle() {\n double normal= Math.sqrt(((getgAxis(ADXL345_I2C.Axes.kX))*(getgAxis(ADXL345_I2C.Axes.kX)))+((getgAxis(ADXL345_I2C.Axes.kY))*(getgAxis(ADXL345_I2C.Axes.kY))));\n\n return MathUtils.atan(normal / getgAxis(ADXL345_I2C.Axes.kZ));\n }", "private float getAngle() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method allows an admin to get a list of all meters existing in the system.
@GetMapping("/api/meters") @CrossOrigin public Iterable<MeterDTO> getMeters(HttpServletRequest request) { Person p = personRepository.findByUsername(request.getUserPrincipal().getName()).orElse(null); // Admins can get everyones data if (p.getRole().equals(Role.Admin)) { return StreamSupport.stream(meterRep...
[ "public List<Meter> getAllInstuments(){\n return meters;\n }", "@SuppressWarnings(\"unchecked\")\n\tprivate List<Metersoorten> getMetersoorten(){\n\t\t\n\t\tSession session = HibernateUtil.getSessionFactory().openSession();\n\t\t\n\t\tString hql = \"from Metersoorten m \";\n\t\thql += \"order by m.id as...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Add the created action message for the key 'constraints.AssertFalse.message' with parameters. message: ASSERT_FALSE
@Override public HangarMessages addConstraintsAssertFalseMessage(String property) { assertPropertyNotNull(property); add(property, new UserMessage(CONSTRAINTS_AssertFalse_MESSAGE)); return this; }
[ "void assertion(boolean condition, String messageOnFailure);", "public static void assertMsg(boolean assertValue, String message)\r\n throws AssertionException \r\n {\r\n if (!assertValue)\r\n {\r\n if (message == null || message.length() == 0)\r\n {\r\n throw new Asser...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method initializes panelPortScan
private JPanel getPanelPortScan() { if (panelPortScan == null) { panelPortScan = new JPanel(); panelPortScan.setLayout(new GridBagLayout()); panelPortScan.setName(""); JPanel panelMaxPort = new JPanel(); JPanel panelThreadsPerHost = new JPanel(); ...
[ "private void initPortSettings() {\n\n\t\tList<PortSpecification> portSpecification = XMLConfigUtil.INSTANCE.getComponent(componentName)\n\t\t\t\t.getPort().getPortSpecification();\n\n\t\tportDetails = new ArrayList<PortDetails>();\n\t\tports = new HashMap<String, Port>();\n\t\tPortTypeEnum pEnum = null;\n\t\tPortA...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional int32 rotationForcePercent = 16; optional int32 rotationForcePercent = 16;
boolean hasRotationForcePercent();
[ "int getRotationForcePercent();", "public int getRotationForcePercent() {\n return rotationForcePercent_;\n }", "public int getRotationForcePercent() {\n return rotationForcePercent_;\n }", "public void setRotation(float rotation) { this.rotation = rotation; }", "public boolean hasRotati...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns true if field overview is set (has been assigned a value) and false otherwise
public boolean isSetOverview() { return this.overview != null; }
[ "public boolean isSetField() {\r\n return this.field != null;\r\n }", "public boolean is_set_fields() {\n return this.fields != null;\n }", "public boolean is_set_summary() {\n return this.summary != null;\n }", "public boolean isSetFields() {\n return this.fields != null;\n }", "boolean...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return standardized data as rows per item
public double[][] standardizedScoresAsRowPerItem(){ if(!this.dataPreprocessed)this.preprocessData(); return this.standardizedScores0; }
[ "public double[] standardizedItemTotals(){\n if(!this.dataPreprocessed)this.preprocessData();\n if(!this.variancesCalculated)this.meansAndVariances();\n return this.standardizedItemTotals;\n }", "public double[] standardizedItemRanges(){\n if(!this.dataPreprocessed)this.preprocessDa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Starts the model by setting all the required RMI system properties, starts up the class server and installs the security manager.
public void start() { rmiUtils.startRMI(IRMI_Defs.CLASS_SERVER_PORT_CLIENT); try { view.setRemoteHost(rmiUtils.getLocalAddress()); //TODO Is this stored somewhere? user = new User("default", rmiUtils.getLocalAddress(), this); view.append("Create User " + user.getName() + "\n"); registry = rmiUtils.get...
[ "public RmiServer()\n throws RemoteException, MalformedURLException\n {\n\n startRegistery();\n startServer();\n this.model = new ModelManagerServer();\n \n }", "public SimpleStandaloneModelManager init() {\n\t\t\n\t\tString filePath=\"\";\n\t\t\n\t\tmanagedAPIs = new Hashtable();\n\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
NOTE: The toString implementation in grandparent class BeanPropertyWriter throws an NPE for subclasses of VirtualBeanPropertyWriter because they do not set the name field. Thus, we override the toString method here with something completely useless.
@Override public String toString() { return "BeanIdentifierPropertyWriter"; }
[ "@Override\n public String toString() {\n return \"BeanClassPropertyWriter\";\n }", "@Override\n\tpublic String toString() {\n\t\tif (logger.isDebugEnabled()) {\n\t\t\treturn getClass().getSimpleName() + \"@\" + System.identityHashCode(this) +\n\t\t\t\t\t\" {name='\" + getName() + \"', pr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
split this resource in two will transfer as much as possible to the new object ( minimum between amount and this.amount )
public Resource split( int amount ) { Resource r = pool.obtain(); this.transter(r, amount); return r; }
[ "public void split(){\n\t\tamountOfShares = amountOfShares*2;\n\t}", "public void transter( Resource r, int amount )\n\t{\n\t\tif( amount<0 )\n\t\t\tthrow new IllegalArgumentException(\"cannot transfer negative amount\");\n\t\t\n\t\tif( r.type != this.type )\n\t\t\tthrow new IllegalArgumentException(\"two resourc...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adds a AsConcept childConcept to the children of this, if childConcept is a ToolCategory.
@Override public void addToChildren(ConceptHierarchy parents, AsConcept childConcept, boolean removePreviousBottomUpAssociations, ConceptHierarchy newChildParents, IAsConceptFactory factory) { if (childConcept != null && childConcept instanceof ToolCategory) { if (!this.children.contains(childC...
[ "public void addCategoryToCategory(PortletCategory child,\n\t\t\tPortletCategory parent);", "protected void addChild(CtxHelpObject child) {\n if (fTargetObject == null) {\n fParentObject.addChild(child);\n } else {\n fParentObject.addChild(child, fTargetObject, false);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Commits the chosen word to the text field and saves it for later retrieval.
private void commitChosenWord(final String chosenWord, final int commitType, final String separatorString) { final SuggestedWords suggestedWords = mSuggestedWords; mConnection.commitText(SuggestionSpanUtils.getTextWithSuggestionSpan( this, chosenWord, suggestedWords, mIsMainD...
[ "public void saveWord() {\n if (checkWordExists()) {\n return;\n }\n if (languageSelect.getValue() == null) {\n Notification.show(\"Select language\", Notification.Type.WARNING_MESSAGE);\n return;\n }\n String word = wordField.getValue().toLowerCas...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Calculated average of an array of number
static double average(int[] a) { double sum = 0; for (int x = 0; x < a.length; x++) { sum += a[x]; } return sum / a.length; }
[ "private double avg(int[] a) {\n\t\tint sum = 0;\n\t\tfor(int i : a) {\n\t\t\tsum += i;\n\t\t}\n\t\tdouble avg = (double)sum / a.length;\n\t\treturn avg;\n\t}", "public void GetAvg (int [] arr){\r\n int sum = 0;\r\n for (int x: arr) {\r\n sum += x;\r\n }\r\n System.out.println(sum/arr.length);...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Build a field with the provided information. The field value is converted from char to byte with the encoding configured in the properties. The name of the field is set as provided.
@SuppressWarnings("PMD.UseVarargs") private Field buildField(final String fieldName, final char[] value) { // EventField creates defensive copies, which means we do not have to create (and destroy) // yet another defensive copy of the data array before submitting to EventField return new Ev...
[ "Component constructField(FieldCreationContext context);", "@Test\n public void createWithFieldBuilder() throws Exception {\n Document doc = new Document();\n\n // A convenient way of adding text content to a document is with a document builder.\n DocumentBuilder builder = new DocumentBuil...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional .Seen.AToServer seen_a_to_server = 15;
Seen.AToServer getSeenAToServer();
[ "Seen.ServerToB getSeenServerToB();", "private void setSeenAToServer(Seen.AToServer value) {\n if (value == null) {\n throw new NullPointerException();\n }\n req_ = value;\n reqCase_ = 15;\n }", "private void mergeSeenAToServer(Seen.AToServer value) {\n if (reqCase_ == 15 &&\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the value of the contractId property.
public void setContractId(int value) { this.contractId = value; }
[ "public void setContractId(Integer contractId) {\n this.contractId = contractId;\n }", "public void setContractId(Number value) {\n setAttributeInternal(CONTRACTID, value);\n }", "public void setContractID(int value) {\n this.contractID = value;\n }", "@Override\n\tpublic void se...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Check default behaviour when node tags are defined in grid mode tags are transferred to driver
@Test(groups={"ut"}) public void testCreateDefaultCapabilitiesWithNodeTagsInGridMode() { SeleniumTestsContext context = new SeleniumTestsContext(SeleniumTestsContextManager.getThreadContext()); context.setBrowser(BrowserType.CHROME.toString()); context.setNodeTags("foo,bar"); context.setRunMode("grid"); ...
[ "@Test(groups={\"ut\"})\r\n\tpublic void testCreateDefaultCapabilitiesWithNodeTagsInLocalMode() {\r\n\t\tSeleniumTestsContext context = new SeleniumTestsContext(SeleniumTestsContextManager.getThreadContext());\r\n\t\tcontext.setBrowser(BrowserType.CHROME.toString());\r\n\t\tcontext.setNodeTags(\"foo,bar\");\r\n\t\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Verify and update a Reprint
private void action_updateReprint(HttpServletRequest request, HttpServletResponse response) throws NumberFormatException, ParseException { try { Map<String, String> params = new HashMap<String, String>(); params.put("updateReprintNumber", Utils.checkString(request.getParameter("reprin...
[ "public void validateForCaptureRenewalBatchPrinter(Record inputRecord);", "private void updrec() {\n\t\tsavedata();\n\t\tcontractDetail.retrieve(stateVariable.getXwordn(), stateVariable.getXwabcd());\n\t\tnmfkpinds.setPgmInd36(! lastIO.isFound());\n\t\tnmfkpinds.setPgmInd66(isLastError());\n\t\t// BR00011 Product...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Getter method for contractsampletypeid. Meta Data Information (in progress): full name: sampleboxreseach.contractsampletypeid foreign key: contractsampletype.contractsampletypeid column size: 8 jdbc type returned by the driver: Types.BIGINT
public Long getContractsampletypeid() { return contractsampletypeid; }
[ "public SampletypeBean loadByPrimaryKey(Integer sampletypeid) throws SQLException\n {\n Connection c = null;\n PreparedStatement ps = null;\n try \n {\n c = getConnection();\n ps = c.prepareStatement(\"SELECT \" + ALL_FIELDS + \" FROM sampletype WHERE sampletype....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Check if the filter passed as parameter meets the requirements to be a mixed mode filter. The requirements must be: Contains a colon and a open braket (":[")
protected boolean checkMixedMode(String filterExpression) { if (filterExpression.contains(FilterTableDataField.COLON_OPEN_BRACKET)) { return true; } else { return false; } }
[ "public abstract boolean isFilterValid();", "public abstract boolean isFilterApplicable ();", "@Test\n public void testValidFilter() throws Exception {\n FilterParser parser = new FilterParser();\n\n TestClassFilter filter = parser.parse(\"author = ( jdoe, mmiller, []); status != (Draft,InWork,...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Compute the constraint floor value such that the problem solution doesn't change, using the rule max( bl/B^1li | B^1li > 0)
public double floorSensitivityAnalysisVectorB(int j) { int x = -1; for (int i = 0; i < numberOfConstraints; i++) { if (tableaux[i][j] > 0) if (x == -1) x = i; else if (tableaux[i][numberOfOriginalVariables + numberOfConstraints] / -tableaux...
[ "public int getMaxFloor();", "double getSoftUpperLimit();", "double getSoftLowerLimit();", "java.math.BigDecimal getWBMaximum();", "public int getMinFloor();", "double getMaximum1();", "java.math.BigDecimal getWagerMinimum();", "private static final double dMAX(double A, double B) { return ((A)>(B) ? ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Retrieve and return relation with name rname from HashMap; return null if it does not exist.
public Relation getRelation (String rname) { return relations.get(rname); }
[ "public Relation getRelation(String relationName);", "public RelationMapping tryGetRelationMapping(String name) throws ObjectNotFoundException {\n return nameToRelations.get(name);\n }", "public Relation getRelation(String name) {\n return relations.get(name);\n }", "protected String extra...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Propagate a TwoBody orbit from t0 to tf using Kepler's equation.
public void propagate(double t0, double tf, Printable pr, boolean print_switch) { double[] temp = new double[6]; // Determine step size double n = this.meanMotion(); double period = this.period(); double dt = period / steps; if ((t0 + dt) > tf) // check to see if we're going past tf { dt = tf - t0; ...
[ "public void passTwo()\n {\n for (int childIndex = 0; childIndex < children.size(); childIndex++)\n {\n children.get(childIndex).passTwo();\n }\n\n if (isRoot())\n return;\n\n jointWrench.sub(externalWrench);\n jointWrench.changeFrame(getFra...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
updates the status of next/previous buttons
private void updateNextPrevButtons() { if (rootView == null || pauseButton == null || player == null) { return; } if (player.hasNext()) { nextButton.setImageResource(R.drawable.fastforward_icon); nextButton.setEnabled(true); setImageAlpha(nextButton, 0xff); } else { nextButton.setImageResource(R...
[ "protected void updateButtonStates()\n\t{\n\t\tboolean isLastStep = isLastStep(currentStep);\n\t\tboolean isFirstStep = isFirstStep(currentStep);\n\t\t// Check whether current step data is valid or not\n\t\tboolean isValid = currentStep.onAdvance();\n\t\tthis.getCancelButton().setVisible(!isLastStep);\n\t\tthis.get...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Describes an extensible connector for JSDI
public interface Connector { /** * Default description of an argument that this connector can support */ public interface Argument extends Serializable { /** * A human readable description of the argument * * @return the description of the argument */ public String description(); /** * The ...
[ "public interface Connector {\n\n /**\n * Sets the URI the connector is associated to.\n *\n * @param uri the URI the connector is associated to.\n */\n void setURI(String uri);\n\n /**\n * Returns the URI the connector is associated to.\n *\n * @return the connector is associat...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Printing picture from panel At the bottom left side of printed document will be added lblPrintInfo label which will show current date, time and project name After printing, label's visibility will be set to false
public void actionPerformed(ActionEvent arg0) { try { lblPrintInfo = new JLabel(getPrintInfo(), JLabel.LEFT); lblPrintInfo.setFont(new Font("Calibri", Font.BOLD, 20)); lblPrintInfo.setOpaque(true); lblPrintInfo.setBackground(Color.white); lblPrintInfo.set...
[ "private void populatePrintContainer()\n\t{\n\t\ttry \n\t\t{\n\t\t\tthis.printIcon = new ImgIcon(\"resources/printer.png\", Scalr.Method.ULTRA_QUALITY, 150);\n\t\t\tthis.printIcon.addMouseListener(this);\n\t\t\tthis.printIcon.setAlignmentX(CENTER_ALIGNMENT);\n\t\t\tthis.printContainer.add(this.printIcon);\n\t\t} \n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the number of different types of this value. The possible types are here boolean/string/number/function/array/native/dom/other. Undef and null are ignored, except if they are the only value. Polymorphic and unknown values also count as 0.
public int typeSize() { if (isUnknown() || isPolymorphic()) return 0; int c = 0; if (!isNotBool()) c++; if (!isNotStr()) c++; if (!isNotNum()) c++; if (object_labels != null) { boolean is_function = false; ...
[ "public static int numTypes(){\n byte[] types = genAllTypes();\n return types.length;\n }", "public int getTypeElementCount() {\n\t\t\treturn this.TypeElements.size();\n\t\t}", "public int getTypeWithElementsCount() {\n\t\t\treturn this.TypeWithElements.size();\n\t\t}", "public int getTypeDat...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
~ Constructors /////////////////////////////////////////////////////////// Constructor for the DescriptorFilter object
public DescriptorFilter() { }
[ "public FilterDescriptor() {\n // create a empty instance.\n }", "public DescriptorFilter(List _descNames)\n {\n init(_descNames);\n }", "public DGFilter() {\n\t}", "public Filter () {\n\t\tsuper();\n\t}", "public Filter() {\n\n }", "public ObjectFilter()\n\t{\n\t}", "public abst...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Agafem els valors de "educationalInformation".
private void educationalInformation(final Node node) { Node intendedEndUserRole = DOMTreeUtility.getNode(node, "intendedEndUserRole"); if (intendedEndUserRole == null) { if (Constants.DEBUG_WARNINGS_LOW && Constants.DEBUG_METADATA) { System.out.println("[WARNING_LOW] " + "No hem t...
[ "public double getEUtilization() {\n return eUtilization;\n }", "public String getEdificio ()\r\n {\r\n return this.edificio;\r\n }", "public String getEducationalLevel() {\n return educationalLevel;\n }", "public java.lang.String getADEnv() {\r\r\n return ADEnv;\r\r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The interface for a EntityTable a lookup table for values. Entities are named values that can be substituted into a document.
public interface EntityTable extends Namespace { /************************************************************************ ** Lookup Operations: ************************************************************************/ /** Look up a name and return the corresponding Entity. */ public ActiveEntity getEntityB...
[ "public Table getEntitiesTable(){\n\t\treturn m_entities;\n\t}", "@DISPID(19) //= 0x13. The runtime will prefer the VTID if present\n @VTID(25)\n IList customizableEntitiesTables();", "public interface FromTableInterface {\n\n /**\n * Returns a unique name given to this table source. No other sources\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Allows users to put their own Actions in this ActionManager. Caution: If an Action fires, that was not created by this ActionManager listeners of this manager are not notified of the event! The Action to be put will be mapped with the given key.
public Action putAction(Object key, Action action) throws IllegalArgumentException { if (key == null) throw new IllegalArgumentException( "The ActionManager does not accept null keys!"); if (action == null) throw new IllegalArgumentException( "You cannot put null Actions in an ActionManager!"); ...
[ "public void registerAction(String key, Action action)\n\t{\n\t\tmActionMap.put(key, action);\n\t}", "public void registerAction(InteractiveObjectAction action){\n actions.put(action.id(), action);\n }", "void addAction(String id, Action action);", "public static void addHotKey(final int key, final ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Description: getStreamSourcesByID(String userID) takes in userID and returns a String with all links tagged to the userID, separated by a space. If a null or nonexisting userID is given, "" is returned Equivalence partitions: userID: [null], [any other string] _streamerToStreamSourcesMap: empty, userID exists Inputs ...
@Test public void testGetStreamSourcesByID_00() { try { Class c = Class.forName("InternalMemory"); Method method = c.getDeclaredMethod("getStreamSourcesByID", new Class[] { String.class }); method.setAccessible(true); Object i = c.newInstance(); ConcurrentHashMap<String, ArrayList<String>> map = new ...
[ "@Override\n\tpublic List<NewsSource> getAllNewsSourceByUserId(String userId) {\n\t\tLOG.info(\"NewsSourceServiceImpl :: Entering getAllNewsSourceByUserId method\");\n Optional<UserNewsSource> userNews = this.userRepository.findById(userId);\n\t\t\n\t\tif (userNews.isPresent()) {\n\t\t\treturn userNews.get().getN...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Delete the cAgenda by id.
public void delete(Long id) { log.debug("Request to delete CAgenda : {}", id); cAgendaRepository.deleteById(id); }
[ "public void delete(Long id) {\n log.debug(\"Request to delete Venda : {}\", id);\n vendaRepository.deleteById(id);\n }", "@DeleteMapping(\"/{id}\")\n public void deleteVenda(@PathVariable(\"id\") Long id) {\n vendaRepository.deleteById(id);\n }", "@Override\r\n public void deleteAppoin...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
m2 Lt sin(tetta_t) + Vxc m1 + m2
public double getVY1(double Lt, double tetta_t) { return minusM2 * Lt * sin(tetta_t) + Vyc; }
[ "public double getVY2(double Lt, double tetta_t) {\n return plusM1 * Lt * sin(tetta_t) + Vyc;\n }", "public double getVX2(double Lt, double tetta_t) {\n return plusM1 * Lt * cos(tetta_t) + Vxc;\n }", "public double getY2(double L, double tetta) {\n return plusM1 * L * sin(tetta) + yc;...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ ======Testing hasA()======== System.out.println("/======Testing hasA()========"); System.out.println("cat, a: " + hasA("cat","a"));// true System.out.println("ct, y: "+ hasA("ct","y"));// false System.out.println("sdsdsct, s: "+ hasA("sdsdsct","s"));// true System.out.println("dogofof, o: "+ hasA("dogofof","o"));// t...
public static void main( String[] args ) { System.out.println("/======Testing firstVowel()========"); System.out.println("cat: " + firstVowel("cat"));// a System.out.println("kosoosa: " + firstVowel("kosoosa"));// o System.out.println("bird: " + firstVowel("bird"));// i System.out.println("forest: " + firstVo...
[ "static void test_containsVowel() {\n\n String park = new String( \"I went to the park\" );\n String capConsonants = new String( \"QWRTYPLKJHGFDSZXCVBNM\" );\n String lowerConsonants = new String( \"qwrtyplkjhgfdszxcvbnm\" );\n\n\n System.out.println( \"\\nTESTS FOR containsVowel...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the array index for the specified CalibratedAxis. This index can be used in other Axes methods for looking up lengths, etc... This method can also be used as an existence check for the target CalibratedAxis.
int getAxisIndex(final CalibratedAxis axis);
[ "CalibratedAxis getAxis(AxisType axisType);", "private int getArrayIndex() {\n\t\tswitch (getId()) {\n\t\tcase 3493:\n\t\t\treturn Recipe_For_Disaster.AGRITH_NA_NA_INDEX;\n\t\tcase 3494:\n\t\t\treturn Recipe_For_Disaster.FLAMBEED_INDEX;\n\t\tcase 3495:\n\t\t\treturn Recipe_For_Disaster.KARAMEL_INDEX;\n\t\tcase 34...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Construct an HMM with default convergence precision being 1e6 and maximal number of iterations being 1000.
public HMM(int N, int M) { this.N = N; this.M = M; pi = new double[N]; for (int i = 0; i < N; i++) { pi[i] = 0; } A = new double[N][]; for (int i = 0; i < N; i++) { A[i] = new double[N]; for (int j = 0; j < N; j++) A[i][j] = 0; } B = new double[N][]; for (int i = 0; i < N; i++) { B[i...
[ "public Hmm(int numStates, int numOutputs,\n\t int state[][], int output[][]) {\n\n\t// your code here\n\n }", "public void estimateParameter(){\r\n int endTime=o.length;\r\n int N=hmm.stateCount;\r\n double p[][][]=new double[endTime][N][N];\r\n for (int t=0;t<endTime;++t){\r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Hash Table Functions Obtain the current load factor (entries / table size).
public double loadFactor() { return entries/(double)table.length; }
[ "public double loadFactor() {\r\n return (double)size / (double)htable.length;\r\n }", "public synchronized float getLoadFactor() {\n return (float)entries / (float)slots;\n }", "public double getCurrentLoadFactor()\n {\n \treturn ((double) this.getItemCount() / (double) tableSize);\n }...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Option 4: Select a culture category and randomly generate a dish.
private static void getRandomDish(Scanner keyboard, File file, ArrayList<String> categoryList, ArrayList<String> dishList) throws FileNotFoundException { boolean satisfy; String changeCategory = ""; do { File childFile = getChildFile(keyboard, ...
[ "public static Ally getRandomDem () {\n return democrat[(int) (Math.random() * democrat.length)];\n }", "Question getRandomQuestion(List<QuestionType> questionTypes);", "private void chooseBreedToBeIdentified() {\n Random r = new Random();\n int questionBreedIndex = r.nextInt(3);\n\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets if this is the battle's first turn.
public void isFirstTurn(boolean first) { firstTurn = first; }
[ "public boolean isFirstTurn()\n\t{\n\t\treturn firstTurn;\n\t}", "public void assignFirstTurn() {\n\t\tif (player1.getHost()){\n\t\t\tRandom r = new Random();\n\t\t int chance = r.nextInt(2);\n\t\t if (chance == 1) {\n\t\t \tplayer1.setTurn(true);\n\t\t \t//tell other player to set turn false\n\t\t ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Stores a MOVELINK from gold annotations.
public void storeMovelink(Doc document, Element spatialRelationEl) throws IOException { String trigger = spatialRelationEl.getAttribute("trigger"); String mover = spatialRelationEl.getAttribute("mover"); String source = spatialRelationEl.getAttribute("source"); List<String> midPoint = ge...
[ "public void storeMovelink(Doc document, SpatialRelation sr, SpatialElement triggerSE, SpatialElement moverSE, SpatialElement otherSE, String otherSERole) throws IOException {\n if (otherSE == null)\n return;\n \n //a check that trigger, mover and other element are in the same senten...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
A method to get a single profile object from a JSONObject to show the stats.
public static Profile parseSingleProfile(JSONObject jsonProfile) throws JSONException { // Create a new Profile object and fill the attributes from the API in. Profile profile = new Profile(jsonProfile.getString("name")); profile.setIcon(jsonProfile.getString("icon")); profile.setUserna...
[ "Profile getProfile( String profileId );", "public static Profile parseProfile(String jsonString) throws JSONException {\n\t\tProfile.Builder mendeleyProfile = new Profile.Builder();\n\t\t\n\t\tJSONObject profileObject = new JSONObject(jsonString);\n\t\t \n\t\tfor (@SuppressWarnings(\"unchecked\") Iterator<String...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Merges the 2 provided arraylist, sorts it and returns the sorted arraylist
public List<Integer> merge(List<Integer> list1, List<Integer> list2) { int x = 0; int y = 0; List<Integer> sortedList = new ArrayList<>(list1.size() + list2.size()); while (x < list1.size() && y < list2.size()) { if (list1.get(x) < list2.get(y)) { sortedList.add(list1.get(x)); x++; } else ...
[ "private static int[] merge (int[] list1, int[] list2) {\n //Creates an array twice as long as the ones beinged merged\n int[] mergedList = new int[list1.length+list2.length];\n int i = 0, j = 0;\n \n //Loops as long as both lists have unsorted values\n while (i < list1.le...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__Entity__Group_4__0" $ANTLR start "rule__Entity__Group_4__0__Impl" InternalDomain.g:1065:1: rule__Entity__Group_4__0__Impl : ( 'fields' ) ;
public final void rule__Entity__Group_4__0__Impl() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalDomain.g:1069:1: ( ( 'fields' ) ) // InternalDomain.g:1070:1: ( 'fields' ) { // InternalDomain.g:1070:1: ( 'fiel...
[ "public final void rule__Field__Group_4__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDomain.g:1813:1: ( rule__Field__Group_4__1__Impl )\n // InternalDomain.g:1814:2: rule__Field__Group_4__1__Impl\n {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
return list with voice names
public ArrayList<String> getVoices() { //TODO: check if folder exists before sending list return voiceList; }
[ "public static void listAllVoices() {\n System.out.println();\n System.out.println(\"All voices available:\"); \n VoiceManager voiceManager = VoiceManager.getInstance();\n Voice[] voices = voiceManager.getVoices();\n for (int i = 0; i < voices.length; i++) {\n Sy...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set the operation to use when saving this entry to DBMS format
public void SetOperation(String operation) { m_operation = new String(operation); }
[ "public void setOperation (String Operation);", "public static void setDatabaseOperation(DatabaseOperation db) {\n\t\tdatabaseOperation = db;\n\t}", "public void setOperation(java.lang.String operation)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Melakukan cloning untuk menciptakan objek Restaurant baru.
public Restaurant clone() { return new Restaurant(this); }
[ "Restaurant setRestaurant(Restaurant modifiedRest);", "public Restaurant(Restaurant oldres){\n this.name = new String(oldres.name);\n this.address = new String(oldres.address);\n this.latitude = oldres.latitude;\n this.longitude = oldres.longitude;\n this.rating = oldres.rating;...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates and returns a Constructor for a class in the com.ardais.bigr.iltds.op package with the same name as opName. The constructor must take HttpServletRequest, HttpServletResponse and ServletContext as parameters, in that order. If such a constructor is not found, then null is returned.
private Constructor reflectiveDispatch(String opName) { try { Class opClass = Class.forName("com.ardais.bigr.iltds.op." + opName); Class constructorArgs[] = { Class.forName("javax.servlet.http.HttpServletRequest"), Class.forName("javax.servlet.http.HttpServletResponse"), ...
[ "public Operation createOperation(String symbol) throws InstantiationException, IllegalAccessException {\n checkForNull(symbol);\n\n if (map.containsKey(symbol)) {\n return (Operation) map.get(symbol).newInstance();\n } else {\n return null;\n }\n }", "public i...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test declining retrieving UserAttribute for null userId.
@Test public void retrieveUserAttributeNullUser() throws Exception { try { retrieveAttribute(null, "attribute"); EscidocRestSoapTestBase.failMissingException(MissingMethodParameterException.class); } catch (final Exception e) { EscidocRestSoapTestBa...
[ "@Test\r\n public void retrieveUserAttributeNullAttribute() throws Exception {\r\n try {\r\n retrieveAttribute(USER_TEST, null);\r\n EscidocRestSoapTestBase.failMissingException(MissingMethodParameterException.class);\r\n }\r\n catch (final Exception e) {\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create a "max" aggregate using the specified selection.
<T> StrictQueryValue<T> max(StrictQueryValue<T> selection);
[ "public static FunctionExpression max(Expression expression)\n {\n checkNull( expression, \"Expression\" );\n\n FunctionExpression returnAggregate = new FunctionExpression();\n returnAggregate.name = \"max\";\n returnAggregate.expression = expression;\n return returnAggregate;\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the identifiers declared in rule constrainInterpretation02_PATH_2_GOAL_7_COMPONENT_txtParcela2_20
private String[] getDeclaredIdentifiers_constrainInterpretation02_PATH_2_GOAL_7_COMPONENT_txtParcela2_20() { return identifiers_constrainInterpretation02_PATH_2_GOAL_7_COMPONENT_txtParcela2_20; }
[ "private String[] getDeclaredIdentifiers_constrainInterpretation02_PATH_1_GOAL_3_COMPONENT_txtParcela2_7() {\r\n return identifiers_constrainInterpretation02_PATH_1_GOAL_3_COMPONENT_txtParcela2_7;\r\n }", "private String[] getDeclaredIdentifiers_constrainInterpretation01_PATH_2_GOAL_7_COMPONENT_txtParc...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test of setData method, of class DataItem.
@Test public void testSetData() { System.out.println("setData"); Element node = null; DataItem instance = new DataItemImpl(); instance.setData(node); // TODO review the generated test code and remove the default call to fail. fail("The test case is a prototype."); ...
[ "public void setData(GenericItemType data) {\n this.data = data;\n }", "public void setData(Object data) {\r\n this.data = data;\r\n }", "public void setData(T data) {\n\t this.data = data;\n\t }", "@Test\n public void testSetData() {\n List<DistrictData> data = Arrays....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the CRM US Rep persistence.
public CrmUsRepPersistence getCrmUsRepPersistence() { return crmUsRepPersistence; }
[ "public CrmStateRepPersistence getCrmStateRepPersistence() {\n\t\treturn crmStateRepPersistence;\n\t}", "public WFMS_Requisition_AuditPersistence getWFMS_Requisition_AuditPersistence() {\n\t\treturn wfms_Requisition_AuditPersistence;\n\t}", "public WFMS_RequisitionPersistence getWFMS_RequisitionPersistence() {\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Initialize the RecallServiceManager instance before using
private void initializeRecallServiceManager() { }
[ "private void initService() {\r\n\t}", "void initPhoneListen() {\n \tfinal TelephonyManager tm = (TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE); \r\n assert(tm != null); //gets the ref to existing TM. We don't need the service to globally keep it\r\n tm.listen(Detector, PhoneStateL...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
To get all the invoices with bill for given org Id
public List<InvoiceListVo> getAllInvoicesWithBillsForOrg(Integer orgId, Boolean isInvoiceWithBills) throws ApplicationException { logger.info("To getAllInvoicesWithBillsForOrg :: " + orgId + "isInvoiceWithBills::" + isInvoiceWithBills); List<InvoiceListVo> listVos = null; if (orgId != null && isInvoiceWithBill...
[ "public List getFiAvailableInvoices(FiAvailableInvoice fiAvailableInvoice);", "java.util.List<x0101.oecdStandardAuditFileTaxPT1.SourceDocumentsDocument.SourceDocuments.SalesInvoices.Invoice> getInvoiceList();", "public Collection<? extends Invoice> getAllInvoices(String gln, OrderStatus status) throws GlobalBro...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
On error, set select contacts view to fail to finish loading mode
@Override public void onErrorResponse(VolleyError error) { Log.d("CONTACTS", error.toString()); selectContactView.onFailToFinishLoading(); }
[ "@UI(UI_ALERT_ERROR)\n\tprivate void alertError() {\n\t\t\n\t\tlistView.setEmptyView(alertReposError);\n\t\talertReposError.setVisibility(View.VISIBLE);\n\t\t\n\t\tlistView.setAdapter(new ArrayAdapter<Void>(this, 0));\n\t\tstopSyncAnimation();\n\t}", "private void preloadErrorView() {\n if (!isInEditMode()...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the totalValidate value for this My_AccountRes.
public void setTotalValidate(java.lang.String totalValidate) { this.totalValidate = totalValidate; }
[ "public java.lang.String getTotalValidate() {\r\n return totalValidate;\r\n }", "@Override\n\tpublic void setTotal(int total) {\n\t\t_esfMatchResult.setTotal(total);\n\t}", "public void setTotalResults(java.math.BigInteger totalResults)\n {\n synchronized (monitor())\n {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
All fill rules can be converted when being provided as text.
@Test public void allFillRulesAreCorrectlyParsed() throws SVGException { for (final FillRuleMapping value : FillRuleMapping.values()) { cut.setText(value.getName()); assertEquals(value.getRule(), cut.getValue()); assertNull(cut.getUnit()); } }
[ "String rulesAsText();", "public final EObject ruleFillAllTextFields() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_0=null;\n Token otherlv_1=null;\n Token lv_input_2_0=null;\n Token otherlv_3=null;\n\n enterRule(); \n \n tr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the value of the 'field231' field
public java.lang.CharSequence getField231() { return field231; }
[ "public java.lang.CharSequence getField231() {\n return field231;\n }", "java.lang.String getField1001();", "public java.lang.CharSequence getField123() {\n return field123;\n }", "public java.lang.CharSequence getField123() {\n return field123;\n }", "java.lang.String getField1231();", "j...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column goods_transition.flight_no
public void setFlightNo(String flightNo) { this.flightNo = flightNo; }
[ "public void setNumber(int flightNumber)\n {\n this.flightNumber = flightNumber;\n }", "public void setFlightNumber(int flightNumber) {\r\n this.flightNumber = flightNumber;\r\n }", "public void setFlightId(int flightId) {\n this.flightId = flightId;\n }", "public void setFlightNumber...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Initializes the ID caches of the project with the given mappings.
void initCaches(Map<EObject, String> eObjectToIdMap, Map<String, EObject> idToEObjectMap);
[ "public void populateIdMaps() {\r\n\t\ttry {\r\n\t\t\tontologyMetadataManager.populateIdMaps();\r\n\t\t} catch (Exception e) {\r\n\t\t\tlog\r\n\t\t\t\t\t.error(\"Unable to re-populate ID Maps. See stack trace below for details.\");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "static void init_mappings()\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the fecha creacion.
public Timestamp getFechaCreacion() { return this.fechaCreacion; }
[ "public Date getfCreacion() {\r\n return fCreacion;\r\n }", "public Date getCreacion() {\r\n return creacion;\r\n }", "public Date getFecCreacion() {\n\t\treturn fecCreacion;\n\t}", "@Override\n public java.util.Date getCreateDate() {\n return _partido.getCreateDate();\n }", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set value of RequiredMsg
public final void setRequiredMsg(java.lang.String requiredmsg) { setRequiredMsg(getContext(), requiredmsg); }
[ "public final void setRequiredMsg(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String requiredmsg)\r\n\t{\r\n\t\tgetMendixObject().setValue(context, MemberNames.RequiredMsg.toString(), requiredmsg);\r\n\t}", "public io.confluent.developer.InterceptTest.Builder setReqMessage(java.lang.String va...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the list of byte[] startkeys for any .META. regions hosted on the indicated server.
public List<byte[]> listMetaRegionsForServer(HServerAddress server) { List<byte[]> metas = new ArrayList<byte[]>(); for ( MetaRegion region : onlineMetaRegions.values() ) { if (server.equals(region.getServer())) { metas.add(region.getStartKey()); } } return metas; }
[ "NavigableMap<byte[], MetaRegion> getAllMetaRegionLocations() {\n NavigableMap<byte[], MetaRegion> m =\n new TreeMap<byte[], MetaRegion>(Bytes.BYTES_COMPARATOR);\n m.putAll(metaRegionLocationsBeforeScan);\n m.putAll(onlineMetaRegions);\n return m;\n }", "public Set<Object> getKeysByServerName(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ add ValueMaps of type Output only
private void addOutput(ValueMap outputs) { // if(!inputs.contains(outputs)) { ValueMap v = new ValueMap(); Collection i = outputs.getVariables(); Iterator it = i.iterator(); while (it.hasNext()) { ParameterImpl p = (ParameterImpl) it.next(); if (p.isType(OWLS.Process.Output)) { v.setValu...
[ "java.util.Map<String, com.google.protobuf.Value>\n getOutputMap();", "public MessageMapList getOutputMap();", "private LinkedHashMap<String, Type> scalarMappingODU() {\r\n\t\tLinkedHashMap<String, Type> scalarMapping = new LinkedHashMap<String, Type>();\r\n\t\tscalarMapping.put(DaoConstants.MAP_ODUID, Sta...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Tests LoopisReadOnly() for accuracy. It verifies LoopisReadOnly() is correct.
public void testisReadOnly() { assertTrue("Failed to return the value correctly.", loopReadOnly.isReadOnly()); }
[ "private void checkLoop(Loop loop, String loopElement, String description, boolean readOnly) {\n // Check loop element.\n assertEquals(\"The loop element property is incorrect.\", loop.getLoopElement(), loopElement);\n\n // Check description.\n assertEquals(\"The description property is ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The name of the S3 CloudWatch Eventbased observation.
public void setS3EventName(String s3EventName) { this.s3EventName = s3EventName; }
[ "public String getS3EventName() {\n return this.s3EventName;\n }", "public static String getName( AuditEvent event )\n {\n return getName( event.getSourceName() );\n }", "public String getCloudWatchEventSource() {\n return this.cloudWatchEventSource;\n }", "public String getAu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set the internal molecule of this map based on the one passed.
void setMolecules(IMoleculesMap molecules);
[ "void setMolecule(String mol, Object conc);", "public void putMoleculeInCilia(){\n\t\t\tcilia.setOdorantMolecule(molecule);\n\t\t}", "public void setMap(String mn){\r\n mapName = mn;\r\n currentMap = new ImageIcon(mapName);\r\n }", "MapTile set(int x, int y, MapTile.Instance tile);", "public void set...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Snaps the player to the grid, where the grid is player x, y 2 % 16 == 0 Will move a maximum of 0.1f in each direction. Will not change the direction the player is going.
public void snapToGrid(Player pl) { // Find the closest spot if(pl.getVelocity().x == 0 && pl.getLocation().x - 2 % 16 != 0) { float locationX = Math.round(pl.getLocation().x / 16f); float preferredX = (locationX * 16) + 2f; float move = preferredX - pl.getLocation().x; if(Math.abs(move) > 0.1f...
[ "public void snapToGrid() {\n\t\tx = eng.snapToGridX(x,Math.abs(xspeed*gamespeed-0.001));\n\t\ty = eng.snapToGridY(y,Math.abs(yspeed*gamespeed-0.001));\n\t}", "protected void snapToGrid() {\r\n // Snap bombs to the grid on the map\r\n float x = Math.round(this.position.getX() / 32) * 32;\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Fills Z array for given string str
private int[] getZarr(String str) { int[] Z = new int[str.length()]; int n = str.length(); // [L,R] make a window which matches with // prefix of s int L = 0, R = 0; for (int i = 1; i < n; ++i) { // if i>R nothing matches so we will calculate. /...
[ "public void initialize(String input) {\n for (int i = 0; i < input.length(); ++i) {\n char c = input.charAt(i);\n cells.add(c);\n }\n }", "public void init(String str) {\n str = LEADING_ZEROES.matcher(str).replaceFirst(\"\");\n if (str.isEmpty()) return;\n\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__OpOther__Alternatives_6_1" $ANTLR start "rule__OpAdd__Alternatives" ../org.xtext.example.helloxcore.ui/srcgen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:2416:1: rule__OpAdd__Alternatives : ( ( '+' ) | ( '' ) );
public final void rule__OpAdd__Alternatives() throws RecognitionException { int stackSize = keepStackSize(); try { // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:2420:1: ( ( '+' ) | ( '-' ) ) ...
[ "public final void rule__OpAdd__Alternatives() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:2740:1: ( ( '+' ) | ( '-' ) )\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
End getHighScoreStringMsg method This method gets the scores by running the methods loadScoreFile, sortScores, and removeLowScores. This gets the saved past names and high scores from the file, sorts this information by score from highest score to lowest score, and then removes all scores but the 10 highest scores.
public ArrayList<HighScore> getScores() { loadScoreFile(); sortScores(); removeLowScores(); return savedHighScoresList; }
[ "public void loadScores() {\n try {\n File f = new File(filePath, highScores);\n if(!f.isFile()){\n createSaveData();\n }\n BufferedReader reader = new BufferedReader(new InputStreamReader(new FileInputStream(f)));\n\n topScores.clear();\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Si un super utilisateur est connecte. On peut pas modifier si on est des super utilisateurs ou bien erreur de sync
public static boolean verifModif() { if (! compteActuel.equals(superUserConnecte())) { if (superUserConnecte() == null) return true; if (compteActuel.getDroit() == Droit.SUPERUTILISATEUR) { return false; } else return true; } else return true; }
[ "void gestionLogique() {\n // les souris autour d'un chat sont désactivé\n \n }", "@Before\n\tstatic void setConnectedUser() {\n\t\tif (Security.isConnected()) {\n\t\t\tCache.set(session.getId(), \"15mn\");\n\t\t}\n\t}", "public void connexionServeur() {\r\n\r\n\t\tString serverIp = JOptionPane...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Looks at the HTML information of the URL cur It will return the next a href in that HTML that is valid and has not already been seen. If there are none, it will return a special empty URL error_url;
public static URL nextURL(URL cur){ Matcher m = P.matcher(retrieveHTML(cur)); while(m.find()){ String tempURL = m.group(1); if(!(visited.contains(tempURL)) || visited.contains(tempURL + "/") || visited.contains(tempURL.substring(0, tempURL.length(...
[ "private static String getURL() {\n\t\t// TODO Auto-generated method stub\n\t\tif(valiedfirstpage){\n\t\t\tSystem.out.println(\"Please Enter a URL\");\n\t\t}\n\t\tif(!valiedfirstpage){\n\t\t\tSystem.out.println(\"The previous URL is faulty.Please Enter another URL\");\n\t\t}\n\t\tstdin = new Scanner(new BufferedInp...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
An immutable clientside representation of StaticSiteCustomDomainOverviewArmResource.
public interface StaticSiteCustomDomainOverviewArmResource { /** * Gets the id property: Fully qualified resource Id for the resource. * * @return the id value. */ String id(); /** * Gets the name property: The name of the resource. * * @return the name value. */ ...
[ "StaticSiteCustomDomainOverviewArmResourceInner innerModel();", "StaticSiteCustomDomainOverviewArmResource.Update update();", "interface DefinitionStages {\n /** The first stage of the StaticSiteCustomDomainOverviewArmResource definition. */\n interface Blank extends WithParentResource {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Elimina una clase al objeto.
public void removeClase(Clase clase){ for(ClaseObjeto c: getClases()){ if (c.getClase().equals(clase)){ this.removeClase(c); break; } } }
[ "public void removeClase(ClaseObjeto claseObjeto){\r\n\t\tgetClases().remove(claseObjeto);\r\n\t\tclaseObjeto.setObjeto(null);\r\n\t}", "public void eliminarObjetos()\n {\n ArrayList<Item> vacio = new ArrayList<>();\n objetos = vacio;\n }", "public boolean remove(objectType obj);", "public...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
App interface that every stand alone application should implement for the Utils class to run the application using it's runApp method
public interface App { /** * The application logic that is to be * executed by the stand alone application * * @param objects */ public abstract void runApp(Object... objects); }
[ "Application createApplication();", "public abstract void runApplication(Application application);", "void launchApp();", "protected abstract Application createApplication();", "public App()\r\n\t{\r\n\t\tm_appMain = this;\r\n\t}", "public ParkingApp() {\n runApp();\n }", "public static void l...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the ticksVisible attribute of the PlotAxis object
public void setTicksVisible(boolean v) { ticks.setVisible(v); }
[ "public void setXAxisVisible(boolean visible) {\n this.getBarChart().setXAxisEnabled(visible);\n this.getBarChart().setXAxisLabelEnabled(false);\n }", "public void setMinorTickMarksVisible(boolean visible) {showMinorTickMarks = visible;}", "public boolean getTicksVisible() {\n return ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the value of the 'Model Spaces' attribute. If the meaning of the 'Model Spaces' attribute isn't clear, there really should be more of a description here...
Map<TypedModel, ModelSpace> getModelSpaces();
[ "public Space getSpace() {\r\n\t\treturn this.space;\r\n\t}", "public ArrayList<Space> getSpaces()\r\n\t{\r\n\t\treturn new ArrayList<Space>(_spaces.values());\r\n\t}", "public Space getSpace() {\n return space;\n }", "public String getSPACE_TYPE() {\n return SPACE_TYPE;\n }", "public St...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method to poll the instrumentation memory for a counter with the given name. The polling period is bounded by the timeLimit argument.
protected Monitor pollFor(Map<String, Monitor> map, String name, long timeLimit) throws MonitorException { Monitor monitor = null; log("polling for: " + lvmid + "," + name + " "); pollForEntry = nextEntry; while ((monitor = map.get(name)) == null) { lo...
[ "public LoadShedder(final int maxLimit, final double intervalMinutes, final boolean warnOnLimit, String name) {\n\t\tthis.maxLimit = maxLimit;\n\t\tthis.intervalMinutes = intervalMinutes;\n\t\tthis.intervalMillis = (long)(intervalMinutes * 1000.0 * 60.0);\n\t\tthis.warnOnLimit = warnOnLimit;\n\t\tthis.name = name;\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Determine the block size to prevent out of memory errors
private int determineBlockSize(long availableMemory, int threadCount) { // The maximum number of records that any child actor will have to hold in memory int maxBlockLength = 100000; int samRecordBytes = 200; // Calculate the largest block length that can be used long blockLength = (long)...
[ "public int getSizeOfBlock() {\n return sizeOfBlock;\n }", "public int getMaximumBlockSize()\n {\n return bouquet.getSheaf().getPageSize() - Pack.BLOCK_PAGE_HEADER_SIZE - Pack.BLOCK_HEADER_SIZE;\n }", "int getSizeMb();", "int getSizeInMB();", "public abstract int blockLength();", "p...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Instantiates a new plan.
public Plan(){ tasks = new LinkedList<Task>(); }
[ "Plan createPlan();", "public Plan() {\n }", "public CarryPlan()\r\n\t{\r\n\t\tgetLogger().info(\"Created: \"+this);\r\n\t}", "public PlanManager() {\n\t\tsuper();\n\t}", "public PlanDeTravail ()\n {\n }", "public RatePlan (String planName, String planType, int monthlyFee, int customerAmount){\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Injects the state resolver.
@Inject public void setStateResolver(StateResolver stateResolver) { this.stateResolver = stateResolver; }
[ "public abstract void resolve();", "StateDeterminationStrategyRegistry createStateDeterminationStrategyRegistry();", "void resolve();", "public static interface Resolver {\n\t\t\n\t\t/**\n\t\t * Registers an injection manager with a resolver.\n\t\t * \n\t\t * The resolver can asynchronously update the relatio...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Overriden toString method converts a Parttime employee to its formatted string representation
@Override public String toString() { // Doe,Jane::ECE::8/1/2020::Payment $0.00::PART TIME::Hourly Rate $39.00::Hours worked this period: 0 return super.toString() + String.format(IoFields.PARTTIME_EMPLOYEE_STRING, super.getFormattedPayment(), useFormatter(hourlyRate), hours); }
[ "public String toString() {\n\t\tString formatEmployee = \"\";\n\t\tformatEmployee = employeeNum + \"\\n\" + lastName + \", \" + firstName + \" \" + middleInitial + \".\\n\" + \"Gender: \"\n\t\t\t\t+ gender + \"\\nStatus: \";\n\n\t\tif (fulltime) {\n\t\t\tformatEmployee = formatEmployee + \"Full Time\\n\";\n\t\t} e...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Now opening a Login window for getting User ID and Password. It also displays connection settings as an advanced option.
public static final void showLoginWindow() throws IOException { final JFrame loginFrame = new JFrame("Login"); loginFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); // Setting up LOGIN FRAME icon Toolkit kit = Toolkit.getDefaultToolkit(); Image loginFrameIcon = kit.getImage("Icons/dialog-password.png"...
[ "public void login()\r\n\t{\r\n\t\tJTextField userName = new JTextField(5);\r\n\t\tJTextField password = new JTextField(5);\r\n\t\tJPanel login = new JPanel();\r\n\t\tlogin.setLayout(new GridLayout(2, 2));\r\n\t\tlogin.add(new JLabel(\"Username\"));\r\n\t\tlogin.add(userName);\r\n\t\tlogin.add(new JLabel(\"password...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checks for route nodes that are declared but never used and throws an XmlException if one is discovered.
private void checkForOrphanedRouteNodes(Node documentTypeNode, Node routeNodesNode) throws XPathExpressionException, XmlException { NodeList nodesInPath = (NodeList) getXPath().evaluate("./routePaths/routePath//*/@name", documentTypeNode, XPathConstants.NODESET); List<String> nodeNamesInPath = new Array...
[ "public void testNonExistantSourceLocator() throws Exception {\n\n // check resolvement for a sourceLocator\n // that is not part of the map\n super.checkNonExistantSourceLocator();\n \n // occurrence should be null\n assertNull(tag.getOccurrence());\n\n }", "public vo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }