query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
This method was generated by MyBatis Generator. This method sets the value of the database column TB_PAY_REPARTITION.SEQ_NBR
public void setSEQ_NBR(Long SEQ_NBR) { this.SEQ_NBR = SEQ_NBR; }
[ "public void setSeqNbr(int seqNbr) {\n this.seqNbr = seqNbr;\n }", "public void setPremSeqNo(Integer premSeqNo) {\n\t\tthis.premSeqNo = premSeqNo;\n\t}", "public Long getSEQ_NBR() {\n return SEQ_NBR;\n }", "public void setSeqNum(long value) {\n this.seqNum = value;\n }", "publi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Removes the btn add listener.
public void removeBtnAddListener(ActionListener listener) { btnRemove.addActionListener(listener); }
[ "public void removeButton() {\n this.remove(button);\n }", "public synchronized void removeButtonListener(ButtonListener l) {\r\n listeners.removeElement(l);\r\n }", "public void removeListener();", "public void removeMinesButtonListener(MinesButtonListener l) {\r\n\t\tlisteners.remove(l);...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
empty on purpose to prevent dir from being created in the local file system
@Override protected void createRootDir() { }
[ "private void createDir(){\n\t\tPath path = Path.of(this.dir);\n\t\ttry {\n\t\t\tFiles.createDirectories(path);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private File createEmptyDirectory() throws IOException {\n File emptyDirectory = findNonExistentDirectory();\n if ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the value of the 'field262' field
public java.lang.CharSequence getField262() { return field262; }
[ "public java.lang.CharSequence getField262() {\n return field262;\n }", "public void setField262(java.lang.CharSequence value) {\n this.field262 = value;\n }", "public java.lang.CharSequence getField263() {\n return field263;\n }", "public java.lang.CharSequence getField373() {\n return field37...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the Album matching a specific album ID or an empty album if no match is found.
@NonNull public static Album getAlbum(long albumId) { Album album = albums.get(albumId); return (album != null ? album : Album.NO_ALBUM); }
[ "public Album getAlbum(Long idAlbum) throws RemoteException;", "public Album getAlbum(String id) {\n Album album = albumCache.get(id);\n if (album == null) {\n album = albumDAO.getAlbum(id);\n albumCache.put(id, album);\n }\n return album;\n }", "AlbumRespons...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Setter method for focusPrftCtrCode.
public void setFocusPrftCtrCode(String aFocusPrftCtrCode) { focusPrftCtrCode = aFocusPrftCtrCode; }
[ "public String getFocusPrftCtrCode() {\n\t\treturn focusPrftCtrCode;\n\t}", "public void setFocusPrftCtrName(String aFocusPrftCtrName) {\n\t\tfocusPrftCtrName = aFocusPrftCtrName;\n\t}", "public void setFocusPrftCtrId(long aFocusPrftCtrId) {\n\t\tfocusPrftCtrId = aFocusPrftCtrId;\n\t}", "public native void se...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
find in the user.xml with the name
public User getUser(String name) throws DocumentException{ for (Iterator iter = root.elementIterator(); iter.hasNext();) { Element e = (Element) iter.next(); if(e.elementText("username").equals(name)){ User user = new User(); user.setMail(e.elemen...
[ "public boolean findUserByName(String name) throws UserExistException;", "public User search_userinfo(String user_name);", "private WebElement getUserName () {\n return getElementByCss(userNameLoc);\n }", "private String searchForUser() {\n String userId = \"\";\n String response = giv...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns a whip damage source
protected DamageSource getDamageSource() { return new DamageSource("amethyst_whip").setDamageIsAbsolute(); }
[ "java.lang.String getDamage();", "public short getHandThrowDamage();", "@ZenCodeType.Method\n @ZenCodeType.Getter(\"source\")\n public static DamageSource getSource(LivingHurtEvent internal) {\n \n return internal.getSource();\n }", "@ZenCodeType.StaticExpansionMethod\n public static...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test the capacity of the reader to decode full VI3G image in full resolution.
@Test public void readFullyTest() throws DataStoreException { final VI3GStore store = new VI3GStore(new StorageConnector(TEMP_IMG)); final RenderedImage read = store.read(null).render(null); final PixelIterator pxIt = PixelIterator.create(read); int expected = 0; while (pxI...
[ "public boolean isFull() {\n\t\treturn this.size == this.rb.length;\n\t}", "@Test\n public void notIsFull() {\n assertFalse(ringBuffer.isFull());\n }", "private boolean isFull(){\n return cellSize == Max;\n }", "public boolean isFull(){\n return (this.capacity <= this.count());\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the result of the model processing given the accumulator's classname and the given parameter string using the given host with the FoldRAlgo visitor.
String runFoldR(THost host, String accClassname);
[ "String runAlgo(THost host, String classname, String param);", "public void receiveResultloadBalancer(\n loadbalance.LoadBalanceStub.LoadBalancerResponse result\n ) {\n }", "ProcessorOutcome execute(C context);", "RESULT process(final MODEL model);", "Resu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Cerate fake object using Mockito CalculatorService service = Mockito.mock(CalculatorService.class);
@Before public void setUp() { c = new MyCalculator(service); }
[ "public MockContestServiceFacade() {}", "@Before\n public void before() {\n calculator = new Calculator();\n }", "@Test\r\n\tpublic void testCalculator() \r\n\t{\r\n\t\tassertNotNull(myCalculator);\r\n\t}", "@Test\n \tpublic void testServiceableConnector() throws Exception {\n \t\tProcessor proce...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the cache manager.
protected CacheManager getCacheManager() { return _manager; }
[ "public CacheManager getCacheManager() {\n return _cache.getCacheManager();\n }", "public static CacheManager getInstance() {\r\n return singleton;\r\n }", "protected void getCacheManager()\n {\n try\n {\n if ( cacheMgr == null )\n {\n cacheMgr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This adds a property descriptor for the Cluster Work Load Exit feature.
protected void addClusterWorkLoadExitPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_MQQueueManager_clusterWorkLoadExit_feature"), //$NON-NLS-1...
[ "protected void addExitPropertyDescriptor(Object object) {\r\n\t\titemPropertyDescriptors.add\r\n\t\t\t(createItemPropertyDescriptor\r\n\t\t\t\t(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),\r\n\t\t\t\t getResourceLocator(),\r\n\t\t\t\t getString(\"_UI_MemoryPartition_exit_feature\"),\r\n\t\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Builds the final file name with the directory being java's temp dir
private String buildDeployFileName(final String originalFileName) { String tempDir = System.getProperty("java.io.tmpdir"); StringBuilder builder = new StringBuilder(); builder.append(tempDir); builder.append("/"); builder.append(originalFileName); return builder.toString(...
[ "private String createFileName(){\r\n\t\treturn this.folderPath + \"/R\" + this.sourceFileName;\r\n\t}", "private String generateFileName() {\n\t\t\n\t\treturn \"/tmp/logger.java_log\" + new Random().nextInt();\n\t}", "public String generateTempFilePath(){\n try {\n // Check directory\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the name of the MySQL database containing the Guacamole authentication tables.
public String getMySQLDatabase() throws GuacamoleException { return getRequiredProperty(MySQLGuacamoleProperties.MYSQL_DATABASE); }
[ "java.lang.String getDatabaseName();", "String getDatabaseName();", "public static final String getDatabaseName() {\n\t\t\n\t\tif (UOpts.getString(UAppCfg.DATABASE_IN_THE_FUTURE_COL) != null)\n\t\t\treturn UOpts.getString(UAppCfg.DATABASE_IN_THE_FUTURE_COL);\n\t\t\n\t\treturn UOpts.getAppName();\n\t}", "Strin...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This communicator has an id of (1) To send messages to the SourceSinkSide use 1 id
public abstract boolean SourceSinkSide( Communicator comm);
[ "void setSenderId(int id) {\n this.senderId = id;\n }", "public void tcpConnectionTo(int id_1,int id_2){\n time = new Date();\n String log = new String(\"\");\n log = (timeFormatter.format(time) + \" : \" + \"Peer \" + id_1 + \" makes a connection to Peer \" + id_2 + \"....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__OpcUa_SeRoNet__Group_2__0" $ANTLR start "rule__OpcUa_SeRoNet__Group_2__0__Impl" InternalComponentDefinition.g:7170:1: rule__OpcUa_SeRoNet__Group_2__0__Impl : ( 'description' ) ;
public final void rule__OpcUa_SeRoNet__Group_2__0__Impl() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalComponentDefinition.g:7174:1: ( ( 'description' ) ) // InternalComponentDefinition.g:7175:1: ( 'description' ) { ...
[ "public final void rule__OpcUa_SeRoNet__Group_2__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalComponentDefinition.g:7189:1: ( rule__OpcUa_SeRoNet__Group_2__1__Impl )\n // InternalComponentDefinition.g:7190:2: rule__Op...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set the value with a given double.
void setDouble(double val);
[ "void setValue(double value);", "public Tree set(double value) {\r\n\t\treturn setObjectInternal(value);\r\n\t}", "public void setValue(double val) {\n this.val = val;\n }", "public void setValue(MyDouble val) {\n this.val = val.getValue();\n }", "public void setDouble1(double val) {\n\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Asks this instance to release its critical resources to avoid resource leaks and to enhance durability and consistency of accessed resources.
private void releaseResources() { this.rheemContext.getCardinalityRepository().sleep(); if (this.crossPlatformExecutor != null) this.crossPlatformExecutor.shutdown(); }
[ "public void releaseResources() {\n dynamoDBClient.shutdown();\n dynamoDBClient = null;\n }", "public void release()\n\t{\n\t\tsynchronized(reserved){\n\t\t\treserved = Boolean.TRUE;\n\t\t\towner = null;\n\t\t}\n\t\tdispatchResourceEvent(false);\n\t}", "public void releaseResources();", "publ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Start Order (initialises Customer)
public void startOrder(String name, long number){ this.currentCustomer.add(new Customer(name, number)); }
[ "public void setupCustomerOrders(){\n\n orderManager.newOrder(customerOrder1);\n orderManager.newOrder(customerOrder2);\n orderManager.newOrder(customerOrder3);\n orderManager.newOrder(customerOrder4);\n orderManager.newOrder(customerOrder5);\n orderManager.newOrder(custome...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Called when given Segment is "on the wire". If the Segment is a ReportSegment, then we start its ReportSegment Timer.
@Override public void onSegmentTransmitStarted(LtpLink link, Segment segment) throws InterruptedException { if (segment.isReportSegment() || segment.isCancelSegmentFromReceiver()) { if (GeneralManagement.isDebugLogging()) { _logger.finer("onSegmentTransmitStarted()"); } SegmentTransmitStartedEvent e...
[ "private void startReportSegmentTimer(final ReportSegment reportSegment) {\n\t\tif (reportSegment.getNeighbor().isNeighborScheduledUp()) {\n\t\t\treportSegment.setRsTimerTask(\n\t\t\t\tnew TimerTask() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tReportSegmentTimerExpiredEvent event =\n\t\t\t\t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Loads scenario and build Scenario Model.
ScenarioModel loadScenarioModel() throws ModelSerializationException, ModelConversionException;
[ "ScenarioModel loadScenarioModel(InputStream inputStream) throws ModelSerializationException, ModelConversionException;", "Scenario createScenario();", "private void initScenario()\n\t{\n\t\t\n\t}", "public Scenario create(Scenario scenario);", "private void initScenarios() {\n try {\n sce...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test of getObjectToOptimize method, of class AbstractMinimizerBasedParameterCostMinimizer.
public void testGetObjectToOptimize() { System.out.println("getObjectToOptimize"); FunctionDiffyANN f = new FunctionDiffyANN(3,2,1); AbstractMinimizerBasedParameterCostMinimizer<?,?> instance = this.createInstance(f); assertSame( f, instance.getObjectToOptimize() ); ...
[ "@SuppressWarnings(\"unchecked\")\n public void testSetObjectToOptimize()\n {\n System.out.println(\"setObjectToOptimize\");\n FunctionDiffyANN f = new FunctionDiffyANN(3,2,1);\n\n AbstractMinimizerBasedParameterCostMinimizer<? super GradientDescendable,?> instance =\n this.cre...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Clears the value of the '_2300DTP03DisabilityFromDate' field
public net.explorys.samhat.z12.r837.X837Pro_2300_DTP_DateDisabilityBegin.Builder clear2300DTP03DisabilityFromDate$1() { _2300DTP03DisabilityFromDate = null; fieldSetFlags()[2] = false; return this; }
[ "void unsetValidityFromDate();", "void unsetIssuingDate();", "public void set2300DTP03DisabilityFromDate$1(java.lang.CharSequence value) {\n this._2300DTP03DisabilityFromDate = value;\n }", "void unsetArrivedondate();", "void unsetDate();", "void unsetStartDate();", "void unsetDeliveryDate();", "p...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "INT" $ANTLR start "LONG"
public final void mLONG() throws RecognitionException { try { int _type = LONG; int _channel = DEFAULT_TOKEN_CHANNEL; // src/main/java/pl/ncdc/differentia/antlr/Java.g:116:6: ( 'long' ) // src/main/java/pl/ncdc/differentia/antlr/Java.g:116:8: 'long' { ...
[ "protected long lexLong(FlasmLexer lex) throws IOException, ActionParseException {\n ASMParsedSymbol symb = lex.yylex();\n if (symb.type != ASMParsedSymbol.TYPE_INTEGER) {\n throw new ActionParseException(\"Integer expected\", lex.yyline());\n }\n return (Long) symb.value;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Updating `msisdn` and `service_type`
@Transactional public void updateCustomer(Integer id, String msisdn, ServiceType serviceType){ //Fetching the user with the specified id Customer customer = customerRepository.findById(id).orElseThrow(()-> new IllegalStateException( "Customer with ID: " + id + " not found" ...
[ "public void setMsisdn(java.lang.String msisdn) {\r\n this.msisdn = msisdn;\r\n }", "@PutMapping(\"/subscriptions/{id}/type\")\n @ApiOperation(value = \"${swagger.sub-controller.update-type.value}\", response = MobileSubscriptionDTO.class)\n public ResponseEntity<MobileSubscriptionDTO> updateType ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create UserQuery based on specified conditions
UserQuery createQuery();
[ "Users queryUser(Users userCondition);", "private QueryUsers() {\n initFields();\n }", "public interface UserQueryBuilder extends QueryBuilder\n{\n\n /**\n * Create UserQuery based on specified conditions\n * @return\n */\n UserQuery createQuery();\n\n /**\n * Reset all set conditions\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Process mouse drag events to allow zooming
public void processMouseMotionEvent(MouseEvent e) { switch (e.getID()) { case MouseEvent.MOUSE_DRAGGED: // return if environment is not set for a zoom event if (e.isPopupTrigger() || this == null || datasetGraphics == null || zoomStart.x == -1 ...
[ "private void onMouseDraggedHandler()\n\t{\n\t\tthis.setOnMouseDragged(new EventHandler<MouseEvent>()\n\t\t{\n\t\t\t//moved wird mit true initialisiert, damit dragX und Y beim ersten aufruf\n\t\t\t//gesetzt sind\n\t\t\tboolean moved = true;\n\t\t\tdouble prevScaleFactor = 1;\n\t\t\t@Override\n\t\t\tpublic void hand...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Save a tag. If tag already exists update it, if new add it
public void save(Tag t) { if (this.exists(t)) { this.alter(t); } else { this.insert(t); } }
[ "Tag saveTag(Tag tag);", "private void saveTag(Tag tag){\n Long num = tagMap.get(tag);\n tagMap.put(tag, (num == null) ? (long)1 : num+1);\n }", "Tag saveAndGet(final String name);", "void saveTag(TagDto tag) throws ValidationException;", "public Tag save(String tag, String imgId) throws Se...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Ordered Array Priority Queue.
public interface OrderedArrayPQ<Key extends Comparable<Key>> extends PriorityQueue<Key>{ /** * Retorna a Priority Queue. * * @return a pq */ Key[] getPq(); default boolean less(final int i, final int j) { return getPq()[i].compareTo(getPq()[j]) < 0; } default void exch(final int i, final in...
[ "public DoublyEndedPriorityQueue() {\n\t\tcurrentSize = 0;\n\t\tcmp = null;\n\t\tarray = createArray(DEFAULT_CAPACITY + 1);\n\t}", "PriorityQ<BinaryTreeNode<Byte>> makeQueue(int[] array){\n PriorityQ<BinaryTreeNode<Byte>> queue = new PriorityQ<BinaryTreeNode<Byte>>();\n \n for (int i=0;i<256;i++){\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ unescapes and adds text to teh end
public void parseEscapedText(String text) { for(int i = 0; i < text.length(); i++) { char c = text.charAt(i); if(c != '\\') buf.append(c); else { i++; if(i >= text.length()) break; c = text.charAt(i); switch(c) { case 'n': buf.append('\n'); break; case 't': buf.append('\t'); brea...
[ "public void backSlash() {\n text.append(\"\\\\\");\n }", "private static String textDequote(String aText) {\n if (aText.startsWith(\"\\\"\") && aText.endsWith(\"\\\"\")) {\n aText = aText.substring(1,aText.length()-1); // Strip quotes around string\n }\n StringBuilder sb...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
compares the AST references of calloutMappingDeclaration and roleMethodSpec
public void testGetAST_Identity1() { _testObj = (CalloutMappingDeclaration)_role.bodyDeclarations().get(2); MethodSpec roleMethodSpec = (MethodSpec)_testObj.getRoleMappingElement(); assertTrue( "Role Methodspec is not associate to the same AST like parent CalloutMappingDeclaration", _testO...
[ "public void testGetAST_Identity2()\n\t{\n\t\t_testObj= (CalloutMappingDeclaration)_role.bodyDeclarations().get(2);\n\t\tMethodSpec baseMethodSpec = (MethodSpec)_testObj.getBaseMappingElement();\n\t\t\n\t\tassertTrue(\n\t\t\t\t\"Base Methodspec is not associate to the same AST like parent CalloutMappingDeclaration\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the sites with other species with unknown name.
private void fetchUnknownOSpeciesNames(Session session) { QAQCMain.log.info("Getting the other species with unknown name"); DefaultTableModel model = (DefaultTableModel) tabDisplaySites.getModel(); String hql = "select species.otherSpeciesName, species.site.siteCode from OtherSpecies as species ...
[ "private void fetchUnknownSpeciesNames(Session session) {\n QAQCMain.log.info(\"Getting the species with unknown name\");\n DefaultTableModel model = (DefaultTableModel) tabDisplaySites.getModel();\n String hql = \"select species.speciesName, species.site.siteCode from Species as species \"\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Formats a quantity in stacks.
public static String formatStacks(int quantity) { return formatStacks(quantity, true); }
[ "public static String formatStacks(int quantity, boolean addPlus) {\n \t\tint stacks = quantity / 64;\n \t\tif (stacks == 0) {\n\t\t\treturn quantity + \"\";\n \t\t}\n \n \t\tint remaining = quantity % 64;\n \t\tif (remaining < 0) {\n \t\t\t//the remaining part should not contain a \"-\"\n \t\t\tremaining *= -1;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get global resource configuration
public ResourceConfiguration getResourceConfiguration(Environment environment, Realm realm, String path) throws Exception { log.debug("Get global resource config: " + path); java.util.Map<String, String> properties = new HashMap<String, String>(); //XXX: maybe we should use a configuration file...
[ "public ResourceReference getConfigResource() {\n if (rr_configResource == null) {\n configResource = new ConfigResource(this);\n rr_configResource = new DummyResourceReference(configResource);\n }\n return rr_configResource;\n }", "public static ResourceConfiguration...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
inputNodeValidation(Scanner sc) is used in most console operations which acts as input operation to take down two node inputs. The entire method is heavily validated and is called in most operations, to reduce code duplication especially in input validation and error handling.
public static int[] inputNodeValidation(Scanner sc) { boolean correctInput = false; int[] nodesSelected = new int[2]; //Loops until a valid input node has been placed while (!correctInput) { try { System.out.println("Please enter the starting node: "); ...
[ "static void validateInputs() {\n\n\n }", "public static void menu (Scanner scanner){\n\t\t\t\n\t\t\tSystem.out.print(\"Please enter a starting node: \");\n\t\t\t\n\t\t\tString input = scanner.nextLine();\n\t\t\t\n\t\t\t\n\t\t\tif (input.toLowerCase().matches(\"exit\") ||\n\t\t\t\tinput.toLowerCase().matches(\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the server preferences from the core preferences registry.
private Preferences getServerPrefs() { if (myToolbox == null || myToolbox.getPreferencesRegistry() == null) { return null; } return myToolbox.getPreferencesRegistry().getPreferences(myPrefsTopic); }
[ "public static IPreferenceStore getPreferences() {\n\t\treturn Activator.getDefault().getPreferenceStore();\n\t}", "public static IPreferenceStore getPreferenceStore() {\n return BasePluginActivator.getDefault().getPreferenceStore();\n }", "public static Preferences getPreferences() {\n \t\treturn DLTKLaunc...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Define el valor de la propiedad numberofrecords.
public void setNUMBEROFRECORDS(int value) { this.numberofrecords = value; }
[ "public void setNUMBEROFRECORDS(final int value) {\n this.numberofrecords = value;\n }", "public int getNUMBEROFRECORDS() {\n return numberofrecords;\n }", "public void setRecordCount(int value) {\n this.recordCount = value;\n }", "public int getNumberOfRecords();...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ factory method generate a bitset base constructed from the set of values
public static BitSetBase base(Collection<Object> values) { BitSetBase base = new BitSetBase(); base.generate(values); return base; }
[ "private static BitSet makeBitSet( int... args ) {\n\tBitSet result = new BitSet( MAX_OPCODE + 1 ) ;\n\tfor (int value : args )\n\t result.set( value ) ;\n\treturn result ;\n }", "ImmutableIntSet build();", "public BitSet makeMod(){\n\t\tBitSet bs = new BitSet(this.length());\n\t\tbs.or(this);\n\t\treturn...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets verify count range min.
public String getVerifyCountRangeMin( ) { return this.verifyCountRangeMin; }
[ "public void setVerifyCountRangeMin(String verifyCountRangeMin) {\n\t\tthis.verifyCountRangeMin = verifyCountRangeMin;\n\t}", "public long getMin() {\n return stats.getLong(SEQUENCE_RANGE_MIN);\n }", "public int getCountMin() {\n\t\treturn countMin;\n\t}", "public int getMinimumValue() {\n return...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__XFeatureCall__Alternatives_4_1" $ANTLR start "rule__IdOrSuper__Alternatives" ../org.xtext.lwc.instances.ui/srcgen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:2304:1: rule__IdOrSuper__Alternatives : ( ( RULE_ID ) | ( 'super' ) );
public final void rule__IdOrSuper__Alternatives() throws RecognitionException { int stackSize = keepStackSize(); try { // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:2308:1: ( ( RULE_ID ) | ( 'super' ) ) ...
[ "public final void ruleIdOrSuper() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.helloxcore.ui/src-gen/org/xtext/example/helloxcore/ui/contentassist/antlr/internal/InternalHelloXcore.g:1396:2: ( ( ( rule__IdOrSuper__Al...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a new instance of ChemkinMolecule
public ChemkinMolecule() { label = ""; }
[ "public Molecule(final String name) {\n\n }", "public ICDKMolecule asCDKMolecule(IMolecule imol) throws BioclipseException {\n\n if (imol instanceof ICDKMolecule) {\n return (ICDKMolecule) imol;\n }\n\n // First try to create from CML\n try {\n Stri...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method will perform checks on whether or not the given Request was valid for the creation of an EPerson with a token or not. It'll check that the token exists, that the token doesn't yet resolve to an actual eperson already, that the email in the given json is equal to the email for the token and that other proper...
private EPersonRest createAndReturn(Context context, EPersonRest epersonRest, String token) throws AuthorizeException, SQLException { if (!AuthorizeUtil.authorizeNewAccountRegistration(context, requestService .getCurrentRequest().getHttpServletRequest())) { throw new DSpaceBadReq...
[ "public CreateOrganizationRequest(String name, String email, Token token) {\n this.name = name;\n this.email = email;\n this.token = token;\n }", "void ensureUserCreationAllowed(String email, String userName) throws BadRequestException, ConflictException, ServerException;", "@Override\n protected E...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Calculate all formulas in workbook.
@Test public void cellsWorkbookPostWorkbookCalculateFormulaTest() throws ApiException { String name = BOOK1; CalculationOptions options = new CalculationOptions(); options.setCalcStackSize(1); Boolean ignoreError = true; String folder = TEMPFOLDER; api.setApiClient( CellsApi...
[ "private void runFormulas() {\r\n // updates all of the formula cells in the excel file to display the\r\n // changes that were made to the parameter values\r\n FormulaEvaluator evaluator = workbook.getCreationHelper().createFormulaEvaluator();\r\n for (Row r : currentWorksheet) {\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
get formatted date from string date in iso8601 format which is used by .net
public static String getFormattedDate(String date) { String result = null; SimpleDateFormat sdf = new SimpleDateFormat("MMM dd, yyyy hh:mm:ss a"); Date convertedDate = new Date(); try { convertedDate = buildIso8601Format().parse(date); } catch (ParseException e) { ...
[ "public static Date parseIso8601Date(String datestr) throws ParseException {\n return new SimpleDateFormat(ISO8601_DATE_PATTERN).parse(datestr);\n }", "private String getIso8601Date(Date date)\n {\n if (date == null)\n {\n date = new Date();\n }\n return iso86...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__ProcessConfig__Group__2__Impl" $ANTLR start "rule__ProcessConfig__Group__3" InternalDsl.g:15878:1: rule__ProcessConfig__Group__3 : rule__ProcessConfig__Group__3__Impl rule__ProcessConfig__Group__4 ;
public final void rule__ProcessConfig__Group__3() throws RecognitionException { int stackSize = keepStackSize(); try { // InternalDsl.g:15882:1: ( rule__ProcessConfig__Group__3__Impl rule__ProcessConfig__Group__4 ) // InternalDsl.g:15883:2: rule__ProcessConfig__Group...
[ "public final void rule__ProcessConfiguration__Group__3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalDsl.g:11751:1: ( rule__ProcessConfiguration__Group__3__Impl rule__ProcessConfiguration__Group__4 )\n // InternalDsl.g:...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set the default header collection (creating copies of the provided headers).
public void setDefaultHeaders(Collection<? extends Header> defaultHeaders) { Collection<BasicHeader> copiedHeaders = new HashSet<>(); for (Header header : defaultHeaders) { copiedHeaders.add(new BasicHeader(header.getName(), header.getValue())); } this.defaultHeaders = copied...
[ "public void setDefaultHeaders(Map<String, String> defaultHeaders) {\n this.defaultHeaders = defaultHeaders;\n }", "public Collection<BasicHeader> getDefaultHeaders() {\n return new HashSet<>(defaultHeaders);\n }", "public Builder defaultResponseHeaders(org.apache.http.Header...value) {\n\t\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
In general, we enable unlocking the insecure key guard with the menu key. However, there are some cases where we wish to disable it, notably when the menu button placement or technology is prone to false positives.
private boolean shouldEnableMenuKey() { final Resources res = getResources(); final boolean configDisabled = res.getBoolean(R.bool.config_disableMenuKeyInLockScreen); final boolean isTestHarness = ActivityManager.isRunningInTestHarness(); final boolean fileOverride = (new File(ENABLE_MEN...
[ "public void setScreenUnlockSecurityNone() {\n // try {\n // new LockPatternUtils(mContext).clearLock();\n // } catch (Exception e) {\n // // e.printStackTrace();\n // }\n }", "@Test\n @SmallTest\n @Feature({\"Prefer...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
string SID = 1;
java.lang.String getSID();
[ "String getCCSID();", "long getSid();", "String getUserSid();", "java.lang.String getSOID();", "java.lang.String getSadid();", "String getSecId();", "String getSessionID();", "void setSOID(java.lang.String soid);", "public String getScid() {\n return scid;\n }", "String getSec();", "in...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get cookie value by cookie name and convert to Integer.
public Integer getCookieToInt(String name, Integer defaultValue) { String result = getCookie(name); return result != null ? Integer.parseInt(result) : defaultValue; }
[ "public Integer getCookieToInt(String name) {\n String result = getCookie(name);\n return result != null ? Integer.parseInt(result) : null;\n }", "public Integer getCookieToInt(String name) {\n\t\tString result = getCookie(name);\n\t\treturn result != null ? Integer.parseInt(result) : null;\n\t}"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the service type
public void setType(ServiceType type) { assert (type != null); if(type != null) this.typeS = type; }
[ "public void setServiceType(Class<?> serviceType);", "public abstract void setServiceType(String serviceType);", "public void setServiceType(String serviceType) {\n this.serviceType = serviceType;\n }", "public void setTypeOfService(String typeOfService){\n\tthis.typeOfService=typeOfService;\n}", "publi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the value of the 'referrer_String' field.
public com.iot.data.schema.InstallReferrerData.Builder setReferrerString(java.lang.String value) { validate(fields()[4], value); this.referrer_String = value; fieldSetFlags()[4] = true; return this; }
[ "public void setReferrerString(java.lang.String value) {\n this.referrer_String = value;\n }", "public Builder setReferrer(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00010000;\n referrer_ = value;\n onChanged...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
parses a hitdice description. s can have any number of components separated by " plus ". each component has format [num]d[+/]. white space between components is ok. recognises 1/2 and 1/4 in num
public static List<HDDice> parseList(String s) { String[] rolls = s.split(" plus "); List<HDDice> dice = new ArrayList<>(); for (String roll : rolls) { dice.add(parse(roll)); } if (dice.size() == 0) return null; return dice; }
[ "public void parse(String s)\n {\n int offset = 40 - s.length(); //offset is the maxsize(40) - length of string\n \n // loop to Add each digit to the array\n for(int i = 0; i < s.length(); i++)\n {\n // fill array so it has leading zeros (right justified)\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Nils the "GetAllowedCategoryTreeResult" element
public void setNilGetAllowedCategoryTreeResult() { synchronized (monitor()) { check_orphaned(); com.cdiscount.www.CategoryTreeMessage target = null; target = (com.cdiscount.www.CategoryTreeMessage)get_store().find_element_user(GETALLOWEDCAT...
[ "public boolean isNilGetAllowedCategoryTreeResult()\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.cdiscount.www.CategoryTreeMessage target = null;\n target = (com.cdiscount.www.CategoryTreeMessage)get_store().find_element_user(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
ExStart ExFor:FieldIndex.HasPageNumberSeparator ExFor:FieldIndex.PageNumberSeparator ExFor:FieldIndex.PageNumberListSeparator ExSummary:Shows how to edit the page number separator in an INDEX field.
@Test public void fieldIndexPageNumberSeparator() throws Exception { Document doc = new Document(); DocumentBuilder builder = new DocumentBuilder(doc); // Create an INDEX field which will display an entry for each XE field found in the document. // Each entry will display the XE fie...
[ "@Test\n public void fieldIndexCrossReferenceSeparator() throws Exception {\n Document doc = new Document();\n DocumentBuilder builder = new DocumentBuilder(doc);\n\n // Create an INDEX field which will display an entry for each XE field found in the document.\n // Each entry will dis...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test Open API docs for Param In and returns none from module function
@Test public void TestOpenApiParamInReturnsNone() throws Exception { System.out.println("Running TestOpenApiParamInReturnsNone"); OkHttpClient OpenAPIClient = (OkHttpClient) dbclient.getClientImplementation(); String url = "http://" + host+ ":" + restTestport + endPointURI_10 + ".sjs"; String creden...
[ "@Test\r\n\tpublic void TestOpenApiParamInDocOut() throws Exception {\r\n\t\tSystem.out.println(\"Running TestOpenApiParamInDocOut\");\r\n\r\n\t\tOkHttpClient OpenAPIClient = (OkHttpClient) dbclient.getClientImplementation();\r\n\r\n\t\tString url = \"http://\" + host+ \":\" + restTestport + endPointURI_9 + \".sjs\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "ruleEInterfaceTypeBody" $ANTLR start "entryRuleEPolicyTypes" InternalRMParser.g:1761:1: entryRuleEPolicyTypes returns [EObject current=null] : iv_ruleEPolicyTypes= ruleEPolicyTypes EOF ;
public final EObject entryRuleEPolicyTypes() throws RecognitionException { EObject current = null; EObject iv_ruleEPolicyTypes = null; try { // InternalRMParser.g:1761:53: (iv_ruleEPolicyTypes= ruleEPolicyTypes EOF ) // InternalRMParser.g:1762:2: iv_ruleEPolicyTypes= r...
[ "public final void entryRuleEPolicyTypes() throws RecognitionException {\n try {\n // InternalAADMParser.g:841:1: ( ruleEPolicyTypes EOF )\n // InternalAADMParser.g:842:1: ruleEPolicyTypes EOF\n {\n if ( state.backtracking==0 ) {\n before(grammarAcces...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get specifies the path of the BrainScript config file. This property can be specified only if the languageType is 'BrainScript'.
public String configFilePath() { return this.configFilePath; }
[ "public String getConfigFilePath() {\n return configFilePath;\n }", "java.lang.String getConfigFile();", "public static String getConfigFile() {\n\t\treturn configFilePath;\n\t}", "String getConfigsPathFile();", "public File getConfigurationFile();", "private File getConfigurationFile() {\n ret...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Validates custom field value
void validate(Object fieldValue, CustomField fieldDefinition);
[ "public abstract Value validateValue(Value value);", "public abstract FieldReport validate(int fieldSequence, Object fieldValue);", "@Override\n public void customValidation() {\n }", "public void validate( Object object, Object value )\n //throws MetaException\n {\n String mask = (String) getAtt...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
To click 'Inquire Now' button for Verified Product at Inquiry Bar. (Multiple PPs)
public static WebElement btn_clickInqNowForVerPdtAtInqBar() throws Exception{ try{ // 04-Jan-2017 MR45284 Inquire Now button at Inquiry Bar is removed // element = driver.findElement( // By.xpath("(//*[contains(@class, 'inquiryCon')]//a[contains(text(),'Inquire Now')])[position()=1]")); ...
[ "public static WebElement btn_clickProductListTabViewInqNow() throws Exception{\r\n \ttry{\r\n \t\tWebDriverWait waits = new WebDriverWait(driver, 25);\r\n \t\twaits.until(ExpectedConditions.visibilityOfElementLocated(\r\n \t\t\t\tBy.xpath(\"//*[contains(@class, 'GS_globalNav clearfix')]\")));\r\n \t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates new form MARVEL
public MARVEL() { initComponents(); }
[ "FORM createFORM();", "public static Result newForm() {\n return ok(newForm.render(palletForm, setOfArticleForm));\n }", "@RequestMapping(params = {\"create\", \"form\"}, produces = \"text/html\")\n public String createForm_new(Model uiModel) {\n \tpopulateEditForm(uiModel, new Flight());\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Retrieves the data from next message that is ready to be delivered to the application. At most buffer.length bytes are copied into the specified buffer. NOTE: Any additional data in the packet that will not fit in the buffer is discarded. The receive is a blocking function, waits until there are data to be received or ...
public int receive (byte []buffer, long timeout) throws IOException,IllegalArgumentException { return receiveNative (buffer, 0, buffer.length, timeout); }
[ "public byte[] receive (long timeout)\n throws IOException, IllegalArgumentException\n {\n int byteArraySize = getNextMessageSize (timeout);\n if (byteArraySize <= 0) {\n return null;\n }\n else {\n return receiveBuffer (timeout);\n }\n }", "pu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the TlaceEdge this edge represents.
public TlaceEdge getEdge() { return edge; }
[ "Edge getEdge();", "public Edge(TlaceEdge edge) {\n\t\tthis.edge = edge;\n\t}", "protected Edge getEdge() {\r\n\t\treturn (Edge)getModel();\r\n\t}", "public double getEdge()\n {\n return this.edge;\n }", "public EdgeType getType() { return edgeType; }", "Edge get(Direction direction);", "pu...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
return new DoctorHomepageAreaJPanel(container, ua, org, enterprise, business);
@Override public JPanel fetchPanel(JPanel container, UserAccount ua, Organization org, Enterprise enterprise, EcoSystem business) { return new PatientHomepageJPanel (container,business,org,enterprise,ua); }
[ "public JPanel getJPanel();", "public HomePanel() {\n initComponents();\n }", "public JPanel getPanelRoom()\n { \n return myRoomPanel;\n }", "public CreateNewEventJPanel() {\n }", "private JPanel crearPanel(){\n PanelJuego2 panel = new PanelJuego2();\n return panel;\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Class constructor. Instantiates a new Special Depot.
public SpecialDepot() { specialContainers = new ArrayList<>(); }
[ "public Dependency() \r\n {\r\n }", "public Tax() {\n\t}", "private PBHotelPlant() {}", "private DepositSupport()\r\n {\r\n // empty for utility class\r\n }", "private Shipment() {\n }", "public AbstractDynamicTbom() {\n\t}", "private CSShopBuyPlant() {}", "public Partage() {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Specifies if the endpoint appends data to existing files or if it will overwrite existing files. The default is for the endpoint to overwrite existing files. Setting this to true instructs the endpoint to append data. Default value is false.
public void setAppend(boolean append) { this.append = append; }
[ "public boolean getAppend() {\n return append;\n }", "public static boolean isAppend(){\n return append;\n }", "public boolean setAppendOnly()\n throws FilingException {\n throw new UnsupportedFilingOperationException(\n \"Cannot set a ByteStore AppendOnly in this implementation\");\n }", "p...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Process called to save the game configuration in a json file
public static void saveGameConfiguration() { exportJsonFile(new File(FileUtils.getRootFile(), Constant.CONFIG_FILE_NAME)); }
[ "public void save() {\n\t\tJSONObject json = toJson();\n\n\t\ttry {\n File file = new File(\"rounds/\" + System.currentTimeMillis() + \".json\");\n FileWriter fw = new FileWriter(file.getAbsolutePath());\n fw.write(json.toString());\n fw.close();\n } catch (IOExcep...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Marks the leaf "rtomin" with operation "create".
public void markRtoMinCreate() throws JNCException { markLeafCreate("rtoMin"); }
[ "public void markRtoMaxCreate() throws JNCException {\n markLeafCreate(\"rtoMax\");\n }", "public void markRtoInitialCreate() throws JNCException {\n markLeafCreate(\"rtoInitial\");\n }", "public void markMajorActionCreate() throws JNCException {\n markLeafCreate(\"majorAction\");\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
.build_event_stream.BuildEventId.PatternExpandedId pattern_skipped = 10;
public com.google.devtools.build.lib.buildeventstream.BuildEventStreamProtos.BuildEventId.PatternExpandedIdOrBuilder getPatternSkippedOrBuilder() { if (idCase_ == 10) { return (com.google.devtools.build.lib.buildeventstream.BuildEventStreamProtos.BuildEventId.PatternExpandedId) id_; } return ...
[ "com.google.devtools.build.lib.buildeventstream.BuildEventStreamProtos.BuildEventId.PatternExpandedId getPatternSkipped();", "com.google.devtools.build.lib.buildeventstream.BuildEventStreamProtos.BuildEventId.PatternExpandedIdOrBuilder getPatternSkippedOrBuilder();", "public Builder setPatternSkipped(com.google...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method is meant to return the Color object in the list whose color name matches the colorName specified in the parameters.
public Color getColorByName (String colorName) { for (int i = 0; i < this.size(); i++) { //add if-statement for if name equals null if (!(this.get(i).getName() == null)) { if (this.get(i).getName().equalsIgnoreCase(colorName)) { return this.get(i); } } } return null; }
[ "public Color findByName(String name) throws NoSuchColorException;", "public Color fetchByName(String name);", "public Color fetchByName(String name, boolean useFinderCache);", "public static Color getByName(String name) {\n\t\treturn COLOR_MAP.get(name);\n\t}", "public Node search(String colorName) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Just a pretty printer for the constraints
private static String prettyConstraint(Constraint constraint) { StringBuilder builder = new StringBuilder(); prettyConstraint(builder, constraint); return builder.toString(); }
[ "public abstract void printConstraint();", "public String printJavaConstraints(Map<String, Object> constraints) {\n\n String consts = \"\";\n if (constraints.get(\"maximum\") != null) {\n consts = consts + \"@Max(\" + constraints.get(\"maximum\") + \")\";\n }\n if (constrain...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the cheapest pizza from an array
private static PizzaModel getCheapest(ArrayList<PizzaModel> pizzaGroup){ PizzaModel cheapestPizza = pizzaGroup.get(0); for(PizzaModel p : pizzaGroup){ if(p.getPrice()<= cheapestPizza.getPrice()) cheapestPizza = p; } return cheapestPizza; }
[ "public static void lowestPrice(DeluxePizza todaysPizza[])\n\t{\n\t\tboolean empty = true;\n\t\tfor(DeluxePizza x:todaysPizza)\n\t\t{\n\t\t\tif(x != null)\n\t\t\t\tempty = false;\n\t\t}\n\t\tif(!empty){\n\t\tdouble cheapest = todaysPizza[0].calcCost();\n\t\tint index = 0;\n\t\tfor(int i = 0; i <= todaysPizza.length...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
user left the building
public void leftBuilding(Building building) { }
[ "protected void runLeaveMenu() {\n if (GameController.FREEROAM.getBooleanValue()) {\n BuildingController.getInstance().playerLeft();\n building.onPlayerExit();\n } else\n building.setMenuToNextLocationMenu();\n }", "public void leftMessage() {\r\n\t\tJOptionPane.s...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
endregion region Public Methods region Properties maximum number of cases for using kernels
public final int getMaxForKernels() { return maxForKernels; }
[ "public int kernelSize();", "int getKernelSize();", "private static final void reduce_max_final_cases(CUdeviceptr in, CUdeviceptr out,\n CUdeviceptr index, int size, int threads, int blocks, CUstream stream, int dev) {\n Pointer kernelParams = null;\n\n //...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Emit the LDS individual ordinances
private void emitLdsIndividualOrdinances(int level, List<LdsIndividualOrdinance> ldsIndividualOrdinances) throws GedcomWriterException { if (ldsIndividualOrdinances != null) { for (LdsIndividualOrdinance o : ldsIndividualOrdinances) { emitTagWithOptionalValue(level, o.get...
[ "public void emitDS(int ds) {\n /* FIXME */\n //print the ds to the obj module\n if(pass == 2){\n System.out.println(\":\" + ds);\n }\n LC += ds;\n }", "@Override\r\n public void vehiclesByOrder() {\n System.out.println(\"Type\" + \"\\t\" + \"ID\" + \"\\t\" + \"Name\");\r\n\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create a TodoList associated to a Customer. If the Customer already contains a TodoList with the same title then a EntityAlreadyExistException is thrown.
public TodoList createOneForCustomer(Customer customer, TodoListForm todoListForm) throws EntityAlreadyExistException { String title = todoListForm.getTitle(); TodoList todoList = new TodoList(title); todoList.setCustomer(customer); todoList.setNum(todoListDao.countByCustomer(customer) +...
[ "public TodoList updateOneForCustomer(Customer customer, TodoListForm todoListForm) throws EntityAlreadyExistException {\n String title = todoListForm.getTitle();\n int todoListNum = todoListForm.getNum();\n TodoList todoList = todoListDao.findByCustomerAndNum(customer, todoListNum);\n t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Teste para saber se ele ta vivo
public boolean testvivo () { if (this.vivo) return true; System.out.println("Falha: O Pet está morto!"); return false; }
[ "@Test\n public void testVoitto() {\n Peli peli = new Peli(new Alue(3, 0));\n peli.avaaRuutu(1, 1);\n boolean ododtus = true;\n boolean tulos = peli.voitto();\n assertEquals(ododtus, tulos);\n }", "@Test\n public void testSumideroVacio() {\n System.out.println(\"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Implementor must call assoc.notifyPresentResult(result);
public void present(BackendPresentDTO bpr) { try { log.debug("JZKitBackend::present"); log.debug("looking for archetype: "+bpr.archetype+", explicit="+bpr.explicit); log.debug("looking for result set: "+bpr.result_set_name); ZSetInfo zsi = (ZSetInfo) result_sets.get(bpr.result_set_name); ...
[ "public void notifySuccess(SIRetrievable[] result);", "public void notifyGet(int result) {\n getFragment.notifyResult(result);\n }", "@Override\n synchronized public void onTaskCompletionResult() {\n if (DataContainer.getInstance().pullValueBoolean(DataKeys.PLAY_REFERRER_FETCHED, context) &&...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns true if field newPepaymentDate is set (has been assigned a value) and false otherwise
public boolean isSetNewPepaymentDate() { return this.newPepaymentDate != null; }
[ "public boolean isSetPaymentDate() {\n return this.paymentDate != null;\n }", "public boolean isSetRepayDate() {\n return this.repayDate != null;\n }", "public boolean isSetRetireDate() {\n return (this.retireDate != null ? this.retireDate.isSetValue() : false);\n }", "public boolean isSetDate() {...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Use TurnRecMsg.newBuilder() to construct.
private TurnRecMsg(Builder builder) { super(builder); }
[ "private ReceiveMsg(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private MsgReclaim(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "private GetQrcRspMsg(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
this method creates a new ArrayList of belief states, depending on the direction of the robot move. when moving north, the bottom most y coordinate is removed from the belief state and (1 + the topmost) is added to the belief state if the topmost is not already the highest possible y coordinate
public ArrayList<Integer> createNewState(String direction) { ArrayList<Integer> returnState = new ArrayList<Integer>(); if (direction.equals("up")) { for (int i = 0; i < stateY.size(); i++) { if (stateY.get(i) != bottomMostOption) { returnState.add(stateY.get(i)); } } if (topMostOp...
[ "public LinkedList<State> getNextAvailableStates() {\n LinkedList<Integer> currentSide = new LinkedList<>();\n LinkedList<Integer> otherSide = new LinkedList<>();\n LinkedList<State> newStates = new LinkedList<>();\n if(isLeft) {\n if(leftSide != null) currentSide = new Linked...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Find and store all elements of the poll element
private void parsePollElement(Node pollElementNode, PollElement pollElement) { NodeList textNodeChildrenList = pollElementNode.getChildNodes(); for (int i = 0; i < textNodeChildrenList.getLength(); i++) { //Find the current element node Node elementNode = textNodeChildrenList.ite...
[ "public ArrayList<String> store_present_element(ArrayList<String> oblist){\n\t\tArrayList<String> obj_list = new ArrayList<String>();\n\t\tint result = 0;\n\t\tint obj_index = 1;\n\t\tfor(int i=0; i<oblist.size(); i++){\n\t\t\tString xpathobj = oblist.get(i);\n\t\t\tList<WebElement> list = returnWebelements(xpatho...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
The logic to translate the content in html p element in to word.
private void processP() { logger.debug("processP#start"); XWPFRun textRun = paragraph.createRun(); textRun.setText(StringEscapeUtils.unescapeHtml4(currentItem.replace("\n", " "))); textRun.setFontFamily(CALIBRI); textRun.setFontSize(11); }
[ "private Spannable applyWordMarkup(String text) {\n SpannableStringBuilder ssb = new SpannableStringBuilder();\n int languageCodeStart = 0;\n int untranslatedStart = 0;\n\n int textLength = text.length();\n for (int i = 0; i < textLength; i++) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Disables the accessibility domain.
public jpuppeteer.util.XFuture<?> disable() { return connection.send("Accessibility.disable", null); }
[ "public void disable();", "protected abstract void disable();", "public SimpleResponse<WhoisPrivacy> disableWhoisPrivacy(Number account, String domain) {\n return client.simple(DELETE, account + \"/registrar/domains/\" + domain + \"/whois_privacy\", ListOptions.empty(), null, WhoisPrivacy.class);\n }"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
auto generated Axis2 call back method for getUserOauth method override this method for handling normal response from getUserOauth operation
public void receiveResultgetUserOauth( org.tempuri.UserWcfStub.GetUserOauthResponse result) { }
[ "public void receiveResultuserOauthBindingAndLogin(\r\n org.tempuri.UserWcfStub.UserOauthBindingAndLoginResponse result) {\r\n }", "Object getUserInfo(String accessToken, String oauthEndpoint);", "public void receiveResultgetUser(\r\n com.solusoft.jpa.IDocServiceStub.GetUserResponse...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column MAIL_RECORD.MAIL_CONTENT
public void setMailContent(String mailContent) { this.mailContent = mailContent; }
[ "public void setContent(String content) {\n\t\tbyteSequenceContent = null; \n\t\tif (content != null) {\n\t\t\tthis.content = new StringBuffer(content);\n\t\t}\n\t\telse {\n\t\t\tthis.content = null;\n\t\t}\n\t}", "public void setEmailContent(String emailContent) {\n this.emailContent = emailContent;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Ensure that we can decode some JSON and create a credential.
@Test public void fromJson() throws VirgilException, WebAuthnException { AuthenticatorMakeCredentialOptions options = AuthenticatorMakeCredentialOptions.fromJSON(MAKE_CREDENTIAL_JSON); AttestationObject attObj = authenticator.makeCredential(options); }
[ "static ExternalAccountAuthorizedUserCredentials fromJson(\n Map<String, Object> json, HttpTransportFactory transportFactory) throws IOException {\n String audience = (String) json.get(\"audience\");\n String refreshToken = (String) json.get(\"refresh_token\");\n String tokenUrl = (String) json.get(\"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column t_sup_info.sup_fax
public String getSupFax() { return supFax; }
[ "public void setSupFax(String supFax) {\n this.supFax = supFax == null ? null : supFax.trim();\n }", "public String getFaxNo() {\n return faxNo;\n }", "public String getFaxNo() {\r\n return faxNo;\r\n }", "public String getFax() {\r\n return (String) get(\"fax\");\r\n }", "...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the PTE for the indicated page number.
public PTE getPTEByPage(long pageNumber) { return mPageTable.get(pageNumber); }
[ "public PTE getPTEByFrame(int frame) {\n if(frame >= mFrameNumber) {\n System.out.println(\"get_PTE_by_frame() sent frame number \" + frame + \" out of range\");\n System.exit(1);\n }\n long pageNumber = mMemory[frame];\n return mPageTable.get(pageNumber);\n }", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructs and initializes a Vector4d to (0,0,0,0).
public Vector4d() { // super(); called implicitly }
[ "public static Vector4 zero()\n {\n return new Vector4(0,0,0,0);\n }", "public Vector4d(double x, double y, double z, double w) {\r\n\t\tsuper(x, y, z, w);\r\n\t}", "public Vector4d(Tuple4f t1) {\r\n\t\tsuper(t1);\r\n\t}", "public Vector4d(double v[]) {\r\n\t\tsuper(v);\r\n\t}", "public Vector4...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Kills the cell that is overlapped by the given Rectangle in render space and returns true if it succeeded. If the Rectangle does not overlap a living cell or doesn't overlap any cell it will return false;
public abstract boolean killOverlapCell(Rectangle rect);
[ "public boolean colliding(Rectangle r) {\n\t\treturn false;\n\t}", "public boolean intersects(Rectangle r) {\n\t\treturn false;\n\t}", "bool doOverlap(Point l1, Point r1, Point l2, Point r2)\n{\n // If one rectangle is on left side of other\n if (l1.x > r2.x || l2.x > r1.x)\n return false;\n \n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get the sub page index.
public Integer getNextSubPageIdx() { return getIntValue(args.getFirst(PARAM_NAME_NEXT_SUB_PAGE_IDX), 0); }
[ "Page getSubpages(int index);", "int getCurrentPageIndex();", "int getPageIndex();", "public NSArray<SWPage> theSubPages() {\n\t\treturn isExpanded( currentPage ) ? currentPage.sortedSubPages() : NSArray.EmptyArray;\n\t}", "int getSubpagesCount();", "int getFirstPageIndex();", "public int getCurrentPage...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column pms_feight_template.charge_type
public void setChargeType(Integer chargeType) { this.chargeType = chargeType; }
[ "public void setChargeType(String value)\n {\n chargeType = value;\n }", "public void setChargeType(String chargeType) {\n this.chargeType = chargeType;\r\n }", "public String getChargeType() {\r\n return chargeType;\r\n }", "public Integer getChargeType() {\n return ch...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test a configuration that behaves a lot like LengthFilter
public void testLength() throws Exception { CharacterRunAutomaton length5 = new CharacterRunAutomaton(new RegExp(".{5,}").toAutomaton()); Analyzer a = new MockAnalyzer(random(), MockTokenizer.WHITESPACE, true, length5); assertAnalyzesTo(a, "ok toolong fine notfine", new String[] {"ok", "fine"}, new int[] {1...
[ "@Test\n public void testConfigure()\n {\n BasicConfigurationBuilder<PropertiesConfiguration> builder =\n new BasicConfigurationBuilder<PropertiesConfiguration>(\n PropertiesConfiguration.class)\n .configure(new BasicBuilderParameters()\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
POST /requestconfirm : Request sending OTP code.
@PostMapping("request-send-otp") public ResponseEntity<ResponseData> confirmOTP(@RequestBody @Valid RequestConfirmForm requestConfirmForm) { subscriberService.confirmBySMS(requestConfirmForm.getPhoneNumber()); ResponseData responseData = ResponseData.ofSuccess(translate(Constants.SUCCESS)); ...
[ "public void RequestConfirmationCode() {\n\n MultiValueMap<String, String> map = new LinkedMultiValueMap<>();\n map.add(\"email\", txtEmail.getText().toString());\n map.add(\"name\", txtName.getText().toString());\n map.add(\"phone\", txtPhone.getText().toString());\n map.add(\"password\",...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Assigns a path to the return value by this signature.
public void setReturnPath(ReturnPath path);
[ "public void setReturnPath(String path, Direction direction);", "public ReturnPath getReturnPath();", "void putPath(K path, V value);", "public void\nsetPath(SoPath path)\n{\n // ref the input path\n if (path != null)\n path.ref();\n\n // nuke the old path\n if (pathOfInterest != null) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
After a successful connection creation, notify the user
void connectionCreated();
[ "private void handleConnectSuccess() {\n Log.d(TAG, \".handleConnectSuccess() entered\");\n\n }", "void onConnectFinished();", "@Override\n\tpublic void connectionSucceeded(String message) {\n\t}", "public void connectionAccepted();", "void onConnected();", "void successfulPushConnect();", "pr...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Clears the value of the 'FEED_DT' field.
public org.LNDCDC_NCS_TCS.SHOWS.apache.nifi.LNDCDC_NCS_TCS_SHOWS.Builder clearFEEDDT() { FEED_DT = null; fieldSetFlags()[8] = false; return this; }
[ "public void setFEEDDT(java.lang.CharSequence value) {\n this.FEED_DT = value;\n }", "public org.LNDCDC_NCS_TCS.SHOWS.apache.nifi.LNDCDC_NCS_TCS_SHOWS.Builder setFEEDDT(java.lang.CharSequence value) {\n validate(fields()[8], value);\n this.FEED_DT = value;\n fieldSetFlags()[8] = true;\n re...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the associated config context for this synchronization context.
public ConfigContext getConfigContext() { return _ctx; }
[ "protected ISynchronizationContext getContext() {\n \t\treturn ((ResourceMappingSynchronizeParticipant)getConfiguration().getParticipant()).getContext();\n \t}", "public ConfigContext getConfigContext() {\n\n return (ConfigContext)getSource();\n\n }", "public ConfigurationContext getConfigurationConte...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates the tile pane that will allow the user to search through the available plants
public TilePane createTP(Controller c) { TilePane searchPane = new TilePane(); Button searchButton = new Button("Search"); search.setPromptText("Search Plants Here"); searchPane.getChildren().addAll(search,searchButton); searchPane.setAlignment(Pos.CENTER); return searchPane; }
[ "public void createTiles() {\r\n Session session = sessionService.getCurrentSession();\r\n Campaign campaign = session.getCampaign();\r\n\r\n tilePane.getChildren().clear();\r\n List<Pc> pcs = null;\r\n try {\r\n pcs = characterService.getPlayerCharacters();\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }