query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
Sets the checks if is category.
public void setIsCategory(Character isCategory) { this.isCategory = isCategory; }
[ "public void setDefaultNeeds(){\n Category c0 = new Category(\"misc_store\", 0);\n Category c1 = new Category(\"groceries\", 0);\n Category c2 = new Category(\"bank\", 0);\n Category c3 = new Category(\"gas_station\", 0);\n Category c4 = new Category(\"clothing_store\", 0);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
rootcontext.xml web.xml log.info("error_code : " + error_code);
@RequestMapping(value = "/error/{error_code}.do") public ModelAndView error(HttpServletRequest request, @PathVariable String error_code) { ModelAndView mv = new ModelAndView("common/error"); String msg = (String) request.getAttribute("javax.servlet.error.message"); Map<String, Object> map = new HashMap<String, ...
[ "@XmlElement(name = \"error\")\r\n public int getError() {\r\n return error;\r\n }", "@Override\n\t\tpublic void onError(int reqestcode, String error) \n\t\t{\n\n\t\t}", "public void testParameterErrorReponseScenario() throws Exception {\n\t\tWebServiceMessageXPathExpressionMetaData webServiceMessa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
required .mesos.FrameworkInfo framework_info = 1;
public Builder setFrameworkInfo(org.apache.mesos.Protos.FrameworkInfo value) { if (frameworkInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } frameworkInfo_ = value; onChanged(); } else { framewo...
[ "org.apache.mesos.v1.Protos.FrameworkInfoOrBuilder getFrameworkInfoOrBuilder();", "org.apache.mesos.v1.Protos.FrameworkID getFrameworkId();", "org.apache.mesos.v1.master.Protos.Response.GetFrameworks.Framework getCompletedFrameworks(int index);", "public interface TargetPlatformVersion {\n String getDescri...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jXDatePicker1 = new org.jdesktop.swingx.JXDatePicker(); buttonGroup1 = new javax.swing.ButtonGroup(); buttonGroup2 = new javax.swing.B...
[ "public StForm() {\n initComponents();\n }", "public CineForm() {\n initComponents();\n }", "public javaform() {\n initComponents();\n }", "public EditDemographicForm() {\n initComponents();\n }", "public FightForm() {\n initComponents();\n }", "public For...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public void onClick(View v) { if (!isRepeat) { isRepeat = true; audioPlayerService.setRepeat(true); btnRepeat .setImageResource(R.drawable.ic_repeat_gr); } else { isRepeat = false;...
[ "@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" ] ] } }
Declare the host you want to connect to, the endpoint, and authentication (basic auth or oauth)
public Client createTwitterClient(BlockingQueue<String> msgQueue){ Hosts hosebirdHosts = new HttpHosts (Constants.STREAM_HOST); StatusesFilterEndpoint hosebirdEndpoint = new StatusesFilterEndpoint(); // Optional: set up some followings and track terms //List<Long> followings = Lists.newA...
[ "public AuthenticationXS(String HanaHost, String XsEnginePort) {\t\t\n\t\tsuper();\n\t\tserviceURL = \"http://\"+HanaHost+\":\"+XsEnginePort;\n\t\tclient = WebClient.create(serviceURL);\n\t}", "@Test\n public void service_exec_auth() {\n String authorityURL = \"http://\"+USER+\":\"+PASSWORD+\"@localhost...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets whether or not selfsimilarity should be applied to something (pitch, drums or volume).
public boolean selfSimilarityShouldBeAppliedToSomething() { return this.getApplyToPitch() || this.getApplyToRhythm() || this.getApplyToVolume(); }
[ "public boolean isMixed() {\n // all lamps of the same type implies that there will be no SOME capability state\n // mixed lamps implies at least 1 mismatch in capabilities implies at least 1 SOME capability state\n return (dimmable == SOME) || (color == SOME) || (temp == SOME);\n }", "pub...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
query the open, close, high and low values for the specified company and timeframe
public Value queryValue() throws NoDataFoundException, SQLException { String highLowQuery = "SELECT MAX(high), MIN(low) " + "FROM data " + "WHERE symbol = ? " + " AND date BETWEEN ? AND ? "; PreparedStatement highLowStatement = Database.getInstance().p...
[ "@Override\r\n\tpublic StockData getStockData(CompanyData company) {\n\t\tSession session=MyUtil.getSession();\r\n\t\tQuery query=session.createQuery(\"from StockData s where s.companyData=\\'\"+company.getCompanyCode()+\"\\'\");\r\n\t\tList<StockData> li=query.list();\r\n\t\t\r\n//\t\tSystem.out.println(li);\r\n\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
APISince: 8.0 DeprecatedSince: 10.0
@NotNull @Deprecated @Generated @CVariable() @MappedReturn(ObjCStringMapper.class) public static native String CKOwnerDefaultName();
[ "@Override\n public void extornar() {\n \n }", "@Override\n public int version()\n {\n return 0;\n }", "protected void method_5557() {}", "public void mo1857d() {\n }", "@Override\n public int utilite() {\n return 0;\n }", "@Deprecated\n/* */ protecte...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Parse an array of bytes into a leaf.
public static Leaf parse(byte[] b, int offset) { int len = parse_int_fullbytes(b, offset); byte[] leafbytes = Arrays.copyOfRange(b, offset + 5, offset + 5 + len); return new Leaf(leafbytes); }
[ "public synchronized void parse(byte[] bytes) throws IOException {\n List records = createRecords(bytes);\n processRecords(records);\n }", "public static BinTreeNode deserializeNode(byte[] bytes)\n\t\tthrows Exception\n\t{\n\t\tByteBuffer bf = ByteBuffer.wrap(bytes);\n\t\tbyte typeCode = bf.get()...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Indicate to the EntityManager that a JTA transaction is active.
public void joinTransaction();
[ "SpiTransaction active();", "public boolean isTransactionActive()\n {\n return _txCachedConnection.get() != null;\n }", "public boolean isInTransaction() {\n return isInTransaction;\n }", "public boolean hasTransaction()\r\n/* 226: */ {\r\n/* 227:351 */ return (getConnectionHol...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method will create the table descriptor and scheme to read the data from Hive Table. In this method, table descriptor and scheme will be created for specific file format like TextDelimited for Text file, and so on for other file format like parquet, etc.
protected abstract void prepareScheme();
[ "public static Table createHiveTable(ObjectPath tablePath, CatalogBaseTable table) {\n\t\tMap<String, String> properties = new HashMap<>(table.getProperties());\n\n\t\t// Table comment\n\t\tproperties.put(HiveTableConfig.TABLE_COMMENT, table.getComment());\n\n\t\tTable hiveTable = new Table();\n\t\thiveTable.setDbN...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public String getPassword() { return password; }
[ "@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" ] ] } }
denominator Default constructor. Creates 1/2 as the default fraction
public Fraction() { num = 1; den = 2; }
[ "public Fraction() {\r\n\t\tnumerator = 1;\r\n\t\tdenominator = 1;\r\n\t}", "public Fraction (Expression expr) {\n\t\tnumerator = expr;\n\t\tdenominator = new Expression (\"1\");\t\t\n\t}", "public Fraction()\r\n\t{\t\t\t\r\n\t\tthis.setNumerator(1);\r\n\t\tthis.setDenominator(1);\r\n\t}", "public Rational(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
did Duke assert this link?
public Link(String id1, String id2, boolean correct) { this.id1 = id1; this.id2 = id2; this.correct = correct; }
[ "public void verifyClickOnHereLink() {\n\t\t\n\t}", "@Test\r\n\tvoid testIsKidFreindlyEligible() {\n\t\tWebLink weblink = BookmarkManager.getInstance().createWebLink(2000, \"Taming Tiger, Part 2\",\r\n\t\t\t\t\"http://www.javaworld.com/article/2072759/core-java/taming-porn--part-2.html\",\r\n\t\t\t\t\"http://www....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/============================================= boolean equals(Object) tells whether 2 Objs are equivalent pre: other is an instance of class Binary post: Returns true if this and other are aliases (pointers to same Object), or if this and other represent equal binary values =============================================
public boolean equals( Object other ) { boolean retVal = this == other; if (!retVal){ retVal = other instanceof Hexadecimal && (this.compareTo((Hexadecimal)other) ==0); } return retVal; }
[ "@Override\n public boolean equals(Object other) {\n if (!(other instanceof Bitstream)) {\n return false;\n }\n Class<?> objClass = HibernateProxyHelper.getClassWithoutInitializingProxy(other);\n if (this.getClass() != objClass) {\n return false;\n }\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return digest data of array of byte by algorithm
public static byte[] digest(byte data[], String algorithm) { return getDigest(algorithm).digest(data); }
[ "byte[] digest(byte[] message);", "private static byte[] getBytesFromHash(byte[] dataToHash) {\n byte[] result = null;\n synchronized (data) {\n data.update(dataToHash, 0, dataToHash.length);\n result = data.digest();\n }\n return result;\n }", "byte[] calcul...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TextureChooser tc = new TextureChooser(null,"c:/starlogo/starlogoc/lib/textures/");
public static void main(String[] args) { }
[ "void setTexture(Textures opt);", "private void newTexture(final ComboBox<AOTexture> comboBox) {\n FileChooser dlg = new FileChooser();\n dlg.getExtensionFilters().add(new FileChooser.ExtensionFilter(\"Jpeg (*.jpg)\", \"*.jpg\"));\n dlg.getExtensionFilters().add(new FileChooser.ExtensionFilt...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public static void main(String[] args) { over o=new over(); o.area(2,3); float ra=(float) 3.00; o.area(ra); }
[ "@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" ] ] } }
/ 120: / 121:
public Class<?> getType(String name) /* 122: */ throws NoSuchBeanDefinitionException /* 123: */ { /* 124: */ try /* 125: */ { /* 126:167 */ return doGetType(name); /* 127: */ } /* 128: */ catch (NameNotFoundException localNameNotFoundException) /* 129: */ { ...
[ "public void mo26342c() {\n }", "public int mo11162g_() {\n return 12;\n }", "public void mo16504a() {\n m11204n();\n }", "public void mo12296x() {\n }", "@Test(timeout = 4000)\n public void test076() throws Throwable {\n String string0 = SQLUtil.normalize(\"V}MTA-+...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test of mapFileToSmallArray method, of class MapFunctions.
@Test public void testMapFileToSmallArray() { System.out.println("mapFileToSmallArray"); String mapName = "Map1.txt"; MapFunctions instance = new MapFunctions(); String expResult = "w"; String[][] resultArray = instance.mapFileToSmallArray(mapName); String result = resultArray[0][0]; assertEquals(expResu...
[ "@Test\n void testFileReading() {\n map1.toString();\n \n String fileData = null;\n try {\n fileData = new String(Files.readAllBytes(Paths.get(MapLoader.PATH_TO_MAPS, TEST_MAP_FILE_1)));\n } catch (IOException e) {\n e.printStackTrace();\n }\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test case number: 147 / 35 covered goals: Goal 1. org.apache.commons.lang3.StringUtils.split(Ljava/lang/String;C)[Ljava/lang/String;: rootBranch Goal 2. org.apache.commons.lang3.StringUtils.splitWorker(Ljava/lang/String;CZ)[Ljava/lang/String;: I3 Branch 180 IFNONNULL L2486 true Goal 3. org.apache.commons.lang3.StringUt...
@Test public void test147() throws Throwable { boolean boolean0 = StringUtils.contains("", '}'); String string0 = StringUtils.reverseDelimited("", '}'); Locale locale0 = Locale.UK; String string1 = StringUtils.upperCase("Minimum abbreviation width with offset is 7", locale0); }
[ "@Test\n public void test200() throws Throwable {\n int int0 = StringUtils.indexOfDifference(\"y_qc>p\", (String) null);\n String string0 = StringUtils.center(\"rf]mt5\", 0, 'm');\n String string1 = StringUtils.stripToNull(\"y_qc>p\");\n String[] stringArray0 = new String[6];\n stringArr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
repeated .de.tubs.androidlab.instameet.server.protobuf.ChatMessage messages = 1;
public de.tubs.androidlab.instameet.server.protobuf.Messages.ChatMessageOrBuilder getMessagesOrBuilder( int index) { return messages_.get(index); }
[ "com.ubbcluj.amcds.myDalgs.communication.Protocol.MessageOrBuilder getMessageOrBuilder();", "java.util.List<protobuf.clazz.coin.CoinProtocol.GamePlayerMsg> \n getPlayerMsgList();", "public void setMessages(List<DataMessage> messages);", "java.util.List<? extends protobuf.clazz.coin.CoinProtocol.GamePla...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Tests the leastStops function Uses the testLarger.txt file
public static void testLeastStops(){ System.out.println("Testing leastStops"); boolean failed = false; Map<Integer, Transportation> m = TransportationReader.readTransportations( "testLarger.txt"); int stops = TravelAgency.leastStops(m, "RIT", "NY...
[ "@Test\n\tpublic void test_calculateDistanceTraveled_exceedMinLat() {\n\t\tArrayList<GPXtrkpt> ptArr1 = new ArrayList<GPXtrkpt>();\n\t\tptArr1.add(pt1);\n\t\tptArr1.add(pt2); // total distance = 10\n\t\tArrayList<GPXtrkpt> ptArr2 = new ArrayList<GPXtrkpt>();\n\t\tptArr2.add(pt3);\n\t\tptArr2.add(pt4);\n\t\tptArr2.a...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set search value for aisle station number
public void setAisleStationNumber(String arg) throws ReadWriteException { setValue(_Prefix + InOutResult.AISLESTATIONNUMBER.toString(), arg); }
[ "public void setStationNumber(String arg, String compcode) throws ReadWriteException\n\t{\n\t\tsetValue(_Prefix + Machine.STATIONNUMBER.toString(), arg, compcode);\n\t}", "public void setCTDSearched(int i){ ctdSearched = i; }", "public void setStationNum(String stationNum) {\n this.stationNum = stationNu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
walks each statement in the container
public void walkStatementContainer(StatementContainer container) { walk(container.getStatementList()); }
[ "protected void visit_foreach_statement(ITreeNode node)\n {\n // You should *not* place your code right here. \n // Instead, you should override this method via a subclass.\n visitUnknown(node); // Default Behavior\n }", "@Override\n\tpublic String visitBlock(BlockContext ctx) {\n\t\tfo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method corresponds to the database table orders
int insertSelective(OrdersPOJO record);
[ "@Select({\n \"select\",\n \"ORDER_ID, USERNAME, SCENIC_SPOT_NAME, ADULT_TICKETS_ACCONT, CHILD_TICKETS_ACCOUNT, \",\n \"ORDER_TOTAL_PRICE, ORDER_PAYMENT_METHOD, CREATE_TIME, ORDER_STATE\",\n \"from orders\",\n \"where ORDER_ID = #{orderId,jdbcType=VARCHAR}\"\n })\n @Results(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get a field summary
public static VariableSummary queryFieldSummary(TypeSummary currentType, String name) { VariableSummary result = getField(currentType, name, true); if (result != null) { return result; } TypeDeclSummary parentType = currentType.getParentClass(); currentType = GetTypeSummary.query(parentType); while (cu...
[ "public String getSummary() ;", "public String getSummary() {\r\n return (String) getItem( FIELD_SUMMARY ).getValue();\r\n }", "public String getSummary() {\n if (null != this.summary) {\n return this.summary;\n }\n ValueExpression _ve = getValueExpression(\"summary\");...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method receives DataBindingComponent instance as type Object instead of type DataBindingComponent to avoid causing too many compilation errors if compilation fails for another reason.
@NonNull @Deprecated public static FragmentAddShoesBinding inflate(@NonNull LayoutInflater inflater, @Nullable ViewGroup root, boolean attachToRoot, @Nullable Object component) { return ViewDataBinding.<FragmentAddShoesBinding>inflateInternal(inflater, R.layout.fragment_add_shoes, root, attachToRoot, comp...
[ "public final void bindComponents() {\r\n\t\tdoBeforeBind();\r\n\t\tbinder = new AnnotateDataBinder(this);\r\n\t\tIterator<String> itKeys = bindObjects.keySet().iterator();\r\n\t\tIterator<Object> itValues = bindObjects.values().iterator();\r\n\t\t// default bind name: \"object\"\r\n\t\twhile (itKeys.hasNext()) {\r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Cleans up the test after its execution, by commiting the transaction in order for the DB changes to become visible, and closing hibernate's session.
@Override protected void tearDown() throws Exception { super.tearDown(); tx.commit(); HibernateUtil.closeSession(); }
[ "@Override\n protected void tearDown() throws Exception {\n ctx.close();\n\n executeScriptFile(\"/clean.sql\");\n }", "@After\n public void tearDown() throws Exception {\n CoreContext.getCoreProxy().closePersistenceSession();\n CoreContext.destroy();\n tidyUpTestData();...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Add the given catalog directory to the tree at the given node.
private void _addCatalogDirectory(Catalog node, CatalogDirectory catDir) { int numCatalogs = catDir.getNumCatalogs(); if (numCatalogs > 0) { CatalogDirectory parent = node.getParent(); if (parent != null) { parent.replaceCatalog(node, catDir); //se...
[ "protected abstract void addDir(String dir, URL url);", "public void createPath(Node node, String path) {\n\t\tif (StringUtils.isBlank(path)) {\n\t\t\tthrow new SystemRepositoryException(\"Parameter 'path' cannot be null or a empty string.\");\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tSession session = JcrSessionCache.get()...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get Meta By Value
public BotMetaModel getOneByValue(String value) throws IllegalArgumentException;
[ "public String getMeta(String name) {\r\n\t\treturn meta.getProperty(name, \"\");\r\n\t}", "java.lang.String getMetakey();", "MetaParameter getMetaParameter();", "String getMetafeature();", "@Override\n public ApplicationMeta getValue() {\n ApplicationMeta meta = appMeta;\n if (meta != null) {\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets array of all "entity" element
public void setEntityArray(org.apache.geronimo.corba.xbeans.csiv2.css.CSSEntityType[] entityArray) { synchronized (monitor()) { check_orphaned(); arraySetterHelper(entityArray, ENTITY$0); } }
[ "public void setEntities(ArrayList<Entity> entities) \n\t{\n\t\tthis.entities = entities;\n\t}", "public void setValuesToEntity();", "public void setData(T[] aggregate) { \n _elements = aggregate; \n }", "public void setValues(ExternalEntity entity) {\n super.setValues(entity);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Check if a name is available.
private boolean isNameAvailable(EObject parentEObject, EClass childEClass, int currentCpt) { EList list = parentEObject.eContents(); for (Iterator i = list.iterator(); i.hasNext();) { EObject child = (EObject) i.next(); // check if the current child is the same type of the childEObject if (childEClass....
[ "public boolean hasName();", "Boolean hasName(String name);", "public boolean hasName(edu.uci.isr.xarch.instance.IDescription nameToCheck);", "public boolean hasName(String name) {\r\n\t\tif(name.equals(NAME)) { // if name matches, true. false otherwise\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/popup to set the model for ok
public Menumodel getTask() { return task; }
[ "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tokAction(e);\r\n\t\t\t}", "@FXML\n private void handleOk() {\n if (isInputValid()) {\n \tString mailFieldText = mailToField.getText();\n \tNotifier.INSTANCE.notifySuccess(\"Success !\", mailFieldText);\n \t\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ JADX ERROR: Method load error jadx.core.utils.exceptions.DecodeException: Load method exception: bogus opcode: 00e5 in method: android.icu.impl.UnicodeSetStringSpan.spanBack(java.lang.CharSequence, int, android.icu.text.UnicodeSet$SpanCondition):int, dex: at jadx.core.dex.nodes.MethodNode.load(MethodNode.java:118) at...
public synchronized int spanBack(java.lang.CharSequence r1, int r2, android.icu.text.UnicodeSet.SpanCondition r3) { /* // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.icu.impl.UnicodeSetStringSpan.spanBack(java.lang.CharSequence, int, android.icu.text.Unic...
[ "public void mo650a() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional .innova.common.Float3 scale = 1;
public innova.common.InnovaCommon.Float3 getScale() { return scale_ == null ? innova.common.InnovaCommon.Float3.getDefaultInstance() : scale_; }
[ "int getScalef();", "public double getScale(){\n return scale;\n }", "public double getScale(){\r\n return scale;\r\n }", "public float getScale() {\n return scale;\n }", "void setScale(int scale) throws UnifyException;", "public abstract void scalef(float x, float y, float z);", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Needed for animation purposes
@Override public void actionPerformed(ActionEvent arg0) { if(_rY > 74){ _t.stop(); this._color = this._temp; _rVel = -_rVel; _t1.start(); } if(_rY < 4){ _t1.stop(); _rVel = -_rVel; } _rY += _rVel; repaint(); }
[ "@Override\n public void onAnimationStart(Animation animation) {\n \n }", "@Override\n public void animationsFinished() {\n\n\n\n\n\n }", "@Override\n public void run() {\n animate(0, 1);\n }"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method corresponds to the database table article_detail
int insert(ArticleDetail record);
[ "public interface IArticleMapper extends BaseMapper<Article> {\n\n /**\n * 获取文章\n * @return\n */\n @Select(\"<script>\"+\n \"select title,imgUrl,postTime,content,username,userId,\" +\n \"articleId from article as a left join user u on a.userId = u.id where \" +\n \...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
For vertical linear layout
private void prepareRecyclerView() { LinearLayoutManager linearLayoutManager = new LinearLayoutManager(this, LinearLayoutManager.VERTICAL, false); //For horizontal linear layout //linearLayoutManager = new LinearLayoutManager(this, LinearLayoutManager.HORIZONTAL, false); //For grid vie...
[ "private void initLinearLayoutVertical(){\n this.linearLayoutVertical = new LinearLayout(this.context);\n this.linearLayoutVertical.setOrientation(LinearLayout.VERTICAL);\n LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(\n 0,\n LinearLayout.Layout...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
method for bluetooth permission by Mitch Tabian (without comments)
@RequiresApi(api = Build.VERSION_CODES.M) private void BTpermission() { //check if the androidversion is higher then lollipop if (Build.VERSION.SDK_INT > Build.VERSION_CODES.LOLLIPOP) { //check if there is permission int permissionCheck = this.checkSelfPermission("Manifest.pe...
[ "private void requestPermissions()\n {\n ActivityCompat.requestPermissions(this,new String[] {Manifest.permission.BLUETOOTH},1);\n }", "public void checkPermissions() {\n Log.e(TAG, \"checkPermissions\");\n if(bluetoothAdapter != null) {\n if (!bluetoothAdapter.isEnabled(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Calls consumer.accept on every bucket of your map in order, starting from bucket 0.
public static void visitBuckets(BiConsumer<Integer, List<MyMap.MyMapEntry<Point, Integer>>> consumer) { for (int index = 0; index < pointCounts.getBuckets().size(); index++) { consumer.accept(index, pointCounts.getBuckets().get(index)); } }
[ "private void startConsumer() {\r\n\t\tfor (int i = 1; i < Runner.totalCount; i++) {\r\n\t\t\tconsume();\r\n\t\t}\t\r\n\t\t\r\n\t}", "private void refactorBuckets() {\n this.oldBuckets = this.buckets;\n this.bucketCount = ((this.bucketCount + 1) * 2) - 1;\n this.createBuckets();\n for ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
NOTE: if "columns.types" is missing, all columns will be of String type.
@Override protected List<TypeInfo> parseColumnTypes() { final List<TypeInfo> fieldTypes = super.parseColumnTypes(); if (fieldTypes.isEmpty()) { return Collections.nCopies(getColumnNames().size(), TypeInfoFactory.stringTypeInfo); } return fieldTypes; }
[ "@Override\n\t\t\tpublic String[] columnsType() {\n\t\t\t\treturn COLUMNS_TYPE;\n\t\t\t}", "public abstract ThisType addCustomColumns(Object... typedColumnStrs);", "@Override\n\tpublic DataTypeDefinitions getColumnType() throws FileNotFoundException {\n\t//\tString[] colunmType = null;\n\t\tList<String> recordC...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Created with IntelliJ IDEA. User: tb189431e Date: 10/13/13 Time: 9:12 PM To change this template use File | Settings | File Templates.
public interface ScoreService { public void loadGames(); public void updateAllScores(File updatedScores); /*TODO: remove later: */ public List<Game> getGames(); }
[ "@Override\n public void extornar() {\n \n }", "public void mo5201a() {\n }", "private void IntelliJSucks() {\n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n }", "private static void EX5() {\n\t\t\r\n\t}", "public void mo1857d() ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__Level__Group__1" $ANTLR start "rule__Level__Group__1__Impl" InternalLevelDesign.g:337:1: rule__Level__Group__1__Impl : ( '=>' ) ;
public final void rule__Level__Group__1__Impl() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalLevelDesign.g:341:1: ( ( '=>' ) ) // InternalLevelDesign.g:342:1: ( '=>' ) { // InternalLevelDesign.g:342:1: ( '=>'...
[ "public final void rule__Relational__Group_1_0_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalArgument.g:3213:1: ( rule__Relational__Group_1_0_1__1__Impl )\n // InternalArgument.g:3214:2: rule__Relational__Group_1_...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { try{ mCamera.setPreviewDisplay(holder); mCamera.startPreview(); }catch(IOException ex){ } }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
BufferedReader r = new BufferedReader( new InputStreamReader(System.in));
public static void main(String[] args) throws Exception { BufferedReader r = new BufferedReader(new InputStreamReader(System.in)); String time = r.readLine(); double t = Double.parseDouble(time); while (true){ if (t<=5){ if ((t>=0 && t<3) || t==5) ...
[ "String inString(){\r\n BufferedReader sacosa = new BufferedReader(new InputStreamReader(System.in));\r\n String str = \"\";\r\n try{\r\n str = sacosa.readLine();\r\n }\r\n catch(Exception e){}\r\n return str;\r\n }", "private...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Created by wujijin on 2018/8/10.
@CacheConfig(cacheNames = "message_template_data") public interface MessageTemplateRepository extends JpaRepository<MessageTemplateEntity,String> { // @Cacheable // MessageTemplateEntity fingByTemplateId(String templateId); }
[ "@Override\n public void extornar() {\n \n }", "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "private static void EX5() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n public int utilite() {\n ret...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
gets the open location for when it wants to open a previously saved file
public String getOpenLocation() { JFileChooser fileChooser = new JFileChooser(); fileChooser.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES); int result = fileChooser.showOpenDialog(this); if (result == JFileChooser.CANCEL_OPTION) { fileChooser.hide(); ...
[ "void openLastFile() {\n if (!settingsService.getLastFilename().equals(TPStrings.EMPTY)) {\n if (useAndroidManager()) {\n Uri uri = Uri.parse(settingsService.getLastFilename());\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { //dublicated in useAndroidMan...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test case number: 70 /Coverage entropy=0.0
@Test(timeout = 4000) public void test70() throws Throwable { JavaCharStream.hexval('f'); try { JavaCharStream.hexval('I'); fail("Expecting exception: IOException"); } catch(IOException e) { // // no message in exception (getMessage() returned null) ...
[ "@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" ] ] } }
Constructor that takes care of initializing the components when an object of the class is created.
public StartupScreen() { initComponents(); }
[ "public ComponentUI() {\n }", "public Inicial() {\n initComponents();\n \n }", "public CarManager() {\n initComponents();\n myInits();\n }", "private void initComponents() {\n\t\t\t\n\t\t}", "public Component() {\n components = new ArrayList<Component>();\n }",...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a string that is used to start a graph.
public String start_graph(String ... options) { String ret = "digraph G {"; if (options != null) { for (String o : options) { ret += "\n\t" + o; } } return ret; }
[ "String getGraphEntryPoint();", "public String getMainTextForGraph() {\n return toString();\n }", "public String toString() {\n\t\treturn \"Graph with \" + numOfNodes + \" nodes and \" + numOfEdges + \" edges.\";\n\t}", "public String toString() {\n\t\tString g = \"\";\n\t\tfor (Node f: nodes) {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Right pad a String with spaces (' '). The String is padded to the size of size. StringUtils.rightPad(null, ) = null StringUtils.rightPad("", 3) = " " StringUtils.rightPad("bat", 3) = "bat" StringUtils.rightPad("bat", 5) = "bat " StringUtils.rightPad("bat", 1) = "bat" StringUtils.rightPad("bat", 1) = "bat"
public static String rightPad(String str, int size) { return rightPad(str, size, ' '); }
[ "public static String rightPad(String string, int length, char padChar) {\n\t\tString extra = String.format(\"%1$\" + (length - string.length()) + \"s\", \"\").replace(' ', padChar);\n\t\treturn string + extra;\n\t\t\n\t}", "public static String padRight(String s, int width)\n {\n if (s.length() >= width) ret...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public static void main(String[] args) { Scanner scan = new Scanner(System.in); // 문제 1 /* * # 문자열 속 숫자검사 * 예) adklajsiod * 문자만 있다. * 예) 123123 * 숫자만 있다. * 예) dasd12312asd * 문자와 숫자가 섞여있다. */ //문자열 입력 String myWords = scan.nextLine(); //arr배열에 나누기 char...
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Determines if the object has been modified since the last time this method was called. We can also determine if this object has ever been modified since its creation.
public boolean isModified() { return id_is_modified || name_is_modified || address_is_modified || telephone_is_modified; }
[ "public boolean isModified() {\n return !objectStateMap.isEmpty();\n }", "public boolean isModified() { // ignore\n return modified;\n }", "@SuppressWarnings(\"unused\")\n public boolean isModified()\n {\n return modified;\n }", "public boolean hasChanged() {\n return mod...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Main constructor with associated compiler phase, source code location, and description.
public XicException(Kind kind, Location location, String description) { this.kind = kind; this.location = location; this.description = description; }
[ "public Compiler() {\n\t\tthis(new String());\n\t}", "public Main()\r\n {\r\n\r\n }", "Program () {\r\n}", "public Program() { }", "public Main() \n {\n \n }", "Compiler() {\r\n this.setName(NAME);\r\n }", "public CodeGenerator() {\n }", "public Compiler(Translation...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void callback(String result) { String[] title = {"姓名:","电话:","地址:","卡户银行:","银行卡号:"}; JSONObject json; try { json = new JSONObject(result); JSONObject obj = (JSONObject) json.get("result"); for(int i=0;i<title.length;i++){ Map<String,Object> m = new HashMap<String, Ob...
[ "@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" ] ] } }
file to upload or download
private Request(String requestUrl) { this.requestUrl = requestUrl; this.params = new TreeMap<String, Object>(); }
[ "File uploadFile(String filename);", "void uploadFile();", "File uploadFile(String pathToFile, String pathname);", "Path loadFile(UploadType type,String fileName);", "void downloadFile();", "public void uploadFile(String filepath, URL url){\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "public abstract String upload...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Determines the owner of the specified lock, waiting for any resolution to complete before notifying the supplied listener.
public void queryLock (Lock lock, ResultListener<String> listener) { // if it's being resolved, add the listener to the list LockHandler handler = _locks.get(lock); if (handler != null) { handler.listeners.add(listener); return; } // otherwis...
[ "@Override\n public void onSuccess(final String lockNode) {\n deleteNodeOnFailure(completion, lockNode);\n\n // If the lock is completed (mainly due to cancellation), simply abort the lock acquisition logic.\n if (completion.isDone()) {\n return;\n }\n\n // Step 2-5....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Searches Mitarbeiter by using the MODIFY_DATE_MA_VERSION
public Mitarbeiter[] searchMitarbeiterByModifyVersion(String lowerValue) { String param = PARAM_MODIFY_DATE.replace(VALUE1_TOKEN, COMPANY_ID); param = param.replace(VALUE2_TOKEN, lowerValue); return searchAndEnrichMitarbieter(param); }
[ "public void getItems(int mon,int year);", "public void searchDate(String input);", "private Map<String, String> findUpdateInfoForMcVersion(List<Map<String, Object>> list)\n {\n String currentVer = container.getVersion();\n for (Map<String, Object> map : list)\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Delete a single user item from the database
public void deleteById(final String userId) { // Construct the key with partition key Key key = Key.builder().partitionValue(userId).build(); DeleteItemEnhancedRequest deleteRequest = DeleteItemEnhancedRequest.builder().key(key).build(); getTable().deleteItem(deleteRequest); }
[ "public long deleteByUser ( User user );", "void deleteUserListItem(int userListItemId);", "public void delete(String user_id);", "public void delete(User user) throws Exception;", "public void deleteUser(EUser user) throws Exception;", "public Boolean delete(User user);", "public void deleteOne(User us...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Configures the ComboBox to be editable (to allow user input outside of the options provide in the dropdown list).
public final void setComboBoxEditable(boolean value) { comboBoxEditableProperty().set(value); }
[ "public void testSetEditable() {\r\n\t\tboolean teste = true;\r\n\t\tthis.comboBox.setEditable(teste);\r\n\t\tassertEquals(teste,this.comboBox.isEditable());\r\n\t}", "private void setAllowComboBoxEditor(Properties prop) {\n\t\t// Check if allowComboBoxEditor is enabled\n\t\tString allowed = prop.getProperty(\"At...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
int length = arr.length;
public int findMaxElement(int[] arr) { int max = Integer.MIN_VALUE; int size = arr.length + 5; size = 5 + arr.length; int n = size; /*if((n = 5) == 1) { System.out.println("test"); }*/ // how we treat this case? n = arr.length - 3; // probably the algorithm won't work n = size - size + 5; size...
[ "public int length() { return array.length; }", "public final int length() {\n\t\treturn arr.length;\n\t}", "public int size(){\n return this.arr.length;\n }", "public final int length() {\n/* 103 */ return this.array.length;\n/* */ }", "public int size(){\r\n return this.array.le...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ / appends the name (and only the name!) of a type to the context. / / The type name to append. / The context after appending.
public SSTPrintingContext typeNameOnly(ITypeName typeName) { if (typeName != null) return text(typeName.getName()); return this; }
[ "@Override\n\tpublic String getTypeName(){\n\t\tParserRuleContext ctx = getContext();\n\t\tif(ctx != null && ctx.children != null && ctx.children.size()>0){\n\t\t\tfor(ParseTree childCtx : ctx.children){\n\t\t\t\tif(!(childCtx instanceof TerminalNode)){\n\t\t\t\t\tif (getExtendedContext(childCtx).getTypeName() != n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Kode di sini akan merespons setelah drawer menutup disini kita biarkan kosong
@Override public void onDrawerClosed(View drawerView) { super.onDrawerClosed(drawerView); finish(); }
[ "public static void VypisMenu () {\n\t\t\n\t\tSystem.out.println(\"Menu:\");\n\t\tSystem.out.println(\"1. Scitani\");\n\t\tSystem.out.println(\"2. Odecitani\");\n\t\tSystem.out.println(\"3. Nasobeni\");\n\t\tSystem.out.println(\"4. Deleni\");\n\t\t\t\t\n\t}", "public MenuDosen() {\n initComponents();\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
//////// Weather ApiEndpoint ////////////////////
@GET("/forecast/{apiKey}/{lat},{lng}") Call<Weather> getWeather(@Path("apiKey") String apiKey, @Path("lat") String lat, @Path("lng") String lng, @Query("exclude") String exclude, @Query("lang") String...
[ "public interface WeatherApiService {\n\n /**\n * @param first\n * @param second\n * @param version\n * @param lat\n * @param lon\n * @return\n *\n * 날씨 가져오기\n * 1. 현재 온도, 최고 온도, 최저 온도\n * 2. 어제 오늘 내일 최고 온도 및 최저 온도\n */\n @Headers({\n \"CONNECT_TIMEOUT:50...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Space x,y attempts to push all pushable tiles on the space in the given direction This method recursively calls push on each successive space in the same direction until an empty space (space with no pushes or stops) is found.
public static boolean push(int x, int y, int direction) { Space pushSource = getSpace(x, y); Point destination = Utils.offsetPointByDirection(x, y, direction); Space s = getSpace(destination.x, destination.y); if (s.isStop()) { return false; } if (s.hasPush())...
[ "public final void push() {\n final int next = this.testBounds(this.current - 9);\n\n System.arraycopy(this.stack, this.current, this.stack, next, 9);\n }", "private void pushDown(){\n\t\t\tint i = 1;\n\t\t\n\t\t\tLocation swap;\n\t\t\tboolean traversing = true;\n\t\t\n\t\t\twhile (traversing && ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return path to file containing all variants with headers in machineparseable form
public String getPathToParseableVariants() { String rootDir = pipeline.getProjectHome(); if (! rootDir.endsWith(System.getProperty("file.separator"))) rootDir = rootDir + System.getProperty("file.separator"); String path = rootDir + settings.prefix + ".normal.csv"; return path; }
[ "public String pack_file_info(){\n byte[] empty = new byte[0];\n String pack = new String(empty, StandardCharsets.UTF_8);\n pack += \"fi/\";\n for(String key: file_info.keySet()){\n pack += key;\n pack += \",\";\n int i;\n for(i = 0; i < file_i...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
List by Amenities fields Restroom Changing Station
@RequestMapping(value = "restroom-changing-station") public String restroomChangingStation(Model model) { model.addAttribute(new SearchForm()); List<Playground> allPlaygrounds = playgroundDao.findAll(); List<Playground> targetedPlaygrounds = new ArrayList<>(); for (Playground playgro...
[ "@Override\n public List<StudentAnlDto> analyList(int startAge, int endAge) {\n return studentRepository.analyList(startAge, endAge);\n }", "public Station getAllStation(String id) ;", "public HashMap<String, Station> getAllStations() ;", "List<ShopWithLocation> getAll();", "List<Room> selectAl...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ If 'OK' button is pressed then save the settings.
private void okButtonActionPerformed() { // Get the logic.Question Pool instance. qPool = JQuestions.getQuestionPool(); jqGUI.setPressedOK(true); // Save the values from the Conf Window back to the logic.Question Pool. qPool.setDescriptionText(this.getDescriptionText()); ...
[ "private void okButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_okButtonActionPerformed\n savePreferences();\n dispose();\n }", "private void okButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_okButtonActionPerformed\n utilitiesUserParameter...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method is used by println system output method to print settings
public String toString() { return "Settings are: Color ID - " + color_id + " , ScreenSaver Id - " + screensaver_id + " , Screen Brightness - " + screen_brightness + "."; }
[ "private void printOptions() {\r\n\t\tSystem.out.println(\"\\nOptions:\");\r\n\t\tSystem.out.println(\"------------------------\");\r\n\r\n\t\tfor (int i = 0; i < options.length; i++)\r\n\t\t\tSystem.out.println((i + 1) + \"\\t\" + options[i]);\r\n\t}", "public void printPreferences(){\n this.printResident...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Task Zero To be triggered by the "Top 5 (male)" button on the Task Zero Tab
@FXML void doTopM() { String oReport = ""; final int topN = 5; int iYear = Integer.parseInt(textfieldYear.getText()); oReport = String.format("Top %d most popular names (male) in the year %d:\n", topN, iYear); for (int i = 1; i <= topN; i++) oReport += String.format("#%d: %s\n", i, AnalyzeNames.get...
[ "public void showAvailableActions() {\n System.out.println(\"\");\n System.out.println(\"1. Add a task\");\n System.out.println(\"2. Mark task as done\");\n System.out.println(\"3. Remove task \");\n System.out.println(\"4. Edit task\");\n System.out.println(\"5. Display al...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ access modifiers changed from: private
public void clearId() { this.bitField0_ &= -9; this.id_ = 0; }
[ "@Override\n }", "protected void method_5557() {}", "@Override\n public void extornar() {\n \n }", "@Override\r\n public void publicando() {\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "private InternalReflect() {\n\t\t\t// do nothing\n\t\t}", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set ZIP. Postal code
public void setPostal(String Postal) { if (Postal != null && Postal.length() > 10) { log.warning("Length > 10 - truncated"); Postal = Postal.substring(0, 9); } set_Value("Postal", Postal); }
[ "public void setZip(String zip)\r\n\t{\r\n\t\tthis.entries[2]=zip;\r\n\t}", "public void setZipPostal(String zipPostal) {\r\n\t\tthis.zipPostal = zipPostal;\r\n\t}", "public void doSetZipCode(String zipCode) {\n this.zipCode = zipCode;\n }", "void setCodePostal(String codePostal);", "public void setZipC...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "ruleSimpleValueLink" $ANTLR start "entryRuleCustomIdLink" ../protolipse.ui/srcgen/protolipse/ui/contentassist/antlr/internal/InternalProtobuf.g:341:1: entryRuleCustomIdLink : ruleCustomIdLink EOF ;
public final void entryRuleCustomIdLink() throws RecognitionException { try { // ../protolipse.ui/src-gen/protolipse/ui/contentassist/antlr/internal/InternalProtobuf.g:342:1: ( ruleCustomIdLink EOF ) // ../protolipse.ui/src-gen/protolipse/ui/contentassist/antlr/internal/InternalProtobuf....
[ "private boolean hasIdValueLink(String idValueLink){\n if (idValueLink == null) return false;\n if (idValueLink.isEmpty()) return false;\n if (idValueLink.equalsIgnoreCase(\"n/a\")) return false;\n if (idValueLink.equalsIgnoreCase(FishLinkConstants.AUTOMATIC_LABEL)) return false;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
add the 12 and 4 together and store the result to the 12 vector
public void add_4_to_12() { x_12 += x_4; y_12 += y_4; }
[ "void add(int v1, int v2, int v3, int v4) {\n\t\tlength += 4;\n\t\tmoreElements();\n\t\telements[length-4] = v1;\n\t\telements[length-3] = v2;\n\t\telements[length-2] = v3;\n\t\telements[length-1] = v4;\n\t}", "public void adding() {\n BigInteger a0 = a[0], a1 = a[1], a2 = a[2], a3 = a[3], a4 = a[4];\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns connection type and status information gleaned from networkInfo.
public NetState getNetworkState(android.net.NetworkInfo networkInfo) { if (networkInfo == null || !networkInfo.isConnected()) { return new NetState(false, -1, -1); } return new NetState(true, networkInfo.getType(), networkInfo.getSubtype()); }
[ "public String getConnectionInfo() {\n if (!isConnected()) {\n return \"NO CONNECTION\";\n }\n\n // TODO: Get from managed ChipDeviceController\n return \"127.0.0.1\";\n }", "@java.lang.Override\n public com.google.protobuf.ByteString getConnInfo() {\n return instance.getConnInfo();\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ access modifiers changed from: 0000 / renamed from: m
public final Map<String, String> mo46030m() { Map<String, String> map = new HashMap<>(); if (C4770ai.m2633f(this.f4272C)) { map.put("User-Agent", this.f4272C); } try { if (C4770ai.m2633f(this.f4309q) || this.f4284O != null) { m2705v(); ...
[ "public void mo28221a() {\n }", "public void m1932e() {\n }", "public void m2349g() {\n }", "public abstract void mo30462c();", "public void mo5201a() {\n }", "public void mo5203c() {\n }", "public abstract C2487m mo10434a();", "public voi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional .datayes.mdl.mdl_szl2_pbmsg.double_4 CloseIndex = 10;
public Builder clearCloseIndex() { if (closeIndexBuilder_ == null) { closeIndex_ = datayes.mdl.mdl_szl2_pbmsg.MDLSZL2Msg.double_4.getDefaultInstance(); onChanged(); } else { closeIndexBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000200); retur...
[ "datayes.mdl.mdl_szl1_pbmsg.MDLSZL1Msg.double_3 getOpenIndex();", "datayes.mdl.mdl_szl1_pbmsg.MDLSZL1Msg.float_3 getOpenPrice();", "public datayes.mdl.mdl_szl1_pbmsg.MDLSZL1Msg.double_3OrBuilder getOpenIndexOrBuilder() {\n return openIndex_;\n }", "public Number getClose() {\n\t\treturn this.close;\n\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates an instance of the class.
public PaymentRequestService(RenderFrameHost renderFrameHost, @Nullable PaymentRequestClient client, Runnable onClosedListener, Delegate delegate, Supplier<PaymentAppServiceBridge> paymentAppServiceBridgeSupplier) { assert renderFrameHost != null; assert onClosedListener != null;...
[ "T createNewInstance();", "public abstract T createInstance(Class<?> type);", "ObjectClass createObjectClass();", "private T newInstance() {\r\n T result;\r\n try {\r\n result = constructor.newInstance();\r\n } catch (Exception e) {\r\n throw new RuntimeException(e);...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
data are not available any more, delete reference
@Override public void onLoaderReset(Loader<Cursor> loader) { expListAdapter.changeCursor(null); }
[ "private void cleanUpOldData() {\n\t\t\r\n\t}", "void refillData();", "public void unsetReferencedData()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_attribute(REFERENCEDDATA$2);\r\n }\r\n }", "public void cleanData();",...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets value as the attribute value for SLastName.
public void setSLastName(String value) { setAttributeInternal(SLASTNAME, value); }
[ "public void setLastName(String value)\r\n {\r\n lastName.set(value);\r\n }", "public void setLastName(String value) {\n\t\t\n\t}", "public void xsetLastName(org.apache.xmlbeans.XmlString lastName)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.a...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructs a new text file reader and opens the file as specified searching in the path.
public TextFileReader(File file, Charset charset) throws FileNotFoundException { is = new FileInputStream(file); if (charset != null) { isr = new InputStreamReader(is, charset); } else { isr = new InputStreamReader(is); } if (System.getProperty("os.name").toLowerCase().indexOf("linux")!=...
[ "public TextFileIn(File file) throws FileNotFoundException\r\n {\r\n\tmReader = new BufferedReader(new FileReader(file));\r\n }", "public TextSearcher(File f) throws IOException {\n FileReader r = new FileReader(f);\n StringWriter w = new StringWriter();\n char[] buf = new char[4096];\n int read...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Calls controller's method that prepares a user profile page and expects to get a success status, a content of type text/html and an html page that contains a certain user's info.
@Test public void testUserProfile() throws InterruptedException, ExecutionException { ApplicationController controller = new ApplicationController(userProfileService, tenTweetsForKeywordService, formFactory, ec); when(userProfileService.userProfle("some user id")) .thenReturn(CompletableFuture.supply...
[ "private void getProfileInfo(){\n client.getProfileInfo(null, new JsonHttpResponseHandler(){\n\n @Override\n public void onSuccess(int statusCode, Header[] headers, JSONObject response) {\n User loggedInUser = User.fromJSONObject(response);\n binding.setScr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
boolean b1 = p1.test(s); boolean b2 = p2.test(s); boolean b3 = b1 || b2; boolean b3 = b1 && b2; return b3; return p1.or(p2).test(s);
private static boolean checkString(String s, Predicate<String> p1, Predicate<String> p2) { return p1.and(p2).test(s); }
[ "private static boolean p1(boolean a, boolean b, boolean c, boolean d)\n {\n return (((a || b) && c) || ((b || c) && d)) && (a || d);\n }", "@Test\n public void or() {\n\n assertEquals(\"x\", Optional.of(\"x\")\n .or(() -> Optional.of(\"Not started yet.\"))\n .get());\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Find all TnMovtoConceptoPago entities that matches the condition 'where fecIncidencia is equals to'.
@FindByCondition(value=TnMovtoConceptoPago.class, condition="FEC_INCIDENCIA=?") List<TnMovtoConceptoPago> findByFecIncidencia(java.util.Date fecIncidencia);
[ "@Query(\"FROM SiacTModpag mp \" \n\t\t\t+ \" WHERE mp.dataCancellazione is NULL \" \n\t\t\t+ \" AND mp.dataInizioValidita < CURRENT_TIMESTAMP \"\n\t\t\t+ \" AND ( mp.dataFineValidita is NULL or mp.dataFineValidita > CURRENT_TIMESTAMP) \"\n\t\t\t\n\t\t\t+ \" AND mp.siacTSoggetto.dataCancellazione is NULL \"\n\t\t\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Get & Set
public JdbcManager getJdbcManager() { return jdbcManager; }
[ "abstract protected void set(Object value);", "@Override\r\n public void set(T value){\r\n this.data = value;\r\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}", "public T get() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public static void main(String[] args) { String Name = "Deepak"; char Gender = 'M'; byte Ageinyears = 26; short Ageindays = 9490; int Ageinhours = 227760; float Percentage = 80.4f; System.out.println("Name: "+ Name); System.out.println("Age in years: "+ Ageinyears); System.out.prin...
[ "@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" ] ] } }
$ANTLR end "rulePropertyCondition" $ANTLR start "entryRuleProperty" ../org.sqlproc.meta.ui/srcgen/org/sqlproc/meta/ui/contentassist/antlr/internal/InternalProcessorMeta.g:789:1: entryRuleProperty : ruleProperty EOF ;
public final void entryRuleProperty() throws RecognitionException { try { // ../org.sqlproc.meta.ui/src-gen/org/sqlproc/meta/ui/contentassist/antlr/internal/InternalProcessorMeta.g:790:1: ( ruleProperty EOF ) // ../org.sqlproc.meta.ui/src-gen/org/sqlproc/meta/ui/contentassist/antlr/inter...
[ "public final void entryRuleProperty() throws RecognitionException {\n try {\n // ../mdsd01.exercise04.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyDsl01.g:119:1: ( ruleProperty EOF )\n // ../mdsd01.exercise04.ui/src-gen/org/xtext/example/mydsl/ui/content...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Getter for the team
public ArrayList<NPC> getTeam() { return team; }
[ "@Nonnull\n @Override\n public Team getTeam() {\n return this.team;\n }", "public String getTeam() {\n\treturn team;\n }", "@java.lang.Override\n public int getTeam() {\n return team_;\n }", "public int getTeam(){\n return team;\n }", "public int getTeam() {\n\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
check if domain space can support private reg or not shows auth code on the second top
public void showsauthcode(WebDriver driver){ driver.findElement(By.id("authcode")).click(); System.out.println(" @--show auth code End"); }
[ "boolean hasTopprivatedomain();", "boolean hasLoginInfo();", "boolean hasOidc();", "public boolean isRegardingAuthentication()\n {\n return m_returnCode.charAt(1) == REGARDING_AUTHENTICATION;\n }", "boolean isAuthRequired();", "boolean checkHdcp14Valid();", "@Test\n\tpublic void testgetAllDic...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
DrawerLayout drawerLayout = findViewById(R.id.drawerlayout);
@Override public void onBackPressed() { if(drawerLayout.isDrawerOpen(GravityCompat.START)){ drawerLayout.closeDrawer(GravityCompat.START); } else { super.onBackPressed(); } }
[ "private DrawerLayout getDrawerLayout() {\n return (DrawerLayout) findViewById(setupDrawerLayoutRes());\n }", "void onDrawerOpening();", "@Override\n\t\t\t\t\t\t\tpublic void onDrawerOpened(View drawerView) {\n\t\t\t\t\t\t\t}", "private void initLayout() {\n /* Binding view references */\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
RPC to exchange view with target server or simpleDB
public String RPCViewExchange(String ip) throws IOException { System.out.println("--- RPCViewExchange called ---"); DatagramSocket rpcSocket = new DatagramSocket(); byte[] outBuf = new byte[1024]; byte[] inBuf = new byte[1024]; String return_string = null; int received_call_ID = -1; i...
[ "public interface RemoteTsDB extends Remote {\n\t\n\t//sensor\n\tString[] getSensorNamesOfPlot(String plotID) throws RemoteException;\n\tString[] getSensorNamesOfGeneralStation(String generalStationName) throws RemoteException;\t\n\tSensor[] getSensors() throws RemoteException;\n\tSensor getSensor(String sensorName...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Cash value of current annuity / CONSTRUCTORS
public Annuity() { }
[ "public double getCashAmount() {\n return cashAmount;\n }", "public Float getTotalCostCash() {\n return totalCostCash;\n }", "public long getCashAmount() {\n return cashAmount_;\n }", "public java.math.BigDecimal getTotalCash () {\n\t\treturn totalCash;\n\t}", "double getCrtb...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
get data from firebase
void getDataUserHistory(){ mReference.addValueEventListener(new ValueEventListener() { @Override public void onDataChange(DataSnapshot dataSnapshot) { for(DataSnapshot dataSnapshot1:dataSnapshot.getChildren()){ Log.d("History:","Run snapshot"); ...
[ "protected void getData() {\n\n //Getting all the usernames\n Firebase userReference = new Firebase(\"https://ipark-e243b.firebaseio.com/Users\");\n\n userReference.addValueEventListener(new com.firebase.client.ValueEventListener() {\n @Override\n public void onDataChange(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__FunctionDeclaration__Group__4__Impl" $ANTLR start "rule__FunctionDeclaration__Group__5" ../org.processus.ecleek.ui/srcgen/org/processus/ecleek/ui/contentassist/antlr/internal/InternalLeek.g:4708:1: rule__FunctionDeclaration__Group__5 : rule__FunctionDeclaration__Group__5__Impl ;
public final void rule__FunctionDeclaration__Group__5() throws RecognitionException { int stackSize = keepStackSize(); try { // ../org.processus.ecleek.ui/src-gen/org/processus/ecleek/ui/contentassist/antlr/internal/InternalLeek.g:4712:1: ( rule__FunctionDeclaration__Group__5...
[ "public final void rule__Function__Group__5() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalReflex.g:5288:1: ( rule__Function__Group__5__Impl rule__Function__Group__6 )\n // InternalReflex.g:5289:2: rule__Function__Group__...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Lee los datos del archivo Atraccion.txt Instancia atracciones a partir de esos datos Devuelve esas atracciones
public static List<Ofertable> cargarAtracciones() throws Exception { String path = new File("entrada/Atraccion.txt").getAbsolutePath(); File archivo = null; FileReader fr = null; BufferedReader br = null; List<Ofertable> atracciones = null; try { archivo = new File(path); fr = new FileReader(archivo...
[ "public void loadFromTxtFile() {\n int lineaAlumno = 0;\n int cantAlumnos = 0;\n int lineaLenguaje = 0;\n int cantLenguajes = 0;\n int lineaContactos = 0;\n int cantContactos = 0;\n int lineaDirecciones = 0;\n int cantDirecciones = 0;\n boolean isAlumno...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Heapsort for ArrayLists. Sorts the Arraylist using a heapsort. Utilizes the siftDown method.
private void sort(ArrayList lines) { int size = lines.size(); for(int i = (size / 2 - 1); i >= 0; i--) siftDown(lines, i, size); for(int i = (size - 1); i >= 1; i--) { Object tmp = lines.get(0); lines.set(0, lines.get(i)); lines.set(i...
[ "private Comparable[] heapSort(Comparable[] list, int heapSize){\n if (heapSize < 2)\n return list;\n\n int lastItem = heapSize - 1;\n swapNodes(list, 0, lastItem);\n siftDown(list, 0, lastItem);\n\n return heapSort(list, lastItem);\n }", "public void sort() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void delete(String ids) { List<String> list = new ArrayList<String>(); String[] s = ids.split(","); for(String temp : s) { list.add(temp); } mapper.delete(list); //删除所有的公告 gaMapper.deleteByGameId(list); //删除所有的报名信息 gayMapper.deleteByGameId(list); }
[ "@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 displays the status messages of EnterTextAsyc in the dialog box
@Override protected void onPostExecute(Integer result) { dlgPg.dismiss(); if (iRetVal == DEVICE_NOTCONNECTED) { ptrhandler.obtainMessage(DEVICE_NOTCONNECTED,"Device not connected").sendToTarget(); } else if (iRetVal == Printer.PR_SUCCESS) { ...
[ "public void enterText() {\n\t\tSystem.out.println(\"Error: Invalid Entry. Please Enter Again:\" ); \n }", "private void textEntered() {\n // showToast(\"Text input not implemented\");\n String text = userTextInput.getText().toString();\n addMessage(new TextMessage(text, \"tx\", getCurre...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }