query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
This method should be called to ensure the graph's bounds are at least the width and height given. If clip is TRUE, force the buffer size to be the specified width and height. If clip is FALSE, then only adjust buffer size if width and height is greater than current buffer size.
public void updateGraphBounds(int width, int height, boolean clip) { _bufferedImageManager.updateBufferSize(width, height, clip); }
[ "protected void updateBounds()\n\t{\n\t\t// update the transform as well\n\t\tm_transform.reset();\n\t\tm_transform.setTranslate(m_x, m_y);\n\t\tm_transform.preScale((float)m_scaleX, (float)m_scaleY);\n\t\t\n\t\tm_boundaryRect.x = m_x;\n\t\tm_boundaryRect.y = m_y;\n\t\tm_boundaryRect.width = m_width;\n\t\tm_boundar...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column indb_banner.is_used
public Integer getIsUsed() { return isUsed; }
[ "public Integer getIsUsing() {\n return isUsing;\n }", "public Integer getBannerStatus() {\n return bannerStatus;\n }", "@Column(name = \"Used_Flag\")\n\tpublic Boolean getUsedFlag() {\n\t\treturn this.usedFlag;\n\t}", "public String getUseStatus() {\n return useStatus;\n }", "...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The function helps for detecting of clicking add button using listener
public void addAddButtonListener(ActionListener addSelectedOutfitListener) { addButton.addActionListener(addSelectedOutfitListener); }
[ "HasClickHandlers getAddButton();", "@Override\n protected void addClicked() {\n }", "private void setAddButtonListener() {\n addButton.setMnemonic(KeyEvent.VK_A);\n addButton.addActionListener(e -> {\n databaseModel.addElement(DatabaseServiceKt.createDatabase().getName());\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Processes requests for both HTTP GET and POST methods.
protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html;charset=UTF-8"); try (PrintWriter out = response.getWriter()) { UserDAO useDao = new UserDAO(); User use ...
[ "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n Enumeration<String> parameterNames = request.getParameterNames(); //checking for unappropriate parameters\r\n if (parameterNames.hasMoreEleme...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__MetaSql__Group_2__1" $ANTLR start "rule__MetaSql__Group_2__1__Impl" ../org.sqlproc.meta.ui/srcgen/org/sqlproc/meta/ui/contentassist/antlr/internal/InternalProcessorMeta.g:25409:1: rule__MetaSql__Group_2__1__Impl : ( ( rule__MetaSql__IfsAssignment_2_1 ) ) ;
public final void rule__MetaSql__Group_2__1__Impl() throws RecognitionException { int stackSize = keepStackSize(); try { // ../org.sqlproc.meta.ui/src-gen/org/sqlproc/meta/ui/contentassist/antlr/internal/InternalProcessorMeta.g:25413:1: ( ( ( rule__MetaSql__IfsAssignment_2_1 ...
[ "public final void rule__Assignment__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalBehavior.g:3507:1: ( rule__Assignment__Group__2__Impl )\n // InternalBehavior.g:3508:2: rule__Assignment__Group__2__Impl\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the date range.
public void setDateRange() { StringBuffer desc = new StringBuffer( "Specify acceptance date range for cutoff date specify by option -d"); desc.append("if true, older files (at or before the cutoff)"); desc.append("are accepted, else newer ones (after the cutoff)"); Option optDateRange =...
[ "private void setRange() {\n DateTimeFormat datetime = DateTimeFormat.getFormat(\"yyyy-MM-dd HH:mm:ss\");\n DateTimeFormat date = DateTimeFormat.getFormat(\"yyyy-MM-dd\");\n \n Date startDate;\n Date endDate;\n \n // Try to parse the startdate\n try {\n startDate = datetime.parse(txtSta...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void mouseClicked(MouseEvent e) { try { changeMainInfo(9); } catch (ClassNotFoundException | SQLException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } catch (Exception ex) { Logger.getLogger(QLSieuThiGUI.class.getName())....
[ "@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" ] ] } }
Returns the value of the 'Alt Secondary Nom Voltage' attribute. If the meaning of the 'Alt Secondary Nom Voltage' attribute isn't clear, there really should be more of a description here...
float getAltSecondaryNomVoltage();
[ "public double getString2Voltage() {\n\t\treturn string2Voltage * 0.1;\n\t}", "public double getRightVoltage() {\n }", "String getRssiValue();", "public double getVoltageDiff() {\n return 0;\n }", "public double getVoltage()\n {\n return fAnalogChannel.getVoltage();\n }", "public f...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The total cards value in hand
public int getTotalCardsPoint() { long totalAceCards = getCards().stream().filter(card -> card.getRank() == Rank.ACE).count(); List<Card> nonAceCards = getCards().stream().filter(card -> card.getRank() != Rank.ACE).collect(Collectors.toList()); int total = 0; for (Card card : nonAceCards...
[ "public int getTotalValue(){\n\t\tint sum = 0;\n\t\tfor(int i=0; i < this.hand.size(); i++){\n\t\t\tsum += this.hand.get(i).getValue();\n\t\t}\n\t\t\n\t\treturn sum;\n\t\n\t}", "public Integer calculateTotalAmount(){\n String aHand;\n totalAmount= ZERO;\n Integer value= ZERO;\n Integer...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
boolean hasUlRowQty2() Method isValid
public boolean isValid() { try { validate(); } catch (org.exolab.castor.xml.ValidationException vex) { return false; } return true; }
[ "boolean hasJaegoQty();", "private boolean chkQUANT(JTable LP_TBLNM,int LP_intFRMAT,int LP_intTRNQT)\n\t{\n\t\thstITMDT.clear();\n\t\tdouble L_dblTRNQT=0;\n\t\tdouble L_dblTOTQT=0;\n\t\tString L_strTOTQT=\"\";\n\t\tString L_strFRMAT=new String();\n\t\tString L_strTRNQT=new String();\n\t\tfor(int i=0 ;i<=LP_TBLNM....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
string name = 2 [(.yandex.cloud.required) = true, (.yandex.cloud.length) = "&lt;=50"];
@java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = b...
[ "private boolean isnameValid(String name) {\n return name.length() >= 3;\n }", "private boolean nameIsValid(String input) {\n return input.length() >= 3;\n }", "public void set_valid_name(String name){\r\n\t\t_valid_name = \"VN\" + name;\r\n\t}", "@Test\n void invalidName() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set the name of this side.
public void setName(String name){ _name = name; }
[ "public void setName(String name_) {name = name_;}", "public void setName(String name) {\n this.nameProperty.set(name);\n }", "@Override\n public void setName(final String name) {\n this.name = name;\n }", "@Override\n\tpublic void setName(String name) {\n this.name = name;\n\t}", "@O...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Given a string representation of a URL, sets up a connection and gets an input stream.
private InputStreamReader downloadUrl(String urlString) throws IOException { URL url = new URL(urlString); HttpURLConnection conn = (HttpURLConnection) url.openConnection(); conn.setReadTimeout(10000 /* milliseconds */); conn.setConnectTimeout(15000 /* milliseconds */); conn.setR...
[ "InputStream openReader(String s) {\n System.err.println(\"Fetcher: trying url \" + s);\n try {\n URL url = new URL(s);\n HttpURLConnection con = (HttpURLConnection) url.openConnection();\n return url.openStream();\n } catch (IOException e) {\n }\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Removes a Role from the Registry. This means: owner role ($R:ROLENAME) is removed role is removed NOTE: Only performed if acting user has the 'delete'right on the role object.
public void deregisterRole(Role role) throws GeneralSecurityException, UnauthorizedException { SecurityAccessManager.getInstance().verify(this); checkForRight(RightType.DELETE, role); try { Role ownerRole = registry.getRoleByName(this, "$R:" + role.get...
[ "public sec.rtbd.comverse.org.webservice.auth.RemoveRoleResponseE removeRole(\n\n sec.rtbd.comverse.org.webservice.auth.RemoveRoleE removeRole)\n throws java.rmi.RemoteException\n \n ,sec.rtbd.comverse.org.webservice.auth.SSOExceptionException;", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Accessor for the property "AddCounter" Getter for property AddCounter. The atomic counter for the number of queue adds. Used internally to compute the "Available" property.
protected java.util.concurrent.atomic.AtomicLong getAddCounter() { return __m_AddCounter; }
[ "public int getAddCount()\n {\n return __m_AddCount;\n }", "public synchronized int getAndIncrement (){\r\n return this.counter++;\r\n }", "public int get() {\n if (queue.isEmpty()) {\n return -1;\n }\n\n int num = queue.poll();\n set.add(num...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets all org.semanticwb.domotic.model.OnSchedule with a determined DomAction
public static java.util.Iterator<org.semanticwb.domotic.model.OnSchedule> listOnScheduleByDomAction(org.semanticwb.domotic.model.DomAction value) { org.semanticwb.model.GenericIterator<org.semanticwb.domotic.model.OnSchedule> it=new org.semanticwb.model.GenericIterator(value.getSemanticObject().ge...
[ "String addOnOffSchedule(String deviceID, String userName, Date eventTime, int action);", "java.util.List<com.google.cloud.gaming.v1alpha.Schedule> getSchedulesList();", "public List<Event<S>> getScheduledEvents() {\n return scheduledEvents;\n }", "com.google.cloud.gaming.v1alpha.Schedule getSchedul...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__Stubb__Group_8__0" $ANTLR start "rule__Stubb__Group_8__0__Impl" InternalStubbrLang.g:7227:1: rule__Stubb__Group_8__0__Impl : ( 'packageName' ) ;
public final void rule__Stubb__Group_8__0__Impl() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalStubbrLang.g:7231:1: ( ( 'packageName' ) ) // InternalStubbrLang.g:7232:1: ( 'packageName' ) { // Interna...
[ "public final void rule__Package__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../com.soluvas.glproto.ui/src-gen/com/soluvas/glproto/ui/contentassist/antlr/internal/InternalGlproto.g:472:1: ( ( '(package' ) )\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Mapper for the entity Shipper and its DTO ShipperDTO.
@Mapper(componentModel = "spring", uses = {}) public interface ShipperMapper extends EntityMapper<ShipperDTO, Shipper> { @Mapping(target = "shipperIDS", ignore = true) Shipper toEntity(ShipperDTO shipperDTO); default Shipper fromId(Long id) { if (id == null) { return null; } ...
[ "@Mapper\npublic interface DTOMapper {\n\n DTOMapper INSTANCE = Mappers.getMapper(DTOMapper.class);\n\n @Mapping(source = \"username\", target = \"username\")\n @Mapping(source = \"password\", target = \"password\")\n @Mapping(source = \"mail\", target = \"mail\")\n User convertUserPostDTOtoEntity(Us...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ decode a step parameter object into step meta.
@Override public void decodeParameterObject(StepMeta stepMeta, Object po, List<DatabaseMeta> databases,TransMeta transMeta) throws Exception { StepMetaInterface stepM = stepMeta.getStepMetaInterface(); SPJsonOutput jso = (SPJsonOutput) po; OsgiBundleUtils.invokeOsgiMethod(stepM, "setJsonBloc", jso.getJsonBloc()...
[ "@Override\n\tpublic void decodeParameterObject(StepMeta stepMeta, Object po, List<DatabaseMeta> databases,TransMeta transMeta) throws Exception {\n\t\tStepMetaInterface stepM = stepMeta.getStepMetaInterface();\n\t\tSPJsonInput jsonBean = (SPJsonInput) po;\n\n\t\tOsgiBundleUtils.invokeOsgiMethod(stepM, \"setRowLimi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
do this feature in controller
@Test @DisplayName("попытка получения существующего списания через клиента") public void getExistedDebitFromSubscriber(){ Iterable<Subscriber> iterableSubscribers = subscriberService.findAll(); boolean isPresent = false; for (Subscriber subscriber : iterableSubscribers){ for ...
[ "public void act() {\n\t\tcontroller.act();\n\t}", "public void work(){\n LoginModel loginModel=new LoginModel();\n mian(loginModel);\n }", "@Override\n\t\tpublic void action() {\n\n\t\t}", "private void controller(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletExcept...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Display all the courses available for the semester to the console.
public void viewAllCourses(ArrayList<Course> courses);
[ "public void showCourses(){\n System.out.println(\"Courses:\");\n courses.forEach(System.out::println);\n }", "protected static void displayCourse() {\n\t\tSystem.out.println(\"List of courses available are:\");\n\t\tFile coursesDir = new File(\"Courses\");\n\t\tArrayList<String> files = availabl...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Appends an AirData object to the list.
public void addToList(AirData current) { list.add(current); // calls add method of ArrayList class }
[ "public HalObject appendData(Iterable<JsonObject.Entry<JsonElement>> data) {\n Objects.requireNonNull(data, \"appendData requires a non-null data\");\n\n return appendData(Observable.from(data));\n }", "public void addData(Serializable data){\n\t\tdataQueue.add(data);\n\t}", "public void addData(Data dat...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
these methods are for for button input called by onClick ( attribute in res/layout/activity_game )
public void load(View view) { if(view == load) { } }
[ "@Override\n\tpublic void onClick(View v) {\n\t\tswitch (v.getId()) {\n\t\tcase R.id.btn_game:\n\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t}", "@Override\n public void onButtonClick() {\n }", "@Override\n public void on...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Breaking when we encounter the end is easier than a proper loop termination condition
public void parse(SourceFileReader reader, AppBuilder app) throws IOException, ParsingException { while (true) { SourceElement first = reader.next(); // End of file is reached before the closing curly bracket if (first == null) { // Give the subclass the opportunity to throw an exception or commit...
[ "void breakOngoingForLoop();", "public int getLoopEnd();", "boolean getBreakOngoingForLoop();", "@Override\n\tpublic boolean reachedEnd() {\n\t\treturn this.end;\n\t}", "private void checkEnd() {\n\n int step = 1;\n\n searchRoute(step);\n }", "protected void end() {\n/* 78 */ if (this...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void onClick(View v) { for(int i = 0; i< toSave.size(); i++) { MainSlidingActivity.databases.addJob(toSave.get(i)); } toSave.clear(); adapter.notifyDataSetChanged(); mListView.invalidate(); mSave.setVisibility(View.GONE); }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ renamed from: m
private final List<ActivityFeedSong> m37019m(String str) { C6124c a = ae.m37045a().m37211a(str); BriteDatabase briteDatabase = this.f30563a; String str2 = a.f22514a; String[] strArr = a.f22515b; Cursor a2 = briteDatabase.a(str2, (String[]) Arrays.copyOf(strArr, strArr.length)); ...
[ "public int getM() \r\n\t{ \r\n\t\treturn m; \r\n\t}", "public String m()\r\n/* 317: */ {\r\n/* 318:338 */ return this.g;\r\n/* 319: */ }", "public static void m6(){}", "@Override\n\t\tpublic void m2() {\n\t\t\t\n\t\t}", "void mo4394m();", "void mo3362m();", "public void m2349g() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method corresponds to the database table juese
@Insert({"<script>insert into juese\n" + " <trim prefix=\"(\" suffix=\")\" suffixOverrides=\",\">\n" + " <if test=\"jueseid != null\">\n" + " jueseID,\n" + " </if>\n" + " <if test=\"name != null\">\n" + " name,\n" + ...
[ "@Override\n public String asTableDbName() {\n return \"park_sea\";\n }", "@Override\n\tpublic void CreateFromSQL() {\n\n\t}", "@Override\r\n\tpublic String GeneraCod() throws SQLException {\n\t\treturn null;\r\n\t}", "@Override\n public String asTableDbName() {\n return \"path_mapping\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
transfer drawable image to uri
public static String getUri(int res) { Resources resources = MyApp.getAppContext().getResources(); return ContentResolver.SCHEME_ANDROID_RESOURCE + "://" + resources.getResourcePackageName(res) + "/" + resources.getResourceTypeName(res) + "/" + resources.g...
[ "@Override\n public void onSuccess(Uri uri)\n {\n item.setImage(uri.toString());\n }", "private Uri getImageUri(Context context, Bitmap inImage){\n ByteArrayOutputStream bytes = n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Save the route doing matching showing result
public void onClick(View v) { double temp=0; temp=Double.valueOf(fuelConsumed.getText().toString()); //PublicDataBox mydata=(PublicDataBox)getApplication(); //((PublicDataBox) getApplication()).setUserCarFuelFactor(temp); Intent intent = new Inte...
[ "private void saveRoute() {\n saveRoute = !saveRoute;\n if (saveRoute) {\n saveRouteButton.setBackgroundColor(Color.RED);\n } else {\n // Clears actual route\n initPolygon();\n saveRouteButton.setBackgroundColor(Color.LTGRAY);\n\n }\n if...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "entryRuleClip" $ANTLR start "ruleClip" InternalVideoMontageSVJD.g:337:1: ruleClip : ( ( rule__Clip__Group__0 ) ) ;
public final void ruleClip() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalVideoMontageSVJD.g:341:2: ( ( ( rule__Clip__Group__0 ) ) ) // InternalVideoMontageSVJD.g:342:2: ( ( rule__Clip__Group__0 ) ) { // Inte...
[ "public Clip getClip(){\n \t\treturn this.associated;\n \t}", "public final void ruleConversionInstruction() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../com.intel.llvm.ireditor.ui/src-gen/com/intel/llvm/ireditor/ui/contentassist/ant...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Instantiates a new empty favorites adapter.
public EmptyFavoritesAdapter(Context context) { super(context, 0); }
[ "public FavoriteAdapter(List<Favorit> favorit) {\n this.favorit = favorit;\n\n\n }", "private void initFavList() {\n mFavoriteList = mApiService.getFavorites();\n mRecyclerView.setAdapter(new MyFavoriteNeighbourRecyclerViewAdapter(mFavoriteList, this.getActivity()));\n }", "private vo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Delete a todo base on id
Observable<Boolean> delete(Long id);
[ "@RequestMapping(value = \"/delete-todo\", method = RequestMethod.GET)\r\n\tpublic String deleteTodo(@RequestParam int id) {\n\t\trepository.deleteById(id);\r\n//\t\ttodoservice.deleteTodo(id);\r\n\t\treturn \"redirect:/list-todos\";\r\n\t}", "@Override\r\n\tpublic void deleteTodo(String todo) {\n\t\t\r\n\t}", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Output a value onto a port. The lower 8 bits of value will be written to the port. Pins on the port will not be converted to outputs first. This method does not affect the direction of the port. This method will disturb any virtual peripherals which are using the port.
public static void writePort(int port, byte value) { if ( port == PORTA ) CPU.writeRegister(0x06, value); else if ( port == PORTB ) CPU.writeRegister(0x07, value); }
[ "@Override\n public void write(final int value, final OutputStream out) throws IOException {\n out.write((0x00FF & value));\n out.write((0xFF00 & value) >> 8);\n }", "public void write(int value){\n\t\t\tgetFullAddress();\n\t\t\t\n\t\t\t//tells callee that caller is an indf reg...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Changes the display name provider.
public static void setInstance(DisplayNameProvider provider) { if (null != provider) { nameProvider = provider; } }
[ "protected void setDisplayName(final String displayName) {\n this.displayName = displayName;\n }", "private void setDisplayName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n displayName_ = value;\n }", "public void setDisplayName(String dis...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional .com.kedacom.ops.flink.etl.proto.EDssAddBridgeResultCode ResultCode = 4;
public com.kedacom.ops.flink.etl.proto.Dssevenum.EDssAddBridgeResultCode getResultCode() { return resultCode_; }
[ "public String getResultCode() {\r\n return resultCode;\r\n }", "com.callfire.api.data.Result.Enum getFinalResult();", "public boolean sendBridgeResultError(H5BridgeContext context, int errorCode) {\n String errorMessage;\n switch (errorCode) {\n case 0:\n error...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get all fields including super fields
@Override public List<FieldType> getAllFields() { List<FieldType> allFields = new ArrayList<FieldType>(); List<DictionaryTypes2.ModelDesign.DataType> superTypes = new ArrayList<DictionaryTypes2.ModelDesign.DataType>(); for (DictionaryTypes2.ModelDesign.DataType ct = this; ct!=null; ct = ct.getSuperType...
[ "public List<Field> listAllFields() {\r\n List<Field> list = new ArrayList<Field>();\r\n Map<String, Field> fieldMap = new HashMap<String, Field>();\r\n addFields(declaredFields, fieldMap, list);\r\n \r\n addSuperFields(fieldMap, list, this);\r\n \r\n return list;\r\n }", "List getAllField()...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sends an activation mail to the specified user.
void sendActivationMail(UserDTO user) throws UserActivatedException, UserNotFoundException;
[ "public void sendMail(User user) \n\t{\n\t\ttry \n\t\t{\n\t\t\tMailProcessor mail = new MailProcessor();\n\t\t\tmail.sendMail(user.getEmail(), \"Email Verification\", \"\", EMAIL_TEMPLATE.replaceAll(\"Shubham\", StringUtils.capitalize(user.getName().toLowerCase())).replaceAll(\"VERIFY_API\", VERIFY_LINK.replaceAll(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the value of the 'maxConcurrentWebParticipant' field.
public com.kumar.domain.generated.WebRoomEventAvro.Builder setMaxConcurrentWebParticipant(int value) { validate(fields()[20], value); this.maxConcurrentWebParticipant = value; fieldSetFlags()[20] = true; return this; }
[ "public RoomCreator setMaxParticipants(final Integer maxParticipants) {\n this.maxParticipants = maxParticipants;\n return this;\n }", "public static void setParticipantCount(Integer participantCount) {\n }", "public void setMaxThreads(Integer maxThreads) {\n this.maxThreads = maxThre...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__TNodeType__Group_11__1" $ANTLR start "rule__TNodeType__Group_11__1__Impl" ../eu.artist.tosca.dsl.ui/srcgen/eu/artist/tosca/dsl/ui/contentassist/antlr/internal/InternalToscaDSL.g:17615:1: rule__TNodeType__Group_11__1__Impl : ( ( rule__TNodeType__PropertiesDefinitionAssignment_11_1 ) ) ;
public final void rule__TNodeType__Group_11__1__Impl() throws RecognitionException { int stackSize = keepStackSize(); try { // ../eu.artist.tosca.dsl.ui/src-gen/eu/artist/tosca/dsl/ui/contentassist/antlr/internal/InternalToscaDSL.g:17619:1: ( ( ( rule__TNodeType__PropertiesDe...
[ "public final void rule__TNodeType__Group_11__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:8416:1: ( rule__TNodeType__Group_...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ / / / / / / /
public abstract long getLong(int paramInt) throws SQLException;
[ "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" ] ] } }
Handles the HTTP POST method.
@Override protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { processRequest(request, response); }
[ "@Override\n\tpublic void handlePost(HttpServletRequest request, HttpServletResponse response) {\n\t\t\n\t}", "public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException {\n\n\n\n }", "@Override\n public void post(String path) {\n \n }", "@Override\r\n\tpub...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method saves the time the player took to finish the game
public void save(String file) { PrintWriter pw = null; try { pw = new PrintWriter(new FileWriter(file)); for (int ii=0; ii<this.size(); ii++) { pw.println(this.get(ii)); } } catch (IOException e) { e.printStackTrace(); } fin...
[ "public void save()\n \t{\n\t\tlong current = System.currentTimeMillis() - loginTime;\n\t\tint min = (int)(current/60000);\n\t\tloginTime = System.currentTimeMillis();\n\t\ttimePlayed += min;\n \t\tDataStorageManager.getReccomendedDriver().saveObject(new ClassContainer(PlayerInfo.class), this);\n \t}", "private v...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
required int32 userID = 1;
boolean hasUserID();
[ "public int getID() {return userID;}", "public int getUserId() {\n\t\t return userID;\n\t\t }", "public void setUserID(String userID){\n this.userID = userID;\n }", "public void setUserId(Integer userID) {\n this.userID = userID;\n }", "public int getUserId() { return userId; }", "p...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates and returns SharedPreferences instance that is used to cache policy value.
private SharedPreferences getSharedPreferences() { assert mReadable; mThreadChecker.assertOnValidThread(); if (mSharedPreferences == null) { Context context = ContextUtils.getApplicationContext(); // Policy cache is not accessiable without application context. ...
[ "public SharedPreferences getSharePreferencesInstance(){\r\n\r\n\t\tif(mSharedPreferences == null)\r\n\t\t{\r\n\t\t\tmSharedPreferences = MainApplication.appContext.getSharedPreferences(stSharePrefereceStore,\r\n\t\t\t\t\tContext.MODE_PRIVATE);\r\n\t\t}\r\n\t\treturn mSharedPreferences;\r\n\t}", "public static Sh...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return a new Graph which is the union of all the provided graphs.
public static Model union(final Model... theGraphs) { Model aModel = newModel(); for (Model aGraph : theGraphs) { aModel.addAll(aGraph); } return aModel; }
[ "public Graph union(Node... nodes);", "public Graph toGraph(GraphElementSet<? extends GraphElement> graphElements);", "public UndirectedGraph<T> getUndirectedGraph() {\n UndirectedGraph<T> undirectedGraph = new UndirectedGraph<>();\n\n // copies nodes\n for (AbstractNode<T> node : this.node...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
constructors and their helper methods Constructs a list of control buttons based on methods associated with the given target object. Will only include methods that take 0 arguments and have a void return type. The text on each control button will be the associated method name or, if the name matches the on...ButtonClic...
public GeneratedButtonList(GridAppFrame gui, Object targetObj, boolean displayAfterButtonPresses) { this(gui, targetObj, null, false, displayAfterButtonPresses); }
[ "public SimpleActionListenerExampleDyamiclyCreatedButtons() {\n super();\n \n //Create a list of the objects in Model as defined by their \n //interface type. (Polymorphism)\n final List<DoSomething> doSomethingObjects = new ArrayList<>();\n doSomethingObjects.add(new QuoteToErrOb...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
.pbandk.testpb.SInt64Rules sint64 = 8;
@java.lang.Override public pbandk.testpb.Validate.SInt64RulesOrBuilder getSint64OrBuilder() { if ((typeCase_ == 8) && (sint64Builder_ != null)) { return sint64Builder_.getMessageOrBuilder(); } else { if (typeCase_ == 8) { return (pbandk.testpb.Validate.SInt64Rules) ...
[ "@java.lang.Override\n public build.buf.validate.SInt64Rules getSint64() {\n if (sint64Builder_ == null) {\n if (typeCase_ == 8) {\n return (build.buf.validate.SInt64Rules) type_;\n }\n return build.buf.validate.SInt64Rules.getDefaultInstance();\n } else {\n if (typ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public Amodel addNew(Amodel newemp) throws Exception { Optional<Amodel> model=arepository.findById(newemp.getId()); if(model.isPresent()) { Amodel newmodel=model.get(); newmodel.setId(newemp.getId()); newmodel.setEmail(newemp.getEmail()); newmodel.setUsername(newemp.getUsername()); newmodel=areposito...
[ "@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" ] ] } }
Long running post request, service returns a 202 to the initial request with both Location and AzureAsync header. Poll AzureAsync and it's success. Should poll Location to get the final object.
Product postDoubleHeadersFinalLocationGet(Context context);
[ "private static CompletableFuture<Void> runAsync() throws Exception {\n Utils.writeConsoleMessage(\"Authenticating with Azure using service principal...\");\n ServiceClientCredentials credentials = await(ServiceCredentialsAuth.getServicePrincipalCredentials(System.getenv(\"AZURE_AUTH_LOCATION\")));\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Given a username, return a list of Student Groups of which the user is a leader of. There should only be either 0 or 1 items in the list.
public List<StudentGroup> getLeaderGroups(String username){ User u = getIdentityService().getUser(username); return ObjectifyService.ofy().load().type(StudentGroup.class).filter("leader", u).list(); }
[ "List<Group> getGroupList(String userName)throws Exception;", "List<Group> getGroupsForUser(User user);", "@GetMapping(\"/jpa/users/{username}/groups\")\r\n\tpublic List<StudyGroup> getAllGroups(@PathVariable String username){\r\n\t\treturn studyGroupJpaRepository.findByUsername(username);\r\n\t\t//return study...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Toast.makeText(getApplicationContext(), "" + error, Toast.LENGTH_SHORT).show();
@Override public void onErrorResponse(VolleyError error) { progressDialog.dismiss(); }
[ "@Override\n\t\t\t\t\t\t\t\t\t\t\tpublic void onFail(String error) {\n\n\t\t\t\t\t\t\t\t\t\t\t\tToast.makeText(activity,error,Toast.LENGTH_LONG).show();\n\n\n\t\t\t\t\t\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\t\t\t\tpublic void onFail(String error) {\n\n\t\t\t\t\t\t\t\t\t\tToast.makeText(activity,error,Toast.LENGTH...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Parses the specified DOM Element and incorporates its contents into this element.
public void parse(Element elem) throws IOException, ParserConfigurationException, SAXException { if (!DOMs.isElement(elem, CAM.IMSCP_NS, "file")) { throw new IOException("'imscp:file' element expected, but found '" + elem.getTagName() + "' element."); } // Read the attri...
[ "protected void parseXML(Element rootElement) throws Exception {\r\n\r\n\t\t//TODO: get the LocalName and check if its equals the element and check for the uri\r\n\t\t/* set container options from xml atributes here */\r\n\t\tif (rootElement.getLocalName().equals(\"window\")) {\r\n\t\t\tinitializeNativeControl(root...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
To prevent someone from accidentally instantiating the contract class, give it an empty constructor.
public CreateEmployeeContract() { }
[ "public Contract() {\n\n\t}", "protected Contract() {}", "private StockContract() {\r\n }", "private MessageContract() {\n // nothing here.\n }", "private BookInventoryContract() {\n }", "public ContractEOImpl() {\n }", "private TransactionContract(){}", "private TripContract() {}",...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ renamed from: b
private static String m82261b(Locale locale) { String locale2 = locale.toString(); try { if (f17696KG != null) { return (String) f17696KG.invoke(null, new Object[]{locale2}); } } catch (IllegalAccessException | InvocationTargetException e) { } ...
[ "public abstract T zzs(B b2);", "public void b(ByteOrder bo) {\n/* 72 */ if (this.i != bo) {\n/* 73 */ this.i = bo;\n/* 74 */ this.h = a(bo);\n/* */ } \n/* */ }", "public void doSth(B b){\n\n }", "public abstract void mo14156a(B b, int i, int i2);", "@Override\n\tpublic v...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Cached copy of ingredients
public IngredientRoomListAdapter(Context context) { mInflater = LayoutInflater.from(context); }
[ "public BIngredients copy() {\n\t\tBIngredients copy = new BIngredients();\n\t\tcopy.ingredients.addAll(ingredients);\n\t\tcopy.cookedTime = cookedTime;\n\t\treturn copy;\n\t}", "public ArrayList<ItemStack> getCompactIngredientList() {\n \n ArrayList<ItemStack> list = new ArrayList<ItemStack>();\n \n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets known HiveServerType values.
public static Collection<HiveServerType> values() { return values(HiveServerType.class); }
[ "public String getServerType() {\n return serverType;\n }", "@Override\n\tpublic int get_serverType() {\n\t\treturn _serverType;\n\t}", "@Override\n\tpublic String[] getAITypes() throws ServerResponseException {\n\t\tString[] types = new String[1];\n\t\ttypes[0] = (\"LARGEST ARMY\");\n\t\treturn types...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
MyFramework.SITE_BackTo(context, HomePageSite.class, null, Framework2.ANIM_NONE);
public void OnBack(Context context) { MyFramework.SITE_Back(context, null, Framework2.ANIM_NONE); }
[ "public void backToMenu() {\n\t\t\n\t}", "private void goToHome() {\n }", "public void back(){\n hidePage();\n }", "public void backButton() {\n\t\t\n\t}", "void goHome();", "void gotoHome();", "protected abstract void comebackCurrent(WebUI webUI);", "public void goBack(){\r\n this....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
check if the locker is empty
public boolean isEmpty() { return currentPkg == null; }
[ "public boolean isEmpty() {\n \t\treturn locks.isEmpty();\n \t}", "protected boolean test()\r\n\t\t{\r\n\t\treturn !lockable.isLocked( current );\r\n\t\t}", "public boolean isEmpty() {\n // check if size is 0 (no guests in queue) and return the result\n return (size == 0);\n }", "public boolean isUnloc...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
ensure that leaf nodes are not cached (i.e. building one with the same token will result in different instances)
@Test void testLeafNodesAreNotCached() { assertFalse(LeafNode.build(timesToken) == LeafNode.build(timesToken)); }
[ "private void rebuildTree()\n\t{\n\t\trebuildCounter++;\n\t\tcounter = 0;\n\t\tIterable<K> key = keys(); // This line is needed in order to activate line 38\n\t\t\t\t\t\t\t\t // It will not affect performance if line 37 is activated instead\n\t\tArrayList<K> orderedKeys = new ArrayList<K>();\n\t\t//for(K k : keys(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets todo list by the identifier.
@RequestMapping(value = "/todos/{id}", method = RequestMethod.GET) public @ResponseBody Todo todo(@PathVariable String id) { return todoRepository.findOne(id); }
[ "public TodoListModel getTodoList(String id) {\n return mRealm.where(TodoListModel.class).equalTo(\"id\", id).findFirst();\n }", "@GetMapping(\"/{id}/todo\")\n public List<Todo> getUserTodo(@PathVariable(\"id\") long id) {\n return serviceImple.retrieveUserTodos(id);\n }", "TodoTaskList g...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
reverses the order of the digits of a long
private long reverse(long id) { long ans = 0; while( id != 0 ){ ans = ans * 10; ans = ans + (id % 10); id = id / 10; } return ans; }
[ "private static long getReverse(long number) {\n return Long.parseLong(new StringBuilder(\"\"+number).reverse().toString());\n }", "public static long reverse(long i) {\n return -i;\n }", "public long reverse(long a) {\n // here, the input is given in long format for handling integer overfl...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checks if is lookup stub on startup.
public boolean isLookupStubOnStartup() { return lookupStubOnStartup; }
[ "private static boolean stubClassExists(Class<?> paramClass) {\n/* 171 */ if (!withoutStubs.containsKey(paramClass)) {\n/* */ try {\n/* 173 */ Class.forName(paramClass.getName() + \"_Stub\", false, paramClass\n/* */ \n/* 175 */ .getClassLoader());\n/* 176 */ ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Listens for a window resize, and changes its width and height accordingly, then repaints the board
@Override public void componentResized(ComponentEvent e) { boardWidth = e.getComponent().getWidth(); boardHeight = e.getComponent().getHeight(); board.repaint(); }
[ "void onResize(double newWidth, double newHeight);", "@Override\n public void componentResized(ComponentEvent e) {\n boardSize = new Dimension(getWidth() / size - 2,\n getHeight() / size - 2);\n updateArraySize();\n }", "void screenSizeChanged(int width, int height);", "publ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public static void main(String[] args) { int mark=60; System.out.println("The mark is:"+mark); if(mark>=50){ System.out.println("He passed"); } else { System.out.println("He failed"); } }
[ "@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 new views (invoked by the layout manager)
@Override public MatchingResultsAdapter.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { View v = LayoutInflater.from(parent.getContext()).inflate(R.layout.matching_results_item, parent, false); return new ViewHolder(v); ...
[ "private\n void\n createViews()\n {\n itsViews = new View[ViewKeys.values().length];\n\n getViews()[BUDGETS.ordinal()] = new BudgetsView();\n getViews()[HOME.ordinal()] = new HomeView();\n getViews()[REGISTER.ordinal()] = new RegisterView();\n getViews()[TOTALS.ordinal()] = new TotalsView();\n }"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
add protection for possible index out of bounds exception.
private void updateCurrentIndex(int index) { if (index < 0) { index = 0; } else if (index >= mSize && mSize > 0) { index = mSize - 1; } mCurrentIndex = index; updateSlidingWindow(); MediaItem item = mData[index % DATA_CACHE_SIZE]; mItemPat...
[ "private void checkIndex(int index) {\r\n if (index < 0 || index > size) {\r\n throw new IndexOutOfBoundsException(\"My IndexOutOfRange exception: index \" + index + \" out of length \" + size);\r\n }\r\n }", "private void checkIndex(int index){\n if (index<0 || index>size){\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Reduce clipBorderWidth reasons: capture remove the white border line
public int getClipWidth() { return clipWidth - clipBorderWidth; }
[ "@Override\r\n\tpublic int getBorderWidth() {\n\t\treturn 0;\r\n\t}", "public Rectangle removeClip();", "@Override\r\n\tpublic void clip(Shape arg0) {\n\t\t\r\n\t}", "private void removeBorder(View view) {\n GradientDrawable border = new GradientDrawable();\n border.setColor(0xFFFFFFFF); //white...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
initialize your data structure here.
public MinStack() { arrayMin = new int[4]; // 最终测试结果,4或者8比较好,比1或者16快1ms。 arrayAll = new int[4]; }
[ "@Override\n\tpublic void initData() {\n\n\t\t\n\t}", "private void initializeData() {\n employees.put(1, \"Amos Burton\");\r\n employees.put(2, \"Julie Mao\");\r\n employees.put(3, \"Alex Kamal\");\r\n employees.put(4, \"James Holden\");\r\n employees.put(5, \"Josephus Miller\"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__ElementValueArrayInitializer__Group__3" $ANTLR start "rule__ElementValueArrayInitializer__Group__3__Impl" ../org.ow2.mindEd.adl.textual.ui/srcgen/org/ow2/mindEd/adl/textual/ui/contentassist/antlr/internal/InternalFractal.g:8821:1: rule__ElementValueArrayInitializer__Group__3__Impl : ( '}' ) ;
public final void rule__ElementValueArrayInitializer__Group__3__Impl() throws RecognitionException { int stackSize = keepStackSize(); try { // ../org.ow2.mindEd.adl.textual.ui/src-gen/org/ow2/mindEd/adl/textual/ui/contentassist/antlr/internal/InternalFractal.g:8825:1: ( ( '}'...
[ "public final void rule__ArrayInitializer__Group__3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMyDsl.g:7412:1: ( rule__ArrayInitializer__Group__3__Impl )\n // InternalMyDsl.g:7413:2: rule__ArrayInitializer__Group__3__...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Parses through the user input and returns an AddModuleCommand object.
private static Command getAddModuleCommand(String line) throws InsufficientParametersException, EmptyModuleException { Command command; logger.log(Level.INFO, "add module command entered"); String moduleCode = (line + " ").substring(ADD_MODULE_LENGTH); if (moduleCode.equals("...
[ "public AddCommand(String inputCommand) {\n super(inputCommand);\n }", "public Command parseCommand(String userInput, ModuleManager moduleManager, Ui ui) throws Exception {\n try {\n this.userInput = userInput;\n userCommandText = userInput.split(Constants.SPACE2)[0];\n\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
=========== Util Methods ========================================================================= Updates the list of suppliers to be shown in the UI.
private void updateDisplayedSuppliers() { super.resetData(version.getCurrentState()); }
[ "public SupplierList(ArrayList<Supplier> suppliers) {\n\t\tsetSuppliers(suppliers);\n\t}", "private void preFillSuppliers() {\n SQLiteDatabase db = dbHelper.getWritableDatabase();\n ContentValues sValues = new ContentValues();\n sValues.put(DatabaseContract.Inventory.SUPPLIER_NAME, \"Samsung\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ renamed from: g
private final C14798a m56075g() { return new C14798a(m56076h(), m56077i()); }
[ "@Override\n\tpublic void g() {\n\t\t\n\t}", "public String m()\r\n/* 317: */ {\r\n/* 318:338 */ return this.g;\r\n/* 319: */ }", "@Override\r\n\tpublic String getG() {\n\t\r\n\t\treturn \"(((b1,a1)!P3,a2)!P4,a3)!P2\";\r\n\t}", "public float g()\r\n/* 119: */ {\r\n/* 120:121 */ return t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional .CDOTAUserMsg_ParticleManager.SetSceneObjectTintAndDesat set_scene_object_tint_and_desat = 25;
public boolean hasSetSceneObjectTintAndDesat() { return ((bitField0_ & 0x00800000) == 0x00800000); }
[ "public String _seteffect(String _effect) throws Exception{\n_cfcontrolsutils._seteffect((anywheresoftware.b4j.objects.NodeWrapper.ConcreteNodeWrapper) anywheresoftware.b4a.AbsObjectWrapper.ConvertToWrapper(new anywheresoftware.b4j.objects.NodeWrapper.ConcreteNodeWrapper(), (javafx.scene.Node)(_progresspane.getObj...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets from configuration given field and converts it to >Date object.
private Date getField(String configName) { Date date = null; configName += includingSubtasks ? ".thisLevel" : ".includingSubtasks"; String configValue = configuration.getString(configName, null); if (configValue != null) { try { date = dateFormater.parse(configValue); } catch (java.t...
[ "public static AliasedField castAsDate(AliasedField field) {\r\n return cast(field).asString(8).asDate();\r\n }", "public Date getDate(final String field, final Date def) {\n Object foo = get(field);\n return (foo != null) ? (Date) foo : def;\n }", "public Date getValueDate() {\n String ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create a PE prototype. The PE instance will never expire.
public ProcessingElement(App app) { this.app = app; app.addPEPrototype(this); peInstances = new MapMaker().makeMap(); /* * Only the PE Prototype uses the constructor. The PEPrototype field * will be cloned by the instances and point to the prototype. */ ...
[ "Asset createPrototype(String classname, String typeid, String nomen);", "public CreatedType create()\n {\n return ObjectUtil.cloneSafe(this.getPrototype());\n }", "public Pepe() {\n }", "public PrototypeCapable initialise(String s) throws CloneNotSupportedException;", "public static EarthMo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
get next available time.
public double getNextAvailableTime() { return this.nextAvailableTime; }
[ "public Date getNextTime() {\n // TODO: wishful thinking\n // return lastTime + freq;\n return lastTime;\n }", "private Date nextReleaseTime() {\n\t\tPair<T, Long> item = d_queue.peek();\n\t\tif (item == null) {\n\t\t\treturn new Date(Long.MAX_VALUE);\n\t\t} else {\n\t\t\treturn new Date(i...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
makes sure ChannelAdapter will stop its activities in a secure manner, closing all connections.
public void stopActivities() { jedisPool.close(); }
[ "public void stop() {\n\t\tif (this.channels.size() > 0) \n\t\t{\n logger.info(regularConfiguration.getName() + \" currently has [\" + this.channels.size() + \"] open child channel(s) that will be closed as part of stop()\");\n }\n this.channels.close().awaitUninterruptibly();\n logg...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Runs the thread defined in this class. The thread waits until the messages queue has a new message, and then sends the new message to the client.
@Override public void run() { while (this.runningFlag) { PSNotification outboundNotification = notificationsQueue.poll(); if (outboundNotification != null){ try { this.sendNotification(outboundNotification); } catch (IOException e) ...
[ "public void run() {\r\n\r\n while (isAvailable.get() || !internalQueues.isEmpty()) {\r\n\r\n sendNextMessage();\r\n }\r\n executor.shutdown();\r\n\r\n }", "@Override\n public void run() {\n while (!exit) {\n try {\n messag...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Used to log to the open .log file. The information necessary for the log is passed separately rather than as a "bundle" in the form of an IcofException. There are five levels of built in severity, which are ordered: DEBUG INFO WARN ERROR FATAL. Use the constants defined in this class to determine the level desired.
public boolean log(String severity, String message) { if (severity.equals(TRACE)) { logger.trace(message); } else if (severity.equals(DEBUG)) { logger.debug(message); } else if (severity.equals(INFO)) { logger.info(message); } else if (severity.equals(...
[ "public void log(FileLogger logger);", "synchronized void log() {\n if (LoggingService.log.level.equals(Level.INFO)) {\n System.out.println(LoggingService.log.level + \" \" + LoggingService.log.time + \": \" + LoggingService.log.message);\n } else {\n System.err.println(Logging...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Used by DatumReader. Applications should not call.
@SuppressWarnings(value="unchecked") public void put(int field$, java.lang.Object value$) { switch (field$) { case 0: id = (java.lang.String)value$; break; case 1: variantId = (java.lang.String)value$; break; case 2: variantAnnotationSetId = (java.lang.String)value$; break; case 3: createDateTime ...
[ "@Override\n public void readData(DataReader dr)\n {\n }", "@Override\n\tvoid readSpecificData() {\n\t\t\n\t}", "@Override\r\n\t\tprotected void getData() {\n\r\n\t\t}", "@Override\r\n protected Data<?> getData() {\n return null;\r\n }", "protected void read() {\n\t}", "@Override\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Optimizes the plan, given the parsed query.
public Delete(AST_Delete tree) throws QueryException { tableName = tree.getFileName(); QueryCheck.tableExists(tableName); schema = Minibase.SystemCatalog.getSchema(tableName); predicates = tree.getPredicates(); QueryCheck.predicates(schema, predicates); }
[ "void executeQueryWithOptimalPlan(String query)\n\t{\n\t\t/* hard-coded optimal plan for quest query */\n//\t\tquery = \"select n_name, sum(l_extendedprice * (1 - l_discount)) as revenue from customer, orders, lineitem, supplier, nation, region where c_custkey = o_custkey and l_orderkey = o_orderkey and l_suppkey =...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ """ Prints the doubles arg0 arg1 arg2 arg3 arg4 arg5 arg6 arg7 arg8 arg9 arg10 arg11 arg12 arg13 arg14 arg15 arg16 arg17 arg18 arg19 arg20 arg21 arg22 arg23 arg24 arg25 arg26 arg27 arg28 arg29 arg30 arg31 arg32 arg33 arg34 arg35 arg36 arg37 arg38 arg39 arg40 arg41 arg42 arg43 arg44 arg45 arg46 arg47 arg48 arg49 arg50...
public static void print( double arg0, double arg1, double arg2, double arg3, double arg4, double arg5, double arg6, double arg7, double arg8, double arg9, double arg10, double arg11, double arg12, double arg13, double arg14, double arg15, double arg16, double arg17, double arg18, ...
[ "public static void main(String[] args) {\n\t\t\r\n\t\tdouble number = 3.45677;\r\n\t\tint number2 = 3;\r\n\t\t\r\n\t\t//the place holders start with percent to indicate to the printer\r\n\t\t\r\n\t\t// f is decimal # (floating point but can also use double)\r\n\t\t// d is integer \r\n\t\t// s is a String\r\n\t\t//...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method will cancel a late return for a rental In order to cancel a late return the rental must be on late return in the first place
@Override public void cancelLateReturn(Integer rentalId, Authentication loggedInUser) throws ResourceNotFoundException, ResourceNotUpdatedException { Rental theRentalToCancelLateReturnFor = rentalRepository.findById(rentalId).orElseThrow(() -> new ResourceNotFoundException("The rental you are trying to canc...
[ "void cancelLateReturn(Integer rentalId, Authentication loggedInUser) throws ResourceNotFoundException, ResourceNotUpdatedException;", "@Override\r\n\t\t\tpublic void onLocatedCancel() {\n\t\t\t\tisRequestting=false;//set false while canceled;\r\n\t\t\t}", "protected void cancel() {\n }", "public void canc...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ renamed from: a
public final Task<Integer> mo34335a(Collection<String> collection, Collection<String> collection2) { if (this.f946a == null) { return m984d(); } f944b.mo34142c("startInstall(%s,%s)", collection, collection2); C2106i iVar = new C2106i(); this.f946a.mo34151a((C1919ag) n...
[ "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" ] ] } }
Returns the definition for the given owner
public AppointmentBook getAppointments(String owner) throws IOException, ParserException { Response response = get(this.url, Map.of("owner", owner)); if(response.getCode() != HTTP_OK){ System.err.println("Owner Doesnt Exist"); System.exit(1); } String text = response.getContent(); TextPa...
[ "String getDefaultDefinitionType(Class<? extends Identifiable> ownerType);", "public SchemaObject getOwner () {\n return owner;\n }", "public String getOwner() {\n return this._owner;\n }", "public ResponseEntity<?> getDefinition(Class<? extends Identifiable> ownerClass, BasePermission... permission) ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Put a page in the recycle bin: this creates a copy of the original page and places it in an alternate directory
private void putInRecycleBin(Page page){ //if page is already in the recycle bin, remove it. //It means it's getting deleted forever. if(page.isInRecycleBin()){ recycleBin.remove(page); return; } Article copy = new Article(PAGES_RECYCLE_BIN+File.separator+page.getName()); copy.create(); new Copie...
[ "private PageId insertPage()\n {\n boolean found_dir_page = false; //flag that says whether we found a dir page with space for a new entry or not\n PageId directory_id = new PageId( head_node.pid ); //Start at the head of the file\n DirPage directory_page = new DirPage();\n PageId next_page_id;\n sh...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the tolerance on number of states.
public void setTolerance(double tolerance) { this.tolerance = tolerance; }
[ "public void setTolerance(double tol) {\n poissonPanel.setTolerance(tol);\n }", "public void setTargetTolerance(double tolerance) {\n this.tolerance = tolerance;\n }", "public void setDelayTolerance(double delayTolerance) {\r\n\t\tthis.delayTolerance = delayTolerance;\r\n\t}", "public Selectable...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create a subscription for changes in any Service in the Registry
public void registerSubscription(String bindingKey) throws DatatypeConfigurationException { String subscriptionKey = UDDIKeyConvention.getSubscriptionKey(properties); //Create a subscription for changes in any Service in the Registry FindService findAllServices = new FindService(); FindQualifiers qualif...
[ "QServiceRegistry createServiceRegistry();", "protected void setupSubscriptions() {\n blackboard.getSubscriber().setShouldBePersisted(false);\n selfOrgSubscription = (IncrementalSubscription) blackboard.subscribe(selfOrgPredicate);\n checkSelfOrg(selfOrgSubscription);\n\n // register with servlet serv...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
BaseDao.java Create on 2015527 Copyright (c) 2015527 by
public interface BaseDao<T> { /** * 保存一个对象 * * @param o * @return */ Serializable save(T o); /** * 删除一个对象 * * @param o */ void delete(T o); /** * 更新一个对象 * * @param o */ void...
[ "protected BaseDAO()\n {\n super();\n }", "public interface BaseDao<T> {\n //保存一个\n void save(T entity);\n //根据id查询\n T findObjectById(Serializable id);\n //根据id删除\n void deleteById(Serializable id);\n //查询所有\n List<T> findAll();\n //条件查询实体列表--查询助手queryHelper\n List<T> find...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Ritorna le valutazioni di un locale
@Override public List<Valutazione> findValutazioni(int idlocale) { return valutazioneFacade.findByLocale(idlocale); }
[ "Locale locale();", "double getValue(Locale locale);", "public Locale getValueLocale() {\n String temp=prefs.getString(\"value_locale\", null);\n return (StringUtils.hasText(temp)) ? LocaleUtils.read(temp): defaultBean.valueLocale;}", "public Locale getLocale() {\n/* 69 */ return this.fLocale;\n/* ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Called when the activity is first created.
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); init(); }
[ "protected void onCreate() {}", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\t\n\t\tinitData();\n\t\n\t}", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\tULog.i(this, \"onCreate() \");\n\t\tinitData();\n\t}", "@Override\n public void onCreate () {\n super.onC...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void netPlay() { System.out.println("上网"); }
[ "@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" ] ] } }
constructor of object phrase stating the maxsize of this phrase.
public Phrase(int s){ maxSize = s; phrasearr = new Bigram[maxSize]; front = 0; rear = -1; nItems = 0; }
[ "public Dictionary(int size)\n {\n phrase = new String[size];\n for (int i = 0; i < size; i++)\n {\n phrase[i] = \"-\";\n }\n }", "public Doc(int size)\r\n {\r\n this.size = size;\r\n }", "public Builder setMaxWrittenVariantsPerPhrase(int value) {\n bitField0_ |= 0x0000000...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
returns true if the content of the text editor has changed since the last call to setXML() or getUpdatedXML().
public boolean edited() { return edited; }
[ "public boolean hasChanged() {\n return modified;\n }", "public boolean isChanged() {\n return changed.get();\n }", "public boolean isChanged() {\n if (!initial13 && !new13) {\n return false;\n }\n if (initial13 && new13) {\n return initial18 != new...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The doPost method of the servlet. This method is called when a form has its tag value method equals to post.
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html"); response.setContentType("text/html"); request.setCharacterEncoding("utf-8"); int vexID = Integer.parseInt(request.getParameter("vexID")); //String title...
[ "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\r\n \t perForm(request, response);\r\n \t}", "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\r\n }", "prote...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the probability an outcome will be less than or equal to the specified outcome. Implemented by calling the cumulative probability method with the minimum long value as lower bound and specified outcome as upper bound.
public double cumulativeProbabilityLess(long upperBound);
[ "public LogDouble getPriorProbability(double param) {\n\t\tthis.param = param;\n\t\tthis.priorProbability = new LogDouble(1.0);\n\t\tif (this.doUseActual) {\n\t\t\tif (!this.interval.isWithin(this.param))\n\t\t\t\tthis.priorProbability = new LogDouble(0.0);\n\t\t\telse\n\t\t\t\tthis.priorProbability.mult(1.0 / this...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ renamed from: a
public final void mo57847a(C21176c cVar) { synchronized (f58065b) { if (this.f58066c != null) { this.f58066c.onComplete(cVar); this.f58066c = null; } } }
[ "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" ] ] } }
line540statement0 > Q=(1) > line550statement1
protected void line550statement0(){ Q=(1); line550statement1(); }
[ "private int yyr52() {\n {\n yyrv = tree.new BinaryOperatorNode(yysv[yysp-3], yysv[yysp-1], \">=\");\n }\n yysv[yysp-=3] = yyrv;\n return yyprelational();\n }", "private int yyr35() {\n {\n ((BitmojiPT.Cond...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Created by PrifizGamer on 12.02.2018.
public interface CoordinatesGenerator { Vector generate() throws IOException; }
[ "@Override\n public void extornar() {\n \n }", "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void cammina() {\n \n }", "private static void EX5() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void hablar() {\n\t\t\r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
When declaring other beans for different services, is necessary an explicity name for marshaller parameter ex: public UserClient userClient(Jaxb2Marshaller clientMarshaller)
@Bean public UserClient userClient(Jaxb2Marshaller marshaller) { final UserClient client = new UserClient(); client.setDefaultUri(defaultWSUri); client.setMarshaller(marshaller); client.setUnmarshaller(marshaller); return client; }
[ "public interface Marshaller extends Component {\n String TYPE_NAME = \"Marshaller\";\n Marshaller DEFAULT = new JacksonMarshaller();\n\n /**\n * Convert a Message to an Object\n *\n * @param targetType Class type the message should be converted to, if possible\n * @param message Message to...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }