query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
Hacemos un findByPrimaryKey del entity ConfiguracionCampos con el oid del dto y actualizamos el entity con los valores del dto. | public void actualizar(DTOConfiguracionCampo dto) throws MareException {
UtilidadesLog.info("MONConfiguracionCampos.actualizar(DTOConfiguracionCampo): Entrada");
ConfiguracionCamposLocalHome localHome = new ConfiguracionCamposLocalHome();
try {
ConfiguracionCamposLocal local = loc... | [
"ProyectoDTO obtenerPorId(int idProyecto);",
"public DTO findByPK(ID id);",
"private static DiaEntity basicDTO2Entity(DiaDTO dto) {\n if (dto != null) {\n DiaEntity entity = new DiaEntity();\n entity.setId(dto.getId());\n entity.setDate(dto.getFecha());\n entit... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the nodes Exclusion to the given nodeExclusion value. | public void setNodeExclusion(NodeSet nodeExclusion) {
this.nodeExclusion = nodeExclusion;
} | [
"private void applyExclusionToSelectedNodeRecords( final boolean exclusion ) {\n\t\tfinal int[] selectedRows = getSelectedNodeRecordRows();\n\t\tfinal List<NodeRecord> records = getNodeRecords( selectedRows );\n\t\tfor ( final NodeRecord record : records ) {\n\t\t\trecord.setExclude( exclusion );\n\t\t}\n\t\trefres... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Compares the two subscription infos (being careful to ensure we compare in a consistent way if the arguments are switched). | @Override
public int compareTo(Object o)
{
SubscriptionInfo other = (SubscriptionInfo) o;
int result;
if ((result = compareStrings(other.selector, selector)) != 0)
return result;
else if ((result = compareStrings(other.subtopic, subtopic))... | [
"public void synchronizeSubscriptions() {\n\n String cookie = sharedPref.getString(getString(R.string.shared_preferences_cookie),null);\n Call<List<SubscriptionResponse>> call = client.getSubscriptions(cookie);\n\n call.enqueue(new Callback<List<SubscriptionResponse>>() {\n\n @Overri... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns NativeWindow instance of the toplevel window that contains a specified point and was created by this instance of WindowFactory | NativeWindow getWindowFromPoint(Point p); | [
"public interface WindowFactory {\r\n /**\r\n * Creates and returns NativeWindow with desired\r\n * creation params\r\n *\r\n * @param p - initial window properties\r\n * @return created window\r\n */\r\n NativeWindow createWindow(CreationParams p);\r\n /**\r\n * Create NativeWi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method to set the display algorithm to use. | public static void setDisplayAlgorithm(int w) { cacheWhichDisplayAlgorithm.setInt(w); } | [
"private void setDisplay() {\n\t\tDisplayOpt.add(\"-sd\");\n\t\tDisplayOpt.add(\"/sd\");\n\t\tDisplayOpt.add(\"showdetails\");\n\n\t}",
"public void setDisplay(String display);",
"public abstract void setDisplayMode(NSUInteger displayMode);",
"void setDisplayMode(DisplayMode mode);",
"public void setPaintMo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Particular function for FedX traces. Cancle joins in which a DTP participated, while evaluated with NLEG and falsely believed as an exclusive group. | public void cancelJoinsNLEGJoin() {
List<String> currEG = null;
List<String> currOuterTP = null;
for (int keyOuter : mapTmpEGtoAllTPs.keySet()) {
if (mapEGtoCancel.get(keyOuter) != null) {
currEG = mapTmpEGtoAllTPs.get(keyOuter);
for (int i = 0; i... | [
"boolean getTracePropagation();",
"Boolean groupingEnabled();",
"public void transport() \n{\n textSize(15);\n fill(0, 102, 153);\n text(\"Transport\", lx-10, ly+50);\n\n for (int i = 0; i < 7; i++) //draw the legend\n {\n stroke(0, 100);\n if (tm[i] == true) //if the transport is unselected, nofill\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
scenario where we add a new asset only setting it's target. Query is not specified ERROR IS EXPECTED | @Test
public void testValidateNewAssetTargetWithValidQuery() {
updates.add(mockAssetView("target", DefaultRuleAssetValidator.SEARCH_PAGES));
defaultRuleAssetValidator.validateNewAsset(editorInfo, updates, null);
verify(assetService).addError(anyString(), anyString());
} | [
"@Test\n\tpublic void testValidateUpdateTargetWithValidQuery1() {\n\t\tupdates.add(mockAssetView(\"target\", DefaultRuleAssetValidator.SEARCH_PAGES));\n\t\tupdates.add(mockAssetView(\"query\", \"validQuery\"));\t\t\n\t\tdefaultRuleAssetValidator.validateUpdateAsset(editorInfo, updates, null);\n\t\tverify(assetServi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set SPI mode which controls clock polarity and phase. Should be a numeric value 0, 1, 2, or 3. See wikipedia page for details on meaning: | void setMode(int mode); | [
"public void setSpi(Long spi) {\n\t\tthis.spi = spi;\n\t}",
"public void setMode(int mode);",
"void setMode(Mode mode);",
"public void setPortMode(String mode){\r\n\t\tthis.portMode=mode;\r\n\t\tif(!portMode.equals(\"floating\")){\r\n\t\t\tthis.currentPort=(new Integer(portMode)).intValue();\r\n\t\t}\r\n\t}"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Takes as arguments two strings and converts them into the same strings but with upper case, prints out both the original and the resulting strings | static void upperCasing(String initialString1, String initialString2) {
// Initializes the two strings by switching the original ones to upper
// case
String resultString1 = initialString1.toUpperCase();
String resultString2 = initialString1.toUpperCase();
// Prints out the results and the original strings
... | [
"@Test\n\tpublic void testUpperCaseConverter() {\n\t\tList<String> words = new ArrayList<>();\n\t\twords.add(\"Good\");\n\t\twords.add(\"morning\");\n\t\twords.add(\"It's\");\n\t\twords.add(\"a\");\n\t\twords.add(\"beautiful\");\n\t\twords.add(\"morning\");\n\n\t\tList<String> upperCase = new ArrayList<>();\n\t\tup... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the type of the modification | public void setType(final ModifyType type) {
this.type = type;
} | [
"public void alterType(AttrType newType) { type = newType; }",
"void changeType(NoteTypes newType) {\n this.type = newType;\n }",
"public void setType(Object type) {\n this.type = type;\n }",
"public void setType(Type t) {\n type = t;\n }",
"void setType(Type t);",
"public void set... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a factory to create a JacksonDatabindHandle instance for POJO instances of the specified classes. | static public ContentHandleFactory newFactory(ObjectMapper mapper, Class<?>... pojoClasses) {
if (mapper == null || pojoClasses == null || pojoClasses.length == 0) return null;
return new JacksonDatabindHandleFactory(mapper, pojoClasses);
} | [
"static public ContentHandleFactory newFactory(Class<?>... pojoClasses)\n throws JAXBException {\n if (pojoClasses == null || pojoClasses.length == 0)\n return null;\n return new JAXBHandleFactory(pojoClasses);\n }",
"static public ContentHandleFactory newFactory(JAXBContext context, Class<?>... po... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
KMedians used to blow up when we tried to cluster a collection w/only one particle. This checks for that. | public void testKMediansOneParticle() throws Exception {
Connection con = db.getCon();
Statement stmt = con.createStatement();
stmt.executeUpdate("DELETE from AtomMembership where collectionId = 2");
stmt.executeUpdate("DELETE from InternalAtomOrder where collectionId = 2");
stmt.executeUpda... | [
"protected boolean isClusterRequired() {\n return true;\n }",
"void errorCheck2(int gene) {\n boolean error2 = false;\r\n Vector foundInClusters = new Vector();\r\n \r\n for (int j = 0; j < clusterVector.size(); j++) {\r\n if (isFound(gene, (Vector)clusterVector.ge... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Keeps the stack trace of the cause (for logging purposes). | private void setCauseStackTrace(Throwable arg0) {
if (arg0 != null) {
StringWriter sw = new StringWriter();
PrintWriter pw = new PrintWriter(sw);
arg0.printStackTrace(pw);
setCauseStackTrace(sw.getBuffer().toString());
}
} | [
"Throwable getCause();",
"private String stackTraceString()\n {\n StringBuffer sb = new StringBuffer();\n \n // Main stacktrace\n StackTraceElement[] stack = getStackTrace();\n stackTraceStringBuffer(sb, this.toString(), stack, 0);\n \n // The cause(s)\n Throwable cause = getCause();\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the value of the 'Transactionanme' attribute. If the meaning of the 'Transactionanme' attribute isn't clear, there really should be more of a description here... | String getTransactionanme(); | [
"public BigDecimal getTransactionAmont() {\n return transactionAmont;\n }",
"public java.lang.CharSequence getTransactionAmount() {\n return transaction_amount;\n }",
"public String getTransactionAttribute() {\n\treturn this.transactionAttribute;\n }",
"public String getTransactionNo() {\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method is deprecated and won't do anything if the database repository file paths are null or empty. We use reflection here to avoid having to reference PersistenceService directly since it may or may not be on our classpath depending on whether or not KSB is in use. | @Deprecated
protected void loadOjbRepositoryFiles() {
String persistenceServiceOjbName = "persistenceServiceOjb";
if (getDatabaseRepositoryFilePaths() != null) {
for (String repositoryLocation : getDatabaseRepositoryFilePaths()) {
// Need the OJB persistence service becau... | [
"private static PersistenceService getPersistenceService() {\n return SpringContext.getBean(PersistenceService.class);\n }",
"private static void setupDatabase() {\n if (properties.getProperty(\"dbManagerClass\") != null) {\n try {\n Class<?> dbManager = \n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the unique Dispatcher instance. This methods returns the same instance, always. | public static Dispatcher getDispatcher() {
return DISPATCHER;
} | [
"public static DispatcherAdapter getDispatcher() {\n return dispatcher;\n }",
"private Dispatcher getDispatcher()\r\n \t{\r\n \t\treturn getDirectory().getContext().getDispatcher();\r\n \t}",
"public Dispatcher getDispatcher();",
"public IDispatcher getDispatcher() {\r\n\t\treturn dispatcher;\r\n\t}... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns spatial cell first corner | public Cell getCellSpatialFirstCorner(int x, int y){
for (SuperCell s:cellList){
if (s.getX()==x && s.getY()==y)
return s.getFirstCorner();
}
return null;
} | [
"public int getCellSpatialFirstCornerX(int x, int y){\n for (SuperCell s:cellList){\n if (s.getX()==x && s.getY()==y)\n return s.getFirstCorner().getX();\n }\n return 0;\n }",
"int getCorner();",
"private Point findTopLeftCornerPoint() {\n return new Poin... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
sets the text in this buffer | public void setText (String text) {
this.text = text;
} | [
"private void setText(Text text) {\n \t\tthis.text = text;\n \t}",
"public void setText(String text){\n this.roomText = text;\n this.hasText = true;\n }",
"public void setText(String text) \n { \n this.text = text;\n }",
"public void updateText( String text ) {\n\t\tthis.text = t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a new instance of GetPartyAliasCommand | public GetPartyAliasCommand(UserVisitPK userVisitPK, GetPartyAliasForm form) {
super(userVisitPK, form, new CommandSecurityDefinition(List.of(
new PartyTypeDefinition(PartyTypes.UTILITY.name(), null),
new PartyTypeDefinition(PartyTypes.EMPLOYEE.name(), List.of(
... | [
"public org.apache.tools.ant.taskdefs.Antlib.Alias createAlias() {\n org.apache.tools.ant.taskdefs.Antlib.Alias als = new org.apache.tools.ant.taskdefs.Antlib.Alias();\n aliases.add(als);\n return als;\n }",
"public AddPartyCommand(Point location) {\n this.location = location;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Function Name:getRequisitionDetailsByStatus() Input Parameters:rmId, status Return Type:List Throws : OIRSException Author :Kamatchi, Anusha Creation Date:07/07/2018 Description:Getting requisition details based on status | @Override
public List<RequisitionBean> getRequisitionDetailsByStatus(String rmId,
String status) throws OIRSException {
// TODO Auto-generated method stub
List<RequisitionBean> list = new ArrayList<>();
connection = DBConnection.getConnection();
PreparedStatement preparedStatement=null;
ResultSet r... | [
"@Override\r\n\tpublic List<RequisitionBean> getRequisitionDetails(String rmId)\r\n\t\t\tthrows OIRSException {\r\n\t\t// TODO Auto-generated method stub\r\n\r\n\t\tList<RequisitionBean> list = new ArrayList<>();\r\n\t\tconnection = DBConnection.getConnection();\r\n\t\tPreparedStatement preparedStatement=null;\r\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a new scope for variables and enters it. Variables declared after this call will hide previous variables and will cease to to be visible after the corresponding leaveVariableScope call. The leaveVariableScope function is usually called by leaveSubroutine. | public void enterVariableScope() {
variableStack.addFirst(variableTable);
depth++;
debug("Enter variable scope.");
} | [
"public void addNewScope(){\n List<String> varScope = new ArrayList<>();\n newVarInCurrentScope.add(varScope);\n\n List<String> objScope = new ArrayList<>();\n newObjInCurrentScope.add(objScope);\n }",
"public void enterScope() {\n hash = new Hashtable<String, Object>();\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create a SelectedCourse from a Course and a semester. | public SelectedCourse(Course course, int semester) throws IllegalArgumentException, CourseCannotStartInThisSemesterException {
super(course.getCourseID(), course.getCourseName() );
if(!SelectedCourse.isValidSemester(semester))
throw new IllegalArgumentException();
if(!course.canStartInSemester(semester)) {... | [
"@Transactional\n\tpublic CourseOffering createCourseOffering(String semester, Date createdDate) {\n\t\t\n\t\tCourseOffering courseOffering;\n\t\t\n\t\t/*\n\t\t * TODO\n\t\t * Error checking\n\t\t */\n\t\t\n\t\tcourseOffering = new CourseOffering();\n\t\tcourseOffering.setSemester(semester);\n\t\tcourseOffering.set... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test that the end of source condition is correctly reported. | public void testEndOfSource()
{
testListenerAdd();
try
{
testObject.loop(TEST_OBJECTS.length + 1);
fail("LoopSourceExhaustedException was not thrown!");
}
catch (LoopException e1)
{
if (e1 instanceof LoopSourceExhaustedException)
{
}
else
{
fai... | [
"@Test\n void getEndingLineTest() {\n assertThat(source.getEndingLine()).isEqualTo(ENDINGLINE);\n }",
"public static void endStep() {\n\t\tTestNotify.log(GenLogTC() + \"has been tested.\");\n\t}",
"private void assertNextPastEndOfDataThrowsException(MessageSource<?> source) throws Exception {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method initializes jTextFieldId | private JTextField getJTextFieldId() {
if (jTextFieldId == null) {
jTextFieldId = new JTextField();
jTextFieldId.setPreferredSize(new Dimension(50, 20));
}
return jTextFieldId;
} | [
"private JTextField getJTextFieldID() {\r\n\t\tif (jTextFieldID == null) {\r\n\t\t\tjTextFieldID = new JTextField();\r\n\t\t\tjTextFieldID.setEditable(false);\r\n\t\t\tjTextFieldID.setBounds(new Rectangle(135, 45, 121, 16));\r\n\t\t}\r\n\t\treturn jTextFieldID;\r\n\t}",
"public PanelNuevaCarrera() {\n init... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Loads the courses from a specified filename given by the user. Throws an illegal argument exception if the there is a file not found exception. | public void loadCoursesFromFile(String fileName) {
try {
courseDirectory = CourseRecordIO.readCourseRecords(fileName);
} catch (FileNotFoundException e) {
throw new IllegalArgumentException();
}
} | [
"private void loadSavedCourses() {\n courseList = new CourseList(new ArrayList<>());\n try {\n courseList = reader.readCourseList();\n } catch (IOException ioe) {\n System.err.println(\"Course File Missing\");\n } catch (JSONException je) {\n System.err.p... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Stock Summary per day | private static void stockSummaryPerDay(List<Inventory> inventoryList) {
System.out.println("\nStock Summary per day:");
inventoryList.forEach(c1);
} | [
"public static void printDailyVolumeForSingleStock() throws Exception {\r\n\t\tString symbol = \"GOOG\";\r\n\t\tFile file = new File(StockConst.INTRADAY_DIRECTORY_PATH_GOOGLE + symbol + \".txt\");\r\n\t\tMultiDaysCandleList mdstockCandleList = getIntraDaystockCandleList(file);\r\n\t\tfor (int i = 0; i < mdstockCand... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get nt:unstructured and verify it has no primary item name ... | @Test( expected = ItemNotFoundException.class )
public void shouldFailToReturnItemFromGetPrimaryItemIfPrimaryTypeDoesNotHavePrimaryItemName() throws Exception {
NodeType ntUnstructured = nodeTypes.getNodeType("nt:unstructured");
assertThat(ntUnstructured, is(notNullValue()));
assertThat(ntUn... | [
"boolean isNilItemtype();",
"private boolean isNamedPropertiesStringStream(TreeItem<DirectoryEntryData> item)\n\t{\n\t\treturn isNamedPropertiesEntry(item) && item.previousSibling() != null && item.previousSibling().previousSibling() != null && item.previousSibling().previousSibling().previousSibling() == null;\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test SessionRegister.createRegister(), SessionRegister.updateRegister(), SessionRegister.deleteRegister(), SessionRegister.findRegister() | @Test
public void createNewRegisters() {
// Get services
UserService us = new UserService();
ActivityService as = new ActivityService();
ActivitySessionService ass = new ActivitySessionService();
// Retrieve users
User u1 = us.findUserByUsername("kchristofilos"); // this user is a tutor
User u2 = us.f... | [
"@Test\n public void testRegisterSuccessfully() {\n SignUpRequest request = new SignUpRequest(UNIQUE, \"Secret\");\n\n dao.register(request);\n\n verify(controller).registered();\n }",
"@Test\n public void testPatientUserRegistration() throws Exception {\n // create a user r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
substractByKey example removes from the first set the categories contained in the second set (remove the keys contained in the second RDD from the first RDD). | public JavaPairRDD<String, Integer> substractExample(){
return firstSet
.subtractByKey(secondSet);
} | [
"void removeSubset( String key );",
"public void removeAll(String k1, String k2) {\n java.util.HashMap<String, V> newMap = new java.util.HashMap<String, V>(map);\n for (String key: newMap.keySet()) {\n int ind = key.indexOf(\"|\");\n String a = key.substring(0, ind);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
To check Valid EmailId Format TestCase. | @Test
public void validEmailIdIsTested() throws InValidEmailException {
String emailId = "divyamar@gmail.com";
boolean isValidMail = EmailValidatorUtil.isValidEmailId(emailId, "InValid EmailId Format");
assertTrue(isValidMail);
} | [
"@Test\n\tpublic void inValidEmailIdIsTested() {\n\t\ttry {\n\t\t\tString emailId = \"divyagmail.com\";\n\t\t\tboolean isValidMail = EmailValidatorUtil.isValidEmailId(emailId, \"InValid EmailID Format\");\n\t\t\tassertFalse(isValidMail);\n\t\t} catch (Exception e) {\n\t\t\tassertEquals(\"InValid EmailID Format\", e... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Saves a number of updates to the registry file on disk. | public final CDR save(List<? extends RegistryUpdate> deltas) throws IOException, CloverRegistryException {
if (!saved.getAndSet(true)) {
return saveImpl(deltas);
} else {
throw new IllegalStateException("Registry file already committed to disk");
}
} | [
"public static void writeFile(){\r\n\t\tFile file = new File(path);\r\n\t\ttry {\r\n\t\t\tFileWriter fw = new FileWriter(file, false);\r\n\t\t\tfor (String s: updates.keySet()){\r\n\t\t\t\tfw.write(s + \", \" + updates.get(s));\r\n\t\t\t\tfw.write(System.getProperty(\"line.separator\"));\r\n\t\t\t}\r\n\t\t\tfw.flus... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test of stationaryDistributionRevQuick method, of class MarkovModelUtilities. | @Test
public void testStationaryDistributionRevQuick()
{
IDoubleArray T = null;
MarkovModelUtilities instance = new MarkovModelUtilities();
IDoubleArray expResult = null;
IDoubleArray result = instance.stationaryDistributionRevQuick(T);
assertEquals(expResult, result);
... | [
"@Test\n public void testStationaryDistribution()\n {\n try\n {\n IDoubleArray T = Doubles.create.fromFile(inputT1);\n IDoubleArray expResult = Doubles.create.fromFile(inputT1_pi); \n IDoubleArray pi = MarkovModel.util.stationaryDistribution(T);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter of the property ilaveYukseklik | public void setIlaveYukseklik(Double ilaveYukseklik) {
this.ilaveYukseklik = ilaveYukseklik;
} | [
"public Double getIlaveYukseklik() {\r\n\t\treturn ilaveYukseklik;\r\n\t}",
"public void setIlaveKatSayisi(Integer ilaveKatSayisi) {\r\n\t\tthis.ilaveKatSayisi = ilaveKatSayisi;\r\n\t}",
"public Integer getIlaveKatSayisi() {\r\n\t\treturn ilaveKatSayisi;\r\n\t}",
"public void setYKienDanhGia(String yKienDanhG... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ JUnitTest for calPerimeterRectangle method in Rectangle class Input: not Output: pass | @Test
public void testcalPerimeterRectangle2() {
double ex = 8;
startPoint.setX(-1);
startPoint.setY(-1);
endPoint.setX(-3);
endPoint.setY(-3);
double ac = rec.calPerimeterRectangle(startPoint, endPoint);
assertEquals(ex, ac, 0);
} | [
"@Test\n public void testcalPerimeterRectangle4() {\n double ex = 8;\n \n startPoint.setX(-1);\n startPoint.setY(-1);\n endPoint.setX(3);\n endPoint.setY(3);\n \n double ac = rec.calPerimeterRectangle(startPoint, endPoint);\n assertNotEquals(ex, ac, ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Handles the insertion of hashes by the user. If the user has opened hashes then it inserts a closing hash after the opened hash and does not move the caret. If the user is closing some hashes it steps through the existing quote. | private void handleHashes(IDocument doc, DocumentCommand docCommand)
throws BadLocationException {
char nextChar = (char) 0;
try {
nextChar = doc.getChar(docCommand.offset);
} catch (BadLocationException bex) {
// do nothing
}
if (nextChar == '#' && isLineBalanced(doc, docCommand, '#')) {
docComma... | [
"private void handleQuotes(IDocument doc, DocumentCommand docCommand,char quoteChar)\n\t\tthrows BadLocationException {\n\t\tchar nextChar = (char) 0;\n\t\tchar prevChar = (char) 0;\n\t\tboolean shouldSkipNextChar = false;\n\t\tboolean shouldAddTwo = true;\n\t\t\n\t\t//@Jared: added this to allow quote characters a... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the foos before and after the current foo in the ordered set where groupId = &63;. | public com.sohlman.liferay.foobar.model.Foo[] findByGroup_PrevAndNext(
long fooId, long groupId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException,
com.sohlman.liferay.foobar.NoSuchFooException; | [
"public com.sohlman.liferay.foobar.model.Foo[] filterFindByGroup_PrevAndNext(\n long fooId, long groupId,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException,\n com.sohlman.liferay.foobar.NoSuchFooExceptio... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns all rows from the ARR_ENF_INTRODUCTORES table that match the criteria 'CALIBRE = :calibre'. | public ArrEnfIntroductores[] findWhereCalibreEquals(String calibre) throws ArrEnfIntroductoresDaoException; | [
"public EmergenciaCreditoFacturaRealizada[] findWhereRfcReceptorEquals(String rfcReceptor) throws EmergenciaCreditoFacturaRealizadaDaoException;",
"public List<Incidencia> getIncidenciaByOrigen(Empleado e) throws XMLDBException;",
"public ResultSet getAllInterDetails(){\n ResultSet rst = null;\n\n\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Finds the most recent BikeData for all active bikes in the system. | public ArrayList<BikeData> getAllRecentData (){
ArrayList<BikeData> datalist = new ArrayList<>();
try(
Connection con = DatabaseConnector.getConnection();
PreparedStatement ps = con.prepareStatement(ALL_RECENT_DATA);
ResultSet rs = ps.executeQuery()){
... | [
"public BikeData getRecentData(Bike bike){ //Returns a BikeData object with the most recent data for the specified bike\n\n try(Connection con = DatabaseConnector.getConnection();\n PreparedStatement ps = con.prepareStatement(RECENT_BIKE_DATA + bike.getBikeId());\n ResultSet rs = ps.exe... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create single AppartmentClass object using database row with passed id. | public ApartmentClass getApClassById(int id); | [
"@Override\n public long create(Apartment apartmentData) {\n\tApartment newApartment = new Apartment(apartmentData);\n\tem.persist(newApartment);\n\tem.flush();\n\treturn newApartment.getId();\n }",
"@Override\n public Apartment findById(long id) throws EntityNotFoundException {\n\tApartment existingApar... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a button and adds it to the given box. A listener is registered for an action having the same name than the button label. | private JButton createButton(final Box addTo, final String label) {
JButton button = new JButton(label);
button.setActionCommand(label);
button.addActionListener(this);
addTo.add(button);
return button;
} | [
"private void addButton()\n {\n JButton button = new JButton();\n button.setSize(200, 30);\n button.setName(\"login\");\n button.setAction(new CreateUserAction());\n add(button);\n button.setText(\"Login\");\n }",
"private Component createAddButton() {\n\t\tJButton ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
EFFECTS: Prints all the schedules in scheduleList that have the classes the user wants | public void showAllSchedulesFiltered(ArrayList<Scheduler> schedulesToPrint) {
ArrayList<String> filters = new ArrayList<>();
while (yesNoQuestion("Would you like to filter for another class?")) {
System.out.println("What is the Base name of the class you want to filter for "
... | [
"public void showAllSchedules(ArrayList<Scheduler> schedulesToPrint) {\n for (int i = 0; i < schedulesToPrint.size(); i++) {\n System.out.println(\" ____ \" + (i + 1) + \":\");\n printSchedule(schedulesToPrint.get(i));\n System.out.println(\" ____ \");\n }\n }",
"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Load the materialized views names as a list and return them. | protected List<String> loadMaterializedViewsAsList() throws SQLException {
if (materializedViews == null) {
materializedViews = new ArrayList<String>();
final Statement stm = sqlConnection.createStatement();
final ResultSet resultSet = stm.executeQuery(materializedViewsSelect);
while (resultSet... | [
"List<String> listViews(String databaseName) throws DatabaseNotExistException, CatalogException;",
"List<String> lsview(boolean onlyActiveDynamicViews) throws IOException,\n InterruptedException;",
"public String[] getDbaViewsNames() throws SQLExcept... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates the global scope. | public GlobalScope() {
super(null);
} | [
"Global createGlobal();",
"Scope createScope();",
"static ScriptableObject newStaticScope()\n {\n ScriptableObject sharedGlobalScope = SharedScope.get();\n ScriptableObject programScope = (ScriptableObject)Context.getCurrentContext().newObject( sharedGlobalScope );\n programScope.setPrototype( sharedG... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Loads an SVG file for a given asset. | public SVG getSVGForAsset(String path, String name, String suffix, Integer searchColor, Integer replaceColor) {
String file = path + "/" + name;
if (suffix != null) {
file += "_" + suffix;
}
file += ".svg";
try {
if (searchColor == null) {
... | [
"public SVGBuilder readFromAsset(AssetManager assetMngr, String svgPath) throws IOException {\n this.data = assetMngr.open(svgPath);\n return this;\n }",
"public SVG getSVGForAsset(String path, String name, String suffix) {\n return getSVGForAsset(path, name, suffix, null, null);\n }",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test of checkCoordinates with a valid Integer | @Test
void testCheckCoordinates8() {
assertTrue(DataChecker.checkCoordinate(new Integer(5)));
} | [
"@Test\n\tvoid testCheckCoordinates4() {\n\t\tassertFalse(DataChecker.checkCoordinate(-100));\n\t}",
"@Test\n\tvoid testCheckCoordinates5() {\n\t\tassertFalse(DataChecker.checkCoordinate(100));\n\t}",
"private boolean validCoordinates(int x, int y)\n {\n return (x > 0 && x < SIZE - 1 && y > 0 && y < S... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns a list of MFCC features for the provided STFT using the default settings. | public static List<MFCC> calculate(STFT stft) {
List<Spectrum> spectra = stft.getMagnitudeSpectrum();
List<MFCC> list = new ArrayList<>(spectra.size());
for (Spectrum spectrum : spectra) {
MFCC mfcc = new MFCC();
mfcc.calculate(spectrum, stft.getSamplingrate(), stft.getNu... | [
"public static List<MFCC> calculate(STFT stft, int cepstra, int melfilters, float minFrequency) {\n List<Spectrum> spectra = stft.getMagnitudeSpectrum();\n List<MFCC> list = new ArrayList<>(spectra.size());\n for (Spectrum spectrum : spectra) {\n MFCC mfcc = new MFCC(cepstra, melfilt... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "ruleDSLManaged" $ANTLR start "entryRuleDSLManagerController" InternalSasDsl.g:2779:1: entryRuleDSLManagerController returns [EObject current=null] : iv_ruleDSLManagerController= ruleDSLManagerController EOF ; | public final EObject entryRuleDSLManagerController() throws RecognitionException {
EObject current = null;
EObject iv_ruleDSLManagerController = null;
try {
// InternalSasDsl.g:2779:61: (iv_ruleDSLManagerController= ruleDSLManagerController EOF )
// InternalSasDsl.g:27... | [
"public final EObject entryRuleDSLRuleMController() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleDSLRuleMController = null;\n\n\n try {\n // InternalSasDsl.g:272:59: (iv_ruleDSLRuleMController= ruleDSLRuleMController EOF )\n // InternalSasDsl.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Obtain feedback documents for the specified query request | public abstract FeedbackDocuments getFeedbackDocuments(String topicId); | [
"@POST\n @Path(\"documentList\")\n public Object documentList(@Context\n HttpServletRequest request) throws Exception {\n FormData formData = new FormData(request);\n \n String lang = formData.getString(\"lang\");\n setLanguage(lang);\n \n // get the arguments\n S... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column account.location_ids | public String getLocationIds() {
return locationIds;
} | [
"@JsonIgnore\r\n public String getLocationIds() {\r\n return OptionalNullable.getFrom(locationIds);\r\n }",
"@JsonGetter(\"location_ids\")\r\n public List<String> getLocationIds() { \r\n return this.locationIds;\r\n }",
"@ApiModelProperty(value = \"Filters results by `Location` ID. Onl... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Notifies the completion of the "close BLE connection" command. | void onCloseBleComplete(); | [
"void onNotifyChipConnectionClosed();",
"@Override\n public void finishBLE() {\n try {\n _btGatt.disconnect();\n } catch (Exception e) {\n System.out.println(e.toString());\n }\n _btAdapter = null;\n }",
"void connectionClosed(Connection connection);",
"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
To Clear Array List In MiniCart | public void emptyArrayList_ListOfMiniCartItems() {
ListOfMiniCartItems.clear();
System.out.println(" Clear Mini-Cart Item Array List: " + ListOfMiniCartItems);
} | [
"public void clearArrayTransaction(){\r\n arraylist.clear();\r\n }",
"public void emptyCart() {\n products.clear();\n }",
"public void emptyArrayList_DeletedItemsFromShoppingCard() {\n listOfDeletedItemNameShoppingCart.clear();\n System.out.println(\" Clear Deleted Items sto... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the title of this buy sell products. | @Override
public java.lang.String getTitle() {
return _buySellProducts.getTitle();
} | [
"public String getProductTitle() {\n\t\treturn productTitle;\n\t}",
"public java.lang.String getProductName() {\n\t\treturn _adsItem.getProductName();\n\t}",
"public static String productTitle(WebDriver driver)\r\n\t{\r\n\r\n\t\ttry\r\n\t\t{\r\n\r\n\t\t\ttitle=ShoppingCart.productTitle_lbl(driver).getText();\t\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the list of all security roles assigned to the current user. No role is required to execute this method. | @PermitAll
@Override
public List<Role> getCurrentUserRoles() {
Map params = new HashMap<String, Object>();
params.put(CommonSqlProvider.PARAM_QUERY, Role.QUERY_GET_ROLES_BY_USER_NAME);
params.put(User.PARAM_USERNAME, this.getUserName());
return getRepository().getEntityList(Role.... | [
"public List<SecRole> getAllRoles();",
"public List<Role> getAllRoles();",
"List<RoleEntity> getSystemRoles();",
"public java.util.Enumeration enumerateSecurityRole() {\n return _securityRoleList.elements();\n }",
"Role getRoles();",
"public List<Role> getRoles() {\n return roles;\n }"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
updates the percentage value | private void updatePercentage() {
int percent = correctAns * 25;
percentage = percent;
qPercentage.setText(getResources().getString(R.string.scorePercentage) + " " + percent + "%");
} | [
"public void updatePercentage() {\n if (progress < 100) {\n TextViewProzentAnzeige.setText(progress + \"%\");\n ProgressBar.getProgressDrawable().clearColorFilter();\n } else {\n TextViewProzentAnzeige.setText(R.string.mehrAls100);\n ProgressBar.getProgress... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates and executes a ScheduledFuture that becomes enabled after the given delay. | public <V> ScheduledFuture<V> schedule(Callable<V> callable, long delay, TimeUnit unit); | [
"ScheduledFuture<?> scheduleTask(long delay, Runnable runnable) {\n return timeoutTaskExecutor.schedule(runnable, delay, TimeUnit.MILLISECONDS);\n }",
"public ScheduledFuture<?> scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit);",
"public ScheduledFuture<?> schedul... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Inicializa Partida sin el argumento [u] | public static void inicializacionPartidaConsola() {
Scanner in = new Scanner(System.in);
ControladorConsola c = new ControladorConsola(f, p, in);
new VistaConsola(c);
c.run();
} | [
"private void PreparePartie(){\n MaitreDuJeu.getInstance().miseAZero();\n MaitreDuJeu.getInstance().instancierPlateau();\n MaitreDuJeu.getInstance().instancierPanda();\n MaitreDuJeu.getInstance().instancierJardinier();\n MaitreDuJeu.getInstance().instancierPiocheParcelle();\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
makes time pass, raises pet's needs, if pet sleepiness level is above 8 it will go to sleep, if it's hunger level is above 8, it will run away. | public void tick() {
if (this.hungerLevel > 8) {
this.hasRunAway = true;
} else {
this.hungerLevel++;
}
if (this.boredomLevel < 10) {
this.boredomLevel++;
}
this.sleepinessLevel++;
if (this.sleepinessLevel > 8) {
this.sleep();
}
} | [
"@Override\n\tpublic int tick() {\n\t\thealthLevel -= 2;\n\t\thappinessLevel -= 2;\n\t\thungerLevel -= 2;\n\t\tthirstLevel += 2;\n\t\tcageCleanliness -= 5;\n\t\treturn wasteLevel += 5;\n\t\t\n\t\t\n\t\t\n\t}",
"public void checkSpecialConditions(Tower t){\r\n\r\n\r\n //strength tower's special ability is t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__AstAbstractActor__Alternatives" $ANTLR start "rule__AstTypeDefinition__Alternatives_4" ../org.caltoopia.frontend.ui/srcgen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2638:1: rule__AstTypeDefinition__Alternatives_4 : ( ( ( rule__AstTypeDefinition__Group_4_0__0 ) ) | ( ( rule__... | public final void rule__AstTypeDefinition__Alternatives_4() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:2642:1: ( ( ( rule__AstTypeDefinition_... | [
"public final void rule__AstTypeDefinition__Group__4__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:6828:1: ( ( ( rule__AstTyp... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__ResumeItems__Group__5" $ANTLR start "rule__ResumeItems__Group__5__Impl" InternalLPDSL.g:2352:1: rule__ResumeItems__Group__5__Impl : ( ( rule__ResumeItems__DescriptionAssignment_5 ) ) ; | public final void rule__ResumeItems__Group__5__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalLPDSL.g:2356:1: ( ( ( rule__ResumeItems__DescriptionAssignment_5 ) ) )
// InternalLPDSL.g:2357:1: ( ( rule__ResumeItems__Descri... | [
"public final void rule__Items__Group__2__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalLPDSL.g:2193:1: ( ( ( rule__Items__DescriptionAssignment_2 ) ) )\r\n // InternalLPDSL.g:2194:1: ( ( rule__Items__Desc... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the verified of this comment. | @Override
public boolean getVerified() {
return _comment.getVerified();
} | [
"@Override\n\tpublic boolean isVerified() {\n\t\treturn _comment.isVerified();\n\t}",
"public boolean getVerified() {\n return verified;\n }",
"public boolean getVerified() {\n return verified;\n }",
"public int getIsVerified() {\r\n return isVerified;\r\n }",
"boolean isVerified();",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get option index for symbol | Index getIndex(String symbol); | [
"private int findOption(Option option) {\n\t\tfor (int i = 0; i < options.size(); ++i) {\n\t\t\tif (options.get(i).getName().equalsIgnoreCase(option.getName())) {\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\n\t\treturn -1;\n\t}",
"protected int getOptionIndex(String name){\n\n\n\n\t\tint i=0;\n\n\t\tfor (Option aChoic... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Endereco e = (Endereco) parent.getItemAtPosition(position); mapView.zoomToScale(e.getPoint(), selectionScale); | @Override
public void onItemClick(AdapterView<?> parent, final View view,
int position, long id) {
mapView.zoomToScale(enderecos[position].getPoint(), selectionScale);
} | [
"public void zoomToAustria() {\n if (map != null) {\n List<GeoPoint> boxPoints = new ArrayList<>();\n boxPoints.add(new GeoPoint(47.254028, 9.399102));\n boxPoints.add(new GeoPoint(46.532729, 14.053614));\n boxPoints.add(new GeoPoint(48.035731, 17.365241));\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by Apache iBATIS ibator. This method returns the value of the database column HR_CELL_DCRS_QOS.CELLID | public String getCellid() {
return cellid;
} | [
"int getCellid();",
"int getCellId();",
"public int getCellid() {\n return cellid_;\n }",
"public long getCellId() {\n\t\treturn cellId;\n\t}",
"int getClientCellid();",
"public String getCellIdProperty() {\r\n return getAttributeAsString(\"cellIdProperty\");\r\n }",
"private int ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the value of the LogicalName field. | public void setLogicalName(java.lang.String value); | [
"public int setLogicalName( String newval) throws YAPI_Exception\n\n { return set_logicalName(newval); }",
"public void setLname(String value) {\n setAttributeInternal(LNAME, value);\n }",
"public void setName(String newVal) {\n if ((newVal != null && this.name != null && (newVal.compareTo(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
POST /etapeexamen : Create a new etapeExamen. | @PostMapping("/etape-examen")
public ResponseEntity<EtapeExamenDTO> createEtapeExamen(@Valid @RequestBody EtapeExamenDTO etapeExamenDTO) throws URISyntaxException {
log.debug("REST request to save EtapeExamen : {}", etapeExamenDTO);
if (etapeExamenDTO.getId() != null) {
throw new BadRequ... | [
"@PostMapping(\"/etapas\")\n @Timed\n public ResponseEntity<Etapa> createEtapa(@RequestBody Etapa etapa) throws URISyntaxException {\n log.debug(\"REST request to save Etapa : {}\", etapa);\n if (etapa.getId() != null) {\n throw new BadRequestAlertException(\"A new etapa cannot alread... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the result of interpreting the object as an instance of 'Whenever Holds Statement'. This implementation returns null; returning a nonnull result will terminate the switch. | public T caseWheneverHoldsStatement(WheneverHoldsStatement object) {
return null;
} | [
"public T caseWheneverStatement(WheneverStatement object) {\n\t\treturn null;\n\t}",
"public T caseWheneverBecomesTrueStatement(WheneverBecomesTrueStatement object) {\n\t\treturn null;\n\t}",
"public T caseWheneverOccursStatement(WheneverOccursStatement object) {\n\t\treturn null;\n\t}",
"public T caseWheneve... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
First shift compared all element with the next element So for a given line of 4, compare 1 with 2, 2 with 3 and 3 with 4 | private boolean testLinesOf4(long board, int shiftValue) {
long firstShiftedBoard = shiftAndMergeBoard(board, shiftValue);
// Second shift (twice of the first) compared each previous results with the next-next element
// So for in fact, result compare of 1 and 2 is compared with result compare o... | [
"void tripleShift() {\n\t // COMPLETE THIS METHOD\n\t\tSeqNode head = seqRear.next;\n\t\tSeqNode lastNode = seqRear;\n\t\tint nodeValue = head.seqValue;\n\t\tint firstNodeValue = head.seqValue;\n\t\tSeqNode firstFlag;\n\t\tSeqNode node = head;\n\t\tif ((seqRear.seqValue == 28 || seqRear.seqValue == 27) && (head.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Called to update position of image label / redraws it | public void setImageLabel() {
imageLabel.setScale(scale);
imageLabel.setPos(xPos, yPos);
setPreferredSize(new Dimension(SIZE, SIZE));
imageLabel.setBackground(Color.WHITE);
if (currImage != null) imageLabel.setBounds(xPos, yPos, currImage.getIconWidth(), currImage.getIconHeight()... | [
"public final void updateLabel() {\n\t\tsetImage(new GreenfootImage(\n\t\t\t\t\tmetrics.stringWidth(getLabel()) + doublePadding,\n\t\t\t\t\tmetrics.getAscent() + metrics.getDescent() + doublePadding));\n\n\t\tredraw();\n\t}",
"public void updatePosition() {\n\t\timage.setTranslateX(0);\n\t\timage.setTranslateY(0)... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a new instance of Configuracion | public Configuracion(){
} | [
"private Config() {\n }",
"Configuration createConfiguration();",
"public Config create(String namespace);",
"public Config() {\n this(System.getProperties());\n\n }",
"public ConfigExample() {\n }",
"public static UneiConfiguration tryInstanciate() {\n\t\tInstance.callBuilder();\n\t\treturn getIn... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Used to confirm with user the batch install/uninstalls before executing. Will call either batch install or batch uninstall | public static void confirmBatchOperation(final Activity activity, final ArrayList<String> apklist, final boolean bInstall) {
//first check list - if null, punt.
if (apklist == null) {
return;
}
if (apklist.size() == 0) {
return;
}
AlertDialog.Bu... | [
"private void onPackageInstall(boolean success) {\r\n\t\tDisplay.getDefault().syncExec(new Runnable(){\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\t// Change Cancel to OK\r\n\t\t\t\t// Note startLoadPackages() will update button staate on completion\r\n\t\t\t\tif (!mButtonCancel.isDisposed()... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
UserInput is responsible to take valid Initial Position and Final Position from the user | int[] UserInput() {
Scanner stdin = new Scanner(System.in);
int[] UserInputArray = new int[4];
System.out.print("Input the starting row and column separated by a space: ");
String InitialPositionInput = stdin.nextLine();
String[] InitialPositionArray = InitialPositionInput.split(" ");
int StartingRow ... | [
"private String getFistPos(String userInput) {\n if (PATTERN_SINGLE_POSITION.matcher(userInput).matches())\n return userInput;\n\n if (PATTERN_DOUBLE_POSITION.matcher(userInput).matches())\n return userInput.substring(0, 2);\n\n return \"\";\n }",
"public void getInpu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the SortOption associated with this index. | public SortOption getSortOption() {
return sortOption;
} | [
"public Integer getSortIndex() {\r\n return sortIndex;\r\n }",
"public int getSortMode() {\n return mSortMode;\n }",
"public VisualAxisSortOption getVisualAxisSortOption() {\n return this.visualAxisSortOption;\n }",
"public Integer getSortindex() {\n return sortindex;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Called by insertItem(); method decomp. Preconditions: Duplicate item found. Postconditions: Thrown TreeException | protected void insertDuplicate() throws TreeException{
throw new TreeException ("Cannot add duplicate.");
} | [
"@Test\n\tpublic void testAddDuplicateElement() {\n\t\tThrowable caught = null;\n\t\ttry {\n\t\t\ttree.insert(\"two\");\n\t\t} catch (Exception e) {\n\t\t\tcaught = e;\n\t\t}\n\t\tassertEquals(\"Duplicate items\", caught.getMessage());\n\t}",
"protected TreeNode insertItem(TreeNode tNode, KeyedItem item) throws T... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
getter method of applResultUser | public String getApplResultUser() {
return applResultUser;
} | [
"com.lxd.protobuf.msg.result.user.User.User_ getUser();",
"public Integer getUserResult() {\n return userResult;\n }",
"SearchUser.Res getSearchUserRes();",
"public USER[] getUserRes(){\n\t\treturn userRes;\n\t}",
"public String getUserValue();",
"java.lang.String getUserIdOne();",
"User getPa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Take result set given by a request to DB shop and convert it to a list of object Article | private List<Article> convertResultQueryIntoListArticleShop(ResultSet resultQuery) throws SQLException {
List<Article> list = new ArrayList<>();
while (resultQuery.next()) {
// Retrieve by column name
String reference = resultQuery.getString("Reference");
float price... | [
"List<Article> getAllArticles();",
"public List<ArticleInfo> getArticleList(ArticleList articleList);",
"List<ArticleBean> getAllArticles();",
"public List<Article> findAll();",
"List<Articleinfo> selectAll();",
"List<Article_Info> getInfoAll();",
"@Override\n\tpublic List<Article> getAllArticles() {\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Getter method for the commit's map of children | public Map<String, CommitNode> getChildren() {
return children;
} | [
"@Override\n public ImmutableList<ObjectId> getChildren(ObjectId commitId) throws IllegalArgumentException {\n try {\n com.tinkerpop.blueprints.Index<Vertex> idIndex = graphDB.getIndex(\"identifiers\",\n Vertex.class);\n CloseableIterable<Vertex> results = nul... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method is called whenever counting number of generations for the stat functionality. This method returns countGeneration | public int getCountGeneration()
{
return countGeneration;
} | [
"public int generation()\r\n {\r\n\treturn generation;\r\n }",
"public int getNumGenerations() {\n return numGenerations;\n }",
"int getGeneration();",
"public int getGeneration ()\n {\n return generation;\n }",
"public int getGenerations() {\n return generati... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Messagetypespecific access methods appear below. /////////////////////////////////////////////////////// Accessor methods for field: infos.type Field type: int, unsigned Offset (bits): 0 Size (bits): 16 /////////////////////////////////////////////////////// Return whether the field 'infos.type' is signed (false). | public static boolean isSigned_infos_type() {
return false;
} | [
"public boolean hasType() {\n return fieldSetFlags()[2];\n }",
"public boolean hasType() {\n return fieldSetFlags()[3];\n }",
"public static int offsetBits_infos_type() {\n return 0;\n }",
"public Short getInfoType() {\r\n return infoType;\r\n }",
"public static boolean i... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create new row buffer. `in` should be newly opened data input stream, and `stripes` array should be sorted already by offset to minimize number of seeks/skips within stream. Buffer does not validate stripes on statistics, therefore they should be filtered before passing into this method. | protected InternalRowBuffer(
FSDataInputStream in,
StripeInformation[] stripes,
CompressionCodec codec,
int bufferSize) throws IOException {
if (in == null) throw new IllegalArgumentException("Null input stream");
if (stripes == null) throw new IllegalArgumentException("Null ... | [
"protected void bufferStripe() throws IOException {\n if (currentStripeIndex >= stripes.length) return;\n info = stripes[currentStripeIndex++];\n // reset state\n if (currentStream != null) {\n currentStream.close();\n currentStripe.close();\n currentStream = null;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Generated Property Setter for attribute SYM133 | @Override
public void setSym133(java.lang.Object sym133) throws G2AccessException {
setAttributeValue (SYM_133_, sym133);
} | [
"void setAttribute(PropertyNoun newattr);",
"public abstract void setK0025(String k0025);",
"public abstract void setK0021(String k0021);",
"private static String generateForSetters(String attribute, boolean isList) {\n\n String setter = NEW_LINE + FOUR_SPACE_INDENTATION + JAVA_DOC_FIRST_LINE + FOUR_SP... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test FileOutputDelimited deleted generated empty file | @Test
public void testDeleteGeneratedEmptyFile() throws Throwable {
String resources = getResourceFolder();
String outputFile = resources + "/out/test_deleteGeneratedEmptyFile.csv";
LOGGER.debug("Test file path: " + outputFile);
TFileOutputDelimitedProperties properties = createOutpu... | [
"@Test\n public void testOutputDelimited() throws Throwable {\n testOutputDelimited(false);\n }",
"@Test\n public void testOutputDelimitedStream() throws Throwable {\n testOutputDelimited(true);\n }",
"@Test\n @Ignore(\"Need to implement\")\n public void testOutputDynamicDelimite... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
update the VMs pod | private void updateVmPod(VMInstanceVO vm, long dstHostId) {
HostVO host = _hostDao.findById(dstHostId);
VMInstanceVO newVm = _vmDao.findById(vm.getId());
newVm.setPodIdToDeployIn(host.getPodId());
_vmDao.persist(newVm);
} | [
"public void updateVM() throws SQLException{\n\t\tDataBase db = DataBase.getInstance();\n\t\tResultSet rs;\n\t\tfor(VirtualMachine aux : vms){\n\t\t\tPreparedStatement ps = db.prepareStatement(\"SELECT id FROM vm WHERE id = ?\");\n\t\t\tps.setString(1, aux.getId());\n\t\t\tSystem.out.println(aux.getId());\n\t\t\tSy... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Services the CLK event. | public void service_CLK() {
if ((eccState == index_INIT) && (Extend.value)) {
state_MOVE_FWD();
transition_MovementBlockType2_1();
}
else if ((eccState == index_INIT) && (!Extend.value)) {
state_MOVE_BWD();
transition_M... | [
"public void service_CLK() {\n if ((eccState == index_INIT)) {\n state_DETECT();\n transition_PnPSensor_1(); \n }\n else if ((eccState == index_DETECT)) {\n state_DETECT();\n transition_PnPSensor_2(); \n }\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This overloaded constructor will create the root statistic log og the Statistic Entry according to given parameters. Statistic Event for creating statistic entry can be either PROXY, API, INBOUND_ENDPOINT, ENDPOINT or SEQUENCE | public StatisticsEntry(StatisticDataUnit statisticDataUnit) {
if (statisticDataUnit.isIndividualStatisticCollected()) {
StatisticsLog statisticsLog = new StatisticsLog(statisticDataUnit);
messageFlowLogs.add(statisticDataUnit.getCurrentIndex(), statisticsLog);
openLogs.add(statisticDataUnit.getCurrentIndex(... | [
"public Statistic() {\n this(null, null);\n }",
"public LogEntry() {\n super();\n timestamp = new Date();\n }",
"Statistic createStatistic();",
"public StatisticData(String statisticKey) {\n this.statisticKey = statisticKey;\n }",
"public LogEntry () {\n }",
"public void ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructs a new CaseInsensitiveElementList seeded with the elements in the given IData document. | public CaseInsensitiveElementList(IData document, Locale locale) {
this(locale);
addAll(document);
} | [
"public CaseInsensitiveElementList(IData document) {\n this(document, null);\n }",
"public CaseInsensitiveElementList() {\n this((Locale)null);\n }",
"@Override\n protected IData normalize(IData document) {\n return new CaseInsensitiveElementList<Object>(document);\n }",
"publ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Interface definition for a callback to be invoked when an error occurs while recording. | public interface OnErrorListener
{
/**
* Called when an error occurs while recording.
*
* @param mr the MediaRecorder that encountered the error
* @param what the type of error that has occurred:
* <ul>
* <li>{@link #MEDIA_RECORDER_ERROR_UNKNOWN}
* <li>{@link #MEDIA_ERROR_SERVER_DIED}... | [
"void notifyError(RecorderErrorEvent event);",
"@Override\n public void onRecorderError() {\n // TODO - Royi\n }",
"public abstract ErrorCallback<?> getErrorCallback();",
"public void onPlaybackError();",
"@Override\r\n\t\t\t\tpublic void onError (MediaRecorder theMediaRecorder, int theWhat, in... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Tell MetaWatch Manager to make the watch vibrate. | private static void sendVibrateIntent() {
Intent intent = new Intent("org.metawatch.manager.VIBRATE");
Bundle b = new Bundle();
b.putInt("vibrate_on", 500);
b.putInt("vibrate_off", 500);
b.putInt("vibrate_cycles", 3);
intent.putExtras(b);
context.sendBroadcast(intent);
return;
} | [
"public void vibrate() {\n if ((deltaX > vibrateThreshold) || (deltaY > vibrateThreshold) || (deltaZ > vibrateThreshold)) {\n v.vibrate(50);\n status = true;\n } else {\n status = false;\n }\n }",
"private void VibrateButton(){\n\t\t\n\t\tvbrate = (Vibrator... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Use CSPlantBreedSeed.newBuilder() to construct. | private CSPlantBreedSeed() {} | [
"private CSAskBreedSeed() {}",
"private SCPlantBreedSeedRet() {}",
"private SCAskBreedSeedRet() {}",
"public Source setSeed(long seed) { prng.setSeed( seed ); return this; }",
"void setSeed(final long seed);",
"public Seed() {\n this.seedId = SEED_COUNTER.getAndIncrement();\n }",
"public StAnd... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Parses csv_ml from input box to JSON object and sets to output text box | void toJSON() {
try {
JSONObject jo = parser.parseToJSO(
new StringReader(taInput.getText()), false);
String ex_str = parser.getEx().get_all_exceptions();
if (ex_str.length() > 0) {
JOptionPane.showMessageDialog(null, ex_str);
... | [
"public void reflangtojson(String csvfile, String jsonfile){\n\t\ttry {\n\t\t\tString[] line;\n\t\t\tString ligne;\n\t\t\tint nb_journal = 0;\n\t\t\tObjectMapper mapper = new ObjectMapper();\n\t\t\tFileWriter writer = new FileWriter(jsonfile, false);\n\t\t\tInputStreamReader in_csv = new InputStreamReader(new FileI... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
set the Battletower current streak for lvl 50 | public void setBTStreak50(int s)
{
battletowerCurrentStreakLvl50 = s;
} | [
"public void incCurrentWinStreak() {\n\t\tthis.currentLoseStreak = 0; \n\t\tthis.currentWinStreak +=1; \n\t}",
"public void incCurrentLoseStreak() {\n\t\tthis.currentWinStreak = 0; \n\t\tthis.currentLoseStreak +=1; \n\t}",
"public int getBTStreak50()\n\t{\n\t\treturn battletowerCurrentStreakLvl50;\n\t}",
"pub... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
On changing the transponder filter selection try to stay on the scroller page which includes the previous shown page top channel | public void onTransponderMenuSelection(ValueChangeEvent event) {
Channel lastPageTopChannel;
long filteredTranspId;
lastPageTopChannel = null;
if (!channelsManager.getChannels().isEmpty()) {
lastPageTopChannel = channelsManager.getChannels().get(
(channelsManager.getScrollerPage() - 1)
* channel... | [
"public void onSourceMenuSelection(ValueChangeEvent event) {\n\t\tChannel lastPageTopChannel;\n\t\tlong filteredSourceId;\n\n\t\tlastPageTopChannel = null;\n\t\tif (!channelsManager.getChannels().isEmpty()) {\n\t\t\tlastPageTopChannel = channelsManager.getChannels().get(\n\t\t\t\t\t(channelsManager.getScrollerPage(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructs a NameBase with a SemanticObject | public NameBase(org.semanticwb.platform.SemanticObject base)
{
super(base);
} | [
"public NamedObject(java.lang.String name, java.lang.Object object){\n\t\t\n\t\t//Throws an error if the name is null.\n\t\tif(name == null){\t\t\n\t\t\tthrow new java.lang.IllegalArgumentException(\"The name cannot be null!\");\t\t\n\t\t}\n\t\t\n\t\t this.name = name;\t\n\t\t this.object = object; \t\t\n\t}",
"p... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get a list of all recipes that are scanned and available. If recipes are not yet scanned it will return an empty list. | public static ArrayList<EasyRecipe> getAllRecipes() {
ArrayList t = new ArrayList();
t.addAll(allRecipes);
return t;
} | [
"List<T> getRecipes();",
"List<Recipe> getAllRecipes();",
"Recipe[] getRecipes();",
"private void loadRecipes(String search) {\n recipesList.clear();\n\n for (Recipe r : allRecipes) {\n if (r.check(search)) {\n recipesList.add(r);\n }\n }\n }",
"p... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Acquires a Matcher instance from the ComponentRegistry of the given Cache object. | @Inject
void injectDependencies(Cache cache) {
matcher = cache.getAdvancedCache().getComponentRegistry().getComponent(matcherImplClass);
if (matcher == null) {
throw new CacheException("Expected component implementation not found: " + matcherImplClass.getName());
}
} | [
"public Matcher getMatcher(CharSequence anInput)\n{\n if(_matcher==null)\n _matcher = getPatternCompiled().matcher(anInput);\n return _matcher;\n}",
"Cache retrieveCache(String cacheName);",
"public Matcher getMatcher(CharSequence input) {\r\n if (input == null) {\r\n throw new Il... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Clears the value of the 'APP_RGSTRY_ID' field. | public org.LNDCDC_ADS_PRPSL.PRPSL_AGCY_XMAP.apache.nifi.LNDCDC_ADS_PRPSL_PRPSL_AGCY_XMAP.Builder clearAPPRGSTRYID() {
APP_RGSTRY_ID = null;
fieldSetFlags()[5] = false;
return this;
} | [
"public void clearApplicationID() {\n genClient.clear(CacheKey.applicationID);\n }",
"public org.LNDCDC_ADS_PRPSL.PROPOSAL_LINE.apache.nifi.LNDCDC_ADS_PRPSL_PROPOSAL_LINE.Builder clearINITSRCAPPRGSTRYID() {\n INIT_SRC_APP_RGSTRY_ID = null;\n fieldSetFlags()[23] = false;\n return this;\n }",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create all the unsaved categories of the collection. | private void createUnsavedCategories(Iterable<Category> categories) {
for (Category category : categories) {
if (!category.isSaved()) {
categoriesService.create(category);
}
}
} | [
"private void buildCategories() {\n List<Category> categories = categoryService.getCategories();\n if (categories == null || categories.size() == 0) {\n throw new UnrecoverableApplicationException(\n \"no item types found in database\");\n }\n\n Map<Category... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test of getHasNegativeEmoji method, of class EncodeChromosome. | @Test
public void testGetHasNegativeEmoji() {
System.out.println("getHasNegativeEmoji");
EncodeChromosome instance = new EncodeChromosome();
instance.setHasnegativeEmoji(true);
int expResult = 1;
int result = instance.getHasNegativeEmoji();
assertEquals(expResult, res... | [
"@Test\n public void testGetHasPositiveEmoji() {\n System.out.println(\"getHasPositiveEmoji\");\n EncodeChromosome instance = new EncodeChromosome();\n instance.setHasPositiveEmoji(true);\n int expResult = 1;\n int result = instance.getHasPositiveEmoji();\n assertEquals(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method converts gender "Male or Female" to a 0 or 1 integer | private Integer updateGender(String gender) {
gender = gender.toUpperCase();
if (gender.charAt(0) == 'M') {
return 0;
}
else {
return 1;
}
} | [
"public static int gender(String gender) {\n\t\tif (gender.equals(\"M\"))\n\t\t\treturn 1;\n\t\telse\n\t\t\treturn 3;\n\t}",
"public static int checkValidGender(String gender) throws IOException {\n \t\t\n\t\tif(!gender.equals(\"M\") && !gender.equals(\"m\") && !gender.equals(\"f\") && !gender.equals(\"F\")) {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ 1st Index ChatId 2nd Index FriendName 3th Index MessagePlue(User is message Plus user or not Indication) 4rd Index ChatCount(Over all UnreadCount) When ever Message Comes IN/OUT, user name should be append into the 1st postion of the index, and remove from the old list. CR 13059 While receive the message, client need... | private void resetUnreadChatCount(boolean isCountIncrease,
String widgetName, String chatId, String friendName,
String messagePlusUser, boolean isRecordCreate){
widgetName = RecordManager.getRecordStoreName(widgetName)+"Chat";
RecordStoreParser chatAppRecord = new RecordStorePars... | [
"public int getUnreadChatMessageCountFromActiveLocals();",
"public int getUnreadChatMessageCount();",
"public static void initChattingList(){\n List<Msg> list ;\n int num = friendsList.size();\n String friendId;\n User friend;\n Log.d(\"MainActivity\",\"initChattingList,... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the user tracker ID of this user tracker. | @Override
public void setUserTrackerId(long userTrackerId) {
_userTracker.setUserTrackerId(userTrackerId);
} | [
"public void setIdUser(int id) {\n\t\tthis._idUser = id;\n\t}",
"public void setIdUser(int value) {\n this.idUser = value;\n }",
"public void setIdUser(Integer idUser) {\r\n\t\tthis.idUser = idUser;\r\n\t}",
"public void setIdUser(int idUser) {\n this.idUser = idUser;\n }",
"public void ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |