query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
create a new view
@Override public MostViewedArticleAdapter.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { LayoutInflater inflater = LayoutInflater.from( parent.getContext()); View v = inflater.inflate(R...
[ "protected abstract ViewType createView();", "@Override\n\tpublic View createView(final String viewName);", "QViewBuilder createView(String viewName);", "protected abstract Node createView() throws Exception;", "protected void createView(DBView v, DBSQLScript script)\n {\n // Create the Command\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Event Handling for Individual menu item selected Identify single menu item by it's id
@Override public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { case R.id.menu_bookmark: // Single menu item is selected do something // Ex: launching new activity/screen or show alert message Toast.makeText...
[ "public void menuSelected(MenuEvent e) {}", "public boolean ItemSelect(int id){\n menuInvoker.invoke(id); //islem yapılıyor\n return true;// event handling için true dönderiliyor\n }", "protected abstract void onMenuItemSelected(AjaxRequestTarget target, T menuItem);", "@Override\n\tpublic vo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Expires the channels described by given ColibriConferenceIQ.
void expireChannels(ColibriConferenceIQ channelInfo);
[ "void channelInactive(C connection) throws Exception;", "public void close(Channel channel);", "private synchronized void expireAll() {\n Enumeration<ObjectTransferConnection> l_enum = leased.keys();\n while (l_enum.hasMoreElements()) {\n expire(l_enum.nextElement());\n }\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
validate the array for ObserveeId
protected void validateObserveeId(java.lang.String[] param){ }
[ "protected void validateID(java.lang.String[] param){\r\n \r\n }", "public void setId(java.lang.String[] param){\n \n validateId(param);\n\n localIdTracker = param ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Interface that allows more specific communication.
public interface RestaurantDownLoaderCallback { /** * Notifies the Main thread handler that the download failed. * @param message Description of what failed */ void onFailToDownLoadRestaurant(String message); /** * Notifies the Main thread handler that the downlaod succeeded. * @param rest Result...
[ "public interface Communication {\n\n void open();\n void close();\n void reconnect();\n void send(byte data[]);\n boolean isConnected();\n void addObserver(Observer o);\n void removeObserver(Observer o);\n void notifyObservers(byte[] data);\n}", "public interface Interact {\n \n /**...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Setter method for property desc.
public void setDesc(String desc) { this.desc = desc; }
[ "void setDescriptionProperty(String descriptionProperty);", "void setPropertyDescription(java.lang.String propertyDescription);", "public void setDesc(String desc)\r\n {\r\n this.desc = desc;\r\n }", "public abstract void setDesc(java.lang.String newDesc);", "public void setDescripcion(String desc)...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
> \brief \b DLAED4 used by sstedc. Finds a single root of the secular equation. =========== DOCUMENTATION =========== Online html documentation available at > \htmlonly > Download DLAED4 + dependencies > > [TGZ] > > [ZIP] > > [TXT] > \endhtmlonly Definition: =========== SUBROUTINE DLAED4( N, I, D, Z, DELTA, RHO, DLAM, ...
public void dlaed4_(INTEGER N,INTEGER I,double[] D,double[] Z,double[] DELTA,DOUBLE RHO,DOUBLE DLAM,INTEGER INFO);
[ "private native int solveDAE(boolean p_initialization, ODEReaction [] p_reactionSet, boolean p_reactionChanged, ODEReaction [] p_thirdBodyReactionList, int p_nState, double [] p_y, double [] p_yprime, double p_tBegin, double p_tEnd, double p_rtol, double p_atol, double p_temperature, double p_pressure);", "public...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Generator selecting uniformly a element in the given universe of possibilities.
public static <T> Generator<T> oneOf(Collection<? extends T> objects) { checkArgument(!objects.isEmpty()); return re -> Iterables.get(objects, re.nextInt(objects.size())); }
[ "public Point<E, F> getRandomGenerator()\n {\n return getRandomElement().mulMutable(cofactor);\n }", "public void chooseUnique() {\n\t\tint tally;\n\t\tint index = 0;\n\t\tfor (int i = 1, j, k; i < 10; i++) { //iterate over numbers\n\t\t\tfor (j = 0; j < 9; j++) { //iterate over rows\n\t\t\t\ttally = 0;\n\t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
returned element[begin] element && $element was putted $old_size deque ago size' size = 1 deque is not empty
public Object element();
[ "public int poll() {\n\t\tif(size == 0) throw new IllegalStateException();\n\t\tint item = items[0]; \n\t\t// remove the top element and put the last element at first\n\t\tint lastItem = items[size-1];\n\t\titems[0] = lastItem;\n\t\tsize--;\n\t\theapifyDown();\n\t\treturn item;\n\t}", "@Override\n\tpublic E remov...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Util method to write an attribute with the ns prefix
private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName, java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{ if (xmlWriter.getPrefix(namespace) == null) { ...
[ "private void writeAttribute(java.lang.String namespace, java.lang.String attName, java.lang.String attValue,\r\n\t\t\tjavax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {\r\n\t\tif (namespace.equals(\"\")) {\r\n\t\t\txmlWriter.writeAttribute(attName, attValue);\r\n\t\t} else {\r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Indexed getter for property phaseIndex.
@Override public final int getPhaseIndex(int index) { return phaseIndex[index]; }
[ "@java.lang.Override\n public int getPhaseValue() {\n return phase_;\n }", "public int getPhase() { return phase; }", "public final int getPhase() {\r\n return phase;\r\n }", "public float getPhase() {\n return phase_;\n }", "public void setPhaseIndex(int index, int phaseIndex);", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
fields and classes here. private int count;
public MinCostToConnectAllPoints() { // Initialization here. // this.count = 0; }
[ "@Override\n\tpublic int count() {\n\t\treturn count;\n\t}", "public count() {\n super();\n count___init__(0, 1);\n }", "public void addCount() {\n this.count ++;\n }", "public int count () {\n return count;\n }", "@Override\n public Integer count() {\n return ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
public abstract void useInternet();
public void useInternet();
[ "@TargetApi(Build.VERSION_CODES.GINGERBREAD)\n public static void getInternet() {\n StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();\n StrictMode.setThreadPolicy(policy);\n }", "public WiredInternet() {\n super();\n }", "public interface I...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Open the database connection.
public void open() { try { this.db = openHelper.getWritableDatabase(); } catch (Exception e){ e.printStackTrace(); Log.e(LOG,"Incompatible db version found"); } }
[ "public Connection open() {\n\t\tConnection c = null;\n\t\ttry {\n\t\t\tClass.forName(\"org.postgresql.Driver\");\n\t\t\tc = DriverManager.getConnection(serverInformation.getUrl(), serverInformation.getOwner(), serverInformation.getPassword());\n\t\t\tProperties connectionProperties = new Properties();\n\t\t\tconne...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Utility method to write an element start tag.
private void writeStartElement(java.lang.String prefix, java.lang.String namespace, java.lang.String localPart, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException { java.lang.String writerPrefix = xmlWriter.getPrefix(namespace); ...
[ "public void writeStartTag(String element)\r\n\t\tthrows XMLStreamException\r\n\t{\r\n\t\t/*\r\n\t\t * Write start tag for XML block.\r\n\t\t */\r\n\t\twriteStartElement(element);\r\n\t\twriteStartElementEnd();\r\n\t}", "public abstract StartElement createStartElement(String prefix, String namespaceUri, String lo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional string pre_map_version = 6; optional string pre_map_version = 6;
boolean hasPreMapVersion();
[ "public void setMapVer(Version mapVer) {\n\t\tthis.mapVer = mapVer;\n\t}", "public void testCodeTableMap() {\n//\t\tHL7Tools2LiteConverter app = new HL7Tools2LiteConverter();\n//\t\tapp.run();\n//\t\tIGLibrary ig = app.igLibraries.get(\"2.5.1\");\n////\t\tProfile profile = app.doVersion(\"2.5.1\");\n//\t\tassert...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR start "op" parser/flatzinc/FlatzincFullExtParser.g:98:1: op : ( OEQ | ONQ | OLT | OGT | OLQ | OGQ );
public final FlatzincFullExtParser.op_return op() throws RecognitionException { FlatzincFullExtParser.op_return retval = new FlatzincFullExtParser.op_return(); retval.start = input.LT(1); Object root_0 = null; Token set37=null; Object set37_tree=null; try { ...
[ "public void op0(){\n \tenterRule(NonTerminal.OP0);\n \t//check which symbol is it, if not fall in to any one of the below, report an error \n \t//check, if it is, move forward using expect\n \tif(have(Token.Kind.GREATER_EQUAL)){\n \t\texpect(Token.Kind.GREATER_EQUAL);\n \t}\n \telse if(have(To...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
_____________________________________________________________________ SAVE _____________________________________________________________________ 13
@Override public FlFaceBean insert(FlFaceBean bean) throws DaoException { // mini checks if (null == bean || !bean.isModified()) { return bean; } if (!bean.isNew()){ return this.update(bean); } Connection c = null; PreparedStateme...
[ "private void save() {\n \t\t\t// TODO Auto-generated method stub\n \t\t\t\n \t\t}", "public static void Save() {\n\t}", "public int save() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic int save(Object t) {\n\t\treturn 0;\n\t}", "public void save(){\n // TODO\n }", "public boolean save() {\n\t}",...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Changed to void 7.7.2017
public Coupon createCoupon(Coupon coupon , long companyId) throws DataBaseException;
[ "@Override\n public void extornar() {\n \n }", "private static void EX5() {\n\t\t\r\n\t}", "public void mo28221a() {\n }", "protected void method_5557() {}", "protected void mo4791d() {\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the estimated data size.
default DataSize getDataSize() { return DataSize.UNKNOWN; }
[ "public long getDataSize();", "public long getSizeInBytes() {\n\t\tint sum = 0;\n\t\tEnumeration<DataHolder> values = dataStorage.elements();\n\t\twhile(values.hasMoreElements()){\n\t\t\tsum += values.nextElement().getSizeInBytes();\n\t\t}\n\t\treturn sum;\n\t}", "public int getSizeEstimate() {\n int chu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ / / / / / / / / / / / / /
public int compare(Object o1, Object o2) throws UnsupportedOperationException { /* 267 */ if (!this.isLocked) { /* 268 */ checkChainIntegrity(); /* 269 */ this.isLocked = true; /* */ } /* */ /* */ /* 273 */ Iterator comparators = this.comparatorChain.iterator(); /* 274 */ ...
[ "private void calculatePaths() {\n\n\n }", "protected int snapBits(){return 9;}", "private static void EX5() {\n\t\t\r\n\t}", "@Override\n public int getWidth(){\n return width - 10;\n }", "public int getSize() { return 3+length;}", "abstract protected String roam();", "public int getTi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Offset of start of compressed line number table (see methodOop.hpp)
private long offsetOfCompressedLineNumberTable() { return offsetOfCodeEnd() + (isNative() ? 2 * VM.getVM().getAddressSize() : 0); }
[ "public int getLineNumber() {\n/* 1844 */ return -1;\n/* */ }", "public int getLineNumber() {\n/* 121 */ return this.lineNumber;\n/* */ }", "@Override\r\n\tpublic long getLineNumber() {\n\t\treturn 0;\r\n\t}", "public int getLineNr()\n/* */ {\n/* 219 */ return this.lineN...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public Object[] createHelpParams(IStage stage, ISkill skill, IFighter attacker, IFighter target) { 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" ] ] } }
insert datta my sql
public void insertData(Order order) { Connection conn = null; PreparedStatement preparedStatement = null; try { Class.forName("com.mysql.jdbc.Driver"); conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/duan1?serverTimezone=UTC", "root", ""); //...
[ "public void insertartablaRL() throws SQLException\n{\n Conectarbd con=new Conectarbd();\n Connection c = con.Conectar();\nString sql=\"INSERT INTO referencia_laboral(dni,nombre_completo,cargo,postulante_dni\"\n + \"idempresa) values(?,?,?,?,?)\";\n for(int i=0; i<ss1.getRowCount();i++){\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Created with IntelliJ IDEA. User: schumarin Date: 06.12.12 Time: 13:58
public interface H2ViewContainer { void setData(Document doc, List<H2View> views); }
[ "private void IntelliJSucks() {\n }", "public void mo5201a() {\n }", "private static void EX5() {\n\t\t\r\n\t}", "@Override\n public void extornar() {\n \n }", "public void mo28221a() {\n }", "public void mo9609a() {\n }", "public void mo1857d() {...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ / / / / / / / / / / / / / /
public static boolean isNumber(String str) { /* 1489 */ if (StringUtils.isEmpty(str)) { /* 1490 */ return false; /* */ } /* 1492 */ char[] chars = str.toCharArray(); /* 1493 */ int sz = chars.length; /* 1494 */ boolean hasExp = false; /* 1495 */ boolean hasDecPoint = false; /* 1496 */...
[ "private void calculatePaths() {\n\n\n }", "protected int snapBits(){return 9;}", "private static void EX5() {\n\t\t\r\n\t}", "@Override\n public int getWidth(){\n return width - 10;\n }", "public int getSize() { return 3+length;}", "public int getTileWidth() {\n/* 91 */ return 32;\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test de los getters del hotel
public void testGetNombre(){ String nombreEsperado = "Condor"; String nombreHotel = hotel.getNombre(); Assert.assertEquals(nombreEsperado, nombreHotel); }
[ "@Test\n void getRating() {\n Hotel hotel = new Hotel();\n hotel.setRating(\"9.5\");\n String hotelrating = hotel.getRating();\n assertEquals(\"9.5\", hotelrating);\n }", "@Test\r\n public void testGetListaReservas() {\r\n System.out.println(\"getListaReservas\");\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain) throws ServletException, IOException { System.out.println("Inside Filter..."); System.out.println("SecurityContextHolder.getContext().getAuthentication()" + SecurityContextHolder.getConte...
[ "@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" ] ] } }
Initializes the controller class.
@Override public void initialize(URL url, ResourceBundle rb) { }
[ "public Controller(){\t\n\t}", "public GameEriController() {\r\n\t\tinit();\r\n\t\t\r\n\t}", "public MainController(){\n \n }", "public Controller ()\n\t{\n\t\tview = new View();\n\t\tmodelo = new Modelo(10000);\n\t}", "public MainController() {\n try {\n log.debug(\"Starting Mai...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return cost by day for subscribtion.
private double return_cost_by_day_for_subscribtion(int day) { for (entities.Rate rate : subscribe_rates) { if (rate.getDays() == day) { selected_rate_sub = rate; return rate.getPrice(); } } return 0; }
[ "protected double getDailyCost() {\r\n return dailyCost;\r\n }", "public double getTotalCost(Reservation newRes, Hotels hot){\n\t\tint start = newRes.getDateFrom().get(Calendar.DAY_OF_WEEK);\t\t\n\t\tif(start == 1){\n\t\t\tstart = 6;\n\t\t}else{\n\t\t\tstart = start - 2;\n\t\t}\n\t\tint numDays = newRes.ge...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void onReceive(Context context, Intent intent) { dbHelper = DBHelper.getInstance(context, 1); contactName = intent.getStringExtra("contactName"); contactPhone = intent.getStringExtra("contactPhone"); note = intent.getStringExtra("note"); flag = intent.getIntExtra("flag", 0); hour...
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void onTimeSet(TimePicker view, int hourOfDay, int minute) { logouttime = String.format("%02d:%02d", hourOfDay, minute); Log.d("output", logouttime); //logout.setText("" + hourOfDay + ":" + minute); ...
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This render method draws to the screen The method displays the current volume on screen Displays the language options and the five buttons
@Override public void render(Painter g) { if(currentLanguage == "English"){ g.drawImage(Assets.coinTossBackground, 0,0); backArrowButton.render(g); minusButton.render(g); plusButton.render(g); englishButton.render(g); polishButton.rend...
[ "@Override\r\n\tpublic void render() {\r\n\t\tbatch.begin();\r\n\t\t\r\n\t\tcbxSound.render(batch);\r\n\t\tcbxMusic.render(batch);\r\n\t\tbtnBack.render(batch);\r\n\t\t\r\n\t\tbatch.end();\r\n\t\t\r\n\t}", "private void render()\n\t{\n\t\tbs = ui.getCanvas().getBufferStrategy();\n\t\tif(bs == null)\n\t\t{\n\t\t\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Description: Function will update the local datastore by querying the server database for updated restaurants' information
public void refreshAllRestaurantsHard() { ParseQuery<Restaurant> query = queryForAllRestaurants(false); executeQueryInBackground(query); }
[ "public void UpdateRestaurants(ArrayList<Business> restaurants)\n {\n //Load the search list\n if(restaurants.isEmpty() || (restaurants.size() == 1 && restaurants.get(0).id().equals(\"\"))) {\n notFound.setText(\"No Results Found\");\n notFound.setVisibility(View.VISIBLE);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Tags for the Disk.
@Updatable public Map<String, String> getTags() { if (tags == null) { tags = new HashMap<>(); } return tags; }
[ "void provideVmTags(long vmId, long volumeId, String tagValue);", "private void createTag() {\n\n String formattedDate = sdf.format(c.getTime());\n\n //mTagID = UUID.randomUUID().toString(); // Moved this to the image upload so we could associate files with tags\n mTagDuration = formattedDat...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
convenience method. transforms a given horizontal coordinate within the viewport into the correspondig timestamp (milliseconds) in the log space.
protected long coord2timeMillis_buffer(double anX, double milli2pixels) { return (long) ((double) anX / milli2pixels) + dcModel.getLogBoundaryLeft().getTime(); }
[ "private void log_pos(long timestamp, int x, int y, String category) {\n writeFile(logpath_position, timestamp + \",\" + x + \",\" + y + \",\" + category);\n }", "long getTimestampInMillis(int index);", "String onGetTimeStampMs() {\n long diff = System.currentTimeMillis() - ts_start;\n d...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Escrever o nome da Imobiliaria
public void escreverNomeImobiliariaPesquisarPessoa(String nome_preenchido) { getDSL().escreverJsId(get_campoSelecaoPesquisarPessoaImobiliariaId(), nome_preenchido); }
[ "@AutoEscape\n\tpublic String getNomeRuolo();", "ContaNani(String nome) {\r\n super();\r\n setName(nome);\r\n }", "public String getName(){\n\t\treturn nome;\n\t}", "public void setImei(String aImei) {\n imei = aImei;\n }", "public void setNomecompleto(String nomecompleto) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set search value for Entering case qty
public void setEnteringQty(int arg, String compcode, String left_paren, String right_paren, String and_or) throws ReadWriteException { setValue(_Prefix + ShortageInfo.ENTERINGQTY.toString(), arg, compcode, left_paren, right_paren, and_or); }
[ "public void enterValueInSearch(String product){\r\n\t\tsearchforproduct.click();\r\n\t\tsearchforproduct.sendKeys(product);\r\n\t\tReporter.log(\"User is able to enter search product\");\r\n\t}", "public void searchItem() {\n\t\tdriver.findElement(searchtxb).sendKeys(\"Le Crueset\");\n\t\t\n\t}", "public void ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a new IntList. The default values of the elements in this list will be 0.
public IntList(final int initialCapacity, final int capacityIncrement) { this(initialCapacity, capacityIncrement, 0); }
[ "public IntList() {\n /* NOTE: public IntList () { } would also work. */\n this (0, null);\n }", "public myIntArrayList(){\n\t\tsetSize(0);\n\t}", "public IntList() {\n this(10);\n }", "public IntArrayList(int initialCapacity)\r\n\t{\r\n\t\tif (initialCapacity < 0)\r\n\t\t\tthrow n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
get Dictionary Not Delete By ID
public Dictionary getDictionaryByIDNotDelete(int Id);
[ "Map<String, Object> read(int id);", "@Override\n\tpublic Map<String, Object> read_detalle(int id) {\n\t\treturn detalle_pedidoDao.read_detalle(id);\n\t}", "SysDict selectByPrimaryKey(Long id);", "public BHDict readById(BHRef id) { return (BHDict)invoke(readById,id,null); }", "public Map<String, Object> get...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method taps More Options item
public void tapMoreOptions() { waitUtils.staticWait(1000); ActionBarMoreOptions.click(); }
[ "public More clickOnMore(){\n\t\tsafeClick(more());\n\t\treturn new More(driver);\n\t}", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\taddMoreView.setEnabled(false);\r\n\t getMore();\r\n\t\t\t}", "@Override\n\t\t\tpublic void onMoreClickListe...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method will return the power of an particular number
static int power(int a, int b){ int res=1; for(int c=0;c<b;c++){ res=res * a; } return res; }
[ "Integer power(Integer base, Integer exponent);", "public int power(int n, int m){\r\n\t\t if(m == 0)\n {\n return 1;\n }\n else\n {\n return power(n , m-1) * n;\n }\r\n\t}", "F pow(F exponent);", "private double recursionPower(double base, int exponent){\n if (exponent ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void onItemClick(AdapterView<?> arg0, View arg1, int pos, long arg3) { int id = -1; Log.e("Size", String.valueOf(MainActivity.Today.size())); // if (position == 0) { // id = Integer.parseInt(MainActivity.Today.get((pos - 1)).id); // } else if (position == 1) { // id = Int...
[ "@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 a token that was returned by the previous call to nextToken(). If this is called before any calls to nextToken(), a null value is returned.
public Token currentToken() { return currentToken; }
[ "public Token nextToken() {\n\t\textractNextToken();\n\t\treturn getToken();\n\t}", "public Token getNextToken(){\n\t\tnextToken();\n\t\treturn currentToken();\n\t}", "final public Token getNextToken() {\r\n if (token.next != null) token = token.next;\r\n else token = token.next = token_source.getNextToke...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Sends a Gossip message to an unreachable member
private void maybeGossipToUnreachableMember(Message<GossipDigestSyn> message) { double liveEndpointCount = liveEndpoints.size(); double unreachableEndpointCount = unreachableEndpoints.size(); if (unreachableEndpointCount > 0) { /* based on some probability */ ...
[ "private void spreadGossipsTo(long period, Member member) {\n List<Gossip> gossips = selectGossipsToSend(period, member);\n if (gossips.isEmpty()) {\n return; // nothing to spread\n }\n\n // Send gossip request\n Address address = member.address();\n\n gossips.stream()\n .map(this::bui...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
moves cat and dog positions after "tick"
public void move(int elapsedTime){ if(outOfBounds()){ changeDirection(); } int theta = dir;//Math.abs(90- dir); double deltaX = Math.cos(theta)*speed; double deltaY = Math.sin(theta)*speed; x += deltaX; y += deltaY; location = new Point(x,y); if(waitCount>0)wai...
[ "@Override\r\n\tpublic void move() {\r\n // dog moving code...\r\n }", "public void act()\r\n {\r\n move (5);\r\n lookForStickman();\r\n }", "public void tick() {\n\t\tobject.position.x = anchor.position.x + offsetX;\n\t\tobject.position.y = anchor.position.y + offsetY;\n\t}", "pri...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); //noinspection SimplifiableIfStatement if (id == R.id.action_settings) { return true; } return super.onOptionsItemSelected(item); }
[ "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch(item.getItemId()){\n\t\tcase android.R.id.home:\n\t\t\t// app icon in action bar clicked; go home\n Intent intent = new Intent(this, MainMenuCard.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Setter for property participante.
public void setParticipante(Participante participante) { this.participante = participante; }
[ "public void setVendedor(Vendedor vendedor);", "public final void setPaquetePersonaje(final PaquetePersonaje paquetePersonaje) {\n\t\tthis.paquetePersonaje = paquetePersonaje;\n\t}", "public void setDetalleMovimientoInventario(DetalleMovimientoInventario detalleMovimientoInventario)\r\n/* 287: */ {\r\n/* 2...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO move the FunctionFeatures class
public Map< String, String > generateForEval() { int x1 = randomInt( -10, 10 ); int x2 = randomInt( 1, 10 ) + x1; int answer1 = 0; int answer2 = 0; int num1 = nonZeroRandomInt( -5, 5 ); int num2 = nonZeroRandomInt( -5, 5 ); int num3 = nonZeroRandomInt( -5, 5 ); ...
[ "void processFeature(SourceFeature feature, FeatureCollector features);", "@Override\n\tpublic void generateFeatures() {\n\t\tsuper.generateFeatures();\n\t}", "public abstract ImmutableList<String> features();", "@Override\n\tpublic void feature(Feature arg0) {\n\t\t\n\t}", "public FeatureCollection getFeat...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public View getView(int position, View convertView, ViewGroup parent) { ViewHolder holder; if (convertView == null) { holder = new ViewHolder(); convertView = getLayoutInflater().inflate(R.layout.item_allopt, null); holder.shade_left = (ImageView) convertView.findViewById(R.id.shade_left);...
[ "@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" ] ] } }
Adds new statements before given anchor statement creating a new code block, if necessary
public static PsiStatement addBefore(PsiStatement anchor, PsiStatement... newStatements) { if (newStatements.length == 0) throw new IllegalArgumentException(); PsiElement oldStatement = anchor; PsiElement parent = oldStatement.getParent(); while (parent instanceof PsiLabeledStatement) { oldStateme...
[ "public void beginBlock() {\n stmtsStack.push(stmts);\n stmts = ListBuffer.lb();\n }", "@Override\n public void prependStatement(final Statement statement) {\n this.statements.add(0, statement);\n }", "@Override\n\tpublic CodeBlock visit(ASTRecord astReco...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
If we get and SimppRequest, get the payload we need from the SimppManager and send the simpp bytes the the requestor in a SimppVM.
private void handleSimppRequest(final SimppRequestVM simppReq, final ReplyHandler handler ) { byte[] data = simppReq.isOldRequest() ? simppManager.get().getOldUpdateResponse() : simppManager.get().getSimppBytes();...
[ "private List<Byte> requestMSP (int msp, Character[] payload) {\n if(msp < 0) {\n return null;\n }\n List<Byte> bf = new LinkedList<Byte>();\n for (byte c : MSP_HEADER.getBytes()) {\n bf.add( c );\n }\n \n byte checksum=0;\n byte pl_size = (byte)((payload != null ? PApplet.parseInt(payload.length) : 0)...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Created by linhui on 2017/10/25.
public interface IBuyGroupEntity { ICycleEntity getCycle(); List<IOrderEntity> getOrders(); String getBatchKey(); }
[ "@Override\n public void extornar() {\n \n }", "@Override\n }", "private static void EX5() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public int utilite() {\n ret...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Set size of this object Required for collision detection and screen collision detection
public void setSize(int w, int h) { WIDTH = (byte)w; HEIGHT = (byte)h; }
[ "public void setSize(Vector2 size) {\r\n\t\tthis.size = size;\r\n\t}", "public void setSize(int w, int h) \n\t{\n\t\tthis.size = new Vector2(w,h);\n\t}", "public void setSize(Rectangle size) {\n\t\t_size = size;\n\n\t}", "public void reSize() {\n\t\tint min_width = (int)(CLOUD_WIDTH*MIN_MOD);\n\t\tint max_wid...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Nonsymmetric reduction from Hessenberg to real Schur form.
private void hqr2 () { // This is derived from the Algol procedure hqr2, // by Martin and Wilkinson, Handbook for Auto. Comp., // Vol.ii-Linear Algebra, and the corresponding // Fortran subroutine in EISPACK. // Initialize int nn = this.n; int n = nn-1; int low = 0...
[ "public void hessenbergMatrix(){\n\n this.hessenberg = this.getArrayCopy();\n double pivot = 0.0D;\n int pivotIndex = 0;\n double hold = 0.0D;\n\n for(int i = 1; i<this.numberOfRows-1; i++){\n // identify pivot\n pivot = 0.0D;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
keeping the carbonTomcatService in UrlMapperAdminService class
protected void setCarbonTomcatService(CarbonTomcatService carbonTomcatService) { DataHolder.getInstance().setCarbonTomcatService(carbonTomcatService); }
[ "public interface IOtherService {\n\n /**\n *获取客户端升级地址\n * @return\n * @throws Exception\n */\n ServiceProxyResponse selAppUploadUrl(HttpServletRequest request) throws Exception;\n /**\n *proxy demo contacts\n * 获取客户端升级地址\n * @return\n * @throws Exception\n */\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__TrelloPUT__Group__18" $ANTLR start "rule__TrelloPUT__Group__18__Impl" InternalSparrow.g:4764:1: rule__TrelloPUT__Group__18__Impl : ( ( rule__TrelloPUT__ConditionAssignment_18 ) ) ;
public final void rule__TrelloPUT__Group__18__Impl() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalSparrow.g:4768:1: ( ( ( rule__TrelloPUT__ConditionAssignment_18 ) ) ) // InternalSparrow.g:4769:1: ( ( rule__TrelloPUT__ConditionAssig...
[ "public final void rule__TCondition__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.json.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyjson.g:29910:1: ( rule__TCondition__Group_...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Changes a user's password.
public void changePassword(String username, String password) throws SecurityRealmException;
[ "void changeUserPassword(User user, String password);", "User changePassword(String userId, Password changedPassword);", "void changePassword(User user, String oldPassword, String newPassword, String repeatNewPassword) throws ServiceException;", "void updatePassword(String userId, String password);", "UserD...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Save information from dialog fields to the metadata input.
private void getMeta( SmsSenderMeta meta ) { // Set target streams. List<StreamInterface> targetStreams = meta.getStepIOMeta().getTargetStreams(); String successfulStream = wSuccessfulToField.getText(); String failedStream = wFailedToField.getText(); targetStreams.get( 0 ).setStepMeta( transMeta.fin...
[ "private void saveInput() {\n\t\tNameStr = name.getText();\n\t\tEmailStr = email.getText();\n\t\tgmailPasswordStr=gmailPassword.getText();\n\t\tsetJiraUsernameStr(jiraUsername.getText());\n\t\tsetJiraPasswordStr(jiraPassword.getText());\n\n\t\tPreferencePage pf=new PreferencePage();\n\t\tBoolean ab=pf.setValues(\"N...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public Spliterator<Neuron> spliterator() { return Collections.singleton(this).spliterator(); }
[ "@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" ] ] } }
Salva la combinazione MASTER nel Database Controllo se la tabella Combinazione esiste Se non esiste la creo (id_comb, username, data, master_comb)
public void creaTabellaComb() { try { // SQL statement for creating a new table String sql = "CREATE TABLE IF NOT EXISTS Combinazione (id_comb int PRIMARY KEY auto_increment, username varchar(20),data DATETIME, master_comb varchar(3));"; super.statementMetodo(); s...
[ "public void crearConvenio() {\r\n\t\tConexion conexion = new Conexion();\r\n\r\n\t\ttry {\r\n\t\t\tif (isValidoConvenio(\"C\")) {\r\n\t\t\t\tconexion.setAutoCommitBD(false);\r\n\r\n\t\t\t\tthis.convenio.setNombre(this.getSinEspacios(this.convenio.getNombre()));\r\n\t\t\t\tthis.convenio.setTelefonos(this.getSinEspa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the partitions disabled by this instance
public List<String> getDisabledPartitions() { return _record.getListField(InstanceConfigProperty.HELIX_DISABLED_PARTITION.toString()); }
[ "public Partition[] getAllPartitions() {\n return (this.partitions);\n }", "public List<String> disabledBy() {\n return this.spec.getDisabledByList();\n }", "public AmazonRdsForOraclePartitionSettings getPartitionSettings() {\n return this.partitionSettings;\n }", "public java....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void delete(ANCEntity t) { }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
UUID used for metrics.
String getUuid();
[ "String instanceUuid();", "private static String uuid(){\n return UUID.randomUUID().toString().replace(\"-\", \"\").toUpperCase();\n }", "public String uuid();", "private String getUUID() {\n\t\tchar[] chars = \"abcdefghijklmnopqrstuvwxyzABSDEFGHIJKLMNOPQRSTUVWXYZ1234567890\".toCharArray();\n\t\tRan...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ renamed from: a
public /* synthetic */ void mo11568a(View view) { C5498a.m15600a(view.getContext()).mo13123a(C5501c.LIGHT, C5500b.NAV); m13137c(); }
[ "public interface C3511a {\n /* renamed from: a */\n void mo29057a(int i);\n }", "interface C4511c {\n /* renamed from: a */\n void mo29775a();\n }", "public interface ans {\n /* renamed from: a */\n void mo1174a();\n}", "public interface C24712af {\n /* renamed from...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Whether autowiring is enabled. This is used for automatic autowiring options (the option must be marked as autowired) by looking up in the registry to find if there is a single instance of matching type, which then gets configured on the component. This can be used for automatic configuring JDBC data sources, JMS conne...
default KafkaComponentBuilder autowiredEnabled(boolean autowiredEnabled) { doSetProperty("autowiredEnabled", autowiredEnabled); return this; }
[ "default WebsocketComponentBuilder autowiredEnabled(\n boolean autowiredEnabled) {\n doSetProperty(\"autowiredEnabled\", autowiredEnabled);\n return this;\n }", "public void setAutowireMode(int autowireMode) {\n this.autowireMode = autowireMode;\n }", "@SimpleProp...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method maps the CSS fontstyle to Font styles allowed by Java Font Style. We default to css font style value "oblique".
private static int getFontStyle(LayoutStyle layoutStyle) { String fontStyleStr = layoutStyle.getValue(FontStyleKeys.FONT_STYLE).getCSSText(); // Font Style default int fontStyle = Font.PLAIN; if (fontStyleStr.equalsIgnoreCase((FontStyle.ITALIC).getCSSText())) { fontStyle = Font.ITALIC; ...
[ "public int getFontStyle();", "@DISPID(177)\r\n @PropPut\r\n void setFontStyle(\r\n java.lang.Object rhs);", "public TextStyle getActiveStyle();", "ITextStyle defaultTextStyle();", "java.lang.String getStyleflag();", "void setFont(String fontName, int style, int size);", "public int getFontStyle() ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test case number: 22 /Coverage entropy=1.6094379124341005
@Test(timeout = 4000) public void test22() throws Throwable { LinkedList<byte[][]> linkedList0 = new LinkedList<byte[][]>(); XSQLVAR[] xSQLVARArray0 = new XSQLVAR[0]; FBResultSet fBResultSet0 = new FBResultSet(xSQLVARArray0, linkedList0); linkedList0.add((byte[][]) null); FBCachedFetch...
[ "@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" ] ] } }
Start a Syxaw instance. Usage: create [debug] root port where debug starts the instance in a VM in JDPA server mode root is the name of the instance port is the port to listen for HTTP requests.
public void create(PrintStream pw, String[] args) throws Exception { Util.ObjectHolder debugHolder = new Util.ObjectHolder(new Boolean(false)); Util.ObjectHolder cleanHolder = new Util.ObjectHolder(new Boolean(false)); args = CliUtil.hasOpt(args,"debug",debugHolder); args = CliUtil.hasOpt(args,"clean",c...
[ "@Override\n public void start() {\n LOGGER.debug(\"AdeptJ Runtime jvm args: {}\", this.runtimeArgs);\n this.cfgReference = new WeakReference<>(Configs.of().undertow());\n Config undertowConf = Objects.requireNonNull(this.cfgReference.get());\n Config httpConf = undertowConf.getConfig...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void handleEvent(Event event) { boolean end = Dialog.isConfirmed( "Želite li završiti rad sa programom?", "Odaberite Opciju"); if (end) mParent.getShell().close(); // MessageBox messageBox = new MessageBox(mParent.getShell(), SWT.APPLICATION_MODAL | SWT.YES |...
[ "@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 the names assigned by the admin, and changes their group number to the appropriate number.
@Override public void onClick(View arg0) { Thread t = new Thread() { @Override public void run() { String path = "http://www.bmgsoftware.com/adminpromotetochap.php"; HttpClient client = new DefaultHttpClient(); HttpConnectionParams.setConnectionTimeout(client.getParams(), ...
[ "public void editGroup() {\n try {\n\n String sql = \"UPDATE `groups` SET `group_name` = ? WHERE `groups`.`group_id` = ? \";\n Connection conn = DBUtils.getConnection();\n\n PreparedStatement pst = conn.prepareStatement(sql);\n pst.setString(1, currentGroup.getGrou...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Reads a row from the console
private static int readRow() { System.out.println("row:"); int row = readInt(); while (row < 0 || row >= BaghChalI.DIM) { System.out.println("invalid input"); row = readInt(); } return row; }
[ "private String readLine(){\n\t\treturn readLine(1);\n\t}", "protected String readLine() throws SQLException\n {\n try {\n String retval = _lineReader.readLine();\n\n _lineNumber++;\n return retval;\n } catch( Throwable t ) { throw wrap( t ); }\n }", "pri...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sends an api call to retrieve configuration details like reinforced actionIds and. reinforcementEnabled.
@Nullable public static JSONObject boot(Context context, JSONObject payload) { return getInstance(context).send(CallType.BOOT, payload); }
[ "public void requestRemoteUpdateConfig() {\n if (D) Log.d(LOG_TAG, \"---> Start Config remote update\");\n MyRestService.INSTANCE.getConfig().enqueue(new Callback<ConfigModel>() {\n @Override\n public void onResponse(Call<ConfigModel> call, Response<ConfigModel> response) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
sets the calendar to a specific date
public static Calendar setCalendar(String date){ //get calendar set to current date and Time Calendar cal = Calendar.getInstance(); Date dt = null; if(date != null){ try { dt = new SimpleDateFormat(TimeFormat).parse(date); cal.setTime(dt); //cal.getTime(); } catch (ParseException e) {...
[ "void changeDate(Calendar newDate);", "public final void setDate(final Calendar clndar) {\n this.calendar = clndar;\n }", "public void setDate(Date newDate)\r\n {\r\n date = new HGCalendar(newDate);\r\n }", "public abstract void setStartDate(Calendar startDate);", "public void setDate(int mon...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create resource directory structure(with src,main,resource) inside given custom module directory.
private File getResourceDir(File moduleDir, boolean create) { log.debug("Get resources for module: {}", moduleDir); if (!moduleDir.exists()) { return null; } File resourceDir = FileUtils.getFile(moduleDir, "src", "main", "resources"); if (!create) { return resourceDir; } if (!resour...
[ "abstract void createSrcFolder(DirectoryResource directoryResource) throws IOException;", "private static void createFiles() {\n\t\tmods = new File(dir.toString() + \"/mods\");\n\t\tconfig = new File(dir.toString() + \"/config\");\n\n\t\tif (mods.exists()) {\n\t\t\tFileUtils.DelateDirectory(mods);\n\t\t}\n\t\tmod...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates new form editOrder
public editOrder() { initComponents(); }
[ "@POST(\"orders\")\r\n Completable createOrder(@Body OrderCreateModel newOder);", "public CreateOrder() {\n initComponents();\n }", "@Override\n\tpublic void SetNewOrder(Order order) {\n\t\tmProgress.setVisibility(View.INVISIBLE);\n\n\t\ttry {\n\t\t\tBitmap duigouBitmap=MenuUtils.readBitMap(TableLi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
get the one reference of this node, typecasted to Node
public Node getBackUpNodeOneRef() { return (Node) backUpNodeOneRef; }
[ "public Node getNode1() {\n\t\treturn this.node1;\r\n\t}", "public Node<E> getNextReference() {\n\t\treturn this.nextReference;\n\t}", "private Node<T> getReferenceTo(T item) {\n boolean found = false;\n Node<T> currentNode = firstNode;\n\n while (!found && currentNode != null) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Write code here that turns the phrase above into concrete actions
@When("^Print the titles,amount,probability,commission$") public void print_the_titles_amount_probability_commission() throws Throwable { System.out.println(title); System.out.println(amount); System.out.println(probability); System.out.println(commission); }
[ "@Override\n public void doAction(MentionOf s) {\n\t\n }", "public void action(String name) {}", "@Override\n\t\tpublic void action() {\n\n\t\t}", "private void processAction(char action) throws IOException {\n switch (action) {\n case 'u':\n Viite tallennettava = getRef...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the current value of the dimension m. m is the first dimension of the data file being read and will be used to build arrays to store the data.
public int getcols() { return cols; }
[ "public int getM() \r\n\t{ \r\n\t\treturn m; \r\n\t}", "public double getValue(int dimension);", "public double valueForDimension(int dim);", "public int getM() {\n return _m;\n }", "Double getCoordinateVal(int dim);", "public MLArray getField(String name, int m, int n)\r\n {\r\n return getF...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Remove user This operation will delete the specified CfgPerson and connected with it CfgAgentLogin, CfgPlace, CfgDN objects in configuration server.
public ApiResponse<ApiSuccessResponse> deleteUserWithHttpInfo(String dbid, DeleteUserData deleteUserData) throws ApiException { com.squareup.okhttp.Call call = deleteUserValidateBeforeCall(dbid, deleteUserData, null, null); Type localVarReturnType = new TypeToken<ApiSuccessResponse>(){}.getType(); ...
[ "void removeMember(User user) throws Exception;", "@Override\r\n\tpublic void delUser() {\n\t\tUser user=this.getHibernateTemplate().get(User.class, 6);\r\n\t\tthis.getHibernateTemplate().delete(user);\r\n\t}", "public Boolean removeUser(Token token, String userPass) throws RemoteException, NullPointerException...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ FOR TESTING PURPOSES
public void testCascade() { final OrbView topOrb = orbList.get(10); final OrbView targetOrb = orbList.get(22); //targetOrb.setVisibility(View.INVISIBLE); //cascadeNewOrb(2, 5); int[] img_coordinates = new int[2]; //ImageView image = (ImageView) findViewById(R.id.myImag...
[ "protected void method_5557() {}", "private static void EX5() {\n\t\t\r\n\t}", "private void doTest() {\r\n\r\n\t}", "private void testing() {\n\t}", "protected void mo4791d() {\n }", "public static void Q22()\r\n\t{\r\n\t}", "public void mo28221a() {\n }", "private static void FactoryWalker...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
required string securityToken = 1;
public java.lang.String getSecurityToken() { java.lang.Object ref = securityToken_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()...
[ "public String AuthToken(String token);", "public String GetTokenUser(String token);", "public interface SecurityParameter\n{\n \n}", "public interface SecurityService {\n\n String getDirectorToken(String token);\n String getStudentToken(String token);\n}", "public abstract String getTokenString();...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get all InscriptionEntity which correspond to an event
public List<InscriptionsEntity> getInscriptions(EventsEntity events) { InscriptionsPersistenceJPA inscriptionsJPA = new InscriptionsPersistenceJPA(); Map<String, Object> critere = new HashMap<String, Object>(); critere.put("events", events); List<InscriptionsEntity> resultList = inscriptionsJPA.search(crite...
[ "@Security.Authenticated(Secured.class)\n\tpublic static Result GetEntityEventSubscriptions(){\n\t\tJsonNode json = request().body().asJson();\n\t\t\n\t\tString entityType = json.get(\"entityType\").asText();\n\t\tString entityId = json.get(\"entityId\").asText();\n\t\tString username = request().username(); // us...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the maximum position we can go to in the backing Channel. This is based on the current window mapped into the backing store.
public long getMaxPosition() { return this.minposition + this.buff1.limit() + this.buff2.limit(); }
[ "public long maxPosition()\r\n {\r\n return lastAssignedPosition;\r\n }", "protected int getMaxPosition() {\n return reverse ? getStartOffset() + 1 : size() - getStartOffset();\n }", "public int getMaxPosicion() {\n int pos =0;\n \n for (int i=0;i<getComponentCount();...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the value of the AccessControlExposeHeaders header.
public List<String> getExposedHeaders() { return exposedHeaders; }
[ "public List<String> getAccessControlExposeHeaders()\n/* */ {\n/* 514 */ return getValuesAsList(\"Access-Control-Expose-Headers\");\n/* */ }", "public List<String> getExposedHeaders() {\n \treturn exposedHeaders;\n }", "@Path(\"/allowed_headers\")\n @GET\n @Produces(MediaT...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Do not attempt to create an instance of this class!
private Example() { throw new Error("no instantiation is permitted"); }
[ "private O()\r\n {\r\n super();\r\n }", "@Override\n }", "protected Exam() {\n\t}", "private B000066() {\r\n\r\n\t}", "private Management() {\r\n\t}", "Cokolady()\t{\r\n\t\tsuper();\r\n\t}", "private Propriedades() {\r\n\t}", "public Innlegg() {\n\t\t\n\t}", "priv...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the d i a c h i h i e n n a y of this baocaochitiet.
public java.lang.String getDIACHIHIENNAY() { return _baocaochitiet.getDIACHIHIENNAY(); }
[ "java.lang.String getDangilGumsaYn();", "public String getYutaikbn() {\r\n return yutaikbn;\r\n }", "public java.lang.String getYeuCauDieuKienThucHien() {\n\t\treturn _thuTucHanhChinh.getYeuCauDieuKienThucHien();\n\t}", "public String getYinhangkahao() {\n return yinhangkahao;\n }", "pub...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__IntegerVariable__Group__3__Impl" $ANTLR start "rule__IntegerVariable__Group__4" ../org.xtext.idm.projet.ui/srcgen/org/xtext/idm/projet/ui/contentassist/antlr/internal/InternalStateMachine.g:1327:1: rule__IntegerVariable__Group__4 : rule__IntegerVariable__Group__4__Impl rule__IntegerVariable__Group__5 ...
public final void rule__IntegerVariable__Group__4() throws RecognitionException { int stackSize = keepStackSize(); try { // ../org.xtext.idm.projet.ui/src-gen/org/xtext/idm/projet/ui/contentassist/antlr/internal/InternalStateMachine.g:1331:1: ( rule__IntegerVariable__Group__4...
[ "public final void rule__Function__Group_3__4__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.hipie.ui/src-gen/org/xtext/hipie/ui/contentassist/antlr/internal/InternalHIPIE.g:9450:1: ( ( RULE_INT ) )\n // ../o...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set the identifier property of the proxy
public abstract void setIdentifier(Serializable id);
[ "public void setIdentifier(Reference identifier) {\r\n this.identifier = identifier;\r\n }", "public void setIdentifier(Object identifier) {\n\t\tthis.identifier = identifier.toString();\n\t}", "@Override\n\t public void setIdentifier(Object dataURI)\n\t {\n\n\t\t this.identifier = dataURI;\n\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Validates the value. Returns validation result.
@Override public ValidationIssue validate(V value, Object... params) { ValidationContext<V> context = ValidationContext.ofRoot(subject, value, params); program.execute(context); return context.toIssue(); }
[ "public void validate() {\n\t\tvalidate(getValue());\n\t}", "public ValidationResult validate(String value) {\n return validator_.validate(value);\n }", "public abstract boolean validate(Object value);", "@Override\n\t\t\tpublic IStatus validate(Object value) {\n\t\t\t\tfinal String m = checkRange(myLastF...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Convert hexColor to rgb, then call getColorNameFromRgb(r, g, b)
public String getColorNameFromHex(int hexColor) { int r = (hexColor & 0xFF0000) >> 16; int g = (hexColor & 0xFF00) >> 8; int b = (hexColor & 0xFF); return getColorNameFromRgb(r, g, b); }
[ "public static Color getColor(String rgbHex) {\n if (rgbHex.length() != 6) return null;\n String red = rgbHex.substring(0,2);\n String green = rgbHex.substring(2,4);\n String blue = rgbHex.substring(4,6);\n try {\n return new Color(Integer.parseInt(red,16), Integer.parseInt(green,...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Builds my Gson instance for default behavior.
private void build() { this.gson = new GsonBuilder() .registerTypeAdapter(Date.class, new DateSerializer()) .registerTypeAdapter(Date.class, new DateDeserializer()) .serializeNulls() .create(); }
[ "protected Gson buildGson() {\n return GsonUtil.standardGson();\n }", "private static Gson newGson() {\n\t\treturn null;\r\n\t}", "private static final GsonBuilder gsonBuilder() {\n return new GsonBuilder()\n //.serializeNulls()\n .disableHtmlEscaping()\n .setLe...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a list of Vector2d with free positions in area, that contains forbidden area inside
private ArrayList<Vector2d> freePositionsWithForbiddenArea(Rectangle area, Rectangle forbidden){ ArrayList<Vector2d> freePos= new ArrayList<>(); for(int i=area.getBottomLeftCorner().x; i<= area.getTopRightCorner().x; i++){ for(int j=area.getBottomLeftCorner().y; j<= area.getTopRightCorner()....
[ "public LocationList getEvenlyDiscritizedListOfLocsOnSurface();", "public List<Integer> findFarmableArea(){\n //Hardcoded for efficiency.\n for(int horizontal= 0; horizontal<=399; horizontal++){\n for(int vertical= 0; vertical<=599; vertical++){\n if(fieldSquares[horizontal...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create an instance of the publishing configuration.
public ArcgisPublishingConfiguration() { // create the publish configuration. getPublishConfigurationPropertiesFromDatabase(); }
[ "private synchronized static void createInstance() {\n if (instance == null) {\n instance = new Configurations();\n }\n }", "ConfigurationWps createConfigurationWps();", "private synchronized static void createInstance() {\r\n\t\tif (instance == null) {\r\n\t\t\tinstance = new Config...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Setting this will allow a partner to get an MPID as a part of the user profile.
public Permissions setAllowAccessMpid(boolean allowAccessMpid) { this.allowAccessMpid = allowAccessMpid; return this; }
[ "public String getPartnerID() {\n return partnerID;\n }", "public void setPartnerUserId(Integer partnerUserId) {\r\n this.partnerUserId = partnerUserId;\r\n }", "public void setPndID(java.lang.String param){\n \n this.loca...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ add all the stocks to the db
private void addAllStocks(Map<String, Stock> stocks) { stocks.values().forEach(stock -> this.addStock(stock.getCompanyName(), stock.getSymbol(), stock.getRate(), stock.getQuantity())); }
[ "Stocks loadAll() throws SQLException;", "private void createStocks()\n\t{\n\t\tString code = \"6000\";\n\t\tString name = \"能源\";\n\t\tString startTime = MyTime.getCurTimeStr(); \n\t\tsynchronized(allStocks){\n\t\t\t\n\t\t\tallStocks.clear();\n\t\t\tfor(int i=0;i<totalStock;i++){\n\t\t\t\tallStocks.add(new Stock...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method corresponds to the database table document_info
int updateByPrimaryKeyWithBLOBs(DocumentInfo record);
[ "@Override\n public Map<String, List<DocumentFileAuditInfo>> getDocumentFileAuditInfo(Integer documentId) throws SQLException\n {\n Map<String, List<DocumentFileAuditInfo>> documentFileMap = new HashMap<String, List<DocumentFileAuditInfo>>();\n\n if (connection != null)\n {\n PreparedStatement state...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The number of units available to the project. .google.protobuf.Int64Value unit_balance = 1;
public Builder clearUnitBalance() { if (unitBalanceBuilder_ == null) { unitBalance_ = null; onChanged(); } else { unitBalance_ = null; unitBalanceBuilder_ = null; } return this; }
[ "public long getUnit() {\n return unit;\n }", "int getUnitNumber();", "public com.google.protobuf.ByteString\n getNumUnitBytes() {\n java.lang.Object ref = numUnit_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
String containing either domain name or IP (most likely) optional string host = 1;
public java.lang.String getHost() { java.lang.Object ref = host_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); ...
[ "public String getHost()\n{\n return host;\n}", "String getHost() {\n/* 2408 */ return this.host;\n/* */ }", "public static void setHost(String pHost)\n {\n if(pHost == null)\n {\n strHost = \"\";\n }\n else\n {\n strHost = pHost;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$FF: renamed from: b () java.lang.String
public String method_1423() { String var1 = ""; if (this.field_1745 != null) { var1 = var1 + this.field_1745; } var1 = var1 + " (RAM:" + this.method_1435() + ")"; return var1; }
[ "public String b() {\n }", "void mo33242a(String str, C6952b bVar);", "public abstract void mo1823b(String str);", "void mo92308b(String str);", "public /* synthetic */ Object mo2b(String str) {\n return m1546a(str);\n }", "String mo11577b();", "public abstract C3954a mo56374b(String str);", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }