query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
Constructor Assumption: The validity of the date and hour were checked
public DateHour(int year, int month, int day, int hour) { m_year = year; m_month = month; m_day = day; m_hour = hour; }
[ "public Time2(int hour) {\n this(hour, 0, 0); // invoke constructor with three arguments\n }", "public DateTimeChecker() {\n initComponents();\n }", "public PartTimeStudent(String firstName, String lastName, double creditHour){\n // Activates the constructor of the super class Student...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Additional method for retrieving the list of all available languages in the LTR
public List<String> getLtrLanguages();
[ "public abstract String[] getAvailableLanguages();", "public static List findAllLanguages() {\n List results = null;\n\n try {\n results = new Chm62edtLanguageDomain().findOrderBy(\"NAME_EN\");\n if (null == results) {\n return new Vector(0);\n }\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Show sequence already exists
public static void sequenceAlreadyExists(Sequence s) { System.out.println(String.format("sequence %s already exists", s)); }
[ "public static void noSeqFound(Sequence sequence) {\n info(String.format(\"sequence %s does not exist\", sequence));\n }", "public boolean sequenceExists(String sequenceName) {\r\n\tboolean result = false;\r\n\r\n\tPreparedStatement pr = null;\r\n\tResultSet rs = null;\r\n\r\n\ttry {\r\n\t pr = conn\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Blocks and awaits the next update on this observable (which can be either a value or an exception), and returns it as a Maybe. Note that while an exceptionupdate on this observable will be wrapped in a Maybe, this method throws an AwaitTimeoutException in case the timeout exceeds.
default Maybe<T> awaitNext(Duration timeout) { return BlockingOperators.awaitNext(this, timeout); }
[ "default T awaitNextValue(Duration timeout) {\n return BlockingOperators.awaitNextValue(this, timeout);\n }", "@NonNull\n public HubEvent<?> awaitFirst() {\n // If the event list is empty, then wait.\n if (events.isEmpty()) {\n Latch.await(latch);\n }\n return e...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Getter for vnw_core.tbloauth_client.allowed_grant_types. (DC2Type:array)
public String getAllowedGrantTypes() { return (String) get(4); }
[ "String[] getSupportedCredentialTypes();", "@Override\n public Set<String> getAuthorizedGrantTypes() {\n return client.getAuthorizedGrantTypes() != null ?\n CommonUtils.transformStringToSet(client.getAuthorizedGrantTypes(), String.class) : Collections.emptySet();\n }", "public Strin...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Saves entity of type DynamicField_Template
public void saveFieldTemplate(DynamicFieldTemplate entity, boolean isNew) { fieldTemplateHandler.save(entity, isNew); }
[ "public void saveTg000003(Tg000003 entity) throws Exception;", "public void save(PtJJdwcy entity);", "void save(Object entity);", "public PSTemplate save(PSTemplate template, String siteId) throws PSDataServiceException;", "public PSTemplate save(PSTemplate template, String siteId, String pageId) throws PSD...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create a new unconnected PcepChannelHandler.
PcepChannelHandler(Controller controller) { this.controller = controller; this.state = ChannelState.INIT; factory1 = controller.getPcepMessageFactory1(); duplicatePccIdFound = Boolean.FALSE; pcepPacketStats = new PcepPacketStatsImpl(); }
[ "private Channel createChannel(){\n try {\n return connection.createChannel();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return null;\n }", "public Channel newChannel() {\n try {\n Connection connection = connectionFactory.new...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
optional .protobuf.FeatureNode first_token = 4;
uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureNode getFirstToken();
[ "uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureNodeOrBuilder getFirstTokenOrBuilder();", "public uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureNodeOrBuilder getFirstTokenOrBuilder() {\n if (firstTokenBuilder_ != null) {\n return firstTokenBuilder_.getMessageOrBuilder();\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Privileges attached to this license after this event takes place. If this property is left empty, privileges are considered unchanged from the previous license event. repeated .bloombox.licensure.LicensePrivilege privilege = 2;
public Builder addPrivilege(io.bloombox.schema.licensure.Licensure.LicensePrivilege value) { if (value == null) { throw new NullPointerException(); } ensurePrivilegeIsMutable(); privilege_.add(value.getNumber()); onChanged(); return this; }
[ "io.bloombox.schema.licensure.Licensure.LicensePrivilege getPrivilege(int index);", "public io.bloombox.schema.licensure.Licensure.LicensePrivilege getPrivilege(int index) {\n return privilege_converter_.convert(privilege_.get(index));\n }", "public io.bloombox.schema.licensure.Licensure.LicensePrivileg...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Interface for Json deserializers
public interface JSONDeserializer<T> { /** * Deserialize a json string * @param json object to deserialize * @return JSON representation as {@link JsonObject} */ JsonObject deserialise(String json); /** * Unmarshall 'meta' section of the response * @param meta section represented as {@link JsonObject...
[ "T deserialize(JsonObject json, DynamicDeserializerFactory deserializerFactory) throws ClassNotFoundException;", "public abstract Object deserialize(Object object);", "public void deserialize(JsonObject src);", "public abstract T deserialize(final JsonNode jsonNode) throws IOException;", "public interface R...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the set of statements that have been created from the given section during the compile process
public Set<Statement> getStatementsFromCache(Section<?> source) { synchronized (statementMutex) { return statementCache.getValues(new SectionSource(source)); } }
[ "List<Component> getStatements();", "Set<Statement> getStatements();", "public org.hl7.fhir.CompositionSection[] getSectionArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Updates the whole client tab
private void UpdateClient() { UpdateClientActive(); UpdateClientConnect(); UpdateClientNet(); if(Ref.client == null) { clientFrametime.setText("N/A"); clientRealtime.setText("N/A"); clientServername.setText("N/A"); clientState.setText("N/A"...
[ "private void updateTab(){\n myTabAccess.accept(this);\n }", "public void updateClient()\n\t{\n\t\t// TODO\n\t}", "public static void updateTab(int tab){\n List<Contestant> contestantList = SqlConnection.getContestantList();\n if( contestantList.size()>0 ){\n TeamList teamList...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This case also covers when n <= encoded[idx]
public int next(int n) { while (idx < encoded.length && n > encoded[idx]) { n -= encoded[idx]; idx += 2; } if (idx >= encoded.length) { return -1; } encoded[idx] -= n; return encoded[idx + 1]; }
[ "public abstract long encodedSize(int index);", "private void RunEncode()\n {\n int block_index = 0;\n int out_arr_index = 0;\n byte count = 1;\n byte i = block[block_index];\n int size = block.length;\n out_array = new byte[2 * size];\n\n while (i != -1 && bloc...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets one Cvx object from the database using a query.
public static Cvx selectOne(String command) throws Exception { if (RemotingClient.RemotingRole == RemotingRole.ClientWeb) { throw new ApplicationException("Not allowed to send sql directly. Rewrite the calling class to not use this query:\r\n" + command); } List<Cv...
[ "public static Cvx selectOne(long cvxNum) throws Exception {\n String command = \"SELECT * FROM cvx \" + \"WHERE CvxNum = \" + POut.Long(cvxNum);\n List<Cvx> list = TableToList(Db.GetTable(command));\n if (list.Count == 0)\n {\n return null;\n }\n \n retu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return the set of participations belonging to this customer.
public Set<Participation> getParticipations() { return participations ; }
[ "public java.util.List<Participation> getParticipations();", "public Set<Participant> getParticipants() {\r\n\t\tif (client.currentSession() == null) {\r\n\t\t\treturn Collections.emptySet();\r\n\t\t}\r\n\t\treturn new HashSet<Participant>(client.currentSession().getParticipants());\r\n\t}", "@Override\n\tpubli...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
////////////////////////////////////////////////////////////////////////////////////// Methods required by the LAS2peer framework. ////////////////////////////////////////////////////////////////////////////////////// Method for debugging purposes. Here the concept of restMapping validation is shown. It is important to...
public boolean debugMapping() { String XML_LOCATION = "./restMapping.xml"; String xml = getRESTMapping(); try { RESTMapper.writeFile(XML_LOCATION, xml); } catch (IOException e) { // write error to logfile and console logger.log(Level.SEVERE, e.toString(), e); // create and publish a monito...
[ "public boolean debugMapping() {\n\t\tString XML_LOCATION = \"./restMapping.xml\";\n\t\tString xml = getRESTMapping();\n\n\t\ttry {\n\t\t\tRESTMapper.writeFile(XML_LOCATION, xml);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tXMLCheck validator = new XMLCheck();\n\t\tValidationResult resu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
manageBuffer variant that creates and fills a buffer with elements of an array list with the option of doing so with repetitions of this array then adds it to the list of buffers for this kernel at given argument entry number.
public CLBuffer manageBuffer(String kernelname, String type,int argn,ArrayList s0,int size, String readwrite, boolean modFill){ if(modFill){ return manageBuffer(kernelname, type, argn, "create", size, readwrite, 2 ,s0 , null,false,0);} else{return manageBuffer(kernelname, typ...
[ "public CLBuffer manageBuffer(String kernelname, String type, int argn, String updateMode, int size,\n String readwrite, int fill , ArrayList s0, CLBuffer inbuff, boolean glShared, int glInd){\n \n boolean fillMod = getFillMod(fill);\n \n boolean invalidType = true;\n C...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the title position (DJChartOptions.EDGE_TOP, DJChartOptions.EDGE_BOTTOM, DJChartOptions.EDGE_LEFT, DJChartOptions.EDGE_RIGHT).
public DJPieChartBuilder setTitlePosition(byte titlePosition) { this.chart.getOptions().setTitlePosition(titlePosition); return this; }
[ "private void setTitle() {\n title.setText(managedPrideChart.getPrideChart().getChartTitle());\n Font titleFont = new Font(title.getFont().getFontName(), Font.BOLD, 20);\n title.setFont(titleFont);\n }", "void setChartHeading(String title);", "private void setupTitle(){\n\t\tJLabel title...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column ecs_ego_post.cover_id
public void setCover_id(String cover_id) { this.cover_id = cover_id == null ? null : cover_id.trim(); }
[ "public String getCover_id() {\n return cover_id;\n }", "public void setCover(String cover) {\n\tthis.cover = cover;\n}", "public void setCover(String cover) {\n this.cover = cover == null ? null : cover.trim();\n }", "public void setCourseCoverId(Integer courseCoverId) {\n this.cou...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
.dstore.values.StringValue value_list1 = 2;
io.dstore.values.StringValue getValueList1();
[ "io.dstore.values.StringValue getValueList2();", "io.dstore.values.StringValueOrBuilder getValueList1OrBuilder();", "io.dstore.values.StringValue getValue();", "io.dstore.values.StringValueOrBuilder getValueListOrBuilder();", "io.dstore.values.StringValue getDescription();", "io.dstore.values.StringValue ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Given an input string x, CompareSubject(string) will return true if either GetWords() or Breaker() returns true SubjectList = ["BIOLOGY DEPARTMENT", "CHEMISTRY", "INSTITUTE OF GEOGRAPHY", "MATH", "SCHOOL OF PHYSICS"] CompareSubject("Biology") => true CompareSubject("School Of Physics") => true CompareSubject("hello") =...
public static boolean CompareSubject(String line, List<String> inputList) { for (String word : Assistant.GetWords(line)) { // Check if word matches a department name if (Collections.binarySearch(inputList, word) >= 0) { // System.out.println("True 1"); re...
[ "public static boolean CompareSubject(String line) {\n\n for (String word : Assistant.GetWords(line)) {\n // Check if word matches a department name\n if (Collections.binarySearch(Assistant.SubjectList, word) >= 0) {\n // System.out.println(\"True 1\");\n r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column TRSDEAL_PROMISSORY_FX.SWITCHED_CIF
public void setSWITCHED_CIF(BigDecimal SWITCHED_CIF) { this.SWITCHED_CIF = SWITCHED_CIF; }
[ "public BigDecimal getSWITCHED_CIF()\r\n {\r\n\treturn SWITCHED_CIF;\r\n }", "public void setCIF_NO(BigDecimal CIF_NO)\r\n {\r\n\tthis.CIF_NO = CIF_NO;\r\n }", "public void setCLI_VAT_PAYABLE_CIF(BigDecimal CLI_VAT_PAYABLE_CIF)\r\n {\r\n\tthis.CLI_VAT_PAYABLE_CIF = CLI_VAT_PAYABLE_CIF;\r\n }",...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create a renderer for the selected output type (plain, YUI, CSS).
private Renderer createRenderer(FacesContext context) { switch (getOutputType()) { case YUI: return new YUIRenderer(context); case CSSPOPUP: return new CssPopupRenderer(context); case DEFAULT: return new Renderer(context); ...
[ "public Renderer createRenderer() throws MojoExecutionException {\r\n \r\n Renderer renderer = null;\r\n if (\"xml\".equals(format)) {\r\n renderer = new XMLRenderer(\"UTF-8\");\r\n } else if (\"csv\".equals(format)) {\r\n renderer = new CSVRenderer();\r\n } else if (!\"\".equals(format)...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Optional. Minimum scaledown threshold as a fraction of total cluster size before scaling occurs. For example, in a 20worker cluster, a threshold of 0.1 means the autoscaler must recommend at least a 2 worker scaledown for the cluster to scale. A threshold of 0 means the autoscaler will scale down on any recommended cha...
public Builder setScaleDownMinWorkerFraction(double value) { scaleDownMinWorkerFraction_ = value; bitField0_ |= 0x00000010; onChanged(); return this; }
[ "@java.lang.Override\n public double getScaleDownMinWorkerFraction() {\n return scaleDownMinWorkerFraction_;\n }", "@java.lang.Override\n public double getScaleDownMinWorkerFraction() {\n return scaleDownMinWorkerFraction_;\n }", "public Builder setScaleUpMinWorkerFraction(double value) {\n\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
anyServiceTracker = new AnyServiceTracker(context, ServletContext.class, null); anyServiceTracker.open(); Dictionary properties = new Hashtable(); properties.put( "contextPath", "rapdemo" ); registration = context.registerService( ApplicationConfiguration.class.getName(), new Rap02Configuration(), null );
@Override public void start(BundleContext context) throws Exception { System.out.println("rap02 start..."); // httpServiceTracker = new Rap02ServiceTracker(context, HttpService.class, null); // httpServiceTracker.open(); webContainerServiceTracker = new WebContainerServiceTracker(con...
[ "private void initServices() {\n\t\ttsa = (TrackerServiceAsync) GWT.create(TrackerService.class);\t\t\n\n\t\tServiceDefTarget endpoint = (ServiceDefTarget) tsa;\n\t\tendpoint.setServiceEntryPoint(GWT.getModuleBaseURL() + URL_TRACKER_SERVICE);\n\t}", "private void registerServlet(){\n\t\tif (ref == null){\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The length of the error string in the header in bytes
public int errorStringLength() { return frameLength() - offendingHeaderFrameLength() - ErrorFlyweight.HEADER_LENGTH; }
[ "public int headerLength();", "int getMinHeaderLength();", "public int getPacketHeaderLength();", "public int offendingHeaderFrameLength()\n {\n return buffer().getInt(offset() + OFFENDING_HDR_FRAME_LENGTH_FIELD_OFFSET, LITTLE_ENDIAN);\n }", "@Test\n\tpublic void testGetLength() {\n\t\tassertEq...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Given a prefix and visible symbols, this method will return a type name by appending a number to the end.
public static String generateTypeName(String prefix, Set<String> visibleSymbolNames) { String typeName = prefix; int idx = 0; while (visibleSymbolNames.contains(typeName) || CommonUtil.BALLERINA_KEYWORDS.contains(typeName)) { idx++; typeName = prefix + idx; } ...
[ "String getTypeName();", "public String getTypeName();", "protected String typeToName(\n int type)\n {\n String s = \"\";\n\n switch(type) {\n case Types.VARCHAR:\n s = \"VARCHAR\";\n break;\n case Types.INTEGER:\n s = \"INTEGER\";\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns true if drill through is possible for this Cell. Returns false if the Cell is based on a calculated measure.
boolean canDrillThrough();
[ "public boolean canWalk() {\n\t\treturn rangeBottomLeft != null && !rangeBottomLeft.equals(location)\n\t\t\t\t&& rangeTopRight != null && !rangeTopRight.equals(location);\n\t}", "public boolean isWalkable() {\n return type != CellType.WALL && isInBoundaries();\n }", "protected boolean drillVertex() {\n r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Convert milliseconds into SQLcompliant string YYYYMMDD HH:MM:SS
public static String sqlDateTime(long millis) { return new java.sql.Date(millis).toString() + " " + new java.sql.Time(millis).toString(); }
[ "public String date2String(long time);", "public static String formatMillisecondTime(long millis) {\n //\n // Less than a second?\n if(millis < 1000) {\n return String.format(\"0.%03ds\", millis);\n }\n\n long secs = TimeUnit.MILLISECONDS.toSeconds(millis);\n\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Unregisters a channel from the specified handler.
public boolean unregisterChannel(IPacketHandler handler, String channel) { boolean ret = false; ArrayList<IPacketHandler> handlers = channelToHandlers.get(channel); ArrayList<String> channels = handlerToChannels.get(handler); if (handlers != null && handler...
[ "Promise<Void> unregisterHandler(String address, Handler<? extends Message> handler);", "public String[] unregisterHandler(IPacketHandler handler)\n {\n ArrayList<String> tmp = handlerToChannels.get(handler);\n if (tmp != null)\n {\n String[] channels = ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get buildNumber (set during build process to 10).
public static final int getBuildNumber() { return 10; }
[ "public static int getBuildNumber()\n {\n return buildNumber;\n }", "public static String getBuildNumber() {\n storeBuildInfo();\n return buildNumber;\n }", "Integer getBuildNumber();", "public static final int getBuildNumber() { return 0; }", "public Integer getBuildNo() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets color to level, specified by index.
void setLevelColor(int index, Color color);
[ "void setLevelFillColor(int index, Color fillColor);", "public void setLevel(int index, Level level){\n\t\tlevels.set(index-1, level);\n\t}", "Color getLevelColor(int index);", "void setPaletteIndex(int index, int red, int green, int blue);", "Color getLevelFillColor(int index);", "public void setColoring...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adds D to the front of the DoubleChain.
public void insertFront(double d) { /* your code here */ head.next = new DNode(head, d , head.next); head.next.next.prev = head.next; size += 1; }
[ "public void insertFront(double d) {\n\t\t/* your code here */\n\t\tDNode pointer = this.head;\n\t\twhile (pointer.prev != null) {\n\t\t\tpointer = pointer.prev;\n\t\t}\n\t\tDNode front = new DNode(null, d, pointer);\n\t\tpointer.prev = front;\n\t\thead = front;\n\t}", "public void insertBack(double d) {\n\t\t/* ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Check whether the local resource can be put back to pool If true, unenlist the resource
public boolean isLocalResourceEligibleForReuse(ResourceHandle h) { boolean result = false; if ((!isLocalResourceInTransaction(h))) { try { enforceDelistment(h); } catch (SystemException se) { if (_logger.isLoggable(Level.FINE)) { ...
[ "Boolean getUnbddPool();", "void handleResourceRemoval(String resourceName) {\n boolean lowestInstanceState = resourceRepository.countAllByAvailableIsTrueAndIsRedundantIsFalse() <= 1\n && resourceRepository.countAllByAvailableIsTrueAndIsRedundantIsTrue() <= 1;\n if (!lowestInstanceSta...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Return the DataStore persistent class used to persist WebPage.
@SuppressWarnings("unchecked") private static <K, V extends Persistent> Class<? extends DataStore<K, V>> getDataStoreClass(Class<?> persistentClass, Configuration conf) throws ClassNotFoundException { String className; boolean isDistributedFs = ImmutableConfig.isDistributedFs(conf); if (...
[ "public PersistentStore<?> getPersistentStore()\n {\n PersistentStore<?>[] aStore = m_aStore;\n return aStore == null ? null : m_aStore[0];\n }", "public static DataStore getDataStore() {\n \t\treturn dataStore;\n \t}", "public DataStore getDataStore() {\r\n \t\treturn dataStore;\r\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Instantiates a new framework message impl.
@SuppressWarnings("unused") private FrameworkMessageImpl() { }
[ "Message createMessage();", "public MessageFactory() {}", "public SAGMessageImpl() {\n SwiftMessage msg = objectFactory.getNewMessage();\n msg.setEnvelope(objectFactory.getNewEnvelope());\n msg.setLetter(objectFactory.getNewLetter());\n setSwiftMessage(msg);\n if (logger.isLog...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Stop continuous measurements based on VL53L1_stop_range()
void stopContinuousNew() { writeReg(Register2.SYSTEM__MODE_START, (byte)0x80); // mode_range__abort // VL53L1_low_power_auto_data_stop_range() begin calibrated = false; // "restore vhv configs" if (saved_vhv_init != 0) { writeReg(Register2.VHV_CONFIG__I...
[ "protected void stopContinuous() {\n writeReg(SYSRANGE_START.bVal, 0x01); // VL53L1X_REG_SYSRANGE_MODE_SINGLESHOT\n\n writeReg(0xFF, 0x01);\n writeReg(0x00, 0x00);\n writeReg(0x91, 0x00);\n writeReg(0x00, 0x01);\n writeReg(0xFF, 0x00);\n }", "public void setSTOP(int v...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ (Made by Mr Rodney Cocker) Creates cars for use in the system available or booking. Description: This method creates a car.
private void createCar() throws Exception { String id = "", make, model, driverName; String type, refreshments; boolean proceed = true; double sscStandardFee = 0; int numPassengers = 0; System.out.print("Enter registration number: "); id = promptUserForRegNo(); if (id.length() != 0) { // Get d...
[ "public void makeCars()\n\t{\n\t\t//users can add colors or names\n\t\tString[] names = new String[]{\"DYLAN\",\"EDAN\",\"RICKY\",\"NEATO\"};\n\t\tColor[] colors = new Color[]{Color.BLUE,Color.RED,Color.GREEN,Color.MAGENTA,Color.GRAY,new Color(255,128,0)};\n\t\t\n\t\tfor(int i=0; i<cars.length; i++)\n\t\t{\n\t\t\tS...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets an argument of the function based on the name of it.
public VariableBase getArgument(String name) { return this.arguments[this.argumentSymbols.get(name).intValue()]; }
[ "String getArgument();", "Object getArg();", "java.lang.String getArg();", "public FunctionParameter getNamedArgumentConsumer();", "Argument getArg();", "public Object getArgument(String parameterName) {\n return _arguments.get(parameterName);\n }", "public FunctionParameter getParameter(String para...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
split the current node at the offset
private void split(int offset) { char[] childText = subArray(_text, offset); _text = subArray(_text, 0, offset); // add the Node representing after the offset as a child Node child = new Node(childText, _values, _children); _values = null; _child...
[ "private void split(){\n // Slice horizontaly to get sub nodes width\n float subWidth = this.getBounds().width / 2;\n // Slice vertically to get sub nodes height\n float subHeight = this.getBounds().height / 2;\n float x = this.getBounds().x;\n float y = this.getBounds().y;...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Run the void writeAllRelationships(Table,boolean,WriteStats,LineWriter) method test.
@Test public void testWriteAllRelationships_fixtureInstance_18() throws Exception { DotFormatter fixture = getFixtureInstance(); Table table = new Table(new Database(Config.getInstance(), (Connection) null, (DatabaseMetaData) null, "", "", "", new SchemaMeta("", "", "")), "", "", "", ""); boolean twoDegreesOfS...
[ "@Test\n\tpublic void testWriteAllRelationships_fixtureInstance_4()\n\t\tthrows Exception {\n\t\tDotFormatter fixture = getFixtureInstance();\n\t\tTable table = new Table(new Database(Config.getInstance(), (Connection) null, (DatabaseMetaData) null, \"\", \"\", \"\", new SchemaMeta(\"\", \"\", \"\")), \"\", \"\", \...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Lista de todos os jogos que ainda estao sendo executados com status 1
public ArrayList<Jogo> getJogosExecutando() { ArrayList<Jogo> jogos= new ArrayList<Jogo>(); PreparedStatement pstmt = null; ResultSet rs = null; Connection conexao = criarConexao(); try { String sql = "select * from jogos where status="+1; pstmt = conexao.prepareStatement(sql)...
[ "public List<Obsequio> getListaObsequiosSinEnviar() throws SQLException {\n Cursor obsentregados = null;\n List<Obsequio> mObsequios = new ArrayList<Obsequio>();\n obsentregados = mDb.query(true, ConstantsDB.OB_TABLE, null,\n ConstantsDB.STATUS + \"= '\" + Constants.STATUS_NOT_SU...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Will retrieve 8 bit grayscale value from given image at given coordinates.
private static int getG8(BufferedImage image, int x, int y) { return image.getRGB(x, y) & 0xFF; }
[ "private static void setG8(BufferedImage image, int x, int y, int value) {\n assert (value >= 0 && value <= 255);\n image.setRGB(x, y, value | (value << 8) | (value << 16));\n }", "IPixel getPixel(int x, int y);", "private void grayscale(){\n int len= currentIm.getRows() * currentIm.getC...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Collect all src table names and aliases in from clause. If a table has an alias, then both its alias and name are returned. Note that src table name and aliase within any subquery won't be included.
public static void getSrcTblAndAlias(CommonTree n, Set<String> srcTblAliases) { Map<String, String> srcTbls = new HashMap<String, String>(); getSrcTblAliasNamePair(n, srcTbls); for (String alias : srcTbls.keySet()) { srcTblAliases.add(alias); String name = srcTbls.get(alias); if (name != n...
[ "public static void getSrcTblAliasNamePair(CommonTree n, Map<String, String> srcTbls) {\n // We need only process all top TABLE_REF_ELEMENT nodes of the children of the from node.\n //\n if (n.getType() == PantheraParser_PLSQLParser.TABLE_REF_ELEMENT) {\n String alias = null;\n String name = null...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
componentSizesAndPositions vector has already been initialized to current conditions mouse is over a location and this figures out where the drop should occur s_currentComponentPanel is the CompositeComponentPanel of the current DropPanel
protected void insertDropPanel(java.awt.dnd.DropTargetDragEvent dtde) { java.awt.Component dropComponent = dtde.getDropTargetContext().getComponent(); java.awt.datatransfer.Transferable currentTransferable = edu.cmu.cs.stage3.alice.authoringtool.util.DnDManager.getCurrentTransferable(); edu.cmu.cs.stage3.alice...
[ "@Override\n public void componentMoved(ComponentEvent e) {\n win_loc = e.getComponent().getLocation();\n \n }", "public interface DropTarget\n{\n\t/*********************************************************************************************************************\n <b>Description</b>: Gets...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Confirm Group Memberships step
@XmlTransient public boolean isConfirmGroupMemberships() { return (WizardState.confirmGroupMemberships.equals(getWizardState())); }
[ "public int doGroupConfirmation() {\n if (confirmState == Constants.CONF_STATE_INPUT) {\n populateFieldConfirm();\n return confirmState;\n }\n\n if (confirmState == Constants.CONF_STATE_CONFIRMATION){\n compareConfirmationValues();\n return confirmSta...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Service Interface for managing Author.
public interface AuthorService { /** * Save a author. * * @param authorVO the entity to save * @return the persisted entity */ void insert(AuthorVO authorVO); /** * Get all the authors. * * @param pageable the pagination information * @return the list of ent...
[ "public interface AuthorService {\n /**\n * Creates Author object\n * @param author Author instance\n * @return Author identifier\n * @throws LogicException if DAOException obtained\n */\n Long createAuthor(Author author) throws LogicException;\n\n /**\n * Deletes field from databas...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Tests reading live + snag initial densities.
public void testMixedTreeDensityReading() { String sFunc = "testMixedTreeDensityReading"; try { GUIManager oManager = new GUIManager(null); oManager.inputXMLFile(writeXMLFile3(), null); TreePopulation oPop = oManager.getTreePopulation(); TreeBehavior oPopBeh = oPop.getTreeBehavior(); ...
[ "public void testLiveTreeDensityReading() {\n String sFunc = \"testLiveTreeDensityReading\";\n try {\n GUIManager oManager = new GUIManager(null);\n oManager.inputXMLFile(writeXMLFile1(), null);\n TreePopulation oPop = oManager.getTreePopulation();\n TreeBehavior oPopBeh = oPop.getTreeBeha...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns either the immutable target or the actual target if updating thread.
protected MapService<K, V> targetView() { return ((updatingThread == null) || (updatingThread != Thread.currentThread())) ? immutable : target(); }
[ "public Mob getTarget() {\r\n return target.get();\r\n }", "@Override public MobTargettingThread getTargetter() {\n return mt;\n }", "public Object getTarget() {\n return target;\n }", "public Target getTarget(){\r\n\t\treturn target;\r\n\t}", "protected DataTarget<?> getTarget...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets home address of admin
public void setHome(String val) { this.home = val; }
[ "public void setHomeAddress(gui.framework.Address _homeAddress)\n {\n homeAddress = _homeAddress;\n }", "public void setHome(Location home) {\n this.home = home;\n }", "public void setHomeAddress(String homeAddress) {\n this.homeAddress = homeAddress;\n }", "public void setHomeAddress...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checks if the node has incident edges.
public static boolean hasIncidentEdges(int i, List<Node> nodes) { return (nodes.get(i).getOutgoing().size() != 0) || (nodes.get(i).getIncoming().size() != 0); }
[ "public boolean isIncident(Host vertex, Connection edge) {\r\n\t\treturn getIncidentEdges(vertex).contains(edge);\r\n\t}", "private boolean hasIncomingEdges(T node) {\n\t\tfor (Edge edge : edges) {\n\t\t\tif (edge.getToNode().equals(node)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "priva...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test of setIsVerified method, of class EncodeChromosome.
@Test public void testSetIsVerified() { System.out.println("setIsVerified"); boolean verified = true; EncodeChromosome instance = new EncodeChromosome(); instance.setIsVerified(verified); }
[ "@Test\n public void testGetIsVerified() {\n System.out.println(\"getIsVerified\");\n EncodeChromosome instance = new EncodeChromosome();\n instance.setIsVerified(true);\n int expResult = 1;\n int result = instance.getIsVerified();\n assertEquals(expResult, result);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
WebElement course = driver.findElement(By.cssSelector(".formcontrol.ngvalid.ngstarinserted.ngdirty.ngtouched"));
@When("Select course details from dropdown {string}") public void select_course_details_from_dropdown(String coursedetails) throws Exception { WebElement course = driver.findElement(By.name("TrainingList")); Select element1 = new Select(course); element1.selectByVisibleText(coursedetails); ...
[ "private WebElement getLocator_course_or_thesis_input(){\n\n\t\treturn this.getBy(By.xpath(\"//*[@id=\\\"ANSWER_TTQ_MENSYS_8__chosen\\\"]/ul/li/input\"));\n\t}", "@Test\n public void assignCourseTeacher() {\n driver.get(\"http://localhost:3000/teacher\");\n log.info(() -> \"Successfully enter the...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Attempt to verify a signature using the key from the supplied credential.
protected boolean verifySignature(@Nonnull final Signature signature, @Nonnull final Credential credential) { try { SignatureValidator.validate(signature, credential); } catch (final SignatureException e) { log.debug("Signature validation using candidate validation credential fai...
[ "protected boolean verifySignature(Signature signature, Credential credential) {\n SignatureValidator validator = new SignatureValidator(credential);\n try {\n validator.validate(signature);\n } catch (ValidationException e) {\n log.debug(\"Signature validation using candi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The Atomix configuration uri. The option is a: java.lang.String type. Group: producer
default AtomixMultiMapEndpointBuilder configurationUri( String configurationUri) { doSetProperty("configurationUri", configurationUri); return this; }
[ "public URI getConfigurationURI()\r\n {\r\n return m_config;\r\n }", "public interface ServerConfig extends ModuleConfig {\n\n @ConfigDescription(\n value = \"Server public URI\",\n defaultString = \"http://localhost:8666/\"\n )\n public String publicURI();\n}", "public Strin...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the system property indicated by the specified key. System Properties in JavaFX environment can be classified into 2 types: 1. Runtime platform associated property. Those properties have an equivalent in current java runtime environment (SE/ME). The FX.getProperty() method retrieves those properties by mapping spe...
public static String getProperty (String key) { return SystemProperties.getProperty(key); }
[ "private static String getSystemProperty(String key) {\n \ttry {\n \t return (System.getProperty(key));\n \t} catch (Exception e) {\n \t ErrorMsg.reportStatus(e);\n \t}\n \treturn (\"\");\n }", "public String getSystemProperties(String key) {\n // Whether EDGE, UMTS, etc...\n return System...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates an instance of ImageTemplateFileCustomizer class.
public ImageTemplateFileCustomizer() { }
[ "public ImageTemplateRestartCustomizer() {\n }", "public ImageFilePreviewer()\n {\n }", "FileImage createFileImage();", "public ImageFilter() {\r\n\t\tsuper();\r\n\t\textensions = new ArrayList<String>();\r\n\t\tsetExtensions();\r\n\t}", "public static @NotNull FileFilter createFilterForImage()\r\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Instantiates a new factor repository.
public FactorRepository(CouchDbConnector db) { super(Factor.class, db); initStandardDesignDocument(); }
[ "public static void initRepository() {\n deserialize();\n if (flightRepository == null) {\n flightRepository = new FlightRepository();\n }\n }", "Repository createRepository();", "private RepositoryFactories() {\n }", "Factor createFactor();", "private SimpleRepository(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a generic action context with no provider, with the given context object
public ActionContext createContext(Object contextObject) { return new DefaultActionContext().setContextObject(contextObject); }
[ "public ActionContext createContext(ComponentProvider provider, Object contextObject) {\n\t\treturn new DefaultActionContext(provider).setContextObject(contextObject);\n\t}", "Context createContext();", "public TemplateContext()\n {\n this(null);\n }", "private ContextAction() {\n initFields...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Overwrites the second attribute of the entry with the given name.
public void setAttr2 (String value, String name) { setAttr2(value, entryNames.indexOf(name)); }
[ "public String getAttr2 (String name) {\n return getAttr2(entryNames.indexOf(name));\n }", "public void setAttr1 (String value, String name) {\n setAttr1(value, entryNames.indexOf(name));\n }", "public void setAttr2 (String value, int index) {\n if(index < entryNames.size() && index >= 0) {\n wr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a statement corresponding to the HQL statement "SELECT id, equals(geom, :filter) from GeomEntity where equals(geom, :filter) = true and srid(geom) = 4326"
protected abstract NativeSQLStatement createNativeEqualsStatement(Geometry geom);
[ "protected abstract NativeSQLStatement createNativeFilterStatement(Geometry geom);", "protected abstract NativeSQLStatement createNativeContainsStatement(Geometry geom);", "public Map<Integer, Boolean> getFilter(Geometry geom) throws SQLException {\n return retrieveExpected(createNativeFilterStatement(ge...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns all payment types for which a costumer can create new payment infos in the context of an subscription. The returned collection reflect all payment types the supplier has enabled for this customer, without INVOICE. The function returns null in case the suppliedId is not set.
public List<VOPaymentType> getAvailablePaymentTypesForCreation() { return paymentInfoBean.getAvailablePaymentTypesForCreation( model.getService().getKey(), getAccountingService()); }
[ "public abstract java.util.Set getPaymentTypes();", "@org.jetbrains.annotations.NotNull()\n public abstract java.util.List<java.lang.String> getPaymentMethodTypes();", "public PaymentTypeObject[] getAllPaymentTypes() throws AppException;", "public Collection<VOPaymentType> getEnabledPaymentTypes() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Updates the DetailWindow with the information of the Component currently selected
public void updateDetailWindow();
[ "private void updateSelectedDetailsPanel() {\n\t\tfinal ObservableList<Project> selectedItems = selectionList.getSelectionModel().getSelectedItems();\n\t\tif (selectedItems.size() == 1) {\n\t\t\tselectedPanel.setVisible(true);\n\t\t\tfinal Project p = selectedItems.get(0);\n\t\t\tselectedName.setText(p.getName());\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Function to display the selected recipe details
public void displaySelectedRecipe(List<ParseObject> inputResults) { ParseObject parseObj=null; Log.i("LoadRecipe-", "displaySelectedRecipe called"); // get the first matching recipe, since there will be only one matching recipe if(inputResults.size() > 0) { parseObj = inputResults.get(0); String nam...
[ "public void showSelectedRecipe() {\n selected = recipeList.getSelectedValue().toString();\n recipeName.setText(selected);\n recipeInfo.setText(model.getRecipeInformation(selected));\n }", "protected void displayRecipe(){\n Log.d(\"recipeBook\", \"Retrieving recipe contents\");\n\n MyDBHan...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get Menu Payments. Show Menu Payments
public boolean isMenuPayments();
[ "CoolpayPaymentListResponse listPayments();", "public static void printMenuList(){\r\n\t\tmenu = RestaurantManager.getMenuItems(); //get menu items from RestaurantManager and save them to attribute.\r\n\t\tprices = RestaurantManager.getPrices(); // get prices from RestaurantManager and save them to attribute.\r...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Extract Shiro related configuration.
public ShiroConfiguration getShiroConfiguration() { return this.shiroConfiguration; }
[ "com.v2ray.core.common.protocol.SecurityConfig getSecuritySettings();", "public abstract Map<String, String> getHadoopSaslProperties(Configuration conf);", "private void initCredentialsFromSettings() {\n String serverId = getServerId();\n if (serverId != null) {\n MavenUtils.decrypt(set...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column CTSCARDS_MGT_HST.PARENT_APP_REF
public void setPARENT_APP_REF(BigDecimal PARENT_APP_REF) { this.PARENT_APP_REF = PARENT_APP_REF; }
[ "public BigDecimal getPARENT_APP_REF() {\r\n return PARENT_APP_REF;\r\n }", "public void setPARENT_REF(String PARENT_REF) {\r\n this.PARENT_REF = PARENT_REF == null ? null : PARENT_REF.trim();\r\n }", "public void setParentHsCodeId(Long value) {\r\n this.parentHsCodeId = value;\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Adds a mapping to the key or controller map. If DEADZONE type is used, keycode is ignored and action should be the deadzone value.
public void addMapping(MappingType type, int keyCode, float action, boolean controller) { String prefix = ""; String suffix = ""; switch (type) { case BUTTON: prefix = "btn-"; break; case AXIS_POS: prefix = "axis-"; suffix = "+"; break; case AXIS_NEG: prefix =...
[ "public void addKeyMapping(KeyStroke keyStroke, EditorAction action) {\n inputMap.put(keyStroke, action.getName());\n actionMap.put(action.getName(), action);\n }", "private static Map<KeyCode, LevelElementAction> createKeyMappingP2() {\n Map<KeyCode, LevelElementAction> keyMapping = new HashM...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Annotation with parameter that takes request When typing '/hello' in the URL Since we're using port 8080 with Tomcat Server, you access the sayHi() method with
@RequestMapping("/hello") // Should return this method // Returns 'Hi' back public String sayHi() { return "Hi, hope all is well with you and your loved ones. \n" + "Welcome to DaAztechStudent's 1st RESTful web service!"; }
[ "@GetMapping(path = \"/hello-world\")// then define request method inside\n\tpublic String helloWorld() {\n\t\treturn \"Hello World\";\n\t}", "@GetMapping(path = \"/hello-world/path-variable/{name}\")// then define request method inside\n\tpublic HelloWorldBean helloWorldPathVariable(@PathVariable String name) {\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
If the property is defined in a super class use the setter as this will be able to set the value in the super class.
private static void handleSettingDeserializedValue(JavaBlock methodBlock, String modelVariableName, ClientModelProperty property, String value, boolean fromSuper) { if (fromSuper) { methodBlock.line(modelVariableName + "." + property.getSetterName() + "(" + value + ");"); } else { ...
[ "public void setPropertySetterInSuperSuperClass(int setterInSuperClass) {\n\n }", "public abstract void setValue(ELContext context,\n Object base,\n Object property,\n Object value);", "public static <T> void s...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
required .NotifySMITZNOStatusRq.NOTIFYSMITZNOSTATUSRQ.ZNO Zno = 39 [(.validation.required) = true];
Valid.NotifySMITZNOStatusRq.NOTIFYSMITZNOSTATUSRQ.ZNO getZno();
[ "Valid.NotifySMITZNOStatusRq.NOTIFYSMITZNOSTATUSRQ.ZNOOrBuilder getZnoOrBuilder();", "Valid.NotifySMITZNOStatusRq.NOTIFYSMITZNOSTATUSRQ getNotifySMITZNOStatusRq();", "Valid.NotifySMITZNOStatusRq.NOTIFYSMITZNOSTATUSRQOrBuilder getNotifySMITZNOStatusRqOrBuilder();", "public Valid.NotifySMITZNOStatusRq.NOTIFYSMI...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get minimum of the standardized data item standard deviations
public double standardizedMinimumOfItemStandardDeviations(){ return standardizedItemStandardDeviationsMin; }
[ "public double standardizedMinimumOfItemMeans(){\n return standardizedItemMeansMin;\n }", "public double standardizedMinimumOfItemVariances(){\n return standardizedItemVariancesMin;\n }", "public double standardizedStanadarDeviationOfItemMinima(){\n return standardizedItemMinimaSd;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Case ID:125146. Test Case Name: Check View All after accepting a Space Invitation. PreCondition: User A is manager of the space 1 User A invite User B to join the space 1 Space Invitation notification is activated in the settings of User B PostCondition:
@Test public void test04_CheckViewAllAfterAcceptingASpaceInvitation() { info("Test 4: Check View All after accepting a Space Invitation"); /*Step Number: 1 *Step Name: Step 1 : Check notification list *Step Description: - Login with User B - Click Notifications icon - Check the notifications list ...
[ "@Test\n\tpublic void test05_CheckViewAllAfterRefusingASpaceInvitation() {\n\t\tinfo(\"Test 5: Check View All after refusing a Space Invitation\");\n\t\t/*Step Number: 1\n\t\t*Step Name: Step 1 : Check notification list\n\t\t*Step Description: \n\t\t\t- Login with User B\n\t\t\t- Click Notifications icon\n\t\t\t- ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Given a JobListeningContext, awaits the result of the job execution that this context is bound to
public static JobExecutionResult awaitJobResult(JobListeningContext listeningContext) throws JobExecutionException { final JobID jobID = listeningContext.getJobID(); final ActorRef jobClientActor = listeningContext.getJobClientActor(); final Future<Object> jobSubmissionFuture = listeningContext.getJobResultFutur...
[ "public Status waitUntilFinished();", "public interface ProcessWatcherExecutor\n{\n\t/**\n\t * Executes the job tree, according to specification.\n\t *\n\t * @param specification\n\t * \tjob tree specification.\n\t *\n\t * @return\n\t * \tfuture eventually containing the first failure.\n\t */\n\tContext execute(S...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
~ constructors Instantiates a new component is active clause.
public ComponentIsActive() { }
[ "private Criteria buildActiveCriteria(){\r\n Criteria criteria = new Criteria();\r\n criteria.addEqualTo(KRADPropertyConstants.ACTIVE, true);\r\n\r\n return criteria;\r\n }", "protected Criteria buildActiveCriteria() {\r\n Criteria criteria = new Criteria();\r\n criteria.addE...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the keyword used to flag a text message as the confirmation text for a repayment
public void setRepaymentConfirmationKeyword(String keyword){ repaymentConfirmationKeyword = keyword; }
[ "public void setDispersalConfirmationKeyword(String keyword){\n\t\tdispersalConfirmationKeyword = keyword;\n\t}", "public String getRepaymentConfirmationKeyword(){\n\t\treturn repaymentConfirmationKeyword;\n\t}", "@Override\n\tpublic void setText(java.lang.String text) {\n\t\t_dialogMessage.setText(text);\n\t}"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__Form__Alternatives" $ANTLR start "rule__Const__ValAlternatives_0" InternalDSLSAT.g:335:1: rule__Const__ValAlternatives_0 : ( ( 'true' ) | ( 'false' ) );
public final void rule__Const__ValAlternatives_0() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalDSLSAT.g:339:1: ( ( 'true' ) | ( 'false' ) ) int alt2=2; int LA2_0 = input.LA(1); if ( (LA2_0==12) ) { ...
[ "public final void rule__BoolValue__ValueAlternatives_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:5448:1: ( ( 'true' ) | ( 'false' ) )\n int alt18=2;\n int LA18_0 = input.LA(1);\n\n if ( (...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ Returns the calculated expected total trip distance of the carpool. Distance is calculated by using a Mapper to perform a Google Maps API request with the carpool's trip details.
private int calculateTotalTripDistance() { System.out.println("Calculating Total Trip Distance..."); System.out.println("...for Carpool: driver = " + getDriverPost().author + "...."); for (RideRequestPost riderPost : getRiderPosts()) { System.out.println("...and rider = " + riderPo...
[ "public int getTotalTripDistance() {\n return getCarpoolTotalTripDistanceValue(mDocument);\n }", "public int getEstimatedTotalTripDistanceInMeters() {\n // Only calculate the total distance time if necessary:\n if (totalTripDistance == -1) { // if totalTripDistance is unset or in an invali...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
get the first string which match the regex
public static String firstMatch(String str, String regex){ Pattern p = Pattern.compile(regex); Matcher m = p.matcher(str); while (m.find()) { String group = m.group(); return group; } return null; }
[ "public static String getMatch(String str, String regex) {\n\t\tMatcher m = Pattern.compile(regex).matcher(str);\n\t\twhile (m.find()) {\n\t\t\t// Return the first substring that is matched\n\t\t\treturn m.group(1);\n\t\t}\n\t\t\n\t\treturn \"\"; // If there aren't any matches, return an empty String\n\t}", "java...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__OR_Relation__Group__0__Impl" $ANTLR start "rule__OR_Relation__Group__1" ../org.xtext.example.rmodp.ui/srcgen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:8948:1: rule__OR_Relation__Group__1 : rule__OR_Relation__Group__1__Impl rule__OR_Relation__Group__2 ;
public final void rule__OR_Relation__Group__1() throws RecognitionException { int stackSize = keepStackSize(); try { // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:8952:1: ( rule__OR_Relation__Group__1__Im...
[ "public final void rule__OR_Relation__Group__0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:8921:1: ( rule__OR_Relat...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column comment.gmt_create
public Long getGmtCreate() { return gmtCreate; }
[ "public Long getGmt_create() {\n return gmt_create;\n }", "@Generated(value = \"org.mybatis.generator.api.MyBatisGenerator\", date = \"2020-04-12T12:59:05.835+09:00\", comments = \"Source field: USER.createdTime\")\r\n public String getCreatedtime() {\r\n return createdtime;\r\n }", "publ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
BEAUTY!!! find the nth to last element. Strategy: If two pointers p1 and p2 are separated by a distance 'n', and p2(along with p1) is slid till the end of the list. The element p1 points to is the nth from last.
public static <T> Node<T> nthToLast(final Node<T> head, int n) { if (head == null || n < 1) return null; Node<T> p1 = head; Node<T> p2 = head; //slide p2 forward to n locations, let p1 stay put. for (int i = 0; i < n-1; i++) { if (p2.getNext() != null) p2 = p2.getNext(); else return null; } ...
[ "public static Node findNthFromEnd(Node head, int n) {\n\t\t\n\t\t//use 2 pointers\n Node cur = head;\n Node p = head;\n \n int count = 1;\n \n while (count <= n -1 ) { //\n cur = cur.next; // the cur pointer moves forward next node\n count += 1; // in...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column url.url_data
public void setUrlData(byte[] urlData) { this.urlData = urlData; }
[ "@JsonIgnore\n public void setDataUrl(String dataUrl) {\n this.dataUrl = dataUrl;\n }", "public void setDataURL(final String dataURL) {\r\n this.dataURL = dataURL;\r\n }", "public void setUrlDataFile(String urlDataFile) {\n\t\tthis.urlDataFile = urlDataFile;\n\t}", "public DataURL setData(Str...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the value of the 'field666' field
public com.maxpoint.cascading.avro.TestExtraLarge.Builder setField666(java.lang.CharSequence value) { validate(fields()[666], value); this.field666 = value; fieldSetFlags()[666] = true; return this; }
[ "public void setField666(java.lang.CharSequence value) {\n this.field666 = value;\n }", "public void setField667(java.lang.CharSequence value) {\n this.field667 = value;\n }", "public void setField668(java.lang.CharSequence value) {\n this.field668 = value;\n }", "public void setField656(java.lang...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
method to find all associate
List<AssociateDTO> findAllAssociates();
[ "public java.util.List<PersistedAttribute> findAll();", "public static List<FoundObject> findAll() {\n\t\treturn getPersistence().findAll();\n\t}", "List<SssAssociation1> selectAll();", "public List<Animal> retrieveAll();", "void readAssociations() {\n // proxy the collections for lazy loading\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column jiaoxuedudao.fashengshjian
public String getFashengshjian() { return fashengshjian; }
[ "public String getChuangjianshijian() {\n return chuangjianshijian;\n }", "public String getShijiangpingjia() {\n return shijiangpingjia;\n }", "public String getChuangjianshijiang() {\n return chuangjianshijiang;\n }", "public String getJianChaBiaoZhun() {\n return jianCh...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
To call to set the component in its determinate state Usually it stops the running animation and become transparent
@Override public void setDeterminate() { stopAnimation(); }
[ "@Override\n public void setIndeterminate() {\n startAnimation();\n }", "private void stopIndeterminate() {\n animation.cancel();\n ViewHelper.setX(progressView, 0);\n runAnimation = false;\n }", "public abstract void stopOpacityAnimation();", "public void onUnfocusAnimati...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
END Tag local image / Tag a remote image file by: 1. Defining what to extract from the image by initializing an array of VisualFeatureTypes. 2. Calling the Computer Vision service's tagImage with the: image URL language in which to display the tags 3. Displaying the image captions and their confidence values.
public static void TagRemoteImage(ComputerVisionClient client, String remoteImageURL) { try { TagResult analysis = client.computerVision().tagImage() .withUrl(remoteImageURL) .withLanguage("en") .execute(); System.out.println("\nTags from local image: "); if (analysi...
[ "public static void TagLocalImage(ComputerVisionClient client, String localImagePath) {\n try {\n File localImage = new File(localImagePath);\n byte[] imgBytes = Files.readAllBytes(localImage.toPath());\n\n TagResult analysis = client.computerVision().tagImageInStream()\n .withImage(imgBy...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Executes the plugin and verifies that all of the generated files match our expected values.
@Test public void testPlugin(@TempDir File outputDirectory) throws Exception { final String mappingsDirectoryPath = mappingsDir.getAbsolutePath(); final String outputDirectoryPath = outputDirectory.getAbsolutePath(); final var mojo = new GenerateCsvWritersFromDslMojo(mappingsDirectoryPath, outputD...
[ "@Test\n public void testPlugin(@TempDir File outputDirectory) throws Exception {\n final String mappingsDirectoryPath = mappingsDir.getAbsolutePath();\n final String outputDirectoryPath = outputDirectory.getAbsolutePath();\n final var mojo =\n new GenerateEntitiesFromDslMojo(mappingsDirectoryPath,...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Appends a list of integer values separated by comma. Useful for IN predicates. The parantheses are not generated automatically.
public Sql appendList(int[] value) { if (value == null) { return this; } formatted = false; for (int i = 0; i < value.length; i++) { if (i > 0) { appendBuffer.append(", "); } appendBuffer.append(value[i]); } return this; }
[ "@Override\n\t\tpublic String toSQL() {\n\t\t\tStringBuilder sb=new StringBuilder();\n\t\t\tsb.append(fieldName).append(\" IN (\");\n\t\t\tboolean first=true;\n\t\t\tfor(Object o :values) {\n\t\t\t\tif(first) {\n\t\t\t\t\tfirst=false;\n\t\t\t\t}else {\n\t\t\t\t\tsb.append(\",\");\n\t\t\t\t}\n\t\t\t\tsb.append(toSql...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ input void parsing from status.txt file, get Originator and nexthop information output void
public static void updateStatus() throws Exception { String command = command = "batctl o"; shellCmd(command, "status.txt");//command 실행 및 status.txt파일로 write RandomAccessFile br = new RandomAccessFile("status.txt", "r"); int nodeCount = 0; String[] temp = {"null", "null"}; ...
[ "public void handleIncoming() {\n\t\t// parse the packet payload\n\t\tPair<Packet,Integer> pp = fwdr.receivePkt();\n\t\tPacket p = pp.left; int lnk = pp.right;\n\n\t\tString[] lines = p.payload.split(\"\\n\");\n\t\tif (!lines[0].equals(\"RPv0\")) return;\n\n\t\tString[] chunks = lines[1].split(\":\");\n\t\tif (!chu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Allows doctor to allocate extra time to patient
@FXML void onClickAllocateExtraTime(ActionEvent event) { treatmentRoom.allocateExtraTime(); }
[ "public void createAppointment(Doctor doctor, Patient patient, Date date, String time)\n {\n AppointmentListSingleton appointments = AppointmentListSingleton.getInstance();\n appointments.addAppointment(doctor, patient, date, time);\n }", "public boolean add(Patient p) {\n\t\tif (currentTimeOc...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column FMSAPPLDOCUMENTS.LINE_NBR
public BigDecimal getLINE_NBR() { return LINE_NBR; }
[ "public BigDecimal getJOINT_LINE_NBR() {\r\n return JOINT_LINE_NBR;\r\n }", "public BigDecimal getLINE_NO() {\r\n return LINE_NO;\r\n }", "public void setLINE_NBR(BigDecimal LINE_NBR) {\r\n this.LINE_NBR = LINE_NBR;\r\n }", "public void setJOINT_LINE_NBR(BigDecimal JOINT_LINE_NBR...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Updates counter by delta from start position.
public synchronized void update(long start, long delta) { long cur = cntr.get(), next; if (cur > start) { log.warning("Stale update counter task [cur=" + cur + ", start=" + start + ", delta=" + delta + ']'); return; } if (cur < start) { // backup no...
[ "public abstract void increment(int delta);", "private void updateDelta() {\r\n // Convert registers to calendar\r\n Calendar c = getCalendarFromRegisters();\r\n\r\n // delta = calendar - elapsed\r\n deltaMs = c.getTimeInMillis() - platform.getMasterClock().getTotalElapsedTimePs() / Ma...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column IECS_OPERATE_INSTR_TRUCKS.OIS_CNTR_NO
public void setOisCntrNo(String oisCntrNo) { this.oisCntrNo = oisCntrNo == null ? null : oisCntrNo.trim(); }
[ "public String getOisCntrNo() {\n return oisCntrNo;\n }", "public void setOisOpinstrid(Long oisOpinstrid) {\n this.oisOpinstrid = oisOpinstrid;\n }", "public void setOcNo(String value) {\n setAttributeInternal(OCNO, value);\n }", "public void setOisOpinstridId(Long oisOpinstridId...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method will retrieve the root element from a given XML file.
public GNElement getRoot(InputStream fileFIS) throws XMLException { try { return GNXMLDocumentUtility.getRoot(fileFIS); } catch (Exception ex) { Logger.warn("[XMLServiceHandler.getRoot]", "Unable to get root element", ex); throw new XMLException("[XMLServiceH...
[ "private Element getRootElement (File xmlFile) {\n try {\n DOCUMENT_BUILDER.reset();\n var xmlDocument = DOCUMENT_BUILDER.parse(xmlFile);\n return xmlDocument.getDocumentElement();\n }\n catch (SAXException | IOException e) {\n throw new XMLException(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a double[] of all the keys in the queue. There is no guarantee that it is sorted Complexity: O(n) where n is the number of elements in the queue
public double[] getKeys(){ double[] keys = new double[ queue.size() ]; int i = 0; for( Node n : queue ){ keys[i] = n.key; i++; } return keys; }
[ "public K[] keys() {\n K[] keys = (K[]) new Object[size()];\n\n if (size() > ??) {\n int index = ??;\n\t int bs = buckets.size();\n\t int g = {|this.size, this.currentCapacity, this.capacityGrowth, this.initialCapacity, bs|};\n for (int i = 0; i < g; i++) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
default constructor initializing an empty node to both head and tail
public SinglyLinkedList() { head = tail = new Node(); }
[ "public LinkedList(){\n head = null;\n tail = null;\n }", "public CircularLinkedList() {\n //creation of the dummy node\n head = null;\n tail = null;\n size = 0;\n }", "public ListNode() {\n this(null, null);\n }", "public LinkedList()\n\t{\n\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__Reference__Group__2__Impl" $ANTLR start "rule__Reference__Group__3" InternalDomain.g:1917:1: rule__Reference__Group__3 : rule__Reference__Group__3__Impl rule__Reference__Group__4 ;
public final void rule__Reference__Group__3() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalDomain.g:1921:1: ( rule__Reference__Group__3__Impl rule__Reference__Group__4 ) // InternalDomain.g:1922:2: rule__Reference__Group__3__Impl ru...
[ "public final void rule__EntityReference__Group__3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../com.idobjects.dsl.ui/src-gen/com/idobjects/dsl/ui/contentassist/antlr/internal/InternalIdObjectsDsl.g:1334:1: ( rule__EntityReference__Gr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
return the position of a given bit. input should have a single bit set.
private int toPos(final int bit) { return Integer.bitCount(bits & (bit - 1)); }
[ "private int bitToInt(char bit) {\n return bit == '0' ? 0 : 1;\n }", "public int bitAt(int i) {\n // PUT YOUR CODE HERE\n }", "int getBitAsInt(int index);", "public static int getFirstSetBitPos(int n){\n // For 0 return 0\n if (n==0){\n return 0;\n }\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }