query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
Adds a point to the stroke | public void addPoint(Point point) {
if (isValidStroke) {
points.add(point);
}
} | [
"public void addPoint(Point p) {\r\n line.add(p);\r\n }",
"private void addPointToStroke(float x, float y)\n\t{\n\t\tstrokePointCount++;\n\t\tlatestStroke.triangleStrip.addPoint(this, x, y, true);\n\t}",
"private void addPoint( LatLng point ) {\n \t\tthis.addMarker( point );\n \t\tthis.commitPolygon();\n \t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This adds a property descriptor for the Point Reverse feature. | protected void addPointReversePropertyDescriptor(Object object) {
itemPropertyDescriptors.add
(createItemPropertyDescriptor
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
getString("_UI_Track_pointReverse_feature"),
getString("_UI_PropertyDescri... | [
"protected void addReversePropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add\n\t\t\t(createItemPropertyDescriptor\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\n\t\t\t\t getResourceLocator(),\n\t\t\t\t getString(\"_UI_ConnectionReference_reverse_feature\"),\n\t\t\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Perform an initial save of a previously unsaved HrCOperationSalary entity. All subsequent persist actions of this entity should use the update() method. | public void save(HrCOperationSalary entity); | [
"public HrCOperationSalary update(HrCOperationSalary entity);",
"public void setSalary(double salary) {\n this.salary = salary;\n }",
"@Override\n\t@Transactional\n\tpublic void save(RentalRepair rentalRepair) {\n\t\t \n\t\trentalRepairDao.save(rentalRepair);\n\t\t\n\t}",
"public void setSalary(doub... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ BEHAVIOR Implementation of the "object" equals method. Composer objects are equal if their primary keys are equal. | @Override
public boolean equals(Object obj) {
return obj instanceof Composer
&& (getComposerName().equals(((Composer) obj).getComposerName()));
} | [
"@Override\n public boolean equals(Object obj) {\n if (obj instanceof PooledConnection) {\n return realConnection.hashCode() == ((PooledConnection) obj).realConnection.hashCode();\n } else if (obj instanceof Connection) {\n return hashCode == obj.hashCode();\n } else {\n return false;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The second time a repository is setup and its on the correct branch, no changes should have to be made. | @Test
public void testInitGitSecondClean() throws Exception {
Ref workRef = git.branchCreate()
.setName(WORK_BRANCH)
.call();
source.initialize(directory, ORIGIN);
assertNotNull("Branch must exist after init", git.getRepository().resolve(WORK_BRANCH));
Ref headRef = git.getRepository().getRef(Constan... | [
"void reinitializeRepo(String defaultBranchName);",
"public void gitRepositoryInit() {\n\n try {\n gitAPI.initRepository(this.getRepositoryPath());\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }",
"boolean ensureRepoMaster();",
"boolean isBareRepos... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column department_info.parent_department | public void setParentDepartment(String parentDepartment) {
this.parentDepartment = parentDepartment == null ? null : parentDepartment.trim();
} | [
"public void setParentDeptId(Long parentDeptId) {\n this.parentDeptId = parentDeptId;\n }",
"public String getParentDepartment() {\n\t\treturn parentDepartment;\n\t}",
"public Long getParentDeptId() {\n return parentDeptId;\n }",
"public void setDepartmentId(int value) {\n this.depa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Parses the provided text for HTML links. | public static ArrayList<URL> listLinks(URL baseURL, String htmlText) {
// list to store links
ArrayList<URL> links = new ArrayList<URL>();
// compile string into regular expression
Pattern p = Pattern.compile(REGEX);
// match provided text against regular expression
Mat... | [
"public static String[] parseLinks(String text) {\n\n\t\tif (text == null || \"\".equals(text))\n\t\t\treturn new String[] { \"\", \"\" };\n\n\t\tString linkPath = null;\n\t\tString linkText = null;\n\t\t// Get the link text\n\n\t\t// Pattern lnkPattern = Pattern.compile(\"(.*?)\\\\[\\\\[(.*?)\\\\]\\\\](.*)\");\n\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Marks the task as done. A new copy of the object is returned. | public Task markDone() {
return new Task(this.description, this.type, true, this.date);
} | [
"Task setDone() {\n return new Task(this.body, true);\n }",
"public void markAsDone() {\n\t\tdoneTheTask = true;\n\t}",
"public ToDoTask markAsDone() {\n return new ToDoTask(!isDone, getDescription(), taskPriority);\n }",
"public void taskDone() {\n System.out.println(\"check\")... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Disables the menus behavior. | public void disableMenus() {
mMenuEnabled = false;
} | [
"private void deshabilitarMenus(){\n mConfiguracion.setEnabled(false);\n mSorteo.setEnabled(false);\n bLogOut.setEnabled(false);\n }",
"public void hideMenu() {\r\n\t\tresetNamedLayer();\r\n\t}",
"void hideMainMenu() {\n mainMenu.disable();\n mainMenuDisabled = true;\n }... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
commentGetHtmlEnd ueberprueft, ob der HTMLEndeTag auch so aufgebaut ist, wie es in der entsprechenden Methode vorgesehen ist. | @Test
public void commentGetHtmlEnd() {
// White-Box! Temporär mit NotNull-Test ersetzt
// assertEquals("</i></font><br />", comment.htmlEnd());
assertNotNull(comment.htmlStart());
} | [
"protected String getEndSection() {return \"</div></div>\";}",
"public JspTag getEndTag() {\n return this.endTag;\n }",
"void endTag(String tag) throws HTMLParseException;",
"String getLastHtml();",
"public static String cadenaEndDiv(){\n\t\tStringBuffer html = new StringBuffer();\n\t\thtml.append(\"</... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks if two material variants match. If this has no variant, matches any variant of the same material | public boolean matchesVariant(MaterialVariant variant) {
return this.variant.matchesVariant(variant);
} | [
"boolean matchesVariant(MaterialVariantId other);",
"default boolean matchesVariant(MaterialVariant other) {\n return matchesVariant(other.getVariant());\n }",
"default boolean matchesVariant(ItemStack stack) {\n return matchesVariant(IMaterialItem.getMaterialFromStack(stack));\n }",
"public boolean s... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets value as attribute value for IDBULTO using the alias name Idbulto | public void setIdbulto(Number value)
{
setAttributeInternal(IDBULTO, value);
} | [
"public void setIdtipobulto(String value)\n {\n setAttributeInternal(IDTIPOBULTO, value);\n }",
"public void setAlias(java.lang.String alias)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (o... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns true if field abbreviation is set (has been assigned a value) and false otherwise | public boolean isSetAbbreviation() {
return this.abbreviation != null;
} | [
"public boolean isSetCpyAbbrName() {\n return this.cpyAbbrName != null;\n }",
"public boolean isSetCompany_abbr() {\n return this.company_abbr != null;\n }",
"boolean hasOfferAbbreviation();",
"boolean isSetBuildingName();",
"public boolean isSetField() {\r\n return this.field != null;\r\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ TODO: Wireshark knows 4 more IEEE80211_RADIOTAP_CHAN flags !! | public IEEE802dot11_RADIOTAP() {
order(BYTE_ORDER);
} | [
"private static String getContactTracingSetAdvertisingParametersCommand( boolean useRandomAddr) {\n\t\tStringBuffer sb = new StringBuffer();\n\t\tsb.append( String.format( \"%02x %04x \", HCI_Command.HCI_LE_Controller_OGF, HCI_Command.HCI_LE_Set_Advertising_Parameters_OCF));\n\t\t\n\t\tString advertisingInterval = ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method fits model with a given MultiDataSetIterator | void fit(MultiDataSetIterator iterator); | [
"void fit(DataSetIterator iterator);",
"void fit(MultiDataSet dataSet);",
"public void fit(DataSetIterator iterator) {\n featureMeanStd = null;\n batchCount = 0;\n labelbatchCount = 0;\n runningTotal = 0;\n labelRunningTotal = 0;\n INDArray theFeatures, theLabels;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
bool expand_inline_json = 5; | public boolean getExpandInlineJson() {
return expandInlineJson_;
} | [
"boolean getExpandInlineJson();",
"public Builder setExpandInlineJson(boolean value) {\n \n expandInlineJson_ = value;\n onChanged();\n return this;\n }",
"public boolean getExpandInlineJson() {\n return expandInlineJson_;\n }",
"public void enableFormatt... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "liter" $ANTLR start "comb_attr" parser/flatzinc/FlatzincFullExtWalker.g:492:1: comb_attr returns [CombinedAttribute ca] : ( ^( CA1 (ao= attr_op ) (ea= attribute )? ) | ^( CA2 (ao= attr_op )+ ea= attribute ) ); | public final CombinedAttribute comb_attr() throws RecognitionException {
CombinedAttribute ca = null;
AttributeOperator ao = null;
Attribute ea = null;
ArrayList<AttributeOperator> aos = new ArrayList<AttributeOperator>();
try {
// parser/flatzinc/FlatzincFullEx... | [
"public Attribute combine( Attribute attr )\n {\n // by default, no operation is done... the value of the combined attribute\n // is just the current value\n return this;\n }",
"public final FlatzincFullExtWalker.many_return many(ArrayList<Arc> in) throws RecognitionException {\n FlatzincFull... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
method to return the total amount of capacity with the given rooms. | public static int getTotalCapacity()
{
//returns total capacity.
return totalCapacity;
} | [
"private long getTotalRoomsCapacity(Hotel hotel) {\n return hotel.getRooms().stream()\n .filter(room -> !room.isDeleted())\n .collect(Collectors.summarizingInt(Room::getNumberOfAdults))\n .getSum();\n }",
"private int currentCapacity(){\n int total = 0... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the years in which this time series is valid. Doesn't really need to be a NavigableSet. This is a private method and you don't have to implement it if you don't want to. | private NavigableSet<Integer> validYears(int startYear, int endYear) {
NavigableSet<Integer> valid = new TreeSet<Integer>();
for (int i = startYear; i <= endYear; i++) {
if (this.years().contains(i)) {
valid.add(i);
}
}
return valid;
} | [
"public Collection<Number> years() {\n Collection<Number> allYears = new ArrayList<Number>();\n for (Integer i : this.keySet()) {\n allYears.add(i);\n }\n return allYears;\n }",
"public List<Integer> getCoveredYears() {\n if (startDate == null || endDate == null) {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
isIsosceles finds if exactly two sides are the same length | public boolean isIsosceles () {
if ((startSide1 == startSide2 || startSide1 == startSide3 || startSide2 == startSide3) && isTriangle () == true && isEquilateral() == false) {
return true;
}
else return false;
} | [
"public boolean isIsosceles() {\n\t\t\tif((this.sideOne == this.sideTwo & this.sideOne != this.sideThree) || (this.sideOne == this.sideThree & this.sideOne != this.sideTwo) || (this.sideTwo == this.sideThree & this.sideTwo != this.sideOne)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn false;\n\t\t}",
"public bo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
returns the most popular topics | public Collection<Topic> getMostPopularTopics() {
return gameRepository.getMostPopularTopics();
} | [
"private static void printMostUsedWords(){\n\t\tMap<String, Integer> words = getWords();\n\t\t\n\t\tString max_count_string[] = new String[3];\n\t\tint max_counts[] = new int[3];\n\t\t\n\t\tfor(String str : words.keySet()){\n\t\t\tint count = words.get(str);\n\t\t\tint index = getMinIndex(max_counts);\n\t\t\t\n\t\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
construction Construct a BitNotExpression. | public BitNotExpression(Token operator, Expression expr)
{
super(operator, expr);
} | [
"public bit not()\n\t{\n\t\tbit notBit = new bit();\n\t\t\n\t\tnotBit.setValue(Math.abs(bitHolder.getValue() - 1));\n\t\t\n\t\treturn notBit;\n\t}",
"private JCExpression NOT(JCExpression expr) { return m().Unary(JCTree.NOT, expr); }",
"public Object visitBitwiseNegationExpression(GNode n) {\n Object a, res... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Diese Methode setzt die quellseite vom typ int und wirft eine RemoteException. | public void set_quellseite(int Quellseite)throws RemoteException {
this.quellseite = Quellseite;} | [
"public void set_zielwerk(int Zielwerk)throws RemoteException {\nthis.zielwerk = Zielwerk;}",
"public void set_zielabsatz(int Zielabsatz)throws RemoteException {\nthis.zielabsatz = Zielabsatz;}",
"public void set_quellabsatz(int Quellabsatz)throws RemoteException {\nthis.quellabsatz = Quellabsatz;}",
"public ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the value of the hazmat property. | public boolean isHazmat() {
return hazmat;
} | [
"public String getHazmatFlag() {\n return hazmatFlag;\n }",
"public double getHmz() {\n return hmz_;\n }",
"public double getHmz() {\n return hmz_;\n }",
"public double getH() {\n\t\treturn this.H;\n\t}",
"public double getH() {\n return h;\n }",
"public double getH... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Factory method to create initial consolidated capabilities. | public ConsolidatedCapabilities createConsolidatedCapabilities( ){
// update all info when first capability registration object
Analyzer analyzer = null;
Source sources[] = null; // get the source info from the sensor
Target targets[] = null; // get the target info from the sensor
Classification c... | [
"public Capabilities() {\n this(DSL.name(\"capabilities\"), null);\n }",
"VendorSpecificCapabilitiesType createVendorSpecificCapabilitiesType();",
"public Capabilities() {\n super();\n this.caps = new HashSet<ICapability>();\n }",
"public FastProvisioningEditionCapability() {\n }... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Process the wave. Typically by using a switch on the waveType. | protected abstract void processAction(final Wave wave); | [
"protected abstract void nextWave();",
"public void recordWaveform () {\n try {\n sendHeader (PLAYER_MSGTYPE_REQ, PLAYER_AUDIO_REQ_WAV_REC, 0);\n os.flush ();\n } catch (IOException e) {\n throw new PlayerException\n (\"[Audio] : Couldn't send request:... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Add a dynamic import | public void addImport(String importString) {
dynamicImports.add(importString);
} | [
"boolean hasDynamicImport();",
"Import createImport();",
"public Import addImport(final String className);",
"public void addImport(CodeGenerator generator) {\n }",
"public Import createImport();",
"Imports createImports();",
"public JavaClass addImports(final String... types);",
"public void testMul... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get a subnode in a node by nr. It optially allows you to use caching. Caching assumes that you loop over subnodes in sequential order (nr is increasing by 1 each call) | public static final Node getSubNodeByNr(Node n, String tag, int nr,
boolean useCache) {
NodeList children;
Node childnode;
if (n == null)
return null;
int count = 0;
// Find the child-nodes of this Node n:
children = n.getChildNodes();
int lastChildNr = -1;
// XMLHandlerCacheEntry entry = null;... | [
"public static final Node getSubNodeByNr(Node n, String tag, int nr) {\n\t\treturn getSubNodeByNr(n, tag, nr, true);\n\t}",
"public abstract Node<T> get(int index);",
"public static final Node getNodeWithTagValue(Node n, String tag,\n\t\t\tString subtag, String subtagvalue, int nr) {\n\t\tNodeList children;\n\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
writeReads writes rddReads to outputFile with header as the file header. | public static void writeReads(
final JavaSparkContext ctx, final String outputFile, final JavaRDD<GATKRead> rddReads,
final SAMFileHeader header, ReadsWriteFormat format) throws IOException {
if (format.equals(ReadsWriteFormat.SINGLE)) {
writeReadsSingle(ctx, outputFile, rddR... | [
"private static void writeToBooksFile() throws IOException{\n\t\tFileWriter fw = new FileWriter(BOOKS_FILE, false); //overwrites the students.txt file\n\t\tBufferedWriter bw = new BufferedWriter(fw);\n\t\t\n\t\tSet<Integer> keys = ALL_BOOKS.keySet(); //returns list of all keys in ALL_BOOKS\n\t\tfor(int key : keys){... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method stub to get the service appointment. | abstract public Date getServiceAppointment(); | [
"PatientAppointment getAppointment(int appointmentId);",
"public Appointment getAppointmentById(Integer id);",
"@Override\n\tpublic Appointment getAppointmentById(Integer id) {\n\t\t\t\tAppointment foundAppointment = ar.getOne(id);\n\t\t\t\tif(foundAppointment != null) {\n\t\t\t\t\tSystem.out.println(\"Appointm... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
get menus by url. | List<SysMenu> getMenusByUrl(String url); | [
"String getMenus(MmtConfig cfg);",
"Menu getMenu();",
"public void getMenuItems(){ \n\t\tParseUser user = ParseUser.getCurrentUser();\n\t\tmenu = user.getParseObject(\"menu\");\n\n\t\tParseQuery<ParseObject> query = ParseQuery.getQuery(\"Item\");\n\t\tquery.whereEqualTo(\"menu\", menu);\n\n\t\tquery.findInBackg... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Checks the list for the given word. If present, returns the StringNode containing the word. If not present, returns null. | public StringNode locate(String word) {
StringNode current = first;
while (true) {
if (current == null) {
return null;
}
if (current.getWord().equalsIgnoreCase(word)) {
return current;
}
else {
if... | [
"public Node search(String word)\r\n { \r\n Node temp = root.getNext();\r\n \r\n for (int count = 0; count < size; count++)\r\n {\r\n if (temp.getWord().equals(word))\r\n {\r\n return temp;\r\n }\r\n \r\n temp = t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This function applies the benefits of growing back wool and faster growing up to the acting entity. (This function is used in the AIEatGrass) | public void eatGrassBonus()
{
this.setSheared(false);
if (this.isChild())
{
this.addGrowth(60);
}
} | [
"private void updateDefense() {\n // Update the active towers\n updateTanks(tanks);\n updateTanks(superTanks);\n // Update any projectiles or explosives\n updateExplosive();\n updateProjectiles(tankProjectiles);\n updateProjectiles(superProjectiles);\n // Upda... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method to get access to the grabRandomTiles(int count) method in an network game. | public Multiset<Tile> grabRandomTiles(int count) {
return this.bag.grabRandomTiles(count);
} | [
"public Tile grabRandomTile() {\n return this.bag.grabRandomTile();\n }",
"void generateRandomTile(){\n int position[] = getRanEmptyPos();\n int tileRow = position[0], tileCol = position[1];\n\n // Pick a random value from (2^1, 2^2, 2^3)\n int ranExp = (int)(Math.random() * 3 + 1)... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Appends the query name and values. | private RequestTemplate appendQuery(String name,
Iterable<String> values,
CollectionFormat collectionFormat) {
if (!values.iterator().hasNext()) {
/* empty value, clear the existing values */
this.queries.remove(name);
ret... | [
"private void addQueryParameter(String name, String value)\n {\n if(_query.length() > 0)\n _query.append('&');\n _query.append(encode(name));\n _query.append('=');\n _query.append(encode(value));\n }",
"private void appendQueryContinueValues(String query, HttpUrl.Builder urlBuilder) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets an immutable view of the parameters defined for the target resource method. TODO: Remove the "default" implementation in the next major version. | default List<Parameter<?>> getMethodParameters()
{
return Collections.unmodifiableList(Collections.emptyList());
} | [
"public ParameterList getAdjustableParams();",
"public Map getParameters();",
"public Object[] getMethodParams() {\r\n\t\treturn methodParams;\r\n\t}",
"public List<MethodParameterValue> getParameterValues() {\n return parameterValues;\n }",
"public abstract String getParameters();",
"MultipleVa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__XTypeLiteral__Group__3__Impl" $ANTLR start "rule__XTypeLiteral__Group__4" ../org.xtext.example.helloxcore.ui/srcgen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:12643:1: rule__XTypeLiteral__Group__4 : rule__XTypeLiteral__Group__4__Impl rule__XTypeLiteral__Group__5 ... | public final void rule__XTypeLiteral__Group__4() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:12647:1: ( rule__XTypeLiteral_... | [
"public final void rule__XTypeLiteral__Group__4() 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:14253:1: ( rule__XTypeLitera... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Appends and returns a new empty "Objectid" element | public gov.nih.nlm.ncbi.www.ObjectIdDocument.ObjectId addNewObjectId()
{
synchronized (monitor())
{
check_orphaned();
gov.nih.nlm.ncbi.www.ObjectIdDocument.ObjectId target = null;
target = (gov.nih.nlm.ncbi.www... | [
"public ocpp.IdTagInfo addNewIdTagInfo()\n {\n synchronized (monitor())\n {\n check_orphaned();\n ocpp.IdTagInfo target = null;\n target = (ocpp.IdTagInfo)get_store().add_element_user(IDTAGINFO$0);\n return target;\n }\n }",
"void addId(String... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
locks this instance of RecordLock. If the instance is already locked then the method will wait until it is available to be locked again. After the instance is locked a new lock cookie is generated | synchronized void lock() {
while (isLocked) {
waitUntillIsUnlocked();
}
isLocked = TRUE;
lockCookie = createLockCookie();
} | [
"public void lock() {\n\t\tlocked = true;\n\t}",
"public void lock() {\n mLock.lock();\n }",
"public void lock() {\r\n status = DoorLockStatus.LOCKED;\r\n logDoorLockStatusChange();\r\n }",
"public void lock() {\r\n super.lock();\r\n }",
"public void lock() {\n //... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column second_store_authentication_picture.second_picture | public String getSecondPicture() {
return secondPicture;
} | [
"public String getPicture2() {\n return picture2;\n }",
"public void setSecondPicture(String secondPicture) {\n this.secondPicture = secondPicture == null ? null : secondPicture.trim();\n }",
"public void setPicture2(String picture2) {\n this.picture2 = picture2;\n }",
"public Integer getPic... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
parses seconds left until the next t!daily/t!rep command from a Tatsumaki's message | long parseTatsumakiDelay(String content, RequestType type)
{
if (content.endsWith("you can award a reputation point!**"))
return -1; //could've returned 0 but that would activate a new alarm
//if (content.endsWith("200 daily credits!**") || content.endsWith("a reputation point!**"))
... | [
"private long durationToNextRun() throws ServiceException {\n long next = DeliveryQueueHelper.nextRun(queue);\n long now = System.currentTimeMillis();\n return next > now ? next - now : 0L;\n }",
"public static long getTimeToReadForToast(String message){\n\t\t// some constants for timeing\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns true if the given package fragment root delta could affect this type hierarchy | private boolean isAffectedByPackageFragmentRoot(IJavaElementDelta delta, IJavaElement element, int eventType) {
switch(delta.getKind()) {
case IJavaElementDelta.ADDED:
return this.projectRegion.contains(element);
case IJavaElementDelta.REMOVED:
case IJavaEleme... | [
"private boolean isAffectedByPackageFragment(IJavaElementDelta delta, PackageFragment element, int eventType) {\n switch(delta.getKind()) {\n case IJavaElementDelta.ADDED:\n // introduce new types, changing the hierarchy\n return this.projectRegion.contains(element);\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the mostrarPosicao value for this Atributo. | public void setMostrarPosicao(int mostrarPosicao) {
this.mostrarPosicao = mostrarPosicao;
} | [
"public void setPosizione(int posizione) {\r\n\t\tthis.posizione = posizione;\r\n\t}",
"public void setPosicion(PosicionJugador posicion) {\n\t\tthis.posicion = posicion;\n\t}",
"public void setMostrar(String mostrar) {\r\n this.mostrar = mostrar;\r\n }",
"public void setPosicao(int value) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Remove a container event listener from this component. | public void removeContainerListener(ContainerListener listener); | [
"public void removeComponentListener(ComponentListener listener);",
"@Override\n public void removeListener() {\n this.listener = null;\n }",
"@Override\n\tpublic void componentRemoved(ContainerEvent e) {\n\t\tremoveKeyAndContainerListenerRecursively(e.getChild());\n\t}",
"public void removeListe... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the value of the 'Then' containment reference. | XExpression getThen(); | [
"public com.cdoframework.cdolib.database.xsd.Then getThen() {\n return this.then;\n }",
"public Statement getThen()\n {\n return this.thenStatement;\n }",
"Exp getThen();",
"public com.cdoframework.cdolib.database.xsd.NullThen getNullThen() {\n return this.nullThen;\n }",
"public fi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the mini health bar visibility state to a given boolean | public void setMiniHealthBarVisible(boolean miniHealthBarVisible) {
this.miniHealthBarVisible = miniHealthBarVisible;
} | [
"public void toggleMiniHealthBars() {\n miniHealthBarVisible = !miniHealthBarVisible;\n }",
"public boolean isMiniHealthBarVisible() {\n return miniHealthBarVisible;\n }",
"public void setVisible(boolean b){\r\n // Simple declared method for making the progress bar visible or not\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Simply resets the list of events without checking anything. Also resets any failure message. | public synchronized void reset() {
msg = null;
events.clear();
} | [
"void resetReceivedEventsCount();",
"private void resetReceivedEventList()\n {\n if (receivedEventList != null)\n receivedEventList.removeAllElements();\n }",
"public void reset()\n {\n setLastItem(NOTHING_HANDLED);\n for (int i = 0; i < counters.length; i++)\n {\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the trace at the given index. | public Trace getTrace(final int index) {
return traces[index];
} | [
"public StrategoStackFrame get(int index)\n\t{\n\t\treturn this.stack.get(index);\n\t}",
"public TmfTimestamp getTimestamp(int index) {\n // TODO: Go over all the traces\n \tITmfTrace trace = fTraces.firstElement();\n \tTmfTraceContext context = trace.seekEvent(index);\n \treturn context.getTi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method returns the average time a plane waited in the landing queue. | public double avgLandingTime()
{
if(planesLanded != 0)
return((double)(landTimeSum)/(double)(planesLanded));
else return 0;
} | [
"private float getAverageWaitingTime() {\t\t\r\n\t\tfloat vtr = 0;\t\t\r\n\t\tfor(Customer c: attendedCustomers) {\r\n\t\t\tvtr += c.getWaitTime();\r\n\t\t}\t\t\r\n\t\tvtr = vtr/attendedCustomers.size();\t\t\r\n\t\treturn vtr;\r\n\t}",
"public double avgDepartingTime()\r\n\t{\r\n\t\tif(planesDeparted != 0)\r\n\t\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Handle view output type change. | public void handleViewOutputTypeChange(String typeName) {
modelVco.setOutputType(typeName);
} | [
"public void setOutputType(Class<?> outputType) {\n\t\tthis.outputType = outputType;\n\t}",
"void setView(String viewType);",
"@Override final protected Class<?>[] getOutputTypes() { return this.OutputTypes; }",
"String getViewType();",
"private String mapOutputTypeToOutputTarget( final String outputTyp... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
this function takes the specific sized array, times the start, the end and does insertion sort on it The isCoreData boolean tells the function whether to count in nanoseconds or milliseconds | public long timeTakenInsertionSort(UnorderedArray dataSize, String numItems, boolean isCoreData){
System.out.println("***** Times Taken for set of " + numItems +" ******");
long start, end;
if (isCoreData){
start = System.currentTimeMillis();
dataSize.insertionSortAs... | [
"@Test\n public void testBinaryInsertionSortTime() {\n start = System.currentTimeMillis();\n Sort.binaryInsertionSort(bigArraySorted);\n end = System.currentTimeMillis();\n\n LOG.info(\"Binary Insertion sort - Big array sorted: \" + (end - start));\n // check if array was corre... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
System.out.println(" pruneScanfindInodeById, Id "+inodeId); | @Override
public HopINode indexScanfindInodeById(int inodeId) throws StorageException {
HopsSession session = connector.obtainSession();
HopsQueryBuilder qb = session.getQueryBuilder();
HopsQueryDomainType<InodeDTO> dobj = qb.createQueryDefinition(InodeDTO.class);
HopsPredicate pred1 = dobj.get("id")... | [
"void prune() {\n\n }",
"void test4()\n throws Exception {\n try {\n KeyDataEntry entry;\n System.out.println(\"BTreeIndex scanning\");\n\n GenerateIndexFiles obj = new GenerateIndexFiles();\n IndexFile[] hf = obj.createBTreeIndex(\"/Users/kunjpatel... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The sole constructor expecting the actual sql template and the parameters that are going to be factored into the template. | public SqlBuilder(String template, SqlParameterSet parameters) {
this(template, new SimpleSqlFilter(parameters, Sql.Logical.CONJUNCTION));
} | [
"public SqlBuilder(String template, SqlFilter filter) {\n this.sqltemplate = new StringBuilder(template);\n this.filter = filter;\n this.statements = new ArrayList<SqlStatement>();\n }",
"public static SqlTemplate createFrom(String sql) {\n return new SqlTemplate(sql);\n }",
"p... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates new form RoomSchedulerFrame | public RoomSchedulerFrame() {
initComponents();
rebuildFacultyComboBoxes();
rebuildDateComboBoxes();
waitlistStatusTextArea.setVisible(false);
reservationStatusTextArea.setVisible(false);
} | [
"public RoomSchedulerFrame()\n {\n initComponents();\n \n // Load the combo boxes with data.\n rebuildFacultyComboBoxes();\n rebuildDateComboBoxes();\n rebuildRoomRemoverComboBox();\n rebuildMonthComboBox();\n rebuildRemoveReservationComboBox();\n re... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create the database if not exist | void createDatabaseIfNotExists() {
if (!this.databaseWasCreated) {
LOG.debug("{}: Creating database with name = {}", this.getClass().getSimpleName(), this.influxdbDatabase);
this.influxDB.createDatabase(this.influxdbDatabase);
this.databaseWasCreated = true;
}
} | [
"public void dbCreate() {\n Logger.write(\"INFO\", \"DB\", \"Creating database\");\n try {\n if (!Database.DBDirExists())\n Database.createDBDir();\n dbConnect(false);\n for (int i = 0; i < DBStrings.createDB.length; i++)\n execute(DBStrin... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Read intermidiate get record by id. GetRecords does only uses the getMetadata xslt to get an intermidiate reference to the actual xml | protected void readIntermidiateGetRecordById(String response,
SearchXslRecord record)
throws TransformerConfigurationException, TransformerException
{
String metadataxslt = this.getMetadataxslt();
if (metadataxslt == null || metadataxslt.equals("")) {
record.setFullMetadata(Utils.chkStr(response));
}... | [
"public Object getRecord(String id);",
"Record getRecord(URI id)\r\n throws Exception;",
"public Record readRecord(Long id);",
"@SuppressWarnings(\"unchecked\")\npublic SearchXslRecord getRecordById(String responseStr, String uuid, \n String requestUrl) \n throws IOException, Transformer... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
keep child centered inside dependency respecting android:fitsSystemWindows="true" | @Override
public boolean onDependentViewChanged(CoordinatorLayout parent, IconPageIndicator child, View dependency) {
int systemWindowInsetTop = 0;
if (lastInsets != null) {
systemWindowInsetTop = lastInsets.getSystemWindowInsetTop();
}
int bottom = dependency.getBottom()... | [
"@Override\n public void onCenterPosition(boolean b) {\n imgView.animate().scaleX(1f).scaleY(1f).alpha(1);\n txtView.animate().scaleX(1f).scaleY(1f).alpha(1);\n\n }",
"@Override\n public void embedView(FrameLayout fLayout) {\n\n RelativeLayout relativeLayout=new Relat... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Enable the associated button if single click. Return if true if double click on JList and the associated button is enabled. | static boolean isDoubleClick(MouseEvent evt, JList lst, JButton btn)
{
if (lst.getMinSelectionIndex() >= 0)
{
switch (evt.getClickCount())
{
case 1:
btn.setEnabled(true);
break;
case 2:
if (btn.isEnabled())
{
return true;
}
break;
default:
break;
}... | [
"public boolean doubleClick();",
"private boolean isDoubleClickedElement(MouseEvent evt) {\n\t\tif (evt.getButton() == Constants.LEFT_MOUSE_BUTTON && !aufzugschacht.mainFrameIsAnyButtonSelected) {\n\t\t\tCalendar thisTime = Calendar.getInstance();\n\t\t\tif (clicked) {\n\t\t\t\tlong millis = thisTime.getTimeInMil... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Copies the contents of one Node into another. | protected Node copyInto(Node node) {
node.setValueNumber(valueNumber);
return node;
} | [
"IReadableNode copy();",
"public void copy\n\t\t\t(Node node)\n\t\t\t{\n\t\t\tthis.parent = node.parent;\n\t\t\tthis.child1 = node.child1;\n\t\t\tthis.child2 = node.child2;\n\t\t\tthis.seq = node.seq;\n\t\t\tthis.brlen = node.brlen;\n\t\t\t}",
"public void handleCopyNode(Node node);",
"public Node copyNodes(N... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Records the messages assocated with vertices in the graph on the basis of a file with the following format: location message The first location is assumed to be the starting point for users joining the MUD. | private void recordMessages(String messagesfile) {
try {
FileReader fin = new FileReader(messagesfile);
BufferedReader messages = new BufferedReader(fin);
String line;
boolean first = true; // For recording the start location.
while ((line = messages.r... | [
"private void recordMessages(String messagesfile){\n \ttry{\n \t FileReader fin = new FileReader(messagesfile);\n BufferedReader messages = new BufferedReader(fin);\n String line;\n \t boolean first = true; // For recording the start location.\n while((line = messages... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
string udid = 1; | java.lang.String getUdid(); | [
"public String getUNID(int noteid);",
"public String getUNID(String noteid);",
"public ID(String id) {\n this.type = id.charAt(0);\n this.UID = id;\n }",
"public void setUin(String uin) {\r\n this.uin = uin;\r\n }",
"java.lang.String getUserID();",
"String parseUID(long uid);",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
True iff the match is strongly dominated XXX Whatever that is!! | boolean isStronglyDominated(Match m); | [
"boolean isDominating(final Match m);",
"public abstract boolean isMatched();",
"boolean hasMatches();",
"public boolean isExactMatch () { return exactMatch; }",
"private boolean isFullyMatched() {\n\t\treturn subBeatMatches > 0 && beatMatches > 0;\n\t}",
"boolean isNearMatch(double score);",
"public bo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Search for a SailPointObject given then class and query options | public static SailPointObject getObject(SailPointContext context,
Class<? extends SailPointObject> klass, QueryOptions qo) throws GeneralException {
SailPointObject object = null;
Iterator<? extends SailPointObject> it = context.search(klass, qo);
if (it.hasNext())
object = it.next();
Util... | [
"@NotNull\n\t<T extends ObjectType> SearchResultList<PrismObject<T>> searchObjects(Class<T> type, ObjectQuery query, Collection<SelectorOptions<GetOperationOptions>> options, Task task, OperationResult parentResult)\n\t\t\tthrows SchemaException, ObjectNotFoundException, CommunicationException, ConfigurationExcepti... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__Action__Group__1" $ANTLR start "rule__Action__Group__1__Impl" ../com.blasedef.onpa.ONPA.ui/srcgen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:3283:1: rule__Action__Group__1__Impl : ( ( rule__Action__PredicateAssignment_1 )? ) ; | public final void rule__Action__Group__1__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../com.blasedef.onpa.ONPA.ui/src-gen/com/blasedef/onpa/ui/contentassist/antlr/internal/InternalONPA.g:3287:1: ( ( ( rule__Action__PredicateAssignment_1 )? ... | [
"public final void rule__Action__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:3003:1: ( ( ( rule__Action__PredicateAssignment_1... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Run EMSE script public user update before. | public static void runEMSEScriptPublicuserUpdateBefore(PublicUserModel publicuser, String callerID) throws EMSEException
{
EMSEClient emseClient = EMSEClient.getEMSEClient();
PublicuserEdit pubUserEdit = new PublicuserEdit();
Hashtable<String, Object> paramsMap = pubUserEdit.pretreat(publicuser, callerID);
... | [
"public static void runEMSEScriptPublicuserUpdateAfter(PublicUserModel publicuser, String callerID) throws EMSEException\r\n\t{\r\n\t\tEMSEClient emseClient = EMSEClient.getEMSEClient();\r\n\t\tPublicuserEdit pubUserEdit = new PublicuserEdit();\r\n\t\tHashtable<String, Object> paramsMap = pubUserEdit.pretreat(publi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
clearFilters method clears all filters from the queryConditionsList ArrayList and updates the relevant GUI components when the button buttonClearFilters is clicked | public abstract void clearFilters(); | [
"@Override\n\tpublic void clearFilters() {\n\t\tsubQueryList.clear();\n\t\tsubQueriesTextArea.setText(null);\n\t\tcomboQueryProperties.setSelectedIndex(0);\n\t\tcomboOperators.setSelectedIndex(0);\n\t\tcomboWineTypes.setSelectedIndex(0);\n\t}",
"public void clearFilters() {\r\n\t\tfilters.clear();\r\n\t}",
"pub... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Retrieve the Trajectory State Time Node Trade Rate | public double tradeRate()
{
return _dblTradeRate;
} | [
"double getTransRate();",
"public BigDecimal getTRF_RATE() {\r\n return TRF_RATE;\r\n }",
"public Long getStateTrac() {\n return stateTrac;\n }",
"double getTrst();",
"long getTrades();",
"public Float gettTrafh() {\n return tTrafh;\n }",
"public int getTradePoint() {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional int32 touchScreen = 1; optional int32 touchScreen = 1; | boolean hasTouchScreen(); | [
"int getTouchScreen();",
"protected void whenUserTouchesScreen() {\n }",
"void onScreenChange(int width, int heigth) {\n }",
"public void setScreen( Screen screen );",
"void touchTile(float x, float y);",
"public abstract void setActiveScreen(IScreen screen);",
"public PointScreen pointScreen(int ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Play trick such that players follow suit if they can. A trick is won by the highest trump in it, or if no trump is played by the highest card of the suit led. The winner of a trick leads to the next. | public void playTrick()
{
if (aTrickCounter > MAXTRICKS)
{
throw new GameException("You cannot play more than 10 tricks per round since each hand contains 10 cards");
}
notifyObservers(new Notification("game.engine", this, getNotificationSequenceNumber(), State.newTrick.toSt... | [
"public void isTrickComplete() {\n if(numPlays!=4){return;}\n if(player1Play == null | player2Play == null | player3Play == null | player4Play == null){return;}//should only call when all have played\n // reset numPlayed\n numPlays = 0;\n // find if the round is over\n cur... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the query properties. | public Properties getQueryProperties() {
return queryProperties;
} | [
"public Map<String, String> getQueryOptions() {\n return _queryOptions;\n }",
"private String getPropsQuery(BuildParams buildParams) {\n String baseQuery;\n if (buildParams.isEnvProps()) {\n baseQuery = BuildQueries.BUILD_ENV_PROPS;\n } else {\n baseQuery = BuildQuer... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
if transaction is hanging, return current time so transaction is always active. | public long transactionLastActive(int transactionID)
throws TransactionNotActiveException {
synchronized (hangingTransactions) {
if (hangingTransactions.contains(transactionID)) {
return System.currentTimeMillis();
}
}
synchronized (activeTransactions) {
if (activeTransactions.containsKey(transac... | [
"protected Timestamp getTransactionStartTime() {\n\t\treturn RequestContext.getCurrentContext().get(TRANSACTION_START_TIME);\n\t}",
"int getLockTime();",
"public String getTxnTime() {\n\n return txnTime;\n }",
"com.google.protobuf.Timestamp getCurrentStateTime();",
"public Timestamp getTransaction... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Getter for f_AnchorListItem19 called 1 times. Type: DEFAULT. Build precedence: 9. | private org.gwtbootstrap3.client.ui.AnchorListItem get_f_AnchorListItem19() {
return build_f_AnchorListItem19();
} | [
"private org.gwtbootstrap3.client.ui.AnchorListItem get_f_AnchorListItem61() {\n return build_f_AnchorListItem61();\n }",
"private org.gwtbootstrap3.client.ui.AnchorListItem get_f_AnchorListItem59() {\n return build_f_AnchorListItem59();\n }",
"private org.gwtbootstrap3.client.ui.AnchorListItem ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
when the up arrow is pressed, the block is rotated | public void upPressed() {
System.out.println("upPressed()");
current.rotate();
display.showBlocks();
} | [
"public void up() {\r\n\t\tint x = obj.xx;\r\n\t\tint y = obj.yy;\r\n\t\t\r\n\t\tint xgrid=((x-8)/32)%rubiks.size;\r\n\t\tint ygrid=((y-8)/32)%rubiks.size;\r\n\t\t\r\n\t\tif ((y-10)<(uyb-lyb))\r\n\t\t\trubiks.rotate(xgrid, ygrid, 0, 1);\r\n\t\telse\r\n\t\t\trubiks.rotate(xgrid, ygrid, 0, 1);\r\n\t\t\r\n\t\t//redraw... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a button that leads to the soundClicked method when pressed. | private void createSoundButton(String text) {
sound = new TextButton(text, skin);
sound.addListener(new ClickListener() {
@Override
public void clicked(InputEvent event, float x, float y) {
soundClicked();
}
});
table.add(sound).width(1... | [
"private void soundClicked() {\n Sounds.setVolume(Sounds.getVolume() == 0 ? 1 : 0);\n setSoundButtonColor(Sounds.getVolume() == 0, sound);\n }",
"public void buttonSound()\n {\n InputStream pathSoundFile = getClass().getResourceAsStream(\"Button.wav\");\n playSound(pathSoundFil... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
GET /taxrates/:id : get the "id" taxRate. | @GetMapping("/tax-rates/{id}")
@Timed
public ResponseEntity<TaxRate> getTaxRate(@PathVariable Long id) {
log.debug("REST request to get TaxRate : {}", id);
Optional<TaxRate> taxRate = taxRateRepository.findById(id);
return ResponseUtil.wrapOrNotFound(taxRate);
} | [
"@GetMapping(value = \"/{id}\", produces = MediaType.APPLICATION_JSON_VALUE)\n @PreAuthorize(value = \"isAuthenticated()\")\n public Rate getRateById(@PathVariable(name = \"id\", required = true) long id, HttpServletRequest request) throws Exception {\n return rateService.getRate(id);\n }",
"@Dele... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
context The application context attributesOperation The operation that was executed | @Override
public void onAttributesOperation(Context context, AttributesOperation attributesOperation) {
} | [
"public String getOperationContext() {\n return this.operationContext;\n }",
"Object getComputeContext();",
"public cl_context getContext() {\r\n return context;\r\n }",
"void applyTags(ReaderContext context, Operation operation, Method method);",
"public cl_context getContext() {\n\t\tr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the pm 4411 BS. | public Pm4411BS getPm4411BS() {
return pm4411BS;
} | [
"public Pm2411BS getPm2411BS() {\r\n\t\treturn pm2411BS;\r\n\t}",
"public Pm3111BS getPm3111BS() {\r\n\t\treturn pm3111BS;\r\n\t}",
"public void setPm4411BS(Pm4411BS pm4411bs) {\r\n\t\tpm4411BS = pm4411bs;\r\n\t}",
"public String getSbbm() {\n return sbbm;\n }",
"public String getBm() {\n r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Note: To use this KMeansBSP example: (1)Must set the "KMEANS_K" value into the job configuration. e.g. BSPJob job.set(KMeansBSP.KMEANS_K, String.valueOf(x)); (2)Must set the "KMEANS_CENTERS" value into the job configuration. e.g. BSPJob job.set(KMeansBSP.KMEANS_KCENTERS, "x11x12...x1n|x21x22...x2n|...|xk1xk2...xkn"); (... | public static void main(String[] args) throws Exception {
if (args.length < 5) {
System.out.println("Usage: <nSupersteps> <FileInputPath> <FileOutputPath> <K> <K-Centers FilePath>" +
" <SplitSize(MB)> <PartitionNum> <SendThreshold> <SendCombineThreshold> " +
" <MemDataPercent> <Beta> <HashBuc... | [
"public final static MRData BSP ( int[] source_nums, // output tags\n Tree superstep, // superstep function\n Tree init_state, // initial state\n boolean orderp, // do we need to order the result?\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the totalWaitTime value for this DeliveryCost. | public int getTotalWaitTime() {
return totalWaitTime;
} | [
"public int totalWaitTime()\n\t{\n\t\tmyTotalWaitTime = 0;\n\t\t\n\t\tfor(int i = 0; i < myNumServiceQueues; i++)\n\t\t{\n\t\t\tmyTotalWaitTime += myServiceQueues[i].getTotalWaitTime();\n\t\t}\n\t\treturn myTotalWaitTime;\n\t}",
"public int totalCustomerWaitTime()\n\t{\n\t\tmyTotalCustomerWaitTime = 0;\n\t\t\n\t\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
resets the cameraposition with the route as centre | public void centerMap() {
if(map == null || route == null) return;
Bounds bounds = MapUtil.translateBounds(route.getBounds(), scale, displacement);
MapUtil.moveCamera(map, bounds);
} | [
"public void reset() {\n\t\tmCenterOfProjection = new Vector3f(0, 0, 15);\n\t\tmLookAtPoint = new Vector3f(0, 0, 0);\n\t\tmUpVector = new Vector3f(0, 1, 0);\n\t\tmCameraMatrix = new Matrix4f();\n\t\tthis.update();\n\t}",
"public void reset() {\n \n floatLoc.setLocation(START_CORNER,START_CORNER);\n if (t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ We define the camel routes available for testing here | @Override
protected RouteBuilder createRouteBuilder() {
String fcrepoEndpoint = FEDORA_BASEURI.replace("http://", "fcrepo:");
return new RouteBuilder() {
@Override
public void configure() throws Exception {
onException(FcrepoOperationFailedException.class).... | [
"public void configure() {\n from(\"as2://\" + PATH_PREFIX + \"/listen?requestUriPattern=/\")\n .to(\"mock:as2RcvMsgs\");\n\n // test route processing exception\n Processor failingProcessor = new Processor() {\n public void proce... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__PageBody__NameAssignment_1" $ANTLR start "rule__PageBody__SectionsAssignment_3" InternalLPDSL.g:2988:1: rule__PageBody__SectionsAssignment_3 : ( ruleSections ) ; | public final void rule__PageBody__SectionsAssignment_3() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalLPDSL.g:2992:1: ( ( ruleSections ) )
// InternalLPDSL.g:2993:2: ( ruleSections )
{
// InternalLPDS... | [
"public final void rule__PageBody__Group__3__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalLPDSL.g:1573:1: ( ( ( rule__PageBody__SectionsAssignment_3 )* ) )\r\n // InternalLPDSL.g:1574:1: ( ( rule__PageBod... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Karel performs a step | public static void step()
{
if(karel==null)
karel=new Karel();
karel.drawingArea.step();
} | [
"void beginStepContext(STEP step);",
"public String nextStep();",
"public void step(){\n numberOfSteps++;\n }",
"public void step(){\n update();\n render();\n }",
"@Override\r\n\tpublic void beginStep() {\n\t\t\r\n\t}",
"protected void runAfterStep() {}",
"protected void runBeforeStep(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ PixelGraph constructor Given a 2d array of colour values (where element [x][y] is the colour of the pixel at position (x,y) in the image), initialize the data structure to contain the pixel graph of the image. | public PixelGraph(Color[][] imagePixels) {
input = new PixelVertex[imagePixels.length][imagePixels[0].length];
for(int column = 0; column < imagePixels[0].length; column++) {
for(int row = 0; row < imagePixels.length; row++) {
input[row][column] = new PixelVertex(row, column);
}
}
//most of the ... | [
"public SimpleImage(Color[] pixels, int width, int height) {\n this.pixArray = pixels;\n this.width = width;\n this.height = height;\n }",
"public Pixel(int x, int y, List<Double> rgb) {\n this(x, y, rgb.get(0), rgb.get(1), rgb.get(2));\n }",
"Image createImage(List<List<Pixel>> pixelArray);",
"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
VacuumCleaner : POWER_CONSUMPTION=100, FILTER_TYPE=A, BAG_TYPE=A2, WAND_TYPE=allinone, MOTOR_SPEED_REGULATION=3000, CLEANING_WIDTH=20 | public static boolean checkVacuumCleaner(Criteria criteria) {
if (criteria.containsKey("POWER_CONSUMPTION")) {
if (Integer.parseInt(criteria.getValue("POWER_CONSUMPTION").toString()) <= 0
|| Integer.parseInt(criteria.getValue("POWER_CONSUMPTION").toString()) >= 1000) {
return false;
}
}
... | [
"public VacuumCleaner() {\n }",
"private static void speedup(String [] args){\n\t\t\n\t\tint warningCnt = 0;\n\t\t\n\t\tString applicationPath = convertApplication(args[2], null);\n\t\tConfMan baseConfigManager;\n\t\t\n\n\n\n\n\t\tbaseConfigManager = new ConfMan(args[1], applicationPath, false);\n\t\tConfMan[]... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Metodo para obtener la fecha del inicio de la semana para comprobar que el tecnico puede analizar una prueba. | public Date getInicioSemana() {
// obtener el día actual
Calendar cal = Calendar.getInstance();
// "limpiar" el tiempo
cal.set(Calendar.HOUR_OF_DAY, 0);
cal.clear(Calendar.MINUTE);
cal.clear(Calendar.SECOND);
cal.clear(Calendar.MILLISECOND);
// ob... | [
"public Date getFechaIniDate(){\n Date date=new Date(fechaInicio.getTime());\n return date;\n }",
"public Date getHoraInicio() {\r\n return horaInicio;\r\n }",
"public Date getFechaInicioSesion() {\n return fechaInicioSesion;\n }",
"public Date getFechaInicioContrato() {\r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Retrieves an array containing all of the excursions which have been added to this Cruise, in the order in which they were added. | public String[] getExcursions()
{
return this.excursions;
} | [
"public RegistoExposicoes getListaExposicoes(){\r\n RegistoExposicoes listaExposicoesAtribuiveisOrg=new RegistoExposicoes();\r\n for(Exposicao e:ce.getRegistoExposicoes().getExposicoesOrganizador(user).getExposicoes()){\r\n for(Exposicao e1: ce.getRegistoExposicoes().getExposicoesCandidatur... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the node size. | public void setNodeSize(int nodeSize) {
this.nodeSize = nodeSize;
} | [
"public void setNodeSize(int nodeSize) {\r\n\t\tthis._nodeSize = nodeSize;\r\n\t\tAcideResourceManager.getInstance().setProperty(\"graphPanel.nodeSize\", Integer.toString(this._nodeSize));\r\n\t}",
"public Trainer setNodeSize(int nodeSize) {\n if (nodeSize < 1) {\n throw new IllegalArgum... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__XAssignment__Group_0__0__Impl" $ANTLR start "rule__XAssignment__Group_0__1" ../org.xtext.mongobeans.ui/srcgen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:4236:1: rule__XAssignment__Group_0__1 : rule__XAssignment__Group_0__1__Impl rule__XAssignment__Group_0__2 ; | public final void rule__XAssignment__Group_0__1() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:4240:1: ( rule__XAssignment__Group_0__1__Impl... | [
"public final void rule__XAssignment__Group_1_1_0_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.mongobeans.ui/src-gen/org/xtext/mongobeans/ui/contentassist/antlr/internal/InternalMongoBeans.g:4517:1: ( rule__XAssignment... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method initializes _requiere_percepcion_iva | public JComboBox get_requiere_percepcion_iva() {
if (_requiere_percepcion_iva == null) {
_requiere_percepcion_iva = new JComboBox();
_requiere_percepcion_iva.setBounds(new Rectangle(180, 32, 120, 18));
}
return _requiere_percepcion_iva;
} | [
"private void calcolaFondoPluriennaleVincolatoUscita() {\n\t\tList<FondoPluriennaleVincolatoUscitaCronoprogramma> listaFondoPluriennaleVincolatoUscita = cronoprogrammaDad.calcoloFpvSpesaPrevisione(req.getCronoprogramma(), req.getBilancio().getAnno(),req.getBilancio().getFaseEStatoAttualeBilancio().getFaseBilancio()... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method to reset an input message's values | public Object resetInputMessage(Object message); | [
"public @Nullable Object resetInputMessage(Object message);",
"protected abstract void resetInputFields();",
"public Object resetOutputMessage(Object message);",
"public void resetMes();",
"public void reset () {\n input = 0;\n }",
"public @Nullable Object resetOutputMessage(Object message);",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create and register a new list of component from the given element iterable. | <L extends List<T>, T> L asComponentList(Class<L> listClass, Class<T> componentClass, Iterable<WebElement> elements); | [
"<L extends List<T>, T> L asComponentList(Class<L> listClass, Class<T> componentClass, WebElement... elements);",
"<T> ComponentList<T> asComponentList(Class<T> componentClass, Iterable<WebElement> elements);",
"<T> ComponentList<T> asComponentList(Class<T> componentClass, WebElement... elements);",
"<L exten... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
delete brand by brand id | public void deleteBrand(Integer id); | [
"@Test\n public void deleteBrandTest() throws ApiException {\n Integer brandId = null;\n api.deleteBrand(brandId);\n // TODO: test validations\n }",
"@Override\n public void deleteCarBrand(Long id) {\n LOG.info(\"Delete car brand with id == \" + id + \" ....\");\n Strin... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Parses and writes given GSMLoggerPacket to given DataOutputStream. | private static void dataParse(final GSMPacket packet,
final DataOutputStream outputStream) {
try {
outputStream.writeLong(packet.time);
outputStream.writeInt(packet.mcc);
outputStream.writeInt(packet.mnc);
outputStream.writeInt(packet.cid);
outputStream.writeInt(packet.lac);
outputStream.... | [
"public void writePacket(DataOutputStream dataOutputStream) throws IOException;",
"private static void dataParse(final SensorPacket packet,\r\n\t\t\tfinal DataOutputStream outputStream) {\r\n\t\ttry {\r\n\t\t\toutputStream.writeLong(packet.time);\r\n\t\t\toutputStream.writeFloat(packet.x);\r\n\t\t\toutputStream.w... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional int64 bidSize2 = 10; | long getBidSize2(); | [
"long getBidSize3();",
"long getBidSize5();",
"long getBidSize4();",
"long getBidSize();",
"public long getBidSize2() {\n return bidSize2_;\n }",
"public long getBidSize2() {\n return bidSize2_;\n }",
"public long getBidSize() {\n return bidSize_;\n }",
"public long get... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Within the two passed POF streams, parse and compare time zone information. | protected void diffTimeZone(BufferInput inOld,
BufferInput inNew,
ChangeTracker tracker)
throws IOException
{
int nOldZoneType = inOld.readPackedInt();
int nNewZoneType = inNew.readPackedInt();
boolean fSame = nO... | [
"public boolean hasSameRules(android.icu.util.TimeZone other) { throw new RuntimeException(\"Stub!\"); }",
"@Test\r\n\tpublic void testTimezones() {\r\n\t\tSystem.out.println(ZoneId.getAvailableZoneIds());\r\n\r\n\t\tZoneId zone1 = ZoneId.of(\"Europe/Berlin\");\r\n\t\tZoneId zone2 = ZoneId.of(\"Brazil/East\");\r\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
get all episodes in JSON; enter " | @RequestMapping(value="/get/all", method=RequestMethod.GET)
public ResponseEntity<Iterable<Episode>> list(Model model){
if(episodeService.list() == null){
throw new ResourceNotFoundException("There were no episodes found. Please contact the API administrator.");
}
return new Resp... | [
"@GetMapping(\"/episodes\")\n @Timed\n public List<Episode> getAllEpisodes() {\n log.debug(\"REST request to get all Episodes\");\n return episodeRepository.findAll();\n }",
"private void getEpisodesForSeason(){\n String showId = getIntent().getStringExtra(KEY_SEASON_SHOW_ID);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a AbstractComponentMonitor with a given delegate | public AbstractComponentMonitor(final ComponentMonitor delegate) {
checkMonitor(delegate);
this.delegate = delegate;
} | [
"Monitor createMonitor();",
"public Log4JComponentMonitor(final Logger logger, final ComponentMonitor delegate) {\n this(delegate);\n this.logger = logger;\n }",
"public abstract Monitor newMonitor(Simulator s);",
"public Log4JComponentMonitor(final Class<?> loggerClass, final ComponentMonito... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the maximum char size. | void setMaxCharSize(int value); | [
"public void setMaxLength(int maxLength){\n mMaxLengthOfString = maxLength;\n }",
"void setMaxLength( int maxLength );",
"public void setMaxLength(int max) {\n GtkEntry.setMaxLength(this, max);\n }",
"void setMaxLength(int maxLength);",
"public void setMaxLength(java.lang.String maxLen... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test the property 'telnyxFee' | @Test
public void telnyxFeeTest() {
// TODO: test telnyxFee
} | [
"@Test\n public void isTelnyxBillableTest() {\n // TODO: test isTelnyxBillable\n }",
"public java.lang.String getTelExt() {\n return telExt;\n }",
"public String getTel() {\r\n return tel;\r\n }",
"public String getnTel() {\n return nTel;\n }",
"public void setTel(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |