query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
read the specified HTTPAPISpec
@HTTP( method = "GET", path = "/apis/config.istio.io/v1alpha2/namespaces/{namespace}/httpapispecs/{name}" ) @Headers({ "Accept: */*" }) KubernetesCall<HTTPAPISpec> readNamespacedHTTPAPISpec( @Path("name") String name, @Path("namespace") String namespace);
[ "public void getDataFromAPI()\n {\n Response response = given().header(\"content-type\",\"application/json\").baseUri(baseURI).\n when().get(\"/posts\").\n then().assertThat().statusCode(200).assertThat().\n extract().response();\n printResponse(response...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
.dstore.values.IntegerValue posting_id = 4;
private com.google.protobuf.SingleFieldBuilderV3< io.dstore.values.IntegerValue, io.dstore.values.IntegerValue.Builder, io.dstore.values.IntegerValueOrBuilder> getPostingIdFieldBuilder() { if (postingIdBuilder_ == null) { postingIdBuilder_ = new com.google.protobuf.SingleFieldBuil...
[ "public void setM_WarehouseTo_ID (int M_WarehouseTo_ID)\n{\nset_Value (\"M_WarehouseTo_ID\", new Integer(M_WarehouseTo_ID));\n}", "int getPersistedValue();", "io.dstore.values.StringValue getOrderContentNo();", "public void setAD_Workbench_ID (int AD_Workbench_ID)\n{\nset_ValueNoCheck (\"AD_Workbench_ID\", ne...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
fertilize plant which will last for 10 days.
public void fertilizePlant(){ this.fertilizer += 10; this.statusSym2 = " "; }
[ "@Override\r\n public int getPlantCalories() {\n return 0;\r\n }", "private void generateround()\n {\n // beachte, wenn noch m_currentround null enthält, dass wird mit der inneren Funktion der Startwert gesetzt\n final ERound l_round = m_currentround.updateAndGet( i -> Objects.isNull...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Frees native resources associated with the remote server object
void dispose() throws RemoteException;
[ "public void dispose()\n {\n synchronized (this)\n {\n if (iHandle == 0)\n {\n return;\n }\n disposeProxy();\n iHandle = 0;\n iActionGetDeviceConfig.destroy();\n iActionSetDeviceConfig.destroy();\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Created by TAO_SX on 2017/4/26/026.
public interface OnImageTextCallBack { void OnSuccess(List<DataEntity> dataEntities); void OnFail(String msg); }
[ "@Override\n public void extornar() {\n \n }", "private static void EX5() {\n\t\t\r\n\t}", "@Override\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}", "@Override\n public int utilite() {\n ret...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Update the images for the optimal distribution of colors in a fixed color palette, presumably bitmap mode or multicolor mode, where dithering will not do a lot of good. We cannot control the palette in this mode, but we can avoid unwanted dithering, e.g. in a cartoon or line art, by replacing the most important colors ...
private int optimizeForNColors(BufferedImage img, IMapColor mapColor, int startMask) { if (canSetPalette) { return optimizeForNColorsAndRebuildPalette(img, mapColor); } int numColors = mapColor.getNumColors(); byte[][] palette = mapColor.getPalette(); int ourDist = mapColor.getMinima...
[ "private void updateColor(){\n\t\tcolors = new int[this.nComp];\n\t\tfor (int i=0; i<this.nComp; i++){\n\t\t\tcolors[i] = getColorAto0xAAA(integers[i]);\n\t\t\tcolors[i] = addAlphaColor(colors[i]);\n\t\t}\n\t}", "int palette_init(void)\n\t{\n\t\tint i;\n\t\n\t\t/* recompute the default palette and initalize the c...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Same as HelloSpring "Handler using a form" but this time using Thymeleaf
@RequestMapping(method = {RequestMethod.GET, RequestMethod.POST}, value = "form") public String helloThymeleaf() { return "form"; }
[ "@RequestMapping(value = \"/form\", method = RequestMethod.GET)\n\tpublic void form() {\n\t}", "@RequestMapping(\"/processForm\")\n\tpublic String processForm()\n\t{\n\t\treturn \"helloworld\";\n\t}", "@GetMapping(\"/form\")\n public String openForm(Model model) {\n model.addAttribute(\"text\", \"Plea...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
If we need to display center text with textStyle
private SpannableString generateCenterSpannableText() { SpannableString s = new SpannableString("TOTAL SPENT\n$ 4000"); s.setSpan(new RelativeSizeSpan(2f), 11, s.length(), 0); s.setSpan(new StyleSpan(Typeface.BOLD), 11, s.length(), 0); return s; }
[ "private String formatCenteredText() {\n String formattedSubtitle;\n if (subtitle == null || subtitle.equals(\"\")) {\n formattedSubtitle = \"\";\n } else {\n formattedSubtitle = \"</p><p><b>\" +\n subtitle +\n \"</b>\";\n }\n\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
pass signup attempt from form to AccountServiceImpl() method all authentication and queries handled in AccountServiceImpl() will return null if signup failed Otherwise, returns account data for parsing ID is never needed to be treated like an integer, thus is simply taken as String
public static Account signup(Context context) { String pcoid = context.formParam("pcoid"); String accountType = context.formParam("accountType"); if(accountType == null){ accountType = "user";} String username = context.formParam("username"); String password = context.formParam("...
[ "String organizerAccountCreationSuccess(User user, String string);", "protected void signUp(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n String code = req.getParameter(\"code\");\n\n User u = WebUtils.injectBean(new User(), req.getParameterMap());\n\n// ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Parses an InstructionList from a file
public InstructionList(edu.arizona.cs.mbel.mbel.ClassParser parse, long CodeSize) throws java.io.IOException, edu.arizona.cs.mbel.parse.MSILParseException { this(); edu.arizona.cs.mbel.MSILInputStream in = parse.getMSILInputStream(); long START = in.getCurrent(); long pos = 0; while (pos < CodeSize) ...
[ "public void readLst(Mainview frame, File f) throws IOException{\n\t\t//Liest Datei mit Sonderzeichen\n\t\tFileInputStream fis = new FileInputStream(f);\n\t\tInputStreamReader isr = new InputStreamReader(fis, Charset.forName(\"ISO-8859-1\"));\n\t\tBufferedReader br = new BufferedReader(isr);\n\t\tString line = \"\"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
HttpSession session = request.getSession(false); session.invalidate();
private void viewPage2(HttpServletRequest request, HttpServletResponse response) { int id = Integer.parseInt(request.getParameter("id")); // Video video = (Video) request.getSession().getAttribute("video"); List<Video> videos = videoService.findPage(id); request.setAttribute("videos", vi...
[ "public static void invalidarSession(HttpServletRequest request, HttpServletResponse response){\r\n\t\trequest.getSession().invalidate();\t\t\r\n\t}", "public void sessionInvalidate() {\n this.session.invalidate();\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletRespo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void actionPerformed(ActionEvent event) { if (event.getSource() == Btn1){ System.out.println("Button Clicked : 1"); if (second == false){ for (int i = 0;i < count; i++){ num1 = num1*10; } num1 = num1 + 1; if (count != 1){ count++; } output.setText(...
[ "@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" ] ] } }
Converts dp values into px values
public static int dpToPx(int dp) { return (int) (dp * Resources.getSystem().getDisplayMetrics().density); }
[ "public static float convertDpToPixels(float dp){\r\n DisplayMetrics metrics = Resources.getSystem().getDisplayMetrics();\r\n float px = dp * (metrics.densityDpi / 160f);\r\n return px;\r\n }", "private int dpToPx(int dp) {\n Resources r = getResources();\n return Math.round(TypedV...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
PUBLIC INSTANCE METHODS /////////////////////////////////////////////////
public void abort( ) throws IOException { abort ( "" ); }
[ "@Override\n }", "@Override\n protected void init()\n {\n\n }", "@Override\n \tpublic void init() {\n \n \t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void init() {\n\t \r\n\t}", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method used to setup the Internal Resource management.
protected InternalEjbcaResources() { super(); setupResources(RESOURCE_LOCATION); }
[ "private void InitResource() {\n\t\tUtil.PublisherId = mPublisherId;\n\t\tUtil.GetPackage(mContext);\n\t\t//mUserAgent = Util.getDefaultUserAgentString(mContext);\n\t\tmUserAgent = Util.buildUserAgent();\n\t\tlocationManager = null;\n//\t\tint telephonyPermission = mContext.checkCallingOrSelfPermissio...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the filled property
public boolean isFilled() { return filled; }
[ "public boolean getFilled(){\r\n return filled; \r\n }", "public boolean getFill() {\n\t\treturn getBooleanProperty(PROP_FILLED);\n\t}", "public boolean getFilled() {\r\n\t\treturn filled;\r\n\t}", "protected boolean getFilled()\r\n {\r\n return filled;\r\n }", "public boolean getFill(){\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
private static void deleteAnItem() { System.out.print("Enter the name to delete: "); String name = in.nextLine(); System.out.print("Enter the age to delete: "); int age = in.nextInt(); Student toDelete = new Student(name, age); sh.deleteItem(toDelete); }
[ "@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" ] ] } }
List of CPU cores reserved for the agent.
public java.util.List<Integer> getAgentCpuCores() { return agentCpuCores; }
[ "long getCores();", "public static int getCPUCores() {\n return Runtime.getRuntime().availableProcessors();\n }", "int getMinCores();", "public int cpuCount()\n\t{\n\t\treturn _cpus.size();\n\t}", "public int getAvailableProcessors();", "public long getNumCores() {\n return numCores_;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checks a date is from the last ~20 years
public static boolean isSane(Date date){ long timeSpan = date.getTime()-System.currentTimeMillis(); return timeSpan<LONG_TIME_AGO; //so long ago that we probably don't care }
[ "private boolean checkLegalAge(Date birthday) {\n ZoneId defaultZoneId = ZoneId.systemDefault();\n Instant instant = birthday.toInstant();\n LocalDate localDate = instant.atZone(defaultZoneId).toLocalDate();\n LocalDate current = LocalDate.now(defaultZoneId);\n int result = Period...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Called on ValidationExceptions with info severity
public void info(final ValidationException exception) {}
[ "public void showValidationError(final Validator.InvalidValueException ex)\n {\n for (Validator.InvalidValueException cause : ex.getCauses())\n {\n String validationMessage = cause.getMessage();\n LOGGER.warn(\"validationMessage: {}\", validationMessage);\n (new Not...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
show procental and average value new InputConverter().start();
public static void main(String[] args) { new ShowProgram(); }
[ "public average_values() {\n initComponents();\n averages();\n }", "private void calculateResult() {\n try {\r\n double res = Converter.convert(categoryIndex,\r\n (String) (spFromType.getSelectedItem()),\r\n (String) (spToType.getSelectedIte...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
GET GET GET GET
@GET @Path("/numDoors/{numDoors}") public List<VehicleElectric> findByNumDoors(@PathParam("numDoors") Integer numDoors){ return electricService.findByNumDoors(numDoors); }
[ "@Override\n\tpublic void handleGET(CoapExchange exchange) {\n\n\t\t\n\t}", "public org.simpl.rrs.webservices.GetResponse get(\r\n\r\n org.simpl.rrs.webservices.Get get12)\r\n throws java.rmi.RemoteException\r\n ;", "protected void doGet(HttpServletReque...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ renamed from: dV
public final boolean mo904dV() { boolean z = false; Parcel obtain = Parcel.obtain(); Parcel obtain2 = Parcel.obtain(); try { obtain.writeInterfaceToken("android.support.v4.media.session.IMediaSession"); this.mRemote....
[ "protected abstract int mo4149c(V v);", "void mo5832a(V v);", "public void mo1857d() {\n }", "public abstract void mo102449l(C1293v vVar);", "private void sxDsBv() {\n\t\t\n\t}", "MV getLodRsvTr();", "void mo37715E_();", "@Override\r\n\tpublic void vites() {\n\t\t\r\n\t}", "public void mo3916...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
public float getY() { return y; }
[ "@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" ] ] } }
repeated uint64 sms_number = 3;
private void addAllSmsNumber( java.lang.Iterable<? extends java.lang.Long> values) { ensureSmsNumberIsMutable(); com.google.protobuf.AbstractMessageLite.addAll( values, smsNumber_); }
[ "long mo65903a();", "long mo6254a(int i);", "long getValue231();", "long getValue219();", "private void m9579i() {\n int i = this.f8263c.getInt(\"beast.rongcloud.new.message.count\", 0);\n int i2 = this.f8263c.getInt(\"beast.friend.new.message.count\", 0);\n int i3 = this.f8263c.getInt(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Concatenates the given NFA to the end of this one
public void appendConcatenate(NFA appending) { // Saves the current end node for adding transitions after the new nodes have // been added int endingNode = nodes.size() - 1; // Add all the nodes from the given NFA onto this one and update their indexes ArrayList<NFANode> appendingNo...
[ "public IDnaStrand append(String dna){\n myLast.next = new Node(dna);\n myLast = myLast.next;\n mySize += dna.length();\n myAppends++;\n return this;\n }", "@Override\n\tpublic Pair<Integer, BitSet> generateAutomaton(GeneralizedNFA nfa)\n\t{\n\t\tint newState = nfa.addState()...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method corresponds to the database table litemall_goods_option
public Criteria andMaterialLessThanOrEqualToColumn(LitemallGoodsOption.Column column) { addCriterion(new StringBuilder("material <= ").append(column.getEscapedColumnName()).toString()); return (Criteria) this; }
[ "List<LitemallGoodsSpec> selectByExampleSelective(@Param(\"example\") LitemallGoodsSpecExample example, @Param(\"selective\") LitemallGoodsSpec.Column ... selective);", "@Override\n\tpublic List<Map<String, Object>> selectGoodsJingpai(Map param) {\n\t\treturn jingpaiDao.selectGoodsJingpai(param);\n\t}", "@Selec...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
`status: Not Mapped` coredatatypereference: BIAN::DataTypesLibrary::CoreDataTypes::UNCEFACT::Binary generalinfo: Details of the Update action service response
public Object getUpdateResponseRecord() { return updateResponseRecord; }
[ "ActionResponse.Update update();", "public org.server.core.share.TransferModel2.BnakInfoRespose getUpdateInfo() {\n if (updateInfoBuilder_ == null) {\n return updateInfo_;\n } else {\n return updateInfoBuilder_.getMessage();\n }\n }", "void requestUpdate() ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
we will be using hashmap and queue hash map will store frequency of character queue will store the order if queue is empty that means all characters are repeating
public static void findFirstNonRepeatingCharacter(String str) { Map<Character, Integer> map = new HashMap<>(); Queue<Character> queue = new LinkedList<>(); int i = -1; while (++i < str.length()) { Character curr_ch = str.charAt(i); queue.add(curr_ch); ...
[ "private void addToQueue() {\n\n\t\tint[] inOrderFreq = new int[charUsedCount + 1];\n\t\tint count = 0;\n\t\tint indexOfI = 0;\n\n\t\t// iterate through new array to store frequencies in descending order\n\t\tfor (int j = 0; j <= charUsedCount; j++) {\n\n\t\t\tint max = 0;\n\n\t\t\t// checks every value in ascii ta...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/don't allow ACK to be turned off
@Override public void turnOff() { }
[ "Boolean disableOutboundSnat();", "boolean getExplicitAbandon();", "public void notAccept() {\n this.acceptState = false;\n }", "public void disableConnectionHandover() {\n \t\tmHandoverEnabled = false;\n \t}", "@Override\n\tpublic void onDisable() {\n\t\tpacketListenerAPI.onDisable();\n\t}", "p...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method is called when any modifications in database are done like version is updated or database schema is changed
@Override public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { db.execSQL("DROP TABLE IF EXISTS " + CREATE_TABLE_TRANS); // drop table if exists onCreate(db); }
[ "void databaseUpdated() throws SQLException{\n\t\t\t products = readerDAO.obtainProductList();\n\t\t\t\t\tfireTableDataChanged();\n\t\t\t }", "public void onDatabaseUpdated();", "public final synchronized void handleDatabaseChanged() throws Exception {\n releaseBeans();\n }", "@Override\n\t\tpub...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Transfers data from one customer service to another.
public void unload(BusIfc bus) { CustomerCargo cargo = (CustomerCargo)bus.getCargo(); if ( customerCargo.getCustomer() == null) { if (customerCargo.isLink()) { cargo.setCustomer(DomainGateway.getFactory().getCustomerInstance()); ...
[ "Observable<CustomerAcctToAcctSupplyResponse> supplyCustomerAccToAccTransfer(CustomerAccountEntry sourceAccount, @Nullable CustomerAccountEntry targetAccount, @Nullable String targetCard,\n MoneyEntry operationAmount, String transRef);",...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates an instance of the adapter factory.
public TraceAdapterFactory() { if (modelPackage == null) { modelPackage = TracePackage.eINSTANCE; } }
[ "private AdapterFactory() {\n\t}", "public static Factory factory() {\n return ext_db::new;\n }", "private static synchronized void createInstance()\n {\n instance = new DataProviderFactory();\n }", "public static Factory factory() {\n return ext_wbk::new;\n }", "public static Facto...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Char argument that matches any of the given matchers
public static char or(char first, char second) { try { MockingInfo.getArgumentMatcherStorage().performOr(); } catch (EmptyStackException e) { throw new IllegalArgumentException("Use only matchers inside OR"); } return 0; }
[ "@Test\n public void predefined_anyCharacter() throws Exception {\n String value = \"sun son soon\";\n String regex = \"s.n\";\n\n Pattern pattern = Pattern.compile(regex);\n Matcher matcher = pattern.matcher(value);\n assertThat(asString(matcher)).isEqualTo(\"sun: [0,3[; son: [4,7[;\");\n }", "p...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Check if all settings can be read
private static boolean settingsRead() { boolean result = true; Properties prop = new Properties(); try { prop.load(new FileInputStream(System.getProperty("user.dir") + "/Config.properties")); } catch (IOException ex) { result = false; System.err.printl...
[ "public static boolean checkSettingsLoadedProperly() {\n\t\treturn !settingsFailedToLoadProperly;\n\t}", "boolean hasReusableConfigValues();", "boolean hasGlobalSettings();", "private static void checkLoad() {\n if (settings == null) {\n load();\n }\n }", "public static void veri...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Write your code here
public boolean hasNext() { return !list.isEmpty(); }
[ "void stuffForYouToDo() {\n\t\t// Write your code here...\n\t\t\n\t\t\n\t\t\n\t}", "private static void EX5() {\n\t\t\r\n\t}", "@Override\r\n\t\t\t\tvoid eval() {\r\n\r\n\t\t\t\t\t// YOUR CODE IN THIS SPACE\r\n\t\t\t\t}", "@Override\n }", "void writeCode() {\n System.out.println(\"WRITING ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Availability operations Gets Out of Office (OOF) settings for a specific user. Calling this method results in a call to EWS.
public OofSettings getUserOofSettings(String smtpAddress) throws Exception { EwsUtilities.validateParam(smtpAddress, "smtpAddress"); GetUserOofSettingsRequest request = new GetUserOofSettingsRequest(this); request.setSmtpAddress(smtpAddress); return request.execute().getOofSettings(); }
[ "public String getAlipayOutUser() {\n return alipayOutUser;\n }", "public protobuf.JdssAuditor.DisplayData.OutOfServiceOrBuilder getOutOfServiceOrBuilder() {\n return getOutOfService();\n }", "OvsOffload getOvsOffload();", "public void setAlipayOutUser(String alipayOutUser) {\n this.a...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Empty Constructor, it's a singleton
protected SingletonUser(){ }
[ "public Singleton() {\n super();\n }", "private Singleton() {\r\n\r\n }", "private SimpleSingleton () {\r\n }", "private Singleton() {\r\n }", "private SingletonExample() {\n\t\tsuper();\n\t}", "private Singleton() {\n\n }", "public NonSingleton(){\n\t\tSystem.out.println(\"インスタンス生成の...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public String exportTXT5(String jdata, String _, List columnNames, Map options) throws Exception { return null; }
[ "@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" ] ] } }
Validates that the user has a session using the token and returns the UserProfile object
public UserProfile validate(Cookie userc, String token) throws Exception { if (userc == null || token == null) return null; String userstr = URLDecoder.decode(userc.getValue(), "utf-8"); return validate(userstr, token); }
[ "@RequestMapping(value = \"/api/user/current\", method = RequestMethod.GET)\n\tpublic ResponseEntity<User> getSessionUser(@CookieValue(Magic.SESSION_COOKIE_NAME) String token) {\n\t\tSession s = this.sessionRepo.findByToken(token);\n\t\tif (s != null && s.isActive()) {\n\t\t\treturn ResponseEntity.ok(s.getUser());\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__ChapterPersistence__Group_3__0__Impl" $ANTLR start "rule__ChapterPersistence__Group_3__1" InternalStubbrLang.g:9213:1: rule__ChapterPersistence__Group_3__1 : rule__ChapterPersistence__Group_3__1__Impl ;
public final void rule__ChapterPersistence__Group_3__1() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalStubbrLang.g:9217:1: ( rule__ChapterPersistence__Group_3__1__Impl ) // InternalStubbrLang.g:9218:2: rule__ChapterPersistence...
[ "public final void rule__DSLRuleMO__Group_1__3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalSasDsl.g:6384:1: ( rule__DSLRuleMO__Group_1__3__Impl )\n // InternalSasDsl.g:6385:2: rule__DSLRuleMO__Group_1__3__Impl\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "ruleCTypeSignSpec" $ANTLR start "rule__CType__Alternatives" InternalReflex.g:334:1: rule__CType__Alternatives : ( ( ( rule__CType__Group_0__0 ) ) | ( ( rule__CType__Group_1__0 ) ) | ( ( rule__CType__Group_2__0 ) ) | ( ( rule__CType__Group_3__0 ) ) );
public final void rule__CType__Alternatives() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalReflex.g:338:1: ( ( ( rule__CType__Group_0__0 ) ) | ( ( rule__CType__Group_1__0 ) ) | ( ( rule__CType__Group_2__0 ) ) | ( ( rule__CType__Group_3__0 ) ) )...
[ "public final void rule__ReflexType__Alternatives() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalReflex.g:1928:1: ( ( ruleCType ) | ( ( rule__ReflexType__Group_1__0 ) ) )\n int alt14=2;\n int LA14_0 = input.LA(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ access modifiers changed from: 0000 / renamed from: a
public void mo23415a(C8914i iVar, C8924q qVar) { this.f19748c = iVar; this.f19747b = qVar; mo23401a(true); }
[ "public void mo28221a() {\n }", "public void mo5201a() {\n }", "protected abstract void mo3493a();", "public abstract az mo1423b();", "public interface C0050a {\n /* renamed from: a */\n boolean mo143a();\n\n /* renamed from: b */\n boolean mo144b();...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public int getMaximumLength() { return alertRArr.length; }
[ "@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" ] ] } }
Permte eliminar una instancia de CentroExpendio
public int eliminar(int codigo) throws Exception { Connection conexion = null; PreparedStatement sentencia = null; int filasAfectadas = 0; try { conexion = CustomConnection.getConnection(); String consulta = "DELETE FROM TCENTRO_EXPENDIO " + "W...
[ "public void eliminarCentro (String vnombreC){\r\n GenericoBD generico= new GenericoBD();\r\n String sql = \"\";\r\n try {\r\n //Obtenemos los códigos y nombres de todos los departamentos\r\n sql = \"delete from centro where upper(nombre) = ?\";\r\n con=generico....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test to make sure when each field is set it makes the round trip from ObjectSchema to JSON and back to ObjectSchemaImpl.
@Test public void testRoundTripEachField() throws IllegalArgumentException, IllegalAccessException, JSONObjectAdapterException, JSONException{ Field[] fields = ObjectSchemaImpl.class.getDeclaredFields(); for(Field field: fields){ ObjectSchema toTest = createSchemaWithField(field); if(toTest != null){ ...
[ "@Test\n\tpublic void testObjectSchema() throws ConcordiaException {\n\t\tnew ObjectSchema(null, false, null, SchemaTest.TEST_SCHEMA_LIST_BOTH);\n\t}", "@Test\n public void testSetProperties() throws Exception {\n System.out.println(\"setProperties\");\n Schema propertySchema = new Schema();\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the da xoa of this cong dan.
public int getDaXoa();
[ "public int getDaXoa() {\n\t\treturn _donViHanhChinh.getDaXoa();\n\t}", "public DoctoArrecada getCOD_DA() {\n return COD_DA;\n }", "public int getDado(){\n\t\t\tint Output=0;\n\t\t\tDados D = new Dados();\n\t\t\tswitch(this){\n\t\t\t\tcase BOLA_FOGO: Output = D.rolarD4() + D.rolarD4() + D.rolarD4(); b...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
repeated .M9.ItemBuffInfo itemBuffInfo = 2;
public Builder setItemBuffInfo( int index, com.znl.proto.M9.ItemBuffInfo.Builder builderForValue) { if (itemBuffInfoBuilder_ == null) { ensureItemBuffInfoIsMutable(); itemBuffInfo_.set(index, builderForValue.build()); onChanged(); } else { ...
[ "org.gof.demo.worldsrv.msg.Msg.DItem getItem();", "pomelo.item.ItemOuterClass.MiniItemOrBuilder getItemInfoOrBuilder();", "org.gof.demo.worldsrv.msg.Msg.DItemOrBuilder getItemOrBuilder();", "public Item getItem() {\n/* 29 */ return this.item;\n/* */ }", "private final com.p280ss.android.ugc.aweme.f...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test case number: 15 / 1 covered goal: Goal 1. wheel.components.Component.legend(Ljava/lang/Object;)Lwheel/components/Component;: rootBranch
@Test public void test015() throws Throwable { ErrorPage errorPage0 = new ErrorPage(); TextArea textArea0 = new TextArea((Component) errorPage0, "ruH^>6.!N", "ruH^>6.!N"); // Undeclared exception! try { Component component0 = textArea0.legend((Object) errorPage0); fail("Expec...
[ "@Test\n public void test71() throws Throwable {\n CategoryAxis3D categoryAxis3D0 = new CategoryAxis3D(\"Null 'layer' not permitted.\");\n CombinedDomainCategoryPlot combinedDomainCategoryPlot0 = new CombinedDomainCategoryPlot((CategoryAxis) categoryAxis3D0);\n SynthToolBarUI synthToolBarUI0 = new...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { view = inflater.inflate(R.layout.fragment_all_news, container, false); initVolleyCallback(); mStaggeredLayoutManager = new StaggeredGridLayoutManager(1...
[ "@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" ] ] } }
Returns whether this factory is applicable for the type of the object. This implementation returns true if the object is either the model's package or is an instance object of the model.
@Override public boolean isFactoryForType(Object object) { if (object == modelPackage) { return true; } if (object instanceof EObject) { return ((EObject)object).eClass().getEPackage() == modelPackage; } return false; }
[ "@Override\n public boolean isFactoryForType(Object object) {\n if (object == PropertiesAdapterFactory.modelPackage) {\n return true;\n }\n if (object instanceof EObject) {\n return ((EObject) object).eClass().getEPackage() == PropertiesAdapterFactory.modelPackage;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
flag to kill the thread;
public void startProxy(Socket connection_Socket) throws Exception { this.connectionSocket = connection_Socket; System.out.println("Starting connection"); Map<String,String> lineMap = new HashMap<String,String>(); //map to store the information from input-stream; Map<String,String> ...
[ "public void stopThread()\r\n {\r\n this.started = false;\r\n }", "public void stopThread() {\n\t\tstop = true;\n\t}", "protected void stopThread()\n\t{\n\t\tthread_runable = false;\n\t}", "public synchronized void stopThread(){\n _running = false;\n }", "void terminate(){ theThreadMn...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Metodo que me trae todos los datos de la tabla tblcontrol_diario de acuerdo a la fecha y el codigo de usuario
@Query(value="SELECT * FROM tblcontrol_diario WHERE fecha = :fecha AND codigo_usuario = :codigo", nativeQuery=true) List<ControlDiario> findControlD (@Param("fecha") Date fecha, @Param("codigo") int codigo);
[ "private void cargarDatos() {\r\n \r\n // Datos\r\n String dni = txtDni.getText();\r\n \r\n // Proceso\r\n SocioController control = new SocioController();\r\n lista = control.consultarxDNI(dni);\r\n\r\n\r\n // Acceso al objeto Table\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Description: It assigns to parameter a description.
public void setDescription(String d) { description = d; }
[ "public void setDescription(String description)\r\n/* 117: */ {\r\n/* 118:102 */ this.description = description;\r\n/* 119: */ }", "@Override\n public final void setParameterDescription(String name, String descr){\n params.get(name).setDescription(descr);\n }", "public void setDescrip...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Indicate that the vehicle's gear is in the park position
public void showGearInPark();
[ "public void parkInCarpark() {\n\n carpark.findASpace(this);\n }", "@Test\n\tpublic void parkVehicle() throws VehicleException {\n\n\t\ttestVehicle = new Car(EXAMPLE_PLATE, EXAMPLE_TIME, false);\n\t\ttestVehicle.enterParkedState(EXAMPLE_TIME, EXAMPLE_DURATION);\n\t\tassertTrue(testVehicle.isParked() == ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { super.doPost(req, resp); try { ActionPost(req, resp); } catch (Exception ex) { PrintError(resp, ex); } }
[ "@Override\n }", "@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void extornar() {\n \n }", "@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void wydaj() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Document content = odfDocument.getContent();
private void convertStylesAndContent(OdfDocument odfDocument) throws Exception { OdfFileDom content = odfDocument.getContentDom(); NodeList lst = content.getElementsByTagName("text:p"); for (int i = 0; i < lst.getLength(); i++) { Node n = lst.item(i); if (!(n instanceof OdfStylableElement)) co...
[ "public org.w3c.dom.Document getDocument()throws JRexException;", "DomDocument getDocument();", "public String getDocumentContent( String arg0 )\r\n \t\t{\n \t\t\treturn null;\r\n \t\t}", "public String getContentDocument() {\n\t\treturn pages.unit5DocumentCard.getInputContentDocument();\n\t\t\n\t}", "publi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method corresponds to the database table edu.rights_function
@Insert({ "insert into edu.rights_function (function_id, function_name)", "values (#{function_id,jdbcType=VARCHAR}, #{function_name,jdbcType=VARCHAR})" }) int insert(RightsFunction record);
[ "@Override\n\tpublic String getTableName() {\n\t\treturn \"dip_roleandfunction_c\";\n\t}", "public interface IFunctionDao {\n\n List<String> selectAllFunctionNames();\n\n List<String> selectFunctionNameByRoleId(int roleId);\n\n List<String> selectFunctionNamesByRoleIds(List<Integer> roleIds);\n}", "pub...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Finds the index of "ref" in the Reference list for the action "place"
public int findReferenceIndex (int row, int place, int ref) { ArrayList <ArrayList <ArrayList <Integer> > > b = this.getReferencies(row); ArrayList a = b.get(place); for (int i = 0; i < a.size(); i++) { ArrayList ...
[ "public int findRefPlace(int index) {\n\n for (int i = 0; i < reference.size(); i++) {\n if (reference.get(i).getIndex() == index)\n return i;\n }\n return -1;\n }", "int getLLSRefTemp(int index);", "public int getPosition(long id) {\n for (int i = 0; i <...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
convert the cache size information from GCSpider to internal representation for CacheHolder
public static byte gcSpiderString2Cw(String spiderstring) throws IllegalArgumentException { // at the moment both sources use the same strings return gcGpxString2Cw(spiderstring); }
[ "public StringProperty getCacheSizeType() {\n return cacheSizeType;\n }", "@Override\n @GET\n @Path(\"cacheSize\")\n public Response cacheSize() {\n return Response.status(Response.Status.OK)\n .entity(ControlLoopMetricsManager.getManager().getCacheSize()).build();\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
database connection Class driverClass = Class.forName(_driverClass);
public static IDatabaseConnection getConnection(DbConfig config) throws ClassNotFoundException, DatabaseUnitException, SQLException { Connection jdbcConnection = DriverManager.getConnection(config.url, config.user, config.pass); IDatabaseConnection db = new DatabaseConnection(jdbcConnection, config.schema, true...
[ "public static void makeConnection() throws ClassNotFoundException, SQLException, Exception {\r\n if(conn != null){\r\n return; \r\n }\r\n Class.forName(driver);\r\n //Make a Connection object \r\n conn = (Connection) DriverManager.getConnection(DB_URL, username, passwo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
load just the first instances and their fields /private int activationDepth = 2;
public ObjectDatastore get() { ObjectDatastore datastore = new AnnotationObjectDatastore(indexed); // datastore.setActivationDepth(activationDepth); return datastore; }
[ "public void initWorld1() {\r\n\t\t// Preparaci�n de la primera fase\r\n\t\tif (fase1Acabada == false) {\r\n\t\t\tthis.faseActiva = new Fase01();\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.faseActiva = new Fase02();\r\n\t\t}\r\n\t\tthis.faseActiva.inicializaFase();\r\n\t\t// Agregamos los actores de la primera fase a nue...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Verifies that extra stuff in the json that an external developer may put in is ignored without exceptions
@Test public void verifyExtraValuesAreIgnored() throws Exception { String json = readAddonTestFile("addonExtraValue.json"); Gson gson = ConnectModulesGsonFactory.getGson(); ConnectAddonBean addon = gson.fromJson(json, ConnectAddonBean.class); assertEquals("My Plugin", addon.getName...
[ "@Test\n public void testLoadInvalidJsonObjectNoStrictValidation() throws IOException, DataPackageException{\n JSONObject jsonObject = new JSONObject(\"{\\\"name\\\": \\\"test\\\"}\");\n \n // Build the datapackage, no strict validation by default\n Package dp = new Package(jsonObject...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This is a getter for the last auction date. Used to check if the user can add another auction.
public LocalDate getLastAuctionDate() { return myLastAuctionDate; }
[ "public Date getBibItemLastUpdatedDate() {\n return bibItemLastUpdatedDate;\n }", "public Date getBibLastUpdatedDate() {\n return bibLastUpdatedDate;\n }", "public Timestamp getDateLastActivity() {\r\n return dateLastActivity;\r\n }", "@ApiModelProperty(required = true, value = \...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Is called by the main application to give a reference back to itself.
public void setMainApp(MainApp mainApp) { this.mainApp = mainApp; }
[ "public void backref();", "private MainApplication() {\n this.displaySplashScreen();\n\n APP_MAIN = this;\n// this.winMain = null;\n this.docMain = null;\n// this.cfgMain = null;\n this.appProxy = new ApplicationProxy(this); \n }", "@Override\n public void back...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Accept this DccChat connection.
public synchronized void accept() throws IOException { if(acceptable) { acceptable = false; int[] ip = Tools.longToIp(address); String ipStr = ip[0] + "." + ip[1] + "." + ip[2] + "." + ip[3]; socket = new Socket(ipStr, port); reader = new BufferedReader(new InputStreamReader( socket.getInpu...
[ "private void acceptConnection () {\n\n new Thread(new Runnable() {@Override public void run() {\n for(;;) {\n RTPPacket syn = newConnectionRequest();\n if(syn == null) return;\n\n p.logStatus(\"received a connection request\");\n createConnection(syn);\n\n sendSYNACK(syn,...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the Red, Green, and Blue value for this color.
public int getRGBValue() { return this.rgbValue; }
[ "public String getColor() {\r\n\t\t\treturn \"rgb(\" + this.up(this.rColor) + \", \" + this.up(this.gColor) + \", \" + this.up(this.bColor) + \")\";\r\n\t\t}", "public Color\n getColor()\n {\n return (new Color((float) pValue.r(), (float) pValue.g(), (float) pValue.b()));\n }", "public ColorValue getColor...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method to return the company where the part was purchased name.
public String getCompanyName() { return companyName; }
[ "public java.lang.String getCOMPANY() {\r\n return COMPANY;\r\n }", "public String getRecordCollectionCompany() {\n return recordCollectionCompany;\n }", "public String getCompanyName()\n {\n return m_companyName;\n }", "public final String getCompanyName() {\n return c...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get an iterator for the child nodes of this node.
public NodeIterator iterator() throws NodeNotFoundFault, FileManagerFault;
[ "public Iterator<NodeContainer> getChildIterator() {\n\t\treturn children.iterator();\n\t}", "@SuppressWarnings(\"rawtypes\")\n public Iterator iterator() { return children.iterator(); }", "@Override\n public ListIterator<SpanNode> childIterator() {\n List<ListIterator<SpanNode>> childIterators = n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The printTreeSize method prints out the game tree statistics including the number of tree nodes evaluated at a game tree branch and the total number of tree nodes evaluated thus far.
public void printTreeSize() { System.out.println( "Trees nodes evaluated at this branch: " + (count - previousCount) + "; Total tree nodes evaluated: " + count); }
[ "public void printTree() {\n\t\tSystem.out.print(\"[\" + size + \"]\");\n\t\tthis.printTree((Entry<T>) root);\n\t\tSystem.out.println();\n\t}", "public static native void glp_ios_tree_size(glp_tree T, IntByReference a_cnt, IntByReference n_cnt,\n IntByReference t_cnt);", "public void printCount() {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__Witness__PredicateAssignment_3" $ANTLR start "rule__Witness__CommentAssignment_4_1" ../ac.soton.iumlb.xtext.dsl.ui/srcgen/ac/soton/uk/iumlb/xtext/ui/contentassist/antlr/internal/InternalDsl.g:5409:1: rule__Witness__CommentAssignment_4_1 : ( ruleEString ) ;
public final void rule__Witness__CommentAssignment_4_1() throws RecognitionException { int stackSize = keepStackSize(); try { // ../ac.soton.iumlb.xtext.dsl.ui/src-gen/ac/soton/uk/iumlb/xtext/ui/contentassist/antlr/internal/InternalDsl.g:5413:1: ( ( ruleEString ) ) ...
[ "public final void rule__Metadata__WebpAssignment_4_1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalOcelet.g:20686:1: ( ( RULE_STRING ) )\n // InternalOcelet.g:20687:2: ( RULE_STRING )\n {\n // Inte...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the x and y coordinates using hotspots.
void setHotSpotXY(double x, double y) { if(hideBounds) { setXY(x, y); return; } if(xyDrag&&selected&&(hotspot==CENTER)) { setXY(x, y); } else if(rotateDrag&&selected&&(hotspot==CORNER)) { if(pixelSized) { double r = -toPixels.getScaleY()/toPixels.getScaleX(); doub...
[ "private void setXYcoords() {\n\n // luke\n grids = Loc.whatGrid();\n\n\n // get screen size\n DisplayMetrics dm = new DisplayMetrics();\n getWindowManager().getDefaultDisplay().getMetrics(dm);\n\n int width = dm.widthPixels;\n int height = dm.heightPixels;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test of getWords method, of class Lause.
@Test public void testGetWordCount() { System.out.println("getWordCount"); Lause instance = new Lause("kuidas sul läheb"); int expResult = 3; int result = instance.getWordCount(); assertEquals(expResult, result); }
[ "Collection<String> getWords();", "@Test\r\n public void testGetWord() {\r\n System.out.println(\"getWord\");\r\n WordsAndClues instance = wc;\r\n String expResult = \"testing\";\r\n String result = instance.getWord();\r\n assertEquals(expResult, result);\r\n }", "public...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This represents the time at which the response was either ready, closed or in error. Providing a time here is useful as it allows the time taken to generate a response to be determined even if the response is written asynchronously.
public long getTime() { return timer.get(); }
[ "public Long getResponseTime() {\n\t\treturn responseTime;\n\t}", "public Double getResponseTime() {\n if (_responseTime == null) {\n return null;\n }\n return _responseTime.getValue();\n }", "public java.lang.Long getRequesttime() {\n return requesttime;\n }", "public D...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Method to commence the game.
private void commenceGame(Game game) { try { // Randomly choose a person to go second. Random random = new Random(); int coinFlip = random.nextInt(2); ObjectOutputStream objectOutputStream1 = new ObjectOutputStream(socket1.getOutputStream()); ObjectOutputStream objectOutputStream2 = new Objec...
[ "public void startGame() {\n getFighterData();\n getMoveData();\n\n System.out.println(\"Game Loaded!\");\n promptStartGame();\n\n System.out.println(\"Thanks for playing!\");\n\n }", "public void runGame() {\n\t\tString exit = \"play\";\n\t\tinfo();\n\t\twhile(exit == \"play...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adds an input Soy file, given the file content provided as a string, as well as the desired file path for messages.
public Builder add(CharSequence content, String filePath) { listBuilder.add(SoyFileSupplier.Factory.create(content, filePath)); return this; }
[ "void addFile(String path);", "public void addFile(String filename, String fileContent){\n\t\t//TODO\n\t\tif(filename==null||fileContent==null) throw new IllegalArgumentException();\n\t\tExtension theExtension = null;\n\t\tif(filename.endsWith(\"txt\")) theExtension = Extension.txt;\n\t\telse if(filename.endsWith...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get Currency. The Currency for this record
public int getC_Currency_ID();
[ "public String getCurrency() {\n\t\treturn Currency;\n\t}", "public Currency currency() {\n return currency;\n }", "public Currency getCurrency()\n {\n return m_currency;\n }", "@Override\n\tpublic Currency getCurrency() {\n\t\treturn currency;\n\t}", "public static String getCurrency...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
if any arg is null the result is null
@Override public void evalLutLookup(final LutExpr lookup) { for (final BaseExpr arg : lookup.args) { arg.eval(this); if (isNull) { return; } } }
[ "public Object visitNullFilter(Object arg0) {\n return null;\n }", "private void nullAssertion(final Object... args) throws ImplerException {\n for (final Object o : args) {\n if (Objects.isNull(o)) {\n throw new ImplerException(\"Non null arguments expected\");\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void postInit(KeycloakSessionFactory 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" ] ] } }
simulating new atom content every 15 mins
private String setUpTestAtomFeed() throws Exception { String atomDateFormat = "yyyy-MM-dd'T'HH:mm:ss.SSSz"; Object[] testPublishDates = { generateTimestamp(atomDateFormat, 0), generateTimestamp(atomDateFormat, 15), generateTimestamp(atomDateFormat, 30), generateTimestamp(atomDateFormat, 45), gen...
[ "@Scheduled(cron = \"0 1 0 * * *\")\n\tprotected void repeatEveryminute() {\n\t\tSystem.out.println(\"^^^^^^^ This method will be repeated every day ^^^^^^^\");\n\t\tinitializeFiles();\n\t}", "@Override\n public void run() {\n\n for (int i = 0; i < 30; i++) {\n saleticket();\n }\n }...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a new instance of this class from the given array, with the given epsilon. The resulting vector will have the same length as the given array, and its entries will be in the same order and with the same value as those in the given array.
public ArrayVector( final double[] _vector, final int _epsilon ) { super( _epsilon ); if( (_vector == null) || (_vector.length < 1) ) throw new IllegalArgumentException( "Vector missing or length zero" ); if( _epsilon < 0 ) throw new IllegalArgumentException( "Invalid e...
[ "public Vector(double[] array) {\r\n this.array = array;\r\n }", "Vector<N> make(double[] data);", "M setEpsilon(double epsilon);", "protected final V create(final int[] array) {\n\n try {\n return vectorClass().getConstructor(new Class[] { int[].class }).newInstance(new Object[] {...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public boolean onTouch(View v, MotionEvent event) { int scrollX = v.getScrollX(); int scrollY = v.getScrollY(); horizantalscrollviewforbareport.scrollTo(scrollX, scrollY); 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" ] ] } }
Return player's bank account from Bank object
public Bank getBank(){ return bankAccount; }
[ "java.lang.String getPlayerAccount();", "public Bank getBankOwner() {\n return bankOwner;\n }", "public transfer_protobuf.Commands.Bank getBank() {\n return bank_ == null ? transfer_protobuf.Commands.Bank.getDefaultInstance() : bank_;\n }", "public static BankAccount getBankAccount(int accou...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Exercises entity snapshot load when selectbeforeupdate is true.
@Test public void testLoadSnapshotWithCustomColumnReadAndWrite() { Session s = openSession(); Transaction t = s.beginTransaction(); final double SIZE_IN_KB = 1536d; final double SIZE_IN_MB = SIZE_IN_KB / 1024d; Image image = new Image(); image.setName( "picture.gif" ); image.setSizeKb( SIZE_IN_KB...
[ "private void lazyLoad()\n {\n if ( lazy )\n {\n data = ( (EntityInvocationHandler) Proxy.getInvocationHandler( find( collection, data.get( ID ) ) ) ).data;\n lazy = false;\n }\n }", "@Override\n public boolean preUpdate(BeanPersistRequest<?> request) {\n retur...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Expr ::= AndExpr [ "||" AndExpr ]
private Expr expr() { Expr left, right; left = andExpr(); if(lexer.token == Symbol.OR) { lexer.nextToken(); right = andExpr(); left = new CompositeExpr(left, Symbol.OR, right); } return left; }
[ "public final Expr orExpr() throws RecognitionException {\n\t\tExpr result = null;\n\n\t\tint orExpr_StartIndex = input.index();\n\n\t\tExpr lhs = null;\n\n\t\tExpr rhs = null;\n\n\t\ttry {\n\t\t\tif (state.backtracking > 0 && alreadyParsedRule(input, 7)) {\n\t\t\t\treturn result;\n\t\t\t}\n\n\t\t\t// /Users/tvdsto...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructor de la clase con argumentos
public MuebleOferta(int idOferta, String loginUsuarioOfertante, long referenciaMueble, int oferta) { this.idOferta = idOferta; this.loginUsuarioOfertante = loginUsuarioOfertante; this.referenciaMueble = referenciaMueble; this.oferta = oferta; }
[ "public Deposito() { //Lo que hace es llamar al constructor con parametros pasandole valores vacios\r\n this(0, 0, \"\");\r\n }", "public Juegos() {\r\n }", "public Futbolcu(){\n System.out.println(\"Parametresiz constructor\");\n }", "public BilletajeCajero() {\n }", "public Curso...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
listeners of the home's screen.
public interface Listener { void onLaunch(); }
[ "public GuiLogic(){\n\n\n\t\tscreen = new Screen();\n\n\t\tscreen.getLoginScreen().addActionListener(new LoginActionListener());\n\t\tscreen.getFrontScreen().addActionListener(new FrontActionListener());\n\t\tscreen.getEventScreen().AddActionListener(new UserEventActionListener());\n\t\tscreen.getCalendarScreen().a...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructs a list containing the elements of values.
public IntList(int... values) { this.size = values.length; this.elements = new int[size]; System.arraycopy(values, 0, elements, 0, size); }
[ "static public <T> List<T> list(final T... values)\n {\n return ListFactory.list(values);\n }", "public List getList() {\r\n return new ArrayList(values);\r\n }", "java.util.List<java.lang.Integer> getValsList();", "public List<XValue> asList() {\n\t XdmValue xv = asXdmValue() ;\n\t int s...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the backing map to this Representation
public Map<String, Representation> getMap() { return Collections.unmodifiableMap(map); }
[ "public Map getMap()\n {\n return _attributes.getMap();\n }", "public BWMap getMap() {\n return this.map;\n }", "protected Map<K, V> getExternalMap()\n {\n return (Map<K, V>) f_map;\n }", "public Map getMap() { return externalMap; }", "protected HashMap<String, CacheEntry...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub
@Override public void effect(Actor actor) { }
[ "@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" ] ] } }
Performs a Latest search query using the Redis JReJSON client.
@Override public LatestDataService getLatestData(JsonObject request, Handler<AsyncResult<JsonObject>> handler) { request.put(ATTRIBUTE_LIST, attributeList); // Exceptions if (!request.containsKey(ID)) { LOGGER.debug("Info: " + ID_NOT_FOUND); responseBuilder = new ResponseBuilder(FAILED...
[ "JsonObject searchClientByName(String name);", "private void searchQuery(Session session, JsonObject json){\n String content = removeQuotes(json.get(\"Value\").toString());\n String[] answer = query.searchQuery(content);\n JsonObject jso = Json.createObjectBuilder()\n .add(\"Key\",...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Add column visibility (will be encoded UTF8) to Span end
public EndBuilder vis(String cv) { return vis(Bytes.wrap(cv)); }
[ "public Builder clearColSpan() {\n bitField0_ = (bitField0_ & ~0x00000004);\n colSpan_ = 0;\n onChanged();\n return this;\n }", "boolean getIncludeInvisibleColumns();", "public void setColumnSpans(int... spans) {\n\t\tcolSpans = spans;\n\t}", "public void s...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Fill in checkedSources list with sources corresponding to checkboxes checked in the data table on the page
public void collectCheckedSources() { clearCheckedSources(); for (Source source : sources) { if (sourceCheckboxes.get(source.getId()) != null) { if (sourceCheckboxes.get(source.getId())) { checkedSources.add(source); } } } }
[ "protected void setSelections() {\r\n\r\n\t\tselections = null;\r\n\t\tDataSourceListItem source = (DataSourceListItem) sourceList.getSelectedItem();\r\n\t\tif (source == null)\r\n\t\t\treturn;\r\n\r\n\t\tselectedTableInfo = tableList.getSelectedValue();\r\n\t\tselectedSourceId = source.getSourceId();\r\n\t\tif (se...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Subclasses create any control widgets they want and parent them to the parameter of this method. This method should return a single composite that is the parent of the controls. NOTE: The parameter returned should not be the parameter passed in, though the parameter returned should be a child of the parameter passed in...
abstract Composite setUpSelectors(Composite parent);
[ "public abstract Control createComposite(Composite parent);", "protected abstract Control createControl(Composite parent);", "protected abstract Control createContents(Composite parent);", "public Composite getButtonBoxControl(Composite parent) {\n if (buttonBox == null) {\n buttonBox = new ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Write a program to convert a temperature in degrees Fahrenheit to degrees Celsius. The formula for conversion is Celsius = (Fahrenheit 32)(5/9).
public static void hm_task1(){ //This program takes in your temperature in Fahrenheit and converts it to Celcius System.out.println("Temperature Converter \n\tFahrenheit\t::to::\tCelvius\n"); Scanner tp = new Scanner(System.in); System.out.print("Input temperature to be converted :"); double temp_Fahren...
[ "public static void convertFtoCTemp() {\n // Variable declarations\n float userTempF = 0; // user variable to store F temperature\n float convertedTempC = 0; // temperature in C that has been converted\n\n // Description of method\n System.out.println(\"Write a Java progr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__InitializedVariableDeclaration__Group__4" $ANTLR start "rule__InitializedVariableDeclaration__Group__4__Impl" InternalSARL.g:28974:1: rule__InitializedVariableDeclaration__Group__4__Impl : ( ( rule__InitializedVariableDeclaration__RightAssignment_4 ) ) ;
public final void rule__InitializedVariableDeclaration__Group__4__Impl() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalSARL.g:28978:1: ( ( ( rule__InitializedVariableDeclaration__RightAssignment_4 ) ) ) // InternalSARL.g:28979:1: ( (...
[ "public final void rule__MethodDeclaration__Group_4__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMiniJava.g:2056:1: ( ( ( rule__MethodDeclaration__FormalVarDeclarationsAssignment_4_0 ) ) )\n // InternalMiniJava...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "INCREASE" $ANTLR start "LPAREN"
public final void mLPAREN() throws RecognitionException { try { int _type = LPAREN; int _channel = DEFAULT_TOKEN_CHANNEL; // C:\\Users\\Michael\\Documents\\Senior Design\\pseudoLanguage\\Language.g:21:8: ( '(' ) // C:\\Users\\Michael\\Documents\\Senior Design\\pseudoLanguage\\Language.g:21:10: '(' { ...
[ "private int addPlus(AbstractUnaryNode node) throws VisitingException {\n\t\tint localStartState = startState;\n\n\t\t// Create a new start state for the operand of this node.\n\t\tint operandStartState = nfa.addState();\n\t\tstartState = operandStartState;\n\n\t\t// Wire the states up.\n\t\tnfa.addEpsilonTransitio...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Transfer money from this account to another account
public void transferTo(Account other, int value) throws InsufficientBalanceException { // Acquire locks in order of account number to avoid deadlock Account first = (this.number < other.number) ? this : other; Account second = (this.number < other.number) ? other : this; synchronized (first) { synchronized ...
[ "public void transferIn(double amount, Account other){\r\n userAccount.add(amount);\r\n other.deduct(amount);\r\n }", "public void transferMoneyToOtherAccounts(Account a1, Account a2, double m);", "public void transfer(double money, BankAccount account2){\n if(sufficientFunds(money)) {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
returns the location of the pit
public Vertex getLocation() { return this.location; }
[ "public Point getLoc() {\n \t\treturn loc;\n \t}", "public static String getLocation(Painting p){\n return p.location;\n }", "public Point getLocationOfTile(Tile t)\n {\n return this.locations.get(t);\n }", "public Point getLoc() {\n\t\treturn location;\n\t}", "public Point getLoca...
{ "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.fragment_matches_of_day, container, false); MobileAds.initialize(getActivity().getApplicationContext(), String.valueOf(getRe...
[ "@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" ] ] } }