query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
Vehicle type category .maps.fleetengine.v1.Vehicle.VehicleType.Category category = 1;
public Builder setCategory(google.maps.fleetengine.v1.Vehicle.VehicleType.Category value) { if (value == null) { throw new NullPointerException(); } category_ = value.getNumber(); onChanged(); return this; }
[ "google.maps.fleetengine.v1.Vehicle.VehicleType.Category getCategory();", "public String getVehicleTypeCategory() {\r\n return vehicleType.getCategory();\r\n }", "@java.lang.Override\n public google.maps.fleetengine.v1.Vehicle.VehicleType.Category getCategory() {\n @SuppressWarnings(\"depr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set user account administrator status
public void setAdmin(Boolean status) throws IllegalArgumentException { if (status == null) { throw new IllegalArgumentException("You must specify a " + "truth value!"); } this.changedFields.add("isAdmin"); this.isAdmin = status; ...
[ "void setAdminStatus(User user, boolean adminStatus);", "public void setAdministrator(Boolean administrator) {\n this.administrator = administrator;\n }", "void updateUserActivateStatus(User user, int newStatus);", "public void setAdminStatus(Integer adminStatus) {\n this.adminStatus = adminS...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Defines for given key a related integer value.
public void defineValueInteger(final String _key, final Integer _value) { this.mapInteger.put(_key, _value); }
[ "public void putIntegerData(String key, Integer value) {\n editor.putInt(key, value);\n editor.apply();\n }", "public void saveIntData(String key, int value) {\r\n mSharedPrefInstance.edit().putInt(key, value).apply();\r\n }", "public void setIntegerPrefValue(String key, int value) {\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the office address.
public String getOfficeAddress() { return officeAddress; }
[ "public String getOffice() {\n return office;\n }", "public String getOfficeLocation() {\n\t\treturn officeLocation;\n\t}", "public String getEmployeeAddress() {\r\n\r\n\t\treturn employeeAddress;\r\n\t}", "java.lang.String getHotelAddress();", "public java.lang.String getAddress()\n {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Load a Polar string into the KB (with filename).
public void loadStr(String str, String filename) throws Exceptions.OsoException { ffiPolar.loadStr(str, filename); checkInlineQueries(); }
[ "public void loadStr(String str) throws Exceptions.OsoException {\n ffiPolar.loadStr(str, null);\n checkInlineQueries();\n }", "Path load(String filename);", "void loadProducts(String filename);", "public void loadResource(String file) throws LoadException;", "Resource loadAsResource(String...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the set of the MST_CITY.
public Set<MstCity> getMstCitySet() { return this.mstCitySet; }
[ "Collection<String> getCities();", "public static ArrayList<City> getCities(){\n return allCities;\n }", "public Vector<City> getCities(){\r\n\t\tif (map.getVerteices()==null){\r\n\t\t\treturn new Vector<City>();\r\n\t\t}\r\n\t\treturn map.getVerteices();\r\n\t}", "public List<City> getUniqueCities(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Write an array of athletes out to a datafile for later retrieval
public static boolean writeAthletesToFile(String path, ArrayList<Athlete> athletes) throws IOException { FileWriter fw = new FileWriter(path); BufferedWriter bw = new BufferedWriter(fw); boolean atLeastOne = false; for (Athlete a : athletes) { bw.write(a.toDataString()); bw.newLine(); atLeastOne = t...
[ "public void writeAthletes(List<Athlete> athletes) {\r\n writeXML(filename, athletes);\r\n }", "private void saveArrayDataToFile() {\n try (PrintWriter out = new PrintWriter(new File(FILE))) {\n\n //loop through array and print each line to csv file\n for (CellPhone item: ph...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This interface represents a simple type, which may be a builtin simple type, or a userdefined simple type.
public interface SimpleType extends SchemaType { /** * Test whether this Simple Type is an atomic type * @return true if this is an atomic type */ boolean isAtomicType(); /** * Test whether this Simple Type is a list type * @return true if this is a list type */ boolean ...
[ "public interface SimpleType extends SchemaType {\n\n /**\n * Test whether this Simple Type is an atomic type\n *\n * @return true if this is an atomic type\n */\n\n @Override\n boolean isAtomicType();\n\n /**\n * Test whether this Simple Type is a list type\n *\n * @return t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructs an XmlAdaptedGroup. This is the noarg constructor that is required by JAXB.
public XmlAdaptedGroup() {}
[ "public Group() {}", "public Grouping() {\n\n\t}", "public Group() {\n\n }", "public Group()\r\n {\r\n endpoints = new ArrayList<>();\r\n name = \"NewGroup\";\r\n }", "public Cab2bGroup() {\r\n super(new Group());\r\n // this.group = Group.Factory.newInstance();\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Finds a concept instance by name. Assumes a single result, will throw an exception if multiple instances discovered.
public <T> T findConceptByName(Class<T> conceptClass, String name) throws Exception { T ret = null; ObjectQuery q = oCon.prepareObjectQuery(findSingleByName); q.setObject("name", name); try { ret = q.evaluate(conceptClass).singleResult(); } catch (NoResultException nre) { ret = null; } return ret; ...
[ "public ConceptInterface findConcept(String conceptName)\n {\n for (int i=0;i<nrConcepts();i++)\n {\n ConceptInterface concept = getConcept(i);\n if (concept.getName().equals(conceptName)) return concept;\n }\n return null;\n }", "public ResolvedInst...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Save Regenerate PrizeCode =============================================================================
@RequestMapping(value = "/regenerateCode", method = RequestMethod.POST, params = "save") public ModelAndView saveRegeneratePrize(@Valid final Prize prize, final BindingResult binding) { ModelAndView result; Raffle raffle; raffle = prize.getRaffle(); try { if (binding.hasErrors()) result = this.create...
[ "public static void writeSaveFile() {\r\n\r\n save.setProperty(\"Width\", \"\" + width);\r\n save.setProperty(\"Height\", \"\" + height);\r\n save.setProperty(\"PlayerX\", \"\" + me.currentPos[0]);\r\n save.setProperty(\"PlayerY\", \"\" + me.currentPos[1]);\r\n save.setProperty(\"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column trade_order.close_time
public void setCloseTime(Date closeTime) { this.closeTime = closeTime; }
[ "public void setCloseTime(Long closeTime) {\n this.closeTime = closeTime;\n }", "public void setCloseTime(Date closeTime) {\n this.closeTime = closeTime;\n }", "public void setCloseTime(org.apache.axis.types.Time closeTime) {\n this.closeTime = closeTime;\n }", "public Builder se...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets up a LoggerHandler using a SimpleFormatter.
public static void setUp() { Handler handler = new LoggerHandler(); handler.setFormatter(new SimpleFormatter()); getInstance().addHandler(handler); }
[ "private void initializeLogger() {\n System.setProperty(\"java.util.logging.SimpleFormatter.format\",\n \"%1$tF %1$tT %4$s %2$s %5$s%6$s%n\");\n }", "private static void setupLogger(int serverId) throws IOException {\n\t\tFileHandler fh = new FileHandler(String.format(\"./logs/Server-%d.l...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the value of the 'field508' field. doc for field508
public java.lang.CharSequence getField508() { return field508; }
[ "public java.lang.CharSequence getField508() {\n return field508;\n }", "public void setField508(java.lang.CharSequence value) {\n this.field508 = value;\n }", "java.lang.String getField1200();", "java.lang.String getField1500();", "java.lang.String getField1460();", "java.lang.String getField...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Deletes a file based on the StoragePolicy of this instance.
private void deleteFileBasedOnStoragePolicy(final String aFormattedFileName) throws FileNotFoundException { switch(this.getStoragePolicy()){ case INTERNALROM: this.mContext.deleteFile(aFormattedFileName); break; case EXTERNAL: final File f = new File(this.EXTERNAL_STORAGE_BASEDIRECTORY + SDCAR...
[ "public synchronized void delete() {\n if (file != null) {\n file.delete();\n }\n \n IdentityManager.removeIdentity(this);\n }", "public void delete() {\n try {\n Files.delete(file.toPath());\n } catch (IOException e) {\n String msg = Str...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
to test the function of processCommand in AuditableBanking
public static boolean testProcessCommand() { int[][] allTransactions = new int[100][]; for (int i = 0; i < 2; i++) { allTransactions[i] = new int[] {1, 1, 1, 1, 1, 1}; } int countMember = 2; int returnMember; int[] firstNumber = new int[] {0, 4}; boolean[] result = new boolean[...
[ "void recordCommandExecution(String commandInputString);", "@Override\n public void processEvent(String command, MySystem system) throws Exception {\n String[] sequenceCommand = command.split(\" \");\n if (sequenceCommand.length == 5) {\n String result = sequenceCommand[4];\n system.visuallyInspe...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__AtomicDomainSpecificEvent__Group_8__1__Impl" $ANTLR start "rule__CompositeDomainSpecificEvent__Group__0" ../org.gemoc.gel.xtext.ui/srcgen/org/gemoc/gel/ui/contentassist/antlr/internal/InternalGEL.g:3009:1: rule__CompositeDomainSpecificEvent__Group__0 : rule__CompositeDomainSpecificEvent__Group__0__Imp...
public final void rule__CompositeDomainSpecificEvent__Group__0() throws RecognitionException { int stackSize = keepStackSize(); try { // ../org.gemoc.gel.xtext.ui/src-gen/org/gemoc/gel/ui/contentassist/antlr/internal/InternalGEL.g:3013:1: ( rule__CompositeDomainSpecificEvent_...
[ "public final void rule__CompositeDomainSpecificEvent__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.gemoc.gel.xtext.ui/src-gen/org/gemoc/gel/ui/contentassist/antlr/internal/InternalGEL.g:3025:1: ( ( () ) )\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
finds the gain of an attribute
static double gain(int[][] set, int attribute, int resultCol) { return entropySet(set, resultCol) - entropyAttributes(set, attribute, resultCol); }
[ "float getInformationGain();", "private double gain(int index, int attributeIndex) {\n\n\t\tdouble e = entropy(index, null);\n\t\tint c = count(index, null);\n\t\tdouble ea = 0;\n\t\tMap<String, String> values = new HashMap<String, String>();\n\t\tAttribute a = m_Trainset.getAttributes().get(attributeIndex);\n\t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the value of the 'field944' field
public java.lang.CharSequence getField944() { return field944; }
[ "public java.lang.CharSequence getField944() {\n return field944;\n }", "java.lang.String getField1063();", "java.lang.String getField1558();", "java.lang.String getField1263();", "java.lang.String getField1058();", "java.lang.String getField1307();", "java.lang.String getField1646();", "java.lang...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns true if this comment is has answer.
@Override public boolean isHasAnswer() { return _comment.isHasAnswer(); }
[ "@Override\n\tpublic boolean getHasAnswer() {\n\t\treturn _comment.getHasAnswer();\n\t}", "Boolean isAnswered();", "public boolean hasQuestion();", "public boolean isAnswerCorrect() {\n\t\treturn isElementPresent(By.xpath(\"//body/div[5]\"));\n\t}", "@Override\n\tpublic void setHasAnswer(boolean hasAnswer) ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates new form AddFrame
public AddFrame() { initComponents(); }
[ "Frame createFrame();", "FRAME createFRAME();", "public addStFrame() {\n initComponents();\n }", "public FrameInsert() {\n initComponents();\n }", "public AddFrame(MainFrame parent) {\n this.parent = parent;\n initComponents();\n }", "public void addChildFrame(JFrame f...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Verifies if a Ability (using the input string) already exists within the HashMap
public boolean check_ab_exist(String ab_name){ if(ab_store.get(ab_name) != null) return true; else return false; }
[ "@Test\n\tvoid isInDictionaryOneWord() {\n\t\tPasswordChecker.addToDict(\"jokes\");\n\t\tPasswordChecker.addToDict(\"clown\");\n \tassertTrue(PasswordChecker.isInDictionary(\"jokes\"));\n \tassertFalse(PasswordChecker.isInDictionary(\"RedNose\"));\n }", "@Test\n\tvoid isGoodPasswordInDict() {\n\t\tPasswo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the extended data.
public ExtendedData getExtendedData() { return extendedData; }
[ "public Properties getExtensionData() {\n return this.extensionData;\n }", "public com.ccic.gwservice.car.fgcpiprecisequote.ExtendInfoDTO[] getExtendInfo() {\r\n return extendInfo;\r\n }", "public Object extendedProperties() {\n return this.extendedProperties;\n }", "public Map<S...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Partitions the supplied collections into two. Objects matching the Predicate are removed from the collection and added to the results Collection. Returns the result collection.
static public <T> List<T> partition(Collection<T> collection, Predicate<? super T> pred) { return Partition.execute(collection.iterator(), pred, new ArrayList<T>()); }
[ "public static <E> Collection<E> filterColl(Iterable<E> coll,\n\t\t\t\t\t Predicate<E> pred,\n\t\t\t\t\t Collection<E> newColl) {\n\tfor(E elem : coll) {\n\t if(pred.check(elem)) {\n\t\tnewColl.add(elem);\n\t }\n\t}\n\treturn newColl;\n }", "public static <T> void retain(Collection<T> coll, P...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method for parsing punctuation marks.
@Override public Component parse(String punctuationMark) { Component component = new Composite(Type.PUNCTUATION_MARK); Matcher matcher; String symbol; Character c; ArrayList<String> symbols = new ArrayList<>(); matcher = pattern.matcher(punctuationMark); while...
[ "String getPunctuation();", "public static void checkPunctuation(List<Token> token) {\r\n\t\tfor (Token tk : token) {\r\n\t\t\t//if (tk.getName().matches(\"[!\\\"#$%&'()*+,-./:;<=>?@\\\\[]^_`\\\\{|\\\\}~]\")) {\r\n\t\t\tif (tk.getName().matches(\"[\\\\W]\")) {\r\n\t\t\t\ttk.getFeatures().setLexicalType(String.val...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get method for struct member 'clump_fac'. Field Documentation Blender Source Code guide curve, same as for particle child effects
public float getClump_fac() throws IOException { if ((__io__pointersize == 8)) { return __io__block.readFloat(__io__address + 108); } else { return __io__block.readFloat(__io__address + 108); } }
[ "String getFactor();", "public float getCFR() {\r\n\t\treturn caseFatalityRate;\r\n\t}", "float getCpMultiplier();", "public float getPdef_cfrict() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readFloat(__io__address + 232);\n\t\t} else {\n\t\t\treturn __io__block.rea...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column Articles.AID
public void setAid(Integer aid) { this.aid = aid; }
[ "void setArticleId(int articleId);", "Authors setAId(int aId);", "public void setArticleId(int value) {\n this.articleId = value;\n }", "private void setAId(int value) {\n \n aId_ = value;\n }", "public void setArticleId(Integer articleId) {\n this.articleId = articleId;\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column xd_contacts.customer_address
public String getCustomerAddress() { return customerAddress; }
[ "String getAddress() {\n\t\treturn customer.getAddress();\n\t}", "public String getCustomerAddress() {\n return customerAddress;\n }", "public static String getCustomerAddress() {\n\t\treturn customerAddress;\n\t}", "public String getCustAddress() \r\n\t{\r\n\t\t\r\n\t\treturn custAddress;\r\n\t\t\r\n\t}"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Navigates from an instance of PubEventsActivity to another of EventDetailActivity, passing the Event object to show under EventDetailActivity.EVENT_MODEL_KEY.
public static Intent fromPubEventsActivityToEventDetailActivity(final PubEventsActivity pubEventsActivity, @NonNull Event event) { Intent i = new Intent(pubEventsActivity, EventDetailActivity.class); i.putExtra(EventDetailActivity.EVEN...
[ "public static Intent fromMainActivityToEventDetailActivity(final MainActivity mainActivity,\n @NonNull Event event) {\n\n Intent i = new Intent(mainActivity, EventDetailActivity.class);\n i.putExtra(EventDetailActivity.EVENT_MODEL_KEY, eve...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Determine the first exception message in the stack trace to display on the scenario overview page.
public String getFirstException() { String exception = getResultListException(before); if (exception != null && !exception.isEmpty()) { return exception; } exception = getStepException(backgroundSteps); if (exception != null && !exception.isEmpty()) { ret...
[ "String getCauseException();", "public String getMessage() {\n\t\tswitch (exceptionType) {\n\t\tcase 0:\n\t\t\treturn \"File not found\";\n\t\tdefault:\n\t\t\treturn \"Unkown error\";\n\t\t}\n}", "public String getMessage() {\n\tif (detail == null) \n\t return super.getMessage();\n\telse\n\t return super....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructor for JMovingFrame class
public JMovingFrame() { // Setting title for JFrame super("JMovingFrame App"); // Initialzing clickCount variable to 0 clickCount = 0; setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); // Sets layout to BorderLayout as defined in the JMovingFrame class setLayout(layout...
[ "public ZooFrame(){\r\n initComponents();\r\n initListeners();\r\n initFrameDisplay();\r\n }", "public LVFrame() {\n initComponents();\n setTitle(\"LV Simulation\");\n\n setSize(320, 300); //sets it to \"this\" without an object name\n setVisible(true);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Informar "S" ou "N", conforme tenha ocorrido ou nao, a marcacao do cancelamento do item no documento auxiliar de venda.
public String getIndCancelamento() { return indCancelamento; }
[ "@Override\n public void cancelMsg() {\n System.out.println(\"Transaction has been cancelled !!\");\n }", "private int dialogoCerrarSesion() {\n\t\t\n\t\t//Mensaje de cerrar sesion\n\t\t\n\t\tJLabel labelDialogoCerrarSesionMensaje = new JLabel(\"¿Está seguro que desea cerrar sesión?\");\n\t\tlabelDia...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Shows the move options for a character who has not yet been placed on the board by highlighting all options in the view.
public void showInitCharOptions(CharacterToken character, Player currPlayer, CharTokenFinder tokenFinder) { int[][] options = charMover.getInitialTileOptions(character, currPlayer, tokenFinder); boardView.highlightTiles(options); }
[ "public void showCharMoveOptions(CharacterToken character, Player currPlayer, CharTokenFinder tokenFinder) {\n\t\tint[][] options = charMover.getTileOptions(character, currPlayer, tokenFinder);\n\t\tboardView.highlightTiles(options);\n\t}", "public void showMoves() {\n list.setCellRenderer(showingCellRende...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the up async thread count.
public void setUpAsyncThreadCount(int upAsyncThreadCount) { this.upAsyncThreadCount = upAsyncThreadCount; }
[ "ThreadCounterRunner() {}", "public void setUpAsyncThreadPoolFactory(ThreadFactory upAsyncThreadFactory) {\n\t\tthis.upAsyncThreadFactory = upAsyncThreadFactory;\n\t}", "protected synchronized void increaseThreadsNumber() {\r\n threadNumber++;\r\n }", "public int asyncTaskCount();", "public void...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the world model.
public WorldModel<? extends Entity> getWorldModel() { return worldModel; }
[ "WorldModel getWorldmodel();", "public static World getWorld() {\n\t\treturn world;\n\t}", "public GameData getWorld() {\r\n return world;\r\n }", "public World getWorld() {\n\t\treturn world;\n\t}", "public World getWorld() {\n return location.getWorld();\n }", "public World getWorld()\r\n\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the smallest item in the set; Throws a IntegerSetException if the set is empty
public void smallest() throws IntegerSetException{ if(set.isEmpty()) { throw new IntegerSetException("This list is empty so there is no smallest integer."); } else { ArrayList<Integer> sortedList = new ArrayList<Integer>(set); Collections.sort(sortedList); System.out.println(sorte...
[ "public int smallest() throws IntegerSetException {\n \tint smallestItem = Collections.min(set);\n \tif (set.isEmpty()) {\n \t\tIntegerSetException();\n \t\tthrow new IntegerSetException(\"Error! This is an empty set.\");\n \t}\n \treturn smallestItem;\n }", "public static void smallestTest()...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Project : moka Package : jmnet.moka.core.tps.mvc.poll.mapper ClassName : TrendpollStatMapper Created : 20210114 ince
public interface TrendpollVoteMapper extends BaseMapper<TrendpollVoteVO, TrendpollStatSearchDTO> { /** * 통계 총 건수 조회 * * @param pollSeq 검색 조건 * @return 검색 결과 */ List<TrendpollVoteVO> findAllByPollSeq(String pollSeq); }
[ "@Mapper(componentModel = \"spring\", uses = {FinalNiazsanjiReportMapper.class})\npublic interface PollMapper extends EntityMapper<PollDTO, Poll> {\n\n @Mapping(source = \"finalNiazsanjiReport.id\", target = \"finalNiazsanjiReportId\")\n @Mapping(source = \"finalNiazsanjiReport.description\", target = \"final...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Add event without random coefficient generation.
public void addEventWithoutCoefGeneration(String name , LocalDate date , LocalTime time , int rider1Id , int rider2Id , int rider3Id , int rider4Id , double R1P1 , double R1P2 , double R1P3 , double R1P4 , double R2P1 , double R2P2 , double R2P3 , double R2P4 , ...
[ "com.walgreens.rxit.ch.cda.EIVLEvent addNewEvent();", "private void generateEvents()\n {\n // create events\n if (Math.random() * 500 > 499.9)\n {\n socialengine.events.Event soundEvent = new SoundEvent(\n new Point2D.Double((double) (Math.random() * Environment.getMa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by Apache iBATIS ibator. This method returns the value of the database column YLJZN.CURRECT_CHRONIC.PAPERID
public String getPaperid() { return paperid; }
[ "@Override\n\tpublic long getPaperId() {\n\t\treturn _paper.getPaperId();\n\t}", "public Integer getPaperid() {\n return paperid;\n }", "public String getPaper_id() {\n return paper_id;\n }", "public Long getPaperid() {\n return paperid;\n }", "public Number getPocId() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Disables monitoring. If monitoring is disabled, the MonitoringController simply pauses. Furthermore, probes should stop collecting new data and monitoring writers stop should stop writing existing data.
boolean disableMonitoring();
[ "private void disable() {\n logger.warning(\"disabling myself\");\n disabled = true;\n statusManager = null;\n pollInterval = LONG_DELAY; // Check this often on whether to terminate\n }", "@Method\n public native void disableNetworkMonitoring ();", "public boolean isMonitoringD...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the last binghai pingfen in the ordered set where dalei = &63; and vmin < &63; and vmax ≥ &63; and xiangmu = &63; and dengji_min ≤ &63; and dengji_max ≥ &63;.
public static com.lycenway.chr.backbone.model.BinghaiPingfen findBydalei_xiangmu_Last( java.lang.String dalei, double vmin, double vmax, java.lang.String xiangmu, double dengji_min, double dengji_max, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay....
[ "public static com.lycenway.chr.backbone.model.BinghaiPingfen fetchBydalei_xiangmu_Last(\n java.lang.String dalei, double vmin, double vmax,\n java.lang.String xiangmu, double dengji_min, double dengji_max,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws co...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the testAnswer value for this ReferenceNumberResponse.
public java.lang.String getTestAnswer() { return testAnswer; }
[ "public BigDecimal getAnswerNum() {\n return answerNum;\n }", "@JsonProperty(\"answer\")\n public String getAnswer() {\n return answer;\n }", "Reference getAnswerReference();", "public java.lang.String getAnswer()\n {\n return answer;\n }", "public String getAnswerId() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the exception that happened when sending the key, or null if there was no exception
public KeyException getExc() { return exc; }
[ "Exception getException();", "@Override\n protected String handleGetExceptionKey()\n {\n\n final String type = this.getExceptionType();\n final int dotIndex = type.lastIndexOf(\".\");\n\n // the dot may not be the last character\n return StringUtilsHelper.toResourceMessageKey((do...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the result of interpreting the object as an instance of 'String To String Map'. This implementation returns null; returning a nonnull result will terminate the switch.
public T caseStringToStringMap(Map.Entry<String, String> object) { return null; }
[ "public T caseMapType(MapType object)\n {\n return null;\n }", "public T caseMap(Map object) {\n\t\treturn null;\n\t}", "public T casePMap(PMap object) {\n\t\treturn null;\n\t}", "public T caseStr(Str object)\n {\n return null;\n }", "public String convert(String originalTag){\n return map....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
select a room in a given list
@Override public List<Cell> selectRoom(List<List<Cell>> selectable) { JSONObject message = new JSONObject(); message.put("function", "select"); message.put("type", "room"); JSONArray jArray = new JSONArray(); selectable.forEach(r -> { JSONArray room = createJSONCoordinateList...
[ "public void selectroom() throws InterruptedException\r\n\t{\r\n\t\tExplicitWait(Select_Room);\r\n\t\t//SeleniumRepo.waitForElementPresent(Select_Room);\r\n\r\n\t\tif (Select_Room.isDisplayed()) \r\n\t\t{\r\n\t\t\tSelect_Room.click();\r\n\t\t\tThread.sleep(3000);\r\n\t\t\tSystem.out.println(\"Clicked on select room...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the CADNUM value for this ResponseObject.
public void setCADNUM(java.lang.String CADNUM) { this.CADNUM = CADNUM; }
[ "public void setCadNumber(String cadNumber) {\n this.cadNumber = cadNumber;\n }", "public java.lang.String getCADNUM() {\n return CADNUM;\n }", "public void setCassNumber(int value) {\r\n this.cassNumber = value;\r\n }", "@Override\n public void setNumericValue(long numericVal...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the master signed image of this temp no tice ship message.
@Override public void setMasterSignedImage(int masterSignedImage) { _tempNoTiceShipMessage.setMasterSignedImage(masterSignedImage); }
[ "public void setMasterSignedImage(int masterSignedImage) {\n\t\t_tempNoTiceShipMessage.setMasterSignedImage(masterSignedImage);\n\t}", "@Override\n\tpublic int getMasterSignedImage() {\n\t\treturn _tempNoTiceShipMessage.getMasterSignedImage();\n\t}", "public void setMasterSignedImage(int masterSignedImage);", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
System.out.println("Setting field "+f+" to "+val);
public void setField( Field f, int val) { grid[f.x][f.y]=val; // System.out.println("pN before: "+pN); pN.get(f).clear(); empty.remove(f); Set<Field> ch = new HashSet<>(); ch.addAll(getBox(f)); ch.addAll(getColumn(f)); ch.addAll(getRow(f)); for(Fie...
[ "@Test\r\n public void testSetField() {\r\n System.out.println(\"setField\");\r\n String f = \"f1\";\r\n String v = \"v1\";\r\n instance.setField(f, v);\r\n }", "public void setField(FIELD theField);", "@SuppressWarnings(\"UnusedReturnValue\")\n @Override\n public T setFi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
List of keyword forecasts. repeated .google.ads.googleads.v13.services.KeywordPlanKeywordForecast keyword_forecasts = 3;
public Builder addKeywordForecasts( int index, com.google.ads.googleads.v13.services.KeywordPlanKeywordForecast value) { if (keywordForecastsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureKeywordForecastsIsMutable(); keywordFore...
[ "@java.lang.Override\n public java.util.List<com.google.ads.googleads.v13.services.KeywordPlanKeywordForecast> getKeywordForecastsList() {\n return keywordForecasts_;\n }", "@java.lang.Override\n public java.util.List<? extends com.google.ads.googleads.v13.services.KeywordPlanKeywordForecastOrBuilder> \n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Selects the player with the big blind If sBlindNum is the last player, sBlindNum = 0 Otherwise bBlindNum is sBlindNum + 1
private void selectBigBlind() { if (sBlindNum == (players.length - 1)){ bBlindNum = 0; } else{ bBlindNum = sBlindNum + 1; } }
[ "private void selectSmallBlind() {\n\t\tif (dealerNum == (players.length - 1)){\n\t\t\tsBlindNum = 0;\n\t\t}\n\t\telse{\n\t\t\tsBlindNum = dealerNum + 1;\n }\n\t}", "private void selectDealer() {\n\t\t//if there are only two players, there is only a big blind and small blind\n\t\tif (players.length != 2){\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method to set the title of the Dialog
void setDialogTitle(String title);
[ "public void setTitle(String title) {\n setDialogTitle(title);\n }", "public void setDialogTitle(String title){\n try {\n setTitleVisable(true);\n this.title.setText(title);\n }catch (NullPointerException e){\n e.printStackTrace();\n }\n }", "pu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test of dateToString method, of class DateTimeUtilities.
@Test public void testDateToString_LocalDate() { String test = "11/13/2017"; String form = dateToString(date); assertEquals(test,form); }
[ "public void testFormatDateToString()\n {\n assertEquals(testCalendar.formatDateToString(1, 1, 2010), \"01012010\");\n assertEquals(testCalendar.formatDateToString(12, 11, 2010), \"12112010\");\n }", "@Test\r\n public void testDateToString_LocalDate_String() {\r\n String test = \"11!...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Overloading method testMethodOne with 4 input parameters
public void testMethodOne(int a, int b, int c, int d) { int e = a * b * c * d; System.out.println("Base Class testMethodOne result" + " " + e); }
[ "public void testOneOrMoreParameters() {\n int nrParameters = methodToTest.getParameterTypes().length;\n Class[] params = methodToTest.getParameterTypes();\n Object[] foo = new Object[nrParameters];\n \n // set up all parameters. Some methods are invoked with\n // primitive...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Service Interface for managing Entreprise.
public interface EntrepriseService { /** * Save a entreprise. * * @param entrepriseDTO the entity to save * @return the persisted entity */ EntrepriseDTO save(EntrepriseDTO entrepriseDTO); /** * Get all the entreprises. * * @return the list of entities */ L...
[ "public interface DestinohorarioService { \n\n\t/**\n\t * Loads an entity from the database using its Primary Key\n\t * @param id\n\t * @return entity\n\t */\n\tDestinohorario findById( Long id ) ;\n\n\t/**\n\t * Loads all entities.\n\t * @return all entities\n\t */\n\tList<Destinohorario> findAll();\n\n\t/**\n\t ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Getter for game model
public GameModel getGame() { return game; }
[ "public GameModel getGameModel() {\n return gameModel;\n }", "public GameModelCreation getGameModel() {\n\t\treturn gameModel;\n\t}", "protected Game getGame() {\n return game;\n }", "public GameInfo getGameModel(String version) throws Exception;", "public GameState getGameStateModel() {...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Removes the elements whose index is between from (inclusive) and to(exclusive). from must be less than to with one exception: if from is equal to to then the method has no effect.
public final void removeRange (final int from, final int to) { if ((from < 0) || (from >= size)) throw new IllegalArgumentException ("arrayindex-from " + from + " out of bounds for removeRange operation"); if ((to < 0) || (to > size)) throw ne...
[ "public void removeRange(int fromPos, int toPos) {\n\t\tint size = this.length();\n\t\tfromPos = (fromPos < 0 && toPos != 0) ? 0 : fromPos;\n\t\ttoPos = (toPos > size && fromPos != size) ? (size - 1) : toPos;\n\n\t\t// takes care of illegal constraints\n\t\tif (!(fromPos > toPos) && !(fromPos < 0) && !(toPos > size...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get convolution border mode from Keras layer configuration.
public static ConvolutionMode getConvolutionModeFromConfig(Map<String, Object> layerConfig, KerasLayerConfiguration conf) throws InvalidKerasConfigurationException, UnsupportedKerasConfigurationException { Map<String, Object> innerConfig...
[ "public static int[] getPaddingFromBorderModeConfig(Map<String, Object> layerConfig, int dimension,\n KerasLayerConfiguration conf, int kerasMajorVersion)\n throws InvalidKerasConfigurationException, UnsupportedKerasConfigurationException {\n M...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Construct a BorderFilter which does nothing.
public BorderFilter() { }
[ "@Override\n protected ChainedEventFilter createEmptyFilter()\n {\n return new OrEventFilter();\n }", "public static ArticleFilter none() {\n return new ArticleFilter() {\n @Override public boolean testArticle(PubmedArticle article) {\n return false;\n }...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Original signature : char urg_sensor_firmware_version(urg_t) native declaration : urg_sensor.h:534
Pointer urg_sensor_firmware_version(urg_t urg);
[ "protected abstract String getFirmwareVersion()throws CardTerminalException;", "Pointer urg_sensor_status(urg_t urg);", "Pointer urg_sensor_product_type(urg_t urg);", "public String getFirmware();", "Pointer urg_sensor_serial_id(urg_t urg);", "Pointer urg_sensor_state(urg_t urg);", "@Override\n publi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
get all persons belong to family of given name.
public List<Person> getFamilyMembers(String name) { Map<String, Object> parameters = new HashMap<>(); parameters.put("name", name); String cypher = GraphQueries.GET_PERSONS_BY_FAMILY_NAME; Result result = session.query(cypher, parameters); Iterator<Map<String, Object>> it = result.iterator(); logger.info...
[ "public String getFamilyPerson(String familyId);", "public List<Person> getByName(String name) {\r\n List<Person> found = new ArrayList<Person>();\r\n for (Person c : getRange(0, getCount())) {\r\n if (c.getName().equals(name)) {\r\n found.add(c);\r\n }\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
loads a specific submission containing the comments.
public void loadComments(String homeworkId) { checkViewAttached(); RxUtil.unsubscribe(mSubscription); getMvpView().showSubmission(mDataManager.getSubmissionForId(homeworkId), mDataManager.getCurrentUserId()); }
[ "Submission getSubmission(UserInfo userInfo, String submissionId);", "public Submission loadSubmission(long submissionId) throws UploadPersistenceException {\n LOGGER.log(Level.INFO, new LogMessage(\"Submission\", submissionId, null,\n \"Load Submission. Delegate to loadSubmissions(long[]).\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the value to newFreightCostCreatedBy field.
public void setNewFreightCostCreatedBy(String newFreightCostCreatedBy) { this.newFreightCostCreatedBy = newFreightCostCreatedBy; }
[ "public String getNewFreightCostCreatedBy() {\r\n return newFreightCostCreatedBy;\r\n }", "public void setNewFreightCost(String newFreightCost) {\r\n this.newFreightCost = newFreightCost;\r\n }", "public void setNewPricingAdjustmentCreatedBy(String newPricingAdjustmentCreatedBy) {\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
ExtendFields repeated .com.ctrip.flight.intl.agg.flighttypes.v3.KeyValuePairType ExtendFields = 15;
public com.ctrip.flight.intl.agg.flighttypes.v3.KeyValuePairType.Builder addExtendFieldsBuilder( int index) { return getExtendFieldsFieldBuilder().addBuilder( index, com.ctrip.flight.intl.agg.flighttypes.v3.KeyValuePairType.getDefaultInstance()); }
[ "public com.ctrip.flight.intl.agg.flighttypes.v3.KeyValuePairType.Builder addExtendFieldsBuilder() {\n return getExtendFieldsFieldBuilder().addBuilder(\n com.ctrip.flight.intl.agg.flighttypes.v3.KeyValuePairType.getDefaultInstance());\n }", "public java.util.List<? extends com.ctrip.flight.intl.a...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Emit the opening headers for one java class/interface file.
public static void emitJavaHeaders( PrintWriter w, String packageName, String className, String gluegenRuntimePackage, boolean isClassNotInterface, String[] imports, String[] accessModifiers, String[] interfaces, String classExtended, EmissionCallback classDocComment) throws IOEx...
[ "private void dumpHeader() throws IOException {\n\t\t\n\t\t// Writing of the Header to the Output File of Compiler to be generated\n\t\t\n\t\t// The Class and Super Type of the Compiler Parser\n\t\tthis.fileOutputStream.write(String.format(\".class public CompilerParser\\n\").getBytes());\n\t\tthis.fileOutputStream...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method for intializing the VM and create region with LIFO attached
private static void initializeVM() throws Exception { Properties props = new Properties(); props.setProperty(MCAST_PORT, "0"); props.setProperty(LOCATORS, ""); props.setProperty(LOG_LEVEL, "info"); // to keep diskPerf logs smaller distributedSystem = DistributedSystem.connect(props); cache = Cac...
[ "VM createVM();", "private void startDynamicRegionFactory(Attributes atts) {\n String disablePersist = atts.getValue(DISABLE_PERSIST_BACKUP);\n if (disablePersist == null) {\n stack.push(\"false\");\n } else {\n stack.push(disablePersist);\n }\n String disableRegisterInterest = atts.getVa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Handles an embedded CSS node.
private void handleEmbeddedCss(final Node node) throws IOException { final boolean scoped = isScoped(node); int removed = 0; for (final Node childNode : node.childNodes()) { if (childNode instanceof DataNode) { final DataNode dataNode = (DataNode) childNode; ...
[ "private boolean isEmbeddedCss(final Node node) {\n return \"style\".equalsIgnoreCase(node.nodeName())\n && TEXT_CSS.equalsIgnoreCase(node.attr(\"type\"));\n }", "private void handleExternalCss(final Node node) throws IOException {\n final String replacementHref = this.handler.h...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adds a new peasant enemy to the list of peasants in the GameView. Checks if the player has health before adding a new peasant to the list.
public void addPeasant(List<Peasant> peasant, HealthBar healthBar) { Random random = new Random(); float temp = random.nextFloat(); gameView.systemTime = System.currentTimeMillis(); if (peasant.isEmpty()) { peasant.add(createPeasant(R.drawable.test1)); } else if (temp...
[ "public void addEnemy(Enemy enemy) {\n enemies.add(enemy);\n }", "public void drawPeasant(List<Peasant> peasants, HealthBar healthBar, Canvas canvas) {\n Iterator<Peasant> it = peasants.iterator();\n while (it.hasNext()) {\n Peasant peasant = it.next();\n if (peasant....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the specular constant, or ks
void setKs(double ks);
[ "public abstract void setKr(double kr);", "@Override\n\tpublic final void setKr(double kr) {\n\t\tsetParameters(tn, tv, kr, tp);\n\t}", "public MathEval setConstant(String nam, Double val) {\r\n if(!Character.isLetter(nam.charAt(0))) { throw new IllegalArgumentException(\"Constant names must start with a let...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
set false the blocked flag
public void Unlock(){ this.blocked = false; }
[ "public void setBlocked() {\n this.blocked = true;\n }", "private void setBlocked(boolean value) {\n\n blocked_ = value;\n }", "public void block() {\n this.blocked = true;\n }", "public void unblocked()\r\n\t{\r\n\t\tisBlocked = false;\r\n\t}", "public void setUnblockable(bo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Generates contexts for testing purposes. Has the added side effect of building input and expected output data files for Log master testing.
private void generateContexts() { System.out.println("Creating additional test contexts ..."); String fileName; // === random contexts === fileName = "Context_" + model.getActorInterface().getAxiModel().name + ".dat"; writeRandomContext(model.getActorInterface().getContext(), model.getContextMemorySize(), f...
[ "private Context createTestContext() {\n InMemoryReportBuilder reportBuilder = new InMemoryReportBuilder();\n Context context = new Context();\n context.setProjection(Projection.CODE_CRS84);\n File validationDirectory = new File(folder.getRoot(), \"validation\");\n validationDirec...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Display given text as error text.
public final void displayError(final String text) { display(text, Type.ERROR); }
[ "void showError(String message);", "void showErrorDialog(String text);", "public void displayError(String msg) {\n //To change body of created methods use File | Settings | File Templates.\n textFieldError.setText(msg);\n }", "@Override\n public String getErrorText() {\n return errorLabel...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checks if a user is following another user
boolean isFollowing(User a, User b);
[ "boolean isFollowedBy(User a, User b);", "public static boolean isFollowing(String username, String otherUser) {\n return UserFactory.isFollowing(username, otherUser);\n }", "public boolean isFollower(String userB) {\r\n return isFollower(userB, name);\r\n }", "public boolean isFollowedByLocalUs...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sends a IRC WHO command, sending IRC_RESPONSE_CODE events for the different parts of the WHO response.
public void who(String name) { sendRaw("WHO :" + name); }
[ "public void who(String channel){\n\t\t// Make a new ByteBuffer for easily concatenation of byte arrays\n\t\tByteBuffer byteBuffer = ByteBuffer.allocate(36);\nbyteBuffer.order(ByteOrder.LITTLE_ENDIAN);\t\t\t\n\tbyteBuffer.putInt(0,WHO); // adds the request bytes\n\t\tbyteBuffer.position(4);\n\t\tbyte[] channelName...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
RESTful show all transactions
@GetMapping("/rest") public @ResponseBody List<Transaction> transactionsListRest() { UserDetails user = (UserDetails) SecurityContextHolder.getContext() .getAuthentication().getPrincipal(); String username = user.getUsername(); User currentUser = userRepo.findByUsername(username); return (List<Transa...
[ "@RequestMapping(value = \"/card-transactions\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n @Transactional(readOnly = true)\n public List<CardTransactionDTO> getAllCardTransactions() {\n log.debug(\"REST request to get all CardTransactions\"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return whether the specified type is a Kotlin class or not.
public static boolean isKotlinClass(Class<?> type) { Assert.notNull(type, "Type must not be null"); return isKotlinPresent() && type.getDeclaredAnnotation(Metadata.class) != null; }
[ "boolean isClass();", "public boolean containsClass(Class type) {\n return (type == null) ? false : containsClass(type.getName());\n }", "protected boolean isKotlin( )\n {\n return _bKotlin;\n }", "void isInstanceOf(Class type);", "default boolean isClass() {\n return false;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test case number: 18 / 1 covered goal: 1 nu.staldal.xtree.SequentialTreeBuilder.processingInstruction(Ljava/lang/String;Ljava/lang/String;)V: I4 Branch 15 IFLE L305 true
@Test public void test18() throws Throwable { SequentialTreeBuilder sequentialTreeBuilder0 = new SequentialTreeBuilder((ElementHandler) null); sequentialTreeBuilder0.processingInstruction("", ""); }
[ "@Converted(kind = Converted.Kind.MANUAL_COMPILATION,\n source = \"${LLVM_SRC}/llvm/lib/IR/Function.cpp\", line = 916,\n FQN=\"llvm::Intrinsic::isLeaf\", NM=\"_ZN4llvm9Intrinsic6isLeafENS0_2IDE\",\n cmd=\"jclank.sh -java-options=${SPUTNIK}/modules/org.llvm.ir/llvmToClangType ${LLVM_SRC}/llvm/lib/IR/Function.cpp -nm...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns true is current list is done task list, false if current list is undone task list
Boolean isCurrentListDoneList();
[ "@Override\n\tpublic boolean done() {\n\t\tfor(Task t : details.getPendingTasks()){\n\t\t\tif(!t.isComplete())\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public boolean deleteTaskList() {\n\t\t// cannot delete \"main\" or \"completed\" task lists\n\t\tif (m_selectedList == m_mainList || m_selectedLis...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the permission value from its string representation
public static Permission valueFrom(String string) { for (Permission p : Permission.values()) { if (p.toString().equals(string)) { return p; } } return UNAUTHENTICATED; }
[ "public static Permission parsePermission(String str)\n {\n Permission permission = null;\n \n if (str.equals(PERMISSION_FULL_CONTROL.toString()))\n {\n permission = PERMISSION_FULL_CONTROL;\n }\n else if (str.equals(PERMISSION_READ.toString()))\n {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the attribute value for the calculated attribute ApprovedFlag.
public String getApprovedFlag() { return (String) getAttributeInternal(APPROVEDFLAG); }
[ "public String getApprovedflag() {\n return (String) getAttributeInternal(APPROVEDFLAG);\n }", "public java.lang.String getPOApprovedFlag() {\n return POApprovedFlag;\n }", "public String getIsApproved() {\n return (String) getAttributeInternal(ISAPPROVED);\n }", "int getApproveS...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Calculates a binomial distribution probability. Trials must be independent and have a fixed probability for each one. P(x) = n!/(nx)!x! p^x (1p)^(nx) (Note that for n = 0, x = 0, the probability will always be 1.00.) Requirements: probability is a valid probability; trials successes
public static double binomialDistribution(double probability, long trials, long successes) throws StatisticException { if (successes > trials) { throw new StatisticException("The number of successes exceeds the number of trials."); } Probability.validateProbability(probability); return Statistic.com...
[ "private static long binomial(int n, int r) {\n long prod = 1;\n for (int i = 0; i < r; i++) {\n prod = prod * (n - i);\n }\n return prod / factorial(r);\n }", "protected double calculateCumulativeBinominalProbability() throws Exception {\r\n BinomialDistribution b = new BinomialDistribut...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Use Block.newBuilder() to construct.
private Block(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); }
[ "Block createBlock();", "private Blocks(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private BlockProto(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private BlockBody(com.google.protobuf.GeneratedMessageV3.Builde...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the jplanFeeVos value for this JPlanMainVo.
public com.sinosoft.sff.interf.JplanFeeVo[] getJplanFeeVos() { return jplanFeeVos; }
[ "public void setJplanFeeVos(com.sinosoft.sff.interf.JplanFeeVo[] jplanFeeVos) {\n this.jplanFeeVos = jplanFeeVos;\n }", "public BigDecimal getFee() {\r\n return fee;\r\n }", "public java.math.BigDecimal getFees() {\n return mFees;\n }", "public BigDecimal getFee() {\n return f...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test JXPathContext.createPath() with various arguments
public void testCreatePath(){ // Create a DOM element assertXPathCreatePath(context, "/vendor[1]/location[3]", "", "/vendor[1]/location[3]"); // Create a DOM element with contents assertXPathCreatePath(context, ...
[ "Object createXPath( String expression ) throws Exception;", "public void testCreatePathAndSetValue(){\n // Create a XML element\n assertXPathCreatePathAndSetValue(context, \n \"vendor/location[3]\", \n \"\",\n \"/vendor[1]/location[3]\");\n \n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return a string representation of flight information with flight number, departure date, departure time arrival date and time destination origin, and cost.
public String getFlightInfo(Flight iti) { String s = ""; s = iti.getFlightNum() + iti.getDepDate() + " " + iti.getDepTime() + iti.getArrDate() + " " + iti.getArrTime() + iti.getAirline() + iti.getOrigin() + iti.getDest() + iti.getCost(); return s; }
[ "public String displayFlight() {\n\t\treturn \"Date: \" + pDepartureDateAndTime + \"~\" + pArrivalDateAndTime\n\t\t\t\t+ \"\\n\" + \"Flight Number: \" + flightNumber + \" Seats: \"\n\t\t\t\t+ numberOfSeats + \"\\n\" + \"Airline: \" + airline + \", \" + \"$\"\n\t\t\t\t+ price;\n\t}", "@Override\n public String ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
void listRequestCompleted(ArrayList,int) AsyncTask API request for movies has completed; called by TMDBMoviesButler. Convert MovieModel objects to MovieItem objects and show the new movie list. Finally save the new list to the local buffer and to the database and update the refresh date of the movie list.
public void listRequestCompleted(ArrayList<MovieModel> models, int movieType){ //convert MovieModels to MovieItems ArrayList<MovieItem> movies = mMovieStaff.prepareMovies(models); //show the new list of movie items showMovieList(movies, movieType); //save the movie list to the ...
[ "void onDownloadComplete(Movie moviesList);", "private ArrayList<MovieItem> requestMovieList(int movieType){\n\n //create array list buffer\n ArrayList<MovieItem> movies = new ArrayList<>();\n\n //check if the movie list type needs to be refreshed\n if(mRefreshStaff.needToRefresh(movie...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Called when a connection with this endpoint has failed. Override this method to act on the event.
protected void onConnectionFailed(Endpoint endpoint) {}
[ "private void connectionFailed() {\n setState(STATE_NONE);\n }", "private void connectionFailed() {\n\t\t// send a failure message back to the activity\n\t\tMessage msg = mHandler.obtainMessage(Constants.MESSAGE_FAILURE);\n\t\tBundle bundle = new Bundle();\n\t\tbundle.putString(Constants.FAILURE, \"Unab...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get a list of all the learning materials in the database
public List<LearningMaterial> getAllLearningMaterials() { ArrayList<LearningMaterial> list = new ArrayList<>(); Iterable<LearningMaterial> iter = repo.findAll(); iter.forEach(list::add); return list; }
[ "public ArrayList<BEMaterial> readAllMaterials() {\r\n if (allMaterials == null) {\r\n try {\r\n allMaterials = dalRead.readMaterial();\r\n } catch (SQLException ex) {\r\n BLLError.getInstance().readMaterialError();\r\n }\r\n }\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get 2nd Phone. Identifies an alternate telephone number.
public String getPhone2() { return (String) get_Value("Phone2"); }
[ "public TelephoneNumber getPhone2() {\n\t\treturn phone2;\n\t}", "public java.lang.Object getAlternatePhone2() {\n return alternatePhone2;\n }", "public String getPhone2() {\r\n return phone2;\r\n }", "public String getPhoneNumber2() {\n if (mPhoneNumber2 == null) {\n mPh...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Calls the google maps api to predict the places
private AutocompletePrediction[] predictPlaces(String stringToPredictFrom) { AutocompletePrediction[] results = null; if (!stringToPredictFrom.isEmpty()) // If the user has entered an address { System.out.println("[INFO] <JVALIDATED_LOCATION_ENTRY> Getting results"); try { ...
[ "public Place queryGoogle(String place_name) {\n place_name += \" France\";\n place_name = place_name.replace(\" \", \"%20\");\n String url_string = \"https://maps.googleapis.com/maps/api/place/textsearch/json?query=\" + place_name + \"&key=\" + api_key;\n\n try{\n final String USER_AGENT = \"Mozil...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
GIVEN a XRPClient which will fail to submit a transaction.
@Test public void submitTransactionWithFailedSubmit() throws IOException, XrpException { Result<SubmitTransactionResponse, Throwable> submitResult = Result.error(GENERIC_ERROR); DefaultXrpClient client = getClient( Result.ok(makeGetAccountInfoResponse(DROPS_OF_XRP_IN_ACCOUNT)), Result.ok(makeT...
[ "@Test\n public void submitTransactionWithFailedFee() throws IOException, XrpException {\n Result<GetFeeResponse, Throwable> feeResult = Result.error(GENERIC_ERROR);\n DefaultXrpClient client = getClient(\n Result.ok(makeGetAccountInfoResponse(DROPS_OF_XRP_IN_ACCOUNT)),\n Result.ok(makeTransact...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test of getXincoCoreLanguages method, of class XincoCoreLanguageServer.
public void testGetXincoCoreLanguages() { assertTrue(getXincoCoreLanguages().size() > 0); }
[ "public void testIsLanguageUsed() {\r\n try {\r\n assertFalse(isLanguageUsed(new XincoCoreLanguageServer(3)));\r\n assertTrue(isLanguageUsed(new XincoCoreLanguageServer(2)));\r\n } catch (XincoException ex) {\r\n getLogger(XincoCoreLanguageServerTest.class.getSimpleNam...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "ruleXForLoopExpression" $ANTLR start "entryRuleXBasicForLoopExpression" ../org.xtext.scripting/srcgen/org/xtext/scripting/parser/antlr/internal/InternalScripting.g:3220:1: entryRuleXBasicForLoopExpression returns [EObject current=null] : iv_ruleXBasicForLoopExpression= ruleXBasicForLoopExpression EOF ;
public final EObject entryRuleXBasicForLoopExpression() throws RecognitionException { EObject current = null; EObject iv_ruleXBasicForLoopExpression = null; try { // ../org.xtext.scripting/src-gen/org/xtext/scripting/parser/antlr/internal/InternalScripting.g:3221:2: (iv_ruleXBasic...
[ "public final EObject entryRuleXBasicForLoopExpression() throws RecognitionException {\n EObject current = null;\n\n EObject iv_ruleXBasicForLoopExpression = null;\n\n\n \n \t\tHiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens(\"RULE_SL_COMMENT\", \"RULE_WS\");...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a map of attribute names and values to be used in the statement to update the given systemmetadata table
protected Map<String, Object> extractSystemMetadataAttrs(SystemMetadata systemMetadata, String tableName) { Map<String, Object> attrMap = new HashMap<String, Object>(); // get seriesId Identifier seriesId = systemMetadata.getSeriesId(); String seriesIdStr = seriesId...
[ "Map<String, String> getTableAttributes(String table)\n throws UnknownTableException;", "public Map<String, String> getAttributes();", "java.util.Map<java.lang.String, java.lang.String> getAttributesMap();", "void setTableAttributes(String table, Map<String, String> attributes, Audit audit)\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the buildAttachments attribute of the Message object
public void setBuildAttachments(String tmp) { this.buildAttachments = Boolean.getBoolean(tmp); }
[ "public void setBuildAttachments(boolean tmp) {\n this.buildAttachments = tmp;\n }", "public void setMessageAttachments(MessageAttachmentList attachments) {\n this.messageAttachments = attachments;\n }", "public boolean getBuildAttachments() {\n return buildAttachments;\n }", "public MailMessage s...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Contexts: ImportSpec returns ImportSpec Constraint: ip=ImportPath
protected void sequence_ImportSpec(ISerializationContext context, ImportSpec semanticObject) { if (errorAcceptor != null) { if (transientValues.isValueTransient(semanticObject, GoPackage.Literals.IMPORT_SPEC__IP) == ValueTransient.YES) errorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semant...
[ "ImportConfig createImportConfig();", "Import getImport();", "ImportsOperations getImportsOperations();", "ImportStrategy getImportStrategy(ImportType type, String fileName);", "public final void rule__ImportSpec__IpAssignment_1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSiz...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Initializes a new instance of BasicException with the specified explanation.
protected BasicException(final String explanation) { super(explanation); }
[ "protected BasicException(final String explanation, final Throwable problem) {\n super(explanation, problem);\n }", "protected BasicException() {\n }", "public BasicException(@Nullable final Throwable problem) {\n initCause(problem);\n }", "public ModelException(int reason, String diagn...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column ei_net_order.eino_esco_second_name
public void setEinoEscoSecondName(String einoEscoSecondName) { this.einoEscoSecondName = einoEscoSecondName; }
[ "public void setEinoEscoSecondCode(String einoEscoSecondCode) {\r\n this.einoEscoSecondCode = einoEscoSecondCode;\r\n }", "public String getEinoEscoSecondName() {\r\n return einoEscoSecondName;\r\n }", "public void setSECOND_NAME_O(String SECOND_NAME_O)\r\n {\r\n\tthis.SECOND_NAME_O = SEC...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Spring Data JPA repository for the CargoEmployee entity.
@SuppressWarnings("unused") @Repository public interface CargoEmployeeRepositorySH extends JpaRepository<CargoEmployee,Long> { @Query(value = "SELECT * FROM cargo_employee ce " + "LEFT JOIN cargo_agency ca ON ca.id = ce.cargo_agency_id " + "LEFT JOIN company c ON c.id = ca.company_id " + "W...
[ "interface EmployeeRepository extends JpaRepository <Employee, Long> {\n\n}", "@Repository\npublic interface EmployeePositionRepository extends JpaRepository<EmployeePosition, Integer> {\n\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface EmployeeDetailsRepository extends JpaRepository<Employee...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a new object of class 'Module'.
Module createModule();
[ "Modules createModules();", "public RubyModule getOrCreateModule(String name) {\n IRubyObject module = objectClass.getConstantAt(name);\n if (module == null) {\n module = defineModule(name);\n } else if (getSafeLevel() >= 4) {\n throw newSecurityError(\"Extending mo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
get the industry size.
public String getIndustrySize() { return industrySize; }
[ "public String getCommoditySize() {\n return commoditySize;\n }", "public String getProdSize() {\n return (String)getAttributeInternal(PRODSIZE);\n }", "public FoodSize getSize() {\n return this._size;\n }", "public String getBookSize() {\n return (String)getAttributeInter...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }