query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
Return the primary text content of the message part.
public String getText(boolean textIsHtml, Part p) throws MessagingException, IOException { if (p.isMimeType("text/*")) { String s = (String) p.getContent(); textIsHtml = p.isMimeType("text/html"); return s; } if (p.isMimeType("multipart/alternative")) { System.out.println("refer html text over plai...
[ "public String getContent() \r\n\t{\r\n\t\treturn getContent(this.part);\r\n\t}", "public String getMsgText(){\n return message.getText();\n }", "private String getText(Part p) {\n try {\n if (p.isMimeType(\"text/*\")) {\n return (String) p.getContent();\n }...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns true if field success is set (has been assigned a value) and false otherwise
public boolean isSetSuccess() { return this.success != null; }
[ "public boolean hasSuccessValue() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasSuccessValue() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean isSetSuccess() {\n return __isset_bit_vector.get(__SUCCESS_ISSET_ID);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
constructor for this abstract class.
public ConfigurableFTPFileEntryParserImpl(String regex) { super(regex); this.timestampParser = new FTPTimestampParserImpl(); }
[ "public AbstractClass(){\r\n\t\t//this constructor is useless since it cannot be used as an object\r\n\t}", "protected AbstractShape() {\r\n\t}", "private O()\r\n {\r\n super();\r\n }", "protected GeometricObject() {\r\n\r\n\t}", "public EcriveurMetierAbstractClass() {\r\n\t\t\r\n\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Retrieve a password from the store
public boolean checkPassword(int id, String pass) throws UnknownUserException { return BCrypt.checkpw(pass, get(id + "", "password")); }
[ "public String getPassword()\r\n {\r\n return(getString(\"password\"));\r\n }", "public String loadPassword() {\n return getPrefs(context).getString(\"Password\", null);\n }", "public String getUserPassword();", "private String getPassword()\r\n\t{\r\n\r\n\t\treturn this.password;\r\n\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
repeated .dstore.engine.MetaInformation meta_information = 2;
public java.util.List<? extends io.dstore.engine.MetaInformationOrBuilder> getMetaInformationOrBuilderList() { return metaInformation_; }
[ "@Override\n\tpublic int getMetadata(int meta)\n {\n return meta;\n }", "public int getMetadata()\r\n/* 72: */ {\r\n/* 73: 70 */ return this.meta % 16;\r\n/* 74: */ }", "public void setMetaData(String s) { metaData=s;}", "MetaInformationOrBuilder getMetaInformationOrBuilder...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Remove all entries from the cache.
void clear();
[ "@Override\n public synchronized void removeAll() {\n this._cache.removeAll();\n }", "public static void removeAll(){\r\n\t\tCache cache= getCacheInstance();\r\n\t\tcache.clear();\r\n\t\tSystem.out.println(\"cache removed\");\r\n\t\treturn ;\r\n\t}", "void removeAllCache();", "public void purgeAllEntries...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the percentage of processor use of a tool, compared to all the tools. Example: Tool1 used 500ms, tool2 4500ms. This method returns 10 for tool1 and 90 for tool2.
private int processorPercentage(int toolTime){ PerformanceTreeNode root = getPerformanceTree(); int total = 0; for(int index = 0; index < root.getChildCount(); index++){ PerformanceTreeNode child = (PerformanceTreeNode) root.getChildAt(index); total += child.getProcessorTime(); } float percentage = 0f;...
[ "public double getCPUUsed() {\n if (Math.abs(percentageUsed) < Progress.EPSILON) {\n return 0;\n }\n else {\n return percentageUsed;\n }\n }", "public double getProcessCpu() {\n long totalTime = 0;\n for (long id : threadBean.getAllThreadIds()) {\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the attributes5 value for this SignalingProfile.
public java.lang.Integer getAttributes5() { return attributes5; }
[ "public String getProperty5() {\n\t\treturn property5;\n\t}", "public double getB5() {\n b5 = b5PrefAdapter.getDouble();\n return b5;\n }", "public String getR5() {\r\n return r5;\r\n }", "public String getFriends5() {\n return friends5;\n }", "public String getMd5() {\n re...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
repeated uint32 players = 26;
public int getPlayers(int index) { return players_.get(index); }
[ "public int[] numPlayers();", "Board(Players players) {\n this.players = players;\n checkers = new int[Backgammon.NUM_PLAYERS][NUM_SLOTS];\n for (int player=0; player<Backgammon.NUM_PLAYERS; player++) {\n for (int pip=0; pip<NUM_SLOTS; pip++) {\n checkers[player][...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Tests the adjust integer value with a submitted test value and an expected value. The test will fail if the expected value isn't returned.
private void testAdjustIntegerValue(Integer testValue, Integer expectedValue) { DataBridgeController dataBridgeController = new BasicDataBridgeController(); assertEquals(expectedValue, dataBridgeController.adjustIntegerValue(testValue, DataBridgeController.MIN_THREADS, DataBridgeController.MAX_THREA...
[ "@Test\n public void adjustTest() throws ApiException {\n String depositTransactionId = null;\n DepositTransactionAdjustmentDetails body = null;\n String idempotencyKey = null;\n DepositTransaction response = api.adjust(depositTransactionId, body, idempotencyKey);\n\n // TODO: ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public static void main(String[] args) { String[][] emptyArray = createGrid(); String[][] filledArray = fill2DArray(emptyArray); playGame(filledArray); }
[ "@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" ] ] } }
++ getter for static property _Instance Getter for property _Instance. Auto generated
public static com.tangosol.coherence.Component get_Instance() { return new com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache.PartitionRecoverRequest(); }
[ "public Object getInstance() {\n\t\treturn this.instance;\n\t}", "public abstract Instance getInstance();", "public static synchronized Instance getInstance() {\n return instance;\n }", "public static singleton getInstance(){\n\t\t return instance;\n\t\t }", "@JsonProperty(INSTANCE)\n\tpublic Str...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
expand the dropdown list
public void clickDomain(String domain) { _driverHandler.seleniumClick(_domainsDropDownList); // select the desired option String updatedDomain = _domain.replace(_placeholderRegex, domain); _driverHandler.javaScriptExecutorClick(updatedDomain); _driverHandler.actionsObjectClick(updatedDomain); ...
[ "public void expand() {}", "public void selectDropDown()\r\n\t{\r\n\t\tproject.click();\r\n\t\tprojectname.click();\r\n\t}", "@Override\n protected void toggleExpanded(boolean value) {\n }", "@Override\n public void onClick(View v) {\n //if user clicked on dropDownIcon and the item's r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This interface must be implemented by activities that contain this fragment to allow an interaction in this fragment to be communicated to the activity and potentially other fragments contained in that activity. See the Android Training lesson Communicating with Other Fragments for more information.
public interface OnFragmentInteractionListener { // TODO: Update argument type and name void onFragmentInteraction(Uri uri); }
[ "public interface MainActivityFragmentInteractionListener {\n void onFragmentMessage(String TAG, Object data);\n}", "public interface ActivitytoFragment {\n void communicate(boolean comm);\n\n}", "public interface TalkToIndividualFragment {\n /**\n * report how many has added in remote data...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adiciona utilidade para selecionar a validade facilmente
private void setupValidade() { final EditText quant = (EditText) findViewById(R.id.prod_quant); final EditText data = (EditText) findViewById(R.id.prod_validade); data.setKeyListener(null); data.setOnTouchListener(new View.OnTouchListener() { @Override public boo...
[ "private Validations() {}", "@Override\n public void validar() throws SAPOValidationException {\n }", "boolean needValidate();", "Object validate();", "@Override\n\tpublic boolean validar() throws Exception {\n\t\treturn false;\n\t}", "private boolean validaCampos()\r\n {\r\n return false;...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "OR" $ANTLR start "AND"
public final void mAND() throws RecognitionException { try { int _type = AND; int _channel = DEFAULT_TOKEN_CHANNEL; // C:\\Home\\src\\workspace\\solrql\\grammar\\Solrql.g:378:4: ( A N D ) // C:\\Home\\src\\workspace\\solrql\\grammar\\Solrql.g:378:13: A N D ...
[ "public final RuleGrammarParser.expr_and_return expr_and() throws RecognitionException {\n RuleGrammarParser.expr_and_return retval = new RuleGrammarParser.expr_and_return();\n retval.start = input.LT(1);\n\n Object root_0 = null;\n\n Token string_literal58=null;\n RuleGrammarPars...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
create document for given table with random key
String create(String table, Map<String, Object> document);
[ "public void addRandomDataWorxForUs(NuggetTable table) {\n\t\tTableManager.acquireConnection(this, NuggetTable.DATABASE_NAME, table);\n\t\taddRandomDataHelper(table);\n\t\tTableManager.releaseConnection(nuggetTable);\n\t}", "private void createPKTestTable(String tableName) {\n createTestTable(\n testKey...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Register a new Config. The config gets build and initialized so you can use it. Also it is taken care of reloading when the Plugin decides to reload the config
public void registerConfig(String identifier, Class config) { Preconditions.checkNotNull(identifier, "Identifier can not be null"); Preconditions.checkNotNull(config, "Config class can not be null"); //Check if Arguments are valid if(!Config.class.isAssignableFrom(config)) { ...
[ "private Config() {\n init();\n }", "public GearmanPluginConfig() {\n load();\n }", "protected void configurePlugin() {\n \t\t// define that default config should be copied\n \t\tthis.getConfig().options().copyDefaults(true);\n \n \t\t// create config helper\n \t\tConfigHelper configHelper =...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
check if after 5 seconds the currentUser didn't choose a status and close status list if he didn't
public void run() { if (isListExpanded()) hideGradually(); }
[ "private void changeStatus() {\n int status = you.getStatus();\n int newStatus = (status == 1) ? 0:1;\n updateYouObject(newStatus,you.getHangoutStatus(),you.getLatitude(),you.getLongitude());\n setStatusButtonImage();\n Toast.makeText(this,\"User: \" + you.getUsername() + \" Statu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
collects data on the min/max delay time, total number of observations, and the total time delayed
static public void Sampst(double val, int sampstvar){ if (sampstvar == 1) { //depart if (val < min) min = val; if (val > max) max = val; nObservations++; sum += val; } }
[ "private void processData(boolean addDelay) {\n\n\t\tfor (String line : fileData) {\n\t\t\t\n\t\t\tif (line.contains(\"TMAX\")) {\n\t\t\t\tString values[] = line.split(\",\");\n\t\t\t\tString stationID = values[0];\n\t\t\t\tdouble tmax = Double.parseDouble(values[3]);\n\n\t\t\t\tif (dataMap.containsKey(stationID)) ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a new multi selection list panel for the specified elements. The list will have the visible height (rows) specified in the second parameter. If the third parameter is set the list will be hidden. Instead a text field with current selections is shown, which can be clicked to popup the list to make selections.
public MultiSelectionListPanel(final DefaultListModel<String> model, final int iVisibleRowCount, final boolean bSmallGui) { m_dlgPopup = null; m_list = new JList<String>(model); m_list.setVisibleRowCount(iVisibleRowCount); m_list.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION); final...
[ "protected JList createList() {\r\n\t\t\tfinal JList list = new JList(new QueryModel());\r\n\t\t\tlist.addMouseListener(new MouseAdapter() {\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\t\tif (SwingUtilities.isLeftMouseButton(e)) {\r\n\t\t\t\t\t\tint index = list.locationTo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional uint32 filter_end_time = 6;
int getFilterEndTime();
[ "public long getDateFilterTime()\r\n {\r\n if(dateFilter!=null)\r\n return dateFilter.getFilterTime();\r\n return -1;\r\n\r\n }", "@Override\n public QueryBuilder buildFilterQuery(TransformCheckpoint lastCheckpoint, TransformCheckpoint nextCheckpoint) {\n return QueryBuild...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
convert property value to double
public static double extractValue(Object value, double propertyDefaultValue) { if (value instanceof Number) { Number number = (Number) value; return number.doubleValue(); } if (value instanceof String) { String s = (String) value; if (!s.isEmpty())...
[ "public double getPropertyAsDouble(String key) {\n return getPropertyAsDouble(key, 0.0);\n }", "double toValue();", "public double getDoubleProperty(String key) {\n return getDoubleProperty(key, 0D);\n }", "public double getDoubleProperty(String propertyName) {\n return getProperty(pr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Populate a List based on List events
public static List<EventVO> from(List<Event> events) { ObjectMapper mapper = new ObjectMapper(); return events.stream() .filter(item -> Optional.ofNullable(item).isPresent()) .map(item -> { try { return EventVO.builder() ...
[ "private void listEventList() {\n List<String> list = new ArrayList<>();\n for (Event event : eventList) {\n list.add(event.getName());\n }\n listItem(list);\n }", "public void addEventList(List<Event> list) {\n for (Event event : list) {\n addEvent(even...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column paper.c_id
public void setcId(Integer cId) { this.cId = cId; }
[ "public void setcId(Long cId) {\n\t\tthis.cId = cId;\n\t}", "public void setcid(Integer cid) {\n this.cid = cid;\n }", "public Long getCpID() { return cpID; }", "public void setIdDc(Integer idDc) {\n this.idDc = idDc;\n }", "public void setId_customer(int id_customer)\r\n {\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the String date that floors gold was earned
public void setFloorsAccoladeGoldDate(String floorsAccoladeGoldDate) { this.floorsAccoladeGoldDate = floorsAccoladeGoldDate; }
[ "public void settingDate(Date date){\n smallBudget.setDate(date);\n }", "public void setThoiGianDuyet(Date thoiGianDuyet);", "public void editDate(String newDate){\n // Set dueDate to newDate\n dueDate = newDate;\n }", "public void setGraduationDate(Date gd){\n\t\tgraduationDate = gd;\n\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Handles the HTTP GET method.
@Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { processRequest(request, response); }
[ "@Override\n\tpublic void handleGET(CoapExchange exchange) {\n\n\t\t\n\t}", "protected void doGet(HttpServletRequest req, HttpServletResponse response) throws ServletException, IOException {\r\n\t\tSystem.out.println(\"--> get\");\r\n\t}", "public void doGet(HttpServletRequest request, HttpServletResponse respo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the value of the 'Base' attribute. If the meaning of the 'Base' attribute isn't clear, there really should be more of a description here...
String getBase();
[ "public String getBase(){\n return base;\n }", "public int getIsBase() {\n return isBase_;\n }", "public int getBase() {\n return base;\n }", "public int getBase() {\r\n return this.base;\r\n }", "public float getBase() {\n\t\treturn base;\n\t}", "public Base getMaBase() {\n\t\tr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO use factory !!!! to validate, evtl. return new request formular for PIN / TAN etc. or redirect ...
public IUser getUser(AquaRequest request) throws Exception { String user = request.getParameter("user"); // String pw = request.getRequest().getParameter("pw"); return getUser(user); }
[ "private HttpRequest _buildCreateReturnsCustomerAccountInformationRequest(\r\n final int pin) throws IOException, APIException {\r\n //the base uri for api requests\r\n String _baseUri = Configuration.baseUri;\r\n\r\n //prepare query string for API call\r\n StringBuilder _...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test case number: 143 /Coverage entropy=2.0261206329699606
@Test(timeout = 4000) public void test143() throws Throwable { ErrorPage errorPage0 = new ErrorPage(); TextArea textArea0 = new TextArea(errorPage0, " does not exist.", "&&"); // Undeclared exception! try { textArea0.span(); fail("Expecting exception: RuntimeException"); ...
[ "@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" ] ] } }
Returns the original string.
public String deobfuscate() { final int length = virtual.size(); // The original UTF8 encoded string was probably not a multiple // of eight bytes long and is thus actually shorter than this array. final byte[] encoded = new byte[8 * ( length - 1 )]; // Obtain the seed a...
[ "java.lang.String getOriginalDataStr();", "public java.lang.String getOriginal(){\n return localOriginal;\n }", "public final StringWrapper getFullOriginal() {\n return fullOriginal;\n }", "public java.lang.String getOriginalDataStr() {\n jav...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Swap the new cursor in. (The framework will take care of closing the old cursor once we return.) mAdapter.swapCursor(data);
@Override public void onLoadFinished(Loader<Cursor> loader, Cursor data) { Log.i(TAG, "onLoadFinished." + "get "+data.getCount() + " records"); int myCode = mSharedPref.getInt(SimplePrefActivity.KEY_PREF_MY_CODE, 0); Log.d(TAG,"myCode:" + myCode); data.moveToFirst(); ...
[ "public void swapCursor(Cursor cursor){\n mCursor = cursor;\n notifyDataSetChanged();\n }", "void swapCursor(Cursor newCursor) {\n mCursor = newCursor;\n\n notifyDataSetChanged();\n }", "void swapCursor(Cursor cursor) {\n mCursor = cursor;\n notifyDataSetChanged();\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ access modifiers changed from: protected
public boolean toggleSplitScreenMode(int i, int i2) { if (this.mRecents == null) { return false; } if (WindowManagerProxy.getInstance().getDockSide() == -1) { return this.mRecents.dockTopTask(-1, 0, (Rect) null, i); } Divider divider = (Divider) getCompone...
[ "@Override\n }", "protected void method_5557() {}", "@Override\n public void extornar() {\n \n }", "@Override\r\n public void publicando() {\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "pro...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Pushes an event with the given EventData to the connected clients.
public void push(EventData e) { sink.next(e); }
[ "public void send(String event, JSONObject data) {\n for (Client client : mClients) {\n client.send(event, data);\n }\n }", "void send(@Nonnull EventData data);", "void sendEventToSubscriber(String name, Object eventData, int orderKey);", "void publish(EventData data);", "public ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test case number: 98 /Coverage entropy=0.0
@Test(timeout = 4000) public void test098() throws Throwable { String[] stringArray0 = JSONObject.getNames((Object) null); assertNull(stringArray0); }
[ "@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" ] ] } }
1 less than, 1 greater than, 0 equal, all inversed for descending
@Override public int compare(Triple<Integer, Integer, Double> lhs, Triple<Integer, Integer, Double> rhs) { return Double.compare(lhs.getRight().doubleValue(), rhs.getRight().doubleValue()) > 0 ? -1 : Double.compare(lhs.getRight().doubleValue(), rhs.getRight().doubleValue()) < 0 ? 1 : 0; ...
[ "public boolean goingUp() {\n\t\tif (ascending) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "boolean descByOne(int a, int b) {\n boolean desc = false;\n if (a == (b - 1)) {\n desc = true;\n }\n return desc;\n }", "O invert(O operation);", "p...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public List<Record> getRecordkByDay(Date date) throws JAVAEE4ZLException { return recordDao.getRecordkByDay(date); }
[ "@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" ] ] } }
returns an ArrayList of all the locks on Variable variableID across all sites
private ArrayList<Lock> getAllLocksForVariableFromAllSites(int variableID) { ArrayList<Lock> ans = new ArrayList<>(); for (int i = 1; i <= Constants.SITES; i++) { ArrayList<Lock> lockForThisSite = this.sites.get(i).lockInfo .getAllLocksForVariable(variableID); for (int j = 0; j < lockForTh...
[ "public static Set<Lock> getListOfLocks() {\n return locks;\n }", "public ArrayList<String> getVariableIDs() {\n\t\tArrayList<String> ids = new ArrayList<String>();\n\t\tArrayList<String> vars = getVariables();\n\t\tfor (Iterator varIt = vars.iterator(); varIt.hasNext();) {\n\t\t\tString varXPath = (Str...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
string address_string = 1;
@java.lang.Override public java.lang.String getAddressString() { java.lang.Object ref = addressString_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java...
[ "public void setAddress(String value) {\n\t\t\n\t}", "public void setAddress( String address )\r\n {\r\n _strAddress = address;\r\n }", "public void setAddress(String address){\n this.address = address; \n }", "public void setAddress(String address)\n {\n \tthis.address = address...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
public AgentCoterie getAgentCoterieById(long agentId) throws AppException;
public Agent queryByEmailAndPassword(String email, String password)throws AppException;
[ "public String getAgentId() { return agentId; }", "public void setAgentId(String agentId) { this.agentId = agentId; }", "GridServiceAgent getAgentByUID(String uid);", "public static Agent grabAgent(int id){\n Agent agent = null;\n\n try {\n //connection built\n Connection c...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Created by KAdamczyk on 20151218.
public interface Command { void execute() throws BankException, DAOException; void printCommandInfo(); }
[ "@Override\n public void extornar() {\n \n }", "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "private static void EX5() {\n\t\t\r\n\t}", "@Override\n public int utilite() {\n return 0;\n }", "@Override\r\n\tpublic void hablar() {...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional uint64 other_steamid = 3;
public long getOtherSteamid() { return otherSteamid_; }
[ "long getOwnerSteamid();", "long getSteamIdTarget();", "public Builder setSteamId(long value) {\n bitField0_ |= 0x00000008;\n steamId_ = value;\n onChanged();\n return this;\n }", "@java.lang.Override\n public long getSteamIdUser() {\n return steamIdU...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Fetches the next pass data
public SatellitePass getNextPass() { List<SatellitePass> passDataList = new ArrayList<>(); RestTemplate restTemplate = new RestTemplate(); for (SatelliteData sat : config.getSatelliteData()) { log.info("Fetching next pass data for: {}", sat.getName()); String ur...
[ "public void loadNextSetOfData() {\n this.mCanLoad = false;\n loadFeed(false);\n }", "@Override // Через этот метод будет расти прогрессия\n\tpublic int next() {\n\t\tdata *= 2;\n\t\treturn data;\n\t}", "@Override\n public void fetchMore() {\n getDigestProvider().fetchMore(channel, in...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adds task to the player's holding. This method can be used by external systems to add tasks to the holding.
public void addTask(EntityRef player, EntityRef taskEntity) { HoldingComponent oreonHolding = player.getComponent(HoldingComponent.class); TaskComponent taskComponent = taskEntity.getComponent(TaskComponent.class); logger.info("Adding task to " + oreonHolding); player.getOwner().send(n...
[ "static void addTask(@Nonnull Task task){\n\t\tif(!active){\n\t\t\tMinecraftForge.EVENT_BUS.register(TaskTickListener.class);\n\t\t\tactive = true;\n\t\t}\n\t\ttasks.add(task);\n\t}", "protected void addTask(Task task){\r\n\t\ttaskManager.add(task);\r\n\t}", "public void addTask(Task t){\n\t\ttasks.add(t);\n\t}...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set a pattern to use for removing text from each write call.
public void setRemovePattern( Pattern pattern ) { _removePattern = pattern; }
[ "@Public\n @Stable\n public abstract void setPattern(String pattern);", "void setPattern(String pattern) {\n if (pattern == null)\n pattern = \"\";//String.Empty;\n _pattern = pattern;\n _currentPos = 0;\n }", "public void setPattern( String pattern )\n\t{\n\t\tformat = new ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the value of the errcde property.
public int getERRCDE() { return errcde; }
[ "public String getErrString() {\n return err;\n }", "public int getErr(){\n\t \n\t return err;\n\t }", "public String getINCD_ERROR() {\r\n return INCD_ERROR;\r\n }", "public String getErrorValue() {\n return this.errorValue;\n }", "public String getError() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Created by IntelliJ IDEA. Project : springsecuritysample User: hendisantika
@Repository("roleRepository") public interface RoleRepository extends JpaRepository<Role, Integer> { Role findByRole(String role); }
[ "@GetMapping(value= \"/index\")\n\tpublic String greeting() {\n\t\treturn \"Hello , welcome to the spring security class\";\n\t}", "@RequestMapping(\"/user/hello\")\n public String userHello() {\n String string2 = securityService.admin();\n return string2;\n }", "@Override\n protected voi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
based on service selection render fields
public void countryNameByServiceId(){ if(dataserviceid !=null){ setDatabenificaryservice(serviceMasterService.LocalServiceDescriptionFromDB(new BigDecimal(session.isExists("languageId") ? session.getSessionValue("languageId"): "1"), getDataserviceid()).get(0).getLocalServiceDescription()); // fetch routing co...
[ "public void formatFields() {\r\n boolean enableStatus = true;\r\n if (functionType == 'D') {\r\n enableStatus = false;\r\n } else {\r\n enableStatus = true;\r\n }\r\n txtIncorporatedIn.setEditable(enableStatus);\r\n txtIncorporatedDate.setEditable(ena...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set the colorMode and the maximum values for (r, g, b) or (h, s, b). Note that this doesn't set the maximum for the alpha value, which might be confusing if for instance you switched to colorMode(HSB, 360, 100, 100); because the alpha values were still between 0 and 255.
public void colorMode(int mode, float maxX, float maxY, float maxZ) { colorMode(mode, maxX, maxY, maxZ, colorModeA); }
[ "public void colorMode(int mode, float maxX, float maxY, float maxZ);", "public void setColorDepth( int bpp )\n {\n if ( displayMode.length < 3 )\n {\n int[] tmp = new int[ 3 ];\n System.arraycopy( displayMode, 0, tmp, 0, displayMode.length );\n displayMode = tmp;...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Extracts a jar resource as a blob.
public byte[] getResource(String name) { return htJarContents.get(name); }
[ "protected abstract byte[] loadArtifact(Bundle bundle, String artifactName)\n throws Exception;", "public byte[] getResource(final String name) {\n return htJarContents.get(name);\n }", "public static File unpackJarFile( final URL resource, final boolean deleteOnExit )\n\t\t\tthrows IOException\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adds the temporary parameter given to this RequestContext
public void setTemporaryParameter(String name, String value) { temporaryParameters.put(name, value); }
[ "public static void addContextParam(Document doc, Element root) {\n Element ctxParam = doc.createElement(\"context-param\");\n Element paramName = doc.createElement(\"param-name\");\n paramName.appendChild(doc.createTextNode(\"shiroConfigLocations\"));\n ctxParam.appendChild(paramName);\n Element par...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
If c[n] doesn't exist or has no child, return n. If c[n] has one child, return its index. If c[n] has two children with the same priority, return the index of the right one. If c[n] has two children with different priorities return the index of the one that must appear above the other in a heap.
protected int upperChild(int n) { if (size <= n) return n; int lc= 2*n + 1; // index of n's left child if (size <= lc) return n; // n has no child if (size == lc + 1) return lc; // n has exactly one child return compareTo(lc, lc+1) > 0 ? lc : lc+1; ...
[ "private int getHigherPriorityChildIndex(int currIndex) {\n int leftChildIndex = getLeftChildIndex(currIndex);\n int rightChildIndex = getRightChildIndex(currIndex);\n\n // get value for child if not out of bounds\n String leftChildValue = leftChildIndex > size - 1 ? null : heap[leftChil...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set the twodigit ISO 31661 country code
public Builder countryCode(final String val) { countryCode = val; return this; }
[ "public final void mo58146b(String str) {\n this.f58330l.setCountryIso(str);\n }", "public final void mo58143a(int i) {\n this.f58330l.setCountryCode(i);\n }", "public void setISO_Code (String ISO_Code)\n{\nif (ISO_Code == null) throw new IllegalArgumentException (\"ISO_Code is mandatory\");...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
string string5 = 13;
public java.lang.String getString5() { java.lang.Object ref = string5_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; ...
[ "String mo34343i();", "String mo7917a(String str);", "String mo5145e();", "private static String toStringFor4(String string){\n\t\treturn string;\n\t}", "String mo61116a(String str);", "void mo3255a(String str);", "void mo3588c(String str);", "T mo6122b(String str);", "String mo2237a();", "void mo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Shows the simplified settings UI if the device configuration if the device configuration dictates that a simplified, singlepane UI should be shown.
private void setupSimplePreferencesScreen() { if (!isSimplePreferences(this)) { return; } // In the simplified UI, fragments are not used at all and we instead // use the older PreferenceActivity APIs. // Add 'general' preferences. addPreferencesFro...
[ "private void showSettings() {\n try {\n getController().showSettings();\n } catch (Exception e) {\n showError(\"Show settings\", e);\n }\n }", "private void configsolo() {\n cl.show(mainPanel, \"ConfigSolo\");\n }", "private void toggleSettingsPopup()\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Constructor for Parcelable
protected Step(Parcel in) { this.id = in.readInt(); this.shortDescription = in.readString(); this.description = in.readString(); this.videoURL = in.readString(); this.thumbnailURL = in.readString(); }
[ "public Person(Parcel in){\n this.mName = in.readString();\n this.mIconUrl = in.readString();\n this.mUrl = in.readString();\n this.mMessage = in.readString();\n this.mLatitude = in.readDouble();\n this.mLongitude = in.readDouble();\n this.mTermsOn = in.readString();...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method corresponds to the database table sc_credit_fivescore
public Criteria or() { Criteria criteria = createCriteriaInternal(); oredCriteria.add(criteria); return criteria; }
[ "public interface DafySales2DAO {\n\n\t/**\n\t * 根据状态获得合同\n\t * @param status\n\t * @return\n\t */\n\tList<CsCredit> getCsCreditByStatus(@Param(value=\"status\")String status);\n\n\t/**\n\t * 获得以现行的合同\n\t * @return\n\t */\n\tList<CsCredit> getContractActive();\n\n\t/**\n\t * 获得已注册的合同\n\t * @return\n\t */\n\tList<Cs...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the thumbnail URL for the media item.
String getThumbnailUrl();
[ "java.lang.String getThumbnailImageUrl();", "public String getThumbnailUrl() {\r\n return thumbnailUrl;\r\n }", "public abstract String getThumbnailUrl();", "java.lang.String getThumbnail();", "public java.lang.String getThumbUrl() {\n java.lang.Object ref = thumbUrl_;\n if (ref instance...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checks for a cyclic breakdown structure.
private void checkBreakdown(Strategy strategy, Set<Strategy> done) { for (int b = 0; b < strategy.getBodyElementCount(); b++) { IRuleElement elt = strategy.getBodyElement(b); if (elt instanceof StrategyCall) { StrategyCall call = (StrategyCall) elt; ...
[ "private boolean isCyclic() \r\n\t{ \r\n\t\t\r\n\t\t// Mark all the vertices as not visited and \r\n\t\t// not part of recursion stack \r\n\t\tboolean[] visited = new boolean[V]; \r\n\t\tboolean[] recStack = new boolean[V]; \r\n\t\t\r\n\t\t\r\n\t\t// Call the recursive helper function to \r\n\t\t// detect cycle in ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rulelistaCondicional" $ANTLR start "entryRulelistaImpresion" InternalLinit.g:803:1: entryRulelistaImpresion : rulelistaImpresion EOF ;
public final void entryRulelistaImpresion() throws RecognitionException { try { // InternalLinit.g:804:1: ( rulelistaImpresion EOF ) // InternalLinit.g:805:1: rulelistaImpresion EOF { before(grammarAccess.getListaImpresionRule()); pushFollow(FOLLOW_1...
[ "public final void entryRuleInstructionList() throws RecognitionException {\n try {\n // InternalBotoLang.g:104:1: ( ruleInstructionList EOF )\n // InternalBotoLang.g:105:1: ruleInstructionList EOF\n {\n before(grammarAccess.getInstructionListRule()); \n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
ApplicationContext context = new ClassPathXmlApplicationContext("employeeConfig.xml");
public static void main(String[] args) { ApplicationContext context = new ClassPathXmlApplicationContext("employeeConfig2.xml"); EmployeeBean employeeBean =context.getBean("employees", EmployeeBean.class); System.out.println("Emp Id is :" +employeeBean.getEmpId()); System.out.println("Emp Name is :" +employe...
[ "public static void main(String[] args) {\n\t\tApplicationContext context = new ClassPathXmlApplicationContext(\"employeebean.xml\");\n//\t\t\n \tEmployee e1 = (Employee)context.getBean(\"emp1\");\n//\t\tEmployee e2 = context.getBean(\"emp2\", Employee.class);\n//\t\t\n\t\tSystem.out.println(\"Employee details:...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set up the context
@Before public void setUp() throws Exception { maintenance = Maintenance.getMaintenance(Maintenance.NONE); maintenanceDAO.createMaintenance(maintenance); Client c = new Client(); c.setName("company"); clientDAO.createClient(c); Product p = new Product(); p.setName("p"); p.setVersion("1.0"); produ...
[ "private void setupContext() {\n context.put(\"application\", getApplication());\n context.put(\"stringUtils\", StringUtils.getInstance());\n context.put(\"appUtilPackage\", buildPackage(UTIL_PACKAGE));\n }", "@Override\n public void setup(Context context) {\n }", "@Overrid...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Tests whether it is possible to write in a destination folder.
public static boolean testPath(String destinationPath) { try { File destinationFile = new File(destinationPath); if (!destinationFile.exists()) { try { if (!destinationFile.mkdirs()) { return false; } ...
[ "private boolean existDestinationFolder() {\r\n\t\tboolean exist = destinationFile.getParentFile().exists();\r\n\t\tif (!exist) {\r\n\t\t\texist = application.getUnixShell()\r\n\t\t\t\t\t.runUnixCommand(\r\n\t\t\t\t\t\t\t\"mkdir -p \"\r\n\t\t\t\t\t\t\t\t\t+ destinationFile.getParentFile()\r\n\t\t\t\t\t\t\t\t\t\t\t....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Funcion que retorna la cantidad de minutos transcurridos desde la fecha actual y la recibida por parametro
public String MinutesBetweenDateAndNow(String _oldDate){ String _retorno = ""; int _minutos = 0; abrir(); try{ Cursor c = nBD.rawQuery("SELECT strftime('%s','now')-strftime('%s','"+_oldDate+"') as segundos", null); c.moveToFirst(); _retorno = c.getString(0); _minutos = Integer.parseInt(_retorno)/60;...
[ "static long dormirNumHrs() {\n SimpleDateFormat formatoFecha = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n Calendar cal = Calendar.getInstance();\r\n\r\n Date ultimoDiaHabilMes = getUltimoDiaHabilDeMes();\r\n if (pendiente_dia_corte) {\r\n System.out.println(\" ------- Ejecutar...
{ "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() { helpSidebar = new javax.swing.JPanel(); about = new javax.swing.JLabel(); help = new javax.swing.JLabel(); wotd = new javax.sw...
[ "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" ] ] } }
Initialize the toolbar and set it as action bar.
private void initToolbar() { final Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar); setSupportActionBar(toolbar); final ActionBar actionBar = getSupportActionBar(); if (actionBar != null) { actionBar.setDisplayHomeAsUpEnabled(true); } setTitle(mAtmLoca...
[ "protected void setupActionBar() {\n if (getToolBar() != null) {\n setSupportActionBar(getToolBar());\n if (getSupportActionBar() != null) {\n getSupportActionBar().setHomeButtonEnabled(true);\n }\n }\n }", "private void actionBarSetUp() {\n\t\tacti...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This is a method to initialize the dataBinding object, viewModel object and bind the data to viewModel
private void initDataBinding() { activityRestaurantDetailBinding = DataBindingUtil.setContentView(this, R.layout.activity_restaurant_detail); itemRestaurantViewModel = new ItemRestaurantViewModel(restaurant, this); if (activityRestaurantDetailBinding.getViewModel() == null) { activit...
[ "private void initializeViewModel() {\n mGetContactsViewModel = ViewModelProviders.of(this).get(GetContactsViewModel.class);\n mBinding.setViewModel(mGetContactsViewModel);\n mGetContactsAdapter = new GetContactsAdapter(mContactsSelectedData);\n mBinding.rvContactsList.setAdapter(mGetContactsAdapter);\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a query 'Title=Information OR Retrieval'.
public static DocumentQuery getQuery2() { QueryNodeBool d = new QueryNodeBool(NodeType.OR); d.addChild(new QueryNodeCompare(Field.TITLE, EQ, "information")); d.addChild(new QueryNodeCompare(Field.TITLE, EQ, "retrieval")); DefaultQuery q = new DefaultQuery(d); DocumentQuery docum...
[ "public static void orQuerySearch() {}", "public static String buildQueryString() {\n final String sqlExpression =\n \"SELECT * FROM [\" + FEDORA_OBJECT + \"] WHERE [\" +\n DC_IDENTIFIER + \"] like $sterm OR [\" + DC_TITLE +\n \"] like $sterm\";\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Hash a byte array and multiply the result with value r.
public ECP hashAndMultiply(BIG r, byte[] password);
[ "public long hash(byte[] bytes);", "public byte[] hash(byte[] data) throws OTRCryptException;", "public byte[] hash(byte[] data, int offset, int length)\r\n\t\t\tthrows OTRCryptException;", "private long hash(UTF8String agg_key) {\n/* 279 */ long agg_hash = 0;\n/* 280 */\n/* 281 */ int agg_result ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Trying to send reports to all outgoing channels
public void broadcastReports(ReportSet reports) { for (Report report : reports) broadcastReport(report); }
[ "@Override\n\tpublic void sendReport(Report report) {\n\t\t\n\t}", "public String sendOngoingReport(Bot myBot, String tcpConnections, Boolean debug) {\n\n HostDetails myHost = new HostDetails();\n //Mailer myMailer = new Mailer(myBot);\n\n String[][] myPostArray = new String[6][2];\n\n myPostArray = new String[6]...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ startActivity(new Intent(AddServiceActivity.this, DashboardActivity.class).addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK).addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)); finish(); overridePendingTransition(R.anim.swipe_in_right, R.anim.swipe_in_right);
@Override public void onButtonClick() { onBackPressed(); }
[ "@Override\n public void onClick(View v) {\n Intent myIntent = new Intent(HomeScreenActivity.this, ClassroomInitialActivity.class);\n startActivity(myIntent);\n overridePendingTransition(R.anim.slide_in_right, R.anim.slide_out_left);\n }", "@Overr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method Summarize parse and load process, assist in monitoring. .
private void printFinalReport(List<Docket> errorDocketsList, DocketsList docketsList, File path, long startTime, long parseEndTime, long loadEndTime) { LOG.debug("SCL done processsing file: " + path.getPath()); LOG.debug(String.format("SCL parsed %d dockets in %d milliseconds.", docketsList.getDocketList().size(...
[ "private void stats(){\n\t\tbuildCommand();\n\t\t\n\t\tif(command != null){\n\t\t\tSystem.out.println(\"Stats:\");\n\t\t\ttry {\n\t\t\t\tRunTool.runProgramAndWait(command);\n\t\t\t} catch (IOException | InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get a help topic from console
String getSelection(){ String topic = ""; BufferedReader br = new BufferedReader( new InputStreamReader(System.in)); System.out.println("Enter topic: "); try{ topic = br.readLine(); }catch(IOException exc){ System.out.println("Error occurred"); } return topic; }
[ "HelpDoc help();", "public ModuleCommandHelpTopic getHelpTopic() {\r\n\t\treturn m_helpTopic;\r\n\t}", "String getHelp(Object target, IParseController parseController);", "public void getHelpHint() {\n sendToUser(\"Enter help to list all available commands\");\n }", "public static void getHelpMess...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns photos that are similar with the photo associated with the given id.
@HTTPServiceMethod(name = Definitions.METHOD_SEARCH_SIMILAR_BY_ID, acceptedMethods={core.tut.pori.http.Definitions.METHOD_GET}) public Response searchSimilarById( @HTTPAuthenticationParameter(required = false) AuthenticationParameter authenticatedUser, @HTTPMethodParameter(name = Definitions.PARAMETER_GUID) ...
[ "public List<Image> getImageByGaleryID(int id) throws Exception;", "public StrutturaFoto[] findWhereFotoIdEquals(long fotoId) throws StrutturaFotoDaoException;", "public LiveData<List<UploadPhoto>> getPhotos(String inst_id) {\n return photoDao.getPhotos(inst_id);\n }", "@Override\r\n\tpublic List<Ph...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set the workflow type.
public void setWorkflowType(String type){ workflowType = type; }
[ "public void setType(String _type) { type = _type; }", "public void setType(String type) {\n\t\tthis.type = type; //Sets the type of this firework equal to the input parameter\r\n\t}", "public void setType(String t) {\n type = t;\n }", "public void setWorkflow(Workflow p_workflow)\n {\n m_...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
new ThreadPoolExecutor(); ExecutorService executorService = Executors.newCachedThreadPool(); ThreadLocal
public static void main(String[] args) { }
[ "public abstract ThreadPoolExecutor c();", "protected synchronized ExecutorService getService() {\n\t\tif(service == null) {\n\t\t\t//System.out.println(\"creating an executor service with a threadpool of size \" + threadPoolSize);\n\t\t\tservice = Executors.newFixedThreadPool(threadPoolSize, new ThreadFactory() ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the publication date.
public Calendar getPublicationDate() { return publicationDate; }
[ "public Date getPublicationDate() {\n if (publicationDate == null) {\n return null;\n } else {\n return new Date(publicationDate.getTime());\n }\n }", "java.lang.String getPubDate();", "@Override\n\tpublic String getPubDate() {\n\t\treturn this.date;\n\t}", "public String getDate() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Validates user input.If invalid throws exception
public static void validateRating(Integer rating) throws ValidationException { if (!isValidRating(rating)) { throw new ValidationException(MessageConstant.INVALIDRATING); } }
[ "private void validateInput() {\n }", "protected abstract boolean validateInput();", "@Override\n public void checkValidInput(String input) throws InputException {\n }", "@Override\n public void checkValidInput(String input) throws InputException {\n return;\n }", "public abstract bool...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Getter method for property callback.
public final Worker getCallback() { return callback; }
[ "public EventPropertyGetter getGetter()\r\n {\r\n return getter;\r\n }", "public Property property() { return property; }", "@Override\n\tpublic void get(String property) {\n\t\t\n\t}", "public void addPropertyCallback(I2PPropertyCallback callback) {}", "String getProperty() {\n retu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
repeated string allocation_tags = 10;
public java.lang.String getAllocationTags(int index) { return allocationTags_.get(index); }
[ "private int[] bestSequenceNew(SequenceModel ts) {\n int length = ts.length();\n // How much we look to our left\n int leftWindow = ts.leftWindow();\n // how much we look to our right\n int rightWindow = ts.rightWindow();\n // padding <s> <s> </s> </s>\n int padLength = length + leftWindow + ri...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the default TestCreatorPanelDisplayer
public static TestCreatorPanelDisplayer getDefault() { return INSTANCE; }
[ "java.lang.String getDisplaymanager();", "private DiscoveryAgentJPanel getDiscoveryAgentJPanel() {\n\t\tif (discoveryAgentJPanel == null) {\n\t\t\tdiscoveryAgentJPanel = new DiscoveryAgentJPanel();\n\t\t}\n\t\treturn discoveryAgentJPanel;\n\t}", "public java.lang.String getDEFAULT_DISPLAY() {\r\n return ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
enterDesktopCredentials is a method to enter the Login details (username and date of birth) and click continue button on browser application launched in desktop.
public void enterDesktopCredentials(String userName,String dob){ try { wait.until(ExpectedConditions.visibilityOfElementLocated(getObjectBy(devTypeToGetProperty+"login.loginPage"))); enterUserId(userName); enterDob(dob); clickContinue(); } catch (Exc...
[ "public void UserEntersLoginCredentials() {\n LoginMenu.click();\n LoginEmil.type(User_UserName);\n LoginPassword.type(User_Password);\n LoginBtn.click();\n }", "public void loginToApplication () throws InterruptedException {\n userId.sendKeys (\"abc@gmail.com\");\n Th...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { Usuario usuario = new Usuario(); usuario.setUser(req.getParameter("usuario")); usuario.setPassword(req.getParameter("password")); try { horoscopoFacade.validaLogin(usuario); } catch (Ex...
[ "@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" ] ] } }
Gets all metadata from this entry.
public List<NameValuePair> getMetadata() { return this.metadata; }
[ "public abstract Map<String,String> getMetadata();", "public List<String> getMetadata() {\r\n\r\n\t return this.metaData;\r\n\t}", "protected abstract HashMap<String, String> getMetadata();", "@Override\n\tpublic Metadata getMetadata() {\n\t\treturn meta;\n\t\t}", "public Map<String, String> getMetadata(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test initialization with a nonexistent properties file.
@Test public final void testInitWithNonexistentFile() { System.setProperty("tinylog.configuration", "invalid.properties"); Configurator.init(); String line = getErrorStream().nextLine(); assertThat(line, allOf(containsString("ERROR"), containsString(FileNotFoundException.class.getName()), containsString("...
[ "@Test\n public void testNonExistingPropertiesFile() {\n assertThat(Run.run(\"doesnt_exist.properties\"), is(false));\n }", "public static void init() throws Exception\n\t{\n\t\tfis = new FileInputStream(projectPath+\"//data.properties\");\n\t\tp = new Properties();\n\t\tp.load(fis);\n\t\t\n\t\t// to...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
restituisce la lista dei tag
public ArrayList<TagInterface> getTag();
[ "List<ITag> getTags();", "List<Tag> getAllTags();", "public List<Tag> loadTagListByTag (List<Tag> tags) {\n return null;\n }", "public Iterator<String> getTags();", "java.util.List<String>\n getTagsList();", "public Tag[] getTags();", "java.util.List<io.cucumber.messages.Messages.GherkinDoc...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Recipient's email ID needs to be mentioned.
public static void main(String [] args) { String to = "abcd@gmail.com"; // Sender's email ID needs to be mentioned String from = "web@gmail.com"; // Assuming you are sending email from localhost String host = "localhost"; // Get system properties Properties properties = System.getProperties(...
[ "@Override\n\t\t\t\tpublic boolean hasRecipient() {\n\t\t\t\t\treturn false;\n\t\t\t\t}", "public String getRecipient() {\r\n return recipient;\r\n }", "public String getRecipient() {\n return recipient;\n }", "public String getRecipient() {\r\n return this.recipient;\r\n }", "publ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
required string key = 1;
public boolean hasKey() { return result.hasKey(); }
[ "public void setKey(String key1) {\r\n this.key = key1;\r\n }", "@NotNull\n String makeKey();", "@Override\n public void setKey(String str) {\n }", "int getKey1();", "public String getKey () {\n return key; \n }", "public void setKey(String key) {\n this.key = Args.notBlank(key, \"key\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public ErrorMsg validateMaster(HttpServletRequest request) { masterBean bean=new masterBean(); if(request.getParameter("masterName").equals("0")){ return new ErrorMsg(1, "Basics details field is required"); } bean.setMasterId(Integer.parseInt(request.getParameter("masterName"))); if (request.getParam...
[ "@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" ] ] } }
Delete the object using the specified context.
public final void delete(com.mendix.systemwideinterfaces.core.IContext context) { com.mendix.core.Core.delete(context, getMendixObject()); }
[ "public void delete(Integer objectID);", "public void delete(Long objectID);", "void delete(Request request, RequestContext context);", "CompletableFuture<Void> delete(OperationContext context);", "@Override\r\n public void delete(DeleteContext deleteContext) throws Db4oIOException {\r\n skipData(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
DEFAULT CONSTRUCTOR DOES NOTHING
public City(){ }
[ "DefaultConstructor() {\n\t\tSystem.out.println(\"DefaultConstructor\");\n\t}", "Cokolady()\t{\r\n\t\tsuper();\r\n\t}", "private O()\r\n {\r\n super();\r\n }", "public Copome() {\r\n\t}", "public Tanh() {\n\t}", "public Cachorro() {\r\n }", "public Curso() {\n\t\tsuper();\n\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
made adapter static to match retrieveChargePoints
@Override protected void onPostExecute(List<ChargePoint> chargePoints) { //hide loading bar ProgressBar indeterminantLoading = (ProgressBar) ((Activity)mContext).findViewById(R.id.loading_bar); indeterminantLoading.setVisibility(View.INVISIBLE); //default state of no charge points ...
[ "PriceAdapter getAdapter();", "@Override\n public void queryPoints() {\n \n }", "public interface ChargePointSearchCallback {\n\n void onChargingPointsFound(List<ChargePoint> chargePoints);\n}", "@DataProvider (name = \"data-provider\")\n\t public Object[][] dpMethod(){\n\t return new Object[]...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a Promise object that is rejected with the given reason.
@JsMethod public native final static Promise reject(final Object reason);
[ "public void rejectPromise(Promise promise) {\n o oVar = new o();\n oVar.a(\"status\", (Number) 0);\n promise.resolve(oVar.toString());\n }", "public RejectReasonDAOException(String message, Throwable cause, RejectReason reason) {\n super(message, cause);\n Utils.checkString(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Line one of the customer&39;s billing address
@ApiModelProperty(value = "Line one of the customer's billing address") public String getBillingAddress1() { return billingAddress1; }
[ "java.lang.String getBillingAddress();", "public String getCustAddress() {\r\n\t\treturn this.custAddress;\r\n\t}", "public Builder setBillingAddress(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00008000;\n billingAddre...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates new form SELSTUD
public SELSTUD() { initComponents(); }
[ "private void makeStudent()\n {\n TextInputDialog firstName = new TextInputDialog();\n firstName.setTitle(\"\");\n firstName.setContentText(\"First Name: \");\n String first = firstName.showAndWait().get();\n\n TextInputDialog lastName = new TextInputDialog();\n lastName...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
To get the load test result file extension
public static String getLoadResultFileExtension(String appDirName) throws PhrescoException, PhrescoPomException { return getPomProcessor(appDirName).getProperty(Constants.POM_PROP_KEY_LOADTEST_RESULT_EXTENSION); }
[ "String getFileExt();", "public abstract String fileExtension();", "public String getExt() {\n return parameters.getFirst(\"ext\");\n }", "public String getFileExtension(){\n \n return FILE_EXTENSION;\n }", "public String get_extension(){\n \n return extension;\n }", "pu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public Map<String, String> getDocInfo(String caseCode) { 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" ] ] } }
Remove leading and trailing whitespace
@InitBinder private void initBinder(WebDataBinder webDataBinder) { StringTrimmerEditor stringTrimmerEditor = new StringTrimmerEditor(true); webDataBinder.registerCustomEditor(String.class, stringTrimmerEditor); }
[ "private void removeWhiteSpaces() {\n\t\tString whitespace = \"\\\\s+\";\n\t\tthis.expressionString = this.expressionString.trim();\n\t\tthis.expressionString = this.expressionString.replaceAll(whitespace, \"\");\t\t\n\t}", "public void trim() {}", "private String trimWS(String word) {\n if(!bValid)\n r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Simple constructor of Subject instances.
public Subject() { }
[ "public Subject()\r\n\t{\r\n\t\tthis(\"\",\"\",\"\",\"\",0,0,0,0,\"\",0,0,0,0,0,\"\",\"\",\"\",-1,-1,-1,0);\r\n\t}", "public UniqueSubjectList() {}", "public SubjectExample() {\n\t\toredCriteria = new ArrayList<>();\n\t}", "public Subject(String name) {\n this.name = name;\n }", "@Override\n\tpubl...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the attribute value for JobParamId, using the alias name JobParamId.
public Number getJobParamId() { return (Number)getAttributeInternal(JOBPARAMID); }
[ "public JobId getJobId() {\n\t\treturn this.id.getJobId();\n\t}", "public String getJobParameter(String key, String defaultValue) {\n if (context == null && jobParameters == null) {\n throw new TableException(\n \"Calls to FunctionContext.getJobParameter are not available \"\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }