query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
optional string goodsId = 1;
boolean hasGoodsId();
[ "public Integer getGoods_id() {\n return goods_id;\n }", "String getGoodId();", "public int getGoodsId() {\n return goodsId_;\n }", "public void setGoodsCategoryOne(Long goodsCategoryOne);", "public void setGoodsCategoryThree(Long goodsCategoryThree);", "java.lang.String getMealId();", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the Field southeast of this
public Field getSoutheast() { if (this.south == null) return null; return south.getEast(); }
[ "Field getEastNeighbour() {\n\t\treturn eastNeighbour;\n\t}", "public Location getSouthWest() {\n\t\t\treturn southWest;\n\t\t}", "public double getLongWest() {\n return longWest;\n }", "public Location getSouthLocation() {\n\t\treturn this.southArea;\n\t}", "public Vector3D getWest() {\n i...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Deletes a user group from GAAP
public boolean deleteGroup(String uuid) throws GeonetworkGaapClientException { try { InputStream s = execGetMethod(new NameValuePair[]{ new NameValuePair(REQUEST_PARAM, GaapGetRequest.DELETEGROUP.toString()), new NameValuePair(UUID_PARAM, uuid) ...
[ "private void deleteGroup() {\n\t\tif (http == null) {\n\t\t\thttp = new VolleyUtils<BaseResultInfo>(this,BaseResultInfo.class);\n\t\t}\n\n\t\tMap<String,String> params = new HashMap<String,String>();\n//\t\tbuilder.appendQueryParameter(\"groupId\", );\n\t\tparams.put(\"token\", VkoContext.getInstance(this)\n\t\t\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create this view associated with its controller.
public HomePane(Home home, UserPreferences preferences, HomeController controller) { this.resource = ResourceBundle.getBundle(HomePane.class.getName()); // Create a unique toggle button model for Wall creation / Selection states // so Wall creation menu item and tool bar button // always reflect the sa...
[ "public View(Controller controller) {\n this.controller = controller;\n }", "public AdViewController internalCreate(Context context, MoPubView moPubView) {\n return new AdViewController(context, moPubView);\n }", "protected abstract ViewType createView();", "public View(Controller controller)\n\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO: public only prior using otto to get notified when data is loaded in the adapter
public void showError(final String error) { //TODO: use ButterKnife.Apply mActiveListingsList.setVisibility(View.GONE); mProgressBar.setVisibility(View.GONE); mErrorView.setText(error); mErrorView.setVisibility(View.VISIBLE); }
[ "@Override\n public void notifyLoaded() {\n notifyDataSetChanged();\n }", "public void handleAdapterDataSet() {\n mVolumePresenter.getRealmData();\n }", "@Override\n public void onDataSetChanged() {\n readData();\n }", "@Override\n protected void LoadData() {\n\n }", "@...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Allocate header label for loop
private void translate(BytecodeForest.Index index, Loop c, int freeSlot, BytecodeForest forest, ArrayList<Bytecode> bytecodes) { String loopHeader = freshLabel(); bytecodes.add(new Bytecode.Label(loopHeader)); // Translate body of loop. The cast is required to ensure correct method // is called. translate(...
[ "private void createHeaderLabel() {\n JPanel panel = new JPanel(new GridLayout(1, 2));\n headerLabel = new JLabel(\"Initialization of the board\");\n gameStateLable = new JLabel(\"It's your turn\");\n panel.add(headerLabel);\n panel.add(gameStateLable);\n mainPanel.add(pane...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Default behavior for FormControllers redirect to the successView when the cancel button has been pressed.
public ModelAndView processFormSubmission(HttpServletRequest request, HttpServletResponse response, Object command, BindException errors) throws Exception { if (request.getParameter("cancel") != null) { return new ModelAndView(getCancelView()); } return super.processFormSubmission(request, response, command, ...
[ "@RequestMapping(value = \"/AdminUnitTypeForm\", method = RequestMethod.POST, params = \"CancelButton\")\r\n\tpublic String cancelChanges(ModelMap model) {\r\n\t\tLOGGER.info(\"/cancelChanges - no save, return to root view \");\r\n\t\t// jump back to root view\r\n\t\treturn \"redirect:/\";\r\n\t}", "@Override\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the value of the ownerNow property.
public void setOwnerNow(int value) { this.ownerNow = value; }
[ "public void setOwner(Object owner)\n {\n this.owner = owner;\n }", "void setNow(final long now) {\n this.now = now;\n }", "public void setOwner(String owner) {\n mOwner = owner;\n }", "public void setOwnerValue(String theOwnerValue)\n {\n ownerValue = theOwnerValue;\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column user_info_tbl.phone
public void setPhone(String phone) { this.phone = phone == null ? null : phone.trim(); }
[ "public void setPhone(String phone) {\t\t\n\t\tthis.phone = phone ;\t\t\n\t}", "public void setCustomerPhoneNumber(String userID, String phoneNumber) throws SQLException {\r\n if (phoneNumber == null || userID == null){\r\n System.out.println(\"Invalid ID or email!\");\r\n return;\r\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ returns instance of new round
public Round getNextRound() { Log.v("--Round224--", "Getting new Round"); Round round = new Round(allCards, players, (dealer+1) % 4); GameActivity.showRoundReset(); return round; }
[ "public Round() {\n\n }", "CGrounding createCGrounding();", "public TimeSquared round(){\nreturn new TimeSquared(Math.round(this.getX()),this.getU(),this.getUnits());\n}", "public Round getRound() {return round; }", "public void initRound() {\r\n round = new Round(playground, this);\r\n }", "...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ show cards associating to the name in input
private void searchCardByName(){ System.out.println("Rechercher| Entrez le nom de la carte que vous voulez consulter"); Scanner s = new Scanner(System.in); String value_name=s.nextLine(); searchCardByAttribute("card_name",value_name); }
[ "public void printCards() {\r\n\t\tSystem.out.printf(\"%s's cards: \", name);\r\n\r\n\t\tif (cards.size() == 0)\r\n\t\t\tSystem.out.println(\"(no cards).\");\r\n\t\telse {\r\n\t\t\tSystem.out.println();\r\n\t\t\tfor (int n = 0; n < cards.size(); n++)\r\n\t\t\t\tSystem.out.printf(\"%d. %s%n\", n + 1, cards.get(n).to...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
List of OpenSearch clusters. repeated .yandex.cloud.mdb.opensearch.v1.Cluster clusters = 1;
@java.lang.Override public java.util.List<yandex.cloud.api.mdb.opensearch.v1.ClusterOuterClass.Cluster> getClustersList() { return clusters_; }
[ "public static List<OSPCluster> findAll() {\n\t\treturn getPersistence().findAll();\n\t}", "Clusters getClusters();", "public List<Cluster> getClusterlist() {\n return new ArrayList<>(clustermap.values());\n }", "CassandraClustersClient getCassandraClusters();", "com.google.bigtable.admin.v2.Clust...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
inserta el codigo del usuario segun el su email relacionado al codigo
public void insertCodigo(@Param("codigo") int codigo, @Param("emailUsuario") String emailUsuario);
[ "public void verificarEmail(String codigo) {\n\t\tCodigoAtivar<Usuario> codigoAtivar = new CodigoAtivarUsuario(new Usuario());\n\t\tUsuario user = codigoAtivar.reveterCodigo(codigo);\n\t\tUsuario findUser = this.usuarioDAO.findById(user.getId()).get();\n\t\tif(findUser.isVerificado() != true) {\n\t\t\tfindUser.setV...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Shapes can generate their proper SVG output.
String generateProperSVG(Animation a, int tempo);
[ "public abstract String svgFormat(int tps);", "private SVGDocument toSVG(final IDrawing drawing, final double incr) {\n \t\t\t// Creation of the SVG document.\n \t\t\tfinal List<IShape> shapes\t= drawing.getShapes();\n \t\t\tfinal SVGDocument doc \t\t= new SVGDocument();\n \t\t\tfinal SVGSVGElement root \t= doc.g...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional .com.laex.cg2d.model.CGScreenPreferences screenPrefs = 1;
public com.laex.cg2d.model.ScreenModel.CGScreenPreferences getScreenPrefs() { if (screenPrefsBuilder_ == null) { return screenPrefs_; } else { return screenPrefsBuilder_.getMessage(); } }
[ "void setScreenMode(int curScreenMode);", "public static void ED_screen_set(GL2 gl, bContext C, bScreen sc)\r\n//public static void ED_screen_set(bContext C, bScreen sc)\r\n{\r\n\twmWindow win= bContext.CTX_wm_window(C);\r\n\tbScreen oldscreen= bContext.CTX_wm_screen(C);\r\n\tID id;\r\n\r\n\t/* validate screen, i...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method is used to form the RDVHoldActionDTO from RDV Line ID
public static List<RDVHoldActionDTO> getRDVHoldActionDTOList(String lineID) { List<RDVHoldActionDTO> lineHoldActionList = new ArrayList<RDVHoldActionDTO>(); OBQuery<EfinRdvHoldAction> holdActionQry = OBDal.getInstance() .createQuery(EfinRdvHoldAction.class, "as e where e.efinRdvtxnline.id = :txnLineId...
[ "public String toString() {\r\n return \"DWLockReleaseRequest(\"+_rwlname+\")\";\r\n }", "RentalShowDTO getRentalById(Integer rentalId) throws Exception;", "public Object buildRecord(RecordCapsule r) {\n return r;\n }", "public int getReversalLine_ID();", "public void setRecordLineId(String Re...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Simplified to just pull the coffees. Still no joy.
@Bean CommandLineRunner demo(WebClient client) { return args -> client.get() .retrieve() .bodyToFlux(Coffee.class) .subscribe(System.out::println); }
[ "private List<Coffee> getCoffees(PreparedStatement preparedStatement) throws SQLException {\n ResultSet resultSet = preparedStatement.executeQuery();\n List<Coffee> coffees = new ArrayList<>();\n Coffee coffee;\n while (resultSet.next()) {\n coffee = new Coffee(resultSet.getSt...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void onStart() { Toast.makeText( mContext, "分享开始", Toast.LENGTH_SHORT).show(); }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Utility method to create an AlertDialog.
public AlertDialog getGenericFileOpDialog( @StringRes int positiveBtnText, @StringRes int title, @DrawableRes int icon, @LayoutRes int view, Handler<AlertDialog> positiveCallBack, Handler<AlertDialog> negativeCallBack) { AlertDialog dialog...
[ "public AlertDialog.Builder newDialogBuilder() {\n\t return new AlertDialog.Builder(this) {\r\n @Override\r\n public AlertDialog show() {\r\n AlertDialog d = super.show();\r\n d.setCanceledOnTouchOutside(false);\r\n return d;\r\n }\r\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Find avarge of mark of student Return result as a double type
public double findAvarageMark(){ return (mark1 + mark2) / 2; }
[ "public double avgMarkStudent() {\n\n\t\tdouble average = 0;\n\t\tfor (int i = 0; i < arrayListStu.size(); i++) {\n\t\t\taverage = arrayListStu.get(i).getMarkI()\n\t\t\t\t\t+ arrayListStu.get(i).getMarkII();\n\t\t}\n\t\treturn average / 2;\n\t}", "public float averageMarks(){\r\n\t\tfloat sum=0,average=0;\r\n\t\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Core method of encryption, inputStream will be seperate to individual blocks, and padding will be added to the end
public String encrypt(InputStream inputStream) throws IOException{ // assume the first line is n and second line is e // use key to store n Block m; Block c; String result = ""; int blockSize = key.size/2; // block size mod 8 should be 0 while (blockSize % 8 != 0) { blockSize++; } // block...
[ "private void encrypt() {\n try {\n byte[] block = new byte[this.blocksize * 16];\n int numchars = this.incipher.read(block);\n while (numchars != -1) {\n if (numchars < (this.blocksize * 16)) {\n block = new_fill(block, numchars);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
inheritance either specified locally, or per default via outer object
private ConfigurationObject getModifiedDefaults () throws ModelObjectNotFoundException, ModelServiceException, GuiWebServiceException { if ( this.getInherits() != null ) { // if inheritance is locally specified, it takes precedence log.trace("Inheriting locally"); //$NON-NLS-1$ ...
[ "public com.rightnow.ws.objects.InheritOptions getInherit(){\r\n return localInherit;\r\n }", "public static void main(String[] args) {\n new Inherit();\n\t}", "private void setParent(String parent) {\n \t\t//java.lang.Object has no parent\n \t\tif ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the set of properties that the WikiEngine was initialized with. Note that this method returns a direct reference, so it's possible to manipulate the properties. However, this is not advised unless you really know what you're doing.
public Properties getWikiProperties() { return m_properties; }
[ "private Properties getProperties() {\n\t\treturn properties;\n\t}", "public Properties getProperties()\n\t{\n\t\tif ( properties == null )\n\t\t\tsetProperties(new Properties());\n\t\treturn properties;\n\t}", "public Properties getProperties() {\r\n return properties;\r\n }", "public Properties ge...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
set price for a veg burger.
public void price() { }
[ "public void setPrice(double price){\n \tthis.price = price;\n }", "public void setPrice(double price)\r\n {\r\n this.price = price;\r\n }", "public void setPrice(double price)\n {\n this.price = price;\n }", "public void setPrice(double price) \r\n\t{\r\n\t\tthis.price = price;\r\n\t}...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
metodos get y set
public String getNombre() { return nombre; }
[ "boolean getSet();", "public GetOrSet() {\n this.present = true;\n this.access = AccessModifier.PUBLIC;\n this.spec = \"\";\n }", "public void set(Aleatorio aleatorio);", "@Test\n public void testSet() {\n Board board = new Board();\n board.set(4, 4, BP);\n boar...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Metoda vytvorena vrati historicke data menoveho kurzu a nasledne tieto data sa pouziju pre vypocet predikcii.
private ArrayList<Float> getData(){ final ArrayList<Float> al = new ArrayList<>(); SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd"); Date date = new Date(); String url = "https://api.exchangeratesapi.io/history?start_at=2000-01-01&end_at="+ simpleDa...
[ "private void nastavi()\n {\n Date trenutno = new Date();\n long lTrenutno = trenutno.getTime(); //trenutno vreme u milisekundama\n //Prolazak kroz mapu da bi se utvrdilo vreme koje je bilo predvidjeno za isporuku\n HashMap<Integer, Porudzbina> kopija = new HashMap<>(porudzbineNeispor...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
public static int getBlockNumber(DatagramPacket packet) throws IllegalArgumentException
@Test (expected = IllegalArgumentException.class) public void getBlockNumberTest1() { byte[] zeroBlockNumBuf = {0, 3, 0, 0}; byte[] maxBlockNumBuf = {0, 4, -1, -1}; byte[] errorBuf = {0, 5, 0, 0}; DatagramPacket zeroBlockNumPacket = new DatagramPacket(zeroBlockNumBuf, 4); assertTrue(TFTP.getBlockNumber(zero...
[ "int getBlocknumber();", "public int getBlocknumber(int index) {\n return blocknumber_.getInt(index);\n }", "private static int getOffset(Packet packet) {\n return packet.get(IpV4Packet.class).getHeader().getFragmentOffset();\n }", "public short getBlockNum() {\n return blockNum;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public View getView(int position, View convertView, ViewGroup parent) { DrugViewHolder holder; if (convertView == null) { holder = new DrugViewHolder(); convertView = mInflater.inflate(R.layout.item_drugdesc, null); holder.tv_endrug = (TextView) convertView.findViewById(R.id.tv_endrug); ...
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the fullname of the record with FEATURE_NAME and STATE_ALPHA
public void setFullName() { fullname = FEATURE_NAME + ":" + STATE_ALPHA; return; }
[ "public void setNamefull(String value) {\n setAttributeInternal(NAMEFULL, value);\n }", "public static void setUser_full_name(String value){\n \tuser_full_name=value;\n }", "public void setStateFullName(String stateFullname) {\r\n\t\tthis.stateFullname = stateFullname;\r\n\t}", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method runs NLP pipeline on a tweet The following steps take place in the pipeline: Tokenisation breaks down into words Sentence split combines the words into sentences Pos parts of speech assigned to each word in a sentence,e.g. noun Parse provides full syntactic analysis, minimally a constituency (phrasestructure tre...
public List<CoreMap> nlpPipeline(String tweetText) { String processedText = tp.removeNoise(tweetText); // Create a new annotation object from the tweet // This is needed to prep the tweet for the sentiment analysis Annotation document = new Annotation(processedText); // Run the...
[ "public static void main(String[] args) {\n \tString fileName = \"C:\\\\Users\\\\Nitin\\\\Documents\\\\Projects\\\\Haimonti - Tweet Prejudice\\\\unique_tweets_sw_removed.txt\";\n \t\n \tString line = null;\n \tList<String> text_list = new ArrayList<String>();\n \ttry {\n \t\tFileReader fileReader...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Edit an existing OrderRequestStatuses entity
@RequestMapping("/editOrderRequestOrderRequestStatuses") public ModelAndView editOrderRequestOrderRequestStatuses(@RequestParam Integer orderrequest_orderRequestId, @RequestParam Integer orderrequeststatuses_orderRequestStatusId) { OrderRequestStatuses orderrequeststatuses = orderRequestStatusesDAO.findOrderRequestS...
[ "@PutMapping(\"/order-list\")\n @PreAuthorize(\"hasAuthority('ROLE_ADMIN')\")\n public ResponseEntity updateSingleOrderedItem(@RequestParam(value = \"order-list-id\", required = false) Long id, @RequestParam(value = \"order-status\", required = false) String order_status) {\n try {\n if (id ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
set the parent class loader before we start loading modules
protected Habitat createHabitat(ModulesRegistry registry, StartupContext context) throws BootException { setParentClassLoader(context, registry); // create a habitat and initialize them Habitat habitat = registry.newHabitat(); habitat.add(new ExistingSingletonInhabitant<StartupCont...
[ "@Override\r\n\tpublic void setParentClassLoader(ClassLoader paramClassLoader) {\n\t\t\r\n\t}", "public WebappClassLoader() {\r\n super();\r\n this.parent = getParent();\r\n system = getParent().getParent();\r\n }", "protected void setUpClassloader() throws Exception\n {\n // S...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Initialize simulation with URL of model to load and listener
public void initializeSimulation(String requestID, URL url, GeppettoMessageInbound visitor){ try { JsonObject scriptsJSON = new JsonObject(); switch(visitor.getCurrentRunMode()){ //User in control attempting to load another simulation case CONTROLLING: //Clear canvas of ...
[ "@Override\n public void init() {\n // the init method is run before start. the file name is extracted\n // here and then the model is created.\n try {\n Parameters params = getParameters();\n filename = params.getRaw().get(0);\n this.model = new LasersModel...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Removes a certain tag from the photo if the tag is on the photo
public boolean removeTag(Tag t) { if(hasTag(t)) { tags.remove(tags.indexOf(t)); return true; } return false; }
[ "public boolean untagPhoto(Photo photo, String tag) {\n\t\tboolean success = photo.removeTag(tag);\n\t\tif (success) {\n\t\t\tremoveTag(tag);\n\t\t}\n\t\treturn success;\n\t}", "public boolean removeBookTag( Book book, BookTag bookTag );", "@Override\n public void removeTag(Tag tag)\n {\n source.ge...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the encoding for this partofspeech.
@Override public String toString() { return getTag(); }
[ "public String getEncoding() {\r\n return _encoding;\r\n }", "public static String getEncoding() {\n return encoding;\n }", "public String getEncoding() {\r\n return encoding_;\r\n }", "public static String getEncoding ()\n {\n return encoding;\n }", "public byte[] getEn...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column pension_menu.types
public Integer getTypes() { return types; }
[ "public int getColumnType()\n {\n return m_type;\n }", "public String getColumnType()\r\n\t{\r\n\t\treturn columnType;\r\n\t}", "@Override\n\t\t\tpublic String[] columnsType() {\n\t\t\t\treturn COLUMNS_TYPE;\n\t\t\t}", "@Column(name=\"type\")\n public String getType() {\n return type;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Retrieve subcolumns from a super column in a range of rows. The method returns a map from the keys of rows in the specified range to lists of subcolumns from the rows. The map returned is a LinkedHashMap and its key iterator proceeds in the order that the key data was returned by Cassandra. If the cluster uses the Rand...
public LinkedHashMap<String, List<Column>> getSubColumnsFromRowsUtf8Keys(String columnFamily, KeyRange keyRange, Bytes superColName, SlicePredicate colPredicate, ConsistencyLevel cLevel) throws PelopsException { return getColumnsFromRowsUtf8Keys(newColumnParent(columnFamily, superColName), keyRange, colPredica...
[ "public Column getSubset(int pos, int len) {\n SparseCharColumn subCol = new SparseCharColumn();\n subCol.elements = (VIntCharHashMap) elements.getSubset(pos, len);\n getSubset(subCol, pos, len);\n\n return subCol;\n\n /* VIntCharHashMap tempMap = new VIntCharHashMap(len);\n //for each valid row ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Adds elements to the list in ascending order based on element order.
protected LinkedList<GroupElement> addInOrder(LinkedList<GroupElement> soFar, GroupElement toAdd) { for (int i = 0; i < soFar.size(); i++) { if (computeElementOrder(toAdd) <= computeElementOrder(soFar.get(i))) { soFar.add(i, toAdd); return soFar; } } soFar.add(toAdd); re...
[ "public void listInOrder() {\n \n \t}", "public void mySort() { // insertionSort\n for (int numInserted = 1; numInserted < elements.size(); numInserted++) {\n insert(elements, numInserted);\n // System.out.println(elements);\n }\n }", "@Test\r\n public void add_Sorted_A...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Methods to check the scenario: "Get the newly created employee and validate the response"
public void buildGetEmployeeQuery() throws ClientProtocolException, IOException { logger.writeLog("INFO","Building a Service URL for running GET_ALL_EMPLOYEES"); request = new HttpGet(APIServiceModel.GET_EMPLOYEE+CREATED_EMPLOYEE_ID); logger.writeLog("INFO","Building a Service URL for running GE...
[ "@Test(priority = 2)\n public void checkEmployees(){\n Response response = null;\n try{\n response = given().when().get(Endpoints.GET);\n }catch (Exception e){\n e.printStackTrace();\n }\n\n // Checking if there's employee with specific name\n asser...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Helper method to calculate the dot product of two vectors
public static short dot(VecS4 u, VecS4 v) { return (short) (u.v[0] * v.v[0] + u.v[1] * v.v[1] + u.v[2] * v.v[2] + u.v[3] * v.v[3]); }
[ "public static float dotProduct(Vector v1, Vector v2)\n\t{ return (v1.getX()*v2.getX() + v1.getY()*v2.getY() + v1.getZ()*v2.getZ()); }", "public float dotProduct(Vector other) {\n return (this.x * other.x) + (this.y * other.y);\n }", "protected double dotProduct(double[] v1, double[] v2) {\n \tdouble sum...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
getVersion() should return the same version string present in the mod metadata, although this is not a strict requirement.
@Override public String getVersion() { return "0.1.0"; }
[ "public String getVersion() throws IOException\n {\n Matcher matcher = VERSION_PATTERN.matcher(getInfo());\n return matcher.group(1);\n }", "public static String getVersion() {\n\treturn getMajor() + \".\" + getMinor() + \".\" + getPatch();\n }", "public final String getVersion(){\n return ver...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/Check if the submit char is a letter
public static boolean isLetter(char c) { if (!((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z'))) { return false; } return true; }
[ "private static boolean isLetter(char c){\n\t\t\n\t\treturn Pattern.compile(\"[a-zA-Z]+\").matcher(String.valueOf(c)).matches();\n\t}", "public void enterLetter(View view) {\n /* Initialize inputField and get its value as a String. */\n inputField = (EditText) findViewById(R.id.input_field);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Instantiates a new TL request invoke with layer.
public TLRequestInvokeWithLayer() { super(); }
[ "Request _create_request(Context ctx, String operation, NVList arg_list, NamedValue result);", "protected PeerReviewCallbackImpl(TransportLayer<TransportLayerNodeHandle<MultiInetSocketAddress>, ByteBuffer> tl) {\n this.tl = tl; \n }", "private Response makeLearningRequest(Request request) {\n\t\tActorRef...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the queueing times for all the customers. The times are given in an array of integers, according to the order of the customers in the customer list, being the order in which they arrive to the end of the simulation.
public final int[] getQueueTimes() { int[] result = new int[dayCustomers.size()]; int i = 0; for (Customer c : dayCustomers) { result[i] = c.getBaggage().getTimeQueueing(); i++; } return result; }
[ "public static String timeInfo(int[][] customers, int numberOfChangingRooms, int closingTime) {\n int totalTime = closingTime;\n int idleTime = 0;\n int wasteTime = 0;\n // use array of queues to hold the fitting rooms\n changingRooms = new MyQueue[numberOfChangingRooms];\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
To get the list of students by firstname
List<StudentEntity> findStudentByFirstName(String firstName)throws StudentNotFoundException;
[ "public List<User> getUsersByFirstName(String firstname);", "@Override\n\tpublic ArrayList<Student> findAllByFirstName(String fname) {\n\t\treturn null;\n\t}", "public static void basedOnFirstName() {\r\n System.out.println(\"Please enter First name\");\r\n String inputName = scanner.next();\r\n\r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ This method is called when our agent needs to play. It describes what the agent will do depending on the messages it receives from the game engine.
public void play() throws InvalidMessageException, IOException { // Takes in the message from game engine String message = recvMsg(); MsgType msgType = Protocol.getMessageType(message); // Determines if we have the capability to swap. boolean canSwap = false; // If we g...
[ "@Override\n\tpublic void onPlayStart(int code, GotyeMessage message) {\n\t\t\n\t}", "public void gameStarted() { }", "private void gamePlay()\n {\n ProgressManager.getInstance().determinePlayerTurns();\n ProgressManager.getInstance().determinePhases();\n }", "@Override\r\n protected vo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Runtime: O(n^2) Space: O(n)
public static int LIS(int[] A) { // TODO if (A.length == 0) { return 0; } int[] memo = new int[A.length]; memo[0] = 1; int out = 1; for (int i = 1; i < memo.length; i++) { int max = 0; for (int j = 0; j < i; j++) { ...
[ "for (int i = 1; i <= n; i++) {\n for(int j = 1; j <= n; j++) {\n // constant time code here\n }\n }", "public static int[] algorithm1(int N)//f(N) = 3/2*N^3 + 7/2*N^2 + 4*N + 6; O(N) = N^3\r\n\t{\r\n\t\tlong opCount = 0;\r\n\t\tint[] arr = new int[N];\r\n\t\t/*\r\n\t\t * Use the foll...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
========================================================= Create an AxisService from the Java interface class of the SCA service interface
public static AxisService createJavaAxisService(String endpointURL, ConfigurationContext configContext, AbstractContract contract) throws AxisFault { AxisService axisService = new AxisService(); Str...
[ "private void populateAxisService() throws AxisFault {\n _service = new AxisService( \"ServerImpl\" +\n getUniqueSuffix() );\n addAnonymousOperations();\n \n //creating the operations\n AxisOperation __operation;\n \n _operations = new AxisOperation[1]...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ read in a file under "resources" and return the whole thing as a string See for scanner trick. "\\A" is "beginning of input boundry," so the scanner reads the whole file in one go.
private static String resourceToString(String resourcePath) { InputStream inputStream = SharedTestConstants.class.getClassLoader().getResourceAsStream(resourcePath); try (Scanner s = new Scanner(inputStream).useDelimiter("\\A")) { return s.hasNext() ? s.next() : ""; } }
[ "public static String loadResourceAsString(String relFilePath) throws FileNotFoundException, IOException {\n\t\tString result = \"\";\n\t\tScanner scanner = null;\n\n\t\ttry (InputStream in = loadResourceAsStream(relFilePath)) {\n\t\t\tscanner = new Scanner(in, \"UTF-8\");\n\t\t\t// TODO: More information on why us...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the currently leading player
public Player getLeader() { if (player.getPosition() > computer.getPosition()) { return player; } else if (computer.getPosition() > player.getPosition()) { return computer; } else { return null; } }
[ "public Player getCurrentPlayer()\n {\n return currentPlayer;\n }", "public Player getCurrentPlayer() {\n return players[turn % 2];\n }", "public Player getCurrentPlayer() {\n\t\tif (currentPlayer == -1)\n\t\t\treturn null;\n\t\treturn players.get(currentPlayer);\n\t}", "public Player getCu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Traverse to the tail and retrieve that element & delete from linked list
public Element pop() { //retrieving the last element Element lastElement = tail.element; //**FIXING STRUCTURE OF THE LINKED LIST** Node previous = null; //set the current node to head Node current = head; //traverse linked list updating prev...
[ "public void deleteTailElement() {\n if (first.next == null) return;\n\n LinkedListType temp = first;\n LinkedListType previous = first;\n\n while (temp.next != null) {\n previous = temp;\n temp = temp.next;\n }\n\n previous.next = null;\n }", "@O...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View v = inflater.inflate(R.layout.fragment_login, container, false); mUsername = (EditText) v.findViewById(R.id.usernameField); mPassword = (EditT...
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.movie_statistic_layout, parent, false);\n }", "@Override\n\tprotected View initView(LayoutInflater inflate...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Metodos. Metodo comprobacionDePosicionDeCelula, comprueba si la posicion donde esta la celula ya se ha movido anteriormente, devuelve true si la ha encontrado en el arraylist.
public boolean comprobacionDePosicionDeCelula(int f, int c) { boolean ejecutarMovimiento = true, encontrado = false; Casilla casilla; // Si lo encuentra en la lista, entonces devolvemos false para no ejecutar el movimiento // pq la celula ya se ha movido anteriormente. for(int i = 0; (i < listaDe...
[ "public boolean comprobarContinuar ()\n {\n boolean continuar = false;\n\n //Comprobar movimiento derecha\n for (int i = 0; i < tablero.getTabla().length && !continuar; i++)\n {\n for (int j = 0; j < tablero.getTabla().length && !continuar; j++)\n {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns boolean value of specified key.
default boolean isTrue(String key) { return boolOpt(key).orElse(false); }
[ "public boolean getBoolean(String key) {\n return getBoolean(key,false);\n }", "public boolean getBoolean(String key) {\n return getBoolean(key, false, true);\n }", "public Boolean getBoolean(String key) {\n\t\treturn getBoolean(key, null);\n\t}", "public boolean getBoolean(final String key) {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Contexts: PMExpression returns PMParenthesis PMExpression.PMExpression_1_0 returns PMParenthesis MDExpression returns PMParenthesis MDExpression.MDExpression_1_0 returns PMParenthesis Primary returns PMParenthesis PMParenthesis returns PMParenthesis Constraint: expression=PMExpression
protected void sequence_PMParenthesis(ISerializationContext context, PMParenthesis semanticObject) { if (errorAcceptor != null) { if (transientValues.isValueTransient(semanticObject, MathinterpreterPackage.Literals.PM_PARENTHESIS__EXPRESSION) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.creat...
[ "private ASTNODE primaryExpression() {\n ASTNODE primaryExpressionAstRootNode = new ASTNODE();\n primaryExpressionAstRootNode.setAstNodeType(ASTNODE_TYPE.PrimaryExpression);\n primaryExpressionAstRootNode.setValue(\"PrimaryExpression\");\n\n //STRING_LITERAL\n {\n if(TO...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Initializes the game timer
protected static void start() { _gameTimeStart = getTime(); _lastLoopTime = _gameTimeStart; _elapsedTime = 0; _fps = 0; }
[ "private void initTimer() {\n this.timer = new Timer(MoConstants.FPS,this);\n timer.start();\n }", "public void initTimer(){\n this.timer = new GameTimer(this.LabelTime);\n timer.start();\n if (Integer.parseInt(this.LabelTime.getText()) <= 0) {\n this.control.endGa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The interface of keyvalue pairs accessed through the Dictionary Iterator.
public interface Entry<K, V> { K getKey(); V getValue(); }
[ "@Override\n public Iterator GetEnumerator()\n {\n return _itemDict.entrySet().iterator();\n }", "@Override\n\t\tpublic Iterator<PointerKey> iterator() {\n\t\t\treturn indexMap.keySet().iterator();\n\t\t}", "public Iterator<String> getDictionary() {\r\n Iterator iterator = index.keySet()....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Defines a new variable to watch for and sets initial value.
public <T> CaseServiceStubBuilder defineAndInitialize(VariableFactory<T> variableFactory, T initialValue) { define(variableFactory); variableFactory.on(variables).set(initialValue); return this; }
[ "@Override\n\tprotected void initVariable() {\n\t\n\t}", "private void initializeVariable() {\n if (previousOperator == null) {\n setNumberFirst();\n } else if (lastOperator == null) {\n setNumberSecond();\n } else {\n setNumberThird();\n }\n }", "...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Deserializes the point by creating new point.
public Point deserializePoint(Point point) { if (point==null) return null; Point desePoint=getGeometryFactory().createPoint( new Coordinate(point.getCoordinate())); desePoint.setSRID(point.getSRID()); return desePoint; }
[ "public DataPoint (JSONObject dataPoint) throws JSONException{\n\t\tthis.value = BigDecimal.valueOf(dataPoint.getInt(\"value\")).floatValue();\n\t\tthis.time = dataPoint.getString(\"time\");\n\t}", "public Point getPoint()\r\n {\r\n return new Point (this._point);\r\n }", "public Point(Point point)...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method checks if all test case reviewers have one test case uploaded. Version 1.6.1 changes note: The return changes from boolean to OperationCheckResult.
private OperationCheckResult allTestCasesUploaded(Phase phase) throws PhaseHandlingException { // get test case reviewers for phase id Resource[] reviewers = getDevelopmentReviewers(phase); // if there are no test case reviewers, no need to check if all uploads have been uploaded i...
[ "public boolean isAllCheckerPassed()\n {\n boolean allPassed = true;\n \n for ( int i = 0; i < mPackageResultsCollection.size(); i++ )\n {\n if ( !( ( (Result)mPackageResultsCollection.get(i) ).isPackageCheckerPassed() ) )\n {\n allPassed = false;\n break;...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
open profile intent location zipcode phone number noneditable gmailid
public void onClick(DialogInterface dialog, int which) { }
[ "private void launchActivity(){\n Intent detailIntent = new Intent(mContext, MapsActivity.class);\n detailIntent.putExtra(\"username\", usernameEdit.getText());\n startActivityForResult(detailIntent, 1);\n }", "private void launchLocUri(String readable_loc){\n Intent intent = new In...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set the next player, like the name of method.
private void setNextPlayer() { int number = 0; for (int i=0; i<gameModel.getNumberOfPlayers(); i++) { if (gameModel.getPlayerByNumber(i)==gameModel.getCurrentPlayer()) { number=i; break; } } //If it is the last player, start again w...
[ "public void setNextPlayer(String player) {\n if (player.equals(\"human\")) nextPlayer = human;\n else nextPlayer = computer;\n }", "public void nextPlayer() {\n currentPlayer = currentPlayer.other();\n }", "public static void setNextPlayer() {\n if (nextPlayer.equals(Player.PL...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Manage delay value, called whenever apple is eaten
public void manageDelay() { int score = this.score(); if(score >= 300) { delay = 1; return; } if(score >= 170) { delay = 2; return; } if(score >= 140) { delay = 3; return; } if(score >= 110) { delay = 4; return; } if(score >= 80) { delay = 5; return; } if(score >= 5...
[ "public abstract float delay();", "public void setDelay(Time delay) {\r\n\t\tthis.delay = delay;\r\n\t}", "public void setDelay(double delay) {\n this.delay = (int) (delay*1000);\n }", "private void updateDelay()\n {\n \t\n this.delay = useDelayFixed + this.worldObj.rand.nextInt(useDela...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public void reduce(Text key, Iterable<Text> values, Context context) throws IOException, InterruptedException { long PV = 0; Set<String> UVSet = new HashSet<String>(); for (Text value : values) { String[] fields = value.toString().split(SEPARATOR...
[ "@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" ] ] } }
adjust the milli seconds here
public void onTick(long millisUntilFinished) { tvtime.setText("00:" + String.format("%d sec", // TimeUnit.MILLISECONDS.toMinutes( millisUntilFinished), TimeUnit.MILLISECONDS.toSeconds(millisUntilFinished) - TimeUnit.MINUTES.t...
[ "public String milliToMinSecs(long ms){\n long millis = ms;\n int minutes = (int)(millis / (1000 * 60));\n int seconds = (int)(millis / 1000) % 60;\n return String.format(\"%d:%02d\",minutes,seconds);\n }", "private String formatTime(long millisecs){\n\t\tSimpleDateFormat timeFormat...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Shows the modal dialog
public void show() { userNameTxtBox.setText(""); submitButton.setVisible(false); lookupUserModal.show(); }
[ "private void onShowDialog() {\n\t\tdialog.show();\r\n\t}", "public void showPlayerDialog() {\n\t\tlogger.log(\"Showing dialog\");\n\t\tpDlg = new PlayerDialog(this, getEngine().getCharacters());\n\t\tpDlg.setLocationRelativeTo(null);\n\t\t// pDlg.setLocation(100, 100);\n\t\tpDlg.setVisible(true);\n\n\t}", "pri...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
returns true if the input coordinates are the ships captains quarters
public boolean attackingCQ(Ship attackedShip, int x, char y) { if (attackedShip.getCaptainsQuarters().getColumn() == y && attackedShip.getCaptainsQuarters().getRow() == x) { return true; } return false; }
[ "public boolean isLocated(){\n // vars to hold the points quadrant number\n int p1 = _point1.quadrant();\n int p2 = _point2.quadrant();\n int p3 = _point3.quadrant();\n \n if ( (p1 == p2) && (p1 == p3) && (p1 != 0) ){\n return true;\n }\n return fal...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the adHolidayDuration value for this LiveStreamEvent.
public java.lang.Long getAdHolidayDuration() { return adHolidayDuration; }
[ "public float getHolidayValue() {\n return holidayValue;\n }", "@JsonProperty(\"MaxHolidayLength\")\n public Integer getMaxHolidayLength() {\n return maxHolidayLength;\n }", "public Duration getDuration() {\n\t\tDuration adjustedDuration = event.getDuration().minus(adjustm...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__Property__ConditionAssignment_0_0" $ANTLR start "rule__Property__NameAssignment_1_0" ../org.sqlproc.meta.ui/srcgen/org/sqlproc/meta/ui/contentassist/antlr/internal/InternalProcessorMeta.g:31515:1: rule__Property__NameAssignment_1_0 : ( ( 'resolvepojoon' ) ) ;
public final void rule__Property__NameAssignment_1_0() throws RecognitionException { int stackSize = keepStackSize(); try { // ../org.sqlproc.meta.ui/src-gen/org/sqlproc/meta/ui/contentassist/antlr/internal/InternalProcessorMeta.g:31519:1: ( ( ( 'resolve-pojo-on' ) ) ) ...
[ "public final void rule__PropertyConstant__Group__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.osate.xtext.aadl2.propertyset.ui/src-gen/org/osate/xtext/aadl2/propertyset/ui/contentassist/antlr/internal/InternalP...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Initialize the algorithm. This method has to be called first after declaring the algorithm.
void init(Graph graph);
[ "public void alg_INIT(){\n\n}", "public void initialize() {\n\t\t}", "public AbstractAlgorithm()\r\n\t{\r\n\t\tsuper();\r\n\t}", "private void initialize() {\n \n \t}", "public AbstractAlgorithm() {\n m_listenerList=new EventListenerList();\n }", "public static void initialize() {\n\t\t\r\n\t}",...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method corresponds to the database table ecs_ego_option
int updateByExampleWithBLOBs(@Param("record") EcsEgoOption record, @Param("example") EcsEgoOptionExample example);
[ "public void setOption(Long option) {\n this.option = option;\n }", "@Override\n\tpublic void addOption() {\n\t\t\n\t}", "public int getOptions() {\n return dbCollection.getOptions();\n }", "ProposalOption getOptionbyId(Long optionId);", "public String getOption()\n\t{\n\t\treturn option...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ renamed from: b
public final void mo51696b() { if (this.f52898h != 2 && this.f52898h == 1) { C45372t.m143405b("TEHwEncoder", "start encode..."); this.f52899i = false; this.f52891a.start(); new Thread(this.f52914x).start(); this.f52898h = 2; } }
[ "public abstract T zzs(B b2);", "public void b(ByteOrder bo) {\n/* 72 */ if (this.i != bo) {\n/* 73 */ this.i = bo;\n/* 74 */ this.h = a(bo);\n/* */ } \n/* */ }", "public void doSth(B b){\n\n }", "public abstract void mo14156a(B b, int i, int i2);", "@Override\n\tpublic v...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Save benchmark to database
BenchmarkDTO saveResult(BenchmarkDTO result);
[ "private void saveDatabase() {\n controll.saveDatabase();\n }", "public void saveBeforeRun() {}", "@Override\n\tpublic void save(Aquarium t) {\n\n\t}", "void saveVisitDatabase(List<Queue<Visit>> visits) throws IOException;", "public static void savePlayerData()\r\n\t{\r\n\t\ttry {\r\n\t\t\tdatabas...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The polyline associated with this step. .google.maps.routing.v2.Polyline polyline = 3;
public com.google.maps.routing.v2.PolylineOrBuilder getPolylineOrBuilder() { if (polylineBuilder_ != null) { return polylineBuilder_.getMessageOrBuilder(); } else { return polyline_ == null ? com.google.maps.routing.v2.Polyline.getDefaultInstance() : polyline_; ...
[ "public Polyline getPolyline() {\r\n return polyline;\r\n }", "private void addPolyline(){\n PolylineOptions options = new PolylineOptions();\n options.add(new LatLng(41.0852, 29.0468))\n .add(new LatLng(41.0848, 29.0407))\n .add(new LatLng(41.0775, 29.0287))\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method for getting list of all Orders.
public List<Orders> getAll();
[ "public List<Order> listAllOrders();", "public abstract List<Order> getAllOrders();", "public List<Order> getAllOrders()\n {\n List<Order> orderList = new ArrayList<>();\n orderRepository.findAll().forEach(orderList::add);\n return orderList;\n }", "@Override\r\n\tpublic List<Order>...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create a textfield of given caption and default value.
public TextField textfield(String caption, String value) { TextField c = textfield(caption); c.setValue(value); return c; }
[ "public void CreateTextField() {\n\t\tnumLabel = new JLabel(\"Numerator:\");\n\t\tnumField = new JTextField(TEXT_FIELD_WIDTH);\n\n\t\tdenLabel = new JLabel(\"Denominator:\");\n\t\tdenField = new JTextField(TEXT_FIELD_WIDTH);\n\n\t}", "@Override\n\tpublic UITextBox createTextBox() {\n\t\treturn new DefaultTextBox(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
.POGOProtos.Rpc.ArPhotoSessionProto.BatteryStatus status = 3;
int getStatusValue();
[ "proto.GameStatusEnum getStatus();", "protobuf.clazz.s2s.Club_ProxyProto.PlayerStatusOrBuilder getStatusOrBuilder();", "com.yunhui.job.common.proto.RequestProto.Status getStatus();", "com.voole.hobbit.proto.V3APB.V3aOnlineStatusResponse getResponse();", "public TUBackupBatteryStatus getBattery()\n {\n\tr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Note: On PlayerChangedWorldEvent, getFrom() [of type World] is provided. This event is passed AFTER the player changes world, so you can get the player's new world from player.getLocation().getWorld().
@EventHandler public void onPlayerChangedWorld(PlayerChangedWorldEvent event) { Player player = event.getPlayer(); // send a message to all players in the previous world. for (Player p : event.getFrom().getPlayers()) { p.sendMessage(ChatColor.GREEN + "[" + ChatColor.BLUE + player....
[ "@EventHandler(priority = EventPriority.LOWEST)\n\tpublic void onWorldChange(PlayerChangedWorldEvent e){\n\t\tif (Shared.disabled) return;\n\t\tShared.cpu.runTask(\"processing PlayerChangedWorldEvent\", () -> Shared.featureManager.onWorldChange(Shared.getPlayer(e.getPlayer().getUniqueId()), e.getPlayer().getWorld()...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Pusta implementacja. Nic nie robi
public void setIterationsLimit(int iterationsLimit) { }
[ "public abstract AbstractNoeud racinen();", "public OperativniRizikVo() {\r\n\t\tsuper();\r\n\t}", "@Override\r\n\tpublic void wydaj() {\n\t\t\r\n\t}", "public interface ProyectorRango {\r\n \r\n List<Rango> proyectarRangos(Estacion estacion);\r\n\r\n String nombre();\r\n \r\n}", "protected abstract voi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
final static String CAR_NAME = "Corsa";
Corsa() { super("Corsa", 180); }
[ "public interface CoffeeCodeConstant {\n String SERVICE_NAME = \"coffee-codes\";\n String SERVICE_NAME_CN = \"coffee codes core\";\n String SERVICE_DESCRIPTION = \"暂时没想好!\";\n String VERSION = \"v1\";\n\n}", "public static String GetName(){\n return \"CompSci\";\n }", "public interface Comm...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Result must be sorted by lastName ascending
public final List<String> loadContactNameAndLastNameFromFrenchCity() { final List<String> newContacts = Lists.newArrayList(); for (int i = 0; i < this.contacts.size(); i++) { final Contact contact = this.contacts.get(i); final City contactCity = contact.getCity(); i...
[ "private void sortByLastName() {\n nameSort(accounts, 0, size - 1);\n\n }", "private void sortByLastName() {\r\n sortByLastNameHelper(0, this.size);\r\n }", "public void sortByLastName() {\n\t\t\tsortByLastName(head);\n\t\t}", "private Sort sortByLastNameAsc() {\n return new Sort(So...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
An immutable clientside representation of Module.
public interface Module { /** * Gets the id property: Fully qualified resource Id for the resource. * * @return the id value. */ String id(); /** * Gets the name property: The name of the resource. * * @return the name value. */ String name(); /** * Get...
[ "@Override\n public String toString() {\n final StringBuilder sb = new StringBuilder(\"ModulePojo{\");\n sb.append(\"module=\").append(module);\n sb.append(\", associations=\").append(associations);\n sb.append('}');\n return sb.toString();\n }", "@Override\n public Str...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Transform the configuration value into the supported formats to distribute to the Wowza server.
private void setSupportedFormats(String formatString) { supportedFormats = new TreeSet<>(); for (String format : formatString.toUpperCase().split("[\\s,]")) { if (!format.isEmpty()) { try { StreamingProtocol protocol = StreamingProtocol.valueOf(format); supportedFormats.add(pr...
[ "@Override\n protected void _setTypesFromConfiguration(ConfigurationProperty formatProperty)\n throws IllegalActionException {\n \t\n \t// there is no formatProperty found for the key/value type, try to use it directly\n \tif (formatProperty == null) {\n String typesStr = keyValueT...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Used to save the current list of IPs in a txt file
public boolean printList(){ try( PrintWriter out = new PrintWriter(new OutputStreamWriter(new FileOutputStream(this.file)),true); ){ for(String i:list) out.println(i); }catch(IOException e){ return false; } return true; }
[ "public void saveIpAdresses() {\r\n SharedPreferences settings = getSharedPreferences(APP_PREFS, MODE_PRIVATE);\r\n SharedPreferences.Editor editor;\r\n\r\n Set<String> set = new HashSet<>();\r\n set.addAll(ipList);\r\n\r\n editor = settings.edit();\r\n editor.putStringSet(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method does the following For a given group name looks for .count property if the property is found gets the value and converts it to integer then loops for count looking for . property and loads the class and instantiates it if loading and instantiation succeeds then adds to the subsystem list once the count is e...
private static List<Subsystem> loadSubsystem(String groupname, Properties props) throws ClassNotFoundException, InstantiationException, IllegalAccessException { String countProperty = String.format("%s.count", groupname); String classPropertyPattern = "%s.%d.class"; int count = Integer.parseInt(props.getPr...
[ "private void createContainers(){\r\n String startingString = Arrays.toString(result);\r\n startingString = startingString.substring(1, startingString.length()-1);\r\n startingString = startingString.replaceAll(\", \",\",\");\r\n String currentString = startingString;\r\n while(cu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional int32 battle_training_total = 18;
public int getBattleTrainingTotal() { return battleTrainingTotal_; }
[ "long getTrainingCounter(){\n return trainingCounter;\n }", "public int get_total_z_best()\r\n/* */ {\r\n/* 1537 */ return this.total_z_best;\r\n/* */ }", "public int getWorldBattleSec() {\n/* 326 */ return this.worldBattleSec;\n/* */ }", "public int getAttackValue()\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ renamed from: o
public final String mo1824o() { return Game.f6551e.m2416a("tower_description_FROST"); }
[ "private O()\r\n {\r\n super();\r\n }", "public interface OooO00o {\n /* renamed from: a */\n void mo27271a();\n\n /* renamed from: b */\n void mo27272b();\n }", "public String toString(Object o)\n\t{ \n\t\treturn o.toString();\n\t}", "public k o() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the removed flag.
void setRemoved(boolean removed);
[ "public void remove() {\r\n\t\tremoved = true;\r\n\t}", "private void setRemoved() {\n removed = true;\n needsPopulating = false;\n needsCleaning = false;\n currentPartition = null;\n lastKey = null;\n lastData = null;\n }", "public void u...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Closes the search bar.
public void backSidePanelClicked(ActionEvent event) { searchBarBox.setVisible(false); foundFriends.getItems().clear(); }
[ "private void closeSearchBar() {\n\n\t\t// Remove custom view.\n\t\tgetActionBar().setDisplayShowCustomEnabled(false);\n\n\t\t// Change search icon accordingly.\n\t\tmSearchAction.setIcon(mIconOpenSearch);\n\t\tisSearchOpened = false;\n\t}", "@Override\n public void onSearchClosed() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ renamed from: a
public final void mo31161a(JSONObject jSONObject, JSONObject jSONObject2) { this.f33906f = jSONObject2; }
[ "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" ] ] } }
Evt. 40 og 41
public NymarkenDataInput(String source) { super(source); }
[ "@Override\n\t\t\tpublic void mousePressed(MouseEvent event) {\n\t\t\t\t\n\t\t\t}", "@Override\n public void event() { }", "private void navegacionMousePressed(java.awt.event.MouseEvent evt) {\n xx = evt.getX();\n xy = evt.getY();\n }", "@Override\n \tpublic void mousePressed(MouseEve...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__XbaseConstructorCall__Group_4_1_1_1__1" $ANTLR start "rule__XbaseConstructorCall__Group_4_1_1_1__1__Impl" InternalSARL.g:29892:1: rule__XbaseConstructorCall__Group_4_1_1_1__1__Impl : ( ( rule__XbaseConstructorCall__ArgumentsAssignment_4_1_1_1_1 ) ) ;
public final void rule__XbaseConstructorCall__Group_4_1_1_1__1__Impl() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalSARL.g:29896:1: ( ( ( rule__XbaseConstructorCall__ArgumentsAssignment_4_1_1_1_1 ) ) ) // InternalSARL.g:29897:1: ( (...
[ "public final void rule__XConstructorCall__Group_4_1_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalScripting.g:11581:1: ( rule__XConstructorCall__Group_4_1_1__1__Impl )\n // InternalScripting.g:11582:2: rule__XConst...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates an ACL Message with the given performative.
public ACLMessage(Performative performative){ this.setPerformative(performative); }
[ "private void replyMessage(ACLMessage message, int performative, String content){\n\t\tACLMessage reply = message.createReply();\n\t\treply.setPerformative(performative);\n\t\treply.setContent(content);\n\t\tsend(reply);\n\t}", "public void testCreateNew() {\n\t\tMessage msg;\n\t\ttry {\n\t\t\tmsg = MessageFactor...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column sim_date_format.id
public Integer getId() { return id; }
[ "public String getDateid() {\n return dateid;\n }", "public int getFormatId() {\r\n return formatId;\r\n }", "public int getDateFormat()\n\t{\n\t\treturn dateFormat;\n\t\t\n\t}", "public Integer getDateTimeId() {\n return dateTimeId;\n }", "public Long getIdExpDate() {\n retur...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Verify Response Body (json value)
@Test public void givenGreetURI_whenMockMVC_thenVerifyResponse() throws Exception { MvcResult mvcResult = null; mvcResult = this.mockMvc.perform(get("/greet")) .andDo(print()).andExpect(status().isOk()) .andExpect(jsonPath("$.message").value("Hello World!!!")) ...
[ "@Then(\"The response body should be valid json\")\n\tpublic void the_response_body_should_be_valid_json() {\n\t\tString responseString = response.asString();\n\t\tJsonPath js = new JsonPath(responseString);\n\t\tjs.get(\"name\");\n\t\t\n\t \n\t}", "@Test\r\n\tvoid validateJSON ()\r\n\t{\n\tRestAssured.baseURI ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Send an unsolicitated message and close the connection.
private static void handleInvalidBatch(ChannelHandlerContext ctx, StatusCode sc, String msg) { // create message KineticMessage km = createUnsolicitedStatusMessage( StatusCode.INVALID_REQUEST, msg); // send to client ctx.writeAndFlush(km); ...
[ "protected void systemDisconnect ()\n {\n\tmyReaderSender.stopSending ();\n\t\n\ttry\n\t{\n\t mySocket.close ();\n\t}\n\tcatch (IOException ex)\n\t{\n\t errorReport (\"Trouble closing the connection:\\n\" +\n\t\t\t ex.getMessage ());\n\t}\n\n\tmyInteractor = null;\n\tmyReaderSender = null;\n\tmySocket = nu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Auto generated setter method
public void set_return(NotificacionesAutomaticasDTO[] param){ validate_return(param); local_returnTracker = true; this.local_return=param; ...
[ "abstract protected void set(Object value);", "@Override\n protected void doSetValue(Object value) {\n super.doSetValue(value);\n }", "@Override\n \t\t@SuppressWarnings(\"unchecked\")\n \t\tpublic Object setValue(Object value) {\n \t\t\twrite();\n \t\t\treturn me.setValue( value );\n \t\t}", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.fragment_tab2, container, false); Button btnregisterperusahaan = (Button) view.findViewById(R.id.btn_registerperusahaan); ...
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.movie_statistic_layout, parent, false);\n }", "@Override\n\tprotected View initView(LayoutInflater inflate...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ access modifiers changed from: 0000
public final UploadDataProvider getUploadDataProvider() { return this.mUploadDataProvider; }
[ "private B000066() {\r\n\r\n\t}", "@Override\n\tpublic int modifiers() {\n\t\treturn 0;\n\t}", "protected void method_5557() {}", "@Override\r\n\tpublic int getAccessCode() {\n\t\treturn 0;\r\n\t}", "public abstract void mo30462c();", "@Override\n public int utilite() {\n return 0;\n }", "p...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
First chain has all blocks up to 10 Fork chain has 05, skips 6 and then has 710
@Test void processAllInOrder_shouldVisitParentBlocksBeforeChildBlocksInForks() { chainBuilder.generateBlocksUpToSlot(5); final ChainBuilder forkBuilder = chainBuilder.fork(); chainBuilder.generateBlocksUpToSlot(10); forkBuilder.generateBlockAtSlot(7); forkBuilder.generateBlocksUpToSlot(10); fi...
[ "private Fork[] processSubForks() throws Exception {\n\t \n\t // Fork [] SubForkslist = Forkslist;\n\t int numOfPages2 = 0;\n\t int FRForkNum = 0;\n\t String parentforklevel = null;\n\t int numberlevel= -1; \n\t int currentcountforks = -1;\n\t // if F1 forks > 0 check sub sequence forks of F1 !!\n\t ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }