query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
should not throw a NullPointerException | @Test
public void
isNullSafe() {
createMatcher().matches(null);
} | [
"protected void testThrowNPE()\n {\n throw new NullPointerException();\n }",
"public void mo33473a() {\n throw null;\n }",
"protected static NullPointerException NPE ()\n {\n return new NullPointerException(\n \"ListUtil does not support null elements.\");\n }",
"@Test(t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Initializes all input views. Assumes adapters are valid. | private void initInputViews(View rootView) {
sp_sourceCurr = (Spinner) rootView.findViewById(R.id.currConv_main_spinner_currencySource);
sp_sourceCurr.setAdapter(mSourceCurrAdapter);
sp_sourceCurr.setOnItemSelectedListener(sourceItemSelectedListener);
sp_destCurr = (Spinner) rootView.findViewById(R.id.currCo... | [
"public void initViews() {}",
"public void initViews() {\n\t\t\n\t}",
"public void initializeViews() {\n }",
"@Override\n public void initViews()\n {\n }",
"protected void initViews(){\n }",
"public void initViews(){\n\n\t}",
"@Override\n protected void initViews() {\n mProgress... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
segments the provided list of blocks Segmentation rules: Loop Header + Cond Header belong to preceding LinearSegment Block that contains MethodCall belongs to preceding LinearStatement | public List<Segment<? extends ProgramPart>> segment(List<BasicBlock> unclaimed) {
List<Segment<? extends ProgramPart>> segments = new ArrayList<>();
LinearSegment linear = LinearSegment.newEmpty(this);
BasicBlock curr;
int numChildren = 0;
while (!unclaimed.isEmpty()) {
curr = unclaimed.remove(0);
line... | [
"Segment(Block block1, Block block2, Block block3, Block block4, Block block5, Block block6, Block block7, Block block8, Block block9, Block block10) {\r\n\t\tthis.segment = new ArrayList<Block>(Arrays.asList(block1, block2, block3, block4, block5, block6, block7, block8, block9, block10));\r\n\t}",
"Collection<L... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
MAIN CONTAINER INTERFACE SHOULD BE SELF EXPLANATORY Look at the table, define a query with its help, ask database for the new rows, store them and wait until the table picks them up. | public void loadRows(DBTableContainer container, QueryResult queryResult) {
// first, clear the previous rows
this.currentlyViewedRows.clear();
// then generate the new ones
SimpleIDGenerator ids = new SimpleIDGenerator();
for (AbstractTableRowDBView row : queryResult.getConstrainedResults()) {
this.curre... | [
"public void execute() {\n\r\n\t\tDBAccess dbInstance = DBAccess.getInstance();\r\n\r\n\t\tif (dbInstance.getEnvironment() == null) {\r\n\t\t\tSystem.out.println(\"ERROR: An environment has not been opened\");\r\n\t\t} else {\r\n\t\t\tDatabase workDb = null;\r\n\t\t\tCursor cursor = null;\r\n\r\n\t\t\t// Open the c... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | public void RegisterNewPlace(){
thePlaceOfThisRegisteration.setPassword(new Md5PasswordEncoder().encodePassword(DEFAULT_PASSOWRD,thePlaceOfThisRegisteration.getEmail()));
thePlaceOfThisRegisteration.setActive(1);
String randomEmailForPlace="Place"+thePlaceOfThisRegisteration.getName()+UUID.randomUUID().toStri... | [
"@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"
]
]
}
} |
Determines the sort order. | public boolean isAscending() {
return (! reverseOrder);
} | [
"public abstract int getComparisonOrder();",
"public void sort() {\n if (sortingpref == 0)\n sortByName();\n if (sortingpref == 1)\n sortByDate();\n if (sortingpref == 2)\n sortByBirthYear();\n }",
"public void sort(){\n initialize();\n sort... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
root:c:w:pnlAddNew:c:w:cmbLiabilityType:combobox OTH root:c:w:pnlAddNew:c:w:pnlBorrowers:c:w:chkBorrowerOne:checkbox on root:c:w:pnlAddNew:c:w:pnlRepaymentAmount:c:w:crbRepaymentAmount:tb 1 root:c:w:pnlAddNew:c:w:pnlOtherValue:c:w:crbValue:tb 2 root:c:w:pnlAddNew:c:w:pnlOtherValue:c:w:txaDescription:textarea 3 stepToke... | @And("^(Borrower) types Other repayment amount : (.*)$")
public void user_types_other_repayment_amount(String usertType, String repaymentAmount) {
// yourFinancialCommitmentsPage.typeOtherRepaymentAmount(repaymentAmount);
financialParameters.put("root:c:w:pnlAddNew:c:w:pnlRepaymentAmount:c:w:crbRepay... | [
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel3 = new javax.swing.JPanel();\n jPanel1 = new javax.swing.JPanel();\n jPanel2 = new javax.swing.JPanel();\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the value at index 30. | public V getValue30(); | [
"public DataValue get(int index);",
"public int get (int index)\n {\n return data[index];\n }",
"@Override public Number get(int index) {\n return longValue(index);\n }",
"Object GetValue(int index);",
"public int get(int index) {\n return values.get(index+1);\n }",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Delete the classroom by id. | public void delete(Long id) {
log.debug("Request to delete Classroom : {}", id);
classroomRepository.deleteById(id);
} | [
"public void deleteClassroom(Long roomId);",
"@Override\n public void deleteClassroom(String id)\n {\n String preparedSql = \"DELETE FROM sep.classrooms WHERE classroomid = '\" + id + \"';\";\n\n try\n {\n PreparedStatement queryDeleteClassroom = connection.prepareStatement(p... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ renamed from: s | int mo2040s(); | [
"private final void r(String s) {\n if (m() > 0) setto(s);\n }",
"void mo30518a(S s, int i);",
"private String fromAlias(String s) {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tif (s != null && !s.isEmpty()) {\n\t\t\tsb.append(\" \");\n\t\t\tsb.append(s);\n\t\t}\n\t\treturn sb.toString()... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Increment the loss count by 1. | public void incrementLossCount() {
Configurations.getPlayersconfig().getConfigurationSection(player).set("losses", getLosses() + 1);
Configurations.savePlayersConfig();
} | [
"public void addLoss()\n {\n numLosses++;\n }",
"public void lossAGame(){\n NumberOfLoss++;\n }",
"public void addLoss(){\n\t\tthis.losses++;\n\t\tthis.plays++;\n\t}",
"public void incrementLosses(){\n\n losses++;\n }",
"public int getLossCount()\n\t{\n\t\treturn lossCount;\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Parametros necesarios para colocar los elementos nuevso en la vista | private void crearInformacionVista(Actividad actividad)
{
LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(
LinearLayout.LayoutParams.MATCH_PARENT,
LinearLayout.LayoutParams.WRAP_CONTENT
);
//Se crea el boton y se le asigna un Listener
... | [
"@Override\r\n void adicionarElementosAoPainel() {\n this.add(btNovoJogo);\r\n this.add(btCarregar);\r\n this.add(btRanking);\r\n this.add(btSairDoJogo);\r\n }",
"void agregar(T elemento);",
"@Override\n\tprotected Entidad nuevoElemento() {\n\t\treturn null;\n\t}",
"@Override... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method getToolTipText. Will retrieve the tooltip for the value of the | public String getToolTipText( int row, int col )
{
String rc = "";
Vector data = this.getDataVector();
Vector theRow = (Vector) data.elementAt(row);
Object obj = theRow.elementAt(col);
if (obj instanceof ColumnDataCellTooltip)
{
rc = ((ColumnDataCellTooltip) obj).getCellToolTip... | [
"public String getToolTipText() {\n return tooltipText;\n }",
"public String getToolTip()\n {\n return this.tooltipText;\n }",
"String getTooltip ();",
"public String getToolTip() {\n\t\treturn myToolTip;\n\t}",
"public abstract String getToolTip();",
"public String getTipText() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test case number: 23 /Coverage entropy=1.5600040073151407 | @Test(timeout = 4000)
public void test023() throws Throwable {
JSONObject jSONObject0 = new JSONObject((Object) "");
Float float0 = new Float(1126.3551F);
JSONObject jSONObject1 = jSONObject0.putOpt("lR75$SU#!y8NylM`", float0);
jSONObject1.getInt("lR75$SU#!y8NylM`");
assertEquals(4, jS... | [
"@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"
]
]
}
} |
Defines what happens when user clicks on "Sign Up Button" | public void createUser(View view) {
userName = ((EditText)findViewById(R.id.username)).getText().toString().trim();
password = ((EditText)findViewById(R.id.password)).getText().toString().trim();
name = ((EditText)findViewById(R.id.name)).getText().toString().trim();
gender = ((EditText)... | [
"void login_OnSignUpButtonClick();",
"public void signUp() {\n handleSignUp(username.getText(), password.getText());\n }",
"public void onSignUpClick(){\n\n }",
"private void addSignUpButtonListener() {\n signup.setOnClickListener(new View.OnClickListener() {\n @Override\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets (as xml) the "DeveloperName" element | public org.apache.xmlbeans.XmlString xgetDeveloperName()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(DEVELOPERNAME$2, 0);
... | [
"public String getDeveloperName()\n {\n return developerName;\n }",
"public void setDeveloperName(String developerName)\n {\n this.developerName= developerName;\n }",
"public String getDeveloperId() {\r\n\t\treturn developerId;\r\n\t}",
"public java.lang.String getXMLName()\r\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the working directory of the FTP server it is connected to. | public String pwd() throws IOException {
sendLine("PWD");
String dir = null;
String response = readLines(new int[] { 257 }, null);
if (response.startsWith("257 ")) {
int firstQuote = response.indexOf('\"');
int secondQuote = response.indexOf('\"', firstQuote... | [
"public String getWorkingDir(){\n Path WD = Paths.get(\"\");\n return WD.toAbsolutePath().toString();\n }",
"private static String getWorkingDir() {\n\t\tFile f = new File(\"\").getAbsoluteFile();\n\t\tString workingDir = f.getAbsolutePath() + System.getProperty(\"file.separator\");\n\t\treturn w... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ access modifiers changed from: 0000 / renamed from: b | public final synchronized List<C10359a> mo34256b(String str, String str2) {
ArrayList arrayList;
List<ContentValues> list;
arrayList = new ArrayList();
C10656b a = C10656b.m34962a();
if (str2 == null || str2.trim().length() == 0) {
C10656b bVar = a;
list =... | [
"private B000066() {\r\n\r\n\t}",
"public abstract void mo30461b();",
"@Override\n\tpublic int b() {\n\t\treturn 0;\n\t}",
"protected void method_5557() {}",
"public abstract az mo1423b();",
"public abstract void mo1443b();",
"public interface AbstractC3209b {\n /* renamed from: a */\n voi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional .WebRTCReq webrtc_req = 11; | public boolean hasWebrtcReq() {
return notifyCase_ == 11;
} | [
"void createMediaConstraints() {\n pcConstraints = new MediaConstraints();\n\n // Enable DTLS for normal calls and disable for loopback calls.\n if (peerConnectionParameters.loopback) {\n pcConstraints.optional.add(new MediaConstraints.KeyValuePair(DTLS_SRTP_KEY_AGREEMENT_CONSTRAINT,... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
repeated .com.heme.logic.module.SubjectOfTeacherCombine subjectOfTeacherInfo = 3; | public Builder addSubjectOfTeacherInfo(
com.heme.logic.module.Data.SubjectOfTeacherCombine.Builder builderForValue) {
if (subjectOfTeacherInfoBuilder_ == null) {
ensureSubjectOfTeacherInfoIsMutable();
subjectOfTeacherInfo_.add(builderForValue.build());
onChanged();
... | [
"Subject getSubject() {\n/* 133 */ return this.subject;\n/* */ }",
"yandex.cloud.api.access.Access.SubjectOrBuilder getSubjectOrBuilder();",
"public String getSubject() { return subject;}",
"public interface TAG_MULTIPLE_COMPONENTS\n{\n\n /** \n * Indicates that the value encapsulated is of ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Push down size (limit) and from (offset) to DSL request. | public void pushDownLimit(Integer limit, Integer offset) {
SearchSourceBuilder sourceBuilder = request.getSourceBuilder();
sourceBuilder.from(offset).size(limit);
} | [
"public void setLimit(int count){this.count = count;this.from = 0;}",
"public void setLimitOffset(int limit, int offset) {\n this.limit = limit;\n this.offset = offset;\n }",
"public void customLoadMoreDataFromApi(int offset) {\t\r\n\t\tstart = offset;\r\n\t\tgetDataFromApi();\r\n\t}",
"publ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method corresponds to the database table t_msg | public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
} | [
"@Override\n\tpublic List<Message> listMessages(Integer tid) {\n\t\tString SQL=\"select * from Message where tid = ?\";\n\t\tList<Message> messages=jdbcTemplateObject.query(SQL, new Object[] {tid}, new MessageMapper());\n\t\treturn messages;\n\t}",
"Usermsg selectByPrimaryKey(Integer msgid);",
"public Message g... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Replacement for missing Entry.equals(). It is implemented as a separate method to maintain compatibility. | private static boolean equal(ISVNStatus e1, ISVNStatus e2) {
if (!SVNStatusKind.IGNORED.equals(e1.getTextStatus()) && !SVNStatusKind.UNVERSIONED.equals(e1.getTextStatus())
&& !SVNStatusKind.ADDED.equals(e1.getTextStatus())) {
// check revisions just when it's meaningful, unversioned... | [
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Entry)) {\n return false;\n }\n Entry other = (Entry) object;\n if ((this.key == null && other.key != null) || (this.key != null && !this.key.equals(other.key))) {\n return false;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__While__Group_1__4__Impl" $ANTLR start "rule__While__Group_1_3__0" ../pimar.editor.textual.xwcore.ui/srcgen/pimar/editor/textual/xwcore/ui/contentassist/antlr/internal/InternalXwcore.g:9841:1: rule__While__Group_1_3__0 : rule__While__Group_1_3__0__Impl rule__While__Group_1_3__1 ; | public final void rule__While__Group_1_3__0() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../pimar.editor.textual.xwcore.ui/src-gen/pimar/editor/textual/xwcore/ui/contentassist/antlr/internal/InternalXwcore.g:9845:1: ( rule__While__Group_1_3__... | [
"public final void rule__WhileStatement__Group__3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:8627:1: ( rule__WhileStatement__Group__3__Impl rule__WhileStatement__Group__4 )\n // InternalMyDsl.g:8628:2: rule__W... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
A method to set a hazard number for a specific fish. | public void setHazType(int hType) {
this.hazardNum = hType;
} | [
"void setHp(int newHp);",
"public void setHp(final int hp) {\n this.hp = hp;\n }",
"public Builder setFenshaoNum(int value) {\n bitField0_ |= 0x08000000;\n fenshaoNum_ = value;\n onChanged();\n return this;\n }",
"@Override\n public int Hizlan(int hiz_fark) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO do annotations or overloading decide what arg is required? should that decision be externalized? | protected List<QueryArgument> collectArguments(List<QueryResolver> resolvers) {
Map<String, List<QueryArgument>> argumentsByName = resolvers.stream()
.flatMap(resolver -> resolver.getQueryArguments().stream()) // merge all known args for this query
.collect(Collectors.groupingBy(... | [
"public interface ApiDefinition {\r\n \r\n /**\r\n * Verifies that the supplied list of arguments can be handled within a call.\r\n * \r\n * @param id The id used for the api function. Neither <code>null</code> nor empty.\r\n * @param args The arguments that have to be tested. Maybe <code>null</code... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
private int mobile; constructor | public Client(String ccode, String cname, String emailaddress, String physicaladdress) {
this.ccode = ccode;
this.cname = cname;
this.emailaddress = emailaddress;
this.physicaladdress = physicaladdress;
} | [
"public int getMobile() {\n return mobile;\n }",
"public long getMobile() {\n return mobile;\n }",
"public String getMobile() {\n\t\treturn mobile;\r\n\t}",
"public int getMobileNumber()\n{\n return mobileNumber;\n}",
"public CellularPhone() {\n phoneBrand = \"Apple\";\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Send a "map" of the Blocks directly around the player | public void sendMap() {
if (!isOnline() || getPlayer() == null)
return;
sendMap(getPlayer().dimension, getPlayer().chunkCoordX, getPlayer().chunkCoordZ);
} | [
"public void sendBaseMapInfo(Player player, Map map);",
"public SendMap(World world) {\n\t\tthis.rows = (short) world.getTileRows();\n\t\tthis.columns = (short) world.getTileColumns();\n\n\t\tvar worldEntities = world.getEntities();\n\t\tassert !worldEntities.isEmpty() : \"Empty world passed to SendMap network co... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public void printUsage() {
} | [
"@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"
]
]
}
} |
remove any account numbers that were already printed with the hourly invoices | private void printJustCloudInvoices() {
TreeMap<String, Float> accountNumberTotals = carahsoftParser.getAwsAccountNumberTotals();
for (String ac: accountNumbersCloudBilled) accountNumberTotals.remove(ac);
//any remaining?
if (accountNumberTotals.size()!=0) {
TreeMap<String, String> awsAccountGroupName ... | [
"public static void removeAllInvoices() {\n\t\tConnection conn = DatabaseInfo.getConnection();\n\t\tPreparedStatement ps;\n\t\tResultSet rs;\n\t\t\n\t\tString query = \"SELECT * FROM invoice\";\n\t\tString del = \"DELETE FROM invoice\";\n\t\t\n\t\ttry{\n\t\t\tps = conn.prepareStatement(query);\n\t\t\trs = ps.execut... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
presently configuration is external/manual | public void doConfigure(Shell shell) {
} | [
"protected abstract void config();",
"@Override\n\tprotected void config() {\n\t\t\n\t}",
"public void configurations(){\n }",
"public void configurar();",
"private Config() {\r\n\t}",
"public void initConfig() {\n\n }",
"private void configure() {\n\r\n\r\n String freqpct = getConfigParame... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns true if field orderState is set (has been assigned a value) and false otherwise | public boolean isSetOrderState() {
return this.orderState != null;
} | [
"boolean hasOrderStateList();",
"public boolean isSetOrderList() {\n return this.orderList != null;\n }",
"public boolean isSetOrderItemList() {\n return this.orderItemList != null;\n }",
"public Integer getOrderState() {\r\n return orderState;\r\n }",
"public void isOrderReady(){\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
A service for managing Vertex AI's IndexEndpoints. | public interface AsyncService {
/**
*
*
* <pre>
* Creates an IndexEndpoint.
* </pre>
*/
default void createIndexEndpoint(
com.google.cloud.aiplatform.v1.CreateIndexEndpointRequest request,
io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserv... | [
"org.apache.skywalking.apm.network.register.v2.Endpoint getEndpoints(int index);",
"public interface IndexService {\n\n IndexVo getIndexVo();\n\n IndexArticleVo next(IndexQuery query);\n}",
"protected GrpcIndexServiceStub(\n IndexServiceStubSettings settings,\n ClientContext clientContext,\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional .datayes.mdl.mdl_szl2_pbmsg.double_3 GageRate = 48; | public Builder setGageRate(datayes.mdl.mdl_szl2_pbmsg.MDLSZL2Msg.double_3 value) {
if (gageRateBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
gageRate_ = value;
onChanged();
} else {
gageRateBuilder_.setMessage(v... | [
"datayes.mdl.mdl_szl1_pbmsg.MDLSZL1Msg.float_3 getOpenPrice();",
"public void updateGuartRate() {\n\t}",
"public double getRate()\r\n {\r\n return wageRate;\r\n }",
"public Float getGrowRate()\n {\n return growRate;\n }",
"@Override\r\n\tpublic\r\n\tvoid getRate() {\n\t\trate=7.50;... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
compare total cost of UnlimitedInternetTariff with another tariff | @Override
public int compareTo(MobileTariff anotherTariff) {
return Double.compare(this.getCost(), anotherTariff.getCost());
} | [
"@Override\n public int compare(Result o1, Result o2) {\n return o1.cost - o2.cost;\n }",
"Double getTotalCost();",
"protected abstract int getCostForTeamMachine(TeamMachine teamMachine);",
"@Override\n public int calculateBasicTripCost() {\n if ( numTrailers == ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Inflate the layout for this fragment | @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
mView = inflater.inflate(R.layout.fragment_artist, container, false);
ButterKnife.bind(this, mView);
return mView;
} | [
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.movie_statistic_layout, parent, false);\n }",
"@Override\n\tprotected View initView(LayoutInflater inflate... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column T_COM_PERSON.FNAME | public void setFname(String fname) {
this.fname = fname == null ? null : fname.trim();
} | [
"public void setFirstName(String fn)\n {\n name.firstName = fn;\n }",
"public void setFirstName(String fName) { firstName = fName; }",
"public void setFirstName(String fName) {\n\t\tthis.fName = fName;\n\t}",
"public void setFname(String x){fname = x;}",
"public void setFirstName(String value)\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
repeated .CMsgClientMDSUploadDepotChunks.ChunkUploadData chunks = 2; | int getChunksCount(); | [
"public int getChunkSize(){return size;}",
"public void run_one_chunk() {\n\n CountDownLatch latch = new CountDownLatch(1);\n\n pool.execute(() -> {\n int delay = 1;\n\n ProtocolInfo status = Peer.getInstance().getProtocolInfo();\n\n for(int i = 0; i < MAX_RETRANSMIS... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
For each view, check if it needs refresh and if so call refresh on it. This method may be called in a parallel thread (not the UI thread). Therefore, we refresh views calling Display.syncExec(), which will permit the refresh calls to be executed by the UI thread whenever possible, while this method is blocked waiting u... | public void refreshViews() {
Display.getDefault().syncExec(new Runnable() {
public void run() {
IWorkbenchWindow wbw = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
if (wbw != null) {
try {
IWorkbenchPage acti... | [
"protected synchronized void refresh(){\n\t\tif( Display.getDefault().isDisposed() )\n\t\t\treturn;\n\n\t\tDisplay.getDefault().asyncExec(new Runnable() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic synchronized void run() {\n\t\t\t\tif(!dispose )\n\t\t\t\t\tviewer.refresh();\n\t\t\t}\n\t\t});\t\t\t\n\t}",
"private vo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Created by Parisana on 5/12/17 | public interface IngredientService {
IngredientCommand findByRecipeIdAndIngredientId(Long recipeId, Long ingredientId);
IngredientCommand saveIngredientCommand(IngredientCommand ingredientCommand);
IngredientCommand deleteIngredientById(Long recipeId, Long ingredientId);
} | [
"@Override\n public void extornar() {\n \n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n }",
"private static void EX5() {\n\t\t\r\n\t}",
"protected void method_5557() {}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"public void... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Called just before this Command runs the first time | protected void initialize() {
Init.driveSelector.setDefaultDriveMode(this); //Always return to this drive mode after we exit for brakeing or something like that
drivebase.disableTurnController();
SmartDashboard.putBoolean("Tank", true); //Tell Smart Dashboard we are in tank mode
} | [
"@Override\n protected void initialize() {\n SmartDashboard.putString(\"Current Command\", \"Line Follow\");\n }",
"protected Hook() {\n startup();\n }",
"public void doBeforeCommand() {\n selenium.getPageExtensions().install();\n selenium.getRequestGuard().clearRequestDone();\n }",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This returns a list of the coordinates (row,col) of positions around the row, col parameters that do not contain a fish or shark. The positions that are considered are directly above, below, left and right of row, col and IN THAT ORDER. Where 0,0 is the upper left corner when fish and sharks arrays are printed out. Rem... | public static ArrayList<int[]> unoccupiedPositions(int[][] fish, int[][] sharks, int row,
int col) {
ArrayList<int[]> unoccupied = new ArrayList<>();
// Up
int newRow = row - 1;
int newCol = col;
// if the coordinate is at the top of board and you are going up
... | [
"public int[][] getAttackPosition() {\r\n\tint[][] result = new int[5][2];\r\n\tresult[0][0] = width / 20 * 7 + uppLeftX;\r\n\tresult[0][1] = height / 3 * 1 + uppLeftY;\r\n\r\n\tresult[1][0] = width / 20 * 7 + uppLeftX;\r\n\tresult[1][1] = height / 3 * 2 + uppLeftY;\t\r\n\r\n\tresult[2][0] = width / 20 * 18 + uppLe... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the score of the next best document prediction in this iteration. | public double nextScore()
{
if (!hasNext()) return -Double.MAX_VALUE;
return
corefScore
- scores[nextI[index][0]][indexes[nextI[index][0]]].score
+ scores[nextI[index][0]][indexes[nextI[index][0]] + 1].score;
} | [
"private int findNextBestFeature() {\n\t\tdouble meanError = Double.MAX_VALUE; \n\t\tint index = -1; ;\n\t\tdouble currentError = -1; \n\t\tfor( int i = 0; i < trainingSet.numAttributes(); i++ ) {\n\t\t\t\n\t\t\tif( !this.indexRankHashMap.containsKey( i ) && i != trainingSet.classIndex() ) {\n\t\t\t\t\n\t\t\t\tcurr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
FIXME: do something better than throw Exception | Datatype newOrderType(String name) throws Exception {
return null;
} | [
"@Override\n protected void _throw() {\n }",
"@Override\n\t\tpublic void throwException() {\n\t\t\t\n\t\t\t\n\t\t}",
"private String throwException() {\n throw new UnsupportedOperationException(\"Not supported\");\n }",
"public abstract Exception mo13719e();",
"public void mo33473a() {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Processes requests for both HTTP GET and POST methods. | protected void processRequest(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
response.setContentType("text/html;charset=UTF-8");
PrintWriter out = response.getWriter();
try {
String s = request.getParameter("q");
... | [
"@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n Enumeration<String> parameterNames = request.getParameterNames(); //checking for unappropriate parameters\r\n if (parameterNames.hasMoreEleme... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Call a Phase method to try the selection of a weapon. | public void selectWeapon(int weaponIndex) {
phase.selectWeaponFromInventory(weaponIndex);
} | [
"public Weapon chooseWeapon();",
"public void shoot() {\n weapons.get(selectedWeapon).shoot();\n }",
"@Override\n public void onWeaponPicked(WeaponExchanged e) {\n\n }",
"private void startFortificationPhase () {\n Player player = holder.getActivePlayer();\n\n if (player.getType(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the ordinal of a variable to the ord variable. | public void setOrdinalOf(String variable, int ord) {
varValue.put(variable, var(ord));
} | [
"void setOrdinal(int ordinal);",
"public void setOrdinal(int ordinal)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ORDINAL$0, 0);\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Solamente hace un calculo mediante un recorrido del cache para que pueda verificar si puede o no puede agregar | public static long getDisponible() {
long restante = Interfaz.tamCache;
Iterator iterator = cache.entrySet().iterator();
while (iterator.hasNext()) {
Map.Entry ent = (Map.Entry) iterator.next();
RegistroCache registro = (RegistroCache) ent.getValue();
restante... | [
"protected abstract boolean cacheExists();",
"String actualizarCacheIntegracionTron2000();",
"private void checkCache() {\n if (selectFrom == null)\n createCache();\n }",
"boolean isCaching();",
"default boolean isAllowedToLoadFromCache() {\n return true;\n }",
"public void ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Provides convenient way to set a relationship based on a ObjectKey, for example bar.setFooKey(foo.getPrimaryKey()) | public void setAttributeKey(ObjectKey key) throws TorqueException
{
setAttributeId(new Integer(((NumberKey) key).intValue()));
} | [
"public void setPrimaryKey(ObjectKey key)\n \n {\n setDorderItemId(((NumberKey) key).intValue());\n }",
"public void setPrimaryKey(ObjectKey key)\n throws TorqueException\n {\n setUserid(((NumberKey) key).intValue());\n }",
"public ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
When selecting items in the dropdown, handle these selections. | @Override
public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
if (position > 0) {
String text = parent.getItemAtPosition(position).toString();
title.setText(text);
mlconfidencevalue.setText("Score: " + suggestionsMap.get(text).substring(0... | [
"void onSelect(Collection items);",
"public abstract void onSelect(T selectedItem, int selectedIndex);",
"@Override\n public void selectItem(String selection) {\n vendingMachine.setSelectedItem(selection);\n vendingMachine.changeToHasSelectionState();\n }",
"protected abstract void handleSelect (Conte... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns new builder instance. | public static Builder builder() {
return new Builder();
} | [
"public static Builder builder()\n\t{\n\t\treturn new Builder();\n\t}",
"static Builder builder() {\r\n return new Builder();\r\n }",
"public static Builder getBuilder() {\n return new Builder();\n }",
"@SuppressWarnings(\"synthetic-access\")\n public static Builder builder() {\n retur... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the nombre of this tramite. | @AutoEscape
public String getNombre(); | [
"public String getNumero(){\n\t\treturn this.nombre;\n\t}",
"public long getNombre() {\n\t\treturn nombre;\n\t}",
"public int getNominee() {\n return nominee_;\n }",
"public static long getNombre() {\r\n\t\treturn nombre;\r\n\t}",
"public String obtenerNombre() {\r\n\t\treturn this.nombre;\r\n\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
protected void process() {
super.process();
} | [
"@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"
]
]
}
} |
optional float z = 3; | boolean hasZ(); | [
"void mo24266a(float f, float f2, boolean z);",
"@SuppressWarnings(\"unused\")\n public synchronized void setZ(float z) {\n this.z = z;\n }",
"public float getZ()\r\n {\r\n return z;\r\n }",
"public float getZ() {\r\n \t\treturn z;\r\n \t}",
"public double getZ(){\r\n return... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public void onStart() {
super.onStart();
System.out.println("start");
} | [
"@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"
]
]
}
} |
Modifies: this. Effects : add following entry from entryList if such entry is not exists else update information. | public void addEntry(Object sampleEntry){
Entry tempEntry = (Entry) sampleEntry;
String testLabel = tempEntry.getLabel();
for(int i =0; i< entryList.size(); i++){
Entry testentry = (Entry) entryList.get(i);
if(testLabel == testentry.getLabel()){
entryLis... | [
"public void addEntry(NameSurferEntry entry) {\n\t\t// You fill this in //\n\t\tif(entry != null) {\n\t\t\tlist.add(entry);\n\t\t\tupdate();\n\t\t}\n\t}",
"public void addEntry(BookEntry entry) {\n String name = entry.getPerson().getSecondname();\n PhoneNumber number = entry.getNumber();\n\n if(phonebook... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method is used to call the ACProfile model | public boolean callProfileModel() throws NbaBaseException {
VpmsModelResult vpmsModelResult = null;
boolean success = false;
HashMap deOInkMap = new HashMap();
// SPR3290 code deleted
NbaVpmsAdaptor vpmsProxy = null; //SPR3362
try {
NbaOinkDataAccess accessContract = new NbaOinkDataAccess(txLifeReqResult... | [
"public void invokeProfileService() {\n serviceBus.invoke(new ProfileServiceRequest());\n }",
"private void getProfileInformation() {\n apiService = new APIService(mResponseCallback, this);\n\n // Tag is to differentiate the response inside the callback method.\n apiService.getMethod(\"au... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Fmin has been updated. Check if a PAC conddition is satisfied | public void setFmin(double fmin); | [
"private boolean m13511fq() {\n if (!this.f2125UU || !(this.mContext instanceof Activity)) {\n return false;\n }\n try {\n if ((this.mContext.getPackageManager().getActivityInfo(new ComponentName(this.mContext, this.mContext.getClass()), 0).configChanges & 512) == 0) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the landingZoneIP value for this DataSourceInfo. | public void setLandingZoneIP(java.lang.String landingZoneIP) {
this.landingZoneIP = landingZoneIP;
} | [
"public void setIpAddr(String ipAddr) {\n setIpAndXferPort(ipAddr, getByteString(ipAddr), xferPort);\n }",
"public void setIp(InetAddress ip) {\r\n\t\tthis.ip = ip;\r\n\t}",
"public taotaole.avro.zz_yundb.Builder setIp(java.lang.CharSequence value) {\n validate(fields()[17], value);\n this.ip = va... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
open the site (row, col) if it is not open already | public void open(int row, int col) {
if (!isOpen(row, col)) {
int index = n * row + col;
open_size++;
open_list[row][col] = true;
if (row == 0) {
grid.union(index, size);
}
if (row > 0 && open_list[row - 1][col]) {
... | [
"public void open(int row, int col) throws IllegalArgumentException {\n grid[row - 1][col - 1] = true;\n openSites++;\n }",
"public void open(int row, int col){\n validate(row, col);\n int index = flatIndex(row, col);\n\n // the site is not opened\n if (isOpen(row, col... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Performs inverse kinematics calculations | public abstract void inverseKinematics(); | [
"private void calcInverse () {\n LUPDecomposition lupd = new LUPDecomposition(matrix);\n inverse = lupd.inverseMatrixComponents();\n inverted = true; // signal that the inverse computation has been performed\n }",
"public void inverse()\n\t{\n\n\t\tif (CONFIG_FIELD.MODTYPE==CONFIG_FIELD.PSEUD... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Local Methods Enable navigation | void setNavigationEnabled(boolean state) {
navigationEnabled = state;
} | [
"abstract void navigationStart();",
"protected boolean navigateThisLevel()\n\t\t{\n\t\t\treturn true;\n\t\t}",
"public void navigationPlus(){\n //Toolbar\n Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);\n setSupportActionBar(toolbar);\n //Drawer\n final DrawerLayout d... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ ================== Type: short ================== | public static short[] copyOf(final short[] src) {
return copyOf(src, 0, src.length);
} | [
"public short shortValue() {\r\n\treturn (short)intValue();\r\n }",
"public int getShortAsInt();",
"public short shortValue() {\n return (short)value;\n }",
"@Override\r\n\tpublic int getShort() {\n\t\treturn 0;\r\n\t}",
"short getValue();",
"public short shortValueExact() { throw new RuntimeExce... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Options and configuration returned by the IPv4 DHCP server. | @DBusInterfaceName("org.freedesktop.NetworkManager.DHCP4Config")
public interface DHCP4Config extends DBusInterface, Properties {
class PropertyNames {
/** Configuration options returned by a DHCP server, if any. */
public static final String Options = "Options";
}
} | [
"public static Map<DHCPOption,byte[]> getDefaultOptions(){\n\t\treturn DHCPDiscover.getDefaultOptions(null);\n\t}",
"void configureExtraDhcpOptions(Network network, long nicId, Map<Integer, String> extraDhcpOptions);",
"public com.amazon.ec2.DescribeDhcpOptionsResponse describeDhcpOptions(\r\n\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
JAVADOC Method Level Comments | @Test
public void testGetCurrentUser() {
SecurityContextHolder.clearContext();
assertNull(accessor.getCurrentUser());
setSecurityContext();
when(userRepository.findByUsername("User")).thenReturn(user);
User found = accessor.getCurrentUser();
assertNotNull("No user found", found);
assertEquals(user, f... | [
"String comment();",
"private void method1()\n { // JavadocStyle should not report any error for this method\n }",
"@Override\n\tpublic void addComment(Node n) {\n\t\t/*MethodDeclaration md = (MethodDeclaration) n;\n\t\t\n\t\t//Check if has no comments\n\t\tif(!md.getComment().isPresent()) {\n\t\t\tmd.set... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
A base constructor that sets the page's driver. The page structure is being used within this test in order to separate the page actions from the test. Please use the AppiumFieldDecorator class within the page factory. This way annotations | public MenuPO (AppiumDriver driver) {
super(driver);
} | [
"public BasePage(WebDriver driver)\r\n\t{\r\n\t\tthis.driver = driver;\r\n\t}",
"public PagesBase(WebDriver driver)\n {\n PageFactory.initElements(driver, this);\n }",
"public HomePage(WebDriver driver) {\n super();\n this.driver = driver;\n PageFactory.initElements(driver, thi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Compares two Strings and then displays a Dialog that shows the differences of the two Versions | void showDiff(@NonNull String pVersionLeft, @NonNull String pVersionRight); | [
"int CompareStringEx(WString lpLocaleName,\n int dwCmpFlags,\n WString lpString1,\n int cchCount1,\n WString lpString2,\n int cchCount2,\n Pointer lpVersionInformation,\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
on receiver destroy. when receiver removed, this method will be callback. | void onReceiverUnBind(); | [
"@Override\n\tprotected void onDestroy() {\n\t\tunregisterReceiver(mReceiver);\n\t\t\n\t\tsuper.onDestroy();\n\t}",
"@Override\r\n\tprotected void onDestroy() {\n\t\tunregisterReceiver(msgReceiver); \r\n\t\tsuper.onDestroy();\r\n\t}",
"@Override\r\n\tprotected void onDestroy() {\n\t\tunregisterReceiver(message... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Iterates over all the mappings in the state. The iterator cannot remove elements. | @Override
public Iterator<Map.Entry<K, V>> iterator() {
return Collections.unmodifiableSet(state.entrySet()).iterator();
} | [
"@Override\r\n\tpublic Iterator<T> iterator() {\n\t\tif(map != null && map.values() != null)\r\n\t\t\treturn map.values().iterator();\r\n\t\telse\r\n\t\t\treturn new HashMap<String, T>().values().iterator();\r\n\t}",
"@Override\n _Ez_Int__Int_MapIterator iterator();",
"@Override\n\t\tpublic Iterator<Pointe... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__Operation__ContentsAssignment_3" $ANTLR start "rule__Operation__ContentsAssignment_4_1" ../org.xtext.idm.projet.ui/srcgen/org/xtext/idm/projet/ui/contentassist/antlr/internal/InternalStateMachine.g:3644:1: rule__Operation__ContentsAssignment_4_1 : ( ruleAssignment ) ; | public final void rule__Operation__ContentsAssignment_4_1() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.xtext.idm.projet.ui/src-gen/org/xtext/idm/projet/ui/contentassist/antlr/internal/InternalStateMachine.g:3648:1: ( ( ruleAssignment ) )
... | [
"public final EObject ruleassignment_expr() throws RecognitionException {\r\n EObject current = null;\r\n\r\n Token this_ID_0=null;\r\n Token this_TOK_EQUAL_1=null;\r\n EObject lv_a1_2_0 = null;\r\n\r\n\r\n enterRule(); \r\n \r\n try {\r\n // ../org.x... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Throws an IllegalStateException if the precondition collection != null && !collection.isEmpty() is violated. | public static void requireNotEmpty(Collection<?> collection, String message) {
requireNotNull(collection, message);
if (collection.isEmpty()) {
throw new IllegalStateException(MessageFormat.format(
"Violation of precondition: {0} (actual collection value must not be empty) !",
message));
}
} | [
"public static boolean stateNotEmpty(Collection<?> collection, String message, Throwable cause) {\n assertStateNotNull(collection, message, cause);\n\n if (collection.size() == 0) {\n throw new IllegalStateException(message, cause);\n }\n\n return true;\n }",
"private sta... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Contains information about the intent. | public UserTurnIntentOutput getIntent() {
return this.intent;
} | [
"public void getIntentData() {\n /**\n * Obtenemos el intent que mando a llamar esta actividad y\n * obtenemos el bundle que contiene\n */\n Bundle extras = getIntent().getExtras();\n //Verificamos que tenga datos el Bundle\n if (extras != null) {\n //O... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test case number: 73 /Coverage entropy=0.0 | @Test(timeout = 4000)
public void test73() throws Throwable {
JavaCharStream.hexval('C');
JavaCharStream.hexval('1');
MockFileInputStream mockFileInputStream0 = null;
try {
mockFileInputStream0 = new MockFileInputStream((FileDescriptor) null);
fail("Expecting exception: NullP... | [
"@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"
]
]
}
} |
Set The Array Of Days | private void setViews()
{
for (int i = 0; i<calendar.getStartDay(); i++)
days[i] = "";
for (int j = calendar.getStartDay(); j<=calendar.getEndDay()+calendar.getStartDay(); j++)
days[j] = Integer.toString(j-calendar.getStartDay()+1);
for (int k = calendar.getEndDay()+calendar.getStartDay()+1; ... | [
"public void setDays(Collection<Day> days) {\n this.days = days;\n }",
"public void setDay(int day){this.day = day;}",
"public void setDays( int d )\r\n {\r\n days = ( d >= 0 && d < 8 ? d : 0 ); \r\n }",
"@Override\n public void onChanged(@Nullable List<Day> days) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public String getUniqueIdentifier() {
return null;
} | [
"@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 voor GUI class | public Gui(){
} | [
"public GUI()\n\t{\n\t\t\n\t}",
"public GUI() {\n\n initComponents();\n\n }",
"public UtilsGUI() {\r\n }",
"public Gui() {\r\n initComponents();\r\n }",
"public ClienteGUI() {\n }",
"public Tela01GUI() {\n initComponents();\n }",
"public NewGui() {\n initComponen... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public void onClick(View v) {
switch (v.getId()) {
case R.id.layout_buy_50_love_money:
buyLoveMoney(1000, 1f);
break;
case R.id.layout_buy_100_love_money:
buyLoveMoney(10000, 10f);
break;
case R.id.layout_buy_300_love_money:
buyLoveMoney(30000, 30); //
break;
case R.id.... | [
"@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"
]
]
}
} |
BuyNowsubmit: with specific test context and state. .id : .type : submit .value : Buy now .title : .class : Html.INPUT.submit .name : .classIndex : 0 | protected GuiTestObject button_buyNowsubmit_old(TestObject anchor, long flags)
{
return new GuiTestObject(
getMappedTestObject("button_buyNowsubmit_old"), anchor, flags);
} | [
"public void clickSubmit() {\n\t\t\n\t}",
"@When(\"^Click the submit$\")\r\n\tpublic void click_the_submit() throws Throwable {\n\t this.baiduHome_page.submit(); \r\n\t}",
"@Given(\"click the submit button\")\n\tpublic void click_the_submit_button() {\n\t\tdriver.findElementByName(\"submitButton\").click();\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Obtiene la lista de permisos relacionados con un rolname | public List<Permission> obtenerPermisosRole(String rolename) throws Exception; | [
"public List<Permiso> ObtenerPermisosByRol(Rol rol) {\n\t\treturn permisoRepository.obtenerPermisoByRol(rol);\r\n\t}",
"public String getListaPermisos()\r\n {\r\n String lista=null;\r\n for(Roles permiso: permisos)\r\n {\r\n if(lista==null)\r\n {\r\n li... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the selected local ADDE entries. | private List<LocalAddeEntry> getSelectedLocalEntries() {
List<LocalAddeEntry> selected = Collections.emptyList();
if (!selectedLocalEntries.isEmpty()) {
selected = arrList(selectedLocalEntries);
}
return selected;
} | [
"public Entries getEntries() {\n return localEntries;\n }",
"public java.util.List getEntries (String filter) throws Throwable {\n java.util.List entries=new java.util.ArrayList();\n DirContext ctx=new InitialDirContext(env);\n try {\n//System.out.println(\"GTQ for \"+filter);\n\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Dynamically register the GMS Server Certificate from within the client. This allows GridChem to run on machines out of the box, even when the user does not have root access to their computer to install the server cert by hand. | public static void loadGmsServerCert() {
/*
* String cert = getGmsServerPath();
* System.setProperty("javax.net.ssl.trustStore", cert); if
* (Settings.DEBUG)
* System.out.println("Adding GMS server certificate \"" + cert +
* "\" to list of trusted certificates"); // Dynamically register the
* JSSE p... | [
"public void notifyServerCertificate(org.bouncycastle.crypto.tls.Certificate serverCertificate) throws IOException {\n }",
"private static void activateSsl() {\n final String keyStore = HttpTest.class.getResource(\"/nonguestablepassword.keystore\").getFile();\n\n // Client configu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the available information within the buffer. There is no concept of the delimiter in this request which may need to be changed since in most cases I can see a full message needing to be available. | @ReactMethod
public void available(Promise promise) {
promise.resolve(mBuffer.length());
} | [
"com.message.ClientMessage.ChunkInfo getChunkInfo();",
"public List<Message> buffer() {\n\t\treturn buffer;\n\t}",
"public com.lolcampselector.grpc.Chatapi.Info getInfo() {\n if (infoBuilder_ == null) {\n return info_ == null ? com.lolcampselector.grpc.Chatapi.Info.getDefaultInstance() : info_;\... | {
"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() {
jPanel1 = new javax.swing.JPanel();
moduleBox = new javax.swing.JTextField();
resultBox = new javax.swing.JTextField();
addBut... | [
"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"
]
]
}
} |
Notifies an observer about current progress of copying | void onProgressUpdated(long receivedBytes, long totalBytes); | [
"public interface CopyProgressListener {\n void start(CopyProgressEvent evt);\n\n void progress(CopyProgressEvent evt);\n\n void end(CopyProgressEvent evt);\n}",
"public abstract void onCopy();",
"@Override\r\n public void transferred(long num) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This is the stopwatch plugin | @Override
public JPanel buildUI(IStatusReceiver receiver) {
this.receiver = receiver;
// Setup the label
timeDisplay = new JLabel("00:00:00");
long millis;
if (startingTime != null)
millis = new Date().getTime() - startingTime.getTime() + timeAccumulated;
else{
millis = timeAccumulated;
}
... | [
"public stopWatch()\n {\n start = System.nanoTime();\n }",
"public Stopwatch(){\n\t\tthis.running = false;\n\t}",
"protected SleepingStopwatch() {}",
"public Stopwatch getStopwatch() {\n \t\treturn stopwatch;\n \t}",
"public void actionPerformed(ActionEvent evt) {\n // This will be... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public List<Map<String, Object>> getUserManagementDefaultData(Map<String, Object> input) {
return (List<Map<String, Object>>) systemDao.getUserManagementDefaultData(input);
} | [
"@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"
]
]
}
} |
/String str = toLowerCase("Hello"); System.out.println(str); | public static void main(String[] args) {
int[] nums = {1,2,3,4,5,6,7};
rotate(nums,1);
} | [
"public static void main(String[] args) {\n String str = \"here\";\n System.out.println(toLowerCase(str));\n }",
"public String toLowerCase(String source){\n return source.toLowerCase();\n }",
"public String toLowerCase( ){\r\n String msg;\r\n String x;\r\n x = msg.toLo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ JADX WARNING: Removed duplicated region for block: B:113:0x02a6 / JADX WARNING: Missing block: B:34:0x00bf, code skipped: r10 = r0; / Code decompiled incorrectly, please refer to instructions dump. | public void readAppConfigList() {
StringBuilder stringBuilder;
Exception e;
Exception exception;
String str;
InputStream xmlPullParser;
InputStream inputStream = null;
XmlPullParser xmlPullParser2 = null;
String configFilePath = getConfigFilePath();
... | [
"private final void m46b() {\n /*\n r6 = this;\n r2 = 1;\n r3 = 0;\n r5 = -1;\n r0 = r6.f19d;\n if (r0 >= 0) goto L_0x000f;\n L_0x0007:\n r6.f17b = r3;\n r0 = 0;\n r0 = (p000a.p006d.C0033c) r0;\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public List<UserPAO> getAllUsers() {
return null;
} | [
"@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"
]
]
}
} |
Retrieve the "enabled" attribute of a CodeScanner script severity element | public boolean getSeverityEnabled(CSSeverity severity) {
switch (severity) {
case severity_high:
return this.csConfig.getSeverities().getHigh().isEnable();
case severity_medium:
return this.csConfig.getSeverities().getMedium().isEnable();
case severity_low:
return this.csConfig.getSe... | [
"String getLogEnabled();",
"int getSecurityLevelValue();",
"boolean isEnabled(int level);",
"public Number getEnable() {\n return (Number) getAttributeInternal(ENABLE);\n }",
"public Integer getEnabled () {\n\t\t\n\t\t// Return the value\n\t\treturn this.enabled;\n\t}",
"public int getSeverity()... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
private final Path fileStorageLocationUsers; private final Path fileStorageLocationBooks; private final Path fileStorageLocationChapters; | public FileStorageServiceImpl() {
// String uploadUsersDir = PATH + SEPARATOR + "uploads"+SEPARATOR+"users";
// String uploadBooksDir = PATH + SEPARATOR + "uploads"+SEPARATOR+"books";
// String uploadСhaptersDir = uploadBooksDir+SEPARATOR+"chapters";
// System.out.println(uploadUsersDir);
//... | [
"private void setupFiles() {\n File dir = new File(FILE_STORAGE_PATH);\n if(!dir.exists()) {\n boolean mkdirs = dir.mkdirs();\n if(!mkdirs)\n Logs.logError(\"Error creating directory storage for peer \" + this.id);\n }\n }",
"public void setStorage_path... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The main is called when the class is directly executed from the command line. | public static void main(String[] args) {
BatchTestRunner.run(AccessOtherInstancesInPrestore.class);
} | [
"public static void main(String[] args) {\n\t\tnew MainClass();\n\t}",
"public static void main(String[] args) {\n new Main();\r\n\r\n }",
"public static final void main(String[] args) {}",
"public static void main(String []args) {\n\t\tnew Main().start();\r\n\t}",
"public static void main(String ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Check is file contains more elements or all content is already parsed | boolean hasNext() throws ParsingException; | [
"public boolean hasMoreElements() {\n return cnt < fileList.size();//Is end of list reached?\n }",
"private boolean loadNextContent() {\n VirtualFile file = myFilesQueue.poll();\n if (file == null) return false;\n\n try {\n FileContent content = new FileContent(file);\n if (!isValidFi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the value of the boxHeight property. | public void setBoxHeight(int value) {
this.boxHeight = value;
} | [
"public void setCurrentHeight(int boxHeight) {\n\t\tcurrentHeight += boxHeight;\n\t}",
"public void setHeight(int height) {\n \t\tthis.rectangle.height = height;\n \t}",
"public void setBorderHeight(int height) {\n\tbheight = height;\n }",
"public void setHeight(int value) {\n this.height = valu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Convert 4 bytes to Integer | private int byteArrayToInteger(byte[] b, int offset)
{
return ((b[offset + 3] & 0xFF) << 24) | ((b[offset + 2] & 0xFF) << 16) | ((b[offset + 1] & 0xFF) << 8) | (b[offset] & 0xFF);
} | [
"public static int toInteger(byte[] bytes) {\n checkArgument(bytes.length == 4);\n return bytes[0] << 24 | bytes[1] << 16 | bytes[2] << 8 | bytes[3];\n }",
"static int threeBytesToInt(byte[] data) {\n return ((data[0] & 0xFF) << 16) | ((data[1] & 0xFF) << 8) | (data[2] & 0xFF);\n }",
"public in... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
We only want to expose the ABICompiler object once it is fully populated (_has_ compiled something) so we hide the constructor. This can only be meaningfully called by our factory methods. | private ABICompiler() {
} | [
"private BoilerModel() { \n\t\t// no implementation, just private to control usage, i.e. must call sharedInstance\n\t}",
"public Compilation() {\r\n this(null);\r\n }",
"private DynamicUsageDescriptionImpl() {\n // For use by the mock static method\n }",
"private AirCompressor() {\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public void onClick(View arg0) {
if (editText.getText().toString().equals("10086")){
Intent intent = new Intent(getActivity(),DialogActivity.class);
startActivity(intent);
}
else {
Toast.makeText(getActivity(), "您输入的密码有误", Toast.LENGTH_LONG).show();... | [
"@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"
]
]
}
} |
TODO Autogenerated method stub | public static void main(String[] args) {
lengthOfLongestSubstring l=new lengthOfLongestSubstring();
String s="wlrbbmqbhcdarzowkkyhiddqscdxrjmowfrxsjybldbefsarcbynecdyggxxpklorellnmpapqfwkhopkmco";
System.out.println(l.lengthOfLongestSubstring(s));
} | [
"@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"
]
]
}
} |
/ renamed from: v | public String mo45537v() {
return this.f42548R;
} | [
"void mo5832a(V v);",
"protected abstract int mo4149c(V v);",
"protected abstract V mo332a(int i, V v);",
"protected void SetVector(NodeVector v) {\n/* 87 */ setObject(v);\n/* */ }",
"protected final void mo7539a(V v) {\n this.a = v;\n }",
"public float getV()\n {\n return v... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
(ArrayMap does not avoid the autoboxing problem) | private void addArrayMap() {
ArrayMap<String, String> arrayMap = new ArrayMap<>();
arrayMap.put("Key1", "Value1");
arrayMap.put("Key2", "Value2");
arrayMap.put("Key3", "Value3");
for (int i = 0; i < arrayMap.size(); i++) {
String key = arrayMap.keyAt(i);
... | [
"MapArrayTypeType getMapArrayType();",
"public static native ZEArrayMemory map(Object array, boolean writeBack);",
"Map<?, ?> mo9856e(Object obj);",
"@Override\n public Object[] map(Object[] src, Object[] target) {\n if(src == null) {\n return null;\n }\n if(target == null) ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |