query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
MatchBean match = (MatchBean) m_itemsList.get(position); Intent intent = new Intent(getActivity(), AddEventInfoActivity.class); intent.putExtra(KEY_BEANDATA, match); intent.putExtra(MatchesListFragment.KEY_EVENT_OR_MATCH, false); startActivityForResult(intent, CODE_BEAN_CHANGE);
@Override public void onListItemClick(ListView l, View v, int position, long id) { MatchBean match = (MatchBean) m_itemsList.get(position); Intent intent = new Intent(getActivity(), MatchDetailActivity.class); intent.putExtra(KeyConstants.KEY_BEANDATA, match); startActivityForResult(intent, KeyConstants....
[ "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Intent intent = new Intent(FollowingActivity.this, ViewFollowingHabitActivity.class);\n Bundle bundle = new Bundle();\n FollowingHabit habit = followingHabits.get...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Given an array of integers nums, half of the integers in nums are odd, and the other half are even. Sort the array so that whenever nums[i] is odd, i is odd, and whenever nums[i] is even, i is even. Return any answer array that satisfies this condition. Example 1: Input: nums = [4,2,5,7] Output: [4,5,2,7] Explanation: ...
public static int[] sortArrayByParityII(int[] nums) { int i = 0; int j = 1; int n = nums.length; while (i < n && j < n) { while (i < n && nums[i] % 2 == 0) { i += 2; } while (j < n && nums[j] % 2 == 1) { j += 2; ...
[ "public static void sortByOddAndEven(int [] array) {\n\n for (int i = 0; i < array.length; i++) {\n int j = i + 1;\n for (; j < array.length; j++) {\n if (array[i] % 2 != array[j] % 2) {\n swap(array, i + 1, j);\n break;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Rreply and prepare an HttpResponse, when using JAXWS this means before it reached the JAXWS tube. Typically this means an exception happened where we could not hand it to JAXWS
public void processAsynchReply(Context reqContext, Exception requestFailedException) { Response response = reqContext.response; try { Request request = reqContext.request; // SOAP 1.1 we'll set it as text/xml // for SOAP 1.2, content type would have to be applicatio...
[ "protected void buildResponse() {\r\n appendResponse(\"<?xml version=\\\"1.0\\\" standalone=\\\"no\\\"?>\\r\\n\");\r\n appendResponse(\"<!DOCTYPE RETS SYSTEM \\\"RETS-20021015.dtd\\\">\\r\\n\");\r\n appendResponse(\"<RETS ReplyCode=\\\"\");\r\n appendResponse(replyCode);\r\n appen...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a new object of class 'NFP Natural'.
NFP_Natural createNFP_Natural();
[ "public NaturalLanguageClassifier() {\n\t\tsuper(\"natural_language_classifier\");\n\t\tsetEndPoint(URL);\n\t}", "public MapNatural() {\n }", "public PropositionNaturalLanguageTemplater() {\n }", "public NounPhrase createNP(ArrayList<String> clauseWords, String noun) {\n NounPhrase NP = new NounP...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the value of the 'var160' field.
public java.lang.Integer getVar160() { return var160; }
[ "public java.lang.Integer getVar160() {\n return var160;\n }", "public void setVar160(java.lang.Integer value) {\n this.var160 = value;\n }", "public java.lang.CharSequence getField160() {\n return field160;\n }", "public java.lang.CharSequence getField160() {\n return field160;\n }", "p...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ The Interface IIconDescriptor.
public interface IIconDescriptor { /** * Gets the title. * * @return the title */ public String getTitle(); /** * Gets the description. * * @return the description */ public String getDescription(); /** * Gets the tool tip. * * @return the tool tip */ public String getToolTip(); /*...
[ "public static IIconDescriptor getIconDescriptor() {\n\t\tif (iconDescriptor == null)\n\t\t\ticonDescriptor = new NodeIconDescriptor(\"dataAdapters\"); //$NON-NLS-1$\n\t\treturn iconDescriptor;\n\t}", "public Icon getIcon();", "Icon getIcon();", "public String getAccessibleIconDescription();", "public Strin...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Use Event.newBuilder() to construct.
private Event(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); }
[ "private EventRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "Event createEvent();", "public Event() {\r\n\r\n\t}", "public static com.opentext.bn.converters.avro.entity.DocumentEvent.Builder newBuilder() {\n return new com.opentext.bn.converters.avro.entit...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get riskLevel minimum: 1
@javax.annotation.Nonnull @ApiModelProperty(required = true, value = "") public Integer getRiskLevel() { return riskLevel; }
[ "public String getRiskLevel() {\n return riskLevel;\n }", "public Long getRiskLevel() {\n return this.RiskLevel;\n }", "int getSkillLevel();", "public Integer getLevelMin() {\r\n return levelMin;\r\n }", "public int getBonusPracLevel();", "int getWantedLevel();", "java.lang...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method to set the company name to use in schematic frames. The company information sits in a block in the lowerright corner.
public static void setFrameCompanyName(String c) { cacheFrameCompanyName.setString(c); }
[ "protected void setCompanyName(String name){\n\t\tsynchronized(this){\n\t\t\tthis.companyName = name;\n\t\t}\n\t}", "public void setCompanyName(String companyName) {\r\n this.companyName = companyName;\r\n }", "public void setCompanyName(java.lang.String companyName) {\n synchronized (monitor()...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Method to stop playing a song 1. If the player still exists , close it 2. Reset the pauseLocation 3. Set the acquired from the BufferedInputStream songTotalLenght to 0 bytes
@Override public void stop() { if (player != null) { player.close(); pauseLocation = 0; setSongTotalLenght(0); } }
[ "public static void stopSong()\n {\n JSoundsMainWindowViewController.iAmPlaying = true;\n JSoundsMainWindowViewController.iAmPausing = false;\n JSoundsMainWindowViewController.iAmResuming = false;\n \n MusicPlayerControl.stopSong();\n }", "public void unpauseSong() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Calculates the decimal value of the WSG84 longitude from the Asterix unit of measure
public double getLongitudeDecimalWsg84() { return this.longitudeWsg84 * LAT_LONG_WGS_PRECISION_CAT021_CAT062; }
[ "BigDecimal getWgs84EndingLongitude();", "BigDecimal getWgs84EndingLatitude();", "BigDecimal getWgs84Latitude();", "public double getLatitudeDecimalWsg84() {\n return this.latitudeWsg84 * LAT_LONG_WGS_PRECISION_CAT021_CAT062;\n }", "public double getLatitudeDecimalWgs84() {\n return this.la...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
uint32 imageHeight = 10;
public int getImageHeight() { return imageHeight_; }
[ "private static native void setImageHeight_0(long nativeObj, int val);", "public int getImageHeight() {\n\t\treturn imageHeight;\n\t}", "public int getLargeur ()\n {\n return this.image.getWidth () ;\n }", "public int getNumberOfPixels()\r\n {\r\n return numberOfPixels;\r\n }", "private int ge...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the builder for the settings used for calls to createRepository.
public UnaryCallSettings.Builder<CreateRepositoryRequest, Repository> createRepositorySettings() { return createRepositorySettings; }
[ "public UnaryCallSettings.Builder<GetRepositoryRequest, Repository> getRepositorySettings() {\n return getRepositorySettings;\n }", "public static ConfigBuilder<RocksDBConfig> builder() {\n return new ConfigBuilder<>(COMPONENT_CODE, RocksDBConfig::new);\n }", "public static Builder factory(){\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets a list of appointments for the specified interval.
public final List<Appointment> getAppointmentsBetween(Interval interval) { List<Appointment> appts = new ArrayList<>(); this.appointments.stream().filter(a -> { return interval.intersects(a.getInterval()); }).forEachOrdered(a -> { appts.add(a); }); retur...
[ "public List<Appointment> getAllAppointments();", "public List<Appointment> viewAllAppointments() {\r\n\t\tlogger.info(\"Retrieving all appointments\");\r\n\t\t\r\n\t\tList<Appointment> appointments = new ArrayList<Appointment>();\r\n\t\tString queryString = String.format(\"SELECT * FROM appointment \"\t);\r\n\t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
A helper function used to setup the TextViews for the view
private void setupTextView() { painterTextViewMoves = findViewById(R.id.painterTextView1); painterTextViewTime = findViewById(R.id.painterTextView2); painterTextViewPoints = findViewById(R.id.painterTextView3); painterTextViewInstructions = findViewById(R.id.painterInstructionsView); ...
[ "private void initializeTextView() {\n\t\tLogHelper.getInstance().getLogger().info(String.format(StorageConstants.LOG_INITIALIZE_VIEW, \"text view\"));\n\t\ttry {\n\t\t\tFXMLLoader loader = buildFxmlLoader(\"view/fxml/TextView.fxml\");\n\t\t\ttextViewLayout = loader.load();\n\t\t\ttextViewManager = loader.getContro...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the number of quantization bits used for the audio essence described by this sound descriptor.
public void setQuantizationBits( @UInt32 int bitsCount) throws IllegalArgumentException;
[ "T setAudioChannelCount(int val);", "public void setQtyCount(int QtyCount);", "public void setNumberOfArticulationParameters(byte value) {\n this.numberOfArticulationParameters = value;\n }", "public @UInt32 int getQuantizationBits();", "void setQuantityOnHand(final int quantityOnHand);", "publi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
converts hexadecimal number into a decimal number.
public int convertHexToDec() { String conversion = "0123456789ABCDEF"; //since ABCDEF is 10-15, we had theses letters to 0-9. a = a.toUpperCase(); int decimal = 0; for (int i = 0; i < a.length(); i++) { char b = a.charAt(i); //check orginal string int c = conver...
[ "public static int hexToDecimal(String hex) {\n\n String characters = \"0123456789ABCDEF\";\n int decimalValue = 0;\n int x = hex.length() - 1;\n hex = hex.toUpperCase();\n\n for (int i = 0; i < hex.length(); i++) {\n \n char c = hex.charAt(i);\n int charValue = characters.indexOf(c);...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the class pk of this changeset entry.
@Override public void setClassPK(long classPK) { _changesetEntry.setClassPK(classPK); }
[ "@Override\n\tpublic void setEntryClassPK(long entryClassPK) {\n\t\tmodel.setEntryClassPK(entryClassPK);\n\t}", "public void setClassPK(long classPK) {\n this.classPK = classPK;\n }", "@Override\n\tpublic long getClassPK() {\n\t\treturn _changesetEntry.getClassPK();\n\t}", "public void setPk(Integer...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
select all levels, put them in a hashmap with key the multiplication
public HashMap selectLevel() { // get database and initialize hashmap SQLiteDatabase db = getWritableDatabase(); HashMap<Integer, ArrayList<Integer>> levelMap = new HashMap<>(); // select levels per multiplication for (int i = 0; i < amountMultiplications; i++) { /...
[ "int keyFor(int keys, int level);", "private static HashMap<Integer, HashMap<Color, Integer>> createSilverMap()\n\t{\n\t\tHashMap<Integer, HashMap<Color, Integer>> map = new HashMap<Integer, HashMap<Color, Integer>>();\n\t\t\n\t\tmap.put(1, new HashMap<Color, Integer>());\n\t\t\n\t\tmap.get(1).put(Faction.YELLOW,...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method defines a new group in the tabel user_groups
public void new_group() { if(name.equals("") || name == null) { group_ok = false; } else { try{ //Connection from the pool Context init = new InitialContext(); if(init == null ) throw new Exception("No Context"); Context ctx = (Context) init.lookup("java:comp/env"); DataS...
[ "org.hl7.fhir.Group addNewGroup();", "public void newGroup() {\n addGroup(null, true);\n }", "private void addGroup() {\n\n if(clientSession.isTeacherRole())\n return;\n\n LinkedTreeMap groupMap = (LinkedTreeMap) packet.getArgument(\"group\");\n\n Group group = Group.pa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets array of all "informant" elements
public com.walgreens.rxit.ch.cda.POCDMT000040Informant12[] getInformantArray() { synchronized (monitor()) { check_orphaned(); java.util.List targetList = new java.util.ArrayList(); get_store().find_all_element_users(INFORMANT$28, targetList); com.walgr...
[ "private Object[] elements() {\n return elements.toArray();\n }", "public com.walgreens.rxit.ch.cda.POCDMT000040Informant12 getInformantArray(int i)\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.walgreens.rxit.ch.cda.POCDMT000040Informant12 target = null;\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create a URL stream handler for WebDAV. At present, http and rmi protocols are implemented. If null is returned, then the JDK uses sun.net.
public java.net.URLStreamHandler createURLStreamHandler(String protocol) { if (protocol.equalsIgnoreCase ("http")) { return new com.ibm.webdav.protocol.http.Handler (); } else if (protocol.equalsIgnoreCase ("rmi")) { return new com.ibm.webdav.protocol.rmi.Handler (); } return null; }
[ "static URIResourceStreamFactory getProtocolHandlerFactory()\r\n {\r\n return protocol_factory;\r\n }", "static URIResourceStream getProtocolHandler(String protocol)\r\n {\r\n if(protocol == null)\r\n return null;\r\n \r\n // first try is our currently loaded lot\r\n URIResourceStream ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This void method is called from testPalindrome method. It takes a parameter item of type string. It contains a for loop that goes backwards and takes the last character of the string and pushes that onto the stack. It then goes in reverse, pushing until all the characters are in the stack.
@SuppressWarnings("unchecked") public void reverse(String item) { for (int i = item.length()-1; i >= 0; i--) { reversed.push(item.charAt(i)); } }
[ "@SuppressWarnings(\"unchecked\")\n\tpublic void testPalindrome(String item)\n\t{\n\t\tfor (int i = 0; i < item.length(); i++)\n\t\t{\n\t\t\toriginal.push(item.charAt(i));\n\t\t}\n\t\treverse(item);\n\t\twhile (!original.empty() && !reversed.empty())\n\t\t{\n\t\t\tif (original.pop().equals(reversed.pop()))\n\t\t\t{...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a new StockData RecordBuilder.
public static guru.learningjournal.kafka.examples.StockData.Builder newBuilder() { return new guru.learningjournal.kafka.examples.StockData.Builder(); }
[ "public static guru.learningjournal.kafka.examples.StockData.Builder newBuilder(guru.learningjournal.kafka.examples.StockData other) {\n return new guru.learningjournal.kafka.examples.StockData.Builder(other);\n }", "private Builder(guru.learningjournal.kafka.examples.StockData other) {\n super(SCH...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__Function__Group_4__0__Impl" $ANTLR start "rule__Function__Group_4__1" InternalTym.g:1325:1: rule__Function__Group_4__1 : rule__Function__Group_4__1__Impl ;
public final void rule__Function__Group_4__1() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalTym.g:1329:1: ( rule__Function__Group_4__1__Impl ) // InternalTym.g:1330:2: rule__Function__Group_4__1__Impl { pushF...
[ "public final void rule__Function__Group_4_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalTym.g:1383:1: ( rule__Function__Group_4_1__1__Impl )\n // InternalTym.g:1384:2: rule__Function__Group_4_1__1__Impl\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Reads a mutation result from the child process
private MutationResult readMutation(int currentMutation, long timeout) throws InterruptedException { long before = System.currentTimeMillis(); long after = before; String modification = null; // Run until we have a result or time out while (true) { String out = mIot.getNext(); if ...
[ "private String readResult() throws IOException {\n return reader.readLine();\n }", "public static void test2() throws IOException, InterruptedException {\n ProcessBuilder processBuilder = new ProcessBuilder(\"ls\", \"-la\");\n\n //processBuilder.inheritIO();\n Process process = pro...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
An concept vector index is an inverted index of a set of concept vector. This interface specifies how to read an existing CV index.
public interface ICVIndexReader { /** * Method to get an iterator over all concept vectors that have * a value greater zero for a specified concept. * * @param conceptId The id of the concept that should be searched in the inverted index. * @return An iterator over concept vectors relevant to the sp...
[ "public IConceptVectorData getConceptVectorData( int cvId );", "public Integer visitVECINDEX(GrammerParser.VECINDEXContext ctx){\n int index = (int)visit(ctx.mathexpr());\n ArrayList<Integer> array = (ArrayList<Integer>)visit(ctx.vecexpr());\n if(index >= array.size()){\n return 0;...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
A shortcut method to get stem of this token. Note that stemming and lemmatization allow to reduce inflectional forms and sometimes derivationally related forms of a word to a common base form. Unlike lemma, stemming is a basic heuristic process that chops off the ends of words in the hope of achieving this goal correct...
default String getStem() { return meta("nlpcraft:nlp:stem"); }
[ "public String getStem() {\n if (Token_Type.featOkTst && ((Token_Type)jcasType).casFeat_stem == null)\n jcasType.jcas.throwFeatMissing(\"stem\", \"common.types.text.Token\");\n return jcasType.ll_cas.ll_getStringValue(addr, ((Token_Type)jcasType).casFeatCode_stem);}", "String stemOf (String word);", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
TODO Autogenerated method stub System.out.println("Message afterNavigateForward");
@Override public void afterNavigateForward(WebDriver arg0) { }
[ "public void navigateForward() {\r\n\t\tdriver.navigate().forward();\r\n\t\tlog.info(\"Navigated forward\");\r\n\t}", "public void navigateToForward() {\n WebDriverManager.getDriver().navigate().forward();\n }", "public native void goForward() /*-{\n\t\tthis.@com.pmt.wrap.titanium.ui.WebView::handler....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__PrimitiveTypes__Group_0__0" $ANTLR start "rule__PrimitiveTypes__Group_0__0__Impl" InternalJSchema.g:1769:1: rule__PrimitiveTypes__Group_0__0__Impl : ( 'String' ) ;
public final void rule__PrimitiveTypes__Group_0__0__Impl() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalJSchema.g:1773:1: ( ( 'String' ) ) // InternalJSchema.g:1774:1: ( 'String' ) { // InternalJSchema.g:1774...
[ "public final void rule__PrimitiveTypes__Group_0__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalJSchema.g:1761:1: ( rule__PrimitiveTypes__Group_0__0__Impl rule__PrimitiveTypes__Group_0__1 )\n // InternalJSchema.g:1762:...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
See the textalign property definition in CSS2.
public String getTextAlign();
[ "public void setTextAlign(TEXT_ALIGN align);", "public String getTextAlign() {\n return getStyle(\"text-align\");\n }", "public void setTextAlign(String align) {\n setStyle(\"text-align\", align);\n }", "String getAlignment();", "public void setAlign( String value ) throws Jaxception\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ 1. Get the location of the System Table (as the lookup instance currently knows it. 2. Contact the registry of that instance to get a direct reference to the system table. If this registry (or the System Table) does not exist at this location any more an error will be thrown. This happens when a query is made before ...
@Override public synchronized SystemTableWrapper get() throws LocatorException, SystemTableAccessException { try { return tryToFindSystemTableViaLocator(); } catch (final SQLException e) { //This just means that no System Table was active, not that it can't be found ...
[ "private SystemTableWrapper reinstantiateSystemTable() throws LocatorException, SystemTableAccessException {\n\n Diagnostic.traceNoEvent(DiagnosticLevel.FULL, \"Beginning attempt to re-instantiate the System Table.\");\n\n /*\n * There is no guarantee this node has a replica of the System Tabl...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the attribute value for CreatedBy, using the alias name CreatedBy.
public String getCreatedBy() { return (String) getAttributeInternal(CREATEDBY); }
[ "public String getCreatedBy() {\n return (String) getAttributeInternal(CREATEDBY);\n }", "public String getCreatedBy()\n {\n return (String)getAttributeInternal(CREATEDBY);\n }", "public String getCreatedBy() {\n return (String) getAttributeInternal(CREATEDBY);\n }", "public String getCreat...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column website_file_path.website_id
public void setWebsiteId(Integer websiteId) { this.websiteId = websiteId; }
[ "public void setIdFile(int idFile)\n {\n this.idFile = idFile;\n }", "public void setSiteId(int siteId)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Convenience method for getting a list of actions based on Lookups.forPath().
public static List<Action> getActions (String context) { Lookup lkp = Lookups.forPath(context); return new ArrayList <Action> (lkp.lookupAll(Action.class)); }
[ "public ActionList getActions();", "@GetMapping(\"/actions\")\r\n public List<RegisteredAction> actions() {\r\n return rasaActionExecutor.getRegisteredActionNames().stream().map(actionName -> new RegisteredAction((actionName))).collect(Collectors.toList());\r\n }", "String[] getActions();", "java....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
translates GeoHash to Coordinate set
private Set<Coordinate> getCoords(GeoHash hash){ BoundingBox box = hash.getBoundingBox(); Set<Coordinate> coords = new HashSet<Coordinate>(); coords.add(new Coordinate(box.getMinLon(), box.getMinLat())); coords.add(new Coordinate(box.getMinLon(), box.getMaxLat())); coords.add(new Coordinate(box.getMaxLon(), b...
[ "Decoder(final CharSequence geohash, final double[] coordinates) throws TransformException {\n super(rootType(), geohash);\n final int length = geohash.length();\n final int highestOneBit = format.highestOneBit;\n final byte[] decodingLowerCase = form...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get all the Current Message processor data defined in the configuration
public MessageProcessorMetaData[] getMessageProcessorDataList() throws AxisFault { final Lock lock = getLock(); try { lock.lock(); SynapseConfiguration configuration = getSynapseConfiguration(); Collection<String> names = configuration.getMessageProcessors().keySet();...
[ "public List<UtteranceProcessorConfig> getProcessorConfigs() {\n return processorConfigs;\n }", "public String[] getMessageProcessorNames() throws AxisFault {\n SynapseConfiguration configuration = getSynapseConfiguration();\n\n assert configuration != null;\n Collection<String> names = c...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adds formatted texts to a TextFlow
public TextFlow getRenderedText() { // TextFlow to be returned final TextFlow renderedText = new TextFlow(); renderedText.setTextAlignment(TextAlignment.LEFT); renderedText.setPadding(new Insets(0, 0, 0, 0)); renderedText.setLineSpacing(-3.5); // List of text flows ...
[ "protected static void storeText(List<HSLFTextParagraph> paragraphs) {\n fixLineEndings(paragraphs);\n\n String rawText = toInternalString(getRawText(paragraphs));\n\n // Will it fit in a 8 bit atom?\n boolean isUnicode = StringUtil.hasMultibyte(rawText);\n // isUnicode = true;\n\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Flips the columns 02 with 35.
public void flipPuzzleColumn1(){ for(int r = 0; r < 3; r++){ //iterates through 3 columns for(int c = 0; c < 9; c++){ //iterates through 9 positions in each column int start = puzzle[r+9*c]; //determines start value int x = (r+9*c)+ 3; //adds 3 to s...
[ "public void flipPuzzleColumn2(){\n for(int r = 0; r < 3; r++){ //iterates through 3 columns\n for(int c = 0; c < 9; c++){ //iterates through 9 positions in each column\n int start = puzzle[r+9*c]; //determines start value\n int x = (r+9*c)+ 6; //add...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
SUBMODULE: equals IMPORT: inObj (object) EXPORT: same (boolean) ASSERTION: engines are equals if they share the same fuel and number of cylinders
public boolean equals(Object inObj) { boolean same = false; if(inObj instanceof EngineClass) { EngineClass inEngine = (EngineClass)inObj; same = (cyl == inEngine.getCyl()) && fuel.equals(inEngine.getFuel() ); } return same; }
[ "public boolean equals(Object other){\r\n Car nuCar = (Car)other;\r\n if(super.equals(nuCar)){\r\n if(this.model==nuCar.model&&this.AWD==nuCar.AWD){\r\n return true;\r\n }else{\r\n return false;\r\n }\r\n }else{\r\n retur...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Unsets the "RecurrenceTimeZoneCode" element
void unsetRecurrenceTimeZoneCode();
[ "void xsetRecurrenceTimeZoneCode(org.apache.xmlbeans.XmlInt recurrenceTimeZoneCode);", "void unsetUserTimeZoneCode();", "void setRecurrenceTimeZoneCode(int recurrenceTimeZoneCode);", "public void unsetTimeZone()\n {\n synchronized (monitor())\n {\n check_orphaned();\n ge...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a key element form the provided eflora document
private org.jdom2.Element createKeyElement(Document document) throws IOException { //System.out.println(doc.toString()); org.jdom2.Element result = new org.jdom2.Element("key"); Element tableKeyElement = document.selectFirst("#tableKey"); if(tableKeyElement == null) return null; Element tableKeyTitleElemen...
[ "com.icare.eai.schema.om.evSORequest.EvSORequestDocument.EvSORequest.Key insertNewKey(int i);", "public NodeKey createNodeKey();", "private void addKeyElement(File file, org.jdom2.Element newKeyElement) {\n\t\tSAXBuilder saxBuilder = new SAXBuilder();\n\t\torg.jdom2.Document document;\n\t\ttry {\n\t\t\tdocument...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Utility routine for building an int from two "unsigned" 16bit shorts
public int buildIntFromShorts(short low, short high) { return (((int) high) << 16) | (((int) low) & 0xFFFF); }
[ "private static int shortsToInt(short s1, short s2, boolean swapBytes) {\n byte[] b = new byte[4];\n b[0] = (byte) (s1 >>> 8);\n b[1] = (byte) (s1);\n b[2] = (byte) (s2 >>> 8);\n b[3] = (byte) (s2);\n return bytesToInt(b, false);\n }", "short readInt16();", "public static int encodeAsInt(shor...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
End SprintTest54_1_20_1 54.1.20.2 : Advanced search bar should be opened in Default and Navigation pane layout.
@Test(groups = {"Sprint54"}, description = "Advanced search bar should be opened in Default and Navigation pane layout.") public void SprintTest54_1_20_2() throws Exception { driver = null; try { driver = WebDriverUtils.getDriver(); ConfigurationPage configurationPage = LoginPage.launchDr...
[ "public void onGoToAdvancedSearch() {\n eventBus.showAdvanceSearchPopup(newAttributeSearchWidget);\n }", "private SearchBar() {\n controller = FilterController.getInstance();\n initComponents();\n createNewQueryPanel();\n }", "public void showSearchBar()\n {\n display...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Initializes a newly created ExpTokenizer object so that it represents the sequence of tokens currently contained in the String argument. Using this constructor, the tokenizer is set to go over the expression from left to right, and therefore the next token's index is set to 0 (first from the left).
public ExpTokenizer(String exp) { this.result = exp.split(" "); this.direction = true; this.index = 0; }
[ "public ExpTokenizer(String exp,boolean direction) {\r\n\t\tresult = exp.split(\" \");\r\n\t\tthis.direction = direction;\r\n\t\tif(!this.direction)\r\n\t\t\tthis.index=result.length-1;\r\n\t\telse \r\n\t\t\tthis.index = 0;\r\n\t}", "public Expression(String pExpStr) {\n Queue<Token> tokenQueue = new Queue...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create new BubbleGrid with bubble/space locations specified by grid. Grid is composed of only 1's and 0's, where 1's denote a bubble, and 0's denote a space.
public BubbleGrid(int[][] grid) { this.bubbleGrid = grid; }
[ "public BubbleGrid(int[][] grid) {\n this.grid = grid;\n }", "public BubbleGrid(int[][] grid) {\n this.grid = grid.clone();\n rows = grid.length;\n columns = grid[0].length;\n }", "public BubbleGrid(int[][] grid) {\n this.grid = grid;\n rowNum = grid.length;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
constructor to set values for Index Value Currency Wise.
IndexCalculatorForm(String currency_id, String currency_name, String indcurr_tmcv, String divisor, String index_value) { this.currency_id = currency_id; this.currency_name = currency_name; this.indcurr_tmcv = indcurr_tmcv; this.divisor = divisor; this.index_value = index_value; }
[ "void initValue(int index,BinData bd);", "public void setCurrency(typekey.Currency value);", "private Index(int value) {\n this.value = value;\n }", "public Index(int index){\n\t\tthis.index = index;\n\t}", "private Index(int value) {\r\n\t\tthis.value = value;\r\n\t}", "public void setReserving...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructs a BoundingPolytope from the specified array of bounds objects. The new polytope will circumscribe the union of the regions specified by the input bounds objects.
public BoundingPolytope(Bounds[] boundsObjects) { int i=0; boundId = BOUNDING_POLYTOPE; if( boundsObjects == null || boundsObjects.length <= 0 ) { boundsIsEmpty = true; boundsIsInfinite = false; initEmptyPolytope(); computeAllVerts(); // XXXX: lazy evaluate return; } // find firs...
[ "@Override\n\tpublic void combine(Bounds[] boundsObjects) {\n int i=0;\n\tdouble dis;\n\n\tif( (boundsObjects == null) || (boundsObjects.length <= 0)\n\t || (boundsIsInfinite))\n\t return;\n\t\n\t// find first non empty bounds object\n\twhile( (i<boundsObjects.length) && ((boundsObjects[i]==null)\n\t\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method updates the table and is called when a change in the model has been made.
public void update() { AbstractTableModelStudenti model = (AbstractTableModelStudenti) this.getModel(); model.fireTableDataChanged(); validate(); }
[ "public void updateTable()\r\n {\r\n ((JarModel) table.getModel()).fireTableDataChanged();\r\n }", "public void updateTable() {\n ((AbstractTableModel) table.getModel()).fireTableDataChanged();\n }", "public void doUpdateTable() {\r\n\t\tlogger.info(\"Actualizando tabla books\");\r\n\t\tlazyModel...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__EDependencies__FilesAssignment_2" $ANTLR start "rule__EDependencies__Relative_pathAssignment_4_2" InternalAADMParser.g:26073:1: rule__EDependencies__Relative_pathAssignment_4_2 : ( RULE_STRING ) ;
public final void rule__EDependencies__Relative_pathAssignment_4_2() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalAADMParser.g:26077:1: ( ( RULE_STRING ) ) // InternalAADMParser.g:26078:2: ( RULE_STRING ) { /...
[ "public final void rule__EDependencies__Group_4__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAADMParser.g:16020:1: ( ( ( rule__EDependencies__Relative_pathAssignment_4_2 ) ) )\n // InternalAADMParser.g:16021:1:...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return the value associated with the column: stains_blood_semen_lub
public java.lang.String getStainsBloodSemenLub () { return stainsBloodSemenLub; }
[ "public void setStainsBloodSemenLub (java.lang.String stainsBloodSemenLub) {\n\t\tthis.stainsBloodSemenLub = stainsBloodSemenLub;\n\t}", "public java.lang.String getStudent_theLightClub() {\n\t\treturn _primarySchoolStudent.getStudent_theLightClub();\n\t}", "public String getMlSalterby() {\n return mlSal...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the value for child leaf "rxbuffersize", using instance of generated typedef class.
public void setRxBufferSizeValue(YangUInt32 rxBufferSizeValue) throws JNCException { setLeafValue(Epc.NAMESPACE, "rx-buffer-size", rxBufferSizeValue, childrenNames()); }
[ "public void addRxBufferSize() throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"rx-buffer-size\",\n null,\n childrenNames());\n }", "public void markRxBufferSizeReplace() throws JNCException {\n markLeafReplace(\"rxBufferSize\");\n }", "public void set...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the value of the 'field222' field. doc for field222
public java.lang.CharSequence getField222() { return field222; }
[ "java.lang.String getField1001();", "java.lang.String getField1231();", "java.lang.String getField1531();", "public java.lang.CharSequence getField222() {\n return field222;\n }", "java.lang.String getField1201();", "java.lang.String getField1164();", "public java.lang.CharSequence getField123()...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the yvalue for the specified series and item.
public Number getYValue(final int series, final int item) { return null; }
[ "public Number getYValue(final int series, final int item) {\n\t\treturn this.data.getYValue(series, item);\n\t}", "@Override\n public double getYValue(int series, int item) {\n assert 0 <= series && series < datasets.size();\n \n XYDataset dataset = datasets.get(series);\n int inde...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Read a block of DRAM data
DRAMBlock readBlock(int blockId);
[ "void readBlock(int blockId, byte[] buffer, int offset) throws IOException;", "int read(int blockOffset, byte[] buffer, int bufferOffset, int length) throws IOException;", "public int read(long sectorNumber, byte[] buffer, int size);", "public abstract byte[] readData(int address, int length);", "public voi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
getMinProcessID This function returns the int of the minimum processes id Parameters: Return value: min process ID
public int getMinProcessID() { return this.getMinItem().getId(); }
[ "public long getMinObjectID() {\n\t\t\treturn minObjectID;\n\t\t}", "public long getMinObjectID() {\n\t\treturn minObjectID;\n\t}", "public int min_id() {\n\t\treturn index[heap[1].getVertex()];\n\t}", "public static int getProcessId() {\n // getting the process id is slow if the reserve DNS is not set...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a DateTimeStruct that represents this wrapper.
public DateTimeStruct toDateTimeStruct() { if (!validDateStruct || !validTimeStruct) { convertDateToStruct(); } return new DateTimeStruct(dateValues, timeValues); }
[ "DateTimeStruct getDateTimeStruct();", "public DateTimeDt getDateTime() { \n\t\tif (myDateTime == null) {\n\t\t\tmyDateTime = new DateTimeDt();\n\t\t}\n\t\treturn myDateTime;\n\t}", "public static DateTimeBuilder makeDateTime() {\n return new DateTimeBuilder();\n }", "public interface DateTime extends Co...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Initializes sound stuff, including volume Sets channels, SFX and music volume, allocates channel buffer, sets S_sfx lookup.
void Init(int sfxVolume, int musicVolume);
[ "public void initializeSounds() {\r\n\t\ttry {\r\n\t\t\tsound a = new sound();\r\n\r\n\t\t\t// Fire sound effect\r\n\t\t\tclipFire = a.getSound();\r\n\t\t\tstreamFire = a.getStream();\r\n\r\n\t\t\t// Shooting sound effect\r\n\t\t\tclipShoot = a.getSound2();\r\n\t\t\tstreamShoot = a.getStream2();\r\n\r\n\t\t\t// Sou...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Generate a random set of integers of the specified shape. Note that these integers will not actually be integers but floats that happen to be whole numbers. The reason for this is due to ints having the same space usage as floats. This also plays nice with blas. If the data opType is set to double, then these will be w...
INDArray nextInt(int n, int[] shape);
[ "INDArray nextInt(int[] shape);", "private Integer[] randomIntArray(int size) {\n Integer[] intArray = new Integer[size];\n for (int i = 0; i < size; i++) {\n intArray[i] = (int)(Math.random() * 1000000) + 1;\n }\n return intArray;\n }", "public void chooseNumShapes()\n{\n WeightedRandomSet<I...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Tests creating a named dependency.
@Test public void testCreateNameDependency() throws JellyTagException { final String depName = "myDependency"; tag.setRefName(depName); NameDependency dep = (NameDependency) tag.createDependency(); assertEquals("Wrong name set", depName, dep.getName()); }
[ "Dependency createDependency();", "@Test\n public void testGetDependency() throws JellyTagException\n {\n tag.setRefName(\"testName\");\n Dependency dep = tag.getDependency();\n Dependency dep2 = tag.getDependency();\n assertSame(\"Multiple dependencies created\", dep, dep2);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__ERequirementDefinitionBody__NodeAssignment_1_1" $ANTLR start "rule__ERequirementDefinitionBody__RelationshipAssignment_2_1" InternalAADMParser.g:26632:1: rule__ERequirementDefinitionBody__RelationshipAssignment_2_1 : ( ruleEPREFIX_TYPE ) ;
public final void rule__ERequirementDefinitionBody__RelationshipAssignment_2_1() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalAADMParser.g:26636:1: ( ( ruleEPREFIX_TYPE ) ) // InternalAADMParser.g:26637:2: ( ruleEPREFIX_TYPE ) ...
[ "public final void rule__ERequirementDefinitionBody__Group_2__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalAADMParser.g:18503:1: ( ( ( rule__ERequirementDefinitionBody__RelationshipAssignment_2_1 ) ) )\n // Inte...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the lis of overriding children of this node.
public List<SelectionNode> getOverridingChildren() { return overridingChildren; }
[ "public synchronized List<Xen> children() {\n if ( (children == NO_CHILDREN) && notAttrMock())\n children = new ArrayList<Xen>();\n\n return children;\n }", "public Set<String> getChildren() {\n return Collections.unmodifiableSet(children);\n }", "@Override\n\tpublic Set<HtmlTag> g...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create a new RxTxMonitoringMsg with the given data_length and base offset.
public RxTxMonitoringMsg(int data_length, int base_offset) { super(data_length, base_offset); amTypeSet(AM_TYPE); }
[ "public RxTxMonitoringMsg(net.tinyos.message.Message msg, int base_offset, int data_length) {\n super(msg, base_offset, data_length);\n amTypeSet(AM_TYPE);\n }", "public RxTxMonitoringMsg(byte[] data, int base_offset, int data_length) {\n super(data, base_offset, data_length);\n amT...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructor for class ClickAndPlaySimulationFrame
public ClickAndPlaySimulationFrame(ClickAndPlayMobilitySource clickAndPlayMobilitySource) { this.clickAndPlayMobilitySource=clickAndPlayMobilitySource; firstClick=true; }
[ "public TestRandFrame() {\n initComponents();\n }", "public GameFrame() {\r\n\t\tinit();\r\n\t}", "public CallFrame() {\n }", "FRAME createFRAME();", "public SimulationWindow() {\n initComponents();\n makeFrameFullSize();\n createSimulationTab();\n }", "public StartPro...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set the lead customer for a booking (asynchronously)
public com.squareup.okhttp.Call setLeadCustomerAsync(Long bookingId, Long customerId, final ApiCallback<InlineResponse2003> callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestListener progressRequestListener = null; ...
[ "public void setCustomerWaiting(int customerWaiting) {\r\n this.customerWaiting += customerWaiting;\r\n setMaximumWaitLine();\r\n }", "public void setCustomer(Customer customer) {\r\n this.customer = customer;\r\n }", "public void startServingCustomer(Customer customer){\r\n of...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Searches through the available screens for occurrences of the search string. If it finds the string, returns row index where the string was found. If doesn't find the string, looks for "More..." indicator and if it's there, scrolls down to the next screen. If it can't find it and the "More..." indicator is not there, r...
public static int searchScreensForRow(String search, TestObject Screen, TopLevelTestObject Frame, boolean pattern) { boolean more = false; int result ; if (searchThroughScreens(search, Screen, Frame, pattern)) { String [] screenContentsArray = TerminalLookOps.getScreenTextAsArray(Screen); if (pattern...
[ "public static int searchScreensForRow(String searchstring, TestObject Screen, TopLevelTestObject Frame) {\r\n\r\n\t\tboolean more = false;\r\n\t\tint result ;\r\n\t\tif (searchThroughScreens(searchstring, Screen, Frame)) {\r\n\t\t\tString [] screenContentsArray = TerminalLookOps.getScreenTextAsArray(Screen);\r\n\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create a vm with the values
public static void createVM(int userId) { //VM Parameters long size = 10000; //image size (MB) int ram = 128; //vm memory (MB) int mips = 200; long bw = 1000; int pesNumber = 1; //number of cpus String vmm = "Xen"; //VMM name //create VMs HzVm vm...
[ "VM createVM();", "protected VMwareVM createVM(Hashtable properties, String morName) {\n\n // create VM from name\n String name = (String) properties.get(PropertyListManager.PROP_NAME);\n VMwareVM vm = new VMwareVM(name);\n vm.setSystemName(morName);\n\n // network mac address\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
selected or Not : Contact_Number_Text
public boolean isSelected_txt_Contact_Number_Text(){ if(txt_Contact_Number_Text.isSelected()) { return true; } else { return false;} }
[ "public boolean isSelected_txt_ThankYou_Message_Text(){\r\n\t\tif(txt_ThankYou_Message_Text.isSelected()) { return true; } else { return false;} \r\n\t}", "public boolean isDisplayed_txt_Contact_Number_Text(){\r\n\t\tif(txt_Contact_Number_Text.isDisplayed()) { return true; } else { return false;} \r\n\t}", "pub...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Obtem somente o RGM do aluno para exclusao.
private Aluno excluiAlunoRGM() { Aluno alunoRGM = new Aluno(); alunoRGM.setRGM(txtRgm.getText()); return alunoRGM; }
[ "public void removerAluno(){\n Escrever e = new Escrever();\n int matricula = e.dnum(\"Digite a matricula do aluno.\");\n Aluno banido = null;\n for(Aluno b : alunos){\n if(b.getMatricula() == matricula){\n banido = b;\n }\n }\n if(banid...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
toString Get Document Info
public String getDocumentInfo() { MDocType dt = MDocType.get(getCtx(), getC_DocType_ID()); return dt.getName() + " " + getDocumentNo(); }
[ "java.lang.String getDocument();", "@Override\n public final String toString() {\n StringBuilder buffer = new StringBuilder();\n buffer.append(\"Document<\");\n for (int i = 0; i < fields.size(); i++) {\n IndexableField field = fields.get(i);\n buffer.append(field.toString());\n if (i != ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Construct a URI from a pathname.
public URI generateURI(String pathname) throws URISyntaxException { URI uri = new URI("index", "", FileUtils.removeExtension(pathname), null); return uri; }
[ "public static URI makeURI(String pathname) {\n String userdir = System.getProperty(\"user.dir\");\n userdir = userdir.replace('\\\\', '/');\n\n String sep = \"/\";\n if (userdir.endsWith(\"/\")) {\n sep = \"\";\n }\n\n try {\n if (pathname.startsWith(\"/\")) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Construct a new URI from another URI. All fields for this URI are set equal to the fields of the URI passed in.
public URI(URI p_other) { initialize(p_other); }
[ "protected URI(URI uri) {\r\n\r\n\t\tschema = uri.schema;\r\n\t\tauthority = uri.authority;\r\n\t\tpath = uri.path;\r\n\t\tquery = uri.query;\r\n\t\tfragment = uri.fragment;\r\n\r\n\t\thost = uri.host;\r\n\t\tport = uri.port;\r\n\t\tuser = uri.user;\r\n\t\tpassword = uri.password;\r\n\r\n\t\thash = uri.hash;\r\n\t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Find the depth of the node with the specified key, used to calculate the offset of the entry for prettyPrint()
public int findNodeDepth(K key) { return findNodeDepth(root, key); }
[ "public int getDepth();", "int getDepth();", "public int getDepth() {\n return accessor.getIntAt(depth_offset[mdIdx], md.intSizeInBytes());\n }", "int depth();", "public String getDepthOffset () {\n return depthOffset ;\n }", "public int level(K key) {\n\t\tif (lookup(key) == null) {\n\t\t\tret...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets ith "Exclusions" element
public void setExclusionsArray(int i, org.landxml.schema.landXML11.ExclusionsDocument.Exclusions exclusions) { synchronized (monitor()) { check_orphaned(); org.landxml.schema.landXML11.ExclusionsDocument.Exclusions target = null; targ...
[ "public void setExclusions(File[] exclusions) {\n this.exclusions = exclusions;\n }", "public void addToExclusions(entity.GL7SublineTypeExcl element);", "private void addExclusions(Selection selectionObj){\n\n // get all exclusions due to this selection\n List<Selection> excludedSelectio...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns, as a CycConstantImpl, the value at the current row and at the column identified by col. Returns null if no value is set for the current row and given column. Note: Use the method int colIindex = findColumn(col) once and the version of this method that takes an integer for maximum performance.
@Override public CycConstantImpl getConstant(String col) throws IllegalArgumentException, ArrayIndexOutOfBoundsException, ClassCastException { return getConstant(findColumnStrict(col)); }
[ "@Override\n public CycConstantImpl getConstant(int colIndex)\n throws IllegalArgumentException, ArrayIndexOutOfBoundsException, ClassCastException {\n ensureOpen(\"getConstant\");\n return (CycConstantImpl) getObject(colIndex);\n }", "public CellValue getCell(int col)\n {\n return (col >= 0 ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
allows a customer to make a repayment on their loan
private String loanRepayment(CustomerID customerID, String[] requestParams) { Customer customer = customers.get(customerID.getKey()); // confirm that the parameters entered are valid, and provide prompts to the user if not String userPrompts = ""; double repaymentAmount = 0; boolean inputsValid = true; if (...
[ "public static void calculateLoanPayment() {\n\t\t//get values from text fields\n\t\tdouble interest = \n\t\t\t\tDouble.parseDouble(tfAnnualInterestRate.getText());\n\t\tint year = Integer.parseInt(tfNumberOfYears.getText());\n\t\tdouble loanAmount =\n\t\t\t\tDouble.parseDouble(tfLoanAmount.getText());\n\t\t\n\t\t/...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Obtain all the pet vet visits.
private void obtainAllPetVetVisits(Pet pet) { TrObtainAllVetVisits trObtainAllVetVisits = VetVisitsControllersFactory.createTrObtainAllVetVisits(); trObtainAllVetVisits.setUser(ServerData.getInstance().getUser()); trObtainAllVetVisits.setPet(pet); trObtainAllVetVisits.execute(); }
[ "protected List doFindVisits(Pet pet) throws DataAccessException {\n return ((VisitsQuery) visitsQuery).execute(pet.getId());\n }", "public Long getVisits() {\n return visits;\n }", "private void obtainAllPetVaccinations(Pet pet) {\n TrObtainAllPetVaccinations trObtainAllPetVaccinatio...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return the status of the AttributeWriteCache.
public boolean isAttributeWritesCached();
[ "CacheStats writeCacheStats() {\n\n return this.writeCache.stats();\n }", "@Override\n public boolean isAttributeWritesCached() {\n return cacheAttributeWriteMode;\n }", "public int getStatus() {\n return alive ? CacheConstants.STATUS_ALIVE : CacheConstants.STATUS_DISPOSED;\n }", "lon...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
packages the intent with a title and a status
public static void packageIntent(Intent intent, String title, boolean status) { intent.putExtra(TITLE, title); intent.putExtra(STATUS, status); }
[ "private Intent buildIntent(String name) {\n Intent mIntent = new Intent(mContext, PreperationActivity.class);\n mIntent.putExtra(DashboardActivity.ACTIONBAR_TITLE, name);\n mIntent.putExtra(DashboardActivity.ACTIONBAR_ICON,\n DashboardActivity.iconRecipe...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Clears all the qualification values from this group (sets the values of all referenced KeyValueQualifiers to null).
public void clear(){ for(QConnection<?> connection : connections.values()) connection.qualifier.setValue(null); QualifierGroup.this.fireDataChanged(0, 0); }
[ "public void clear()\r\n {\r\n otherValueMap.clear();\r\n }", "public void clear()\r\n {\r\n for (int i = 0; i < values.length; i++)\r\n keys[i] = null;\r\n size = 0;\r\n }", "public void clear() {\n\t\t\tthis.keys.clear();\n\t\t\tthis.lookup.clear();\n\t\t}", "publ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a domain participant for discovery (will NOT be enabled).
private DomainParticipant createDiscoveryDomainParticipant( final int domainId ) { // get current state boolean wasEnabled = AutoEnableCreatedEntitiesHelper.isEnabled(); // disable auto-enable -> THIS IS CRUCIAL TO WORK CORRECTLY AutoEnableCreatedEntitiesHelper.disable(); // create discovery...
[ "private DomainParticipant createDomainParticipant(\n final int domainId,\n final String participantName\n ) {\n // create default participant qos marked as routing service entity\n DomainParticipantQos domainParticipantQos = new DomainParticipantQos();\n DomainParticipantFactory.get_instance().get_...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
this listener guarantees that the right cube's (child2's) transformation is the inverse of the left one ( child1), modulo a translation
public void transformationMatrixChanged(TransformationEvent ev) { Matrix childMatrix = new Matrix(child1.getTransformation().getMatrix()); childMatrix.invert(); childMatrix.assignTo(child21); }
[ "private RedBlackNode rotationWithLeftChild(RedBlackNode node2) \n { \n RedBlackNode node1 = node2.leftChild; \n node2.leftChild = node1.rightChild; \n node1.rightChild = node2; \n return node1; \n }", "private RedBlackNode rotationWithRightChild(RedBlackNode node1) \n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the "furtherRelations" element
void setFurtherRelations(ch.crif_online.www.webservices.crifsoapservice.v1_00.FurtherRelations furtherRelations);
[ "public void setFurtherRelations(ch.crif_online.www.webservices.crifsoapservice.v1_00.FurtherRelations furtherRelations)\n {\n generatedSetterHelperImpl(furtherRelations, FURTHERRELATIONS$10, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);\n }", "ch.crif_online.www.webs...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test of queryScanTypes method, of class DatabaseAccess.
@Test public void testQueryScanTypes() { System.out.println("Test: queryScanTypes Success"); ResultSet result; ResultSetMetaData rsmd; int cols = 0; int rows = 0; try { result = DatabaseAccess.queryScanTypes(); rsmd = result.g...
[ "public static String[] queryScanTypes() throws ArrayIndexOutOfBoundsException, SQLException {\n\n ResultSet rs = DatabaseAccess.queryScanTypes();\n String[] s = manageResults(rs);\n return s;\n }", "@Test\n public void testQueryScanParameters() {\n System.out.println(\"Test: que...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
public Map publishTrade( String screen, String username, String money,String message, String zhukehe, String banchangzhukehe, String rangqiuzhukehe, String rangqiu, String rangqiudaxi, String banchangrangqiudaxi, String jiaoqiudaxi, String bodan, String banchangbodan, String diyiqiuruqiu, String zongruqiu , String ruqi...
public Map publishTrade(TTradesPublishEntity tTradesPublishEntity);
[ "public static void SendStockInfo(String stock, String msg) {\n Map<wss, Session> ms = mapStockUser.get(stock);\n if(ms == null) {\n ms = new HashMap<>();\n }\n\n for(wss s: ms.keySet()) {\n try {\n s.sendMessage(msg);\n } catch (IO...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Refresh the index so it can be searched
public RefreshResponse refreshIndex();
[ "public void refresh() {\n getIndexOperations().refresh();\n }", "public void updateAndReloadIndex() {\n\t // Do not update indexes during index-generation\n\t if (this.generatingIndex) {\n\t \treturn;\n\t }\n\t \n\t // switch active index\n\t this.idxSelect = (idxSelect + 1) % this...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the result of interpreting the object as an instance of 'Answer Template Ref'. This implementation returns null; returning a nonnull result will terminate the switch.
public T caseAnswerTemplateRef(AnswerTemplateRef object) { return null; }
[ "public T caseAnswerTemplate(AnswerTemplate object) {\n\t\treturn null;\n\t}", "public T caseAnswer(Answer object) {\n\t\treturn null;\n\t}", "Reference getAnswerReference();", "AnswerRef createAnswerRef();", "public T caseQuestion(Question object) {\n\t\treturn null;\n\t}", "public T caseQuestion(Questio...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Static method indicating whether the optional Analytics module is loaded for the page. The CubeGrid component requires this module.
public static native boolean analyticsLoaded() /*-{ return ($wnd.isc.CubeGrid != null); }-*/;
[ "public boolean isGoogleAnalyticsEnabled() {\n return gaEnabled;\n }", "@java.lang.Override\n public boolean getAnalyticsEnabled() {\n return analyticsEnabled_;\n }", "@java.lang.Override\n public boolean getAnalyticsEnabled() {\n return analyticsEnabled_;\n }", "public boolean isGoo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Start timing the check. The identifier could be anything, but in most cases its a player UUID.
public static void startTiming(CheckType theCheck, UUID identifier) { if (!ENABLED) return; purge(theCheck); STARTED_TIMINGS.get(theCheck).put(identifier, System.nanoTime()); }
[ "public void trackStart(String id) {\n mStartTimes.put(id, SystemClock.uptimeMillis());\n }", "private void startTime() {\n Task<Void> task = new Task<Void>() {\n @Override\n protected Void call() throws Exception {\n while (player.getCurrentTime().lessThanOrEqualTo(player.getStopTim...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a new object of class 'Operation Def'.
OperationDef createOperationDef();
[ "public Operation createOperation();", "Operation createOperation();", "DefinedOperationRef createDefinedOperationRef();", "Operations createOperations();", "public Operation() {\n super();\n }", "public IDataModelOperation createConfiguredOperation() {\r\n\t\tRenameDiagramOperation operation = ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the position at ray cast.
public Vector3 getPositionAtRayCast(Vector3 startPoint, Vector3 direction, boolean getBlockPointingAt) { int last_point_x = 0; int last_point_y = 0; int last_point_z = 0; for (int i = 1; i < floorGridSize * 2; i++) { Vector3 tmp_start = new Vector3(startPoint); Vector3 tmp_direction = new Vecto...
[ "public battleapp.netproto.Struct.iPos getCastPos() {\n return castPos_ == null ? battleapp.netproto.Struct.iPos.getDefaultInstance() : castPos_;\n }", "battleapp.netproto.Struct.iPos getCastPos();", "public battleapp.netproto.Struct.iPos getCastPos() {\n if (castPosBuilder_ == null) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Retrieves information about a gallery Application Version.
@ServiceMethod(returns = ReturnType.SINGLE) public Mono<GalleryApplicationVersionInner> getAsync( String resourceGroupName, String galleryName, String galleryApplicationName, String galleryApplicationVersionName) { final ReplicationStatusTypes expand = null; final Con...
[ "@ServiceMethod(returns = ReturnType.SINGLE)\n public GalleryApplicationVersionInner get(\n String resourceGroupName,\n String galleryName,\n String galleryApplicationName,\n String galleryApplicationVersionName) {\n final ReplicationStatusTypes expand = null;\n final Co...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates the ACARS table (if not already existing).
public void setup() throws SQLException { // Create ACARS table final String createTableSQL = "CREATE TABLE IF NOT EXISTS ACARS (" + "date DATE, time TIME, frequency CHAR(7), " + "registration VARCHAR(7), flight CHAR(6), " + "mode CHAR, label CHAR(2), bloc...
[ "public void createAccountTable() throws SQLException {\r\n\t\tConnection connection = dbAdministration.getConnection();\r\n\t\t// Prüfung, ob Tabelle bereits besteht\r\n\t\tResultSet resultSet = connection.getMetaData().getTables(\"%\", \"%\", \"%\", new String[] { \"TABLE\" });\r\n\t\tboolean shouldCreateTable = ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
comparator, nulls lower (destinationLocationCode) //
public JwComparator<AcConsignmentTransport> getDestinationLocationCodeComparatorNullsLower() { return DestinationLocationCodeComparatorNullsLower; }
[ "public JwComparator<AcUpuTagSummaryVo> getDestinationLocationCodeComparatorNullsLower()\n {\n return DestinationLocationCodeComparatorNullsLower;\n }", "public JwComparator<AcFacilityDestinationMapping> getMappedDestinationCodeComparatorNullsLower()\n {\n return MappedDestinationCodeCompar...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns value associated with given key as an array of boolean values, using DEFAULT_DELIMITER as the separator between properties.
public boolean[] getBooleanArray(String key) { return getBooleanArray(key, DEFAULT_DELIMITER); }
[ "public boolean[] getBooleanArray(String key, String delimeter) {\r\n String[] properties = getString(key).split(delimeter);\r\n boolean[] results = new boolean[properties.length];\r\n for (int k = 0; k < results.length; k++) {\r\n results[k] = properties[k].equalsIgnoreCase(\"true\"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
set the payload of this packet
public void setPayload(final byte[] payload) { this.payload = payload; }
[ "void setPayload(final Serializable payload);", "public void setPayload(BytesRef payload) {\n this.payload = payload;\n }", "public void setPayload(String payload);", "public void setPayload(Payload payload) {\n this.payload = payload;\n }", "public void setPayload(byte[] pld) throws TFTPPacketExcep...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Display a blank username message
private void makeToastBlankUsername() { Toast.makeText(this, "Please enter a username!", Toast.LENGTH_SHORT).show(); }
[ "public void usernamePanel() {\n\t\tString str = \"Please enter a Username\";\n\t\tJOptionPane.showMessageDialog(frame, str, \"No Username\", JOptionPane.WARNING_MESSAGE);\n\t}", "public void noUserFoundMessage() \n\t{\n\t\tSystem.out.println(\"Username does not exist\");\n\t}", "public void printNoName() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
genGrid: produces a randomized grid with specific dimensions m and n where the number of rocks = number of pressure pads, 1 agent and 1 teleportal.
public static String[][] genGrid(){ String[][] grid = new String [m][n]; String[][] gridCom = new String [m][n]; for (int i =0; i<m; i++){ for(int j=0 ; j<n ; j++){ gridCom[i][j]=(i + "," + j); } } String[][] arr2 = shuffle(gridCom); grid[Integer.parseInt(arr2[0][0].split(",")[0])][Integer.parseI...
[ "public RandomGrid(int n, int m)\n\t{\n\t\t// Instantiate array\n\t\tgrid = new int[n][m];\n\t\t\n\t\t// Instantiate Random object\n\t\trandom = new Random();\n\t\t\n\t\t// Fill array with values\n\t\tfor(int i = 0; i < grid.length; i++)\n\t\t{\n\t\t\tfor(int j = 0; j< grid[i].length; j++)\n\t\t\t{\n\t\t\t\tgrid[i]...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Cancel an update if there's one scheduled
private void cancelUpdate() { synchronized(this) { if (updateHandle != null) { updateHandle.removeCallbacks(updateRun); updateHandle = null; } if (checkHandle != null) { checkHandle.removeCallbacks(checkRun); checkHandle = null; } } }
[ "public void cancelCurrentUpdate() {\n if (updateInstance != null)\n {\n updateInstance.cancel(true);\n updateInstance = null;\n listView.onRefreshComplete();\n }\n }", "Update withCancelRequested(Boolean cancelRequested);", "public void cancelUpdate() {\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
A builder to create QRCodes
public interface QRCBuilder<T> { /** * Syntactic sugar - qrbuilder.newQRCode().with.... * @return */ public QRCBuilder<T> newQRCode(); /** * Syntactic sugar - qrbuilder.newQRCode().with().and().with() * @return */ public QRCBuilder<T> and(); /** * Should the generated QRCode be verifie...
[ "private void generateQrCode() {\n\t\t// Get the text\n\t\tString text = this.getQRCodeContent();\n\t\t\n\t\t// Generate QR code to output stream.\n\t\tByteArrayOutputStream output = new ByteArrayOutputStream();\n\t\tQRCode.from(text).to(ImageType.PNG).writeTo(output);\n\t\t\n\t\t// Create BufferedImage from input ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }