query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
@Override public Builder id(java.lang.String id) { return (Builder) super.id(id); }
[ "String getSnomedId();", "public static String getResourceID() {\n\t\treturn getPackageName() + \":id/\";\n\t}", "@Schema(required = true, description = \"A system-unique id for the created resource\")\n public String getId() {\n return id;\n }", "String getGloballyUniqueId();", "public String getId() ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This will return the hashcode of the Queue
@Override public int hashCode() { return Objects.hash(Queue); }
[ "public long getHash() {\n\t\tlong hash = 0;\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 4; j++) {\n\t\t\t\thash = (i + j) * hash + this.elem.get(i).get(j);\n\t\t\t}\n\t\t}\n\t\treturn hash;\n\t}", "public Integer getHashcode() {\n\t\treturn hashcode;\n\t}", "public abstract int formHashCode()...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Retrieves the Team Connection revision number.
public String getRevisionNumber() { return (revisionNumber); }
[ "public String getRevision() {\n return RevisionUtils.extract(\"$Revision: 5987 $\");\n }", "public String getRevision() {\n return RevisionUtils.extract(\"$Revision: 201510615 $\");\n }", "public Integer getRevision() {\n return this.revision;\n }", "public long getRevision() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
save client to database
public void save() { try(Connection con = DB.sql2o.open()) { String sql = "INSERT INTO clients (name) VALUES (:name)"; this.id = (int) con.createQuery(sql, true) .addParameter("name", this.name) .executeUpdate() .getKey(); } }
[ "public void save(final IClient client) throws Exception;", "public void save(Client client)\r\n\t{\r\n\t\tclientRepository.save(client);\r\n\t}", "public void saveClient(Client client) {\n\t\trepository.save(client);\n\t}", "public void saveClient(String name)\r\n\t{\r\n\t\ttry \r\n\t\t{\r\n\t\t\tClient c = ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Enables command buttons on the gameBoard
private void enableCommandButton (){ Platform.runLater(() -> { if (hBoxDraftDice.getChildren().isEmpty()) { extractButton.setDisable(false); } }); resetMoveButton.setDisable(false); toolCardButton.setDisable(false); ...
[ "private void enableButtons() {\n\t\tstartButton.setEnabled(!gameOn);\n\t\tstopButton.setEnabled(gameOn);\n\t}", "public void enableButtons() {\n\t\tgreenSendButton.setEnabled(true);\n\t\tgreenEditTemplateButton.setEnabled(true);\n\t\tgeneralComposeButton.setEnabled(true);\n\t\tgeneralTemplateMenu.setEnabled(true...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Zero argument constructor used to initialize the access bean. This constructor corresponds to the following home interface method: public abstract com.hps.july.persistence.StoragePlace com.hps.july.persistence.StoragePlaceHome.findByPrimaryKey(com.hps.july.persistence.StoragePlaceKey) throws java.rmi.RemoteException,ja...
public StoragePlaceAccessBean () { super(); }
[ "public Mi203DAOImpl() {\n super();\n }", "public EastDgxdywjjPK() {\n\t}", "public EastJjkxxPK() {\n\t}", "protected abstract void initializeInternal() \r\n throws KeyAccessDeniedException;", "public SysDictionaryDAO() {\r\n super();\r\n }", "public void initialize()\r\n throw...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void clear() { head = null; size = 0; }
[ "@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" ] ] } }
Test a successful database call for adding a new customer
@Test public void createValidCustomerFromGUI() { JButton buttonAddCustomer = addCustomer.getButtonAddCustomer(); addCustomer.getTxtCustFirstname().setText("TEST_CUSTOMER_FIRSTNAME"); addCustomer.getTxtCustLastname().setText("TEST_CUSTOMER_LASTNAME"); addCustomer.getTxtdob().setDate(...
[ "@Test\n public void addCustomer_ValidInfo_addSuccess() {\n Customer cus = new Customer();\n cus.setName(\"Phan Phi Hung\");\n cus.setIdentityCard(\"79812312\");\n cus.setNumberCard(\"898172712\");\n cus.setPhone(\"0982710928\");\n cus.setPromotionsId(1);\n cus.se...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Add setter method for wilder attribute
public void setWilder(boolean wilder) { this.wilder = wilder; }
[ "public Method getSetter() {\n\n return setter;\n }", "public void setSetter(Method setter) {\n\n this.setter = setter;\n }", "void addSettersAndGetters(String path, String field);", "public interface Setter<V> {\n /**\n * Call setter.\n */\n public void call(V x);\n }", "...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method sets the title of the portlet. The value can be a text String
public void setTitle(String title) { //Do not set the title after the response is committed if(isCommitted()) return; // If the title returned from getTitle method of GenericPortlet is same as the input title, use the // title set in PAE or use the input title String genericPortletTitl...
[ "public void setTitle(String value){\n this.title = value;\n }", "public void setTitle(String value) {\r\n title = value;\r\n }", "public void setTitle(String title)\n {\n this.title=title;\n }", "public void setTitle(String title)\r\n {\r\n this.title=title;\r\n }...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public boolean supports(Class<?> arg0) { return News.class.equals(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" ] ] } }
<< << << Format(pCOL,pVALUE)
public Object Format(Object ... _p) { mVar pCOL = m$.newVarRef("pCOL",(((_p!=null)&&(_p.length>=1))?_p[0]:null)); mVar pVALUE = m$.newVarRef("pVALUE",(((_p!=null)&&(_p.length>=2))?_p[1]:null)); //<< ;------------------------------------------------------------------------------- //<< ; //<< ; Return...
[ "@Override\n\tpublic String toString()\n\t{\n\t\treturn m_colName + \" = \" + String.valueOf(m_value);\n\t}", "@Test\n public void vFormat(){\n List<SheetRow> result = query(\"s1\",\"SELECT D where A = 2 format D '#,##0.00'\",0,12);\n Assert.assertEquals(1, result.size());\n }", "private Str...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adds a collection of effects to an entity
void giveEffect(Collection<Effect> effects);
[ "Collection<ProductionEffect> getEffects();", "@ApiModelProperty(required = true, value = \"An array of effects generated by the rules of the enabled campaigns of the Application. You decide how to apply them in your system. See the list of [API effects](https://docs.talon.one/docs/dev/integration-api/api-effect...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the registered column name mappers.
public List<ColumnNameMatcher> getColumnNameMatchers() { return Collections.unmodifiableList(columnNameMatchers); }
[ "public Map<String, String> getColumnNameMapping();", "public Map<String, String> getColumnTypeMapping();", "Map<String, Column> getSelectAllColumnsByName();", "Object getMAPPINGNAME();", "public static List<String> getColumnNames() {\n return WineTableLabelProvider.COLUMN_NAMES_LIST;\n }", "public Li...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
assigned new tasks to
public static Map<Integer, NodePort> computeNewTaskToNodePort(NimbusData data, String topologyid, Assignment existingAssignment, StormClusterState stormClusterState, RunnableCallback callback, Map<String, SupervisorInfo> supInfos, boolean isScratch) throws IOException { //taskheartcache(Map<storm...
[ "void newTask(Task task){\n\t\t\tif(Task.TaskType.CLEANING.equals(task.type)) {\n\t\t\t\tpendingHouseKeepingTasks.add(task);\n\t\t\t}else {\n\t\t\t\tpendingRoomServiceTasks.add(task);\n\t\t\t}\t\t\t\n\t\t\tassignTasks();\n\t\t}", "private void buildAndAddTasksWithPendingMappingForUser() {\n final SFlowNode...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set The input protocol.
public void setProtocol(String Protocol) { this.Protocol = Protocol; }
[ "public void setProtocol(String protocol) \n {\n String oldProtocol = this.protocol;\n this.protocol = protocol;\n\tchanges.firePropertyChange(\"protocol\", oldProtocol, protocol);\n }", "public void setProtocol(final String protocol) {\n \tthis.protocol = protocol;\n }", "@Overri...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
gRPC route configuration. .yandex.cloud.apploadbalancer.v1.GrpcRoute grpc = 3;
public Builder clearGrpc() { if (grpcBuilder_ == null) { if (routeCase_ == 3) { routeCase_ = 0; route_ = null; onChanged(); } } else { if (routeCase_ == 3) { routeCase_ = 0; route_ = null; } grp...
[ "com.google.protobuf.Any getRouteConfig();", "com.google.protobuf.AnyOrBuilder getRouteConfigOrBuilder();", "io.envoyproxy.envoy.extensions.filters.network.dubbo_proxy.v3.RouteConfiguration getRouteConfig(int index);", "io.grpc.examples.routeguide.Point getLo();", "private ExtAuthzPerRoute(com.google.protob...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Run the String getDescription() method test.
@Test public void testGetDescription_fixture3_1() throws Exception { NkPkQueryIdentity fixture = getFixture3(); String result = fixture.getDescription(); // add additional test code here assertEquals("Identity definition by NK-PK query: 0123456789", result); }
[ "@Test\r\n public void testGetDescription() {\r\n System.out.println(\"getDescription\");\r\n String expResult = \"somos uma empresa\";\r\n String result = a.getDescription();\r\n assertEquals(expResult, result);\r\n \r\n }", "@Test\n public void testGetDescription() {\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The output .zip file to write the annotations database to, if any
@Optional @OutputFile public File getOutput() { return output; }
[ "private void writePackageToFile(FilterC32Response c32Response)\n\t\t\tthrows IOException, FileNotFoundException {\n\n\t\tbyte[] bytes = c32Response.getFilteredStreamBody();\n\n\t\tFileOutputStream fos = new FileOutputStream(\"xdm.zip\");\n\t\ttry {\n\t\t\tfos.write(bytes);\n\t\t} finally {\n\t\t\tfos.close();\n\t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__RequirementDefinitionsType__Group__0" $ANTLR start "rule__RequirementDefinitionsType__Group__0__Impl" ../eu.artist.tosca.dsl.ui/srcgen/eu/artist/tosca/dsl/ui/contentassist/antlr/internal/InternalToscaDSL.g:18219:1: rule__RequirementDefinitionsType__Group__0__Impl : ( 'RequirementDefinitionsType' ) ;
public final void rule__RequirementDefinitionsType__Group__0__Impl() throws RecognitionException { int stackSize = keepStackSize(); try { // ../eu.artist.tosca.dsl.ui/src-gen/eu/artist/tosca/dsl/ui/contentassist/antlr/internal/InternalToscaDSL.g:18223:1: ( ( 'RequirementDefin...
[ "public final void rule__RequirementDefinitionsType__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.json.ui/src-gen/org/xtext/example/mydsl/ui/contentassist/antlr/internal/InternalMyjson.g:31549:1: ( rule__Re...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Burns a players missions.
private void csBurnMissions(Unit attacker, IndianSettlement settlement, ChangeSet cs) { ServerPlayer attackerPlayer = (ServerPlayer) attacker.getOwner(); StringTemplate attackerNation = attackerPlayer.getNationName(); ServerPlayer nativePlayer = (ServerPlayer) settlement.getOwner(); Strin...
[ "private void giveMissions() {\n\t\tMission[] shuffledMissions = shuffleMissions();\n\t\tint i = 0;\n\t\tfor(Player p : players) {\n\t\t\tp.giveMission(shuffledMissions[i]);\n\t\t\ti++;\n\t\t}\n\t}", "public void burn() {\n\t\tif (fireStatus > 0) {\r\n\t\t\tTile[] nearby = proximityCheck(); //Fire spread. Affecte...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Inserta o updata les ofertes.
public void insertOrUpdateOffers(JSONObject offers) { try { JSONArray offersArray = offers.getJSONArray("offers"); String id, brand_id, clothes_id, style_id, gender, url, bluetooth_id, creation_time; Integer discount, minage, maxage; String insert = "", update...
[ "private void insertData() {\n PaseadorEntity paseador = factory.manufacturePojo(PaseadorEntity.class);\n em.persist(paseador);\n paseadorTest = paseador;\n for (int i = 0; i < 3; ++i) {\n FranjaHorariaEntity entity = factory.manufacturePojo(FranjaHorariaEntity.class);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
affiche les valeur superieur a la moyenne
public static void supMoyenne(int[] tab) { double moyenne = moyenne(tab); for (int i = 0; i < tab.length; i++) { if (tab[i] > moyenne) { System.out.println(tab[i]); } } }
[ "public List<Integer> afficheMoisSuivant(){\t\t\r\n\t\t\tCalendar cal=Calendar.getInstance();\t\r\n\t\t\tcal.setTime(new Date());\r\n\t\t\t//on rajoute 1 mois au mois en cours\r\n\t\t\tcal.add(Calendar.MONTH, 1);\r\n\t\t\tcal.getTime();\r\n\t\t\tint mois=cal.get(Calendar.MONTH);\r\n\t\t\t\r\n\t\t\tint an=cal.get(Ca...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
object detected while closing
public boolean objectDetectedWhileClosing() { // of gGTO == 0 ignore if gGTO ==1 check if (gGTO() == '0') { return false; // If there was no goto request ignore } else { if (gOBJ().equals("10")) { System.out.println("Object Detected!"); return true; // if gOBJ =="0x02" fingers are have stopped d...
[ "@Override\n\tprotected void closed() {\n\t\t\n\t}", "@Override\r\n\tpublic void closed() {\n\t}", "public boolean close(/*Object user_data*/);", "private void close() {\n\n\t}", "public abstract void wasClosed();", "protected void close( )\n \t\t{\n \t\t}", "@Override\n public void close(){\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates the NativeScreen for this platform. Called once.
protected abstract NativeScreen createScreen();
[ "@Override\n public void create() {\n setScreen(new GameScreen());\n }", "@Override\n\tpublic void create () {\n\t\tthis.setScreen(new MainMenuScreen(this));\n\t}", "Screen( DisplayDevice theDisplay ) {\n\n display = theDisplay;\n prompts = new ArrayList<Prompt>();\n tr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The number of times your ads are appearing on placements in positions where they can be seen. optional int64 active_view_measurable_impressions = 189;
long getActiveViewMeasurableImpressions();
[ "long getVisibilitySampleCount();", "int getActivityRankInfoCount();", "int getImpactsCount();", "public int getShowCount() {\n AppMethodBeat.m2504i(134368);\n int i;\n if (this.jax == C19907f.RECENT_APP_BRAND) {\n i = C2545b.iWq;\n AppMethodBeat.m2505o(134368);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Retrieve a reference to the 3 component unit vector that corresponds to the current position. Do not modify the values of this array.
public double[] getVector() { return unitVector; }
[ "public Vector3 unit() {\n\t\tdouble absA = Math.sqrt(x*x + y*y + z*z);\n\t\t\n\t\tif (absA == 0)return new Vector3(0, 0, 0);\n\t\treturn new Vector3(x/absA, y/absA, z/absA);\n\t}", "public FloatColumn getVector3() {\n return delegate.getColumn(\"vector[3]\", DelegatingFloatColumn::new);\n }", "public...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns an InputStreamReader to read a resource from a file in the test target output directory.
protected Reader getTestReader( String baseName ) { return getTestReader( baseName, outputExtension() ); }
[ "public InputStreamReader getFileInputStream() {\n\t\tString className = this.getClass().getName();\n\t\tString filePath = className.replace(\".\", \"/\") + \".yml\";\n\t\tlog.info(\"Test Data File Name - \" + filePath);\n\t\treturn new InputStreamReader(this.getClass().getClassLoader().getResourceAsStream(filePath...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Perform action on clicks
@Override public void onClick(View v) { if (((ToggleButton) v).isChecked()) { incrementCheck = true; dialogDescription.setText("Click the amount to increment by"); } else { //Log("GameCounterActivity","incrementing should be false now")...
[ "public void doClick();", "private static void click() {\n\t\t\n\t}", "native public void click();", "@Override\n\tpublic void click() {\n\t}", "public void onClick() {\n this.g.performClick();\n }", "public void clicked() {\n\t\tif (clicked) {\n\t\t\tclicked = false;\n\t\t} else {\n\t\t\tclicke...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the building containing the surface. To call only in the third step.
public final Building returnBuildingContaining3(final Surface surface) { for (Building building : this.islet.getBiStep3().getBuildings()) { BuildingStep3 buildingStep = building.getbStep3(); if (buildingStep.getInitialTotalSurface() == surface) { return building; ...
[ "public Building getStockade() {\n // TODO: it should search for more than one building?\n for (Building building : buildingMap.values()) {\n if (!building.getType().getModifierSet(\"model.modifier.defence\").isEmpty()) {\n return building;\n }\n }\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO: Liberate resources and quit wifi
public void quit(View view) { androidcontrolinterfaceVariable = (androidcontrolinterface) getApplication(); androidcontrolinterfaceVariable.setIsRunning(false); androidcontrolinterfaceVariable.setMyoIsRunning(false); androidcontrolinterfaceVariable.setStandardIsRunning(false); an...
[ "@Override\n\tpublic void onWifiConnecting() {\n\t\t\n\t}", "private void setWifi() {\n new SetWifi(this, playClient, \"E0008\", \"12345678\").execute();\n }", "private void scanWifiNow() {\n wifiManager = (WifiManager) Utils.getContext().getSystemService(Context.WIFI_SERVICE);\n\n /** T...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
int32 returnedType = 5;
public Builder clearReturnedType() { returnedType_ = 0; onChanged(); return this; }
[ "Integer asInteger();", "PrimitiveTypeInt createPrimitiveTypeInt();", "public Integer getType();", "int getVint32();", "Integer mo58684d();", "public static int integerDataType(){\n int num = 1;\n return num;\n }", "@NativeType(\"opus_int32\")\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Restricts the search to only those vehicles with at least one of the specified attributes applied to each VehicleAttributeList. Within each list, a vehicle must match at least one of the attributes. This field is an inclusive disjunction/OR operation in each VehicleAttributeList and a conjunction/AND operation across t...
java.util.List<? extends google.maps.fleetengine.v1.VehicleAttributeListOrBuilder> getRequiredOneOfAttributesOrBuilderList();
[ "public Builder requiredAttributes(final Collection<String> attributeNamesOrOIDs) {\n this.requiredAttributes.addAll(attributeNamesOrOIDs);\n return this;\n }", "public Builder requiredAttributes(final Collection<String> attributeNamesOrOIDs) {\n this.requiredAttributeOIDs....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Close the file if it is not in use.
private boolean close(SharedFile file, String path) throws IOException { if (file != null) { sLog.debug("Closing file descriptor for %s, %s", path, file); if (file.getNumReaders() == 0) { file.close(); if (mUncompressedFileCache != null) { ...
[ "public void closeFile(){\n\t\ttry{\n\t\t\tfile.close();\n\t\t\tisFileOpen = false;\n\t\t}\n\t\tcatch (Exception ex)\n\t \t{\n\t \tSystem.err.println(ex.getMessage());\n\t \tex.printStackTrace();\n\t \tSystem.exit(0);\n\t \t}\n\t \tfinally{\n\t \t\tfile = null;\n\t \t}\n\t}", "public void closeFile ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
.common.StaticCollectionConfig static_collection_config = 1;
public boolean hasStaticCollectionConfig() { return payloadCase_ == 1; }
[ "public interface ApiConstant {\n\n /** The default page size for collections. */\n public static final int DEFAULT_LIST_PAGE_SIZE = 10;\n\n}", "boolean hasCollectionConfig();", "public static void testCollections(){\n\t\t\n\t}", "JavalutionCollectionFactory() {\r\n }", "public String getCollection...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.dialog_add_or_edit_transaction, container, false); dao = new Dao(getActivity()); List<Category> categories = da...
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.movie_statistic_layout, parent, false);\n }", "@Override\n\tprotected View initView(LayoutInflater inflate...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method to get the state of a Pet.
public String getState() { return(state); }
[ "public ShotResult getState()\n {\n return this.state;\n }", "HealthState getHealthState();", "public Integer getPetStatus() throws InvalidResponseException {\n\n ApiResponse response = caller.executeRequest(getRequest(), Method.GET, PetType.class);\n return response.getHttpStatusCode...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Destroys the current HTTP session for the given CAS logout request.
public void destroySession(final HttpServletRequest request) { final String logoutMessage = CommonUtils.safeGetParameter(request, this.logoutParameterName); if (log.isTraceEnabled()) { log.trace ("Logout request:\n" + logoutMessage); } final String token = XmlUtils.g...
[ "@DELETE\n\tpublic void logout(@Context HttpServletRequest request) {\n\t\tm_log.debug(\"Delete\");\n\n\t\t// remove authentication object from session\n\t\trequest.getSession().setAttribute(AuthenticationFilter.AUTH_OBJECT_NAME, null);\n\t}", "public void logout() throws IOException{\n\t\tsessions_rep.deleteSess...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__Connection__Group__2__Impl" $ANTLR start "rule__Monster__Group__0" InternalLevelDesign.g:1007:1: rule__Monster__Group__0 : rule__Monster__Group__0__Impl rule__Monster__Group__1 ;
public final void rule__Monster__Group__0() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalLevelDesign.g:1011:1: ( rule__Monster__Group__0__Impl rule__Monster__Group__1 ) // InternalLevelDesign.g:1012:2: rule__Monster__Group__0__Impl ...
[ "public final void rule__RoomDeclaration__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalRinform.g:793:1: ( rule__RoomDeclaration__Group__0__Impl rule__RoomDeclaration__Group__1 )\n // InternalRinform.g:794:2: ru...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method corresponds to the database table ship_order_source
public String getOrderByClause() { return orderByClause; }
[ "protected Source createOrderDetailSource() {\r\n\t\tList<Field> fields = new ArrayList<Field>();\r\n\t\tField field1 = new Field(\"OrderID\", \"OrderID\", \"\",\r\n\t\t\t\tNativeDataTypes.FlatFile.INT, \"10\", \"0\",\r\n\t\t\t\tFieldKeyType.FOREIGN_KEY, FieldType.SOURCE, false);\r\n\t\tfields.add(field1);\r\n\r\n\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checks whether this world has proper entities attached to it.
public boolean hasProperEntities() { for (Entity entity : entities) { if (!canHaveAsEntity(entity)) return false; if (entity.getWorld() != this) return false; } return true; }
[ "@Raw\n\tpublic boolean hasProperWorld(){\n\t\treturn canHaveAsWorld(getWorld()) && \n\t\t\t\t(getWorld() == null || getWorld().hasAsFood(this));\n\t}", "public boolean checkEntitiesOnDungeon(Entity e) {\r\n \treturn this.entities.contains(e);\r\n }", "public boolean hasProperUnits() {\r\n\t\tif(this.getN...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column user.nick_name
public String getNickName() { return nickName; }
[ "public String getNickName(){\n\t\treturn this.nickName;\n\t}", "public String getNickName()\n {\n return (nickName == null) ? null : nickName.toString();\n }", "public java.lang.String getUserNickName() {\n java.lang.Object ref = userNickName_;\n if (ref instanceof java.lang.String) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Construct a method symbol, given its flags, name, type and owner.
public MethodSymbol(long flags, Name name, Type type, Symbol owner) { super(MTH, flags, name, type, owner); }
[ "@Override\n public MethodSpec create() {\n return createMethod(this.typeVariableName.name.toLowerCase(this.locale));\n }", "public interface SymbolFactory {\n // Factory methods\n /**\n * Construction with left/right propagation switched on\n */\n public Symbol newSymbol(String name...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the instance class on the given classifier.
@Override protected void fixInstanceClass(EClassifier eClassifier) { if (eClassifier.getInstanceClassName() == null) { eClassifier.setInstanceClassName("org.w3c.xhtml1." + eClassifier.getName()); setGeneratedClassName(eClassifier); } }
[ "public void setClassifier(Classifier c) throws Exception {\n m_classObject = c;\n m_classObject.buildClassifier(m_training);\n }", "public void setClassifier(Classifier newClassifier) {\n\n m_Classifier = (DistributionClassifier)newClassifier;\n }", "public void setClazz(Class<T> clazzToSet) {...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
builder factory method for StagedOrderSetDeliveryCustomFieldAction
public static StagedOrderSetDeliveryCustomFieldActionBuilder builder() { return StagedOrderSetDeliveryCustomFieldActionBuilder.of(); }
[ "public static MyShoppingListSetTextLineItemCustomFieldActionBuilder builder() {\n return MyShoppingListSetTextLineItemCustomFieldActionBuilder.of();\n }", "public static StagedOrderSetShippingMethodTaxAmountActionBuilder builder() {\n return StagedOrderSetShippingMethodTaxAmountActionBuilder.of(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the Course's name
private void setName(String name) { if (name == null) { throw new IllegalArgumentException(); } if (name.length() < MIN_NAME_LENGTH || name.length() > MAX_NAME_LENGTH) { throw new IllegalArgumentException(); } this.name = name; }
[ "public void setCourseName(String name)\r\n {\r\n courseName = name;\r\n }", "public final void setCourseName(String courseName) {\n if(courseName == null || courseName.length() == 0) {\n JOptionPane.showMessageDialog(null,\n \"Error: courseName cannot be null or empt...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Read data from the given JSONObject and populate the given Map
@SuppressWarnings("unchecked") protected static void readMapField( final JSONObject jsonObject, final Map map, final Stack<Class> innerClasses) throws Exception { Class<?> keyClass = innerClasses.pop(); Class<?> valClass = innerClasses.pop(); Collection<Class<?>> valInterfaces = ClassUtil.getI...
[ "private HashMap<String, String> parseToMap(final InputStream is) \n throws Exception {\n JsonParser jp = JSON.parseToStream(is);\n HashMap<String, String> map = new HashMap<String, String>();\n String field = \"\";\n String value;\n while (jp.nextToken() != null) {\n if (jp.getCurrentToken()...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ access modifiers changed from: protected
public JavaType _unknownType() { return new SimpleType(Object.class, (String[]) null, (JavaType[]) null); }
[ "@Override\n }", "protected void method_5557() {}", "@Override\n public void extornar() {\n \n }", "@Override\r\n public void publicando() {\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "pro...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void afterTextChanged(Editable s) { mCompleteWordsCharsCounter.setText("("+Utils.calculateLength(s.toString())+"/"+MAX_MULTIPLE_EDITTEXT_LEN+")"); }
[ "@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" ] ] } }
Create an Action that implements the "flip out" animation.
private final Action actionFlipOut() { final float cardWidth = this.getWidth(); final float duration = 0.125f; Action shiftRight = Actions.moveBy(cardWidth / 2, 0.0f, duration); Action scaleToZeroWidth = Actions.scaleTo(0.0f, 1.0f, duration); return Actions.parallel(shiftRight, scaleToZeroWidth); }
[ "private Animation outToRightAnimation(){\r\n\t\tif(_debug) Log.v(\"ThemeViewFlipper.outToRightAnimation()\");\r\n\t\tAnimation outtoRight = new TranslateAnimation(\r\n\t\tAnimation.RELATIVE_TO_PARENT, 0.0f,\r\n\t\tAnimation.RELATIVE_TO_PARENT, +1.0f,\r\n\t\tAnimation.RELATIVE_TO_PARENT, 0.0f,\r\n\t\tAnimation.RELA...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method to tell whether an end of ImmutableArcInst has its ends extended. Extended arcs continue past their endpoint by half of their width. Most layout arcs want this so that they make clean connections to orthogonal arcs.
public boolean isExtended(int connIndex) { if ((connIndex & ~1) != 0) { throw new IllegalArgumentException("Bad end " + connIndex); } return ((flags >> connIndex) & TAIL_EXTENDED_MASK) != 0; }
[ "boolean hasRelativeEnd();", "public boolean hasEndLine() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }", "public boolean hasEnd() {\n return endBuilder_ != null || end_ != null;\n }", "public boolean isBendArcs() {\n return isBendArcs;\n }", "public boolean isAtEnd() {\r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
update the property value upon request and validates the new value. Updates the object, which was displayed in a form using the getEditHTML(...) code. Throws Exception if new value could not be validated
public Object updateField(HttpServletRequest request_p, OwFieldDefinition fieldDef_p, Object value_p, String strID_p) throws Exception { String value = request_p.getParameter(strID_p); if (value != null && !"".equals(value)) { Iterator<?> it = fieldDef_p.getEnums().iterator(...
[ "public void updateEditable() {\n final MetaProperty property = boundedMetaProperty();\n if (property != null) {\n SwingUtilitiesEx.invokeLater(new Runnable() {\n @Override\n public void run() {\n boundedValidationLayer.getView().setEnabled(p...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the cell a.
public void setCellA(Cell cellA) { this.cellA = cellA; }
[ "void setCell(int row, int col, String value);", "public void setA(double a)\n\t{\n\t\tthis.a = a;\n\t}", "public abstract void setCell(int col, int row, boolean val);", "private void setCell(Cell c) {\n\n\t\tthis.gameBoard[c.row][c.column] = c.value;\n\t}", "public void setA(Vector a) {\r\n\t\tthis.a = a;\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Two OclStrings are equal if their java.lang.String values are equal and none of them is undefined.
public OclBoolean isEqualTo(Object o) { if (!(o instanceof OclString)) { System.out.println( "OclString.isEqualTo() called with non-OclString parameter" ); return OclBoolean.FALSE; } else { OclString os = (OclString) o; if (isUndefined()) /* Constructor changed during refactoring by Cl...
[ "@Test\n public void equalComparing() {\n String string1 = \"using equals method\";\n String string2 = \"using equals method\";\n\n String string3 = \"using EQUALS method\";\n String string4 = new String(\"using equals method\");\n\n assertThat(string1.equals(string2)).isTrue()...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public boolean checkReturn() { return false; }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Interface for a class wrapping a MimeHeaders, adding methods to ease usage.
public interface MimeHeadersContainer<ME extends MimeHeadersContainer<ME>> { /** Return the MIME headers. */ MimeHeaders getHeaders(); /** Set a MIME header. */ @SuppressWarnings("unchecked") default ME setHeader(String name, String rawValue) { getHeaders().setRawValue(name, rawValue); return (ME)this; } ...
[ "public interface IFileItemHeaders\n{\n /**\n * Returns the value of the specified part header as a <code>String</code>. If\n * the part did not include a header of the specified name, this method return\n * <code>null</code>. If there are multiple headers with the same name, this\n * method returns the fi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The play method will execute the game in battle rounds. It will get heroes in the front of each party and let them fight with each other.
public void play() { int round = 0; while (true) { round+=1; System.out.printf("Battle #%d\n==========\n",round); System.out.println("DRAGON:"); System.out.println(dragonParty); System.out.println("LION:"); System.out.println(lionPa...
[ "private void playRound(){\n for(Player p : players){\n p.takeTurn();\n }\n }", "public void play(){\n while(player.isPlaying()){\n bet();\n \n distribution();\n \n actionPlayers();\n \n actionCroupier(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns type of the info text. text/plain or text/html.
protected String getInfoType() { return Tools.MIME_TYPE_TEXT_PLAIN; }
[ "public String getContentType()\n {\n return \"text/plain\";\n }", "private String getContentType(String fileRequested) {\r\n\t\t\tif (fileRequested.endsWith(\".htm\")||fileRequested.endsWith(\".html\"))\r\n\t\t\t\treturn \"text/html\";\r\n\t\t\telse\r\n\t\t\t\treturn \"text/plain\";\r\n\t\t}", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__ComplexTypeImport__Group__0__Impl" $ANTLR start "rule__ComplexTypeImport__Group__1" InternalDataDsl.g:1093:1: rule__ComplexTypeImport__Group__1 : rule__ComplexTypeImport__Group__1__Impl rule__ComplexTypeImport__Group__2 ;
public final void rule__ComplexTypeImport__Group__1() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalDataDsl.g:1097:1: ( rule__ComplexTypeImport__Group__1__Impl rule__ComplexTypeImport__Group__2 ) // InternalDataDsl.g:1098:2: rule__Co...
[ "public final void rule__ComplexTypeImport__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalOperationDsl.g:14322:1: ( rule__ComplexTypeImport__Group__0__Impl rule__ComplexTypeImport__Group__1 )\n // InternalOperat...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ GetMapping for delete ItemServeType
@RequestMapping(value = "/deleteItemServeType", method = { RequestMethod.GET }) public ResponseEntity<JsonResponse<Object>> deleteItemServeType(@RequestParam String id, @RequestParam String createdBy) { return itemServeTypeDao.deleteItemServeType(id, createdBy); }
[ "@DeleteMapping(\"/item/{id}\")\n void deleteItem(@PathVariable int id) {\n itemRepository.deleteById(id);\n }", "@DeleteMapping(\"items/{id}\")\n\tpublic String deleteItem(@PathVariable int id) {\n\t\tsuperMarketDao.delete(id);\n\t\treturn \"Deleted\";\n\t}", "public ResponseEntity<?> deleteItem(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Recalculate speedX, speedY and scale when the player must move in the direction of a given node
private void moveInDirectionToTheNode( long elapsedTime, float x, float y, float speed, Node nextNode ) { double dist = getDistance( nextNode.getX( ), nextNode.getY( ), x, y ); float distX = nextNode.getX( ) - x; float distY = nextNode.getY( ) - y; double rectDist = Math.abs( distX ) + ...
[ "public void move() {\r\n if (speed > 0) {\r\n\r\n prevX = x;\r\n prevY = y;\r\n\r\n velocity.x = calculateFriction(velocity.x);\r\n velocity.y = calculateFriction(velocity.y);\r\n\r\n x += velocity.x;\r\n y += velocity.y;\r\n }\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Strategy Pattern implementation, hash will hash the list above depending on which instance of HashingStrategy is provided.
public Set<Integer> hash(HashingStrategy hs) { // return the set by delegating the work to the hashing algorithm and // returning what it returns return hs.hash(shingles); }
[ "@VertxGen\npublic interface HashStrategy {\n\n /**\n * Compute the hashed password given the unhashed password and the user\n *\n * @param password\n * the unhashed password\n * @param user\n * the user to get the salt for. This paramter is needed, if the {@link HashSaltStyle#COLUMN}...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional int32 cardNoX = 1;
public boolean hasCardNoX() { return ((bitField0_ & 0x00000001) == 0x00000001); }
[ "static int getNumCard() {\n return numCard;\n }", "private Card(int pkCard) {\n this.packedCard = pkCard;\n }", "public String getCard_no()\n/* */ {\n/* 223 */ return this.card_no;\n/* */ }", "public void setIdcardValidate(Integer idcardValidate)\n/* */ {\n/* 238 */ ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Init is called once per chain when the chain is created. This allows the smartcontract to initialize any variables on the ledger prior to any transaction execution on the chain.
@Override public SmartContractResponse init(ISmartContractStub stub) { log.info("Init CSSC"); IMsp localMSP = GlobalMspManagement.getLocalMsp(); policyChecker=new PolicyChecker(new GroupPolicyManagerGetter(),localMSP,new MSPPrincipalGetter()); configManager =new ConfigManager(); ...
[ "@Transaction()\n public void initLedger(final Context ctx) {\n }", "private void initialize() {\n\t\tcurrentState = TradingState.COMPUTE; // Start fsm at computation (action) state\n\t\t\n\t\tcustom = new CustomUserModule(this); // Creates the custom user module.\n\t\t\n\t\tconnect(clientId); // Connect to...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void onClick(View v) { switch (v.getId()) { case R.id.button_voicesetting_voiceEnable: if("in_use".equals((String)button_voicesetting_voiceEnable.getTag())){ /** * 关闭语音合成功能 */ button_voicesetting_voiceEnable.setTag("off_use"); button_voicesetting_voiceEnable.setCompoundDra...
[ "@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" ] ] } }
Hexencoded and uppercased raw bytes of the digital signature, performed over `fingerprint` by the private key corresponding to the `public_key` listed in the request. string hex = 7;
public Builder setHex( java.lang.String value) { if (value == null) { throw new NullPointerException(); } signatureCase_ = 7; signature_ = value; onChanged(); return this; }
[ "public String getFingerPrint(PublicKey publicKey) {\n Composite encKey = encode(publicKey, Const.PK_ENC_X509);\n byte[] derBytes = encKey.getAsBytes(Const.PK_BODY);\n MessageDigest messageDigest = null;\n try {\n messageDigest = MessageDigest.getInstance(\"MD5\");\n } catch (NoSuchAlgorithmExce...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
using Lambda expression without parameter
public static void main(String[] args) { MyInterface1 myInterface1 = () -> System.out.println("THis method executes using anonymous class"); myInterface1.method1(); System.out.println("----------------"); //using Lambda expression with parameter //This is implementation of MyInterface2 MyInterface2 myIn...
[ "@FunctionalInterface\npublic interface TestLambda {\n\n public void run();\n\n static int addUp(Stream<Integer> numbers) {\n Integer sum = numbers.reduce((x, y) -> x + y).get();\n return sum;\n }\n\n public static void main(String[] args) {\n /*1.没有参数\n Runnable runnable = (...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ / / / / / /
public static JsonObject getElementAsJsonObject(JsonElement p_151210_0_, String p_151210_1_) { /* 225 */ if (p_151210_0_.isJsonObject()) /* */ { /* 227 */ return p_151210_0_.getAsJsonObject(); /* */ } /* */ /* */ /* 231 */ throw new JsonSyntaxException("Expected " + p_151210_...
[ "private void calculatePaths() {\n\n\n }", "public static void main (String arg[]){\n\tSystem.out.println(\" ( ) ( ( \"); \n\n\tSystem.out.println(\" ( )\\\\ ) ( /( ( )\\\\ ) ( )\\\\ ) \");\n\t\n\tSystem.out.println(\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); if (id == R.id.action_settings) { return true; } return super.onOptionsItemSelected(item); }
[ "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch(item.getItemId()){\n\t\tcase android.R.id.home:\n\t\t\t// app icon in action bar clicked; go home\n Intent intent = new Intent(this, MainMenuCard.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
P1 hacer un objeto o instancia de arralyts
public static void main(String[] args) { ArrayList <String> cadenas; cadenas = new ArrayList<String>(); //P2 definir 2 variables mas String frase, respuesta; //P3 llenar el arraylist dinamicamente do { //primero vamos a capturar la f...
[ "public carrera()//contructor\r\n {\r\n this.fecha=Instant.now().toString();\r\n this.Pais=\"argentina\";\r\n this.AutoParticipantes=new auto[20];\r\n this.crearAutosTest();\r\n }", "public Deportista(){\n\t\tRegistro = new PruebaFisica[4];\n\t}", "public void ArregloEstudiante()\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ access modifiers changed from: private
public final void zza(zzab.zza zza2) { this.zzajm = (zzab) ((zztc) zza2.zzpx()); this.zzcd |= 64; }
[ "@Override\n }", "protected void method_5557() {}", "@Override\n public void extornar() {\n \n }", "@Override\r\n public void publicando() {\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "private InternalReflect() {\n\t\t\t// do nothing\n\t\t}", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set Disk size in GB. Note: This field may return null, indicating that no valid values can be obtained.
public void setDiskSize(Long DiskSize) { this.DiskSize = DiskSize; }
[ "public void setDiskSize(int newDiskSize) {\n this.diskSize = newDiskSize;\n }", "public Builder hardDiskFreeSpaceSize(Long value){\n hardDiskFreeSpaceSize = value;\n return this;\n }", "public Builder setFreeDiskSpace(long value) {\n bitField0_ |= 0x00000004;\n fr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
private void initDatas() { setSupportActionBar(mToolbar); getSupportActionBar().setHomeButtonEnabled(true); //设置返回键可用 getSupportActionBar().setDisplayHomeAsUpEnabled(true); sp = new SharePreferenceUtil(ChangeNameActivity.this, Constants.SAVE_USER); requestQueue = Volley.newReques...
[ "@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" ] ] } }
Retorna um onibus a partir do modelo passado. Se houver dois onibus com o mesmo modelo retorna o primeiro encontrado.
private Onibus buscarOnibus(String modelo) { for (Onibus o : colOnibus) { if (o.getModelo().equals(modelo)) { return o; } } return null; }
[ "public abstract ClienteModel findByNombreusuarioModel(String nombreusuario);", "public Optional<Usuario> findByNome(String nome);", "@RequestMapping(value = {\"/distribuicaos/find\" })\r\n\t\t public String findDistribuicao(Model model) {\t\t\t \t\r\n\t\t\t\t\r\n\t\t\t\tDistribuicao distribuicao = new Distr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ renamed from: a
public static final Bundle m119754a(Push push, boolean z) { Bundle bundle = new Bundle(); bundle.putParcelable(C6969H.m41409d("G6C9BC108BE0FBB28F51DAF5CFAF7CCC26E8BEA0AAA23A3"), push); bundle.putBoolean(PushPullExtras.EXTRA_IS_FROM_PUSH, z); bundle.putBoolean(PushPullExtras.EXTRA_IS_NEW_...
[ "public interface C3511a {\n /* renamed from: a */\n void mo29057a(int i);\n }", "interface C4511c {\n /* renamed from: a */\n void mo29775a();\n }", "public interface ans {\n /* renamed from: a */\n void mo1174a();\n}", "public interface C24712af {\n /* renamed from...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
removes media from the arrayList
public void removeMedia(MediaItem media) throws Exception { if (library.contains(media)) { library.remove(media); } else { throw new Exception(media.getMediaName() + " does not exist."); } }
[ "@Override\n public void remove(Media media) {\n if ( media instanceof Music ) { // if media is Music, ...\n super.remove(media);\n }\n\n }", "public void removerMusica(){\r\n\t\t\r\n\t\t//Remover o artista do arquivo\r\n\t\tthis.elm.excluir(this.fileName2);\r\n\t}", "public void...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
uncommend this, add the date when the mission ends, also see below in the validateTimeBound function public static final DateTime MissionEnd = new DateTime(year, month, day, hour, minute, second);
@RequestMapping(value={"/between/{start}/{end}"}, method=RequestMethod.GET, headers="accept=application/json") public @ResponseBody List<String> getFiles(@PathVariable("start") String start, @PathVariable("end") String end) { List<String> fileList = new ArrayList<String>(); DateTime validStart = val...
[ "public void endTime() { this.endTime = getFormattedDate(); }", "public Date getEndDateTime() {\n return _endDateTime;\n }", "public Date getAppointment_endtime();", "public Date endTime() {\n return new Date(end.time());\n }", "public Date getEndOfLife() {\r\n return end_of_life;...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the number of cookies eaten by the user
public static double getCookies(){ return Double.parseDouble(JOptionPane.showInputDialog(null, "Enter number of cookies eaten.")); }
[ "public int countCookies() {\n if (cookies != null) {\n return cookies.size();\n }\n \n return 0;\n }", "public int getUserCountNonExpired();", "int getSessionsCount();", "public static int getUserFavoritesesCount()\n\t\tthrows com.liferay.portal.kernel.exception.System...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Update time of the timer
public void tick(long total){ currentTime.addAndGet(-total); timeUsed.addAndGet(total); if(currentTime.get() <= 0){ currentTime.set(0); stop(); } // send packet GameUpdatePacket gp = new GameUpdatePacket(game.app(),new ScoreEntry(game)); gp...
[ "public void updateTime(){\r\n this.timer.updateTime();\r\n }", "private void updateTimer() {\n\n\t\t// calculate time since start\n\t\tlong elapsed = System.currentTimeMillis() - m_startTime;\n\t\tlong hours = TimeUnit.MILLISECONDS.toHours(elapsed);\n\t\tlong minutes = TimeUnit.MILLISECONDS.toMinutes(e...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
CLASS METHODS build filter with the good property and the good value in function of the answer
public void constructFilter(StoredComponent storedComponent, boolean answer){ System.out.println("storedComponent.getProperty() " + storedComponent.getProperty()); // to know if ti's our format or rdfs format String filtervalue = ""; if(storedComponent.getFormat() == "rdfs"){ ...
[ "public abstract boolean filter();", "public abstract void filter();", "private static void filter() {\n }", "protected abstract ComplexParamFilter createFilter();", "private boolean[] comparisonFilter() {\n\n }", "@NonNull\n public Filter getFilter(){\n Filter filter = new Filter() {\n\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
GENLAST:event_clearAllButtonActionPerformed clear all the text fields
private void clearAll(){ respiratoryTextField.setText(Consts.EMPTY); heartRateTextField.setText(Consts.EMPTY); bloodPressureTextField.setText(Consts.EMPTY); weightTextField.setText(Consts.EMPTY); }
[ "private void clearFieldButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_clearFieldButtonActionPerformed\n \n clearAll();\n }", "private void clearAllFields(){\r\n\t\t// On Press of button Clear, set all text to empty, so that the user can enter the text again\r\n\t\tfor(i...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__XSwitchExpression__Group_5__1__Impl" $ANTLR start "rule__XSwitchExpression__Group_5__2" InternalSARL.g:25945:1: rule__XSwitchExpression__Group_5__2 : rule__XSwitchExpression__Group_5__2__Impl ;
public final void rule__XSwitchExpression__Group_5__2() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalSARL.g:25949:1: ( rule__XSwitchExpression__Group_5__2__Impl ) // InternalSARL.g:25950:2: rule__XSwitchExpression__Group_5__2__Impl ...
[ "public final void rule__XSwitchExpression__Group_5__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../jpaqldsl.ui/src-gen/jpaqldsl/ui/contentassist/antlr/internal/InternalJPAQLDsl.g:20738:1: ( rule__XSwitchExpression__Group_5__2__Impl ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Save the fragment's instance
@Override public void onSaveInstanceState(Bundle outState) { getActivity().getSupportFragmentManager().putFragment(outState, "RECORDVOICE_STATE", this); super.onSaveInstanceState(outState); }
[ "@Override\n public void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n outState.putInt(STATE_SELECTED_POSITION, currentSelected);\n //Save the fragment's instance\n getSupportFragmentManager().putFragment(outState, STATE_FRAGMENT, fragment);\n }", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Helper Method to get All Users under the Application
private List<User> getAllUsersUnderApplication(Application application) { return application.getUsers(); }
[ "@Override\n\tpublic List<AppUser> getAllUsers() {\n\t\treturn userRepository.findAll();\n\t}", "public List getAllUsers();", "public List getUsers()\r\n\t{\r\n\t\tcheckReadAllPermissions();\r\n\r\n\t\treturn userDAO.getUsers();\r\n\t}", "public List<User> retrieveAllUsers();", "public List<User> getAllUser...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Removes the ith "incidentchartrecord" element
void removeIncidentchartrecord(int i);
[ "public void removeIncidentoverviewrecord(int i)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(INCIDENTOVERVIEWRECORD$0, i);\r\n }\r\n }", "@Override public void...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns Q matrix (probabilities of transitioning from transient state to another)
static double[][] getTransitionProbabilities(int[][] matrix, int[] nodes) { double[][] probabilities = new double[nodes.length][nodes.length]; int nodeIndex = 0; for (int node : nodes) { int toIndex = 0; for (int toNode : nodes) { probabilities[nodeIndex]...
[ "public BigInteger getQ();", "public QValues getQ(){ return Q; }", "@Override\r\n\tpublic Matrix Q()\r\n\t{\n\t\tif(mat == null)\r\n\t\t{\r\n\t\t\t// Decompose the matrix.\r\n\t\t\tdecompose();\r\n\t\t}\r\n\t\t\r\n\t\treturn Matrices.identity(mat.Columns()-1);\r\n\t}", "public double[][][] getQValues() {\n\t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method corresponds to the database table DEPTINFO
public static int countByExample(DeptinfoExample example) throws SQLException { Integer count = (Integer) getSqlMap().queryForObject("DEPTINFO.countByExample", example); return count; }
[ "public String getDeptData()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tCommonOperInterface cbt=new CommonConFactory().createInterface();\r\n\t\t\tList lowerLevel3=new ArrayList<String>();\r\n\t\t\tlowerLevel3.add(\"id\");\r\n\t\t\tlowerLevel3.add(\"deptname\");\r\n\t\t\tMap<String, Object> temp=new HashMap<String, Object...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Indicator matrix I as defined in A. Ng's paper. Refer equation (6)
public double[][] getIndicator() { return getClassifier().getIndicator(); }
[ "private static double[][] getIdentityMatrix()\n {\n \tdouble[][] matrix = new double[3][3];\n \tfor (int i = 0; i < 3; i++)\n \t\tmatrix[i][i] = 1;\n \t\n \treturn matrix;\n \t\n }", "public IntegerMatrix solveFourierMotzkin()\n\t{\n\t\t//throw new RuntimeException(\"FourierMotzkin: sorry...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
int64 offset = 3;
@java.lang.Override public long getOffset() { return offset_; }
[ "long GetInt64(int index);", "long getOffsetBytes();", "long getOffsetMilli();", "int getStandardOffset();", "public abstract int getOffset();", "public int offset() { return offset; }", "protected final int calcElementOffset(long index, int mask) {\n/* 62 */ return (int)index & mask;\n/* */ ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return the asserted rules with their normalized form. A normalized rule is a rule where any class expression occurring in the rules is in normalized form.
public Map<Rule,Rule> getNormalizedRules() { return rules; }
[ "public void normalize ()\r\n {\r\n String rule = null;\r\n RegExp arg = arg();\r\n\r\n switch (arg.type())\r\n {\r\n case EMPTY_EXP:\r\n\trule = \"[OP:E] ()? --> ()\";\r\n\t_normalForm = RegExpSymbol.EMPTY;\r\n\tbreak;\r\n\r\n case OPTION_EXP:\r\n\trule = \"[OP:O] X?? --> X?\";\r\n\t_norma...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column author.favourite_section
public String getFavouriteSection() { return favouriteSection; }
[ "public String getFavCandy() { return favCandy;}", "FamilyHistorySection getFamilyHistorySection();", "public OptionalEntity<Favorite> getFavorite() {\n if (_favorite == null) { _favorite = OptionalEntity.relationEmpty(this, \"favorite\"); }\n return _favorite;\n }", "String getFavFood();", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
jhipsterneedleentityaddgetterssetters Jhipster will add getters and setters here, do not remove
@Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } Product product = (Product) o; if (product.getId() == null || getId() == null) { return false...
[ "void addSettersAndGetters(String path, String field);", "public interface ToolRequestUpdate extends HasId {\n\n @Override\n @PropertyName(\"uuid\")\n String getId();\n\n @PropertyName(\"uuid\")\n void setId(String id);\n\n String getStatus();\n\n void setStatus(String status);\n\n @Proper...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/returns if it is added
public boolean addDay(String day) { if (skipDay(day)) return false; Day d = new Day(); if (d.setValue(day) == false) { return false; } appendChild(d); return true; }
[ "public boolean hasAdd() {\n return result.hasAdd();\n }", "public boolean isAdding() {\n return adding;\n }", "public boolean add() {\n return add;\n }", "boolean hasAddedData();", "boolean hasAddResponse();", "public boolean isAddable() {\n\t\treturn true;\r\n\t}", "pub...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the height value of the region.
public int getHeight(){ return height; }
[ "@Basic @Raw\n\tpublic double getHeight() {\n\t\treturn this.height;\n\t}", "public final double getHeight() {\n\t\treturn height;\r\n\t}", "public Integer getHeight();", "public int getHeight() {\n\t\treturn height;\n\t}", "public int getHeight(){\n int height = this.height_;\n \n ret...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View v = inflater.inflate(R.layout.fragment_list, container, false); recyclerView = v.findViewById(R.id.recycler_view); recyclerView.setHasFixedSize(tru...
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.movie_statistic_layout, parent, false);\n }", "@Override\n\tprotected View initView(LayoutInflater inflate...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a list of ModelEntity objects based on meta data from the database
public List<ModelEntity> induceModelFromDb(Collection<String> messages) { DatabaseUtil dbUtil = new DatabaseUtil(this.helperInfo); return dbUtil.induceModelFromDb(messages); }
[ "private void populateEntityList()\r\n\t{\r\n\t\tthis.entityList.add(\"edu.wustl.catissuecore.domain.DistributionSpecimenRequirement\");\r\n\t\tthis.entityList.add(\"edu.wustl.catissuecore.domain.CollectionProtocol\");\r\n\t\tthis.entityList.add(\"edu.wustl.catissuecore.domain.CollectionProtocolRegistration\");\r\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Initializes the controller class.
@Override public void initialize(URL url, ResourceBundle rb) { loadData(); lv.setEditable(true); NomTerrain.setEditable(true); Adresse.setEditable(true); Etat.setEditable(true); NomTerrain.setCellValueFactory(new PropertyValueFactory<>("nomTerrain")); Adress...
[ "public Controller(){\t\n\t}", "public GameEriController() {\r\n\t\tinit();\r\n\t\t\r\n\t}", "public MainController(){\n \n }", "public Controller ()\n\t{\n\t\tview = new View();\n\t\tmodelo = new Modelo(10000);\n\t}", "public MainController() {\n try {\n log.debug(\"Starting Mai...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Unsets the "Digest" element
void unsetDigest();
[ "private void clearDigest() {\n \n digest_ = getDefaultInstance().getDigest();\n }", "private void clearFingerprint() {\n this.bitField0_ &= -2;\n this.fingerprint_ = getDefaultInstance().getFingerprint();\n }", "public void\r\nclear() {\r\n\tdigest.reset();\r\n\tdigest...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Rounds a double and converts it into String.
public static String doubleToString(double value, int afterDecimalPoint) { StringBuffer stringBuffer; double temp; int i, dotPosition; long precisionValue; temp = value * Math.pow(10.0, afterDecimalPoint); if (Math.abs(temp) < Long.MAX_VALUE) { precisionValu...
[ "private String roundTwoDecimals(double d) {\n\t\treturn String.valueOf(d);\r\n}", "private static String roundDouble(double d)\n \t{\n \t\tNumberFormat nf=NumberFormat.getNumberInstance(Locale.UK);\n \t\tnf.setMaximumFractionDigits(1);\n \t\tString sNumber=nf.format(d);\n \t\tif(sNumber.endsWith(\".0\")) \n \t\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
GENFIRST:event_textField_telefonoActionPerformed TODO add your handling code here:
private void textField_telefonoActionPerformed(java.awt.event.ActionEvent evt) { }
[ "private void textFieldCantidadActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void txt_NombreActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void txtCidadeActionPerformed(java.awt.event.ActionEvent evt) {\n }", "private void txtNomCandidatoActionPerformed(java.awt.e...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }