query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
don't connect if already connected .. user needs to disconnect first
public void connect(String wsUri, String[] wsSubprotocols, WebSocket.ConnectionHandler wsHandler, WebSocketOptions options, List<BasicNameValuePair> headers) throws WebSocketException { don't connect if already connected .. user needs to disconnect first // if (this.mTransportChannel != null && this.mTransportChann...
[ "@Override\n public boolean isConnected() {\n return !connecting;\n }", "boolean reconnect();", "public void disconnect() {\n isConnected = false;\n }", "public synchronized void connect() {\n\t\tconnect(false);\n\t}", "public abstract boolean disconnect();", "abstract public void d...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Shutdown the MANET and frees all resources
public void shutdown() { Log.d(Config.TAG,"ManetOps disconnecting..."); IpcBroadcastTransceiver.unregister(sqAnService); shouldBeActive = false; if (manetThread != null) { if (handler != null) { handler.removeCallbacksAndMessages(null); handle...
[ "public static void shutDown() {\n if (manager == null)\n return;\n manager = null;\n }", "public void destroy() {\n cleanup.shutdown();\n }", "public static void closeApp() {\n\t\tloader.cleanUp();\n\t\tmasterRenderer.cleanUp();\n\t\tguiRenderer.cleanUp();\n\t\ttextureTopL...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "entryRuleVector" $ANTLR start "ruleVector" ../de.upb.llvm_parser/srcgen/de/upb/llvm_parser/parser/antlr/internal/InternalLLVM.g:1842:1: ruleVector returns [EObject current=null] : (otherlv_0= '' ) ;
public final EObject ruleVector() throws RecognitionException { EObject current = null; Token otherlv_0=null; Token otherlv_2=null; Token otherlv_4=null; AntlrDatatypeRuleToken lv_length_1_0 = null; EObject lv_type_3_0 = null; enterRule(); ...
[ "public final void entryRuleexpressionOrVector() throws RecognitionException {\n try {\n // ../org.makumba.devel.plugin.eclipse.mdd.ui/src-gen/org/makumba/devel/plugin/eclipse/mdd/ui/contentassist/antlr/internal/InternalMDD.g:2386:1: ( ruleexpressionOrVector EOF )\n // ../org.makumba.de...
{ "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() { jPanel1 = new javax.swing.JPanel(); buttonBack = new javax.swing.JButton(); labelName = new javax.swing.JLabel(); labelPasswor...
[ "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" ] ] } }
optional uint32 ClientId = 1;
public Builder clearClientId() { bitField0_ = (bitField0_ & ~0x00000001); clientId_ = 0; onChanged(); return this; }
[ "public long getClientID ();", "public int getClientid() {\n return clientid;\n }", "private ClientIdServer() {\n idCounter = 1;\n }", "public long getClientId() {\n if (clientId == 0) {\n clientId = Math.abs(new Random().nextInt()); //random??\n }\n return ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Retrieves the forum's list of topic
public String listByForum() { forum = forumRemote.get(forum.getId()); grade = forum.getGrade(); course = forum.getCourse(); if (page < 1) { page = 1; } if (topicTitle == null) { topicTitle = ""; } boolean isAdministrator =...
[ "List<Forum> list();", "@WebMethod(operationName = \"retrieveTopics\")\n public ArrayList retrieveTopics() {\n //Creates an arraylist to return.\n ArrayList<String> topics = new ArrayList();\n try {\n //Connect by running the \"connect\" method.\n connect();\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Parse the command line arguments into System properties to be picked up by the application.
public static void mainParseArgs(final String[] argv) throws ParseException { //================================================================================ // Option parsing //================================================================================ final CommandLineParser cl...
[ "abstract public Properties processCommandLine (String[] argv) \n\t\tthrows Exception;", "private void processArguments(String[] args) {\n \tProperties prop = new Properties(); \r\n \ttry {\r\n \t\tprop.load(new FileInputStream(\"config.properties\"));\r\n \t\trepositoryURL = prop.getProperty(\"reposi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns all intervals containing the given date.
List<Interval> getIntervals(JaretDate date);
[ "List<Period> getIntersectingPeriods(Date startDate, Date endDate);", "public ArrayList<LocalDateTime> getAvailableIntervals(LocalDateTime d )\r\n {\r\n return schedule.getAvailableIntervals(d);\r\n }", "private void getIntervals() {\r\n ZonedStockDateTime todayStart = new ZonedStockDateTime...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Clears the value of the 'Title' field.
public com.feedutil.schema.FeedData.Builder clearTitle() { Title = null; fieldSetFlags()[1] = false; return this; }
[ "private void clearTitle() {\n \n title_ = getDefaultInstance().getTitle();\n }", "public Builder clearTitle() {\n bitField0_ = (bitField0_ & ~0x00000001);\n title_ = getDefaultInstance().getTitle();\n onChanged();\n return this;\n }", "private void cl...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
covert 73 to 01:13 or 01'13"
public static String convertSecondTo000String(long sumSecond, boolean useColon) { String minuteString = String.valueOf(sumSecond / 60); String secondString = sumSecond % 60 > 9 ? "" + sumSecond % 60 : "0" + sumSecond % 60; return useColon ? (minuteString + ":" + secondString) : (minuteString ...
[ "static String timeConversion(String s) {\n \t\t String complete = \"\";\n \t\t\tchar [] c_conversion = {};\n \t\t\tc_conversion = s.toCharArray();\n \t\t\tint size = c_conversion.length; \n \t\t\tchar [] receive = {c_conversion[size-2],c_conversion[size-1]};\n \t\t\tString pm = new String(receive);\n \n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Search View controller to be used by GfycatPickerFragment.
public interface SearchController { /** * @param query A query string to show in Search View. */ void setSearchQuery(String query); /** * @return Returns current search query. */ String getSearchQuery(); /** * @param searchControllerListener Search View events listener. ...
[ "public void search(View v) {\n }", "public FindFormController(SearchFormView form) {\r\n this.searchForm = form;\r\n }", "public PatientSearchView getPatientSearchView();", "private void initSearchController() {\n this.searchController.setOnSearchInputEnter(s -> {\n ArrayList<E...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets if this is a custom importer. For custom importers added dynamically to JabRef, this will be set automatically by JabRef.
public final void setIsCustomImporter(boolean isCustomImporter) { this.isCustomImporter = isCustomImporter; }
[ "@Override\n\tpublic void addImporter(SheetImporter importer) {\n\t\t\n\t}", "public void init() {\n\t\tgetContext().registerFeature(this, \"dofwimport\", null, getName());\n\n\t}", "public Object visit(ASTImportDeclaration decl,Object data) {\n \t\tif ( decl.getImportedName().endsWith(\"Boolean\") && ! decl.ge...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Different from other 3in1 switching methods, it can readjust the display interface in the same state of 1in1.
public void switch_3in1_fft(boolean ffton) { boolean xyon = dh.getWaveFormManager().getXYView().isOn(); ffton |= xyon; ChartScreen cs = mw.getChartScreen(); cs.update3in1(ffton); updateBtn_3in1ToolTip(I18nProvider.bundle()); }
[ "private void switchToPreviousDisplayable () {\nDisplayable __currentDisplayable = getDisplay ().getCurrent ();\nif (__currentDisplayable != null) {\nDisplayable __nextDisplayable = (Displayable) __previousDisplayables.get (__currentDisplayable);\nif (__nextDisplayable != null) {\nswitchDisplayable (null, __nextDis...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
repeated .hadoop.yarn.StringLongMapProto application_preempted_resource_usage_map = 13;
public int getApplicationPreemptedResourceUsageMapCount() { return applicationPreemptedResourceUsageMap_.size(); }
[ "public long getActiveHugeAllocations();", "@Test\n public void testMapReduce() throws IOException {\n String userAgentStr = \"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0)\";\n mapReduceDriver.withInput(new LongWritable(), new Text(\"0\\t1\\t2\\t3\\t\" + userAgentStr + \"\\t5\\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test of saveOrUpdatePlayer method, of class playerService.
@Test public void testSaveOrUpdatePlayer() { }
[ "public void savePlayer(Player player)\n\t{\n\t \n\t}", "public static void savePlayer(Player player) {\n Account account = getPlayerAccount(player);\n account.save(player);\n }", "@Test\n\tpublic void saveOrUpdateTestCase()\n\t{\n\t\t\n user.setId(\"Bhavani6a1a\");\n\t\tuser.setName(\"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column world.name
public String getName() { return name; }
[ "public String getColumnName()\n {\n return m_name;\n }", "public String getWorldName()\n {\n return this.otgDimWorldInfo.getWorldName();\n }", "@Basic\n @Column(name = \"name\")\n public String getName() {\n return name;\n }", "public String getFullyQualifiedDBColumnName...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column xt_person_family.social_id
public void setSocialId(String socialId) { this.socialId = socialId; }
[ "public Long updateSocial(@NotNull Social social) {\n Session session = SessionFactoryHelper.getOpenedSession();\n try {\n session.beginTransaction();\n session.update(social);\n session.getTransaction().commit();\n session.close();\n logger.info(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method corresponds to the database table sys_log
int updateByPrimaryKeyWithBLOBs(SysLogWithBLOBs record);
[ "@Override\r\n\tpublic List<LogBean> queryLog() {\n\t\treturn (List<LogBean>) DBUtil.select(\"select * from tb_log order by tb_log.logDate desc\", LogBean.class);\r\n\t}", "@Insert({\n \"insert into `trade_order_log` (log_id, order_no, \",\n \"guide_id, guide_name, \",\n \"log_type, op_type, ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the boss value for this StudentInfo.
public boolean isBoss() { return boss; }
[ "public int bossY(){\n return boss.getY();\n }", "boolean getBoss() {\n return isBoss;\n }", "public BossBar getBar(){\n\t\treturn this.bossBar;\n\t}", "public int getBossBarDelay() {\r\n\t\treturn bossBarDelay;\r\n\t}", "public boolean isBoss() {\n \tswitch(currentType) {\n \t\tca...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Cells > Cell, Cells. | \empty. First: [flag: ""] Follow: [flag: ""]
void parseCells(ArrayList<Object> argList) throws KSParsingErrorException, KSInternalErrorException { current = scanner.lookAhead(); if (current.lexeme.equals("<cell>")) { ArrayList<Object> argListCopy = new ArrayList<Object>(argList); parseCell(argListCopy); ...
[ "public void flagCell() {\n\t\tthis.isFlagged = true;\n\t}", "public Cell() {\n\t\tthis.mineCount = 0;\n\t\tthis.isFlagged = false;\n\t\tthis.isExposed = false;\n\t\tthis.isMine = false;\n\t}", "private void initializeStartCell()\r\n {\r\n cells[0][0].walls[TOP] = false;\r\n cells[0][0].walls[L...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
String date = this.queryField(conn, "SELECT cDate FROM tIn WHERE cId=?", idPack); System.out.println(date);
private void processContent(Connection conn, Long idPack) throws SQLException, ParseException { List<Report> reports = buildReports(conn, idPack); buildOtherInfo(conn, reports, idPack); done(conn, idPack); }
[ "public String getBookingDate(String bookingNumber){\n String sql = \"Select booking_date from Booking where booking_number = ? \";\n PreparedStatement preparedStatement = null;\n ResultSet resultSet = null;\n String result = \"\";\n try{\n preparedStatement = this.conn...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
jhipsterneedleentityaddfield JHipster will add fields here
public Long getId() { return id; }
[ "@Override\n public void editNewlyAddedField() {\n }", "public void createFields() {\n }", "public EntityInfoBuilder<T> addField(String fieldPath) {\n String columnName = fieldPath.toLowerCase().replaceAll(\"\\\\.\", \"_\");\n return addField(fieldPath, columnName, false);\n }", "@Ov...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method clicks on Yes, I'm Sure button
private void clickOnYesImSure() { element("inp_yes").click(); logMessage("User clicks on Yes, I'm Sure button"); }
[ "public void clickOnYes()\n\t{\n\t\tWebElement yes = driver.findElement(yesPopUp);\n\t\tyes.click();\n\t}", "private void clickOnYes() {\n\t\twait.waitForElementToBeVisible(element(\"btn_symYes\"));\n\t\telement(\"btn_symYes\").click();\n\t\tlogMessage(\"User clicks on 'Yes' from symptom...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__Route__Group__17__Impl" $ANTLR start "rule__Route__Group__18" InternalUberDsl.g:3592:1: rule__Route__Group__18 : rule__Route__Group__18__Impl rule__Route__Group__19 ;
public final void rule__Route__Group__18() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalUberDsl.g:3596:1: ( rule__Route__Group__18__Impl rule__Route__Group__19 ) // InternalUberDsl.g:3597:2: rule__Route__Group__18__Impl rule__Route_...
[ "public final void rule__Task__Group__17() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalKPIGenerator.g:1353:1: ( rule__Task__Group__17__Impl rule__Task__Group__18 )\n // InternalKPIGenerator.g:1354:2: rule__Task__Group__1...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Mutes the notification sounds of the device
public static void muteNotifications(Context context) { AudioManager manager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE); manager.setStreamMute(AudioManager.STREAM_NOTIFICATION, true); DeLog.d(TAG, "Muting notifications"); }
[ "private void soundNotification() {\n try {\n Ringtone r = RingtoneManager.getRingtone(WifiP2pServiceImpl.this.mContext, RingtoneManager.getDefaultUri(2));\n r.setStreamType(5);\n r.play();\n if (((AudioManager) WifiP2pServiceImpl.this.mContext....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adds the provided module classes to the list of modules to start with the application context.
IAmbethConfiguration withApplicationModules(Class<?>... moduleTypes);
[ "protected static void startModules()\r\n {\r\n for(ApplicationContextModule module : modules.values())\r\n {\r\n boolean started = false;\r\n try\r\n {\r\n module.start();\r\n }\r\n catch(Exception e)\r\n {\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the employee masters before and after the current employee master in the ordered set where createBy = &63;.
public com.hrms.model.EmployeeMaster[] findBycreateBy_PrevAndNext( long employeeMasterId, int createBy, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.hrms.NoSuchEmployeeMasterException, com.liferay.portal.kernel.exception.SystemException;
[ "public com.hrms.model.EmployeePreviousCompany fetchBycreateBy_Last(\n\t\tlong createBy,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;", "@Override\n\tpublic long getCreateBy() {\n\t\treturn _employeePreviousCompany.getCre...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
is the cell next to this one flooded but this one is not
boolean stillUp() { return !this.isFlooded && (this.left.isFlooded || this.right.isFlooded || this.top.isFlooded || this.bottom.isFlooded); }
[ "boolean hasCellY();", "public boolean isCell() {\n return MXLibrary.INSTANCE.mxIsCell(this);\n }", "boolean hasNextCell() {\n\t\t\treturn false;\n\t \t\n\t }", "public boolean hasNextCell() {\n\t\treturn false;\n\t}", "private boolean slideLeft(Blank blank) {\n\n return blank.getCol(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a new lambda predicate that is applied to each tuple.
public LambdaPredicate(final DoubleFunction<Boolean> expression, final int attributePosition) { this.type = 1; this.expression = expression; this.attributePosition = attributePosition; }
[ "public static <T1, T2, T3> \n Predicate3<T1, T2, T3> asPredicate(Lambda3<? super T1, ? super T2, ? super T3, ? extends Boolean> lambda) {\n return new LambdaPredicate3<T1, T2, T3>(lambda);\n }", "public UnaryReplacer(final Predicate<UnaryTupleOperator> thePredicate) {\n\t\tmPredicate = thePredicate;\n\t}"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Convert a numeric index, to an Excel column.
private String toColumn(final int index) { final StringBuilder result = new StringBuilder(); final int first = index / 26; final int second = index % 26; if (first > 0) { result.append((char) ('A' + (first - 1))); result.append((char) ('A' + (second - 1))); ...
[ "ObjectWriter column(int colIndex);", "public static String excelColIndexToStr(int columnIndex) {\r\n if (columnIndex <= 0) {\r\n return null;\r\n }\r\n String columnStr = \"\";\r\n columnIndex--;\r\n do {\r\n if (columnStr.length() > 0) {\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns string representation of Value.
String asString();
[ "public String valueAsString() {\n return value.toString();\n }", "public String toString() {\n return String.valueOf(value);\n }", "public String getValueAsString() {\n return value.toString();\n }", "public String toString()\n\t\t\t{\n\t\t\t\treturn String.format(\"%s\"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructs a default exception message includes the conversation ID.
public static String generateExceptionMsg(WebDriver driver, String message) { String msg = (message == null ? "" : message); if (driver != null) { String url = driver.getCurrentUrl(); if (url != null && !url.isEmpty()) { msg = msg.concat(" ").concat(url); } Utils utils = getInstance(driver); ...
[ "public MutiMessageException()\n {\n super();\n }", "public CreateAuthKeyException()\r\n {\r\n super(DEFAULT_MESSAGE, null, DEFAULT_LOGLEVEL);\r\n }", "public ExceptionMetier(String message) {\n super(message);\n }", "public BaseException(List messages, Throwable cause)\r\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method is called at class initialization time to define the value for constant member DEFAULT_PATTERN_CHARS. All other methods needing this data should just read that constant.
private static String initDefaultChars() { return new DateFormatSymbols(Locale.US).getLocalPatternChars(); }
[ "private void initializePattern(){\n\t\tthis.showSchemaPattern = Pattern.compile(this.showSchemaExp, Pattern.MULTILINE | Pattern.DOTALL |Pattern.CASE_INSENSITIVE);\n\t\tthis.usePattern = Pattern.compile(this.useExp, Pattern.MULTILINE | Pattern.DOTALL |Pattern.CASE_INSENSITIVE);\n\t\tthis.showTablePattern = Pattern....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
when user authenticated success, but no sec_user related, this maybe a new user login from 3rd party service.
public void onAuthenticateNewUserLogged(HisUserContext userContext, LoginContext loginContext, LoginResult loginResult, IdentificationHandler idHandler, BusinessHandler bizHandler) throws Exception { // Generally speaking, when authenticated user logined, we will create a new account for him/her. // you need ...
[ "@Override\n public void responseSucc() {\n try {\n userLoginSuccess();\n } catch (Exception e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Container's getter for ProdukItemView1.
public ViewObjectImpl getProdukItemView1() { return (ViewObjectImpl)findViewObject("ProdukItemView1"); }
[ "public ViewObjectImpl getRealisasiItemPaketView1() {\n return (ViewObjectImpl)findViewObject(\"RealisasiItemPaketView1\");\n }", "public T getItem1() {\n\n\t\treturn this.item1;\n\t}", "public ViewObjectImpl getDiscountQuantity1() {\n return (ViewObjectImpl) findViewObject(\"DiscountQuantity1\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Template method for subclass to apply more checking before any validations.
protected void customizeValidateTicketBefore(Context respCtx, BaseTicket clientTicket, Game game, BaseFunType funType, BaseOperationParameter opParam) throws ApplicationException { // Template method for subclass }
[ "@Override\n protected void doAdditionalValidation(final ValidationContext context) {\n }", "@Override\n\tpublic void validCheck() {\n\t\t\n\t}", "@Override\r\n\tpublic boolean validate() {\n\t\treturn logic();\r\n\t}", "protected CustomValidator() { }", "boolean needValidate();", "private Validatio...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void onClick(View v) { if (mBusinessRss.isItemStarred(_ItemTitle)) { mBusinessRss.setItemUnstarr(_ItemTitle); showToast("set unstarr"); } else { mBusinessRss.setItemStarr(_RssName, _ItemTitle, _Pubdate); showToast("set starr"); } }
[ "@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" ] ] } }
Creates a new instance of RevenueSource
public SubProduct() { }
[ "public Revenue() {}", "public TotalRevenueView(){\n totalRevenue = new Amount();\n }", "@NonNull\n @Override\n public DataSource<Integer, Restaurant> create() {\n return new RestaurantDataSource();\n }", "protected Source createProductsSource() {\r\n\t\tSource productSource;\r\n\t\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets maiden name, and check if match regex to ensure only female can have maiden name
public void setMaidenName(String maidenName) { if (maidenName.trim().matches(expression)) { if (this.gender == Gender.FEMALE){ this.maidenName = maidenName.trim(); }else{ throw new IllegalArgumentException("Maiden name is only for FEMALE"); ...
[ "protected boolean setMiddleName(String m){\n\t\tboolean name_valid = true; //stores whether m is correct input for a name\n\t\tname_valid = nameValid(m); //checks if m is correct input for a name. Returns false if f contains non-alphabet characters.\n\t\t\n\t\t/*Set middlename if f contains no invalid character*/\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ renamed from: b
public String a(StringKey stringKey, String str) { StringBuilder stringBuilder = new StringBuilder(); stringBuilder.append(stringKey.toString()); stringBuilder.append("|"); stringBuilder.append(str); str = stringBuilder.toString(); if (elv.containsKey(str)) { ...
[ "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" ] ] } }
Called just before this sink is hidden.
public void onHide() { }
[ "protected void onInvisible() {\n LogUtil.v(\"do onInvisible\");\n }", "private void setUnVisible() {\n\t}", "public void setHidden() {\n hidden = true;\n }", "@Override\n public void onVisible() {}", "public void onHidden() {\n\t\treleaseFocus();\n\t}", "private void m17194H() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ / / Service Methods / / / / CCityListActivity.ServiceConnect() /
private void ServiceConnect() { Log.d( CCityListActivity.class.getSimpleName(), "ServiceConnect()" ); Intent service = new Intent( this, CWeatherRetrieverService.class ); m_ServiceConnection = ( new ServiceConnection() { @Override public void on...
[ "public void connect() {\n\t\t/*if (this.ctx.checkCallingOrSelfPermission(Permissions.RCS_USE_CHAT) != PackageManager.PERMISSION_GRANTED) {\n\t\t\tthrow new SecurityException(\" Required permission RCS_USE_CHAT\");\n\t\t}*/\n \tLogger.i(TAG, \"connected() entry\");\n \tIntent intent = new Intent();\n C...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Delete de tous les produits.
public static int deleteAllProduit() { LOG.debug("Requete a la base : Delete de toutes les produits."); EntityManager em = null; int nb = 0; try { em = JpaUtils.getEntityManagerFactory().createEntityManager(); em.getTransaction().begin(); Query query = em.createNamedQuery("Produit.removeAll"); nb...
[ "public void delete() {\n\t\t\n\t\t// prima controlla se ci sono prenotazioni collegate\n\t\tboolean cont=true;\n\t\tfor (Object id : getTable().getSelectedIds()) {\n\t\t\tBaseEntity entity=getTable().getEntity((Long)id);\n\t\t\tList listaPren = CompanyQuery.getList(Prenotazione.class, Prenotazione_.scuola, entity)...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns an integer from the range, start and end inclusive.
private static int randomInt(int min, int max) { int range = max - min + 1; return (int) (Math.random() * range) + min; }
[ "public Gen<Integer> between(final int startInclusive,\n final int endInclusive) {\n ArgumentAssertions.checkArguments(startInclusive <= endInclusive,\n \"There are no Integer values to be generated between (%s) and (%s)\",\n startInclusive, endInclusive);\n return Generate.range(startInclu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test Adding a Ticket
@Test public void ifTicketNotAddedThenPass() { // given GarageConfiguration garage = GarageConfiguration.getInstance(); garage.setTotalSpaces(1); TicketDao dao = TicketDao.getInstance(); Ticket ticket = new Ticket(); Ticket ticket2 = new Ticket(); // when dao.add(ticket); Boolean result = dao.add(t...
[ "@Test\n public void testBuyTicket(){\n boolean result = ticketSeller.buyTicket(ticketNr1);\n assertTrue(result);\n }", "private void createTickets()\n {\n aylesburyTicket = new Ticket(\"Aylesbury\" , 220);\n amershamTicket = new Ticket(\"Amersham\" , 300);\n highWycomb...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column HEALTHY_PLAN.HEALTHY_ID
public void setHealthyId(BigDecimal healthyId) { this.healthyId = healthyId; }
[ "public void setHealthPlanID(int healthPlanID)\n {\n this.healthPlanID = healthPlanID;\n }", "public int getHealthPlanID()\n {\n return healthPlanID;\n }", "@Update(sql = QueryStorage.CHANGE_PATIENT_HEALT)\n\tvoid changeHealth(long idPatient);", "public void setHT_FamilyGroupEmployee...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
repeated .TW.Tron.Proto.Transaction.Result ret = 5;
public java.util.List<? extends org.tron.protos.Protocol.Transaction.ResultOrBuilder> getRetOrBuilderList() { if (retBuilder_ != null) { return retBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(ret_); } }
[ "wallet.core.jni.proto.Tron.Transaction getTransaction();", "transfer_protobuf.Commands.Command.Response getResponse();", "com.nicktate.storm.TransactionProto.Transaction getTransaction();", "wallet.core.jni.proto.Tron.TransferContract getTransfer();", "ppl.delite.runtime.messages.Messages.ReturnResultOrBui...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void onClick(View v) { hqyhm = yhm.getText().toString(); hqmm = mm.getText().toString(); db = Denglujiemian.this.openOrCreateDatabase("my.db3", Context.MODE_PRIVATE, null); db.execSQL("create table zhucexinxi(_id integer" + " primary key autoincrement," + " username...
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public boolean equals(SourceLocation obj, SourceLocation others) { return obj.equals(others); }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the current registration ID for application on GCM service. If result is empty, the app needs to register.
private String getRegistrationId(Context context) { final SharedPreferences prefs = getGCMPreferences(context); String registrationId = prefs.getString(PROPERTY_REG_ID, ""); if (registrationId.isEmpty()) { Log.i("GCMfoo", "Registration not found."); return ""; } ...
[ "private static String getRegistrationId(Context context) {\n final SharedPref prefs = new SharedPref(context);\n String registrationId = prefs.getString(PROPERTY_REG_ID, \"\");\n if (registrationId.length() == 0) {\n Log.v(TAG, \"Registration not found.\");\n return \"\";...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets block player is looking at (within 5 blocks)
public @Nullable Location getTargetLocation(@NotNull Player sender) { Block block = sender.getTargetBlock(5); // Make sure it's within 5 blocks and obtainable, if not stop here with error if(block == null || block.getType().isAir()) { error("Unable to find block, are you within...
[ "public int getBlocks() \r\n\t{\r\n\t\treturn game_blocks;\r\n\t}", "private int blockWin(TicTacToeGame g) \n { \n int potentialWin = 0; // number of potential wins by X\n int blockPosition = -1;\n \n // ---------- 1 4 7 ---------------------\n if (g.isX(1) && g.isX(4))\n {\n if (g.availab...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional string location = 6;
public java.lang.String getLocation() { java.lang.Object ref = location_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8()...
[ "public void setLocation(String value)\n {\n _location = value;\n }", "public void setLocation(String location){\r\n this.location = location;\r\n }", "public void setLocation(String loc)\n {\n location = loc;\n }", "public String getLocation(){return location;}", "public...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Find First By Vehicle And End Date Is Null Order By Start Date
Park findFirstByVehicleAndEndDateIsNullOrderByStartDate(Vehicle vehicle);
[ "private Date doFirstBetween(Date start, Date end) {\n Calendar c = this.calendar;\n synchronized (c) {\n c.setTime(start);\n int year = c.get(1);\n int mon = c.get(2);\n if (mon > this.month) {\n year++;\n }\n Date resul...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Execute user event: e14152
public void rf152( ) { e14152 (); if ( (GXutil.strcmp("", httpContext.wjLoc)==0) && ( httpContext.nUserReturn != 1 ) ) { if ( 1 != 0 ) { if ( GXutil.len( WebComp_Webcomp1_Component) != 0 ) { WebComp_Webcomp1.componentstart(); } ...
[ "void onDesiredEventProcessed() {\n }", "@Override\r\n\tpublic void onEvent(Object e) {\n\t}", "@Override\n public void event() { }", "@Override\n public void event() {\n }", "void issueLaunchEvent();", "@DISPID(111) //= 0x6f. The runtime will prefer the VTID if present\r\n @VTID(12)\r\n vba...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void serviceInactive(ReceivableService arg0) { }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
private ObservableList gescandeArtikels = FXCollections.observableArrayList() ;
public KlantArtikelOverviewPane(Controller controller) { this.controller = controller; this.simpleStringProperty = new SimpleStringProperty(); this.afsluitString=new SimpleStringProperty(); this.setPrefHeight(150); this.setPrefWidth(300); controller.registerDBObserver(t...
[ "public ObservableList<Licencia> agarrarLasLicencias(){\n ObservableList<Licencia> licObservable = FXCollections.observableArrayList();\n licObservable.addAll(tempListaDeLicencias);\n return licObservable;\n }", "@Override\n public void initialize(URL url, ResourceBundle rb){\n /...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Created by zxp on 2017/7/24.
public interface Drawable { /** * 设定绘制位置 * * @param x 绘制x坐标 * @param y 绘制y坐标 */ void setDrawPos(int x, int y); /** * 获取绘制的x坐标 * * @return */ int getX(); /** * 获取绘制的y坐标 * * @return */ int getY(); /** * 清除位图内容 */ ...
[ "@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" ] ] } }
Created by sdyang on 2016/8/1.
@FeignClient(value = "hello-service", fallback = HelloClientHystrix.class) public interface HelloClient { @RequestMapping(method = RequestMethod.GET, value = "/hello") public String hello(@RequestParam(value = "name") String name); }
[ "@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\t\tpublic void kayit1() {\n\t\t\t\n\t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column FMSAPPL.FX_SETTLEMENT_EXPIRY_DATE
public void setFX_SETTLEMENT_EXPIRY_DATE(Date FX_SETTLEMENT_EXPIRY_DATE) { this.FX_SETTLEMENT_EXPIRY_DATE = FX_SETTLEMENT_EXPIRY_DATE; }
[ "public void setSTS_EXPIRY_DATE(Date STS_EXPIRY_DATE) {\r\n this.STS_EXPIRY_DATE = STS_EXPIRY_DATE;\r\n }", "public void setExpiryDate(Date value) {\r\n setAttributeInternal(EXPIRYDATE, value);\r\n }", "public abstract void setExpirationDate(Date expirationDate);", "private void setDate(PK...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override protected void execute(ExecutionContext ec) { final int numero = defaultParam("numero", ec, 3); if (numero < 0 || numero > names.size()) { throw new IllegalArgumentException(String.format("number must be in range [0,%d)", names.size()+"SIZE = "+names.size())); } LocalDate fechaNacimientos = n...
[ "@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" ] ] } }
private static ActionMode mode;
public static void hide(Activity activity) { ((AppCompatActivity)activity).getSupportActionBar().hide(); }
[ "protected ActionMode getActionMode() {\n return actionMode;\n }", "public void onDestroyActionMode(ActionMode mode) {\n\n }", "@Override\r\n\tpublic void onActionModeStarted(ActionMode mode) {\n\t\tactivity.onActionModeStarted(mode);\r\n\t}", "private void setActionMode(@ActionMode i...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
int window = FirstFragment.window_state;
@GET("window") Call<Integer> getWindow();
[ "Fragment top();", "protected abstract int getFragmentId();", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t\t\n\t\t//为了指示宿主activity,当前显示的是哪个fragment\n\t\tActivity_NewGame activity_NewGame = (Activity_NewGame)getActivity();\t\t\n\t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Setter for property targetNamespace.
public void setTargetNamespace(String targetNamespace) { setAttribute(TARGET_NAMESPACE, targetNamespace); }
[ "public void setRestrictToTargetNamespace(boolean restrictToTargetNamespace)\n {\n this.restrictToTargetNamespace = restrictToTargetNamespace;\n }", "public Builder setNamespace(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n namespac...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Image venfi = new Image("venfipvb.png");
public static void alert(String mensaje) { Alert alert = new Alert(AlertType.INFORMATION); Stage stage = (Stage) alert.getDialogPane().getScene().getWindow(); // stage.getIcons().add(venfi); alert.setTitle("VENFI"); alert.setHeaderText(null); alert.setContentText(mensaje);...
[ "private Image createImage() {\n\t\tImageIcon icon = new ImageIcon(getClass().getResource(\"/images/Duke16.gif\"));\n\t\treturn icon.getImage();\n\t}", "Imagen createImagen();", "private void instantiateImages()\r\n\t{\r\n\t\tdefualtImg = new Image(getClass().getResourceAsStream(\"./Images/yellowball.png\"));\r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test the resolve method with some int values.
public void testResolve_Int() { URIResolver resolver = new URIResolver("/group/1892/home"); URIPattern p = new URIPattern("/group/{groupid}/home"); assertTrue(p.match(resolver.uri())); URIResolveResult r = resolver.resolve(p); assertEquals(URIResolveResult.Status.RESOLVED, r.getStatus()); ...
[ "@org.junit.jupiter.api.Test\n void resolve_complex() {\n\n int a=2,b=3,c=4;\n Assertions.assertEquals(1, MyMath.resolve(a+\"+\"+b+\"-\"+c));\n\n\n }", "@Test(groups = \"dunno\")\n public void test39() {\n solve(39);\n }", "@Test\n public void testQ16()\n {\n Assert...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Experiment IDs the current request belongs to.
public java.util.List<java.lang.String> getRequestMetadataExperimentIds() { return requestMetadataExperimentIds; }
[ "public String getExperimentID() {\n return iExperimentID;\n }", "public int getApplicableServerExperimentIdCount() {\n return applicableServerExperimentId_.size();\n }", "public Long getIdRequests() {\r\n\t\treturn idRequests;\r\n\t}", "private Set<ParmID> requestedParms(List<SamplerRequest> re...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get gravity model name.
public String getGravityModel() { return gravityModel; }
[ "public java.lang.String getGbmodel() {\n return gbmodel;\n }", "public String getModelName() {\n\t\treturn myModel.getName();\n\t}", "@Override\r\n\tpublic String modelName() {\n\t\treturn modelName;\r\n\t}", "public com.google.protobuf.StringValue getModelName() {\n if (modelNameBuilder_ ==...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Noop because this factory is not restartable.
public void checkRestart() {}
[ "@Override\n\tprotected void restartImpl() {\n\t}", "public final void restart()\n {\n }", "public void requestRestart() {}", "@Override\n\tprotected void doRestart() {\n\t\t\n\t}", "@Override\r\n\tpublic void Restart() {\n\t\t\r\n\t}", "public void restart() {\n start();\n }", "protected abstract...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Makes an AET name that represents all the open namespaces, but no "name" use this when we need to lookup a property, but we aren't sure what namespace it's in. example: this[propertyName]
private static Name makeNameForPropertyLookup( ICompilerProject project, ASScope scope) { Set<INamespaceDefinition> namespaceSet = scope.getNamespaceSet(project); ArrayList<Namespace> ns_set = new ArrayList<Namespace>(namespaceSet.size()); for (INamespaceDefinition namespace : ...
[ "final public String buildNamespace() {\n return namespace;\n }", "NC makeNsName (String ns, NC except, L loc, A anno);", "private String getNamespaceString() {\n \t\t// EXAMPLE: XMLNAMESPACES('http://www.kaptest.com/schema/1.0/party' AS\n \t\t// pty)\n \t\t//\n \n \t\tif (getNamespaceMap().isEmpty()) {\n \...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public List<Product> findAllByCategory(String category) { boolean flag = false; List<Product> products=new ArrayList<>(); try { String data = "select * from product where category=?"; PreparedStatement ps = MyConnection.getConnection().prepareStatement(data); ps.setString(1, categ...
[ "@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 method allows to stop the music
public void stopMusic(){ if(clip != null) { clip.stop(); estEnLecture = false; } }
[ "public void stopMusic() {\n clip.stop();\n }", "public void stopMusic(){\n playStop = 0;\n }", "public void stopMusic(){\n\t\tpause = true;\n\n\t\t}", "public void stop(){\n\t\tif (music != null){\n\t\t\ttry {\n\t\t\t\tS3Log.info(TAG, \"Stop play: \" + musicFileName);\n\t\t\t\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
make constructor private as we only need one instance
protected WurstTypeInt() { super("integer"); }
[ "private PrivateConstructor() { \n \t\n }", "private Factory() {\n\t}", "private Management() {\r\n\t}", "private Factory() { }", "private CSCreator() {\n }", "private SimpleTagParamCacheManager(){\n //AssertionError不是必须的. 但它可以避免不小心在类的内部调用构造器. 保证该类在任何情况下都不会被实例化.\n //see 《Effective ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create an issue by EJB service
private String createIssueEjb(final String path, IssueDto issueDto) throws Exception { final Sequence sequence = mockery.sequence("sequence1"); mockery.checking(new Expectations() { { oneOf(membership).getProfilePathForConnectedIdentifier(); will(returnValue(USER_PATH)); inSequence(sequence); ...
[ "com.ardais.bigr.iltds.beans.ConsentOperation create() throws javax.ejb.CreateException, java.rmi.RemoteException;", "public void ejbCreate()\r\n throws CreateException\r\n {\n }", "com.ardais.bigr.iltds.beans.Project create(java.lang.String argProjectid) throws javax.ejb.CreateException, java.rmi.RemoteEx...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return the value associated with the column: email
public java.lang.String getEmail () { return email; }
[ "public String getEmail(){\n return find(emailLocator).getAttribute(\"value\");\n\n }", "public String getEmail(){return email.get();}", "public String getEmail() {\n return email.get();\n }", "public java.lang.String getEmail()\n {\n synchronized (monitor())\n {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Created by Victor Ikoro on 7/29/2017.
public interface AccessTokenValidator { AccessTokenValidationResult validate(String accessToken) ; }
[ "@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" ] ] } }
Die Methode zum auswerten was angesehen werden soll die dann die richtige beschreibung auf die Ausgabe schreibt
public GameStatus execute(Player player) { if (hasSecondWord()) { // Inventar if (getSecondWord().equals("inventar")) { if (player.isThereanyvisible()) { Game.textOut.lineEntry("Ich habe kein Inventar"); } else { Game.textOut.entry("In dein Inventar befindet sich: "); player.getAl...
[ "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void eintragLoeschen() {\n\t\t\r\n\t}", "public void abmelden() {\r\n zeichenfenster.grafikEntfernen(this);\r\n }", "@Override\n public void extornar() {\n \n }", "@Override\n\t\t\t\tpublic void pintate() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Methods that are intended to be used by the user interfaces and that are delegated in the current state of the finite state machine
public void setNumberPlayers(int num) { gameModel.setNumberPlayers(num); setChanged(); notifyObservers(); }
[ "@Override\n\tpublic void getState() {\n\n\t}", "public void enterState() {}", "@Override\n \tprotected void initStateMachine() {\n \t}", "@Override\n\t\tpublic void onStateMachineStarted() {\n\n\t\t}", "public interface State {\n void insertIcon();\n\n void returnIcon();\n\n void turnCrank();\n\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The following methods are used by t:dataTable for sorting.
public String getSortColumn() { return sortColumn; }
[ "@Override\n\tpublic void sortAsc() {\n\t\t\n\t}", "public void sortChangePre ();", "@Override\r\n\tprotected void auxSort() {\n\t\t\r\n\t}", "public void sortChanged ();", "void onSort();", "@VTID(16)\r\n excel.XlSlicerSort getSortItems();", "public void selectionSort(){\n \n }", "TagIndex...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates an instance of ManagedClusterPodIdentityProfile class.
public ManagedClusterPodIdentityProfile() { }
[ "public static ProfileCreator getInstance() {\n\t\t// here can be some condition checking\n\t\treturn new ProfileCreator();\n\t}", "public Coordinator(Cluster pCluster)\n \t{\n \t\t// use the HRMController reference and the hierarchy level from the cluster\n \t\tsuper(pCluster.mHRMController, pCluster.getHierarch...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
return getTagSet().stream().map(t > t.getCategory()).collect(Collectors.toSet());
public Set<Category> getCategories() { Set<Category> categories = new HashSet<>(); for (Tag tag : getTagSet()) { categories.add(tag.getCategory()); } return categories; }
[ "public Set<Topic> asSet();", "Set<Tag> getTags();", "TagSet getCategorySet() {\n return categoryTagSet;\n }", "public Set<Category> getCategories();", "protected Set<T> getCompletedTags() {\n\t\tif (source.localMap().isEmpty()) { return Collections.emptySet(); }\n\n\t\t// return intersection of a...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
contains the purchased status of items Creates a shopping list with a chosen id and name. Used when loading from database.
public ShoppingList(UUID id, String name, List<ShopItem> items, List<Boolean> purchased){ mId = id; mName = name; mItems = items; mPurchased = purchased; }
[ "public Shoppinglist(String sl_id, String name, String description, String invitelink, String color) {\n this.sl_id = sl_id;\n this.name = name;\n this.description = description;\n this.invitelink = invitelink;\n this.color = color;\n }", "public List<ShoppingItem> getShoppin...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates the remove button
private void createRemoveReferenceInput() { JPanel panel = new JPanel(); panel.setBorder(new LineBorder(new Color(0, 0, 0))); panel.setBackground(Constants.BACKPANEL); removeButton = new JButton("Remove"); removeButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e...
[ "public void removeButton()\n {\n \n }", "private JButton getRemoveButton() {\n\t\tif (removeButton == null) {\n\t\t\tremoveButton = new JButton();\n\t\t\tremoveButton.setText(\"Poista\");\n\t\t\tremoveButton.setActionCommand(\"remove\");\n\t\t\tremoveButton.setVisible(false);\n\t\t\tremoveButton.add...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the imported package name.
public PackageName getImportedPackageName() { return importedPackageName; }
[ "public String getPackage() {\n return StringUtil.getPackage(getQualifiedClassName());\n }", "String getPackage_name();", "public String getImportPackage() {\n return importPackage;\n }", "@objid (\"23bcb486-39e3-4cdc-be59-6a97b2b5ad82\")\n Package getImportedPackage();", "public Stri...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
query for the referenceBy info
private void updateReferenceInfo(PluginPackageEntityDto inputEntityDto) { String packageName = inputEntityDto.getPackageName(); String entityName = inputEntityDto.getName(); int dataModelVersion = 0; Optional<PluginPackageDataModel> latestDataModelByPackageName = dataModelRepository.fin...
[ "private Object fetchReferenced(\n DatastorePersistentProperty referencePersistentProperty, ReadContext context, Set<Key> keys) {\n Class referencedType = referencePersistentProperty.getComponentType();\n return this.datastoreEntityConverter\n .getConversions()\n .convertOnRead(\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the model Earth shape for this GeoTessPosition.
public EarthShape getEarthShape() { return model.getEarthShape(); }
[ "public Ellipse2D getShape()\r\n {\r\n return new Ellipse2D.Double(x, y, xSize, ySize);\r\n }", "@Override\n public Shapes getShape() {\n return this.model;\n }", "public IShape getShape(){\r\n\t\t\r\n\t\treturn _shape;\r\n\t}", "public String getShape() {\n\t\treturn this.shape;\n\t}", "p...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Auto generated method signature
public edu.internet2.middleware.grouper.ws.soap_v2_5.xsd.AttributeDefNameSaveLiteResponse attributeDefNameSaveLite( edu.internet2.middleware.grouper.ws.soap_v2_5.xsd.AttributeDefNameSaveLite attributeDefNameSaveLite10) throws java.rmi.RemoteException ;
[ "default String getSignature() {\n StringBuffer sb = new StringBuffer();\n sb.append(getName());\n sb.append(\"(\");\n for (int i = 0; i < getNumberOfParams(); i++) {\n if (i != 0) {\n sb.append(\", \");\n }\n sb.append(getParam(i).describe...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
returnt the size of the questions array
public int getNumIndex() { return this.numIndex; }
[ "public int getSize(){\n\t\treturn this.question.size();\n\t}", "public int countQuestions() {\n // Log.d(TAG, \"countQuestions() called; returning \" + mQuestions.size());\n return mQuestions.size(); }", "public int numberOfAnswers(){\n return answers.size();\n }", "public int getLen...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Removes this node from the list. Links this node's predecessor and successor nodes.
public void remove() { if(next != null) // if not at tail { next.setPrev(prev); } if(prev != null) // if not at head { prev.setNext(next); } if(this == head) // if at head { head = next; } if(this == tail) // if at tail { ...
[ "public void remove()\n {\n this.next.prev = this.prev;\n this.prev.next = this.next;\n }", "public void remove()\n {\n \n this.getPrev().setNext(this.getNext());\n this.getNext().setPrev(this.getPrev());\n //nelems = nelems - 1;\n }", "public void remove() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
checking name of this graph
public static Graph makeGraph( Task task, String objectType, String propertyType, boolean addThisGraphToTask, boolean ignoreIt, String... comment) { if (objectType.contains(".")) throw new RuntimeException("Dot is not allowed in target object type signature " + objectType); Graph ne...
[ "public String getGraphName();", "public boolean isSetNameVertex() {\n return this.nameVertex != null;\n }", "private boolean isValidNodeName(String name) {\r\n return isValidName(name, true);\r\n }", "public boolean containsNode(String name) {\n //throw new UnsupportedOperationException(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Do nothing as the name indicated.
public void execute(AddressBook addressBook) { }
[ "public void doNothing(){\n\t\t\n\t}", "@Override\n\t\tpublic void name() {\n\t\t\tsuper.name();\n\t\t}", "private void clearName() {\n this.bitField0_ &= -5;\n this.name_ = getDefaultInstance().getName();\n }", "void clear(String _name);", "@Override\r\n\tpublic String name() {\n\t\treturn...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void onCheckedChanged(RadioGroup group, int checkedId) { int id=group.getCheckedRadioButtonId(); if (id ==R.id.bitrate_0_id) { MyLog.printf(TAG,"........................bitrateValue ID=0"); bitrateValue="11"; } else if (id ==R.id.bitrate_1_id) { MyLog.printf(TA...
[ "@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" ] ] } }
Associates the specified value with the specified key in the session attributes. If the session attributes previously contained a mapping for this key, the old value is replaced by the specified value.
public Object setSessionAttribute(final String _key, final Object _value) { return sessionAttributes.put(_key, _value); }
[ "public void setAttribute(String key, Object value)\n {\n _delegate.setAttribute(key, value);\n _sessionChecker.writeNotify(_sessionMap, key, value);\n }", "public void setAttribute(String key, Object value) {\n map.put(key, value);\n\t}", "public static void setValue(HttpS...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void deleteUser(Utilisateur utilisateur) { }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void Hide() { mSubView.setVisibility(View.GONE); }
[ "@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" ] ] } }
MUTATOR METHODS setActionListener setSpriteType setX setY setVx setVy setState Mutator method for specifying this Sprite's event handler for when the player clicks on it. Note addActionListener was deliberately used to avoid confusion, since each Sprite may only have one ActionListener param initListener the event hand...
public void setActionListener(ActionListener initListener) { listener = initListener; }
[ "public void setActionListeners();", "public void setActionListeners(ActionListener a) {\r\n\t\tfor (int i = 0; i < MAP_HEIGHT; i++) {\r\n\t\t\tfor (int k = 0; k < MAP_LENGTH; k++) {\r\n\t\t\t\tjb[i][k].addActionListener(a);\r\n\t\t\t}\r\n\t\t}\r\n\t\tpauseItem.addActionListener(a);\r\n\t\tsaveItem.addActionListe...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Created by wanglijun on 16/11/20.
public interface JoUserRepository extends JpaRepository<JoUser, Long> { /** * 根据openid查询是否已经有认证的vin码 * * @param openId * @return */ int getCountByWechatId(String openId); /** * 根据openid查询刚刚通过扫描经销商认证渠道的用户 * * @param openId * @return */ JoUser getJoUserBy...
[ "@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}", "Eisdiele() {\r\n\r\n\t}", "@Override\n\t\tpublic...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Called when the activity is first created.
@Override public void onCreate(Bundle icicle) { super.onCreate(icicle); intentGCM = new Intent(this, RegistrationIntentService.class); if(AppSharedPreferences.hasPhoneNumber(MainActivity.this, AppConstant.PREF_PHONE,false)){ setContentView(R.layout.activity_first_page); ...
[ "protected void onCreate() {}", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\t\n\t\tinitData();\n\t\n\t}", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\tULog.i(this, \"onCreate() \");\n\t\tinitData();\n\t}", "@Override\n public void onCreate () {\n super.onC...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Compare this subquery with another record for order.
@NotNull @CheckReturnValue @Support Condition lessOrEqual(Select<? extends R> select);
[ "public int compareTelt(CriterionBean o1, CriterionBean o2) {\r\n // Variable resultat.\r\n int result = 0;\r\n if (!this.invorder) {\r\n result = o1.getCriterionDefinition().getIdTElt().compareTo(o2.getCriterionDefinition().getIdTElt());\r\n } else {\r\n result = o...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a new ModelElementRecord for the database
protected ModelElementRecord newModelElementRecord(ModelElement modelElement, Integer simId) { ModelElementRecord record = myDb.getDSLContext().newRecord(MODEL_ELEMENT); record.setSimRunIdFk(simId); record.setElementName(modelElement.getName()); record.setElementId(modelElement.getId());...
[ "EPModel createEPModel();", "dbModel createdbModel();", "@Test(timeout=2000)\n\tpublic void newElementCreatedInDb() throws Exception {\n\t\t// GIVEN the database is clean\n\n\t\t// WHEN I insert new element to the database\n\t\tElementEntity elementTest = entityGenerator.elementEntity();\n\t\telementDao.create(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the first index of the selection.
public void setSelectStart(int selectStrt) { this.selectStrt = Functions.constrain(selectStrt, 0, length()); }
[ "public void setFirst(){\n Object obj;\n \n obj = firstElement();\n setSelectedItem(obj);\n }", "public void setSelection(int index) {\n\t\t// unselect old peg\n\t\tif(selected >= 0){ \n\t\t\tGraphicalPeg peg = pegs.get(selected);\n\t\t\tpeg.setSelection(false);\n\t\t}\n\t\t\n\t\t//...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }