query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
TODO Autogenerated method stub
@Override public void changeProperty(ControllerEvent e) { }
[ "@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" ] ] } }
Compare the two given files and return the results
public static CompareResults compare(File inFile1, File inFile2) { // Make results object and compare file sizes CompareResults results = new CompareResults(); results.setSize(0, inFile1.length()); results.setSize(1, inFile2.length()); // Make empty list ArrayList<EntryDetails> entryList = new ArrayList...
[ "boolean compareFiles(String f1, String f2) throws IOException {\n\t\tString comando = null;\n\t\tif (! getFileExtension(f1).equals(\"gif\"))\n\t\t\tthrow new IOException(\"Error: No es un fichero gif\");\n\t\t\n\t\tif (!new File(f1).exists()) {\n\t\t\tSystem.out.println(\"El fichero \"+f1+ \"no existe.\");\n\t\t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Tests the "including" operation.
@Test public void testIncluding() throws ValueDoesNotMatchTypeException { TestEvaluationContext context = new TestEvaluationContext(); IDatatype sequenceIntType = new Sequence("intSeq", IntegerType.TYPE, null); EvaluationAccessor set = Utils.createValue(sequenceIntType, context, new Object[]...
[ "public final void mINCLUDING() throws RecognitionException {\n try {\n int _type = INCLUDING;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // C:\\\\data\\\\cts\\\\FURCAS\\\\furcas_full\\\\ngpm\\\\com.sap.runlet.testmetamodel.editor\\\\generated\\\\generated\\\\RunletTest.g:467:...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Called when the activity is first created.
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Typeface DinDisplayProLight = Typeface.createFromAsset(getAssets(), "fonts/DinDisplayProLight.otf"); //String callLogName = CallLog.; ArrayList<String> calllogs = new ArrayList<String>(); ...
[ "protected void onCreate() {}", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\t\n\t\tinitData();\n\t\n\t}", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\tULog.i(this, \"onCreate() \");\n\t\tinitData();\n\t}", "@Override\n public void onCreate () {\n super.onC...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void onRequestFinished(Request request, Bundle resultData) { showError(); }
[ "@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" ] ] } }
super.onBackPressed(); commented this line in order to disable back press
@Override public void onBackPressed() { }
[ "@Override\n public void onBackPressed() {\n // NO GO BACK IS ALLOWED!\n }", "@SuppressWarnings(\"unused\")\n\tpublic void onBackPressed() {\n\t\t\n\t\tif(false)\n\t\t{\n\t\t\tsuper.onBackPressed();\n\t\t\treturn;\n\t\t}\n\t\t\n\t}", "@Override\n public void onBackPressed() {\n //Currentl...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This message will notify the popup of an operator's job
public void msgThisIsMyJob(Operator operator, String job);
[ "private void popUpInformation(final String message) {\r\n\t\tDisplay.getDefault().asyncExec(new Runnable() {\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\tMessageDialog.openInformation(null, \"Updates\", message);\r\n\t\t\t}\r\n\t\t});\r\n\t}", "CustomAlert showProcessIsWorking(String message);", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
To transfer amount to another account
public static void transfer() { System.out.println("Enter your account number"); BigInteger accNumber = sc.nextBigInteger(); BankAccount account = BankAccount.chooseReciever(accNumber); if(account != null) { System.out.println("Enter recivier account number"); accNumber = sc.nextBigIn...
[ "public void transferIn(double amount, Account other){\r\n userAccount.add(amount);\r\n other.deduct(amount);\r\n }", "public void transfer(Account account, int amount) {\n this.balance -= amount;\n account.balance += amount;\n }", "public void transfer(Account b, int amount) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
swap method for shuffle
public void shuffleswap(ArrayList<Card>cards, int x , int y){ Card temp = cards.get(x); cards.set(x, cards.get(y)); cards.set(y, temp); }
[ "public void shuffle() {\n\t\t\n\t}", "public void shuffle()\n {\n /* FIX ME */\n\n }", "public void shuffle() {\n }", "public void shuffle()\n {\n for(int i=0; i<size(); i++)\n swap(i, (int)(Math.random() * size()));\n }", "public void shuffle() {\r\n \t\r\n \tfor...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates new form ViewLogin
public ViewLogin() { initComponents(); //centralizando tela no centro setLocationRelativeTo(null); }
[ "public CadastroUsuarioView(LoginUsuarioView login) {\n this.usuarios = login.getUsuarios();\n this.login = login;\n this.login.setVisible(false);\n initComponents();\n }", "public newLogin() {\n initComponents();\n }", "public LoginView() {\n usuariocontroller = ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Pretty print all the addresses in the attached file
void prettyPrintAllAddressesInFile();
[ "public static void printData()\n\t\t{\n\t\t\ttry \n\t\t\t{\n\t\t\t\tFiles.lines(new File(ADDRESSBOOK_FILENAME).toPath()).forEach(System.out::println);\n\t\t\t} catch (IOException e) \n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}", "public void toStringWAddresses (){\r\n Util.printArray(Addresses)...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Max of 20 values or all if verbose
private static String printArray(byte[] arr, boolean verbose) { String arrayAsString = Arrays.toString(verbose ? arr : Arrays.copyOfRange(arr, 0, Math.min(20, arr.length))); // If it was cut off then remove the ending square bracket to add 3 dots and re-add square bracket if (arr.length > 20 && ...
[ "com.google.protobuf.Value getMaxLimit();", "public int maxVal(){\r\n return 1000;\r\n }", "public int getMaxValues();", "public boolean useMaxForLimit() {\n \t\treturn true;\n \t}", "public void testSetMax() {\r\n\t}", "public void setMaxValue(int v){\n\t\tthis.maxValue = v;\n\t}", "public bo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Check INNER JOIN with collocated data of partitioned and replicated tables.
@Test public void testInnerJoinPartitionedReplicated() { checkInnerJoinDepartmentEmployee(DEP_PART_TAB); }
[ "void enableWhereUsedInnerJoin();", "private boolean checkJoin() {\n return outerPlans.stream()\n .filter(LogicalJoin.class::isInstance)\n .map(p -> (LogicalJoin<Plan, Plan>) p)\n .noneMatch(j -> j.getOnClauseCondition().isPresent())\n && innerPla...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
If max value is out of range each param of wave will divide by max value. If not, it will return natural wave.
private static double[] checkRange(double[] finalResult, double max) { if (Math.abs(max) > 1) { for (int i = 0; i < finalResult.length; i++) { finalResult[i] /= max; } } return finalResult; }
[ "float getMaxMW();", "public double normalizerZeroToMax(double value, int max, double vMax, double vMin){\n return (((max-0)*(value-vMin))/(vMax-vMin));\n }", "private double limit(double val, double maxMagnitude) {\n return Math.min(maxMagnitude, Math.max(-maxMagnitude, val));\n }", "floa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
default Remove jobs from the job database that are past the retention period.
public void clearJobDatabase() { try { int retentionDays = findAssetRetentionDays(JOB_DB); if (retentionDays == -1) { log.warn("SKIP clearJobDatabase because of no retentionDays in metadata."); return; } Date retentionDate = getRetentionDate(retentionDays); ...
[ "private void deleteJobs() {\n mementoHandler.deleteSelectedJobs();\n jobs.close();\n fillList(first_date, second_date);\n showUndo();\n }", "@Scheduled (cron = \" 0 1 1 * * ?\")\n//\t@Scheduled (fixedDelay = 2000)\n\tpublic void deleteOldAudit(){\n\t\t\n\t\tString lastweek = this.l...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get all day types from database
@RequestMapping("") public Iterable<DayType> findAll(){ return dayTypeService.findAll(); }
[ "Set<String> getAllGameTypesForDay();", "public java.util.List<com.liferay.timesheet.model.Day> findAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "List<Type> getAll();", "List<CpcDay> selectAll();", "public static String[] getDateTypes() {\n\t\treturn DTYPES.clone();\n\t}", "pub...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test case number: 143 /Coverage entropy=0.10710693823168355
@Test(timeout = 4000) public void test143() throws Throwable { Frame frame0 = new Frame(); ClassWriter classWriter0 = new ClassWriter((-948)); Item item0 = classWriter0.key; // Undeclared exception! try { frame0.execute(3, 1, classWriter0, item0); fail("Expecting excep...
[ "@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" ] ] } }
Final implementation. subclasses are differentiated viy version.
public final String getType() { return TYPE; }
[ "public final void metodoFinal(){\n\n\n }", "@Override\n public void extornar() {\n \n }", "public final void finalMethod(){\n System.out.println(\"Child can not create a method with method signature\");\n }", "void finalClassmethod() { // A method just for example\r\n\tSystem.out.pr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set the label text
public void setLabelText(String newLabel){ //update the instance variable circleText=newLabel; //redraw the view invalidate(); requestLayout(); }
[ "public void setLabelText(String t) { labelText = t; }", "public void setLabelText(String text) {\r\n\t\tlabel.setText(text);\r\n\t}", "public void setLabelText(String val){ res.setText(val); }", "public void setLabelText(String text) {\n\t\tlabel.setText(text);\n\t}", "public void setLabel(String newLabel)...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return all key words starting by the string passed as a parameter.
public List<VelocityKeyWord> suggest(String word) { ArrayList<VelocityKeyWord> wordBuffer = new ArrayList<VelocityKeyWord>(); // provide the directives wordBuffer.addAll(this.filterSuggestions(VelocityKeyWords.getKeyWords(), word)); // provide the predefines variables wordBuffer.addAll(this.f...
[ "public Iterable<String> words() {\n\t\treturn keysWithPrefix(\"\");\n\t}", "public abstract String[] getKeysStartingWith(String prefix);", "public void getWordSearch(String keyWord) {\n\n\t}", "public List<String> allWordsWithPrefix(String prefix) {\r\n\r\n Node trieNode = root;\r\n List<String> allWor...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Getting the next start able dependencies upon the monitor initialization.
public List<ApplicationChildContext> getStartAbleDependencies() { //returning the top level as the monitor is in initializing state return this.primaryApplicationContextList; }
[ "private Collection<Long> findCycle() {\n List<Long> cycle = new ArrayList<>();\n boolean endOfPath = false;\n long start = Thread.currentThread().getId();\n cycle.add(start);\n ResourceId waitingFor = waitsForResource.get(start);\n long next = resourceLockedBy.get(waitingF...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
DatabaseReference reff; Doctor doctor; long maxid=0;
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_doctor_register); txtname=(EditText)findViewById(R.id.dreg_fullname); txtmobile=(EditText)findViewById(R.id.dreg_mobnum); txtemail=(EditText)fi...
[ "long getCurrMaxId();", "public Long dbGetMaxIdFromEmployees();", "public M cscrIdMax(Object max){this.put(\"cscrIdMax\", max);return this;}", "Integer getMaxId();", "public int calcMaxId()\n {\n DepartmentDao dao = new DaoFactory().createDepartmentDao();\n int id = 0;\n try\n {\n id =...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ / Initialization /
public static void main(String[] args){ Timer t=new Timer(); SynthMDA mb=new SynthMDA(args); mb.process(t); }
[ "public void init() {\n\t\t\n\n\t}", "private void init(){\n\t\t\t\t\n\t}", "private void initialize() {\n \n \t}", "@Override\n \tpublic void init() {\n \n \t}", "@Override\r\n\tpublic void init() {\n\t \r\n\t}", "protected void init() {\n\t\t\r\n\t}", "private void initialize()\n {\n\n }", "pub...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method returns true if the input array is null or its length is zero.
public static boolean isEmpty(Object[] array) { if (array == null || array.length == 0) { return true; } return false; }
[ "@Override\r\n\tpublic boolean isEmpty() {\n\t\tif (array == null || array.isEmpty())\r\n\t\t\treturn true;\r\n\t\telse\r\n\t\t\treturn false;\r\n\t}", "@Override\n public boolean isEmpty() {\n return array.length <= 0;\n\n }", "public boolean isEmpty() {\n\t\treturn array.size()==0;\n\t}", "@Con...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
GENFIRST:event_txtvlcdescActionPerformed TODO add your handling code here:
private void txtvlcdescActionPerformed(java.awt.event.ActionEvent evt) { }
[ "private void jTextFieldDescricaoActionPerformed(java.awt.event.ActionEvent evt) { \n // TODO add your handling code here:\n }", "private void jTextField_TitleActionPerformed(java.awt.event.ActionEvent evt) {\n\t }", "private void jCHabDescKeyPress...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Helper function to prompt the user for an accept/deny answer Helper function to prompt the user for a yes/no answer
public boolean askAcceptDenyQuestion(String question, boolean defaultyes, long timeToWait);
[ "protected boolean promptYesNo(K inputPrompt, K invalidInputPrompt) {\r\n Predicate<String> isValid = s -> s.toLowerCase(Locale.ROOT).matches(\"^\\\\s*(y(es)?)|(no?)\\\\s*$\");\r\n String result = promptString(inputPrompt, invalidInputPrompt, isValid);\r\n return result.equalsIgnoreCase(\"yes\"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a new CsvJtlRow RecordBuilder by copying an existing Builder.
public static com.redsaz.lognition.convert.model.jmeter.CsvJtlRow.Builder newBuilder( com.redsaz.lognition.convert.model.jmeter.CsvJtlRow.Builder other) { return new com.redsaz.lognition.convert.model.jmeter.CsvJtlRow.Builder(other); }
[ "private PickleTableRow(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public static CSV builder() {\n return new CSV();\n }", "public static org.avrotest.joinedfqrecord.Builder newBuilder(org.avrotest.joinedfqrecord.Builder other) {\n return new ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method used to receive manager details for respective SubcoDemandId
public List<Manager> getManagerDetailsForRecord(int subcoDemandID) { List<Manager> listOfManagerDetails = null; Session session = sessionFactory.openSession(); try { Query query = session.createQuery("select m from Manager m " + "where m.subcoDemandID=:subcoDemandID"); query.setParameter("subcoDemandID", su...
[ "public ManagerVO getManager(String memId) throws BizNotFoundException ;", "public void setmgrId(int mgrId){\r\n this.mgrId = mgrId;\r\n }", "@Override\r\n\tpublic ResponseDto getTaskDetails(String managerId) {\r\n\t\tlogger.info(\"WorklfowServiceImpl | getTaskDetails | Execution start input \" + man...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the publication year.
public void setPublicationYear(Integer publicationYear) { this.publicationYear = publicationYear; }
[ "public final void year(String year) {\n this.year_ = year;\n }", "public void setYear(int year) {\n super.setYear(year);\n updateConstants();\n }", "private void setYear(int year) {\n\t\tthis.year = year;\n\t}", "public void setYear(int year)\n {\n this.year = year;\n }", "public void s...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Parses string to int, using current locale
public static int parseInt(final String s) { try { return NumberFormat.getIntegerInstance().parse(s).intValue(); } catch (ParseException e) { throw new NumberFormatException("Failed to parse \"" + s + "\" to int"); } }
[ "public static int parseInt(String S){\n int value = 0;\n for(int i=0; i<S.length(); i++){\n value = value*10 + (int)(S.charAt(i)-'0');\n }\n return value;\n}", "public static int myAtoi(String str) {\n\t\tint result = 0;\n\t\tif (str.equals(\"\")) {\n\t\t\treturn result;\n\t\t}\n\t\tint x = 0;\n\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/////////////////////////////////////////////////////////////// Constructors /////////////////////////////////////////////////////////////// Empty constructor
public TreeCrossover() { super(); }
[ "public Tanh() {\n\t}", "public Cachorro() {\r\n }", "private O()\r\n {\r\n super();\r\n }", "public Innlegg() {\n\t\t\n\t}", "public HeteroAST() { ; }", "public CommonTS() {\n }", "protected ExampleObject() {\n super();\n }", "protected GeometricObject(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Completely wipe (zero out) the page.
public void wipe(BaseTransaction transaction) { byte[] zeros = new byte[Page.pageSize]; writeBytes(transaction, zeros); }
[ "void discard(Page page);", "void removeAllPages();", "public Builder clearPage() {\n \n page_ = 0;\n onChanged();\n return this;\n }", "public void removeAllPages() {\n for(int ii = pages.size() - 1; ii >= 0; ii--) {\n pages.remove(ii);\n }\n }", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method is sends either an "undo" or "redo" request to the current PgenCommandManager
@Override public Object execute(ExecutionEvent event) throws ExecutionException { if ( PgenSession.getInstance().getPgenResource() != null && PgenSession.getInstance().getPgenResource().isEditable() ) { if ( event.getApplicationContext().equals("Undo")) PgenSession.getInstance().getCommandManager().undo...
[ "@Override public synchronized void redo()\n{\n if (!canRedo()) return;\n\n undo_support.beginRedo();\n super.redo();\n undo_support.endRedo();\n handleCommandEnd();\n}", "@Override\n public void redo() {\n this.mCommandHistory.redo();\n }", "public abstract CommandResult undo();", "@Ov...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO: what does singleton scope means when adding to collection?
public JobModuleExtender addJob(Class<? extends Job> jobType) { contributeJobs().addBinding().to(jobType).in(Singleton.class); return this; }
[ "protected Collection() {}", "public SimpleCollection() {\r\n\t\tsuper();\r\n\t\tthis.collectionValue = new ArrayList<>();\r\n\t\tthis.collectionValue.addAll(Factory.getInstances(Support.getRandom().nextInt(4)));\r\n\t}", "@Override\n\tpublic int add(CollectionBean t) {\n\t\tCollectionDao likeDao = new Collecti...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return all the commit mocks this branch contains.
public List<CommitMock> commits() { List<CommitMock> commits = new ArrayList<CommitMock>(); for (int i : indices) { commits.add(CommitMock.COMMITS[i]); } return commits; }
[ "public LinkedList<String> getCommits() {\n return _branchCommits;\n }", "public static Collection<Commit> values() {\n return values(Commit.class);\n }", "public List<PushCommit> getCommits() {\n return Collections.unmodifiableList(commits);\n }", "public void testGetRep...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void onCreate() { super.onCreate(); Firebase.setAndroidContext(this); Log.d("Testing", "Service got created"); Toast.makeText(this, "ServiceClass.onCreate()", Toast.LENGTH_LONG).show(); mGoogleApiClient = new GoogleApiClient.Builder(this) .add...
[ "@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 optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
public boolean hasMetadata() { return ((bitField0_ & 0x00000001) == 0x00000001); }
[ "@Override\n\tpublic Metadata getMetadata() {\n\t\treturn meta;\n\t\t}", "@JsonProperty(\"metadata\")\r\npublic void setMetadata(Metadata metadata) {\r\nthis.metadata = metadata;\r\n}", "@Override\n public Metadata getMetadata() {\n final DefaultMetadata meta = new DefaultMetadata();\n return m...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
BExpr returns Expr: Interval | LPAREN EExpr RPAREN;
@Override public ParserRule getRule() { return rule; }
[ "IExpr genParen(IExpr expr);", "any_expr getExpr2();", "public static BoundOperator getBoundOperator(String strExpression, CurPos curpos) throws JFCALCExpErrException\n {\n BoundOperator BOPTRReturnValue = new BoundOperator();\n if ( (strExpression.length() > curpos.m_nPos) && (strExpression.ch...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The widths range from 1 (for equal to parent) to 0 (thin), 1, 2, 4, 8.
public void setEdgeWidth(MindMapNode node, int width);
[ "Object getWidths();", "public double getDesiredWidth();", "@Override\n public int getWidth(){\n return width - 10;\n }", "@Override\r\n\tpublic int getWidth() {\n\t\treturn WIDTH;\r\n\t}", "@Override\n\tpublic int width() {\n\t\treturn w;\n\t}", "public int getWidth() {\r\n \treturn inner...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__DataOperation__FeaturesAssignment_4_1" $ANTLR start "rule__DataOperation__FeaturesAssignment_4_2_1" InternalDataDsl.g:5400:1: rule__DataOperation__FeaturesAssignment_4_2_1 : ( ruleDataOperationFeature ) ;
public final void rule__DataOperation__FeaturesAssignment_4_2_1() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalDataDsl.g:5404:1: ( ( ruleDataOperationFeature ) ) // InternalDataDsl.g:5405:2: ( ruleDataOperationFeature ) ...
[ "public final void rule__DataOperation__FeaturesAssignment_4_2_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalTechnologyDsl.g:12823:1: ( ( ruleDataOperationFeature ) )\n // InternalTechnologyDsl.g:12824:2: ( ruleDataOpe...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Default constructor with text to set. Also if you want to make it easy to use with Json marshaller/unmarshaller component should contain empty constructor.
public PasswordInput(String text) { super(text); }
[ "public Text() {}", "public Text()\n\t\t{\n\t\tsuper();\n\t\t}", "public NewTextComponent() {\r\n\t\tthis(-1, -1, \"\");\r\n\t}", "public EzLabel(String text)\n {\n this(text, Color.black);\n }", "private void init(String text) {\n\t}", "public BTextField (String text)\n {\n th...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Handles the click of the output slot
public interface ClickHandler { /** * Is called when a {@link Player} clicks on the output in the GUI * * @param clicker The {@link Player} who clicked the output * @param input What the item was renamed to * @return What to replace the text with, or null to close...
[ "@FXML\n private void switchToOutputClicked() {\n setGlobalEdgeStatus(EdgeStatus.OUTPUT);\n }", "public void mouseClicked (MouseEvent e)\n {\n //System.out.println(\"\");\n }", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\n\t\t\t}", "@Override\r\n\t\t\t\tpublic v...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
log.info("changing value " + originalValue + " from '" + originalValue + "' to '" + element.getAttribute("value") + "'");
public void afterChangeValueOf(WebElement element, WebDriver selenium) { }
[ "@Override\n\tpublic void beforeChangeValueOf(WebElement arg0, WebDriver arg1, CharSequence[] arg2) {\n\t\tSystem.out.println(\"Before Chage of value\" + arg0.getAttribute(\"value\"));\n\t\t\n\t}", "default String value(WebElement element) { return element.getAttribute(\"value\");}", "@Override\n\tpublic void b...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__ExtendsAssignement__Group_2_2__1__Impl" $ANTLR start "rule__ExtendsAssignement__Group_3__0" ../org.sqlproc.meta.ui/srcgen/org/sqlproc/meta/ui/contentassist/antlr/internal/InternalProcessorMeta.g:8218:1: rule__ExtendsAssignement__Group_3__0 : rule__ExtendsAssignement__Group_3__0__Impl rule__ExtendsAssi...
public final void rule__ExtendsAssignement__Group_3__0() throws RecognitionException { int stackSize = keepStackSize(); try { // ../org.sqlproc.meta.ui/src-gen/org/sqlproc/meta/ui/contentassist/antlr/internal/InternalProcessorMeta.g:8222:1: ( rule__ExtendsAssignement__Group_3...
[ "public final void rule__ClassDeclaration__Group_2__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMiniJava.g:1516:1: ( ( 'extends' ) )\n // InternalMiniJava.g:1517:1: ( 'extends' )\n {\n // ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated for supporting the association named Worker2Organization. It will be deleted/edited when the association is deleted/edited. / WARNING: THIS METHOD WILL BE REGENERATED.
public void secondarySetOrganization(com.hps.july.persistence.Organization anOrganization) throws java.rmi.RemoteException { this.getOrganizationLink().secondarySet(anOrganization); }
[ "void secondaryAddOrganization(com.hps.july.persistence.Organization anOrganization) throws java.rmi.RemoteException;", "protected com.ibm.ivj.ejb.associations.interfaces.SingleLink getOrganizationLink() {\n\tif (organizationLink == null)\n\t\torganizationLink = new PositionResponsibleWorkersToOrganizationLink(th...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
for automation test to check whether the keyword text field is editable
@FXML public boolean checkKeywordIsDisable() { return Keyword.isDisable(); }
[ "@Test\n public void editTextName_canBeTypedInto() {\n ViewInteraction actionMenuItemView = onView(\n allOf(withId(R.id.voegStudentToe), withContentDescription(\"Voeg student toe\"),\n childAtPosition(\n childAtPosition(\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a new ListenableFuturestyle stub that supports unary calls on the service
public static PaymentServiceFutureStub newFutureStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory<PaymentServiceFutureStub> factory = new io.grpc.stub.AbstractStub.StubFactory<PaymentServiceFutureStub>() { @java.lang.Override public PaymentServiceFutureStub newStub(i...
[ "private static final class <init> extends AbstractFuture\n{\n\n boolean setFuture(ListenableFuture listenablefuture)\n {\n boolean flag = set(listenablefuture);\n if (isCancelled())\n {\n listenablefuture.cancel(wasInterrupted());\n }\n return flag;\n }", "p...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Lista todos los objetos Lecturaconversionenergetica en la base de datos.
public ArrayList<Lecturaconversionenergetica> listAll() throws NullPointerException;
[ "public void cargarContratos() {\r\n Statement stmt = null;\r\n contratos = new ArrayList<>();\r\n String query = \"select * from jugador_equipo\";\r\n try {\r\n stmt = conn.createStatement();\r\n ResultSet rs = stmt.executeQuery(query);\r\n\r\n while (rs...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Maintain a minheap of processes that have arrived in shortest remaining time first order
private void shortestRemainingTime() { PriorityQueue<Process> minHeap = new PriorityQueue<Process>(processQueue.size(), new Comparator<Process>() { public int compare(Process p1, Process p2) { return Float.compare(p1.getRunTime(), p2.getRunTime()); } }); Process curr = null; for (int i = 0; i < ...
[ "public void buildHeap(ArrayList<City> cities) {\n // TODO: implement this method\n// City placeholder = new City(-1);\n// placeholder.setIndex(-1);\n// placeholder.setMinDist(-1);\n// minHeap.add(placeholder);\n //Add each city into heap\n for(int c = 0; c < cities....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Prints the array dimensions
private static String dims(int level){ String dims = ""; for(int i=0;i<level;i++){ dims+="[]"; } return dims; }
[ "public int numberDimensions();", "public static void main(String[] args) {\n\t\t\n\t\tint [][] twoDArray={\n\t\t\t\t{10, 20},\n\t\t\t\t{1, 2, 3},\n\t\t\t\t{100, 200, 300, 400}\t\n\t\t};\n\t\tint howManyArrays=twoDArray.length;\n\t\tSystem.out.println(howManyArrays); //3\n\t\tSystem.out.println(twoDArray[2].lengt...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This overridden method queries the SearchableAttributeFloatValue persistence class
public List<BigDecimal> getSearchableAttributeFloatValuesByKey( String documentId, String key) { List<BigDecimal> lRet = null; QueryByCriteria.Builder builder = QueryByCriteria.Builder.create(); builder.setPredicates(equal("documentId",documentId), equal("searchableAttributeKey...
[ "public float getFloat() throws SQLException;", "@Override\r\n\tpublic float getFloat(String sql) {\n\t\treturn 0;\r\n\t}", "@Override\n public float floatValue() {\n return value;\n }", "public SearchKey(final Float value) {\n this.type = KeyType.FLOAT;\n this.size = Float.SIZE / Byte....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
seta o valor de valorservico
public void setValorservico(float pValorservico){ this.valorservico = pValorservico; }
[ "private void updateValoracio() {\n\t\t\n\t}", "public void setValor(Object pValor) {\r\n\t\tvalor = pValor;\r\n\t}", "private void atualizarValor() {\n\t\t\n\t}", "public void setPueSer(int pueSer){\r\n intPueSer=pueSer;\r\n }", "public void setCodCliente(Integer codCliente)\n/* 22: */ {\n/...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
initialize your data structure here
public ImplementQueueUsingStack_232() { s1 = new Stack<>(); s2 = new Stack<>(); }
[ "public void init() {\n \tsections=new ArrayList<Section>();\n comments = new ArrayList<ArrayList<String>>();\n }", "@Override\n\tpublic void initData() {\n\n\t\t\n\t}", "private void initializeData() {\n employees.put(1, \"Amos Burton\");\r\n employees.put(2, \"Julie Mao\");\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Add transforms to the Scene.
public void addTransforms() { Pack pack = PackManager.v().getPack("wjtp"); addStandardTransforms(_toplevel); addTransform(pack, "wjtp.gt", GrimpTransformer.v()); addTransform(pack, "wjtp.finalSnapshotJimple", JimpleWriter.v(), "outDir:" + _outputDirectory); addTransform(pack, "wjtp.finalSnapshot", ClassW...
[ "public void addTransformation(Transform t) {\r\n\t\ttransform.data.transform = transform.data.transform.transform(t);\r\n\t\t\r\n\t\tTransform tInv = t.inverse();\r\n\t\tfor (int light = 0; light < numLights; light++) {\r\n\t\t\tlightPosition.data.vectors[light] = tInv.transform(lightPosition.data.vectors[light]);...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ / / LOAD DATA / / Reads input data from file specified in command line argument and places data in inputDataArray.
protected void loadData(short [][] data, int numActions, int numInstances) { newAprioriT.numCols = numActions; newAprioriT.numRows = numInstances; newAprioriT.dataArray = new short [data.length][]; for (int i = 0; i < data.length; i++){ newAprioriT.dataArray[i] =...
[ "public final void loadData()\r\n {\r\n final FileInputLineProcessor dataItemLineProcessor = new FileInputLineProcessor()\r\n {\r\n @Override\r\n public void processLine(final String line) throws IOException\r\n {\r\n T item = parseLine(line);\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Give submittables an ID and draft status on creation
@HandleBeforeCreate public void beforeCreate(StoredSubmittable submittable) { submittable.setId(UUID.randomUUID().toString()); ProcessingStatus processingStatus = ProcessingStatus.createForSubmittable(submittable); processingStatus.setId(UUID.randomUUID().toString()); processingStat...
[ "public String getDraftId() {\r\n return draftId;\r\n }", "public Ticket() {\n this.status = statusEnum.PENDING;\n }", "SubmittedByType createSubmittedByType();", "private void saveDraft() {\n Toast.makeText(getContext(), \"Your draft is saved.\", Toast.LENGTH_LONG).show();\n }",...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Add a temp file provider to the config.
private void addFileProvider(Configuration conf) throws Exception { final File file = tempDir.newFile("test.jks"); final URI jks = ProviderUtils.nestURIForLocalJavaKeyStoreProvider( file.toURI()); conf.set(CredentialProviderFactory.CREDENTIAL_PROVIDER_PATH, jks.toString()); }
[ "@BeforeClass\n public static void createTempFileProvider() throws IOException\n {\n provider = TempFileProvider.create(\"shrinkwrap-\", service);\n }", "public TemporaryFileProvider(final File rootFile) {\n this();\n this.rootFile = rootFile;\n }", "@FunctionalInterface\n\tprivate s...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method returns the optional 'to' participant.
public Participant getToParticipant() { return(m_toParticipant); }
[ "public final String getTo() {\n return this.to;\n }", "public final User getTo() {\n return m_to;\n }", "public int getReceiver() {\n return to;\n }", "private CCRElement getToActor() throws JDOMException, IOException {\n\t // Is there a To actor yet?\n\t C...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method corresponds to the database table AGENTS_TOTAL_FACT
public Criteria or() { Criteria criteria = createCriteriaInternal(); oredCriteria.add(criteria); return criteria; }
[ "@Override\n public Double get_total_ventas_ecommerce_fechas(){\n Double result = 0.0;\n Query query = new Query();\n String select = \"SELECT * from ecommerce.total_ventas_ecommerce_fechas('2020-05-24','2020-12-30')\";\n query.select.set(select);\n query.where = \"\";\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
build array list of shape.
public Paint(){ shapes = new ArrayList<>(); }
[ "public abstract INDArray create(List<INDArray> list, int[] shape);", "@Override\r\n public INDArray create(int[] shape) {\r\n return create(shape, Nd4j.getStrides(shape), 0);\r\n }", "public Shape[] fillArr() {\r\n\t\tShape[] s = new Shape[RANGE];\r\n\r\n\t\tArrayList<Integer> list = new ArrayList...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get a host for the given parameters. This method need not be threadsafe.
public HttpHost getHost(String host, int port, String scheme) { if(scheme == null) { scheme = "http"; } Protocol protocol = protocols.get(scheme); if(protocol == null) { protocol = Protocol.getProtocol("http"...
[ "public KnownHost getKnownHost(String hostname);", "ResourceHost getResourceHostByName( String hostname ) throws HostNotFoundException;", "public TblHosts getHostByName(Hostname hostName) throws CryptographyException { // datatype.Hostname\n TblHosts tblHosts = new TblHosts();\n try {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get last executable return code line added.
protected ExecutableReturnCodeLine getLastExecutableReturnCodeLine(){ int executablesSize = this.getExecutablesReturn().size(); if(executablesSize > 0){ return this.getExecutablesReturn().get(executablesSize - 1); } throw new CodeGeneratorException("Executable multiples return code line hasn't added any...
[ "public int getLastLineNr() {\n return line_number[line_number.length - 1];\n }", "public Long getReturnCode() {\n return returnCode;\n }", "public int getLastLine() {\n return lineOffsets.length - 1;\n }", "@java.lang.Override\n public long getReturnCode() {\n return ret...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Computes the Euclidean distance between this and the specified point.
public float getDistance(Point p) { return (float) Math.sqrt(getDistanceSq(p)); }
[ "public Double euclideanDistance(Point p){\n int i;\n BigDecimal b=new BigDecimal(0);\n\n for(i=0;i<coordinates.size();i++){\n b=b.add((p.getCoordinates().get(i).subtract(coordinates.get(i))).pow(2));\n }\n return Math.sqrt(b.doubleValue());\n }", "public double ge...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
play each piece for certain seconds
public void play(double sec) { try { Desktop.getDesktop().browse(new URI(videoName + "?autoplay=1")); Thread.sleep((int) (1000 * (sec + BLOCK_ADJUSTMENT))); // block // for // length // of // song } catch (Exception e) { System.out.pri...
[ "void play(double millisecs) throws PlayerException;", "public void playRound(){\r\n playRound(players.length);\r\n }", "@Override\r\n\tpublic void play(long millis) throws InterruptedException {\n\t\t\r\n\t}", "void playBeat(int beat);", "public void play() {\n\t\t\r\n\t}", "public void goTime() {\n/...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
remote methods needed by players and views
public boolean isFull() throws RemoteException { return (edgesLeft == 0); }
[ "@Remote\r\npublic interface LandienRemote {\r\n void test();\r\n Collection<String> getAllLandien();\r\n\r\n int test2();\r\n\r\n void persist(Object object);\r\n void licencier(int id);\r\n\r\n void modif(Landien l, int id);\r\n\r\n // public void modifInd(int id, Industrie i) ;\r\n public...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column sys_user.createTime
public Date getCreatetime() { return createtime; }
[ "public String getCreateTime() {\n return this.createTime;\n }", "@Temporal(value = TemporalType.TIMESTAMP)\n\t@Column(columnDefinition = \"timestamp NULL default NULL\")\n\tpublic Date getCreatetime() {\n\t\treturn createtime;\n\t}", "public Date getCreateTime() {\r\n return this.createTime;\r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Schedules this player to move in the given direction by the given amount. Halts the player's movement if they can't move by the given amount.
@Override public boolean moveIn(Direction dir, int amount){ return moveInstant(dir, amount); }
[ "protected void turn(float amount) {\n direction += Math.PI * amount * Agent.turnSpeed / Environment.tickRate;\n }", "public void move(Direction direction) {\n match.getBoard().movePlayer(this, direction);\n }", "public void move(Direction dir) {\n if (this.state != PersonState.STANDI...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
onDraw event for all views
public void onDraw(Canvas canvas) { if (startup.getStartGame() == false || EnemyView.getGValues().getHealth() <= 0) { EnemyView.getGValues().setHealth(100); EnemyView.getGValues().setScore(0); startup.onDraw(canvas); } else { collisions.check(); background.onDraw(canvas); turret.onDraw(canvas)...
[ "@Override\n\tpublic void viewDrawComplete() {\n\t}", "@Override\n\tprotected void onDraw(Canvas canvas) {\n\t\tsuper.onDraw(canvas);\n\t\t\n\t\t\n\t}", "public interface OnDrawViewListener {\n void onStartDrawing();\n\n void onEndDrawing();\n\n void onClearDrawing();\n\n void onRequ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructor(s) Trivial private constructor to enforce use through Factory method.
private EMSA_PKCS1_V1_5(final IMessageDigest hash) { super(); this.hash = hash; hLen = hash.hashSize(); final String name = hash.name(); if (name.equals(Registry.MD2_HASH)) { prefix = MD2_PREFIX; } else if (name.equals(Registry.MD5_HASH)) { prefix = MD5_PREFIX; ...
[ "private PrivateConstructor() { \n \t\n }", "private Factory() { }", "private Factory() {\n\t}", "private DriverFactory()\n \t{\n \t\t//this prevents even the native class from \n \t\t//calling this ctor as well :\n \t\tthrow new AssertionError();\n \t}", "private CerealeFactory() {}", "private Mar...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void delete(int employeeId) { employeeDao.deleteEmployee(employeeId); }
[ "@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" ] ] } }
Elimina un Tipo Practica segun su id
public void eliminar(int id) { TipoPractica aux = dao.leer(id); if (aux == null) System.out.println(" no registrado"); else dao.eliminar(id); }
[ "@Override\r\n\tpublic void eliminar(long id) {\n\t\tem.remove(em.find(TipoPremio.class, id));\r\n\t}", "@Override\n\tpublic void eliminar(DiaDTO objeto) {\n\n\t}", "@Override\r\n\tpublic void eliminar(long id) {\n\t\tem.remove(em.find(Premio.class, id));\r\n\t}", "void eliminar(T entidad);", "public void e...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method corresponds to the database table S_ORDER
int deleteByExample(SOrderExample example);
[ "String getOrderColumnName();", "@Select({\n \"select\",\n \"ORDER_ID, USERNAME, SCENIC_SPOT_NAME, ADULT_TICKETS_ACCONT, CHILD_TICKETS_ACCOUNT, \",\n \"ORDER_TOTAL_PRICE, ORDER_PAYMENT_METHOD, CREATE_TIME, ORDER_STATE\",\n \"from orders\",\n \"where ORDER_ID = #{orderId,jdbcType...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the limit for the number of items per page for the search result
public int getPageLimit() { return limit; }
[ "int getPagedSearchSize();", "Response findTotalPage(Integer limit);", "@ApiModelProperty(value = \"The maximum number of results to return, defaults to 100 for most\")\n public Integer getLimit() {\n return limit;\n }", "@ApiModelProperty(value = \"The maximum number of results that may be returned in a...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Unbounded type is immutable. list.add(new Object()); // Not compile.
public void printList(List<?> list){ for (Object x : list) System.out.println("List ? <" + x.getClass().getName() + "> = " + x); }
[ "public static void addObjectToListWithUnknownType1(List<?> aList, Object o) {\n \taList.add(null);\n }", "@Override\n @SuppressWarnings(\"unchecked\")\n public void add(E value) {\n addLast(value);\n }", "public void add(RealObject object);", "void addNew(final E object);", "public bo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void widgetDefaultSelected(SelectionEvent arg0) { }
[ "@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" ] ] } }
Check if message expired or passed its availability period.
public static boolean isExpired(Date sentTime, Date expiryTime, long currentTime, Integer availabilityDays) { if (isExceededMaxAvailabilityDays(sentTime, currentTime, availabilityDays)) { return true; } if (expiryTime != null) { if (currentTime > expiryTime.getTime()) {...
[ "public boolean isExpired() {\n/* 59 */ return (System.currentTimeMillis() > getExpiry());\n/* */ }", "public boolean hasExpired ()\n {\n return System.currentTimeMillis () - startTime >= 3500 ||\n expired;\n }", "public void VerifyExpiredNotification()\r\n\t{\r\n\t\twaitF...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return the France country code.
public String getCodeFrance() { return Constantes.CODEFRANCE; }
[ "public java.lang.String getCountry() {\n java.lang.Object ref = country_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n country_ = s;\n return s;\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { doGet(req,resp); }
[ "@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" ] ] } }
Convert the given object to string with each line indented by 4 spaces (except the first line).
private String toIndentedString(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" ] ] } }
optional uint32 port = 2;
public boolean hasPort() { return ((bitField0_ & 0x00000002) == 0x00000002); }
[ "public int getPort() {\n/* 250 */ return this.port;\n/* */ }", "public abstract int port();", "int getPortnum();", "int frontendPort();", "public abstract int getDefaultProtocolPort();", "public int getPort()\r\n {\r\n return port;\r\n }", "static public int userP...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Primeste un numar de socket
ClientGUI(String host, int port) { super("Chat Client"); defaultPort = port; defaultHost = host; JPanel northPanel = new JPanel(new GridLayout(3,1)); JPanel serverAndPort = new JPanel(new GridLayout(1,5, 1, 3)); // Casutele cu adresa serverului si portul standard tfServer = new JTextField(host); ...
[ "public static void main(String[] args) throws IOException {\n Socket socket = new Socket(\"localhost\", 5001);\n System.out.println(\"Connexion avec le serveur!\");\n\n // get the output stream from the socket.\n OutputStream outputStream = socket.getOutputStream();\n // create a...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ access modifiers changed from: packageprivate
public void update(String tableName, ContentValues values, String whereClause, String[] whereArgs) { this.mPermissionSingleExecutor.submit(new Runnable(tableName, values, whereClause, whereArgs) { /* class com.android.server.security.permissionmanager.$$Lambda$HwPermDbHelper$UjXiq0EP_4Nn3fYEcXFukdBm...
[ "protected void method_5557() {}", "@Override\n }", "@Override\n public void extornar() {\n \n }", "public void mo28221a() {\n }", "protected void mo4791d() {\n }", "protected void method_2117() {\n }", "@Override\r\n public void publicando() {\n }", "private ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Reads an Object from a File.
public static Object readObject(File file) throws IOException, ClassNotFoundException { // 8192 is the buffer size in BufferedReader InputStream istream = new BufferedInputStream(new FileInputStream(file), 8192); if (file.getName().endsWith(".gz")) { try { istream = new GZIPInputStream(istream...
[ "public static Object readFromFile(String filename) {\n Object data = null;\n\n try {\n FileInputStream fileInput = new FileInputStream(filename);\n ObjectInputStream objectInput = new ObjectInputStream(fileInput);\n data = objectInput.readObject();\n object...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method will play back the game solution contained in the bestNode variable (i.e. the best solution discovered by the search method). This method presumes that the search method has been run prior to this. This method employs the humanplayer gui interface for output.
public void playbackSolution() { // If the bestNode variable is undefined, something is really wrong so // abort the playback if (this.bestNode == null) return; // First, initialize a "node pointer" to the ultimate/solution node SearchNode myNode = this.bestNode; ...
[ "private void solve(GameState game){\n\t\t++search_cost;\n\t\tthis.map.add(board_to_string(game.board));//add to map to show we've visited\n\t\tif(is_solved(game.board)) final_gamestate = game;//when solved end\n\t\telse{\n\t\t\tfind_frontiers(game);//Find the frontiers\n\t\t\tGameState next_game = this.frontier.po...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__XMemberFeatureCall__Group_1_1_0__0" $ANTLR start "rule__XMemberFeatureCall__Group_1_1_0__0__Impl" InternalProgramDsl.g:6267:1: rule__XMemberFeatureCall__Group_1_1_0__0__Impl : ( ( rule__XMemberFeatureCall__Group_1_1_0_0__0 ) ) ;
public final void rule__XMemberFeatureCall__Group_1_1_0__0__Impl() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalProgramDsl.g:6271:1: ( ( ( rule__XMemberFeatureCall__Group_1_1_0_0__0 ) ) ) // InternalProgramDsl.g:6272:1: ( ( rule__XM...
[ "public final void rule__XMemberFeatureCall__Group_1_1_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalScripting.g:6235:1: ( rule__XMemberFeatureCall__Group_1_1_0__0__Impl )\n // InternalScripting.g:6236:2: rule__XMem...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Informs the C++ side that startup is complete. Tasks that have been deferred until after startup will be scheduled to run and newly posted tasks will no longer be deferred.
public static void setStartupComplete() { AfterStartupTaskUtilsJni.get().setStartupComplete(); }
[ "public final void postStart() {\n taskQueue.addTask(new Task(\"Post start\") {\n public void run() {\n log.info(\"postStart\");\n Profiler.metaTaskStopped(startupMetaTask);\n Log.getUserCategory().info(\"Application initialisation complete\");\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
write here logic to calculate the average an array
public String findAverage(int[] inputArray) { int sum =0; if(inputArray.length <=0){ return "Empty array"; } for(int num : inputArray){ if(num<0){ return "Give proper positive integer values"; } sum = sum + num; ...
[ "private static double calculateAverage(double[] n){\n\r\n\t\t\r\n \t\tdouble total = 0;\r\n \t\tfor(double element : n)\r\n \t\t\ttotal += element;\r\n\t\tdouble average = total / 10;\r\n\t\treturn average;\r\n\r\n \t}", "public static double regularAvg (int arr[]) {\n double total = 0;\n for(int i...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
'Tags' the database for future rollback
public void tag(String tagString) throws LiquibaseException { LockService lockService = LockServiceFactory.getInstance().getLockService(database); lockService.waitForLock(); try { ChangeLogHistoryServiceFactory.getInstance().getChangeLogService(database).generateDeploymentId(); ...
[ "public void signalRollback()\n {\n Logging.db.debug(\"Rolling transaction back!\");\n doRollback = true;\n }", "abstract protected void db_rollback()\n throws exc_database_error;", "public void rollback() throws SQLException {\n }", "public void rollback ()\n {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checks whether the given details can be used to fetch an existing user.
AuthenticatedUser authenticate(AuthenticationDetails authenticationDetails);
[ "@Override\n\tpublic boolean checkUserId(String userId) {\n\t\treturn userDetailsRepository.existsById(userId);\n\t}", "private boolean userExists(Long id) {\n return userRepository.findById(id).isPresent();\n }", "public void checkUserDetails() {\r\n\r\n// setVerified(objectBool(ver));\r\n// ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create a snapshot for vHost under T14vHost
public void hostSnapShot() throws IOException { System.out.println("SnapshotThread:-------------------hostSnapShot method called--------------------------"); try{ AppProperties prop = new AppProperties(); String vCenterAdminUrl = prop.getVCenterAdminURL(); String vCenterAdmi...
[ "private void createSnapshot(BlockSnapshot snapshot, Snap unitySnap, StorageSystem storage, DbClient dbClient) {\n snapshot.setNativeId(unitySnap.getId());\n snapshot.setNativeGuid(NativeGUIDGenerator.generateNativeGuid(storage, snapshot));\n snapshot.setDeviceLabel(unitySnap.getName());\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method description sets the cell to a double
public NumberCell(String originalData) { super(originalData); numData = Double.parseDouble(originalData); }
[ "public void set(int rowIndex, int columnIndex, double value);", "public DoubleCell() {\n this.value = 0.0;\n }", "@Override\npublic void setDouble(double data, int row, int column) {\n columns[column].setDouble(data, subset[row]);\n }", "public void setDouble(int colNum, double val) throws U...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
make sure the userID is usable
public static boolean setOrderIDValue(String input) { //check if the number is an integer boolean output = false; try { //if temp is 0, there is no error, temp is 0 by default //change to 1 if the value if fine int temp = 0; //if the size of the li...
[ "private void verifyUserID(User actual, User expected)\n {\n if (actual.getId() < 1) errors.append(\"ID is not correct.\");\n \t \n \t //verif user ID is not altered.\n if(actual.getId()!= expected.getId())\n \t \terrors.append(\"ID doesn't match.\");\n }", "public static boolean isVa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Created by LeHu on 20150418 13:56.
public interface IalbumDao extends IDao { public Album getItemById(String id); List<Album> getAlbumByProductId(String productId); }
[ "private static void EX5() {\n\t\t\r\n\t}", "@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 }", "public void mo17751g() {\n }", "public void mo28221a() {\n }", "protected void mo4791d()...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Defines a list of extension points in the universal action menu which serves as a setting menu for the addon. The extension point can be link URL to open or an endpoint to execute as a form submission. repeated .google.apps.script.type.UniversalActionExtensionPoint universal_actions = 7;
int getUniversalActionsCount();
[ "public void addVisibilityActionItems(List<? extends AbstractActionExt> actions)\n/* */ {\n/* 460 */ addItems(new ArrayList(actions));\n/* */ }", "public void fillActions() {\n\t\tthis.actions[0] = new AddItem();\n\t\tthis.actions[1] = new TrackerMenu.ShowAll();\n\t\tthis.actions[2] = new Ed...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Interface defining a predicate that can be tested to determine whether an integer satisfies, or does not satisfy, some condition.
public interface IntPredicate { /** * Ask whether a given value matches this predicate * * @param value the value to be tested * @return true if the value matches; false if it does not */ boolean matches(int value); }
[ "public interface Predicate<T>\r\n{\r\n boolean predicate(T value);\r\n}", "public interface Predicate<T> {\n\t/**\n\t * Answers whether an object passes the evaluation of a certain condition.\n\t * \n\t * @param object\n\t * the object the be tested\n\t * @return <code>true</code> if the\n\t */\n\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Campos do Usuario
private void ativarCamposUsuarios(){ txtNomeUser.setEditable(true); txtTelefoneUser.setEditable(true); txtUsuario.setEditable(true); txtSenha.setEditable(true); cbPrivilegio.setEnabled(true); cbxAtivo.setEnabled(true); btSalvarUser.setEnabled(true); }
[ "public Usuario(String login) {\n super();\n this.login = login;\n }", "public Usuario(String nome,String senha) {\n\t\tthis.nome = nome;\n\t\tthis.senha = senha;\n\t}", "public VentanaLogin() {\n initComponents();\n MisFunciones.configVentana(this);\n arrayUsuarios = u.get...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void mousePressed(MouseEvent arg0) { }
[ "@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" ] ] } }
Die Methode warning wird bei Auftreten einer Warnung vom SAXParser aufgerufen.
@Override public void warning(SAXParseException oops) { String msg = MessageFormat.format( ResourceServices.getString(res, "C_XML_VALIDATION_WARNING"), getSourceDescription(), String.valueOf(oops.getLineNumber()), String.valueOf(oops.getColumnNumber()), oops.getMessage()); warningList.add(msg); // ...
[ "public void warning(SAXParseException err) throws SAXParseException{\n System.out.println(\"** Warning\"\n + \", line \" + err.getLineNumber()\n + \", uri \" + err.getSystemId());\n System.out.println(\" \" + err.getMessage());\n }", "public void warning(SAXParseException e) thro...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Read the next block of bytes from a file.
byte[] readNextBlock(int length);
[ "byte[] readFile(int index, int offset, int length) throws IOException ;", "public RandomAccessBufferedFileInputStream( File file ) throws IOException\r\n {\r\n raFile = new RandomAccessFile(file, \"r\");\r\n fileLength = file.length();\r\n\r\n seek(0);\r\n }", "private int loadByteBu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Noarg constructor creates number for report
public WaterSourceReport() { reportNum = WaterReportList.waterSourceList.size(); }
[ "public Numbers(){}", "private Numbers() {\n super();\n }", "public NumberWithUnits()\r\n {\r\n }", "private Number() {\n initFields();\n }", "public Counter() {\r\n\t\tthis(0); // constructor chaining to minimize code duplication\r\n\t\t\r\n\t\tthis.checkInvariant();\r\n \t}", "...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }