query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
Updates agent's statistics based on the actual privacy setting and the estimation
public void updateAgentStats(int agentId, PrivacySetting ps, int[] estimation){ if(!agentStats.containsKey(agentId)){ Map<RelationType, Stats> temp = new HashMap<>(); for(RelationType rType : relationTypes) { Stats stats = new Stats(nDecision); stats.update(ps.getSharingDecision(rType).getId(), estimati...
[ "public void writeMoleStats() {\n userManager.setOrUpdateStatistics(getApplicationContext(), user, GameConstants.update);\n }", "public abstract void updateStatistics();", "@Override\n protected void calculateStatistics() {\n dRResultsController.setStatistics(dRAnalysisGroup);\n }", "pr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Verify the given reservation has been removed from the recurrence and linked to a new single meeting.
private void verifyRemovedFromRecurrence(final RoomReservation originalReservation, final RoomReservation updatedReservation) { Assert.assertNotSame(originalReservation.getUniqueId(), updatedReservation.getUniqueId()); Assert.assertNull(updatedReservation.getParentId()); Assert.asser...
[ "@Test(expected = ReservationNotFoundException.class)\n\tpublic void testDeleteReservation() throws ReservationNotFoundException {\n\t\t// TODO: add a second res that sould be let untouched\n\t\tReservation res1 = dataHelper.createPersistedReservation(USER_ID, new ArrayList<String>(), validStartDate,\n\t\t\t\tvalid...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method to log a purchase completed event
public static void logPurchaseCompleted(String currency, Double grandTotal, Integer quantity){ logPurchaseCompleted(currency, grandTotal, null, null, null, quantity, null, null, null); }
[ "public static void logPurchaseCompleted(String currency, Double grandTotal, Double total,\n Double shipping, Double tax, Integer quantity,\n String orderId, String receiptId, String productsku) {\n JSONObject p...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adds all the headers in the input to the list of banned headers. The input string should be comma separated e.g. "Server,Connection,Via" This method is normally called by the factory that is using this request handler.
public static void addBannedHeaders(String headers) { StringTokenizer tokenizer = new StringTokenizer(headers, ","); while (tokenizer.hasMoreTokens()) { bannedHeaders.add(tokenizer.nextToken().trim().toLowerCase()); } }
[ "public static void addBannedHeader(String header) {\n bannedHeaders.add(header);\n }", "public void addAllowedHeader(String allowedHeader) {\n\t\tif (this.allowedHeaders == null) {\n\t\t\tthis.allowedHeaders = new ArrayList<>(4);\n\t\t}\n\t\telse if (this.allowedHeaders == DEFAULT_PERMIT_ALL) {\n\t\t\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the partnername of this partner.
@Override public void setPartnername(String partnername) { model.setPartnername(partnername); }
[ "public void setPartnerName(String value)\n {\n partnerName = value;\n }", "public void setPartnerName(String partnerName) {\n this.partnerName = partnerName == null ? null : partnerName.trim();\n }", "public void setPartnerName(String partnerName) {\n\t\tthis.partnerName = partnerName ==...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Verify if thre're some empty parameter before send to the databse the statement, in this case a exception will be raised showing to user that it's an error.
private void checkValuesFilled() throws SQLException { StringBuffer sbMsg = new StringBuffer(); ParameterValue sp = null; /*I think that give all error messages that are possible once is better to improve the programmer work when he's trying to fix it.*/ for (int i = 0; i < parameters.size(...
[ "private void checkForEmptyLine() throws OutmatchingParametersToMethodCall {\n if (this.params.isEmpty() && method.getParamAmount() != 0) {\n throw new OutmatchingParametersToMethodCall();\n } else if (method.getParamAmount() == 0 && !this.params.isEmpty()) {\n throw new Outmatch...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the current Organizer.
public Organizer getCurrOrganizer(){ return (Organizer) getCurrAccount(); }
[ "public EmailAddress getOrganizer() throws ServiceLocalException {\n\t\treturn (EmailAddress) this.getPropertyBag()\n\t\t\t\t.getObjectFromPropertyDefinition(AppointmentSchema.Organizer);\n\t}", "public String getOrganiser() {\n return organiser;\n }", "public Organism getOrganism();", "public Strin...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Retrieve a record given the id relative to the block
public Record readRecord(int recordId) { return records[recordId]; }
[ "public Record readRecord(Long id);", "public Object getRecord(String id);", "Wrapper get(int id) throws RecordNotFoundException;", "Record getRecord(URI id)\r\n throws Exception;", "private synchronized RecordBase findRecord(String recordId) throws RecordNotFoundException {\n for (...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set the time last modified.
public void setTimeLastModified(Time lastmod) { if (lastmod != null) m_timeLastModified = lastmod; }
[ "void setLastUpdatedTime();", "void setModifiedTime(final Date modifiedTime);", "void setLastModifiedTime( long modTime ) throws FileSystemException;", "public void setLastmodified(Date lastmodified) {\n this.lastmodified = lastmodified;\n }", "public void setLastModified(Date lastModified) {\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Shows the welcome dialog
public void showWelcomeDialog() { if(view!=null) { view.showWelcomeDialog(); } else { log.warn("no view for welcome message found"); } }
[ "private void showWelcome() {\n\t\tif (AppSettings.showWelcome(_cont, WelcomeId)) {\n\t\t\t_showWelcome = true;\n\t\t\tfinal Dialog dial = new Dialog(this);\n\t\t\tdial.setContentView(R.layout.new_welcome);\n\t\t\tdial.setTitle(R.string.Welcome);\n\t\t\tButton _btOK = (Button) dial.findViewById(R.id.OK);\n\t\t\t_bt...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return all valid resource names for charging method from getValues()
public static String[] getResourceNames() { int[] values = getValues(); String[] rv = new String[values.length]; for (int index=0; index<values.length; index++) { rv[index] = getResourceName(values[index]); } return rv; }
[ "public String[] getAllResourceName() {\n\t\tfinal int size = resList.size();\n\t\tString[] data = null;\n\n\t\tif (size > 0) {\n\t\t\tdata = new String[size];\n\t\t\tfor (int i = 0; i < size; i++) {\n\t\t\t\tdata[i] = resList.get(i).resourceName;\n\t\t\t}\n\t\t}\n\n\t\treturn data;\n\t}", "public List<String> ge...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a new instance of a RouteDocument using file
public RouteDocument(File file) { this.file = file; }
[ "public Document createDocument(Application app, File file);", "Object create(File file) throws IOException, SAXException, ParserConfigurationException;", "Route createRoute();", "public Mapping createInstance(Document xbrlDocument, String mappingFile)\n throws TransformerConfigurationException, Fi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Plays the kick instrument, if currently recording then add note to recording.
public void playKick(View view){ final MediaPlayer kick = MediaPlayer.create(this, R.raw.kick1); kick.start(); kick.setOnCompletionListener(new MediaPlayer.OnCompletionListener() { @Override public void onCompletion(MediaPlayer mp) { kick.release(); ...
[ "private void startCallRecordingTone() {\n if (mLoopingTonePlayer != null) {\n Log.w(this, \"Tone is already playing\");\n return;\n }\n mLoopingTonePlayer = new LoopingTonePlayer();\n if (!mLoopingTonePlayer.start()) {\n mLoopingTonePlayer = null;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
CommonUtils.startActivity(context, VideoActivity.class,mdata.get(position).getRtmpAddr()); CommonUtils.startActivity(context, PlayActivity.class);
@Override public void onClick(View v) { Intent it=new Intent(context, PlayActivity.class); it.putExtra("camera",mdata.get(position)); context.startActivity(it); }
[ "@Override\r\n public void onClick(View v) {\n String path = \"http://techslides.com/demos/sample-videos/small.mp4\";\r\n// Uri uri=Uri.parse(path);\r\n// videoView.setVideoURI(uri);\r\n //MediaController mc = new MediaContro...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test of getPostalZone method, of class PostalAddress.
@Test public void testGetPostalZone() { System.out.println("getPostalZone"); String expResult = "08080"; String result = instance.getPostalZone(); assertEquals(expResult, result); }
[ "@Test\n void checkZipSearch(){\n register.addPostAddress(post);\n String zip = post.getZipCode();\n PostAddress foundPost = register.getAddressByZip(zip);\n assertNotNull(foundPost);\n }", "@Test\n public void testSetPostalZone() {\n System.out.println(\"setPostalZone\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Clears the value of the 'SRC_KEY_VAL' field.
public org.LNDCDC_NCS_TCS.SHOWS.apache.nifi.LNDCDC_NCS_TCS_SHOWS.Builder clearSRCKEYVAL() { SRC_KEY_VAL = null; fieldSetFlags()[56] = false; return this; }
[ "public org.LNDCDC_ADS_PRPSL.PRPSL_OTLT.apache.nifi.LNDCDC_ADS_PRPSL_PRPSL_OTLT.Builder clearSRCKEYVAL() {\n SRC_KEY_VAL = null;\n fieldSetFlags()[13] = false;\n return this;\n }", "public org.LNDCDC_ADS_PRPSL.PROPOSAL_LINE.apache.nifi.LNDCDC_ADS_PRPSL_PROPOSAL_LINE.Builder clearSRCKEYVAL() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Provides information if GeoCoding Service is available for Use and enabled to service Location requests.
boolean isGeoCodingEnabled();
[ "public boolean isLocationServiceAvailable(){\n mLocationManager= (LocationManager) this.getSystemService(LOCATION_SERVICE);\n\n boolean checkGps = mLocationManager.isProviderEnabled(LocationManager.GPS_PROVIDER);\n boolean checkNetwork = mLocationManager.isProviderEnabled(LocationManager.NETWO...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a new seat map file for the flightName
public static void createFlightFile(String flightName) { ArrayList<String> flightLines = new ArrayList<>(); for (int i = 1; i < 11; i++) { flightLines.add(i + "\t" + FileIO.SEAT_MAP_ROW); } FileIO.fileWriter(FileIO.FLIGHT_DIR, flightName, flightLines.toArray(new String[0])); ...
[ "public void createStations() \n\t{\n\t\tint stationID;\n\t\tint routeID=0;\n\t\tString[] files = {\"Western.csv\", \"Central.csv\", \"Harbour.csv\"};\n\t\tArrayList<Station> stationList = new ArrayList<Station>();\t\t\n\t\ttry \n\t\t{\n\t\t\tfor (String f : files) \n\t\t\t{\t\t\t\t\n\t\t\t\tFile file = new File(f)...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Tests race condition where the user changes their name after their record is pulled from the DB and before the recanonicalization changes are applied. In this case, attempts ran out without another recursion.
@Test public void recanonicalizeInternalsWithImmediateFail() throws Exception { final Method method = getInternalRecanonicalizationMethod(); createUser("user1", "bar foo", 1); try { method.invoke( storage, getRecanonicalizationFlag("7_6_3"), new Document("user", "user1").append("display", "b...
[ "@Test\n\tpublic void recanonicalizeInternalsWithRecursionFail() throws Exception {\n\t\tfinal Method method = getInternalRecanonicalizationMethod();\n\t\tcreateUser(\"user1\", \"bar foo-baz\", 1);\n\t\t\n\t\ttry {\n\t\t\tmethod.invoke(\n\t\t\t\t\tstorage,\n\t\t\t\t\tgetRecanonicalizationFlag(\"0_0_1\"),\n\t\t\t\t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the result of evaluating the given JavaScript expression.
public String evaluate(final String jsExpression);
[ "public String evaluate(String expression);", "public Object eval(String expression) throws Exception;", "String evaluate();", "ScriptEvaluator createScriptEvaluator();", "private Object eval( Scriptable scope, final ScriptExpression expr )\n \t\t\tthrows BirtException\n \t{\n \t\tString source = expr.getSc...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the delay time for selected airport
public void setDelay(String airport, String time) { airportsDb.get(airport).setDelaytime(time); }
[ "public void setDelaytime(Long delaytime) {\n this.delaytime = delaytime;\n }", "private void setTimeLimit() {\n\t\t// Set the minimum time for \"Departing Time\" spinner\n\t\t// based on current selected combo box item\n\t\tview.setModifyTimeLimit(model.getDepartTime(view\n\t\t\t\t.getModifyStationInde...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns all the products that the user has permission to view where groupId = &63; and urlTitle = &63; and status = any &63;.
public java.util.List<Product> filterFindByG_UT_ST( long groupId, String urlTitle, int[] statuses);
[ "public java.util.List<Product> filterFindByG_UT_ST(\n\t\tlong groupId, String urlTitle, int status);", "public java.util.List<Product> filterFindByG_S(long groupId, int status);", "public java.util.List<Product> filterFindByG_U_S(\n\t\tlong groupId, long userId, int status);", "public java.util.List<Product>...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a toggle button being used to switch to detals view.
public JToggleButton getDetailsToggleButton() { return getToggleButton(1); }
[ "private JToggleButton getDetailsToggleButton() {\r\n\t\tif (detailsToggleButton == null) {\r\n\t\t\ttry {\r\n\t\t\t\tdetailsToggleButton = new JToggleButton();\r\n\t\t\t\tdetailsToggleButton.setText(\"Vis detaljer\");\r\n\t\t\t\tdetailsToggleButton.addActionListener(new java.awt.event.ActionListener() {\r\n\t\t\t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
MODIFIES: this EFFECTS: loads wish list from WISH_LIST_FILE, if that file exists; otherwise initializes an empty wish list
protected static void loadWishList() { try { List<Item> list = Reader.readWishList(new File(WISH_LIST_FILE)); myWishList = new WishList(); for (Item item : list) { myWishList.addItem(item); } } catch (IOException e) { sa...
[ "public void showMyWishlist() {\n try {\n ItemQueryBuilder items = tradingFacade.fetchItems().query().onlyApproved()\n .notDeleted()\n .exceptOwnedBy(userId)\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "furcas_tcs_primitivepropertyinit" $ANTLR start "furcas_tcs_lookuppropertyinit" ./generationTemp/generated/TCS.g:896:1: furcas_tcs_lookuppropertyinit returns [Object ret2] : ( (temp= furcas_tcs_propertyreference )? ( ( LARROW ) | ( EQ ) ) 'lookIn' LPAREN (temp= stringSymbol )? RPAREN ) ;
public final Object furcas_tcs_lookuppropertyinit() throws RecognitionException { Object ret2 = null; Object temp = null; IModelElementProxy ret; List<String> metaType=list("FURCAS","TCS","LookupPropertyInit"); ret=(getBacktrackingLevel()==0) ? createModelElementProxy(metaType...
[ "public final Object furcas_tcs_primitivepropertyinit() throws RecognitionException {\n Object ret2 = null;\n\n Object temp = null;\n\n\n IModelElementProxy ret;\n List<String> metaType=list(\"FURCAS\",\"TCS\",\"PrimitivePropertyInit\");\n ret=(getBacktrackingLevel()==0) ? createM...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Add additional schema types that are part of an external schema type.
@SuppressWarnings(value = "deprecation") private String addExternalEmbeddedTypes(String userId, String schemaTypeGUID, SchemaType schemaType, S...
[ "public interface CustomSchemaRegistry {\n\n /**\n * Registers types with a custom schema.\n *\n * @param registry Schema registry to add the custom type/schema combinations to.\n */\n public void registerCustomSchemas(SchemaRegistry registry);\n\n}", "void addSchema (final Schema schema)\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
int64 map_expiration_ms = 1;
@java.lang.Override public long getMapExpirationMs() { return mapExpirationMs_; }
[ "long getMapExpirationMs();", "@java.lang.Override\n public long getMapExpirationMs() {\n return mapExpirationMs_;\n }", "long getKeyExpirationSecs();", "public Builder setMapExpirationMs(long value) {\n \n mapExpirationMs_ = value;\n onChanged();\n return this;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set value of the counter. Note: It will create the counter if it does not exist.
void setValue(String counterName, long counterValue);
[ "public Counter(int val) {\r\n value = val;\r\n }", "public void setCounter(int number){\n this.counter = number;\n }", "private void set(int value, int countToAssign) {\r\n counts[index(value)] = countToAssign;\r\n }", "private void setCounterValue() {\n if(isEven()){\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the primary key of this task session.
@Override public void setPrimaryKey(long primaryKey) { _taskSession.setPrimaryKey(primaryKey); }
[ "public void setPrimaryKey(long primaryKey) {\n\t\t_timesheetTask.setPrimaryKey(primaryKey);\n\t}", "@Override\n\tpublic void setPrimaryKey(long primaryKey) {\n\t\t_workFlowConfig.setPrimaryKey(primaryKey);\n\t}", "public void setPrimaryKey(long pk);", "@Override\n\tpublic void setPrimaryKey(long primaryKey) ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Segmentation of all PNG files contained inside inputFolder based on transparency threshold. Each image will be splited into smaller isolated pieces (that had transparency in between). Groups of pixels with size less or equald to minObjectPixels will be ignored Synchronous = Monothread Accepted input files are .png,
public static void segmentateByTransparency( File inputFolder, double transparencyThreshold, long minObjectSizePixels ) { if (inputFolder == null || !inputFolder.exists()) return; final File outputFolder = Paths.get(inputFolder.getParentFile().getAbs...
[ "@Test\n public void testSegmentateWithTransparency2() {\n System.out.println(\"segmentateWithTransparency2\");\n \n final int colTransparent = BBColor.I_TRANSPARENT;\n final int colTransp30p = new Color(255, 255, 255, (int) (70.0/100*255)).getRGB();\n final int colTransp70p = ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Create Content with wrong contentType (e.g: pdf). Expected : 400 CLIENT_ERROR
@Test public void createContentWithInvalidContentType() throws Exception { String createContentReq = "{\"request\": {\"content\": {\"name\": \"Unit Test\",\"code\": \"unit.test\",\"mimeType\": \"application/pdf\",\"contentType\":\"pdf\"}}}"; String path = basePath + "/create"; actions = mockMvc.perform(MockMvcRe...
[ "@Test\n\tpublic void createContentWithInvalidMimeType() throws Exception {\n\t\tString createContentReq = \"{\\\"request\\\": {\\\"content\\\": {\\\"name\\\": \\\"Unit Test\\\",\\\"code\\\": \\\"unit.test\\\",\\\"mimeType\\\": \\\"pdf\\\",\\\"contentType\\\":\\\"Resource\\\"}}}\";\n\t\tString path = basePath + \"/...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/! It sets the impedance channel info. \param chInfo The impedance channel info.
public void stimImpedanceChInfo(char value){ //_stimImpedanceChInfo = value; _stimImpedance.setChannelInfo(value); for (int i = 0; i < 8; i++) { _isStimImpedanceChPresent[i] = ((value & (1 << i)) > 0); } }
[ "public int stimImpedanceChInfo(){\n return _stimImpedance.channelInfo();\n }", "private void setupTurnInfoCharacteristic() {\n turnInfoCharacteristic =\n new BluetoothGattCharacteristic(CHARACT_TURNINFO_UUID,\n BluetoothGattCharacteristic.PROPERTY_READ | Blu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a RestTask for a HTTP POST with a JSON body
public static RestTask obtainJSONPostTask(String url, String jsonBody) throws IOException { HttpURLConnection connection = createDefaultConnection(url); attachAuthentication(connection); connection.setDoOutput(true); RestTask task = new RestTask(connection); task.set...
[ "public PostTask(String restUrl, List<NameValuePair> requestBody, RestTaskCallback callback){\n this.mRestUrl = restUrl;\n this.mRequestBody = requestBody;\n this.mCallback = callback;\n }", "@POST(\"pomodorotasks\")\n Call<PomodoroTask> pomodorotasksPost(\n @Body PomodoroTask po...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create pane for log properties
private JPanel createLogPane() { ButtonGroup radioButtons; /* log panel */ JPanel logPane = new JPanel(new BorderLayout()); JPanel logContentPane = new JPanel(); logContentPane.setLayout(new BoxLayout(logContentPane, BoxLayout.PAGE_AXIS)); logPane.add(logContentPane, BorderLayout.CEN...
[ "private Pane initLogWindow()\n {\n listViewMessage = new ListView<String>();\n listViewMessage.setMaxSize(470,300);\n listViewMessage.setItems(listViewMessageItems);\n\n VBox log_window = new VBox();\n Label lbLog = new Label(\"Log window\");\n lbLog.setPadding(new Inse...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return a string representation of the representative of its corresponding TypeGroup in the given TypeSystem.
abstract protected String basicRepresentativeString(TypeSystem typeSystem);
[ "public java.lang.String getAdmsGroupSystemId() {\n java.lang.Object ref = admsGroupSystemId_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n admsGroupSystemId_ = s;\n return s;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__LockedRevolute__Group__1" $ANTLR start "rule__LockedRevolute__Group__1__Impl" ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/srcgen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:3720:1: rule__LockedRevolute__Group__1__Impl : ( ( rule__LockedRevolute__AxisAssignment_1 ) ) ;
public final void rule__LockedRevolute__Group__1__Impl() throws RecognitionException { int stackSize = keepStackSize(); try { // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:3724:1: ( ( ( rule__...
[ "public final void rule__Revolute__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:5590:1: ( rule__Revo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set IsTaxAccount. Si es o no cuenta contable asociada a impuestos
public void setIsTaxAccount (boolean IsTaxAccount);
[ "public boolean isTaxAccount();", "boolean isSetTax();", "public void setTaxIncluded(boolean value) {\n this.taxIncluded = value;\n }", "public void setTaxExempt(boolean value) {\r\n this.taxExempt = value;\r\n }", "public void setTaxable(boolean value)\n { ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ end displayPortfolio inserts the new portfolio name into the portfolio table
public static void setPortfolio(String portfolioName){ PortfolioEntity bean = new PortfolioEntity(); bean.setPortfolioName(portfolioName); boolean result = false; try { result = PortfolioTable.insert(bean); }catch(SQLException e){ e.printStackTrace(); }/* end try/c...
[ "private void createNewPortfolio(String portfolioName) {\n\t\tList<Portfolio> portfolios = folioTracker.getPortfolios();\n\t\t\n\t\tfolioTracker.addPortfolio(portfolioName);\n\t\tgui.makePortfolioTab(portfolioName);\n\n\t\tI_Portfolio folio = folioTracker.getPortfolio(portfolioName);\n\n\t\tgui.getButton(portfolioN...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Configure GreenMail instance using the given configuration
GreenMailOperations withConfiguration(GreenMailConfiguration config);
[ "public void initialize()\n throws EmailApplicationException {\n final String temp = null;\n emailConfig.clear();\n\n /**\n * Required by JavaMail in order to determine the message delivery\n * protocol for the session.\n */\n emailConfig.setProperty(\"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
recents tab method which will create buttons(Groups) which is accepting arraylist
public void getNumberOfRecentGroups(ArrayList arr) throws Exception { int arraySize = arr.size(); int z = 0; Button[] btn = new Button[arraySize]; while (z < arraySize) { btn[z] = new Button(); //Anonymous method btn[z].setOnAction(new EventHandler<A...
[ "private void createButtonList()\n\t{\t\n\t\t//Instantiates the array which contains all of the entryButtons which serve to access an entry in the survival guide.\n\t\tprofileButtons = new Array<TextButton>();\n\t\t\n\t\t//Creates the table which contains the profile buttons to be displayed in a list.\n\t\tprofileB...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the value of the 'proPromo' field.
public Float getProPromo() { return proPromo; }
[ "public Float getProPromo() {\n return proPromo;\n }", "public Number getPromoProdukId() {\n return (Number) getAttributeInternal(PROMOPRODUKID);\n }", "public java.lang.String getPromoCode() {\r\n return promoCode;\r\n }", "public Number getPromoProdukId() {\n return (Numbe...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Switches the current viewable activity from this to EditClientInfoActivity passes the current Client to EditClientInfoActivity.
public void editSelfInfo(View view) { // Specifies the next Activity to move to: EditClientInfoActivity Intent intent = new Intent(this, EditClientInfoActivity.class); // Update Client updateClient(); // Gets the data from the client, and get the Client itself Client client = clientApp.ge...
[ "public void viewInfo(View view) {\r\n // Specifies the next Activity to move to: ViewInfoActivity\r\n Intent intent = new Intent(this, ViewInfoActivity.class);\r\n // Update Client\r\n updateClient();\r\n // Gets Client itself\r\n Client client = clientApp.getClient();\r\n // Passes Client to...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
UILocales is the EndUser&39;id preferred languages and scripts for the user interface, represented as a spaceseparated list of BCP47 [RFC5646] language tag values, ordered by preference. For instance, the value \"frCA fr en\" represents a preference for French as spoken in Canada, then French (without a region designat...
@javax.annotation.Nullable @ApiModelProperty(value = "UILocales is the End-User'id preferred languages and scripts for the user interface, represented as a space-separated list of BCP47 [RFC5646] language tag values, ordered by preference. For instance, the value \"fr-CA fr en\" represents a preference for French as ...
[ "public void testLocalisesLanguageListItems()\n {\n administration.restoreData(\"TestUserProfileI18n.xml\");\n tester.gotoPage(\"secure/admin/jira/EditApplicationProperties!default.jspa\");\n\n tester.setWorkingForm(\"jiraform\");\n final String[] languageOptions = tester.getDialog()....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Put the value of the named long field into the persistent fields.
public void put(String name, long value){ fields.put(name, new Long(value)); }
[ "public void setLong(String name, long value);", "void setLongProperty(String name, long value);", "void setLong(String key, long value);", "void setLong(long val);", "public void setLong(long l) {\n longValue = l;\n }", "public void setLong(de.tif.jacob.core.definition.impl.jad.castor.LongField...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a new gpsWeekType from encoded stream.
public static gpsWeekType fromPerAligned(byte[] encodedBytes) { gpsWeekType result = new gpsWeekType(); result.decodePerAligned(new BitStreamReader(encodedBytes)); return result; }
[ "public static gpsWeekType fromPerUnaligned(byte[] encodedBytes) {\n gpsWeekType result = new gpsWeekType();\n result.decodePerUnaligned(new BitStreamReader(encodedBytes));\n return result;\n }", "public static weekNumberType fromPerAligned(byte[] encodedBytes) {\n weekNumberType result = new weekNum...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Pause UI not implemented yet.
public void pauseUI() { // TODO: implement it! }
[ "public void pause() {\n this.state = State.PAUSE;\n\n }", "@Override\n\tpublic void pause() {\n\t\tgame.setScreen(new ScreenOptions(this));\n\t}", "public void requestPause();", "private void actionPause() {\n\t\tselectedDownload.pause();\n\t\tupdateButtons();\n\t}", "public void togglePauseButto...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method to call operation for insert text
public void insert(String text) { cmd = new InsertCommand(text, editor); invoker = new MiniEditorInvoker(cmd); invoker.action(); }
[ "public void _insertText() {\n executeMethod(\"pasteText()\");\n boolean res = true;\n boolean locRes = true;\n String curText = null;\n\n String text = oObj.getText();\n log.println(\"Text: '\" + text + \"'\");\n int length = oObj.getCharacterCount();\n log.p...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructor of back propagation algorithm with hidden layers
public BackpropagationAlgorithm(int inputs, Neuronet.HiddenLayerStruct[] hiddenLayerStructs, int outputs) { this(inputs, 0, hiddenLayerStructs, outputs); }
[ "private static Backpropagation createNetwork() {\n Backpropagation net = new Backpropagation();\n net.addLayer(new Layer(2));\n net.addLayer(new Layer(8));\n net.addLayer(new Layer(6));\n net.addLayer(new Layer(1));\n net.linkAll();\n return net;\n }", "public ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Handle endofrace items for a WorkerThread. Called by each WorkerThread after it has been released from resetBarrier and before the WorkerThread checks in again with startBarrier. Can execute in parallel with perRaceDriverEpilog() or another WorkerThread's perRaceWorkerEpilog() call. If this is not the last race, can ex...
public void perRaceWorkerEpilog(WorkerThread wt) { if (verbose) System.out.println(wt.getName() + ": perRaceWorkerEpilog() called"); }
[ "public void endRace(){\n\t\tstartTime =-1;\n\t\tfor(Player p: playersFinished){\n\t\t\twhile(!setPlayerID(p.getID())){\n\t\t\t\ttempNumber++;\n\t\t\t\tsetPlayerID(tempNumber);\n\t\t\t}\n\t\t}\n\t}", "public void executeRace(WorkerThread wt) {\n if (verbose)\n System.out.println(wt.getName() + \...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "furcas_tcs_classtemplate" $ANTLR start "furcas_tcs_operatortemplate" ./generationTemp/generated/TCS.g:585:1: furcas_tcs_operatortemplate returns [Object ret2] : ( 'operatorTemplate' reference[ret] LPAREN 'operators' EQ (temp= identifier (temp= identifier ) )? COMA 'source' EQ (temp= furcas_tcs_propertyrefer...
public final Object furcas_tcs_operatortemplate() throws RecognitionException { Object ret2 = null; Object temp = null; IModelElementProxy ret; List<String> metaType=list("FURCAS","TCS","OperatorTemplate"); ret=(getBacktrackingLevel()==0) ? createModelElementProxy(metaType, tr...
[ "public final Object furcas_tcs_operator() throws RecognitionException {\n Object ret2 = null;\n\n Object temp = null;\n\n\n IModelElementProxy ret;\n List<String> metaType=list(\"FURCAS\",\"TCS\",\"Operator\");\n ret=(getBacktrackingLevel()==0) ? createModelElementProxy(metaType,...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
//////// FIND ALL PRODUCTS WITH THE SAME PRICE Find all products with a specific price using "classic method" (no Java 8 features).
public List<Product> findAllByPrice1(int price){ ArrayList<Product> tmp = new ArrayList<>(); for(Product p: products){ if(p.getPrice()==price) tmp.add(p); } return tmp; }
[ "public Items[] findWherePriceEquals(double price) throws ItemsDaoException;", "List<Product> findByPrice(BigDecimal price);", "List<PriceInformation> getPriceForProduct(ProductModel product);", "private void findProduct()\n\t{\n\t\tString query = f_name1.getText();\n\t\tif (query == null || query.length() ==...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Can read last failed build.
@Test public void testCanReadLastFailedBuild() throws Exception { final List<Build> builds = new ArrayList<>(3); final Build failed = build(BuildResult.FAILURE); builds.add(failed); builds.add(build(BuildResult.SUCCESS)); builds.add(build(BuildResult.ABORTED)); Matche...
[ "@Test\n public void testCanReadLastUnsuccessfulBuild() throws Exception {\n final List<Build> builds = new ArrayList<>(2);\n builds.add(build(BuildResult.SUCCESS));\n final Build aborted = build(BuildResult.ABORTED);\n builds.add(aborted);\n MatcherAssert.assertThat(\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__InsertSQL__Group_2__9__Impl" $ANTLR start "rule__InsertSQL__Group_2__10" ../eu.artist.migration.mdt.database.sql.editor.ui/srcgen/eu/artist/migration/mdt/database/sql/editor/ui/contentassist/antlr/internal/InternalSQLDSL.g:953:1: rule__InsertSQL__Group_2__10 : rule__InsertSQL__Group_2__10__Impl rule__...
public final void rule__InsertSQL__Group_2__10() throws RecognitionException { int stackSize = keepStackSize(); try { // ../eu.artist.migration.mdt.database.sql.editor.ui/src-gen/eu/artist/migration/mdt/database/sql/editor/ui/contentassist/antlr/internal/InternalSQLDSL.g:957:...
[ "public final void rule__InsertSQL__Group_2__9() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../eu.artist.migration.mdt.database.sql.editor.ui/src-gen/eu/artist/migration/mdt/database/sql/editor/ui/contentassist/antlr/internal/InternalSQ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns true if this element is a service chain request
public boolean isServiceChainRequest () { return this instanceof WServiceChainRequest; }
[ "public boolean isServiceChain () { return demand.isServiceChainRequest(); }", "public boolean isServiceChain () { return this instanceof WServiceChain; }", "public boolean servicingRequests() {\n return (isActive() && this.requests != 0) ? true : false;\n }", "public boolean isSetRequests() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the service Plan Id.
public java.util.UUID getservicePlanId() { return this.servicePlanId; }
[ "public long getPlanId();", "public Integer getPlanId() {\n return planId;\n }", "public String getservicePlanName() {\r\n\t\treturn this.servicePlanName; \r\n\t}", "@Schema(description = \"Plan associated with the purchased offer\")\n public String getPlanId() {\n return planId;\n }", "publi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "ruleTransaction" $ANTLR start "entryRuleSubTransaction" InternalMyDsl.g:353:1: entryRuleSubTransaction : ruleSubTransaction EOF ;
public final void entryRuleSubTransaction() throws RecognitionException { try { // InternalMyDsl.g:354:1: ( ruleSubTransaction EOF ) // InternalMyDsl.g:355:1: ruleSubTransaction EOF { before(grammarAccess.getSubTransactionRule()); pushFollow(FOLLOW_1...
[ "public final void rule__Transaction__TypeAssignment_3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:13175:1: ( ( ruleSubTransaction ) )\n // InternalMyDsl.g:13176:2: ( ruleSubTransaction )\n {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test the method validateProject(Project) with invalid project whose status description is too long (more than 256 characters). ValidationException should be thrown.
public void testValidateProjectWithTooLongStatusDescription() { project.getProjectStatus().setDescription(s257); try { validator.validateProject(project); fail("ValidationException should be thrown."); } catch (ValidationException e) { // success } ...
[ "public void testValidateProjectWithTooLongStatusName() {\n project.getProjectStatus().setName(s65);\n try {\n validator.validateProject(project);\n fail(\"ValidationException should be thrown.\");\n } catch (ValidationException e) {\n // success\n }\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get current page text
public CharSequence getCurrentPage() { return pages.get(currentIndex); }
[ "public String getPageText();", "public String getTextOnPage()\n {\n return mainText.getText();\n }", "private String getCurrentPageTitle() {\n PageTitle title = getContent().getClass().getAnnotation(PageTitle.class);\n return title == null ? \"\" : title.value();\n }", "public S...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method to move a tile using Swing Timers for animation
public void move(String d){ moving = true; dir = d; //We must check if we are in the middle of an Animation and if so, don't do anything. if (animTimer == 0){ //Creating a timer and instantiating it with our timer delay (movespeed) and a listener. animationTimer = new javax.swing.Timer(moveSpeed, new ...
[ "public void repaintTiles() {\n }", "public void update(){\r\n\t\t//Something that may be added here is animated tiles.\r\n\t}", "@Override\r\n\t//Event handler for the Timer action\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tmoveSnake();\r\n\t}", "public void PerformTimerTask() {\n \tif(refr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the JsonParser used by the connection
JsonParser getJsonParser();
[ "protected Parser getParser() {\n\t\treturn myParser;\n\t}", "private static void loadParser() {\n if(parser_ == null)\n parser_ = ConfigIOFactory.getInstance(\"json\");\n }", "public String getParser() {\n return this.parser;\n }", "private TwigcsResultParser getParser() {\n\t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
If the typeface is already created get it from the sparseArray
public static Typeface getTypeface(Context context, int typefaceValue) { Typeface typeface = CustomTypeface.typefacesSparseArray.get(typefaceValue); if (typeface == null) { typeface = createTypeface(context, typefaceValue); CustomTypeface.typefacesSparseArray.put(typefaceValue, t...
[ "private static Typeface createTypeface(int style) {\n for (String family : FAMILIES) {\n Typeface tf = Typeface.create(family, style);\n if (tf.getStyle() == style) {\n return tf;\n }\n }\n return null;\n }", "private void initSparseArray() {\n SharedPreferences sp = Object...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Function to get the users related to a hashtag
public List<String> getUsers(String hashtag) { String url = IGUrl.getTAG().replace("{tags}", hashtag); HttpGet request = new HttpGet(url); List<String> users_base = new ArrayList<String>(); List<String> users = Collections.synchronizedList(users_base); ...
[ "@SuppressWarnings(\"unused\")\r\n private void getTweetsByHashtag(String hashtag) throws TwitterException {\n System.out.println(\"100 tweets with #\" + hashtag + \":\");\r\n Query query = new Query(hashtag);\r\n query.count(100);\r\n QueryResult result = twitter.search(query);\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
gets the latest three values added to the clubPosts arraylist.
private ArrayList<ClubPost> getTopThreePosts(ArrayList <ClubPost> clubPosts){ int totalPosts = clubPosts.size(); if(totalPosts < 3){ return clubPosts; }else{ ArrayList<ClubPost> topThreePosts = new ArrayList<>(); for(int i = totalPosts - 3; i <totalPosts ; i++...
[ "@SuppressWarnings(\"unchecked\")\r\n public List<MemberBlog> getLatestBlogs()\r\n {\r\n return entityManager.createQuery(\r\n \"from MemberBlog b where b.member = :member order by b.entryDate desc\")\r\n .setParameter(\"member\", selectedMember)\r\n .setMaxResults(5)\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the "Probables" element
void setProbables(boolean probables);
[ "void xsetProbables(org.apache.xmlbeans.XmlBoolean probables);", "public void setProb(double value) {\r\n this.prob = value;\r\n }", "public void assignProb(double p) {\n\n label = PROBAB_NODE;\n value = p;\n leaves = 1;\n}", "public void setProbabilities(java.util.List<java.lang.Double> value) {...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Added warehouse as argument, so that loadWarehouseState can be called from other classes using model.get...
public List<StockItem> loadWarehouseState(StockTableModel warehouse) { Session session = HibernateUtil.currentSession(); Query fromDB = session.createQuery("from StockItem"); @SuppressWarnings("unchecked") List<StockItem> wareHouseItems = fromDB.list(); return wareHouseItems; }
[ "public WarehouseSystem(Warehouse warehouse) {\n this.warehouse = warehouse;\n setTransDict(\"translation.csv\");\n }", "public Warehouse getWarehouse() {\n return warehouse;\n }", "public IWarehouse getWarehouse(){\n \treturn this.warehouse;\n }", "public void setWarehouseid(Integer wa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
sets the last synthesizer opened via the global window.
static void setLastSynth(String synth) { setLastX(synth, "Synth", null, false); }
[ "public void openMixerSave() {\n\n\t\ttry {\n\t\t\tFXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"/SaveMixerSettings.fxml\"));\n\t\t\tfxmlLoader.setResources(bundle);\n\t\t\tParent root1 = (Parent) fxmlLoader.load();\n\t\t\tSaveMixerSettingsController smsc = fxmlLoader.getController();\n\t\t\tsmsc....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the file extension for the template file.
public String getTemplateFileExtension() { return getFileExtension(this.templateFile); }
[ "String fileExtension();", "public String getFileExtension();", "String getFileExtension();", "public String getFileExtension(){\n\t\tint i = file.getName().toLowerCase().lastIndexOf('.');\n\t\tif(i > 0){\n\t\t return file.getName().toLowerCase().substring(i+1);\n\t\t}else{\n\t\t\treturn \"\";\n\t\t}\n\t}"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
AbsentSequenceSourceChain: => (OPEN_PAR absentSequenceSourceChain=AbsentSequenceSourceChain CLOSE_PAR wt5=WithinTime?) | => basicAbsentPatternSource=BasicAbsentPatternSource | => leftAbsentSequenceSource=LeftAbsentSequenceSource | => rightAbsentSequenceSource=RightAbsentSequenceSource;
public AbsentSequenceSourceChainElements getAbsentSequenceSourceChainAccess() { return pAbsentSequenceSourceChain; }
[ "protected void sequence_EveryAbsentSequenceSourceChain(ISerializationContext context, EveryAbsentSequenceSourceChain semanticObject) {\n\t\tif (errorAcceptor != null) {\n\t\t\tif (transientValues.isValueTransient(semanticObject, SiddhiPackage.eINSTANCE.getEveryAbsentSequenceSourceChain_AbsSeqSrcChain()) == ValueTr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
the range of field pushStatus
public interface PushStatus { /** * not receive */ String NOT_RECEIVE = "0"; /** * receive */ String RECEIVE = "1"; }
[ "public com.gvt.www.metaData.configuradoronline.DadosStatusBloqueio[] getStatusRange() {\r\n return statusRange;\r\n }", "public String getPushStatus() {\n return pushStatus;\n }", "Value getSendStatus();", "public int value() {return status; }", "@ApiModelProperty(value = \"Possible val...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the "furtherRelations" element
public ch.crif_online.www.webservices.crifsoapservice.v1_00.FurtherRelations getFurtherRelations() { synchronized (monitor()) { check_orphaned(); ch.crif_online.www.webservices.crifsoapservice.v1_00.FurtherRelations target = null; target = (ch.crif_online.www.webs...
[ "ch.crif_online.www.webservices.crifsoapservice.v1_00.FurtherRelations getFurtherRelations();", "public ch.crif_online.www.webservices.crifsoapservice.v1_00.FurtherRelations addNewFurtherRelations()\n {\n synchronized (monitor())\n {\n check_orphaned();\n ch.crif_online.www....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checks whether the 'field931' field has been set
public boolean hasField931() { return fieldSetFlags()[931]; }
[ "public boolean hasField913() {\n return fieldSetFlags()[913];\n }", "public boolean hasField933() {\n return fieldSetFlags()[933];\n }", "public boolean hasField943() {\n return fieldSetFlags()[943];\n }", "public boolean hasField934() {\n return fieldSetFlags()[934];\n }", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Notifies all registered listeners of a topic selection change.
private void notifyListeners(HelpTopic topic) { for (ITopicListener listener : topicListeners) { listener.onTopicSelected(topic); } }
[ "protected void notifyChangeListeners() { \n Utilities.invokeLater(new Runnable() {\n public void run() { for(ChangeListener l: _changeListeners) l.apply(this); }\n });\n }", "private void notifyListeners() {\n IDisplayPaneContainer container = (IDisplayPaneContainer) activeEditorMap\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Use ARCHETYPEID.newBuilder() to construct.
private ARCHETYPEID(Builder builder) { super(builder); }
[ "IdentifierType createIdentifierType();", "AuthorityFactoryIdentifier newType(final byte newType) {\n return new AuthorityFactoryIdentifier(newType, authority, version);\n }", "private IIdentifierElement createIdentifier() throws RodinDBException {\n\t\tfinal IContextRoot ctx = createContext(\"ctx\");...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
A method moveTo(Point centerPoint) that moves the circle to a new position represented by centerPoint.
public void moveTo(Point centerPoint) { this.centerPoint.moveTo(centerPoint.getX(), centerPoint.getY()); }
[ "public void moveTo(int newX, int newY) {\n xPosition = newX-radius;\n yPosition = newY-radius;\n }", "public void move(Point2D.Double center) {\n this.x = center.x;\n this.y = center.y;\n }", "public void moveShape(Point newCenter)\r\n\t{\r\n\t\tsetBounds(newCenter.x - bounds.width/2, newCen...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This adds a property descriptor for the Color Off feature.
protected void addColorOffPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_JZCustomButton_colorOff_feature"), getString("_UI_PropertyDescriptor_...
[ "public CustomColorDef getCustomOffColor() {\n return customOffColor;\n }", "public ColorDef getOffColor() {\n return offColor;\n }", "public Paint getColorOff() {\n return colorOff;\n }", "protected void addStyleOffPropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
repeated int64 int64_element = 24;
java.util.List<java.lang.Long> getInt64ElementList();
[ "java.util.List<java.lang.Long> getFixed64ElementList();", "java.util.List<java.lang.Long> getSfixed64ElementList();", "java.util.List<java.lang.Long> getSint64ElementList();", "java.util.List<java.lang.Long> getUint64ElementList();", "long getInt64Value();", "public final List<Number> array_elements() th...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
What will actually be holding the contents / Pushes an item onto the stack Returns 0 if int cannot be pushed onto stack Returns int itemToPush value if success
public int push(int itemToPush){ if(numItems == capacity){ resizeStack(); } array[numItems] = itemToPush; //Grab most recent item pushed onto the stack numItems = numItems + 1; //Increment number of items on Stack return itemToPush; }
[ "public void push(int newValue)\r\n {\r\n checkForReSize();\r\n stackTopIndex++;\r\n stackData[stackTopIndex] = newValue;\r\n size++;\r\n }", "public void push(int val) {\n\t\tif ( isFull() )\n\t\t\treturn ;\n\t\tstack[++ topIndex] = val ;\n\t}", "public void push(Item item){\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the cache current weight.
public long getWeight() { return currentWeight; }
[ "public int getCurrentWeight() \n {\n return this.currentWeight;\n }", "public int weight() {\n return weight;\n }", "public int weight(){\n\t\treturn this.weight;\n\t}", "public int getlatest_weight(){\n return this.latest_weight;\n }", "public double getWeight() {\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Helper to validate a service intent by resolving and checking the provider's package signature.
private boolean validateServiceIntent(Context context, Intent intent) { ResolveInfo resolveInfo = context.getPackageManager().resolveService(intent, 0); if (resolveInfo == null) { return false; } return validateAppSignatureForPackage(context, resolveInfo.serviceInfo.packageN...
[ "private boolean validateAppSignatureForPackage(Context context, String packageName) {\n\n PackageInfo packageInfo;\n try {\n packageInfo = context.getPackageManager().getPackageInfo(packageName, PackageManager.GET_SIGNATURES);\n } catch (NameNotFoundException e) {\n retur...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
build the virtual build function for current block
protected void buildBlockBuildFunction(String block) { outputList.add(new OutputLine(indentLvl, "")); outputList.add(new OutputLine(indentLvl++, "virtual function void build();")); // add subcomponent build statements List<SpecialLine> buildList = subcompBuildList.getStatements(block); if (buildList != n...
[ "@Override\n protected Script doBuild() {\n List<Node.Builder<? extends Node, ?>> nestedBuilders = nestedBuilders();\n Block.Builder methodBuilder = null;\n for (Node.Builder<? extends Node, ?> builder : nestedBuilders) {\n if (builder instanceof Block.Builder ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Generates a new InternalInformationPort component, used for information exchange (e. g. generating log files, reading settings or displaying status information) with "internal" communication partners (usually the system administrator).
public InternalInformationPortController() { }
[ "IFMLPort createIFMLPort();", "DynamicPort createDynamicPort();", "Port createPort();", "OutputPort createOutputPort();", "public Port createPort();", "public void generateInternalMapping() {// This method is used to generate\n\t\t// OJB Internal mapping\n\t\tprintWriter.write(\"\\n\");\n\t\tprintWriter\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
A setter for 'bcc' property
@Override public void setBcc(String bcc) throws OscarMailException { this.bcc = new String[] {bcc}; }
[ "@Override\n public void setBcc(String[] bcc) throws OscarMailException {\n this.bcc = bcc;\n }", "public void setBcc(Object bcc) throws ApplicationException\t{\n \t\tif(StringUtil.isEmpty(bcc)) return;\n \t\ttry {\n \t\t\tsmtp.addBCC(bcc);\n \t\t} catch (Exception e) {\n \t\t\tthrow new ApplicationE...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column DEVELOP.T_CUST_PREFERENTIAL.FAGENTGATHRATE
public BigDecimal getFagentgathrate() { return fagentgathrate; }
[ "public BigDecimal getOLD_PROFITPAYABLE_FC() {\r\n return OLD_PROFITPAYABLE_FC;\r\n }", "public String getFreightRate() {\r\n return freightRate;\r\n }", "public BigDecimal getAgencyFee() {\r\n return agencyFee;\r\n }", "BigDecimal getFare();", "public String getAdjustedFreight...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Load the StatisticsController object or create a new if it doesn't exists
public static StatisticsController getInstanceOf() { return (StatisticsController.singStats == null ? new StatisticsController() : StatisticsController.singStats); }
[ "Statistic createStatistic();", "public static StatisticsData load() {\n Logger log = Logger.getLogger(StatisticsData.class.getName());\n StatisticsData stats = null;\n if (FILE.exists() && FILE.canRead()) {\n try {\n ObjectInputStream is = new ObjectInputStream(\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Retrieves all party.gender_type code values.
@Override public List<GenderType> getGenderTypes(String languageCode) { return getRepository().getCodeList(GenderType.class, languageCode); }
[ "private List<Gender> extractGenders() {\n List<String> names = getNames(\"gender\");\n names.add(\"neutral\");\n GenderSelectAsyncTask task = new GenderSelectAsyncTask();\n GenderMapper mapper = new GenderMapper();\n task.setTypes(names);\n List<Gender> genders = new Array...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Extracts avro schema from avro file
private static Schema extractSchemaFromAvro(Path avroFile) throws IOException { DataFileStream<GenericRecord> dataStreamReader = getAvroReader(avroFile); Schema avroSchema = dataStreamReader.getSchema(); dataStreamReader.close(); return avroSchema; }
[ "private Schema getSchema(Path inputPathDir)\n throws IOException {\n FileSystem fs = FileSystem.get(new Configuration());\n Schema avroSchema = null;\n for (FileStatus fileStatus : fs.listStatus(inputPathDir)) {\n if (fileStatus.isFile() && fileStatus.getPath().getName().endsWith(\".avro\")) {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method corresponds to the database table anode_goods_in_process_statistic_premix_temporary_storage
@Insert({ "insert into anode_goods_in_process_statistic_premix_temporary_storage (statistic_code, material_code, ", "line_code, type_code, ", "process_code, feedstock, ", "consume, balance)", "values (#{statisticCode,jdbcType=BIGINT}, #{materialCode,jdbcType=INTEGER}, ", ...
[ "@Select({\n \"select\",\n \"code, statistic_code, material_code, line_code, type_code, process_code, feedstock, \",\n \"consume, balance\",\n \"from anode_goods_in_process_statistic_premix_temporary_storage\",\n \"where code = #{code,jdbcType=BIGINT}\"\n })\n @ResultMap(\"B...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a new annotation painter for the given source viewer and with the given annotation access. The painter is not initialized, i.e. no annotation types are configured to be painted.
public AnnotationPainter(ISourceViewer sourceViewer, IAnnotationAccess access) { fSourceViewer= sourceViewer; fAnnotationAccess= access; fTextWidget= sourceViewer.getTextWidget(); // default drawing strategies: squiggles were the only decoration style before version 3.0 fRegisteredDrawingStrategies.put...
[ "HxAnnotation createAnnotation(final String className,\n final boolean visible);", "private IAnnotationAccess createAnnotationAccess() {\n \t\treturn new DefaultMarkerAnnotationAccess() {\n \t\t\t@Override\n \t\t\tpublic int getLayer(Annotation annotation) {\n \t\t\t\tif (annotation...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the Database Access Object (DAO) for our PostMetadata class. It will create it or just give the cached value.
public Dao<PostMetadata, Integer> getPostDao() throws SQLException { return daos[0].getDao(this); }
[ "public static IDAO DAO()\n {\n Log.d(TAG, \"DAO: Attempting get instance. Instance: \" + (DAO != null));\n if (DAO == null)\n {\n DAO = new DAOFactory().getDAO();\n Log.d(TAG, \"DAO: New DAO instance.\");\n }\n Log.d(TAG, \"DAO: Returning instance.\");\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Overrides TTrack getToolbarPointComponents method.
public ArrayList<Component> getToolbarPointComponents(TrackerPanel trackerPanel, TPoint point) { ArrayList<Component> list = super.getToolbarPointComponents(trackerPanel, point); xField.setEnabled(false); yField.setEnabled(false); ...
[ "public ArrayList<Component> getToolbarPointComponents(TrackerPanel trackerPanel,\n TPoint point) {\n ArrayList<Component> list = super.getToolbarPointComponents(trackerPanel, point);\n xField.setEnabled(false);\n yField.setEnabled(false)...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column USER_CLIENT.user_person_uuid
public void setUser_person_uuid(String user_person_uuid) { this.user_person_uuid = user_person_uuid; }
[ "public String getUser_person_uuid() {\n return user_person_uuid;\n }", "@Override\n public void setUserUuid(java.lang.String userUuid) {\n _person.setUserUuid(userUuid);\n }", "@Override\n public void setUuid(java.lang.String uuid) {\n _person.setUuid(uuid);\n }", "public ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/////////////////////// TestCase 3 API call= GET Description= Search for repositories matches repositories with exactly 500 stars, that are written in Java and sorted by most recently updated date and order decreasingly. Validation= Status code validation, validation of no. of starts to repository, Validation of langua...
@Test public void getRepoStarts() throws ClientProtocolException, IOException{ apiUrl =prop.getProperty("searchStartCountRepoURL"); url = serviceUrl + apiUrl; restClient = new RestClient(); closableHttpResponse = restClient.get(url); int statusCode = closableHttpResponse.getStatusLine().getStatusCode();...
[ "@Test\n\tpublic void getPublicRepo() throws ClientProtocolException, IOException{\n\t\tapiUrl =prop.getProperty(\"seachPublicRepoURL\");\t\t\n\t\turl = serviceUrl + apiUrl;\n\t\trestClient = new RestClient();\n\t\tclosableHttpResponse = restClient.get(url);\n\t\t\n\t\tint statusCode = closableHttpResponse.getStatu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the number of bands in the image data of this SampleModel object.
public final int getNumBands() { return numBands; }
[ "public int getBandCount()\n\t{\n\t\treturn getObject().getBandCount();\n\t}", "public int getImageBands()\r\n {\r\n return dimensions;\r\n }", "public final int[] getSampleSize() {\n int sampleSize[] = new int[numBands];\n int sizeInBits = getSampleSize(0);\n\n for (int i = 0; i <...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Draws a scaled, textured, tiled modal rect at z = 0. This method isn't used anywhere in vanilla code.
public static void drawScaledCustomSizeModalRect(int x, int y, float u, float v, int uWidth, int vHeight, int width, int height, float tileWidth, float tileHeight) { float f = 1.0F / tileWidth; float f1 = 1.0F / tileHeight; Tessellator tessellator = Tessellator.getInstance(); WorldRe...
[ "public void drawTexturedModalRect(int x, int y, int textureX, int textureY, int width, int height)\n {\n float f = 0.00390625F;\n float f1 = 0.00390625F;\n Tessellator tessellator = Tessellator.getInstance();\n WorldRenderer worldrenderer = tessellator.getWorldRenderer();\n wo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Begins definition for a new ApplicationTypeResource resource.
ApplicationTypeResource.DefinitionStages.Blank define(String name);
[ "ResourceFilesType createResourceFilesType();", "public boolean checkCreateResource(Application app, Class<? extends Resource> type, String name, int count);", "interface WithCreate extends DefinitionStages.WithKind, DefinitionStages.WithValidationMethod {\n /**\n * Executes the create re...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Unpublish a document in the portlet
@Action( ACTION_UNPUBLISHE_DOCUMENT ) public String doUnPublishDocument( HttpServletRequest request ) { populate( _blogPublication, request ); BlogPublicationHome.remove( _blogPublication.getIdBlog( ), _blogPublication.getIdPortlet( ) ); _blog = BlogService.getInstance( ).findByPrimary...
[ "void unPublish(Object impl, String service) throws PublicationException;", "void unsetDocument();", "@Override\n\tpublic void unpublish()\n\t{\n\t\tLOGGER.debug(\"Action unpublish() called on \" + this);\n\n\t\tif (this.getLifecycle() == Lifecycle.DRAFT) {\n\t\t\treturn; // TODO explode ?\n\t\t}\n\t\t\n\t\ttry...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test method associate(). Foreign key constraint violated on application area id, AuditException expected.
public void testassociate_AuditException() throws Exception { Address address = this.getAddress(); this.dao.addAddress(address, false); this.executeUpdate("delete from application_area where description = 'Project'"); try { this.dao.associate(address, 1, true); ...
[ "public void testassociate_AssociationException2()\r\n throws Exception {\r\n Address address = this.getAddress();\r\n this.dao.addAddress(address, false);\r\n this.dao.associate(address, 1, false);\r\n this.executeUpdate(\"insert into address_relation (creation_user,modification_...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
First, search by individual and obtain an interval > timeslice map.
private OWLIndividual getTimesliceIndividualFor( OWLIndividual individual, TimeInterval interval) { Map<TimeInterval, OWLIndividual> intervalToTimesliceIndividual = timesliceToIndividual.get(individual); if(intervalToTimesliceIndividual == null) { intervalToTimesliceIndividual = new HashMap<TimeInterval, ...
[ "Map<Integer, List<T>> getPieceByTime();", "static Map<IR.Reg,Interval> calculateLiveIntervals(IR.RegSet[] liveRanges) {\n Map<IR.Reg,Interval> liveIntervals = new HashMap<IR.Reg,Interval>(); \n for (int i = 0; i < liveRanges.length; i++) {\n for (IR.Reg t : liveRanges[i]) {\n\tInterval n = liveInterv...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Fire a SelectEvent object to all SelectListeners that are registered to it.
public void fireSelectEvent(SelectEvent select){ Object[] listeners = listenerList.getListenerList(); for(Object l : listeners){ if(l instanceof SelectListener){ ((SelectListener) l).selectEventOccured(select); } } }
[ "protected void fireSelected() {\n\t\tfor(PinListener listener : pinListeners)\n\t\t\tlistener.eventSelected();\n\t}", "public void fireSelectionChanged()\r\n\t{\r\n\t\tfinal SelectionChangedEvent event = new SelectionChangedEvent( this, new StructuredSelection( this ) );\r\n Object[] listeners = selectio...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Alternative constructor which allows to pass a custom DialogProvider and a custom DesktopProvider.
protected BaseController(DialogProvider aDialogProvider, DesktopProvider aDesktopProvider) { this.dialogProvider = aDialogProvider; this.desktopProvider = aDesktopProvider; }
[ "protected BaseController(DialogProvider aDialogProvider) {\n\n this(aDialogProvider, new DesktopProvider());\n }", "protected BaseController(DesktopProvider aDesktopProvider) {\n\n this(new DialogProvider(), aDesktopProvider);\n }", "public Component(Desktop desktop) {\r\n this.deskt...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }