query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
Perform any additional startup. | protected void onStartup() {
// Default is do nothing.
} | [
"private void startup()\n\t{\n\t}",
"public void startup() {\n }",
"private void earlyStartupInternal() {\n\t}",
"@Override\r\n\t\t\tprotected void startup() throws Exception {\n\t\t\t\tsuper.startup();\r\n\t\t\t}",
"public void startup() {\n\tstart();\t\n }",
"protected void specialStartUp() throws... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test si une exception SpawnException est bien jetee si un joueur est au meme endroit qu'un mur. | @Test (expected=SpawnException.class)
public void testSpawnExceptionJoueurMur(){
initialiserObjet(Element.DOOR, 11,11);
initialiserObjet(Element.WALL, joueur.x, joueur.y);
Sauvegarde s = new Sauvegarde();
s.sauvegarderPartie("save/testSauvegardeTest.txt", Difficulte.FACILE, monde, 2,... | [
"public boolean alreadyBeenSpawned()\n\t{\n\t\treturn alreadyBeenSpawned;\n\t}",
"@Test(timeout = 4000)\n public void test32() throws Throwable {\n Player player0 = new Player(2, \"}- Q\", \"c6<isBrBJ1XG~\", (-4557));\n // Undeclared exception!\n try { \n player0.isJoinOK((Player) null, f... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
If stop() was called in the meantime, stop the SDK again; otherwise, we're up and running | @Override
public void onSdkReady() {
if (state == State.STOPPING) {
doStop();
} else {
Log.d(LOG_TAG, state.name() + " -> STARTED");
state = State.STARTED;
discoverDevices();
}
} | [
"protected void stop() {\n if (keepRunning) {\n keepRunning = false;\n }\n }",
"protected void stop() {\n stop = true;\n }",
"public void stop()\r\n {\r\n stop(STATUS_INACTIVE);\r\n }",
"public void stop() {\n stopFlag = true;\n startFlag = false;\n }",
"p... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method to get siblings by group | public static Predicate getSiblingsByGroup(Zone zone)
{
BooleanBuilder b = new BooleanBuilder();
QZone qZone = QZone.zone;
Group group = zone.getGroup();
if (group == null) {
b = b.and(qZone.group.isNull() );
} else {
b = b.and(qZone.group.id.eq(group.... | [
"TCollection getSiblingNodes();",
"List<WorkFlow> getChildForGroup(String groupId, AdvanceSearch advanceSearch, String parengGroupId);",
"public Iterator<iNamedGroup> getChildrenIterator();",
"TCollection getOtherSiblingNodes();",
"TCollection getOtherSiblingData();",
"public java.util.List<LinkGroup> fin... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ renamed from: a | private void m6280a(String str, FacebookRequestError facebookRequestError) {
Bundle bundle = new Bundle();
if (facebookRequestError != null) {
facebookRequestError = facebookRequestError.getRequestResult();
if (facebookRequestError != null) {
bundle.putString("err... | [
"public interface C3511a {\n /* renamed from: a */\n void mo29057a(int i);\n }",
"interface C4511c {\n /* renamed from: a */\n void mo29775a();\n }",
"public interface ans {\n /* renamed from: a */\n void mo1174a();\n}",
"public interface C24712af {\n /* renamed from... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ BEGIN parameter lists | public void formalParameterList(SyntaticTreeNode root) {
logger.entry();
logger.exit();
} | [
"private void analyseFunctionParamList() throws CompileError {\n\r\n if (check(TokenType.IDENT) || check(TokenType.CONST_KW))\r\n analyseFunctionParam();\r\n else\r\n return;\r\n\r\n // 检查多个参数\r\n while (nextIf(TokenType.COMMA) != null)\r\n analyseFunctio... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | public void setLocation(Object location) {
} | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
used only for swapping | public void setRuleString(String ruleString) {
this.ruleString = ruleString;
} | [
"@Override\n public void postSwap() {\n }",
"@Test\r\n public void testSwap() {\r\n System.out.println(\"swap\");\r\n Integer[] list = {10, 20, 30};\r\n\r\n Integer[] unchangedList = {10, 20, 30};\r\n\r\n Integer[] expectedResult = {30, 20, 10};\r\n\r\n // Should not ch... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Binds a given Story object to the view. | public void bindStoryListItem(Story story) {
storyThumb.setImageResource(story.getThumbResId());
storyName.setText(story.getName());
storyDesc.setText(story.getDescription());
} | [
"public void bindThing(Thing thing)\n {\n mThing = thing;\n mTextView.setText(mThing.toString());\n }",
"@Override\r\n public void bindView(DetailContract.IView view) {\r\n mView = view;\r\n mView.bindPresenter(this);\r\n }",
"void bindTo(Article article) ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Implemented method should change model queue size. | public void setQueueSize(String size) throws OutOfBoundsException, NumberFormatException, SQLException; | [
"public void setQueueSize(int queueSize) {\n baseImplementation.setQueueSize(queueSize);\n }",
"@Override\n public void setQueueMax(int num) {\n }",
"public void setQueueSize(long value) {\n\t\t((IInterface)deference()).setQueueSize(value);\n\t}",
"@Override\n\tpublic int getQueueSize() {\n\t\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor. | @SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
jLayeredPane1 = new javax.swing.JLayeredPane();
jLabel14 = new javax.swing.JLabel();
jButton2 = new javax.swing.JButton();
jBu... | [
"public StForm() {\n initComponents();\n }",
"public CineForm() {\n initComponents();\n }",
"public javaform() {\n initComponents();\n }",
"public EditDemographicForm() {\n initComponents();\n }",
"public FightForm() {\n initComponents();\n }",
"public For... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public void clearView() {
firstNameField.clear();
lastNameField.clear();
male.setSelected(false);
female.setSelected(false);
birthDayField.setValue(null);
commentField.clear();
} | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructor for the Game class. | public Game(Board board) {
this.board = board;
this.board.setGame(this);
} | [
"public Game() {\n super();\n }",
"public Game ()\n {\n }",
"public Game() {\n \n }",
"public Game() {\n \n }",
"public Game()\n {}",
"Game() { //Game class constructor - empty as can... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the status of the request | public String getLongStatus(long id) throws ITrustException {
StringBuilder s = new StringBuilder();
ReportRequestBean r = reportRequestDAO.getReportRequest(id);
if (r.getStatus().equals(ReportRequestBean.Requested)) {
PersonnelBean p = personnelDAO.getPersonnel(r.getRequesterMID());
s.append(String.format(... | [
"String getRequestStatus(IRequest request);",
"java.lang.String getRequestedStatus();",
"int get_status();",
"public int getStatus() {\n return getResponse().getStatus();\n }",
"public synchronized int getStatus() {\r\n return status;\r\n }",
"com.yunhui.job.common.proto.Reques... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns true if the table with the given tableName has a foreign key with the specified columnName. | protected boolean hasForeignKey(
String tableName,
String columnName)
{
boolean hasForeignKey = false;
if (StringUtils.isNotBlank(tableName) && StringUtils.isNotBlank(columnName))
{
Collection foreignKeys = (Collection)this.foreignKeys.get(tableName);
... | [
"public static boolean columnExists(String columnName, String tableName, Connection conn) {\n if (!tableExists(tableName, conn)) {\n return false;\n }\n\n ResultSet columnNames = null;\n try {\n columnNames = conn.getMetaData().getColumns(null, null, tableName.toUpperCase(), columnName.toUpper... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Takes Document type as input and return the name of uploaded document | public String getDocumentName(String doctype) {
String path = "//table[@id='ctl00_ContentPlaceHolder1_rwmCaseIdDocuments_C_grdviewIdDocument_ctl00']//*[text()='"
+ doctype + "']/../td[5]//td[1]/span";
if (this.isvaliddoctype(doctype)) {
return getText(path).trim().replaceAll("[0-9]", "");
} else {
... | [
"public String fileName(final Document document) {\n return MessageFormat.format(\"{0}{1}\",\n FileUtil.getName(document.getName()),\n FileUtil.getExtension(document.getName()));\n }",
"@NotNull\n public String getDocumentType() {\n return this.documentType;\n }",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Whether to change nonAvrocompatible characters in column names to Avrocompatible characters. For example, colons and periods will be changed to underscores in order to build a valid Avro record. | public final String getDbfNormalize() {
return properties.get(DBF_NORMALIZE_PROPERTY);
} | [
"SqlTester withUnquotedCasing( Casing casing );",
"private boolean isCaseSensitiveField(String fieldName) {\n // we need to handle things like \"mi.sender\" for the sender column, etc\n // so look for the last . in the fieldname, return the string after that.\n String colNameAfterPeriod;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Provide the path of driver location | public static void main(String[] args) throws InterruptedException {
System.setProperty("webdriver.firefox.marionette", "./BrowserDrivers/geckodriver.exe");
// Driver instance is created
WebDriver firefoxDriver = new FirefoxDriver();
// To maximize Browser Window
firefoxDriver.manage().window().maximize();
... | [
"public static String getDriverPath() {\n\t\tString driverpath= prop.getProperty(\"Driverpath\");\n\t\tif(driverpath!=null) return driverpath ;\n\t\telse throw new RuntimeException (\"Driverpath is not specified in the Config.properties\");\n\t}",
"public String getChromeDriverPath() {\n\t\tString path = System.g... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns true if field myerror is set (has been assigned a value) and false otherwise | public boolean isSetMyerror() {
return this.myerror != null;
} | [
"public boolean hasError() {\n return error != null;\n }",
"public void setHasError(Boolean error);",
"@java.lang.Override\n public boolean hasError() {\n return error_ != null;\n }",
"public final boolean hasError() {\n\t\treturn error;\n\t}",
"public boolean isError() {\r\n r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Marks this bean for remove. A bean marked for remove will be deleted or retired when the transaction is committed. Once a bean is marked for remove, it cannot be switched to update, edit, or read. WARNING: This method is designed for simple custom entities which are normally not associated with other entities. Undesira... | public void remove() {
((com.guidewire.pl.domain.persistence.core.KeyableBeanPublicMethods)__getDelegateManager().getImplementation("com.guidewire.pl.domain.persistence.core.KeyableBeanPublicMethods")).remove();
} | [
"public void ejbRemove() {\n System.out.println(\"ServiceCatalogBeanBMP:ejbRemove() called.\");\n\n String servicename = (String)ctx.getPrimaryKey();\n ejbRemove(servicename);\n }",
"public void ejbRemove() throws javax.ejb.RemoveException {\n }",
"Boolean onPreRemove(Object businessOb... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method corresponds to the database table ml_shareholder_info | int deleteByExample(MlShareholderExample example); | [
"public cn.com.fero.integration.riskcontrol.generate.ShareholdersInfo[] getShareholdersInfo() {\n return shareholdersInfo;\n }",
"@Repository\npublic interface SchlInfoMapper extends BaseDao<SchlInfo> {\n}",
"public List<ShareAccessInfo> getData(String shareId, Timestamp from , Timestamp to) {\n\t\tSt... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets all of the statistics to zero. | public void reset() {
keyList.stream().forEach((key) -> {
statMap.put(key, 0);
});
} | [
"public void clear() {\n\t\tsynchronized( this ) {\n\t\t\tn = 0;\n\t\t\tmean = 0;\n\t\t\tvariance = 0;\n\t\t\tM2 = 0;\n\t\t\tdata.clear();\n\t\t\tlowest = Double.POSITIVE_INFINITY;\n\t\t\thighest = Double.NEGATIVE_INFINITY;\n\t\t}\n\t}",
"public final void zero() {\n for (int i = 0; i < this.length; i++) {... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Initialize FireBase object with this parameters | public MessageSystem(Firebase sendPort, Firebase receivePort){
myFireBaseService= new FireBaseService(this, sendPort, receivePort);
} | [
"private void initialize()\n {\n Firebase.setAndroidContext(this);\n }",
"private void initFirebase() {\r\n firebaseAuth = FirebaseAuth.getInstance();\r\n }",
"private void setUpFirebase() {\n Firebase.setAndroidContext(gameActivity);\n mFirebase = new Firebase(\"https://bli... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional uint32 TransactTime = 11; optional uint32 TransactTime = 11; | boolean hasTransactTime(); | [
"private float calculateTransmissionTime(){\r\n\t\t\t//return (Medium.SYNC_TIME+(float)(packet.header.packetSize*8/interfaceSpeed));\r\n\t\t\treturn((float)(0.0002+0.0000075*(packet.header.packetSize)));\r\n\t\t}",
"@Override public synchronized long millis(){ return this.actTimeMS; }",
"com.google.protobuf.Tim... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method used to extract the response/status line/message of the response sent by the server. | public static String getStatusMessage(Response response){
log.info("Extracting response status message");
String statusMessage = response.getStatusLine();
log.debug("Extracted status code: " + statusMessage);
return statusMessage;
} | [
"public StatusLine getStatusLine()\n {\n return response.getStatusLine();\n }",
"public String toString() \r\n {\r\n HashMap<Integer, String> codeMessages = new HashMap<Integer, String>();\r\n codeMessages = setResponseMessage(); \r\n\r\n String line = \"HTTP/1.1 \" + code ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test case number: 1 / 4 covered goals: 1 br.com.jnfe.base.UF.getUF(Ljava/lang/String;)Lbr/com/jnfe/base/UF;: I14 Branch 1 IF_ICMPGE L94 true 2 br.com.jnfe.base.UF.getUF(Ljava/lang/String;)Lbr/com/jnfe/base/UF;: I14 Branch 1 IF_ICMPGE L94 false 3 br.com.jnfe.base.UF.getUF(Ljava/lang/String;)Lbr/com/jnfe/base/UF;: I25 Br... | @Test
public void test1() throws Throwable {
UF.getUF("ID{3vjGYG !");
} | [
"@Test\n @Tag(\"slow\")\n public void testCZPROB() {\n NetlibCase.doTest(\"CZPROB.SIF\", \"2185196.6988565763\");\n }",
"@Test\n\tpublic void test9() {\n\t\tString[] test1 = {\"=5.1\",\"\",\"\",\"3\",\"5.1\",\"50\",\"-1\",\"5.1\"};\n\t\tCOUNTIF countif = new COUNTIF();\n\t\tassertEquals(countif.ex... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Indique si le mot appartient au dictionnaire | public boolean containsWord(String word) {
return vectors.containsKey(word);
} | [
"public boolean fillDataDictionary() {\n\t\tintMotif = \"motif généré automatiquement\";\n\t\t\n if (super.fillDataDictionary() == false) {\n \treturn false;\n }\n\n if (StringCtrl.isEmpty(nom)) {\n \terrorNom = true;\n }\n\n if (StringCtrl.isEmpty(prenom)) {\n \terrorPrenom = true;\n }\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Is any part of this depot local? | public boolean isLocal() {
boolean local = false;
if (connection != null) {
IClient client = connection.getClient();
if (client != null) {
ClientView view = client.getClientView();
if (view != null) {
String depotPath = getRemot... | [
"public static boolean isLocalServer() {\n return (SystemProperty.environment.value() == SystemProperty.Environment.Value.Development);\n }",
"public boolean isLocal() {\n \tLoadTableDesc tbd = work.getLoadTableWork();\n \tif (tbd != null) {\n \t return false;\n \t}\n \n \tLoadFileDesc lfd = work.getLo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Use DeleteNodeGroupMetadata.newBuilder() to construct. | private DeleteNodeGroupMetadata(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
} | [
"public Delete setNodeGroup(java.lang.String nodeGroup) {\n if (!getSuppressPatternChecks()) {\n com.google.api.client.util.Preconditions.checkArgument(NODE_GROUP_PATTERN.matcher(nodeGroup).matches(),\n \"Parameter nodeGroup must conform to the pattern \" +\n \"[a-z](?:[-a-... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
JUnitDoclet begin javadoc_method includeLine() Method testIncludeLine is testing includeLine | public void testIncludeLine() throws Exception {
// JUnitDoclet begin method includeLine
// JUnitDoclet end method includeLine
} | [
"@Test\n\n\tpublic void testNextLine() {\n\n\t}",
"@Override\n public Void visitIncludeDef(IncludeDef include, ElmContext context) {\n newConstruct(\"include\");\n output.append(String.format(\"%s %s\", currentSection, include.getPath()));\n if (!Strings.isNullOrEmpty(include.getVersion())... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
return current temp as int string | public static String getTemp(JSONObject allWeather) {
int temp = allWeather.getJSONObject("main").getInt("temp");
return Integer.toString(temp) + "°";
} | [
"public static String WriteInt() {\n\t\tString p = \" \";\n\t\t\n\t\tp += If(\"1c0>\", \"45w\", \"\"); // minus symbol\n\t\t\n\t\tp += \"1c\"; // copy\n\t\tp += digitCountOperator();\n\t\t\n\t\t// 1 is while\n\t\t// 2 is digit count\n\t\t// 3 is the number\n\t\tp += While(\"2c0<\",\n\t\t\t\t \"3c\" // copy the num... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public void appComingFromBackground() {
} | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test case number: 7 /Coverage entropy=0.6931471805599453 | @Test(timeout = 4000)
public void test07() throws Throwable {
FileUtil fileUtil0 = new FileUtil();
File file0 = fileUtil0.downloadCart(")WB{9j%8^jCB");
assertNull(file0);
} | [
"@Test(timeout = 4000)\n public void test147() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n String string0 = ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Action to take when cancel button pressed. Override this in derived subclasses to take a specified action when the cancel button is pressed. The only required action is to set the class variable "cancelled" to true. | protected void doCancel()
{
cancelled = true;
} | [
"void cancelClicked();",
"@Override\r\n\tprotected void cancelPressed() {\n \tcancelPressed = true;\r\n\t\tsuper.cancelPressed();\r\n\t}",
"public void cancel() {\r\n \t\tcancelled = true;\r\n \t}",
"@Override\r\n public void actionPerformed(ActionEvent e) {\n doCancel();\r\n }",
"public... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns an array containing all of the elements in this Vector in the correct order; the runtime type of the returned array is that of the specified array. If the Vector fits in the specified array, it is returned therein. Otherwise, a new array is allocated with the runtime type of the specified array and the size of ... | public synchronized Object[] toArray(Object[] a)
{
if (!sorted)
{
sort();
}
return super.toArray(a);
} | [
"public <T> T[] toArray(T[] array) {\n if (array.length < size) // Make a new array of a's runtime type, of length size\n array=(T[]) new Object[size];\n for(int i=0;i<size;i++)\n array[i]=(T)blocks[(i+blockSize)/blockSize-1][(i+blockSize) % blockSize];\n if (array.length ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
below line is just to append the date format with the screenshot name to avoid duplicate names | public static String getScreenshot(String screenshotName) throws Exception {
String dateName = new SimpleDateFormat("yyyyMMddhhmmss").format(new Date());
TakesScreenshot ts = (TakesScreenshot) driver;
File source = ts.getScreenshotAs(OutputType.FILE);
//after execution, you could see a folder "FailedTestsScreenshot... | [
"public String createName() {\n SimpleDateFormat formatter = new SimpleDateFormat(\"yyyy_MM_dd_HH_mm_ss\");\n Date now = new Date();\n String filename = formatter.format(now); //+\".JPEG\";\n return filename;\n }",
"private String generateImageName() {\n D... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Unfix the changelists from the specified job | public void unfix(IP4Changelist[] lists, IP4Job job) {
unfix(lists, new IP4Job[] { job });
} | [
"private Job unassign(AssignedJob job) {\n\t\treturn new Job(job.dropLocation, job.pickups);\n\t}",
"private void fix() {\n Set<String> nodeGroups = context.getTaskTrackerManager().getNodeGroups();\n if (CollectionUtil.isEmpty(nodeGroups)) {\n return;\n }\n for (String nodeG... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public void dragOver(DragSourceDragEvent dsde) {
} | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Try and parse the dates from the String | private Calendar parseDate(String s) {
// Create a new Calendar to store the date in
Calendar c = Calendar.getInstance();
try {
// Try and parse the date from the string
c.setTime(Task.DATE_FORMAT.parse(s));
} catch (java.text.ParseException e) {
e.printStackTrace();
}
return c;
} | [
"private void parseDates() {\n \n if (dateString != null && !dateString.isBlank()) {\n \n statDate = new Date(Long.parseLong(dateString) * 1000);\n }\n }",
"private Date parse(String strDate) throws ParseException {\n\t\t\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Determines the first class type in a collision | public void collide(GameEntity g)
{
g.collide(this);
} | [
"private boolean checkThisClass (SpriteTemplate sprite,\n Class<?> c,\n CollisionKindCustom.Type type)\n {\n switch (type)\n {\n case IS:\n return isThisClass(sprite, c);\n case SUPER:\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
method to get users by email | User getUserByEmail(String email); | [
"UserResponse getUserByEmail(String email);",
"public User getUserByEmail(String email) ;",
"User getByEmail(String enail);",
"@Override\n\tpublic user getUsers(String email) {\n\t\tuser user = null;\n\t\ttry {\n\t\t\tQuery query = em.createQuery(\"from user where emailId = :emailId and isActive=1\")\n\t\t\t\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ access modifiers changed from: packageprivate / renamed from: b | public final byte mo13600b(int i) {
return this.f7595b[this.f7591c + i];
} | [
"protected void method_5557() {}",
"public interface C7693a {\n /* renamed from: b */\n String mo24184b();\n }",
"public abstract void mo30461b();",
"protected abstract void mo3493a();",
"protected void a() {}",
"public abstract void mo1443b();",
"private B000066() {\r\n\r\n\t}",
"pub... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ renamed from: a | static String m59266a(String str, int i, int i2, String str2, boolean z, boolean z2, boolean z3, boolean z4, Charset charset) {
String str3 = str;
int i3 = i2;
int i4 = i;
while (i4 < i3) {
int codePointAt = str.codePointAt(i4);
if (codePointAt < 32 || codePointAt... | [
"public interface C3511a {\n /* renamed from: a */\n void mo29057a(int i);\n }",
"interface C4511c {\n /* renamed from: a */\n void mo29775a();\n }",
"public interface ans {\n /* renamed from: a */\n void mo1174a();\n}",
"public interface C24712af {\n /* renamed from... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
jhipsterneedleentityaddgetterssetters JHipster will add getters and setters here, do not remove | @Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Extent extent = (Extent) o;
if (extent.getId() == null || getId() == null) {
return false;
... | [
"void addSettersAndGetters(String path, String field);",
"public interface ToolRequestUpdate extends HasId {\n\n @Override\n @PropertyName(\"uuid\")\n String getId();\n\n @PropertyName(\"uuid\")\n void setId(String id);\n\n String getStatus();\n\n void setStatus(String status);\n\n @Proper... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The URL of the webhook to call in response to the `on_message_update` event using the `webhooks.on_message_update.method` HTTP method.. | public ServiceUpdater setWebhooksOnMessageUpdateUrl(final String webhooksOnMessageUpdateUrl) {
return setWebhooksOnMessageUpdateUrl(Promoter.uriFromString(webhooksOnMessageUpdateUrl));
} | [
"public abstract String getUpdateUrl();",
"@javax.annotation.Nullable\n @ApiModelProperty(example = \"http://example.com/\", value = \"The URL where a webhook subscriber elects to receive updates.\")\n\n public String getEndpoint() {\n return endpoint;\n }",
"public String getEndpointUrl();",
"public st... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ This method returns all rows that need to be processed for particular user and query User/query get Links User/Links get Queries User/Queries get final links Confusing right? Tell me about it :/ | public ResultSet getTimeSpentRowsForUserQuery(String userid, Object object) throws SQLException {
String selectSQL = "SELECT * FROM timespent where userid = ? AND query = ?";
PreparedStatement p1 = Settings.getConn().prepareStatement(selectSQL);
p1.setString(1, userid);
p1.setString(2, object.toString());
... | [
"public String showAll(){\r\n String reply=null;\r\n try{\r\n Connection con = DriverManager.getConnection( host, username, password );\r\n Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_UPDATABLE);\r\n String SQL = \"select *... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks for group rights | public boolean hasGroupRights(int userId, boolean adminCheck) {
if (this.hasGroup()) {
Group group = this.getGroup();
if (group.getMemberManager().isMemberType(userId, GroupMemberType.ADMINISTRATOR)) {
return true;
}
if (!adminCheck) {
... | [
"boolean canAdministerGroup();",
"private boolean checkCreateRightForGroup(CmsUser currentUser) {\r\n\r\n\t\t// get the list of group of the user\r\n\t\tList<CmsGroup> groups = OpenCmsEasyAccess.getGroupOfUser(currentUser.getName());\r\n\r\n\t\t// Check if of them\r\n\t\tshort[] allowedValues = new short[] { RIGH... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public void run() {
while(true){
String add=getChosenAdd();
while(isConnected(add)&&techno.equals("SIMU")){
if(getSetState(1)==false)allumeOnly1();
if(getSetState(2)==false)allumeOnly2();
if(getSetState(3)==false)allumeOnly3();
if(getSetState(4)==false)allumeOnly4();... | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
this method adds country to the query | private String getQueryParameters() {
var isoCodes = getISOCode();
return "/country/"+isoCodes;
} | [
"@Override\r\n\tpublic Country addCountry(Country country) {\n\t\treturn getCountryDAO().addCountry(country);\r\n\t}",
"public void addCountry() {\n\t\tCommonFunctions commonFunctions = new CommonFunctions(driver);\n\n\t\tcommonFunctions.waitTillVisbilityOfElement(Country_OR.countryName);\n\n\t\tcommonFunctions.e... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method will display correctly the chart passed as a parameter. | void renderChart(ChartData data); | [
"private static void displayChart(JFreeChart chart) {\n // Chart panel\n ChartPanel panel = new ChartPanel(chart);\n panel.setFillZoomRectangle(true);\n panel.setMouseWheelEnabled(true);\n panel.setPreferredSize(new Dimension(1136, 700));\n\n // Application frame\n A... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ In the next four methods we don't verify if the actions are valid. This is done in method executeActions in class MontaCargasProblem. Doing the verification in these methods would imply that a clone of the state was created whether the operation could be executed or not. | public void moveLeft(Peca peca) { //Horizontais [][][][][][][]
matrix[peca.getLinha()][peca.getColuna() - 1]
= matrix[peca.getLinha()][peca.getColuna()+peca.getTamnho()-1];
matrix[peca.getLinha()][peca.getColuna()+peca.getTamnho()-1] = 0;
if (peca instanceof Carro) {
... | [
"@Test\n public void testChoose() {\n Clorus c = new Clorus(1.0);\n HashMap<Direction, Occupant> surrounded = new HashMap<Direction, Occupant>();\n surrounded.put(Direction.TOP, new Impassible());\n surrounded.put(Direction.BOTTOM, new Impassible());\n surrounded.put(Direction.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Provide new identity for layout projects. Eraze identity for cascade and member projects. | @Override
public void onCopied(final Item source, final Item target) {
try {
/** Interested in cascade projects only. */
if (!(source instanceof AbstractProject)) {
return;
}
final AbstractProject<?, ?> sourceProject = (AbstractProject<?, ?>) source;
final AbstractProject<?, ?> targetProject = (... | [
"public Identity() {\n this(cmsFeatureFlags().isEnableDatasetImport(), Root.zebedee.getServiceStore(), new AuthorisationServiceImpl());\n }",
"@Override\n public int getCurrentProjectID() {\n return currentProjectId;\n }",
"public static Identity createVirtualIdentity() {\n AID aid... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Private constructor to aboid object creation from outside classes. | private DatabaseAccess(Context context) {
this.openHelper = new DatabaseOpenHelper(context);
} | [
"private ObjectCreator() {\n }",
"private Factory() {\n\t}",
"protected ExampleObject() {\n super();\n }",
"private PrivateConstructor() { \n \t\n }",
"private Factory() { }",
"private MyObject() {\r\n }",
"public ObjectFactory()\r\n {\r\n }",
"private Library(){}",
"pro... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Changes the InetAddress variable to a byte Array | public void interfaceIP(NetworkInterface Interface) {
for (NetworkInterfaceAddress a : Interface.addresses) {
//Runs through the interface's addresses
int count = 0;
count++;
// address = a.address; //Sets the private variable address to the InetAddress
//ipAddress = address.getAddress();
... | [
"public byte[] toByte() {\n\t\tbyte[] array = new byte[DNS_MAXLENGTH + IP_MAXLENGTH];\n\t\tSystem.arraycopy(dns, 0, array, 0, DNS_MAXLENGTH);\n\t\tSystem.arraycopy(ip, 0, array, DNS_MAXLENGTH, IP_MAXLENGTH);\n\t\treturn array;\n\t}",
"public byte[] getAddress() {\n\treturn (byte[])ipaddress.clone();\n }",
"p... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ / / / / | public void scale(float sx) throws ParseException {
/* 129 */ this.affineTransform.concatenate(AffineTransform.getScaleInstance(sx, sx));
/* */ } | [
"private void calculatePaths() {\n\n\n }",
"public static void main (String arg[]){\n\tSystem.out.println(\" ( ) ( ( \"); \n\n\tSystem.out.println(\" ( )\\\\ ) ( /( ( )\\\\ ) ( )\\\\ ) \");\n\t\n\tSystem.out.println(\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a database using the default comparator (bytewise/ASCII string comparator) | public void createDatabase(String databaseName, int numIndices)
throws BabuDBException; | [
"public UniqueDB constructDatabase() {\r\n\t \r\n\t meta.add(root.storage.size());\r\n\t\tint index = meta.size();\r\n\t\tfor (int i = 0; i < root.storage.size(); i++) {\r\n\t\t\tmeta.add(root.storage.get(i));\r\n\t\t}\r\n\t\tmeta.set(0, index);\r\n\t\tString nativeData = this.data.toString();\r\n\t\tint[] na... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the slice iterator with certain rank. The rank of the slice must be equal or smaller than the array itself. Otherwise throw ShapeNotMatchException. For example, for an array with the shape of [2x3x4x5]. If the rank of the slice is 1, there will be 2x3x4=24 slices. If the rank of slice is 2, there will be 2x3=6 slic... | ISliceIterator getSliceIterator(int rank) throws ShapeNotMatchException,
InvalidRangeException; | [
"public SolutionSet getSubfront(int rank) {\r\n\t\treturn ranking_[rank];\r\n\t}",
"IComplexNDArray slice(int i);",
"public java.util.LinkedList<GoFishCard> findRank(int rank){\n\t\tjava.util.LinkedList<GoFishCard> temp = new java.util.LinkedList<GoFishCard>();\n\t\tIterator<GoFishCard> iter = hand.iterator();\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | public void reloadMdProject() {
} | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Log.APICalled("boolean TCPSession.disconnect()", (String) null); | public static boolean disconnect() {
boolean disconnect = TCPSessionManager.getInstance().disconnect();
String str = "result : " + disconnect;
//Log.d(TAG, str);
//Log.APIReturn("boolean TCPSession.disconnect()", str);
return disconnect;
} | [
"@Override\n public void disconnect() {\n // noop\n\n }",
"private void internalHandleTCPDisconnect() {\r\n if(isHalted){\r\n logInfo(\"TCPTransport.run: TCP disconnect received, but thread already halted\");\r\n } else {\r\n logInfo(\"TCPTransport... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks if the binary representation of the given integer argument is a possible output of the network. | public boolean contains(int value) {
return values.get(value);
} | [
"static boolean check_output(int designated_sender, LinkedList<Integer> honest_players_id, int[] outputs){\n return false;\n }",
"boolean hasOutput(long id);",
"boolean hasOutputTye();",
"@Test\n\tpublic void testIsInteger() {\n\t\tassertTrue(OutputHandler.isInteger(\"1243212345676\"));\n\t\tassertF... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the servlet we are wrapping. | public Servlet getServlet() {
try {
checkServlet();
} catch (Exception ex) {
if (debug)
ex.printStackTrace();
}
return servletPool.getRepresentative();
} | [
"public HttpServlet getServlet() {\n return servlet;\n }",
"public BNHaystackServlet getServlet() { return (BNHaystackServlet)get(servlet); }",
"@Override\n @Nullable\n public Servlet getServlet(String name) throws ServletException {\n return null;\n }",
"public synchronized ServletHandler... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Client will stop getting updates from this sampling layer. | public void removeClient(ClientInterface user)
{
if (!clients.contains(user))
return;
ChangeSet changes = new ChangeSet();
user.samplingLayerDisconnect(this, changes);
clients.remove(user);
layerThread.addChanges(changes);
} | [
"public void stopUpdating();",
"public void stopClientLoop() {\n log.info(\"Stopping client measurement loop...\");\n if (!isClientLoopRunning()) {\n log.warn(\"Client loop is not running\");\n return;\n }\n\n measurementThread.interrupt();\n }",
"@Override\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Merges two tiles if they are next to each other after having been moved. | public Integer[] mergeLine(Integer[] line){
LinkedList<Integer> mergeList = new LinkedList<Integer>();
for(int x = 0; x < this.height && line[x] != 0; x++) {
int tileValue = line[x];
if(x < this.height -1 && line[x].intValue() == line[x+1].intValue()){
tileValue *... | [
"public boolean mergesWith(Tile moving){\n boolean merge = false;\n // Compares the tile values and its class to make sure only TwoNTiles can merge with each other\n if(this.getScore() == moving.getScore() && this.getClass().equals(moving.getClass())){\n merge = true;\n }\n return merge;\n }",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Inflate the menu; this adds items to the action bar if it is present. | @Override
public boolean onCreateOptionsMenu(Menu menu) {
return true;
} | [
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflator = getMenuInflater();\n\t\tinflator.inflate(R.menu.activity_action_bar, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\r\n public boolean onCreateOptionsMenu( android.view.Menu menu)\r\n {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create the Visualizer object and attach it to our media player. YOU NEED android.permission.RECORD_AUDIO for that in AndroidManifest.xml steal the audio out | public void setupVisualizer(int audioSessionId) {
mVisualizer = new Visualizer(audioSessionId);
NoiseSuppressor.create(audioSessionId);
//steal the file playback... not too exciting.
//mVisualizer = new Visualizer(mPlayer.getAudioSessionId());
mVisualizer.setCaptureSize(Visualizer.getCaptureSizeRange()[1... | [
"public void setupAudio() {\n mAudioSampleRate = 44100;\n mAudioChannelInConfig = AudioFormat.CHANNEL_IN_MONO;\n mAudioChannelOutConfig = AudioFormat.CHANNEL_OUT_MONO;\n mAudioEncodingFormat = AudioFormat.ENCODING_PCM_16BIT;\n mAudioBufferSize = AudioRecord.getMinBufferSize(\n mAudioSampleRate,\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
return the number of items on the randomized queue | public int size()
{
return N;
} | [
"public int waitQueueLength();",
"private int queueSize()\r\n {\r\n synchronized(queue)\r\n {\r\n return queue.size();\r\n }\r\n }",
"public int getSize(){\n return queue.size();\n }",
"public int count() \n\t\t{\n\t\t\tint count = 0; \n\t\t\ti... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
compare() is a method used to compare the distance of two Shape objects. If the distance of the shape being compared to is less it returns a 1, if it is more it returns a 1 and it returns a 0 if the volume is equal. This interface allows the Arrays.sort() method to sort the shapes in descending order based on how far t... | @Override
public int compare(Object o1, Object o2)
{
Shape s1 = (Shape)o1 ; //downcast the received object to a Shape
double distance1 = s1.getDistance() ; //get the distance for the first object
Shape s2= (Shape)o2 ; //downcast the second received object to a Sha... | [
"@Override\n\tpublic int compare(Shape s1, Shape s2)\n\t{\n\t\t// TODO: complete this...\n\t\tint result = 0;\n\t\tif(s1.getPerimeter() < s2.getPerimeter())\n\t\t{\n\t\t\tresult = -1;\n\t\t}\n\t\telse if(s1.getPerimeter() > s2.getPerimeter())\n\t\t{\n\t\t\tresult = 1;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tresult = 0;\n\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column blog_article.COMMENT_TIMES | public Integer getCommentTimes() {
return commentTimes;
} | [
"@Override\n\tpublic Long getCommentCount(Comment s_Comment) {\n\t\tList<Object> param=new LinkedList<Object>();\n\t\tStringBuffer hql=new StringBuffer(\"select count(*) from Comment\");\n\t\treturn baseDAO.count(hql.toString(), param);\n\t}",
"public int getMonCommentsCount() {\n return monComments_.size();... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
stub of arg size 2, index 15 | public static long stub_hook_15(long a0, long a1) throws Throwable {
return hookBridge(getMethodId(2, 15), null , a0, a1);
} | [
"abstract public int getArgSize();",
"java.lang.String getArg(int index);",
"public void testingMethod(String... nums) {\t\t\t\n\t\t\n\t\t\n\t}",
"@Test(timeout = 4000)\n public void test044() throws Throwable {\n int[] intArray0 = new int[0];\n int int0 = MethodWriter.getNewOffset(intArray0, int... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
add() is called from outside a StackingNonPreemptiveThread. | public void add(LazyRunnable target) {
list.add(target);
} | [
"public synchronized gov.nist.core.ThreadAuditor.ThreadHandle addCurrentThread() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: gov.nist.core.ThreadAuditor.addCurrentThread():gov.nist.core.ThreadAuditor$ThreadHandle, dex: \n */\n throw ne... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method set the value of rowsCount attribute | public void setRowsCount(int rowsCount) {
this.rowsCount = rowsCount;
} | [
"public void setRows(long rows) {\r\n this.rows = rows;\r\n }",
"public Builder setRowCount(long value) {\n\n rowCount_ = value;\n bitField0_ |= 0x00000008;\n onChanged();\n return this;\n }",
"public long getRowsCount() {\n return rowsCount_;\n }",
"public void setNum... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method to show the user as reconnected | public void reJoin(){
connected = true;
} | [
"public boolean reconnected() {\n return reconnected;\n }",
"void changeUserStatusToOnline();",
"@Override\n public void gattConnected() {\n mConnected = true;\n updateConnectionState(R.string.connected);\n getActivity().invalidateOptionsMenu();\n }",
"public void connected() {\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
method get password confirm field | public PasswordField getPassConf() {
return pswConf;
} | [
"public String getConfirmPassword() {\r\n/* 139 */ return this.confirmPassword;\r\n/* */ }",
"public String getConfirmPassword()\n{\n\tif(confirmPassword==null)\n\t{\n\t\tthis.confirmPassword=\"Anusha@123\";\n\t}\n\treturn confirmPassword;\n}",
"public WebElement getPasswordTextBox() {\n return... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Created by kdoherty on 12/19/14. | public interface ZipChatApi {
String ENDPOINT = "http://zipchatapp.herokuapp.com/";
Gson GSON = new GsonBuilder().create();
RestAdapter ADAPTER = new RestAdapter.Builder()
.setEndpoint(ENDPOINT)
.setConverter(new GsonConverter(GSON))
.build();
ZipChatApi INSTANCE ... | [
"@Override\n public void extornar() {\n \n }",
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"private static void EX5() {\n\t\t\r\n\t}",
"protected void method_5557() {}",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n \... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
variable is declared with method therefore it is not accessible outside of that method | public static void myMethod(String variable3) {
System.out.println(variable3);
// fun with block scope
for (int i = 0; i < 10; i++) {
System.out.println("value of i is:" + i);
}
// i is only defined for the for loop- block scope
if (variable3.equals("v3")) {
System.out.println(variable3);
int j = ... | [
"@Override\n\tprotected void initVariable() {\n\t\n\t}",
"public void setupgobalVariables() {\n}",
"public static void first_function(){\n\t\tint abc = 20; // abc is local variable to this static function\n\t}",
"public Variable getVar() {\r\n return var;\r\n }",
"MAKE getVar();",
"private LocalDemo()... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Puts a service parameter in the service parameters table under the given key. The key is of a subclass of ID; usually a ModuleClassID. This method makes a deep copy of the given element into an independent document. | public void putServiceParam( ID key, Element param ) {
incModCount();
if (param == null) {
params.remove(key);
return;
}
Element newDoc = StructuredDocumentUtils.copyAsDocument(param);
params.put( key, newDoc);
} | [
"public void setParameter(String key, String value) {\n this.parameters.parameters.put(key, value);\n }",
"Components addParameter(String key, Parameter parameter);",
"public void addParameter(String key, String value);",
"public String putParameter(String key, String value){\r\n\t\treturn parameters.put(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
If the wrapped SpinnerAdapter is also a ListAdapter, delegate this call. Otherwise, return true. | public boolean areAllItemsEnabled() {
if (listAdapter != null) {
return listAdapter.areAllItemsEnabled();
} else {
return true;
}
} | [
"boolean isHandledByWrappedAdapter(int position);",
"public interface AppLockSearchableAdapter<T> extends ListAdapter,SpinnerAdapter,Filterable {\n\n public abstract void lockApp(T t, boolean locked);\n\n public abstract void setViewProvider(ViewProvider viewProvider);\n\n public abstract int getViewType... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns true if field part_id is set (has been assigned a value) and false otherwise | public boolean isSetPart_id() {
return __isset_bit_vector.get(__PART_ID_ISSET_ID);
} | [
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case PRS_ID:\n return isSetPrsId();\n }\n throw new IllegalStateException();\n }",
"public boolean hasPartnerId() {\n return ((bitFie... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the "RutReceptor" element | void setRutReceptor(java.lang.String rutReceptor); | [
"public void xsetRutContr(org.apache.xmlbeans.XmlDecimal rutContr)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlDecimal target = null;\r\n target = (org.apache.xmlbeans.XmlD... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
defined color point settings | public Attribute getAttributeWhitePointX(); | [
"public void setNewPointColor(){\n /*Aqui es donde debo cambiar el color <-\n mStartPointColor & mPointEndColor */\n mPointStartColor = a.getColor(R.styleable.CustomGauge_gaugeChangePointStartColor, Color.WHITE/*ContextCompat.getColor(context, android.R.color.white*/);\n mPointEndColor =... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ renamed from: az | public static boolean m32383az(Context context, String str) {
AppMethodBeat.m2504i(90666);
String string = context.getSharedPreferences("tinker_patch_share_config", 4).getString("tinker_before_install", "");
C4990ab.m7417i("MicroMsg.Tinker.TinkerPatchSharedPreferencesUtil", "isBeforeDownloadDial... | [
"public abstract az mo1423b();",
"<T> void mo40159a(List<T> list, azs<T> azs, axi axi) throws IOException;",
"public interface AmlFilesystem {\n /**\n * Gets the id property: Fully qualified resource Id for the resource.\n *\n * @return the id value.\n */\n String id();\n\n /**\n * ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Determines if the serialNo has been modified. | public boolean checkSerialNoModified()
{
return 0L != (modified & FL_DEVICE_ID_SERIAL_NO_MASK);
} | [
"public boolean hasSerialNumber() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"boolean isModifiedBy(int txnum) {\n\t\treturn txnum == modifiedBy;\n\t}",
"public boolean isChanged() {\n if (!initial13 && !new13) {\n return false;\n }\n if (initial13 && ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method to make it possible for the user to put in a student | private Student userInputStudent() {
String forename = pickName("Forename of student: ");
String surname = pickName("Surname of student: ");
int studentNumber = pickStudentNumber("Student Number of student: ");
DegreeProgram degreeProgram = pickDegreeProgram();
int gender = pickG... | [
"private static void insertStudent() {\n\t\tStudent student = new Student();\n\t\tSystem.out.print(\"Nhap ma sinh vien: \");\n\t\tscanner.nextLine(); // xóa bộ nhớ đệm\n\t\tstudent.setId(scanner.nextLong());\n\t\tSystem.out.print(\"Nhap ten sinh vien: \");\n\t\tscanner.nextLine(); // xóa bộ nhớ đệm\n\t\tstudent.set... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Evaluates if the received individual is current best fit of the population. Takes into account if the final point was hit or not. | private boolean checkIfIsBestFit(Individual currentInd, Population pop) {
if(pop.bestInd==null)
return true;
//if none of the individuals has reached the final point we check the comfort
else if(!pop.finalPointHit && currentInd.comfort>pop.bestInd.comfort) {
return true;
}
//if an individual ha... | [
"public static boolean evalBestIndividual() {\n\t\tboolean updated = false;\n\t\tfor (int i = 0; i < popSize; i++) {\n\t\t\tif (evalBestIndividual(Population[i]))\n\t\t\t\tupdated = true;\n\t\t}\n\t\treturn updated;\n\t}",
"private boolean checkIfGoalMet() {\n double fitnessOfFittestIndividual;\n // Check i... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Hmac length in bytes. | public int getMacLength(); | [
"public int getDigestLength()\r\n/* 12: */ {\r\n/* 13:52 */ return 32;\r\n/* 14: */ }",
"public int getDigestLength()\r\n/* 14: */ {\r\n/* 15:71 */ return 64;\r\n/* 16: */ }",
"public int keyLength() { return key_length; }",
"public int getLength() {\n\t\treturn byteLength;\n\t}",
"p... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Initialization before every test case | @Before
public void before() {
playerModel = new PlayerModel(101, "player1");
playerModel.setStrategy(new Human(playerModel));
gameModel = new GameModel();
gameModel.setCurrentPlayer(playerModel);
Utility.canShow = false;
} | [
"@Before\n public void initialize() {\n }",
"@Before\n public void init() throws Throwable\n {\n // Nothing to do by default. Feel free to override.\n }",
"@BeforeAll \n\tpublic static void init() {\n\t\tSystem.out.println(\"In BeforeAll\");\n\t}",
"@BeforeEach\n void init()\n {\n }... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Retrieve all Authors from the data store similar with authorName, returning all authors whose name contains with the given name. | List<WebServiceAuthor> findAuthors(@WebParam(name = "name")String authorName); | [
"public void searchByAuthors(String authorName) {\t\t\r\n\r\n\t}",
"@Override\n\tpublic boolean retrieve(String name) {\n\t\tthis.index = 0;\n\t\tfor(Author author: authors) {\n\t\t\tif(name.equals(author.getAuthorName())) { \n\t\t\treturn true;\n\t\t\t}\n\t\t\tindex++;\n\t\t}\n\t\treturn false;\n\t\t\n\t}",
"p... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO: check to see we receive correct error when subscription does not exist | @Test
public void testUnsubscribe() throws SenseTecnicException, IOException {
} | [
"@Override\n public void onSubscribe(Subscription s) {\n }",
"@Override\n public void onSubscribeError(Subscription sub, SubscribeErrorEvent event) {\n }",
"private void updateSubscription() {\n String subscription = readSubscriptionUpdate();\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ access modifiers changed from: private | public static <I, R> Function<I, R> castingIdentity() {
return $$Lambda$Collectors$f0IPpRuyw9HZC8FIP30mNjUUUhw.INSTANCE;
} | [
"@Override\n }",
"protected void method_5557() {}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n public void publicando() {\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"private InternalReflect() {\n\t\t\t// do nothing\n\t\t}",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method will trigger on item Click of navigation menu | @Override
public boolean onNavigationItemSelected(@NonNull MenuItem menuItem) {
switch (menuItem.getItemId()){
//Replacing the main content with ContentFragment Which is our Inbox View;
case R.id.nav_home:
Toast.makeText(getApp... | [
"void onNavigationItemClick(int item);",
"@Override\n\t \t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t \t\t\t\t\tint position, long id) {\n\t \t\t\t\tonMenuItemClick(position);\n\t \t\t\t}",
"@Override\n public void onSideNavigationItemClick(int itemId) {\n \n switch... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Double val = Double.parseDouble((d / df) + "" ); | public void countIDF(float d){
idf = Math.log10( d/df );
} | [
"public double getDoubleValue(){\n\t\tString cutValue = getValue().substring(0, getValue().length() - 1);\n\t\treturn(Double.parseDouble(cutValue)/100.0); \n\t}",
"public static double stringToDouble(String d) {\n if (d.equalsIgnoreCase(P_INF)) {\n return Double.POSITIVE_INFINITY;\n } else if (d.equals... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional string dtprcd = 2; | java.lang.String getDtprcd(); | [
"String getTSDP();",
"public java.lang.String getOtpvalue(){\n return localOtpvalue;\n }",
"private void getTDPPrepaid(){\n TDPPrepaid = KalkulatorUtility.getTDP_ADDM(DP,biayaAdmin,polis,installment2Prepaid,premiAmountSumUp,tenor);\n }",
"publ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
if (pop.size() == 0) return pop; At last remove identical solutions | public SolutionSet removeSame(SolutionSet pop) {
SolutionSet finalSet = new SolutionSet(pop.size());
finalSet.add(pop.get(0));
for (int i = 1; i < pop.size(); i++) {
Solution sol = pop.get(i);
boolean existEqual = false;
for (int j = 0; j < finalS... | [
"int pop()\n {\n // Your code here\n if(q1.size() == 0 && q2.size()==0) return -1;\n else if(q1.size()!=0) return q1.remove();\n else return q2.remove();\n }",
"private Sudoku reduce1(Sudoku solution) {\n List<Cell> cells = getCells(solution, false);\n // repeatedly remove ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method splits the whole review text into 60% train data and 40% test data for all business categories. | public void makeFiles(List<String> businessIdList) {
for (String id : businessIdList) {
StringBuilder fullText = new StringBuilder();
try {
Query query = getTermQuery("business_id", id);
int count = getCount(query);
if (count > 0) {
... | [
"private void parseData() {\n\t\t\t\t\n\t\t//Get training and testing data from files\n\t\tList<String> rawTrainingData = null, rawTestingData = null;\n\t\ttry {\n\t\t\t\n\t\t\trawTrainingData = getDataFileContents(this.trainingDataFilePath);\n\t\t\trawTestingData = getDataFileContents(this.testingDataFilePath);\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Interfaz DAO ChoferProveedor Define los metodos particulares contra la base de datos | public interface IChoferProveedorDAO extends JpaRepository<ChoferProveedor, Integer> {
//Obtiene el ultimo registro
public ChoferProveedor findTopByOrderByIdDesc();
//Obtiene una lista por id proveedor
public List<ChoferProveedor> findByProveedor(Proveedor proveedor);
//Obtiene una li... | [
"private void buscarProveedores(){\n Criterio c1 = obFP.crearCriterio(\"baja\", \"=\",0);\n proveedor = obFP.buscar(Proveedor.class,c1); \n }",
"public DAOProveedorAlojamiento() {\n\t\trecursos = new ArrayList<Object>();\n\t}",
"public ProductoProveedorLogic()throws SQLException,Except... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
repeated .CDOTAUserMsg_ParticleManager.SetParticleNamedValueContext.TransformContextValue transform_values = 3; | public skadistats.clarity.wire.common.proto.DotaUserMessages.CDOTAUserMsg_ParticleManager.SetParticleNamedValueContext.TransformContextValue.Builder getTransformValuesBuilder(
int index) {
return getTransformValuesFieldBuilder().getBuilder(index);
} | [
"public void setParticles(com.sforce.soap.enterprise.QueryResult particles) {\r\n this.particles = particles;\r\n }",
"public float getParticleOffset(){return offset;}",
"@Override\r\n\tpublic int onExecute() throws Exception {\n\t\tROSValue topicValue = subscribe(poseTopic);\r\n\t\tSystem.out.println... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
method that invokes the superclass (parent) turnOn method | public void genericTurnOn() {
super.turnOn();
} | [
"public void turnOn(){\n }",
"public void TurnOn()\n\t{\n\t\tif( !isTurnedOn )\n\t\t{\n\t\t\tisTurnedOn = true;\n\t\t}\n\t}",
"@Override\r\n\tpublic void turnOn() {\n\t\tSystem.out.println(\"AC : AC is turned on......\");\r\n\t}",
"public void turnOn()\n { \n isOn = true;\n }",
"public voi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Usage of remove () method | public static void main(String[] args) {
HashMap<String, Integer> map = new HashMap<String, Integer>();
map.put("Amit", 1111);
map.put("Daisy", 6789);
map.put("Hulk", 66666);
map.put("Noodle", 5555);
System.out.println("Initial number of elements:" +map);
map.... | [
"public void remove() {\n\t\t\r\n\t}",
"@Override\n \tpublic void remove() {\n \n \t}",
"@Override\r\n public void remove() {\n \r\n }",
"@Override\r\n public void remove() {\n }",
"public void remove() {\n\t\t// Not possible\n\t}",
"@Override\n\t\t\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
FIXME must be per session synchronized not globally | protected synchronized List<FileMetadata> getSessionFilesList()
{
@SuppressWarnings("unchecked") List<FileMetadata> fileMetadatas = (List<FileMetadata>) httpServletRequest.getSession().getAttribute( FILES_SESSION_KEY );
if ( fileMetadatas == null )
{
fileMetadatas = new CopyOnWri... | [
"public int session() { return session; }",
"public SynchronizeSession getCurrentSession();",
"private void init() {\n activeSessions = new ArrayList<>();\n }",
"@Override\r\n public void onStart(Session session) {\n\r\n }",
"protected ClientSessionImpl getSession() {\n \t return (ClientSessi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
only for OSGi env | public void destroy() {
} | [
"@Test(groups = { \"unit\" }, enabled = true)\n public void testSomething() {\n String vendor = ( String )context.getBundle( 0 ).getHeaders().get( Constants.BUNDLE_VENDOR );\n if( vendor == null ) {\n vendor = ( String )context.getBundle( 0 ).getHeaders().get( Constants.BUNDLE_SYMBOLICNAME );\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |