query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
Metoda do przytrzymania przycisku | public void BtntagLongClick(final Button btnTag)
{
btnTag.setOnLongClickListener(new View.OnLongClickListener() {
@Override
public boolean onLongClick(View v) {
setContentView(R.layout.activity_main);
czysc();
aktualizacjaDanych();
... | [
"@Override\n\tpublic double wyliczPensje() {\n\t\treturn getStazPracy() * 1000;\n\t}",
"public int liczKosztaPracownikow() {\n\t\tint koszt = 0;\n\t\tfor(Pracownik p : Pracownik.pracownicy)\n\t\t\tkoszt += p.getWynagrodzenie();\n\t\treturn koszt;\n\t}",
"@Override\n public double hitungKeliling(){\n r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ JADX INFO: Multiple debug info for r0v1 java.nio.ByteBuffer: [D('buffer' java.nio.ByteBuffer), D('data' byte[])] / JADX INFO: Multiple debug info for r0v2 int: [D('data' byte[]), D('size' int)] | @Override // com.facebook.ads.redexgen.X.AbstractC0358Dy
public final Metadata A4e(CC cc) {
ByteBuffer buffer = cc.A01;
byte[] array = buffer.array();
int size = buffer.limit();
IQ iq = new IQ(array, size);
String A0R = iq.A0R();
String A0R2 = iq.A0R();
long A... | [
"public static void main(String[] args) {\n\t\tByteBuffer bb = ByteBuffer.wrap(new byte[]{0,0,0,0,0,0,0,'a'});\n\t\tbb.rewind();\n\t\tSystem.out.println(\"ByteBuffer:\");\n\t\twhile(bb.hasRemaining()){\n\t\t\tSystem.out.print(bb.position() + \"->\" +bb.get()+\",\");\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t\tChar... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructor for requesting the user with a username and ecnrypted password. | public TransmissionObject(String user,
byte[] encPass) {
type = 10;
this.user = user;
this.encPass = encPass;
} | [
"public User(String username, String password) throws NoSuchAlgorithmException{\r\n this.username = username;\r\n this.password = hashPassword(password);\r\n }",
"public User(String username) {\n\n this.username = username;\n this.password = \"fakepassword\";\n }",
"public UserCredential... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method corresponds to the database table yyzj_t_score_update | public Criteria andWorkorderIdGreaterThanColumn(YyzjTScoreUpdate.Column column) {
addCriterion(new StringBuilder("workorder_id > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
} | [
"public void updateScore(int new_score);",
"public void updateScore()\r\n\t{\n\t}",
"public void updatePlayerScore(int newScore){\n\n\t\t Session session = factory.openSession();\n Transaction transaction = null;\n\n\t try{\n\n\t transaction = session.beginTransaction();\n\t // Emplo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Find the _Fields constant that matches name, or null if its not found. | @org.apache.thrift.annotation.Nullable
public static _Fields findByName(java.lang.String name) {
return byName.get(name);
} | [
"public static _Fields findByName(String name)\r\n {\r\n return byName.get(name);\r\n }",
"public Field getField(String name) {\n for(Field field : fieldList) {\n if(field.getName().equals(name)) {\n return field;\n }\n }\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Convert the given object to string with each line indented by 4 spaces (except the first line). | private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
} | [
"private String toIndentedString(Object o)\n/* */ {\n/* 607 */ if (o == null) {\n/* 608 */ return \"null\";\n/* */ }\n/* 610 */ return o.toString().replace(\"\\n\", \"\\n \");\n/* */ }",
"private String toIndentedString(Object o)\n/* */ {\n/* 164 */ if (o == null) {\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Makes a gradient background having the given color with a little bit brighter / darker colors without corner radius | public static Background bgColorGradient(Color color) {
return bgColorGradient(color, null);
} | [
"CTGradientFillProperties addNewGradFill();",
"public void background(int rgb);",
"public ColorGradient() {\r\n\t\treset();\r\n\t}",
"public void background(float gray, float alpha);",
"public PDShadingType3 createLinearGrad(BackgroundImageGradient bgimage, float absx, float absy, float width, float height,... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Restarts the server. In domain, restarts the entire host. | public final void restart() throws IOException, InterruptedException, TimeoutException {
ops.restart();
} | [
"public void restart() {\n start();\n }",
"public void restart() {\n appController.restart();\n }",
"public void restartServer() throws IOException {\n stopServer();\n startServer();\n }",
"public static void restart() {\r\n\t\tstop();\r\n\t\tstartInternal();\r\n\t}",
"void cl... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
f0 > f1 > [ Expression() ] f2 > ";" | public R visit(ReturnStmt n); | [
"@Test\n public void testNoTrailingCommaInEmptyCall() {\n Node call = IR.call(IR.name(\"f\"));\n call.setTrailingComma(true);\n assertPrettyPrintNode(\"f()\", call);\n }",
"private StatementList f_body(){\n //prt(\"F_BODY\",1047);\n StatementList func_list = new StatementList();\n statement... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method records the batter's third of a ground ball triple play. The batter and pitcher's ground ball double play stats are incremented as well. | public void recordBatterGroundBallTriplePlay(String positionsInvolved) throws Exception {
currentGameState().incrementPitchCount(); // increment the game state's pitch count
currentPitcherStats().incrementNumPitches(); // increment the pitcher's pitches
currentBatterStats().incrementNumPitches()... | [
"public void addThreeForTeamB(View v) {\n\t\tscoreTeamB = scoreTeamB +3;\n\t\tdisplayForTeamB(scoreTeamB);\n\t}",
"public void threePointB(View view) {\n scoreTeamB = scoreTeamB + 3;\n displayForTeamB(scoreTeamB);\n }",
"public void addThreeForTeamB(View v) {\n scoreTeamB += THREE_POINTS... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Use GetShapeMessage.newBuilder() to construct. | private GetShapeMessage(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
} | [
"com.nent.mam.proto.vidispineproto.Shape getShape();",
"public org.box2d.proto.Box2D.PbShape.Builder getShapeBuilder() {\n bitField0_ |= 0x00000040;\n onChanged();\n return getShapeFieldBuilder().getBuilder();\n }",
"public java.util.List<org.artempopov.serverFirst.proto.ResponseProto.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
save child in database | public void doSaveChild() {
child = this.childService.saveEntry(child);
} | [
"@OnClick(R.id.btn_add_child_save)\n public void save() {\n char gender = mGenderRadioGroup.getCheckedRadioButtonId() == R.id.rb_add_member_male ?\n mGenderArray[0].charAt(0) : mGenderArray[1].charAt(0);\n int role = gender == mGenderArray[0].charAt(0) ? Member.Role.SON : Member.Role... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Rotates the tile clockwise. | public void rotate(); | [
"public void rotateClockWise(){curTile.rotateCW();}",
"public void rotate() {\r\n\t\t/* Tile already placed can't be rotated. */\r\n\t\tif (tileCoord != null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tint i = sides.length - 1;\r\n\t\tSide backup = sides[i];\r\n\t\tfor (; i > 0; i--) {\r\n\t\t\tsides[i] = sides[i - 1... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the test data array. | public static Object[][] getTestDataArray(String testCaseName, String testDatafile) throws DriverScriptException{
Object[][] testDataArray = null;
Hashtable<String, String> hashtable = null;
XLUtil xlUtil = new XLUtil();
String execute;
String sheetName = "testData";
COCDriverScript.testDataFile = testDa... | [
"@DataProvider(parallel = false) \r\n\tpublic String[][] testdataProvider() {\r\n\t\treturn tc.getTestData();\r\n\t}",
"public ArrayList<boolean []> TestDataSet() {\n\t\treturn test_data_set;\n\t}",
"default Object[] getTestData(String dataBaseLocation) {\n return new FactoryInitParams().getTestData(data... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Required Passes: None Element Tested: CM Risk Weight (bkt 9) Risk Measure: Delta Group: Commodities | @Test
public void testC239() {
List<FixedAmount> fixed = Collections.emptyList();
List<NotionalFactor> factors = Collections.emptyList();
List<Notional> notional = Collections.emptyList();
List<ProductMultiplier> multipliers = Collections.emptyList();
List<Sensitivity> sensitivities = Collections.... | [
"private double analyzeInvestment() {\n\treturn this.riskFactor * 50;\n }",
"@Test\n public void presentValueNoConvexityAjustment() {\n double mqExpected = MQ_3M_CAL[2]; // Dec 14 price\n double pvExpected = (mqExpected - LAST_MARGIN_PRICE_ERZ4) * NOTIONAL * FUTURE_FACTOR * QUANTITY_ERZ4;\n MultiCurr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Bind all the GUI elements to the different Properties inside of the GUILabelManagement obj | private void bindGUI() {
guiLabelManagement.getAlertPopUp().addListener((observable, oldValue, newValue) -> displayAlert(newValue));
guiLabelManagement.getProgressIndicator().addListener((observable, oldValue, newValue) ->
updateProgressIndicator(newValue.doubleValue()));
guiLabe... | [
"private void setProperties() {\r\n\r\n\t\tbuttonList.add(btOne);\r\n\t\tbuttonList.add(btTwo);\r\n\t\tbuttonList.add(btThree);\r\n\t\tbuttonList.add(btFour);\r\n\t\tbuttonList.add(btFive);\r\n\t\tbuttonList.add(btSix);\r\n\t\tbuttonList.add(btSeven);\r\n\t\tbuttonList.add(btEight);\r\n\t\tbuttonList.add(btNine);\r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | public static void addshrimptype(String shrimpname) {
mshrimpname=shrimpname;
} | [
"@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"
]
]
}
} |
Get the role description from the result set | @NonNull
public String getRoleDescr()
{
assert this.cursor != null;
return this.cursor.getString(1).toLowerCase(Locale.ENGLISH);
} | [
"public String getRoleString();",
"public String describeRole(Object roleTerm ) throws RacerClientException {\n return racerCall(\"describe-role\" , roleTerm ).toString();\n }",
"public String getRole() { return role; }",
"public java.lang.String getRole()\n {\n return this._role;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Find the _Fields constant that matches fieldId, throwing an exception if it is not found. | public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
if (fields == null) throw new java.lang.IllegalArgumentException("Field " + fieldId + " doesn't exist!");
return fields;
} | [
"@org.apache.thrift.annotation.Nullable\n public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 0: // SUCCESS\n return SUCCESS;\n case 1: // INVALID_ARGS\n return INVALID_ARGS;\n default:\n return null;\n }\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public int getCount() {
return mContents.size();
} | [
"@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"
]
]
}
} |
Sets the global variables to the given style. | private void nugget() {
name = "nugget";
displayName= "Nugget";
alphaAcid = 13.5;
betaAcid = "4-6";
} | [
"public void setStyle(String style)\r\n {\r\n _style = style;\r\n }",
"public static void setStyle(String str){\n\n }",
"public abstract void setStyles();",
"public void setStyle(ValueExpression __style) {\r\n\t\tthis._style = __style;\r\n\t}",
"public void setStyle(com.eviware.soapui.config... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
devuelve todos los pedidos PENDIENTES de la base de datos | public List<PedidoDTO> buscarPedidosPendiente() throws PedidoException{
List<Pedido> pedidos_pen = PedidoDAO.getInstancia().getPendientes();
List<PedidoDTO> pedidos_pen_DTO = new ArrayList<PedidoDTO>();
for (Pedido p : pedidos_pen) {
pedidos_pen_DTO.add(p.toDTO());
}
return pedidos_pen_DTO... | [
"private void PegaDespesas(){\n sql = \"select \"\n + \" idDespesa, \\n\"\n + \" idEmpresa, \\n\"\n + \" codigoGrupo, \\n\"\n + \" codigoEmpresa, \\n\"\n + \" codigoDespesa, \\n\"\n + \" valorDespesa, \\n\"\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Apply chosen theme on startup | @Override
protected void onCreate(Bundle savedInstanceState) {
final SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);
if (prefs.getBoolean("light_theme_mode", false)) {
setTheme(R.style.AppThemeLight);
}
super.onCreate(savedInstanceState);
... | [
"void applyTheme();",
"private void initTheme() {\n currentTheme = sharedPreferences.getInt(getString(R.string.sp_theme), themeIDs[0]);\n setTheme(currentTheme);\n }",
"private void SetupTheme() {\n switch (currentFriend.getFavoriteGame()) {\n case WOW:\n setThe... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__XFeatureCall__Alternatives_4_1" $ANTLR start "rule__IdOrSuper__Alternatives" ../org.yakindu.sct.generator.genmodel.ui/srcgen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:2485:1: rule__IdOrSuper__Alternatives : ( ( ruleValidID ) | ( 'super' ) ); | public final void rule__IdOrSuper__Alternatives() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.yakindu.sct.generator.genmodel.ui/src-gen/org/yakindu/sct/generator/genmodel/ui/contentassist/antlr/internal/InternalSGen.g:2489:1: ( ( ruleValidID... | [
"public final void ruleIdOrSuper() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../fr.obeo.dsl.sprototyper.ui/src-gen/fr/obeo/dsl/ui/contentassist/antlr/internal/InternalSPrototyper.g:2348:2: ( ( ( rule__IdOrSuper__Alternatives ) ) )\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method retrieves the properties. | public Hashtable getProps(){
return env;
} | [
"private Properties getProperties() {\n\t\treturn properties;\n\t}",
"Properties getProperties() {\n\t\treturn properties;\n\t}",
"public Properties getProperties() {\r\n return properties;\r\n }",
"Object getProperties();",
"public List<Property> getProperty(){\n\t\treturn propertyRepository.find... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks if building thread is active. | public boolean isRunning() {
return this.isRunning;
} | [
"default boolean isBuilding(){\n return buildQueue().size != 0;\n }",
"boolean isBuildInProgress();",
"public boolean canBuild() {\n return canBuild(getCurrentlyBuilding());\n }",
"public boolean isRunning() {\n return thread != null;\n }",
"private Boolean somebodyIsWaiting() ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
for now, lazy load all the domains at once. We could be smarter, loading the files as requested. | public Domain getDomain(String id) {
if (domains.size() == 0) {
reloadDomains();
}
Domain domain = domains.get(id);
if(domain == null) {
//try to reference the metadata file implicitly, for backward compatibility
domain = domains.get(id+"/metadata.xmi");
}
if (domain != null) ... | [
"private void loadAttackDomain() throws IOException{\n\t\t// obtain attack-domain pairs\n\t\tString query = query_pre\n\t\t\t\t+ \"for $ap in $attack_domains//capec:Domain_Mappings/capec:Attack_Pattern \"\n\t\t\t\t+ \"return (data($ap/@id),data($ap/@domain))\";\n\t\t\n\t\tString result = session.execute(query);\n\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Is invalid local host boolean. | public static boolean isInvalidLocalHost(String host) {
return host == null
|| host.length() == 0
|| "localhost".equalsIgnoreCase(host)
|| "0.0.0.0".equals(host)
|| (LOCAL_IP_PATTERN.matcher(host).matches());
} | [
"boolean initialHostIsLocal();",
"public static boolean validSMTPHost() {\n\t\treturn !\"localhost\".equals(UtilImpl.SMTP);\n\t}",
"boolean isWhiteHost(String host);",
"public boolean isHost(Host host);",
"default boolean isHost() {\n\t\treturn !isGuest();\n\t}",
"public boolean isHost() {\r\n retu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Created by David Martinez on 7/14/2017. | public interface ImgurService {
} | [
"@Override\n public void extornar() {\n \n }",
"private static void EX5() {\n\t\t\r\n\t}",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n }",
"@Override\n public int utilite() {\n return 0;\n }",
"protected void method_5557() {}",
"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__VersionDef__Group_3__1__Impl" $ANTLR start "rule__VersionDef__Group_4__0" ../org.eclipse.osee.ats.dsl.ui/srcgen/org/eclipse/osee/ats/dsl/ui/contentassist/antlr/internal/InternalAtsDsl.g:6255:1: rule__VersionDef__Group_4__0 : rule__VersionDef__Group_4__0__Impl rule__VersionDef__Group_4__1 ; | public final void rule__VersionDef__Group_4__0() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.eclipse.osee.ats.dsl.ui/src-gen/org/eclipse/osee/ats/dsl/ui/contentassist/antlr/internal/InternalAtsDsl.g:6259:1: ( rule__VersionDef__Group_4__0__Im... | [
"public final void rule__Version__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalRequirementsDsl.g:3113:1: ( ( 'Version' ) )\n // InternalRequirementsDsl.g:3114:1: ( 'Version' )\n {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
BufferedWriter s = new BufferedWriter("f:\\book\\hly5.txt"); | public static void main(String[] args)throws IOException {
File fw = new File("f:\\book\\hly5.txt");
//OutputStreamWriter g = new OutputStreamWriter("f:\\book\\hly6.txt");
//FileWriter fd = new FileWriter("f:\\book\\hly5.txt");
DataInputStream fp = new DataInputStream(new FileInputStream("f:\\bppk\\hly4.txt"... | [
"public void fileWriter(String s) \n {\n try\n {\n //store the time that the file is created into a string\n time = new Date();\n String timeStamp = time.toString();\n //creates a writer that uses buffered Writer to writer to the newly created file.\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method has been deprecated, please use method buildPaths instead. | @Deprecated
public List<V1HTTPIngressPath> getPaths(); | [
"public void setPaths() {\n // FIXME\n }",
"private PathUtils() {}",
"private void calculatePaths() {\n\n\n }",
"@Override\n\tpublic void updatePath() {\n\t\t\n\t}",
"List<Path> getBuildFilesPaths();",
"private FullPathComponentBuilder(String path)\r\n/* 240: */ {\r\n/* 241:418 */ ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Convert to a URI (such as " | @NonNull
public Uri getCanonicalUri() {
String uriStr = BuildConfig.HOME_URL + Uri.encode(getPrefixedText(), ":/");
return Uri.parse(uriStr);
} | [
"URI toURI();",
"URI toURI() throws IOException;",
"public String toURI() {\n/* 265 */ StringBuilder buffer = new StringBuilder();\n/* 266 */ buffer.append(this.schemeName);\n/* 267 */ buffer.append(\"://\");\n/* 268 */ buffer.append(this.hostname);\n/* 269 */ if (this.port != -1) {\n/* 270 ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column MTL_SYSTEM_ITEMS_B.UNIT_WIDTH | public void setUnitWidth(BigDecimal unitWidth) {
this.unitWidth = unitWidth;
} | [
"public void setWidth(int a_w) {m_width = a_w;}",
"public void setWidth(String tmp) {\n this.width = tmp;\n }",
"public void setWidth(double width) \n {\n myWidth = width; \n }",
"public void setWidth(double width)\n {\n myWidth = width;\n }",
"public void setWIDTH(int w){\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
A DomHelper element specification object specifying the element structure of this Panel's footer Element. See bodyCfg also. | @ClientConfig(JsonMode.Object)
public Object getFooterCfg() {
if (null != this.footerCfg) {
return this.footerCfg;
}
ValueExpression _ve = getValueExpression("footerCfg");
if (_ve != null) {
return (Object) _ve.getValue(getFacesContext().getELContext());
} else {
return null;
}
} | [
"public InputMarkFooterPanel getFooterPanel() {\n return footer;\n }",
"private By footerCalais(){\n\t\treturn By.xpath(\"//footer[@id='siteFoot']//span[@class='inlineBlock logo calais']/..\");\n\t}",
"private By footerFreeBase(){\n\t\treturn By.xpath(\"//footer[@id='siteFoot']//span[@class='inlineBlo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | public static void main(String[] args) {
MainClass mc=new MainClass();
ArrayList<Double> listx=new ArrayList<Double>(Arrays.asList(2.0, 3.0, 4.0, 5.0, 6.0, 8.0, 10.0, 11.0));
ArrayList<Double> listy=new ArrayList<Double>(Arrays.asList(5.0, 7.0, 9.0, 11.0, 13.0, 17.0, 21.0, 23.0));
mc.findCo... | [
"@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 which sets the default scanner. | public GFinalCoordParser(java_cup.runtime.Scanner s) {super(s);} | [
"public Scanner() {\n }",
"void setScanner(Scanner in) {\n scanner = in;\n }",
"public StyleScanner()\n {\n this(\"\");\n }",
"public ECGReader(java_cup.runtime.Scanner s) {super(s);}",
"public LuaBaseScanner() {\n super();\n }",
"public Parser(Scanner scanner) {\n \t\tthis.s... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns true when the command should end. | @Override
public boolean isFinished() {
if(End){
return true;
}else{
return false;
}
} | [
"protected boolean isFinished() {\n \tif(endCommand == true){\n \t\treturn true;\n \t}\n \telse{\n \t\treturn false;\n \t}\n }",
"protected boolean isFinished() {\n return true;//Stops the command from running indefinately.\n }",
"@Override\n public boolean isFinished() {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Calculates the sales of person on a specific day | public double calculateSalesOfPersonPerDay(String salesPerson, String day, ArrayList<String[]> sales){
double sum = 0;
String[][] salesOfPerson = sales.toArray(new String [][]{});
for(int i = 0;i<salesOfPerson.length;i++){
if(salesOfPerson[i][0].contains(salesPerson) && salesOfPerson... | [
"public static void totalSalesReportDay(String date){\n String sqlStatement = \"SELECT SUM(o.TotalPrice) AS TotalSales FROM Orders o, Transaction t \"\n + \"WHERE o.TransactionID = t.TransactionID AND t.PurchaseDate = ?;\";\n\n try{\n PreparedStatement yearlyReport = initProj... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sorts the employers list by employeeSSN using insertion sort | public void sortEmployerRecordsByEmployeeSSN() {
int n = employers.size();
for(int i = 1; i < n; i++){
Employer temp = employers.get(i);
int j = i - 1;
employers.remove(i);
while(j > -1 && employers.get(j).employeeSSN > temp.employeeSSN){
--j;
}
employers.add(j + 1, temp);
}
} | [
"private static void sortAndPrint() {\n if (null == empList || empList.length == 0) {\n System.out.println(\"Invalid input array\");\n }\n int i = 0, j = 0;\n EmployeeInsertionSort temp = null;\n for (i = 1; i < empList.length; i++) {\n j = i-1;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Retrieves the last stored input of the user from the property file and files the fields with it. | private void fillFieldsWithLastInput() throws IOException {
view.getDbPathTextField().setText(
properties.getProperty(PropertyName.ADMIN_GUI_DB_PATH));
view.getPortTextField().setText(
properties.getProperty(PropertyName.ADMIN_GUI_PORT));
view.getHostConnectionTextField().setText(
prope... | [
"private void saveInput() {\n\t\tNameStr = name.getText();\n\t\tEmailStr = email.getText();\n\t\tgmailPasswordStr=gmailPassword.getText();\n\t\tsetJiraUsernameStr(jiraUsername.getText());\n\t\tsetJiraPasswordStr(jiraPassword.getText());\n\n\t\tPreferencePage pf=new PreferencePage();\n\t\tBoolean ab=pf.setValues(\"N... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | public static void main(String[] args) {
ArrayList<Deliverable> jobs=new ArrayList<Deliverable>();
jobs.add(new Passenger(100, "NYC" , "Bob"));
jobs.add(new Passenger(200, "LAX" , "Mike"));
jobs.add(new Passenger(100, "NYC" , "Nate"));
ArrayList<Plane> planes = new ArrayList<Plane>();
pla... | [
"@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"
]
]
}
} |
mother vertex > portal ( | private static void dfsForStack(ArrayList<ArrayList<Integer>> graph,
int src, boolean[] vis, Stack<Integer> st) {
vis[src] = true;
for(int nbr : graph.get(src)) {
if(vis[nbr] == false) {
dfsForStack(graph, nbr, vis, st);
}
}
st.push(src);
... | [
"public GPortal() {\n\t\tsuper();\n\t\tDest_Level = 0;\n\t\tDest_X = 0;\n\t\tDest_Y = 0;\n\t\t\n\t\tVisible = false;\n\t\tSolid = true;\n\t}",
"Vertex getTo();",
"public Vertex vertex2();",
"protected abstract Vertex getRootVertex();",
"int outDegree(V vertex);",
"ZEdge edge();",
"public void desvisitar... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Setter called after the ExampleJob is instantiated with the value from the JobDetailBean (5) | public void setTimeout(int timeout) {
this.timeout = timeout;
} | [
"@Override public void setJob(String job) {\n this.job = job;\n }",
"@Override\r\n\tpublic void setJob(String job) {\n\t\tthis.job=job;\r\n\t}",
"@Test\n public void testSetJobId() {\n System.out.println(\"setJobId\");\n String jobId = \"\";\n JobLayer instance = new JobLayer()... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__XMemberFeatureCall__Group_1_1_1__3__Impl" $ANTLR start "rule__XMemberFeatureCall__Group_1_1_1_2__0" ../org.yazgel.snow.notation.text.module.ui/srcgen/org/yazgel/snow/notation/text/ui/contentassist/antlr/internal/InternalModule.g:8679:1: rule__XMemberFeatureCall__Group_1_1_1_2__0 : rule__XMemberFeature... | public final void rule__XMemberFeatureCall__Group_1_1_1_2__0() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.yazgel.snow.notation.text.module.ui/src-gen/org/yazgel/snow/notation/text/ui/contentassist/antlr/internal/InternalModule.g:8683:1... | [
"public final void rule__XMemberFeatureCall__Group_1_1__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalScripting.g:6139:1: ( ( ( rule__XMemberFeatureCall__Group_1_1_1__0 )? ) )\n // InternalScripting.g:6140:1: ( (... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
FUNCTION: handleEvent AUTHOR: attiffan Aurora T. TiffanyDavis DESCRIPTION: Handle event ARGUMENTS: None RETURNS: None | @Override
public synchronized void handleEvent (HW03_ObjectEvent oEventToHandle) {
try {
/* Send the event to the network partner
* But avoid ping-ponging an event back and forth between two network partners forever
* - Do not send an event back... | [
"public void handleEvent(Event event) {\n \n }",
"R handle(E event);",
"protected abstract void eventHandle();",
"void handleEvent(DataEvent event);",
"void handleEvent(ActiveEvent event);",
"protected void handleEvent(AppEvent e) {\n }",
"@Override\n\t\t\t\t\t\tpublic void handleEvent(Even... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | public void simpleTests() {
FileResource resource = new FileResource("data/small.txt");
CaesarCipher cc=new CaesarCipher(18);
String encrypted=cc.encrypt(resource.asString());
System.out.println("encrypted:" + encrypted);
String decrypted=cc.decrypt(encrypted);
System.out.println("decrypted:" + decrypted);
... | [
"@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"
]
]
}
} |
The method that signs the data using the private key that is stored in keyFile path | public static byte[] sign(String data, PrivateKey keyFile)
throws NoSuchAlgorithmException, InvalidKeyException, SignatureException {
Signature privateSignature = Signature.getInstance(SIGNATURE_ALGORITHM);
privateSignature.initSign(keyFile);
privateSignature.update(data.getBytes(UTF... | [
"public byte[] sign(String data, String keyFile) throws InvalidKeyException, Exception{\n\t\tSignature dsa = Signature.getInstance(\"SHA1withRSA\"); \n\t\tdsa.initSign(getPrivate(keyFile));\n\t\tdsa.update(data.getBytes());\n\t\treturn dsa.sign();\n\t}",
"public void Sign_digitalSignature(String keyId, String fil... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ compiled from: feed_inline_comments | public interface SyncPayloadCallback<RESPONSE, PAYLOAD> {
PAYLOAD m18423a(byte[] bArr, int i);
boolean m18424a(PAYLOAD payload);
RESPONSE m18425b(PAYLOAD payload);
} | [
"String comment();",
"java.lang.String getCommentText();",
"protected void visit_api_comment_line(ITreeNode node)\n {\n // You should *not* place your code right here. \n // Instead, you should override this method via a subclass.\n visitUnknown(node); // Default Behavior\n }",
"voi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get a new validate action with a mode usage with the current mode changed. This is useful when we have modes extending other modes as we need to get the actions from the base mode as actions on the new mode. | @Override
NoResultAction changeCurrentMode (final Mode mode)
{
return new ValidateAction (getModeUsage ().changeCurrentMode (mode), schema);
} | [
"protected ActionMode getActionMode() {\n return actionMode;\n }",
"public ActionMode getActionModeWrapper(androidx.appcompat.view.ActionMode mode) {\n for (int i = 0, count = mActionModes.size(); i < count; i++) {\n SupportActionModeWrapper wrapper = mActionModes.get(i);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Modified version of the saveOrUpdate that will properly update the left/right indexes. | public void saveOrUpdate(DatasetLevelItem level) {
if (logger.isDebugEnabled()) { logger.debug("saveOrUpdate: " + level); }
if (level.getId() != null) {
DatasetLevelItem existingLevel = get((Integer)level.getId());
if (level.getRightIndex() == null
|| level.ge... | [
"@Override\n\tpublic void saveOrUpdate(Rv rdv) {\n\t\t\n\t\trdvrepo.save(rdv);\n\t\t\n\t}",
"@Override\n\tpublic void saveOrUpdate(UapDictionary arg0) {\n\n\t}",
"public void saveOrUpdate(E entity);",
"@Override\n public void saveOrUpdate(final BwUnversionedDbentity val) throws CalFacadeException {\n sess... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional int32 source_attachment = 4; | public int getSourceAttachment() {
return sourceAttachment_;
} | [
"public void setAttachmentID(int value) {\n this.attachmentID = value;\n }",
"public String getAttachmentId() {\n return (String) getProperty(\"attachmentId\"); \n }",
"public Long getInfile5_()\n{\nreturn getInputDataItemId(\"infile5_\");\n}",
"public interface ExtraAttachment extends Attachmen... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a new blockingstyle stub that supports unary and streaming output calls on the service | public static QueryServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory<QueryServiceBlockingStub> factory =
new io.grpc.stub.AbstractStub.StubFactory<QueryServiceBlockingStub>() {
@java.lang.Override
public QueryServiceBlockingStub newStub... | [
"private ExampleGrpc.ExampleStub createAsyncStub() {\n ExampleGrpc.ExampleStub stub = ExampleGrpc.newStub(channel)\n .withMaxInboundMessageSize(MAX_INBOUND_MESSAGE_SIZE)\n .withMaxOutboundMessageSize(MAX_OUTBOUND_MESSAGE_SIZE);\n if (callCredentials != null) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the value of predicate | public void setPredicat(List<Predicat> predicat) {
this.predicat = predicat;
} | [
"@Generated\n @Selector(\"setPredicate:\")\n public native void setPredicate(@Nullable NSPredicate value);",
"Builder setPredicate(Expression predicateFunction) {\n return setPredicate(\n (value, codeGenerator) -> Optional.of(checkNotNull(predicateFunction).call(value)));\n }",
"default S... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the actor's parent. | final protected Actor getParent() {
return parent;
} | [
"public final ActorPath parent() {\n if (isRoot()) {\n throw new RuntimeException(\"There is no parent to root\");\n }\n final String[] newPathStack = new String[pathStack.length - 1];\n System.arraycopy(pathStack, 0, newPathStack, 0, pathStack.length - 1);\n return new... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Check username whether exists | boolean existUserName(String userName); | [
"Boolean existUsername(String username);",
"boolean isExistingUsername(String username);",
"Boolean usernameExists(String userName);",
"public boolean checkUserName(String username);",
"boolean isExistingUser(String username);",
"public boolean userExistence(String username);",
"private boolean isUserna... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the flag to indicate if when a notification is received for the unregistration of an MBean referenced in a relation, if an immediate "purge" of the relations (look for the relations no longer valid) has to be performed , or if that will be performed only when the purgeRelations method will be explicitly called. tr... | public void setPurgeFlag(boolean purgeFlag) {
myPurgeFlag = purgeFlag;
return;
} | [
"public void setBeNotified(Boolean notify);",
"private void setNotifyTrue(BluetoothGatt gatt) {\n\n\t}",
"public Boolean getUnsubscribeNotification() {\n\t return this.unsubscribeNotification;\n\t}",
"public boolean isOrphanRemoval();",
"public void setNotify(java.lang.Boolean notify) {\n this.not... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Maps a sessionid>session name | public static String sessionid2name(int sid)
{
return name2sessionid.get(sid);
} | [
"private String mapSession(SessionType session) throws MALException {\n HeaderMappingHelper.checkForNull(session);\n return session.toString();\n }",
"com.google.protobuf.ByteString getSessionid();",
"public void setSessionID (int id) { session_id = id; }",
"private static String getFloorKey(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the Application Context | protected final ApplicationContext getApplicationContext()
{
return appContext;
} | [
"public static Context getAppContext()\n {\n return context;\n }",
"public Context getContext() {\n return appContext;\n }",
"public ApplicationContext getContext() {\n\t\treturn context;\n\t}",
"public static Context getApplication() {\n return mApplication;\n }",
"public C... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
DATABASE MAPPING : tabla ( VARCHAR ) | public void setTabla( String tabla ) {
this.tabla = tabla;
} | [
"public void addTable() {\n instance.getWritableDatabase().execSQL(\n \"CREATE TABLE IF NOT EXISTS \" + TABLE_NAME + \"\\n\" +\n \"(\\n\" +\n COLUMNS[0] + \" INTEGER PRIMARY KEY AUTOINCREMENT,\\n\" +\n COLUMNS[1] + \" TEXT,\\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
filter list by longtitude and latitude fields | public Collection<RoadAccident> getAccidentsByLocation(float minLongitude, float maxLongitude, float minLatitude, float maxLatitude){
Collection<RoadAccident> roadAccidents = roadAccidentList.parallelStream().filter(n->{
float longitude = n.getLongitude();
float latitude = n.getLatitude();
... | [
"public List<T> filter(Collection<T> items) {\n List<T> result = new ArrayList<>(items.size());\n for (T item : items) {\n Optional<Double> latitude = extractor.extractLatitude(item);\n Optional<Double> longitude = extractor.extractLongitude(item);\n if (latitude.isPre... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Funcion para recuperar verificar escritirua | public void BotonRecuperar(View view){
if(correo.length() != 0) {
setitR();
archi.recuperarcontraseรฑa(correo.getText().toString(),this).observe(this, new Observer<Boolean>() {
@Override
public void onChanged(Boolean aBoolean) {
if(aBool... | [
"public void aplicar_Escudo(){\r\n\t this._escudo = true;\r\n\t tiempoEscudo();\r\n\t \r\n\t}",
"private void chkKeyPressed(KeyEvent e)\n {\n if (e.getKeyCode() == KeyEvent.VK_ENTER)\n {\n e.consume();\n if(!VariablesModuloReceta.vVerReceta)\n muestraIngresoCantidad();\n }\n else ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set a key,value pair for the current threadId. | private void setValue(String value, String key) {
Map<String, String> data = null;
if (threadMap.containsKey(threadId)) {
data = threadMap.get(threadId);
} else {
data = new HashMap<String, String>();
threadMap.put(threadId, data);
}
data.put(k... | [
"public synchronized void set(String key, Object value) {\r\n Logger l = LogUtils.enterLog(getClass(), \"set\", new Object[]{key, value});\r\n\r\n String userId = UserSessionManager.getInstance().getUserSession().getUserId();\r\n\r\n getUserMap(userId).put(key, value);\r\n\r\n setCacheTy... | {
"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) {
getMenuInflater().inflate(R.menu.menu_main, 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"
]
]
}
} |
This method was generated by MyBatis Generator. This method returns the value of the database column T_SB_ZNYC_DYHGQ.ECRZSLBH | public Integer getEcrzslbh() {
return ecrzslbh;
} | [
"public String getSQAL_2() {\n\t\treturn SQAlumno_2;\n\t}",
"java.lang.String getPkinv4002();",
"public Object getCABAFILIA_URBANI() throws SQLException {\n\t\treturn select.getCacheValueAt(rowNumber, 5);\n\t}",
"public String getProdStageCd() {\r\n \r\n return \"(SELECT distinct(p.VAL1) FROM MS... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Represents a singular operation of projection | boolean project() throws ProjectionException; | [
"public Projection() {}",
"public Projection() {\n\t\tempty = true;\n\t}",
"default Function getProjection(final EuclideanSpace source) {\r\n\t\treturn new FunctionTuple(this.getCoordinates(source), source);\r\n\t}",
"public Get setProjection(String projection) {\n this.projection = projection;... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public List<Poruka> findByZgrada(Zgrada zgrada) {
return porukaRepository.findByZgrada(zgrada);
} | [
"@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"
]
]
}
} |
Milliseconds before the first poll starts. You can also specify time values using units, such as 60s (60 seconds), 5m30s (5 minutes and 30 seconds), and 1h (1 hour). The option is a: long type. Group: scheduler | default YammerEndpointConsumerBuilder initialDelay(long initialDelay) {
doSetProperty("initialDelay", initialDelay);
return this;
} | [
"protected int initPollInterval ()\n {\n return 60;\n }",
"private void setNextRunTime() {\n/* 271 */ long l = this.period;\n/* 272 */ if (l > 0L) {\n/* 273 */ this.time += l;\n/* */ } else {\n/* 275 */ this.time = ScheduledThreadPoolExecutor.this.triggerTim... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
subclass should implement this method to process field | protected abstract void processField(Object bean, String beanName, Field field); | [
"protected void processField( String fieldName, String contents )\n {\n }",
"@Override\n\t\t\tpublic void visitTextField(JRTextField textField) {\n\n\t\t\t}",
"public interface AbstractFieldValue {\n\n\t/**\n\t * Get Field value as a String\n\t * @return field value\n\t */\n\tpublic String asString();\n\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Register a namespace prefix | private java.lang.String registerPrefix(
javax.xml.stream.XMLStreamWriter xmlWriter,
java.lang.String namespace)
throws javax.xml.stream.XMLStreamException {
java.lang.String prefix = xmlWriter.getPrefix(namespace);
if (prefix == null) {
prefi... | [
"public void addNamespace(String pPrefix) {\n // check if already registered.\n if (!namespaces.containsKey(pPrefix)) {\n LOGGER.debug(\"Add namespace for prefix '{}'\", pPrefix);\n namespaces.put(pPrefix, NAMESPACE_PREFIX + pPrefix);\n }\n }",
"private java.lang.String registerPrefix(javax.xm... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
protected void writeDescription() {
} | [
"@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"
]
]
}
} |
Register an action as available. The action will be published as part of the owning device's service XML. | protected void enableAction(Action aAction, IDvInvocationListener aDelegate)
{
iActions.add(aAction);
long callback = DvProviderAddAction(iHandle, aAction.getHandle(), aDelegate);
iCallbacks.add(callback);
} | [
"public void register(EKubeElementAction<?> action) {\n actions.put(action.getIdentifier(), action);\n }",
"public RegistAction() {\n\t\tsuper();\n\t}",
"public void setActions_available(String actions_available) {\n this.actions_available = actions_available;\n }",
"protected void registe... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
method to inherit from fridgeactivity | public NewRecipeValidation() {
super(FridgeActivity.class);
} | [
"protected abstract void onOpen();",
"@Override\n public void onActivityStarted(Activity activity) {\n // TODO: Test\n\n }",
"public abstract void activated();",
"@Override\n\tpublic void execute(Activity activity) {\n\n\t}",
"public interface NeedBluetoothView extends StartActivity... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
repeated .com.elarian.hera.proto.ActivitySessionState sessions = 1; | public Builder setSessions(
int index, com.elarian.hera.proto.ActivityStateOuterClass.ActivitySessionState value) {
copyOnWrite();
instance.setSessions(index, value);
return this;
} | [
"com.google.search.now.feed.client.StreamDataProto.StreamSessions getStreamSessions();",
"public interface HttpSocketSession {\n\n String id();\n\n State state();\n\n State close();\n\n HttpSocketMessage payload(byte[] msg);\n\n HttpSocketMessageProducer producer();\n\n\n public interface State ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Use the Digraph implementation provided by the book return length of shortest ancestral path of v and w; 1 if no such path | public int length(int v, int w) {
BreadthFirstDirectedPaths bfsV = new BreadthFirstDirectedPaths(dg, v);
BreadthFirstDirectedPaths bfsW = new BreadthFirstDirectedPaths(dg, w);
int len = -1;
int dist;
for (int i = 0; i < dg.V(); i++) {
if (bfsV.hasPathTo(i) && bfsW.has... | [
"public int length(int v, int w){\n if (v < 0 || v >= digraph.V() || w < 0 || w >= digraph.V()) throw new IndexOutOfBoundsException(\"v or w is null\");\n BreadthFirstDirectedPaths ssdPathV = new BreadthFirstDirectedPaths(digraph, v);//find all paths to other vertices from v\n BreadthFirstDirec... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return whether a string of words contains a word. | public static boolean containsWord(String str, String word) {
return
str.toLowerCase().contains(" " + word + " ") ||
str.toLowerCase().contains(" " + word + ",") ||
str.toLowerCase().contains(" " + word + ".");
} | [
"public boolean contains(String word) {\n\t\treturn this.contains(new Word(word));\n\t}",
"public boolean isWord(String s) {\n\t\treturn words.contains(s.toLowerCase());\n\t}",
"public boolean containsWord(String word) {\n\t\tfor (WordStack aWordStack : stackOfWords) {\n\t\t\tif (aWordStack.isWordComplete()\n\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
check for required fields check for substruct validity | public void validate() throws org.apache.thrift.TException {
if (success != null) {
success.validate();
}
} | [
"public void validate() throws org.apache.thrift.TException {\n if (cpurate == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'cpurate' was not present! Struct: \" + toString());\n }\n if (memrate == null) {\n throw new org.apache.thrift.protocol.TProtocolExcep... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
end method getAge() Returns the value of height | public float getHeight() { return height; } | [
"public int getAge() { \n\t\treturn age;}",
"public final int getAge() {\n\t\treturn age;\n\t}",
"@Override\n public int getAge() {\n return age_;\n }",
"public double \r\n getHeight()\r\n {\r\n return height;\r\n }",
"public int getAge(){\n//\t\tSystem.o... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Convert the given object to string with each line indented by 4 spaces (except the first line). | private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
} | [
"private String toIndentedString(Object o)\n/* */ {\n/* 607 */ if (o == null) {\n/* 608 */ return \"null\";\n/* */ }\n/* 610 */ return o.toString().replace(\"\\n\", \"\\n \");\n/* */ }",
"private String toIndentedString(Object o)\n/* */ {\n/* 164 */ if (o == null) {\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructs a new LessSource. This will read the metadata and content of the LESS source, and will automatically resolve the imports. The resource is read using the default Charset of the platform | public LessSource(Resource resource) throws IOException {
this(resource, Charset.defaultCharset());
} | [
"public CSSParserConnection(String source, MTApplication app) {\n\n\n boolean exists_data = (new File(\"data\" + MTApplication.separator + source)).exists();\n boolean exists_root = (new File(source)).exists();\n boolean exists_css = (new File(\"css\" + MTApplication.separator + source)).exists... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
initialize myMap and set order | public EfficientMarkov(int o) {
super(o);
myMap = new HashMap<String, ArrayList<String>>();
} | [
"void initialization() {\n\t\tmyHashMap = new HashMap<Integer, MyOrderedList<Integer>>();\n\t\tfor (int i = 0; i < 11; i++) {\n\t\t\tmyHashMap.put(i, new MyOrderedList<Integer>());\n\t\t}\n\t}",
"private void init() {\n map = new HashMap();\n }",
"private void initializeSortOrderMap() {\n try {... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Verifica se uma ajuda presencial pode ser pedida quando a matricula do aluno e vazia. | @Test(expected = IllegalArgumentException.class)
public void testPedirAjudaPresencialMatrAlunoVazia() {
this.quemMeAjudaController.pedirAjudaPresencial("", "P2",
"13:00", "seg", "LCC2");
} | [
"private boolean acabouJogo() {\n if ( this.temPerguntasPendentes() ) {\n // Tenta recuperar a proxima.\n if ( this.perguntaAtual < this.perguntas.size() ) {\n for ( int i = this.perguntaAtual; i <= ( this.perguntas.size() - 1 ); i++ ) {\n if ( !this.pe... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This function will return a random array with a given size and random values | private int[] randomArray(int size) {
int[] array = new int[size];
for (int i = 0; i < size; i++) {
array[i] = this.rand.nextInt(this.BOUND);
}
return array;
} | [
"private static int[] genRandomList(int size) {\n int[] randomList = new int[size];\n for (int i = 0; i < size; i++)\n randomList[i] = R.nextInt(100);\n return randomList;\n }",
"public static int[] genRandomArr()\r\n {\r\n \tint idx = 0;\r\n\r\n// Uncomment the value of s... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This should be a short, machine understandable string that gives the reason for the transition into the object&39;s current status. | @javax.annotation.Nullable
@ApiModelProperty(value = "This should be a short, machine understandable string that gives the reason for the transition into the object's current status.")
public String getReason() {
return reason;
} | [
"public java.lang.String getReason(){\n return localReason;\n }",
"@java.lang.Override\n public java.lang.String getDetailedStateReason() {\n java.lang.Object ref = detailedStateReason_;\n if (ref instanceof java.lang.String) {\n return (java.la... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
buffer store for the stream | public void run() {
int bytes; // bytes returned from read()
// Keep listening to the InputStream until an exception occurs
while (true) {
while(show != 1) {
try {
connectedThread.sleep(100);
} ca... | [
"public byte[] buffer() {\n return buffer;\n }",
"public synchronized byte[] getBuffer() \n\t{\n\t\treturn this.buf;\n\t}",
"public byte[] getBuffer() {\n\t\treturn file.buf;\n\t}",
"public TemporaryBuffer getBuffer() {\n\t\treturn buffer;\n\t}",
"public void stashBuffer(final Buffer buffer) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Logs messages with level "FATAL". | void logFatal(Object msg); | [
"public final void fatal(Object message) {\n/* 489 */ if (isLevelEnabled(6)) {\n/* 490 */ log(6, message, null);\n/* */ }\n/* */ }",
"public void fatal(Object message) {\n if( isFatalEnabled() )\n \tlogger.log(FQCN, Priority.FATAL, message, null );\n }",
"public static v... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructor for the select. | private Select() {
super();
builder().append("SELECT ");
} | [
"public SelectStatement() {\n super();\n }",
"Select getSelect();",
"public SelectImpl(WebElement element) {\n super(element);\n this.innerSelect = new org.openqa.selenium.support.ui.Select(element);\n }",
"public NyaSelect()\n {\n this(\"data.nya\");\n }",
"public Op... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the value of fechaFinPagoModified | public void setFechaFinPagoModified(boolean fechaFinPagoModified)
{
this.fechaFinPagoModified = fechaFinPagoModified;
} | [
"public void setPagamento(Date pPagamento){\n this.pagamento = pPagamento;\n }",
"@Override\n public void setFinDate(java.util.Date finDate) {\n _conversacion.setFinDate(finDate);\n }",
"public void setFecha(Date fecha)\r\n/* 138: */ {\r\n/* 139:131 */ this.fecha = fecha;\r\n/* 1... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
private BeanConexionEPOS beanConexion; private FacadeCPE facade; | public UtilityCPE(){
} | [
"public CursoBean() {\n// try {\n// serviceLocator = new ServiceLocator();\n// constanteBean = (ConstanteLocal) serviceLocator.getLocalEJB(ConstanteLocal.class);\n// profesorFacade = (ProfesorFacadeLocal) serviceLocator.getLocalEJB(ProfesorFacadeLocal.class);\n// s... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
default void update(Attribute t) {
} | [
"@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"
]
]
}
} |
/ given an initial defective tile on a board return an array of [row, col, row, col...] of defective tiles from 4 quarters | public int[] getDefectiveTiles(int tr, int tc, int dr, int dc, int size) {
int mr = tr + size / 2;
int mc = tc + size / 2;
int[] dTiles = new int[]{mr-1, mc-1, mr-1, mc, mr, mc-1, mr, mc};
if (dr < mr) {
if (dc < mc) {
putTile(mr-1, mc-1, mr-1, mc-1);... | [
"private Rect[][] generateTiles() {\r\n Rect[][] tiles = new Rect[4][4];\r\n int offset = (int) (canvasWidthAndHeight * partitionRatio);\r\n for (int j = 0; j <= 3; j++) {\r\n for (int i = 0; i <= 3; i++) {\r\n tiles[i][j] = new Rect(i * offset, j * offset, (i + 1) * o... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Prints a map to console for debugging | private void printMap(Map<Point, Point> map){
for (Map.Entry<Point, Point> entry : map.entrySet()) {
System.out.println(entry.getKey()+" : "+entry.getValue());
}
} | [
"public static void printMap(Map map) {\n BTraceRuntime.printMap(map);\n }",
"public void printMap() {\n for(Entry e : entries) {\n if(e != null) {\n System.out.println(e.getKey() + \", \" + e.getValue());\n }\n }\n }",
"private static void printMap() {\... | {
"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() {
jLabel1 = new javax.swing.JLabel();
jTextField1 = new javax.swing.JTextField();
jLabel2 = new javax.swing.JLabel();
jLabel3 = ... | [
"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"
]
]
}
} |
Get project packaging type | public String getProjectPackagingType(); | [
"public java.lang.String getPackaging() {\n return packaging;\n }",
"public String getDeploymentType()\r\n {\r\n return getSystemProperty(DEPLOYMENT_PROPERTY, CLIENT_DEPLOYMENT);\r\n }",
"public ProjectType getCreatedProjectType();",
"public String getPackage() {\n\t\tif (this.mLastLoad... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
randomly rearrange elements of an ArrayList | public static void shuffle( ArrayList al )
{
int randomIndex;
//setup for traversal fr right to left
for( int i = al.size()-1; i > 0; i-- ) {
//pick an index at random
randomIndex = (int)( (i+1) * Math.random() );
//swap the values at position i and randomIndex
al.set( i... | [
"private void shuffle(){\n\t\tlist = getRandomList(4);\n\t}",
"public void shuffle()\n {\n for(int i=0; i<size(); i++)\n swap(i, (int)(Math.random() * size()));\n }",
"private static <T> void shuffle(List<T> list) {\n final Random rnd = new Random();\n for (int i = list.siz... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get a property from the given Properties object, or system properties if it is not defined in the Properties object. | private static String getProperty(Properties properties, String prop) {
// First, use existing property value
String value = properties.getProperty(prop);
// Next, try a system property
if (value == null)
value = System.getProperty(prop);
return value;
} | [
"private static String getSystemProperty(Properties sysProperties, String prop) {\n\n String result = sysProperties.getProperty(prop, \"\");\n\n return result;\n }",
"public Property getProperty(Property p) {\n\t\tint index = properties.indexOf(p);\n\t\tif(index >= 0)\n\t\t\treturn properties.get... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Arm script(s) Removes a ball from the golf ball stand. | public void removeBallAtLocation(final int location) {
// TODO: Replace with a script that might actually remove a ball. :)
mActivity.sendCommand("ATTACH 111111"); // Just in case
mCommandHandler.postDelayed(new Runnable() {
@Override
public void run() {
m... | [
"@Override\n public boolean removeBall (int x, int y, Integer ball){\n\t return true;\n }",
"public void raiseArmWithBall(){\n\t\trotateTo(ARM_RAISED_WITH_BALL_ANGLE);\n\t}",
"public BallRemover(GameLevel game, Counter numOfBalls) {\n this.game = game;\n this.remainingBalls = numOfBalls;\n }... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
2 1 4 3 | public static void main(String[] args) {
} | [
"public int VersionFour(int n) {i = 1, 1+2, 1+2+3, ......\n //\n }",
"public int[] nextGreaterElements4(int[] nums) {\n int n = nums.length;\n int[] res = new int[n];\n Arrays.fill(res, -1);\n Stack<Integer> stack = new Stack<>();\n for (int i = 0; i < n * 2; i++) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the linea gasto with the primary key. | @Override
public es.davinciti.liferay.model.LineaGasto getLineaGasto(
long lineagastoId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _lineaGastoLocalService.getLineaGasto(lineagastoId);
} | [
"@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _logisticaServizio.getPrimaryKey();\n\t}",
"@Override\n\tpublic long getPrimaryKey() {\n\t\treturn _slogan.getPrimaryKey();\n\t}",
"Attribute getPrimary_key();",
"@Override\n\tpublic java.lang.String getPrimaryKey() {\n\t\treturn _phongkham.getPrimaryKey... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ / / / | public void setString(int paramInt, String paramString)
/* */ throws SQLException
/* */ {
/* 282 */ this.preparedStatement.setString(paramInt, paramString);
/* */ } | [
"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"
]
]
}
} |