query
stringlengths
8
1.54M
document
stringlengths
9
312k
negatives
listlengths
19
20
metadata
dict
$ANTLR end "RULE_TAGNAME" $ANTLR start "RULE_WORD"
public final void mRULE_WORD() throws RecognitionException { try { int _type = RULE_WORD; int _channel = DEFAULT_TOKEN_CHANNEL; // InternalCucumber.g:2597:11: (~ ( ( '@' | '|' | ' ' | '\\t' | '\\n' | '\\r' ) ) (~ ( ( ' ' | '\\t' | '\\n' | '\\r' ) ) )* ) // Interna...
[ "public final void mRULE_WORD() throws RecognitionException {\n try {\n int _type = RULE_WORD;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // ../com.dubture.editor.sass.ui/src-gen/com/dubture/editor/sass/ui/contentassist/antlr/internal/InternalSass.g:2243:11: ( ( 'a' .. 'z' | '...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructs a queue with maximum size maxSize
public VQueue(int maxSize) { this.maxSize = maxSize; this.queue = new LinkedList<Object>(); }
[ "public Blocking_queue(int maximum_size) {\n this.maximum_size = maximum_size;\n }", "public Queue(Integer capacity);", "public PriorityQueue(int size)\n {\n\t\tmax = size;\n\t\tqueue = new Entry[max];\n\t\tlength = 0;\n }", "public MaxPriorityQueue() {\n heap = new MaxHeap<>();\n }"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the primary key of this user info.
@Override public java.lang.String getPrimaryKey() { return _userInfo.getPrimaryKey(); }
[ "PrimaryKey getPrimarykey();", "@Override\n public com.sdr.metadata.service.persistence.Collection_UserPK getPrimaryKey() {\n return _collection_User.getPrimaryKey();\n }", "public String getPrimaryKey() {\n if (primaryKey == null) primaryKey = \"id\";\n return primaryKey;\n }", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
empty used to enumerate all connected ParticipatingStimuluss.
public java.util.Iterator iteratorParticipatingStimulus() // -end- 39E8FCBA03D8 get_all_head39E8FB5A005D "InteractionInstanceSet::iteratorParticipatingStimulus" ;
[ "@Override\n public void initializeListOfCompaniesWithoutParticipants() {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"initializeListOfCompaniesWithoutParticipants\");\n }\n\n EntityManager em = EntityManagerService.provideEntityManager();\n companiesWithoutParticipants = ne...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
No checked exception ObjectName creator.
public static ObjectName safeObjectName(String name) { try { return new ObjectName(name); } catch (Exception e) { throw new RuntimeException("Failed to create ObjectName from [" + name + "]", e); } }
[ "Name createName();", "protected ObjectName createObjectName(String mBeanName) throws Exception \n {\n ObjectName objectName = new ObjectName(mBeanName);\n return objectName;\n }", "java.lang.String getObjectName();", "ObjectName nameFor(Object object);", "protected abstract String generateO...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a new PluginSchema object for a particular plugin
public PluginSchema(String pluginName) throws PluginException { dropSqls = new ArrayList<String>(); createSqls = new ArrayList<String>(); dbName = PluginFactory.getInstance().getDatabase(pluginName); }
[ "Schema createSchema();", "SchemaDefinition createSchemaDefinition();", "public PluginSchema() {\n dropSqls = new ArrayList<String>();\n createSqls = new ArrayList<String>();\n this.dbName = DaoConfig.DEFAULT_DB_NAME;\n }", "SchemaType createSchemaType();", "SchemaComponentType creat...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Occurs when sensor data is received from the remote client.
public void sensorDataReceived(double[] data);
[ "public void sensorChangeReceived(int type);", "public void serverAlertReceived(byte[] data);", "public void receivedDataFromStation(int station, String data) {}", "private void handleDataReceived(MeshManager.RightMeshEvent e) {\n final MeshManager.DataReceivedEvent event = (MeshManager.DataReceivedEve...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Override of the configure method, which bind a concrete Database class as a singleton.
@Override protected void configure() { bind(IDatabase.class).to(Db4oDatabase.class).in(Singleton.class); }
[ "@Override\n protected void configure() {\n bind(EntityManagerFactory.class).toInstance(Persistence.createEntityManagerFactory(\"JPMSPU\"));\n \n //bind all database service\n bind(IPersonService.class).to(PersonService.class);\n bind(IUserService.class).to(UserService.class);\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
\fn JFreeChart launchBusiness(DataGraph d) \brief launch the business chart \details Set a windows which contain the business chart \param d the datagraph object \return the chart of the business graph
public static JFreeChart launchBusiness(DataGraph d) { JDialog graphWindows = new JDialog(); Dimension dimensionWindow = Toolkit.getDefaultToolkit().getScreenSize(); graphWindows.setLocation((int)((dimensionWindow.getWidth() / 2) - (graphWindows.getWidth() / 2)), (int)((dimen...
[ "public static JFreeChart launchTask(DataGraph d)\n {\n JDialog graphWindows = new JDialog();\n Dimension dimensionWindow = Toolkit.getDefaultToolkit().getScreenSize();\n graphWindows.setLocation((int)((dimensionWindow.getWidth() / 2) - (graphWindows.getWidth() / 2)),\n (int)(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This is a method that gets the names of the Divisions names and holds them in an ObservableList of Strings. This method uses a Lambda expression to make adding the Division for every first_level_divisions record onto the ObservableList more efficient and less prone to typed errors.
public static ObservableList<String> getDivisionNames() { divisionNames.clear(); DBFirst_Level_Divisions.getAllDivisions().forEach((d) -> { divisionNames.add(d.getDivisions()); }); return divisionNames; }
[ "public static ObservableList<Divisions> getAllDivisions() {\r\n\r\n ObservableList<Divisions> divisionList = FXCollections.observableArrayList();\r\n\r\n try {\r\n String sql = \"SELECT * FROM first_level_divisions\";\r\n PreparedStatement ps = DBConnection.getConnection().prepa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
FROM and INTO Load data from another generated Record/POJO implementing the common interface IFBill
public void from(IFBill from);
[ "public interface I_MOD_Billing_Record \n{\n\n /** TableName=MOD_Billing_Record */\n public static final String Table_Name = \"MOD_Billing_Record\";\n\n /** AD_Table_ID=1000003 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Ta...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructs TechPool from Collection of technologies All technologies must belong to the same IdManager
private TechPool(Collection<Technology.State> techStates) { Iterator<Technology.State> it = techStates.iterator(); TechId techId = it.next().getTechnology().getId(); idManager = techId.idManager; int maxTechIndex = techId.techIndex; while (it.hasNext()) { techId...
[ "public TechPool withTech(Technology tech) {\n TechId techId = tech.getId();\n int techIndex = techId.techIndex;\n if (techIndex < techs.length && techs[techIndex] == tech && states[techIndex] == tech.getCurrentState()) {\n return this;\n }\n if (techId.idManager ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Translates the colorIndex from the workbook palette to a java Color.
private Color translateColour(short colorIndex) { HSSFPalette palette = getWorkbook().getCustomPalette(); HSSFColor color = palette.getColor(colorIndex); Color theColor = Color.BLACK; if (color != null) { short[] triplet = color.getTriplet(); theColor = new Color(triplet[0], triplet[1], triplet[2]);...
[ "Integer getColorIndex();", "public Color getColorFromIndex(int index) {\n String key = \"\" + index;\n if (colors.containsKey(key))\n return colors.get(key);\n return DEFAULT_COLOR;\n }", "private HSSFColor translateColour(Color colour) {\n \tHSSFPalette palette = getWorkb...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Initialisiert Register 8005 und setzt vordefinierte Werte.
private Speicher initializeRegister8005(Speicher speicher){ Bit[] bits = new Bit[8]; bits[0] = new Bit( 1, 0); bits[1] = new Bit( 1, 0); bits[2] = new Bit( 1, 0); bits[3] = new Bit( 1, 0); bits[4] = new Bit( 1, 0); bits[5] = new Bit( 1, 0); bits[6] = new B...
[ "private Speicher initializeRegister0801(Speicher speicher){\n Bit[] bits = new Bit[8];\n bits[0] = new Bit( 0, 0);\n bits[1] = new Bit( 0, 0);\n bits[2] = new Bit( 0, 0);\n bits[3] = new Bit( 0, 0);\n bits[4] = new Bit( 0, 0);\n bits[5] = new Bit( 0, 0);\n bi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
.logs.proto.speech.soda.HotwordEventLog hotword_event = 3;
boolean hasHotwordEvent();
[ "com.google.speech.soda.logging.HotwordEventLog getHotwordEvent();", "com.google.speech.soda.logging.HotwordEventLogOrBuilder getHotwordEventOrBuilder();", "com.google.speech.logs.timeline.InputEvent.Event getEvent();", "com.google.speech.soda.logging.InitEventLog getInitEventLog();", "com.google.speech.log...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set the slot number of this variable in the Bindery
public void setBinderySlotNumber(int s) { if (!isUnused()) { binderySlotNumber = s; } }
[ "public void setSlotNumber(int value) {\n this.slotNumber = value;\n }", "private void setSlot(int slot) {\n\t}", "public void setSlot(int slot){\n this.slot = slot;\n }", "public void setSlot( int slot, Slot s );", "public void setSlot(int slot) {\r\n this.slot = slot;\r\n }",...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
inserts p using the smallest increase heuristic
public void insertSmallest(Point p) { if (size() == 0) { first.next = first; first.p = p; return; } double leastDist; double minimumDistance = Double.POSITIVE_INFINITY; Node nearestN = null; Node n = first; do { leas...
[ "public void insertSmallest(Point p) {\n double minIncreaseDis = Double.MAX_VALUE;\n if (firstNode == null) {\n firstNode = new Node(p);\n firstNode.next = firstNode;\n }\n\n Node curNode = firstNode;\n Node preNode = firstNode;\n Node pNode = new Node...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Complete the sockMerchant function below. This function takes two params, an array and its length. Using a hash set (linear time lookup, add, and removal) we take a running count of like pairs and return the total. Each time a pair is found remove that element from the set so that the order of the array does not matter
static int sockMerchant(int n, int[] ar) { HashSet hashSet = new HashSet(n); int count = 0; for (int i = 0; i < n; i++) { if (hashSet.contains(ar[i])) { count++; hashSet.remove(ar[i]); } else { hashSet.add(ar[i]); ...
[ "int countDistinct (AT array);", "static int cntDisPairs(int arr[], int N, int K) {\n\t\t// Stores count of distinct pairs\n\t\t// whose sum equal to K\n\t\tint cntPairs = 0;\n\n\t\t// Sort the array\n\t\tArrays.sort(arr);\n\n\t\t// Stores index of\n\t\t// the left pointer\n\t\tint i = 0;\n\n\t\t// Stores index o...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
return UNSAFE.getLong(startAddr + offset);
@Override public long readLong(long offset) { return Bits.getLong(startAddr + offset); }
[ "public long\n getLongAt( int offset )\n {\n long value = getIntAt( offset );\n return ( (value << 32) + getUIntAt( offset + 4 ) );\n }", "@NativeType(\"size_t\")\n public long offset() { return noffset(address()); }", "private static long bytesToLong(byte [] address) {\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the evaluationException value for this EvaluationExceptionType0_Element.
public void setEvaluationException(org.fcrepo.server.security.xacml.pdp.client.EvaluationException evaluationException) { this.evaluationException = evaluationException; }
[ "public org.fcrepo.server.security.xacml.pdp.client.EvaluationException getEvaluationException() {\n return evaluationException;\n }", "public void setCurrentException(XPathException exception) {\n currentException = exception;\n }", "public void setEvaluationType(Integer evaluationType) {\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Validate EDT running state. Stop the running EDT in case this display is destroyed already.
public abstract boolean validateEDT();
[ "protected void invalidate() {\r\n\t\tsynchronized (FormDisplay.UI_LOCK) {\r\n\t\t\tvalid = false;\t\r\n\t\t}\r\n\t}", "private void jobIsNotRunning() {\n SwingUtilities.invokeLater(new Runnable() {\n @Override\n public void run() {\n jobRunning = false;\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the name of the class of one declared object for rule constructDeeperUnderstanding03_PATH_1_GOAL_1_COMPONENT_txtParcela1_2.
private String getDeclaredClassName_constructDeeperUnderstanding03_PATH_1_GOAL_1_COMPONENT_txtParcela1_2(int index) { switch (index) { case 0: return "module.entity.Action"; case 1: return "module.entity.MERFunction"; case 2: return "module.entity.RuleToHuman"; ...
[ "private String getDeclaredClassName_constructDeeperUnderstanding03_PATH_1_GOAL_3_COMPONENT_txtParcela2_8(int index) {\r\n switch (index) {\r\n case 0: return \"module.entity.Action\";\r\n case 1: return \"module.entity.MERFunction\";\r\n case 2: return \"module.entity.RuleTo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Raw varimax rotation Static method user supplied tolerance and maximum iterations
public static double[][] rawVarimaxRotation(double[][] loadingFactorMatrix, double tolerance, int nIterMax){ int nRows = loadingFactorMatrix.length; int nColumns = loadingFactorMatrix[0].length; double[] communalityWeights = new double[nColumns]; for(int i = 0; i<nColumns; i++){ ...
[ "public static double[][] normalVarimaxRotation(double[][] loadingFactorMatrix, double[] communalityWeights, double tolerance, int nIterMax){\n int nRows = loadingFactorMatrix.length;\n int nColumns = loadingFactorMatrix[0].length;\n for(int i=1; i<nRows; i++)if(loadingFactorMatrix[i].length!=n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a SQL type FluentQuery. A new session is implicitly created (and closed afterwards).
@Override public FluentQuery sqlQuery(final String query) { final FluentQuery fluentQuery = new FluentQueryImpl(query, true) { @Override public Session newSession() { return session(); } }; return fluent...
[ "Query createQuery();", "@Override\r\n public FluentQuery hqlQuery(final Session session, final String query)\r\n {\r\n final FluentQuery fluentQuery = new FluentQueryImpl(session, query, false)\r\n {\r\n @Override\r\n public Session newSession()\r\n {\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
============================================================================================== Init Retrofir API Service ==============================================================================================
public void initApiService() { apiService = ApiUtils.getAPIService(); }
[ "private void init() {\n apiService = ServiceGenerator.createService(RetrofitService.class);\n }", "private Service initRetrofit(){\n Retrofit retrofit = new Retrofit.Builder().baseUrl(Constants.UALA_ENDPOINT_URL)\n .addConverterFactory(GsonConverterFactory.create())\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Limpa as pesquisas recentes
private void limparPesquisasRecentes() { facade.deletarTodosTermos(); pesquisas = facade.obterTermos(); adapter.clear(); adapter.notifyDataSetChanged(); listViewPesquisas.refreshDrawableState(); }
[ "public static void clearPreviousArtists(){previousArtists.clear();}", "protected void removeDayOldPizzas() {\n\t\tPizza temp = null;\n\t\tfor(int i = 0; i < pizzaList.size(); i++) {\n\t\t\ttemp = pizzaList.get(i);\n\t\t\tif(temp.getMadeDate().compareTo(super.getCurrentDate()) == -1) {\n\t\t\t\tSystem.out.println...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the value of the 'byteoffset' field.
public long getByteoffset() { return byteoffset; }
[ "public long getByteoffset() {\n return byteoffset;\n }", "public final int getByteOffset() {\n\n //\tCalculate the offset of the byte buffer\n int pCnt = getParameterCount();\n int pos = WORDCNT + (2 * pCnt) + 3 + m_offset;\n return pos;\n }", "public byte getByteAt( int ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Checks whether the 'field151' field has been set
public boolean hasField151() { return fieldSetFlags()[151]; }
[ "public boolean hasField131() {\n return fieldSetFlags()[131];\n }", "public boolean hasField141() {\n return fieldSetFlags()[141];\n }", "public boolean hasField51() {\n return fieldSetFlags()[51];\n }", "public boolean hasField134() {\n return fieldSetFlags()[134];\n }", "p...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Upload the configuration from config.properties files
private static void uploadConfiguration() throws IOException { InputStream input = null; String filename = CONFIG_PROPERTIES_FILE; input = AppConfig.class.getResourceAsStream("/"+filename); if (input == null) { System.out.println("null"); } if (input !...
[ "public static void processConfig() {\r\n\t\tLOG.info(\"Loading Properties from {} \", propertiesPath);\r\n\t\tLOG.info(\"Opening configuration file ({})\", propertiesPath);\r\n\t\ttry {\r\n\t\t\treadPropertiesFile();\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\tLOG.error(\r\n\t\t\t\t\t\"Monitoring system encountere...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Helper for setFlags(), setting or clearing the FILTER_BITMAP_FLAG bit. Filtering affects the sampling of bitmaps when they are transformed. Filtering does not affect how the colors in the bitmap are converted into device pixels. That is dependent on dithering and xfermodes.
public void setFilterBitmap(boolean filter) { if (filter == true) { mFlags |= FILTER_BITMAP_FLAG; } else mFlags = mFlags & ~FILTER_BITMAP_FLAG; }
[ "public void setFilterBitmap(boolean filter) { throw new RuntimeException(\"Stub!\"); }", "public void setFilterBitmap(boolean filter) {\n \t\n }", "@Override\n public void setFilterBitmap(boolean filter) {\n patternDrawable.setFilterBitmap(filter);\n super.setFilterBitmap(filter);\n }...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a Marbles object, with the font to be used, current position initially pause off the board, pause at 50 milliseconds, and the board values initialized in a 9 x 9 grid.
public Marbles ( ) { Font font = new Font("Arial", Font.BOLD, 18); StdDraw.setFont(font); xposition = yposition = -5; pause = 50; board = new int[][]{{-1,-1,-1, 1, 1, 1,-1,-1,-1}, {-1,-1,-1, 1, 1, 1,-1,-1,-1}, {-1,-1,-1, 1, 1, 1,-1,-1,-1}, { 1, 1, 1, 1, 1, 1, 1, 1, 1}, { 1, 1, 1, ...
[ "private void createBoard(int numMarbles) {\n //player 1 initalization \n this.board[PLAYER_ONE_MANCALA] = new Pit(0, PLAYER_ONE, true);\n for (int i = PLAYER_ONE_MANCALA + 1; i < PLAYER_TWO_MANCALA; i++) {\n this.board[i] = new Pit(numMarbles, PLAYER_ONE, false);\n }\n\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Construct a new PackageSummaryBuilder.
private PackageSummaryBuilder(Context context, PackageDoc pkg, PackageSummaryWriter packageWriter) { super(context); this.packageDoc = pkg; this.packageWriter = packageWriter; }
[ "public static PackageSummaryBuilder getInstance(Context context,\n PackageDoc pkg, PackageSummaryWriter packageWriter) {\n return new PackageSummaryBuilder(context, pkg, packageWriter);\n }", "private Package(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates new form SavingsInfoPage
public SavingsInfoPage() { setLocationRelativeTo(null); setResizable(false); initComponents(); onRun(); }
[ "public InfoboxBuilderPage clickCreateNewInfoboxButton() {\n // to make Selenium do thy bidding, you need to ask it twice\n actions.click(createNewInfoboxButton).perform();\n actions.click(createNewInfoboxButton).perform();\n\n return new InfoboxBuilderPage();\n }", "Page createPage();", "public In...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Tests local random int generating web service using XFire Client API.
public void testRandomIntWebServiceClient() throws Exception{ Client client; client = new Client(new URL(URL_PREFIX + "/IRandomIntegerGeneratorWS" + "?wsdl")); Object obj = client.invoke(TEST_SERVICE_NAME, new Object[] {}); Object [] res = (Object []) obj; for(int i=0; i<res.length; i++){ ...
[ "public void testRandomIntWebService() throws Exception{\r\n Service serviceModel = serviceFactory.create(IRandomIntegerGeneratorWS.class);\r\n IRandomIntegerGeneratorWS service = (IRandomIntegerGeneratorWS) proxyFactory.create(serviceModel, URL_PREFIX + \"/IRandomIntegerGeneratorWS\");\r\n checkRandomInte...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "ruleEValueExpression" $ANTLR start "entryRuleEFunction" InternalAADMParser.g:2115:1: entryRuleEFunction : ruleEFunction EOF ;
public final void entryRuleEFunction() throws RecognitionException { try { // InternalAADMParser.g:2116:1: ( ruleEFunction EOF ) // InternalAADMParser.g:2117:1: ruleEFunction EOF { if ( state.backtracking==0 ) { before(grammarAccess.getEFunctionRule...
[ "public final void entryRuleEValueExpression() throws RecognitionException {\n try {\n // InternalAADMParser.g:2091:1: ( ruleEValueExpression EOF )\n // InternalAADMParser.g:2092:1: ruleEValueExpression EOF\n {\n if ( state.backtracking==0 ) {\n befor...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method returns the value of the database column getback_export.request_no
public String getRequestNo() { return requestNo; }
[ "public String getOutRequestNo() {\n return bizContent.outRequestNo;\n }", "public void setRequestNo(String requestNo) {\r\n this.requestNo = requestNo;\r\n }", "public BigDecimal getREQ_NO() {\r\n return REQ_NO;\r\n }", "int getReportNo();", "java.lang.String getInvoiceNo();",...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
C++: bool retrieve(Mat& image, int flag = 0) javadoc: VideoCapture::retrieve(image, flag)
public boolean retrieve(Mat image, int flag) { boolean retVal = retrieve_0(nativeObj, image.nativeObj, flag); return retVal; }
[ "private void capture() {\n \t\tlen = camera.getJPEG(jpeg, 0);\t\n \t}", "@Override\n public ImageRetrieverResults getImage(Map<String, ?> request) throws ImageAcquisitionException {\n VideoCapture cap;\n Object camId;\n ImageRetrieverResults results = new ImageRetrieverResults();\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set a new sixth category
public Product setCategory6(String category6) { this.category6 = category6; return this; }
[ "public void changeCategory(int index){\n if(user[index].getAmountCategory()>=3 && user[index].getAmountCategory()<=10){\n user[index].setCategoryUser(user[index].newCategory(\"littleContributor\"));\n }\n else if(user[index].getAmountCategory()>10 && user[index].getAmountCategory()<30){\n user[i...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Reads a set of parse trees from the specified InputStream and returns a List containing their roots.
public static List readFromStream(InputStream stream, SymbolFactory factory, ContextFreeGrammar cfg) throws IOException, ParseException { InputStreamReader rdr = new InputStreamReader(stream); BufferedReader reader = new BufferedReader(rdr); String s = ""; String line; while ((line = reader.readLin...
[ "public void buildList() {\n\t\tString nodeName;\n\t\tchar nodeType;\n\t\tString nodeDescription;\n\t\t// read in numNodes\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(read));\n\t\ttry {\n\t\t\t// get node information and add to tree\n\t\t\tString temp = br.readLine();\n//\t\t\tnumNodes = Integ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
7. Action card "Remove a connection piece from the board and place it in the pile of spare connection pieces" Li line 309 "../../../../../playState.ump"
public void doPlayRemoveConnectionActionCard(Connection connection) throws InvalidInputException{ //TODO: LI TileO tileO = TileOApplication.getTileO(); Game currentGame = tileO.getCurrentGame(); List<Connection> connectionList = currentGame.getConnections(); if (connectionList.contains(connection)) { ...
[ "public void removeBoardPiece(BoardPiece boardPiece);", "public void removePiece(){\n piece = null;\n }", "private void removePieceFromBoard(Piece pieceToRemove){\n\t\tspaces.remove(pieceToRemove);\n\t}", "private void removeChip(int x, int y, int color) {\n if (color == myColor) {\n machine...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
recalculate the visual data sequence for this overlay
protected void updateSeqViz() { if (data == null) return; Sequence seqGraph = dataGraph.getSeqViz(); seqViz = new Sequence(); int T = seqGraph.length(); for(int t=0; t<T; t++) { Point p = (Point)seqGraph.get(t).getMeta(ValueFrameGraph.KeyFrameRange); ...
[ "void reinit() {\n for (int i = 0; i < 2; i++) {\r\n for (int j = 0; j < 2; j++) {\r\n plots[i][j].setObjectives(i, j);\r\n }\r\n }\r\n fireTableDataChanged();\r\n }", "public void restartAnimation(){\n\n this.plottingValues = Arrays.copy...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Translates the input TextAlignment object into an SdlTextAlignment object.
public static SdlTextAlignment translateFromLegacy(TextAlignment input){ switch(input){ case LEFT_ALIGNED: return LEFT_ALIGNED; case RIGHT_ALIGNED: return RIGHT_ALIGNED; case CENTERED: return CENTERED; default: return null; } }
[ "public static TextAlignment translateToLegacy(SdlTextAlignment input){\n \tswitch(input){\n \tcase LEFT_ALIGNED:\n \t\treturn TextAlignment.LEFT_ALIGNED;\n \tcase RIGHT_ALIGNED:\n \t\treturn TextAlignment.RIGHT_ALIGNED;\n \tcase CENTERED:\n \t\treturn TextAlignment.CENTERED;\n \tdefault:\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Instantiates a new SQ lite update task from file.
public SQLiteUpdateTaskFromFile(InputStream inputStream) { this.inputStream = inputStream; }
[ "public SQLiteUpdateTaskFromFile(String schemaDefinitionFileName) {\n\t\tthis.schemaDefinitionFile = schemaDefinitionFileName;\n\t}", "public static void importData() {\n\t\tScanner scan;\n\t\tTask temp;\n\t\tFile file = new File(dataFile); // file pointer\n\t\tif (file.length() != 0) { // if the file is not empt...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Set if the result of this task is precious.
public void setPreciousResult(boolean preciousResult) { this.preciousResult = preciousResult; }
[ "public boolean isPreciousResult() {\n return preciousResult;\n }", "protected void maybeSetResultPropertyValue(int result) {\r\n String res = Integer.toString(result);\r\n if (resultProperty != null) {\r\n getProject().setNewProperty(resultProperty, res);\r\n }\r\n }"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a SWGOH guild object.
public Guild(final Logger logger, final ImplHelper implHelper) { super(logger, implHelper); name = "guild"; requiredLevel = Permission.USER; description = "All SWGOH guild related commands"; aliases = new String[]{ "gg" }; category = CommandCategor...
[ "Guild createGuild(long gameId, String title, String clanPrefix);", "public CharacterGuild() {\n this(\"character_guild\", null);\n }", "public GuildsRecord() {\n super(Guilds.GUILDS);\n }", "public static WarriorGuild create(Player player) {\n\t\tWarriorGuild minigame = new WarriorGuild(p...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Draws the table for the students
public void drawTable(JScrollPane scrollPane){ table_1 = new JTable(); table_1.setRowSelectionAllowed(true); table_1.setModel( new DefaultTableModel(new Object[][] {}, new String[] { "SCHOOL_ID", "NAME","SURNAME","","" }) { public boolean isCellEditable(int row, int column) { return false...
[ "public static void display(Student[] students) {\n System.out.print(\"\\nPrint Graph:\\n |\");\n for (int i = 0; i < students.length; i++) {\n System.out.printf(\"#%-2d|\", students[i].id);//column label\n }\n for (int i = 0; i < students.length; i++) {\n //grid\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Constructs a new KatharsisInvokerException exception.
public KatharsisInvokerException(final int statusCode) { super(); this.statusCode = statusCode; }
[ "Exception createException();", "public BadPartitioningException() {\n\t}", "public ClustererFactoryException(String msg, String classname) {\n super(msg, classname);\n }", "public KatharsisInvokerException(final int statusCode, String msg, Throwable nested) {\n super(msg, nested);\n t...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Changes the given highlight to span a different range of bytes. This may be more efficient than a remove/add when a selection is expanding/shrinking (such as a sweep with a mouse) by damaging only what changed.
void changeHighlight(@NotNull IHighlight highlight, long startByteIndex, long endByteIndex);
[ "@NotNull\n IHighlight addHighlight(long startByteIndex, long endByteIndex);", "@NotNull\n IHighlight addHighlight(long startByteIndex, long endByteIndex, @NotNull Color color);", "@NotNull\n IHighlight addHighlight(long startByteIndex, long endByteIndex, @NotNull IHighlightPainter painter);", "publi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the current instance of SensorDataGenerator.
public static SensorDataGenerator getInstance() { if(instance == null) { instance = new SensorDataGenerator(); } return instance; }
[ "public SensorData generateTelemetry()\n\t{\n\t\tSensorData sensorData = new SensorData();\n\t\tthis.latestSensorData = sensorData;\n\t\tthis.latestSensorData.setValue(this.getSystemUtil());\n\t\treturn this.latestSensorData;\n\t}", "public DigitalInput getSensor () {\n return SensorInput;\n }", "Sens...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the focused prod flat rate.
public String getFocusedProdFlatRate() { return focusedProdFlatRate; }
[ "public void setFocusedProdFlatRate(String focusedProdFlatRate) {\r\n\t\tthis.focusedProdFlatRate = focusedProdFlatRate;\r\n\t}", "public Double getProductionRate() {\r\n return this.productionRate;\r\n }", "public String getCommissionFlatRate() {\r\n\t\treturn commissionFlatRate;\r\n\t}", "public d...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "entryRuleTerminalExpression" $ANTLR start "ruleTerminalExpression" ../de.jevopi.mitra2/srcgen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:4450:1: ruleTerminalExpression returns [EObject current=null] : (this_Literal_0= ruleLiteral | this_ClassInstanceCreationExpression_1= ruleClassInstanceC...
public final EObject ruleTerminalExpression() throws RecognitionException { EObject current = null; int ruleTerminalExpression_StartIndex = input.index(); EObject this_Literal_0 = null; EObject this_ClassInstanceCreationExpression_1 = null; EObject this_RuleInvocation_2 = null;...
[ "public final EObject entryRuleTerminalExpression() throws RecognitionException {\n EObject current = null;\n int entryRuleTerminalExpression_StartIndex = input.index();\n EObject iv_ruleTerminalExpression = null;\n\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(in...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
use selected text of editor for searching
void activate( boolean findEditorSelection ) { if( findEditorSelection ) { String selectedText = textArea.getSelectedText(); if( !StringUtils.isEmpty( selectedText ) && selectedText.indexOf( '\n' ) < 0 ) findField.setText( selectedText ); else findField.selectAll(); } // if showing bar, highligh...
[ "String getSelectedText();", "public String getSelectedText() {\r\n return text.substring(startIndex, endIndex);\r\n }", "private String getSelectedText() {\n // There is nothing to do if there is no text selection origin.\n if (this.cursor.getSelectionOrigin() == null) {\n re...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This test case ensures that, when an amount ending with a value of 0 or 1, the method returns a ResetResponseSuccess.
@ParameterizedTest(name = "[{index}] first digit: {0}") @ValueSource(strings = {"0", "1"}) void resetRequest_otherServiceTested(int lastDigit) { // given: the payment request containing the magic amount ResetRequest request = MockUtils.aResetRequestBuilder() .withAmount( ...
[ "@ParameterizedTest(name = \"[{index}] first digit: {0}\")\n @ValueSource(strings = {\"0\", \"1\"})\n void resetRequest_ResetResponseSuccess(int lastDigit) {\n // given: the payment request containing the magic amount\n ResetRequest request = MockUtils.aResetRequestBuilder()\n .wi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Our algorithm is fairly simple. It operates on strings of partial syllables, scanning until it finds a consonant OR the vowel "ay" OR the medial "ya yit" (the only two letters which can appear before a consonant). For the purpose of simplicity, scanning stops at either a base consonant or a killed one (but not a stacke...
private static final String ScanTrickyReplacements(String source) { String[] identifiers = new String[ID_TOTALIDENTIFIERS]; StringBuffer res = new StringBuffer(); for (int startID=0; startID<source.length();startID++) { //First, advance startID past any non-Myanmar letters ...
[ "String reassembler(String keyword, List<String> sentence){\n\n Set<String> decompRules = scriptKeywords.get(keyword).keySet();\n List<List<String>> stars = new ArrayList<>();\n String finalDecomprule = \"xx\"; //To keep track if there is no decompRule\n boolean matchesDecom...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
is has such page
private boolean isThereSuchPage (int number) { if (number > 0 && number <= this.getPages().length) { return true; } else { System.out.println("There isn't such page!"); return false; } }
[ "public boolean isPageLoaded(){\n String currentURL = \"search\";\n String currentTitle = \"Google\";\n return isPageLoaded(currentURL, currentTitle, number2PageBottomBold);\n }", "public boolean hasPage(String name)\n {\n return getPage(name) != null;\n }", "public boolean ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test the create comment POST for a user who has RSVPd the Rendezvous. Must return 200 code. Functional requirement: 5.6) Comment on the rendezvouses that he or she has RSVPd.
@Test public void testSaveCommentToRendezvousPositive() throws Throwable { int rendezvousId; super.authenticate("user1"); rendezvousId = super.getEntityId("Rendezvous4"); //Table games this.mockMvc .perform( MockMvcRequestBuilders.post("/comment/user/edit.do?rendezvousId=" + rendezvousId).con...
[ "@Test\r\n\tpublic void testCreateCommentToRendezvousRSVPdNegative() throws Throwable {\r\n\t\tfinal MockHttpServletRequestBuilder request;\r\n\t\tint rendezvousId;\r\n\r\n\t\tsuper.authenticate(\"user5\"); //The user hsn't RSVPd the Rendezvous\r\n\r\n\t\trendezvousId = super.getEntityId(\"Rendezvous4\"); //Table g...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Disassociates a value with keys.
public void disassociate(V value, K... keys) { disassociate(value, Arrays.asList(keys)); }
[ "public void disassociate(V value, Iterable<K> keys) {\n Set<K> keySet = values.get(value);\n if (keySet != null) {\n for (K key : keys) {\n keySet.remove(key);\n\n\n Set<V> set = associations.get(key);\n if (set != null) {\n s...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Goes to Details Page for Monster with ID that was entered into search bar
protected void seeDetails() { int id; try { id = Integer.parseInt(navPane.getInpMonsterId().getText()); } catch (NumberFormatException e) { Alert numberWarning = new Alert(AlertType.WARNING); numberWarning.setTitle("Invalid Entry"); numberWarning.setH...
[ "public void detailsCarer(String id)\n\t{\n\t\tExecutions.sendRedirect(\"/carers/details.zul?carerid=\" + id);\n\t}", "public static void goToDetailsViaTitle() {\n List<WebElement> allTitles = Browser.driver.findElements(SEARCH_RESULTS_TITLES);\n WebElement firstTitle = allTitles.get(0);\n fi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
A constructor for the series model taking parameters for title, start year, end year, and a linked hash map of episodes.
public SeriesModel(String title, LinkedHashMap<String, Episode> episodes) { super(title, episodes); }
[ "public SeriesModel(String title, int startYear, int endYear) {\n\t\tsuper(title, startYear, endYear);\n\t}", "public BookSeries(String seriesTitle, int price, int quantityOfSeries)\n {\n super(price, quantityOfSeries);\n this.title = seriesTitle;\n bookSeries = new HashMap<>();\n }", ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Test case number: 6 / 56 covered goals: Goal 1. org.apache.commons.cli.Options.addOption(Ljava/lang/String;Ljava/lang/String;ZLjava/lang/String;)Lorg/apache/commons/cli/Options;: rootBranch Goal 2. org.apache.commons.cli.Options.()V: rootBranch Goal 3. org.apache.commons.cli.Options.addOption(Lorg/apache/commons/cli/Op...
@Test(timeout = 4000) public void test06() throws Throwable { Options options0 = new Options(); Options options1 = options0.addOption("Dk4NQ5n7X", "~;yXgj", true, "MW0qv+)ij;+"); Option option0 = options1.getOption("Dk4NQ5n7X"); assertNotNull(option0); assertEquals(1, option0.get...
[ "@Test(timeout = 4000)\n public void test12() throws Throwable {\r\n Options options0 = new Options();\r\n // Undeclared exception!\r\n try { \r\n options0.addOption(\"J1<*ssS-q\", \"2$0V70O}+C6*?]i_w\", true, \"\");\r\n fail(\"Expecting exception: IllegalArgumentException\");\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get captured `from` argument.
public Optional<Tag> capturedFrom() { return this.from.get(); }
[ "public String getFrom() {\r\n\t\treturn from;\r\n\t}", "public Object getFrom() {\n return from.getObject();\n }", "Object getArg();", "java.lang.String getFrom();", "String getArgument();", "int getFrom();", "public BoxFacade getFrom() {\n return from;\n }", "java.lang.String getA...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ (Display prime numbers between 2 and 1,000) Modify Listing 5.15 to display all the prime numbers between 2 and 1,000, inclusive. Display eight prime numbers per line. Numbers are separated by exactly one space.
public static void main(String[] args) { int numberPerLine = 8; int count = 0; for (int number = 2; number < 1000; number++) {// number is prime number boolean isPrime = true; for (int divisor = 2; divisor < number; divisor++) { if (number % divisor == 0) { isPrime = false; break; ...
[ "private static void showAllPrimeNumber (int uptoDigit){\n \tif(uptoDigit < 0) {\n \t\treturn;\n \t}\n \tSystem.out.println(\"The all Prime numbers from 1 to \" + LIMIT_NUMBER + \" are : \");\n \tfor(int i=1; i<=uptoDigit; i++) {\n \t\tif(isPrimeNumber(i)){\n \t\t\tSystem.out.print(i + \", \");...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Person's legal name, if it differs from their primary name. .opencannabis.person.Name legal_name = 2 [(.gen_bq_schema.description) = "Person&92;'s legal name, if it differs from their primary name."];
public Builder setLegalName(io.opencannabis.schema.person.Name value) { if (legalNameBuilder_ == null) { if (value == null) { throw new NullPointerException(); } legalName_ = value; onChanged(); } else { legalNameBuilder_.setMessage(value); } re...
[ "public io.opencannabis.schema.person.Name getLegalName() {\n return legalName_ == null ? io.opencannabis.schema.person.Name.getDefaultInstance() : legalName_;\n }", "public io.opencannabis.schema.person.NameOrBuilder getLegalNameOrBuilder() {\n return getLegalName();\n }", "public PersonName getLegalNa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
$ANTLR end "rule__Callback__Group_2__0__Impl" $ANTLR start "rule__Callback__Group_2__1" ../org.waml.w3c.webidl.ui/srcgen/org/waml/w3c/webidl/ui/contentassist/antlr/internal/InternalWebIDL.g:3539:1: rule__Callback__Group_2__1 : rule__Callback__Group_2__1__Impl rule__Callback__Group_2__2 ;
public final void rule__Callback__Group_2__1() throws RecognitionException { int stackSize = keepStackSize(); try { // ../org.waml.w3c.webidl.ui/src-gen/org/waml/w3c/webidl/ui/contentassist/antlr/internal/InternalWebIDL.g:3543:1: ( rule__Callback__Group_2__1__Impl rule__...
[ "public final void rule__Callback__Group_1__2() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.waml.w3c.webidl.ui/src-gen/org/waml/w3c/webidl/ui/contentassist/antlr/internal/InternalWebIDL.g:3478:1: ( rule__Callback__Group_...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a new MessageSourceHolder for resolving messages from property files
public MessageSourceHolder(String... classPathResourcePaths) { Properties globalProperties = new Properties(); try { globalProperties.load(MessageSourceHolder.class.getResourceAsStream("/resources/global.properties")); } catch (IOException e1) { throw new CommonProperties...
[ "@Bean\n\tpublic ResourceBundleMessageSource messageSource() {\n\t\tResourceBundleMessageSource rb = new ResourceBundleMessageSource();\n\t\t// Load property in message/validator.properties\n\t\trb.setBasenames(new String[] { \"messages/validator\" });\n\t\treturn rb;\n\t}", "@Bean\n public MessageSource messa...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the player's y position
public float getPlayerY() { return player.getY(); }
[ "public int getPlayerY()\n {\n return iPlayerPosY;\n }", "double getPositionY();", "public int getY() {\n\t\treturn (int) pos.y;\n\t}", "public static int getCurrentYPosition() {\n // TODO: Implement this method.\n return y_position;\n }", "private int calculatePositionY(Player...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
protected static Logger log = LoggerFactory.getLogger(BigDecimalMapper.class); Constructor
public BigDecimalMapper() { super(); }
[ "public BigDecimalMoneyConverter() {\n super(true);\n }", "private PriceMapper() {\n }", "public DecimalConstant( BigDecimal value)\n {\n this( value, null);\n }", "@Test\n public void testBigDecimalConstructorDefaultRounding() {\n new Money(new BigDecimal(\"1.231\"), Currency.ge...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
get the char corresponding to the index i, for example 0 = a, and 25 = z;
public static Character getCharFromIndex(int i){ return new Character(alphabet[i]); }
[ "public char getChar(int index);", "public char charAt(int index);", "public char getLetterAt(int i) {\r\n\t if (i < sequence.length) {\t \r\n\t return sequence[i];\r\n\t } else {\r\n\t return ' ';\r\n\t }\r\n\t }", "public static String getCharForNumber(int i) {\n\t return i > 0 ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the Default RAM capacity (in MB) for creating Hosts. This value is used when the RAM capacity is not given in a Host constructor.
public static long getDefaultRamCapacity() { return defaultRamCapacity; }
[ "public static long getDefaultStorageCapacity() {\n return defaultStorageCapacity;\n }", "public static Capacity getDefaultCapacity() {\n return new Capacity(DEFAULT_CAPACITY);\n }", "protected int getDefaultHeapSize()\n\t{\n\t\treturn (DEFAULT_HEAP_SIZE);\n\t}", "public static long getDef...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Select the mapping used to process the selection path for this request. If no mapping can be identified, create an error response and return null.
protected ActionMapping processMapping(HttpServletRequest request, HttpServletResponse response, String path) throws IOException { // Is there a mapping for this path? ActionMapping mapping = (ActionMapping) moduleConfig.findActionConfig(path); // If a mapping is found, p...
[ "public PathMapping getPathMapping();", "protected ActionMapping processMapping( HttpServletRequest request,\n HttpServletResponse response,\n String path)\n throws IOException\n { //20030425AH\n ActionMapping mapping = super...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
test that an existing key and existing property are replaced in the message map
@Test public void testReplace_matchingProperty_matchingKey_noParams() { final MessageMap constantMap = buildReplaceErrorMap(); MessageMap replaceMap = buildReplaceErrorMap(); assertTrue(replaceMap.equals(constantMap)); assertTrue(replaceMap.containsMessageKey(RiceKeyConstants.ERROR_INAC...
[ "@Test public void testReplace_matchingProperty_noMatchingKey() {\n final MessageMap constantMap = buildReplaceErrorMap();\n MessageMap replaceMap = buildReplaceErrorMap();\n\n assertTrue(replaceMap.equals(constantMap));\n assertFalse(replaceMap.containsMessageKey(\"fooKey\"));\n\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the "setID" attribute
public org.apache.xmlbeans.XmlAnySimpleType getSetID() { synchronized (monitor()) { check_orphaned(); org.apache.xmlbeans.XmlAnySimpleType target = null; target = (org.apache.xmlbeans.XmlAnySimpleType)get_store().find_attribute_user(S...
[ "public SI getSetID() { \r\n\t\tSI retVal = this.getTypedField(1, 0);\r\n\t\treturn retVal;\r\n }", "public SI getArv1_SetID() { \r\n\t\tSI retVal = this.getTypedField(1, 0);\r\n\t\treturn retVal;\r\n }", "String getIdAttribute();", "org.apache.xmlbeans.XmlString xgetSetId();", "public String getSetOf...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
tests overlap for two transitions
@Test public void overlapExample2() { Transition t1 = new ColorTransition(0, 2, new Color(50, 50, 50), new Color(50, 50, 50)); Transition t2 = new ScaleTransition(0, 6, 50.0, 100.0, 10.0, 10.0); assertEquals(false, t1.overlap(t2)); }
[ "@Test\r\n public void overlapExample1() {\r\n Transition t1 = new ColorTransition(0, 2, new Color(50, 50, 50),\r\n new Color(50, 50, 50));\r\n Transition t2 = new MoveTransition(0, 6, 50.0,\r\n 100.0, 10.0, 10.0);\r\n assertEquals(false, t1.overlap(t2));\r\n }", "@Test\r\n publi...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns true if field color is set (has been assigned a value) and false otherwise
public boolean isSetColor() { return this.color != null; }
[ "public boolean isSetColor() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __COLOR_ISSET_ID);\n }", "boolean isColorSet();", "public boolean isSetColor() {\r\n return this.color != null;\r\n }", "public boolean isSetColor()\r\n {\r\n synchro...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Bool que indica si el nodo ha sido visitado.
public boolean isVisitado() { return this.isVisited; }
[ "public boolean isVisited() {\n\t\tif (visited == false) \n return false;\n else \n return true;\n\t}", "public boolean hasBeenVisited() {\n\t\treturn visited; // Replace with your code\n\t}", "public Boolean isVisited(){\n return visited;\n }", "public boolean isVisited ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Fetch records that have industry_code IN (values)
public List<com.moseeker.baseorm.db.profiledb.tables.pojos.ProfileWorkexp> fetchByIndustryCode(Integer... values) { return fetch(ProfileWorkexp.PROFILE_WORKEXP.INDUSTRY_CODE, values); }
[ "private ArrayList<Integer> getIndustryIds() {\r\n ArrayList<Integer> industryList = new ArrayList<>();\r\n LinkedList<String> selectedList = (LinkedList<String>) spinner_industry_type.getSelectedStrings();\r\n for (EOCountryData countryData : industryObjList) {\r\n for (String str :...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
move to a tile, immediately moving to the next tile and setting moveCooldown to some shitty number indicating how long the creature should wait before he can move again. Animation is not handled in the model
private void doMove(Tile tile) { Tile oldTile = super.currentTile; super.currentTile.setInhabitant(null); tile.setInhabitant(this); this.path.step(); //creature is moved, calculate moveCooldown this.moveCooldown = this.calculateMoveSpeed(oldTile, tile); }
[ "private void moveTick() {\n if (this.moveCooldown <= 0) {\n //LETS DO STUFF\n Tile nextTile = this.path.getNextTile();\n // if attackingCreature == null the creature is not attacking\n // this.canMove() will check if the creature has enough energy to move (on...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Callback when a storage volume is mounted, so that all packages on it become available.
void onStorageVolumeMounted(@NonNull String volumeUuid, boolean fingerprintChanged);
[ "void notifyMediaVolumeSpaceAvailable(MediaStorageVolume msv);", "public void notifyVolumeAccessStateChanged(MediaStorageVolume msv);", "private List<VolumeMount> getVolumeMounts(Storage storage) {\n List<VolumeMount> volumeMountList = new ArrayList<>(VolumeUtils.createVolumeMounts(storage, DATA_VOLUME_M...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the value of messageId
public String getMessageId() { return messageId; }
[ "public Integer getMessageId() {\n return messageId;\n }", "java.lang.String getMessageId();", "public String getChatMessageId() {\n return this.chatMessageId;\n }", "public String getMessageId() {\n Field field = obtainField(FieldName.MESSAGE_ID);\n if (field == null)\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the Vaadin form that is wrapped by this form component, useful in case Vaadin features are needed that ExpressUI does not expose.
public Form getForm() { return form; }
[ "public final Form getComponentForm() {\n\t\treturn this;\n\t}", "public final ScForm findFormWrapper()\n {\n if ( isForm() )\n return asForm();\n\n if ( hasParent() )\n return getParent().findFormWrapper();\n\n return null;\n }", "@Cached\r\n public IForm get...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Returns the pod's clustername. The clustername is the value of the weblogic.clusterName label in the given pod.
public static String getPodClusterName(V1Pod pod) { return Optional.ofNullable(pod) .map(V1Pod::getMetadata) .map(V1ObjectMeta::getLabels) .map(labels -> labels.get(CLUSTERNAME_LABEL)).orElse(null); }
[ "java.lang.String getClusterName();", "public java.lang.String getClusterName() {\n return clusterName;\n }", "public String getClusterName() {\n return clusterName;\n }", "public static String getPodServerName(V1Pod pod) {\n return Optional.ofNullable(pod)\n .map(V1Pod::getMetadata)\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
has the entry expired?
boolean isExpired(MapEntry me) { long ttlInMs = me.getTimeToLive(); boolean expired = ttlInMs > 0 && (System.currentTimeMillis() - me.getLastAccessedTime() > ttlInMs); return expired; }
[ "public boolean isExpired() {\n \treturn (System.currentTimeMillis() - this.starttime > this.validTime ) ; \t\n }", "private boolean hasExpired() {\r\n\t\tDate now = new Date(System.currentTimeMillis());\r\n\t\treturn now.after(rolloverDate);\r\n\t}", "public boolean isExpired()\n {\n return ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Unhappy path testing for testGetAllClient, tests that a 405 status code is given for a bad html verb
@Test(priority = 10) public void testGetAllClientsBadVerb() { Response response = given().header("Authorization", token).when().post(URL + "/getAll/").then().extract().response(); assertTrue(response.statusCode() == 405); }
[ "@Test(priority = 10)\n\tpublic void testGetAllClientsBadUrl() {\n\t\tResponse response = given().header(\"Authorization\", token).when().get(URL + \"/notAURL/\").then().extract().response();\n\n\t\tassertTrue(response.statusCode() == 404);\n\t}", "public void testUnsupportedMethodResponseHttpHeader() throws Exce...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the processInstances value for this Zuora_Customer_HPM_Setting__c.
public void setProcessInstances(com.sforce.soap.enterprise.QueryResult processInstances) { this.processInstances = processInstances; }
[ "public void setProcessInstances(List<ProcessInstance> processInstances) {\r\n this.processInstances = processInstances;\r\n }", "public void setProcessInstances(com.sforce.soap.enterprise.QueryResult processInstances) {\n this.processInstances = processInstances;\n }", "public void setProce...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Sets the current concept.
public void setConcept(final String aConcept) { mConcept = aConcept.trim(); }
[ "public void setConcept(Concept concept) {\n this.concept = concept;\n }", "public void setConcept(Concept concept) {\n\t\tthis.concept = concept;\n\t}", "public void setConceptId(String conceptId);", "@SuppressWarnings(\"unused\")\n private void setConceptId(Long conceptId) {\n if (concept == n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Limit the zoom ratio so that the map can only be zoomed between the ratio that fits it to the screen and the real size of the map image
@Override protected void zoom(float ratio, float px, float py) { float zoomFitRatio = getZoomMinRatio(); if (ratio < zoomFitRatio) { ratio = zoomFitRatio; } else if (ratio > 1f) { ratio = 1f; } super.zoom(ratio, px, py); }
[ "private void setScalefactor() {\n if (((mapXmax - mapXmin) / (mapYmax - mapYmin)) <= ((double) (this.getWidth() - 2 * border) / (double) (this.getHeight() - 2 * border))) { //fit the map to the panel height (leave a border)\n scale = (this.getHeight() - 2 * border) / (mapYmax - mapYmin);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
O container do Alessander contem Generalizations O container de uma Generalization deveria ser o Specific
public void DealGeneralization (OntoUML.Generalization gen1) { System.out.print("[Generalization]: "); RefOntoUML.Generalization gen2 = myfactory.createGeneralization(); // O metamodelo do Alessander nao esta de acordo com a especificacao da UML // source do generalization *deveria* ser o Specific Cl...
[ "Generalization createGeneralization();", "GeneralizationSet createGeneralizationSet();", "public abstract Anuncio creaAnuncioGeneral();", "Concept getGeneral();", "private void setUpAGeneralization(Object child, Object parent) {\n aGeneralization = getFactory().buildGeneralization(child, parent);\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create a new ElementInsertionList.
public static ElementInsertionList create() { return new ElementInsertionList(); }
[ "public OrderedList createOrderedList() {\n positionedParameters.clear();\n return new OrderedList(positionedParameters);\n }", "public IList<ImpElement> makeImpElementList() {\n\t\t// Returns new generic list with type parameter ImpElement\n\t\treturn new GenericList<>();\n }", "EList createEList();"...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Create a function call to the Instrument Code function with properly encoded parameters. The instrumented function call will be of the following form: MODULE_RENAMING.INSTRUMENT_CODE_INSTANCE.INSTRUMENT_CODE_FUNCTION_NAME(param1, param2). This with the given constants evaluates to: module$exports$instrument$code.instru...
private Node newInstrumentationNode(NodeTraversal traversal, Node node, String fnName) { String type = "Type.FUNCTION"; String encodedParam = parameterMapping.getEncodedParam(traversal.getSourceName(), fnName, type); Node innerProp = IR.getprop(IR.name(MODULE_RENAMING), IR.string(INSTRUMENT_CODE_INSTANCE...
[ "Code createCode();", "java.lang.String getParameterCode();", "void setParameterCode(java.lang.String parameterCode);", "InlineCodeC createInlineCodeC();", "public abstract byte[] instrumentMethod();", "public static void emitAssignConstantToRegister(StringBuilder pCode, String register, int constant){\n\...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
/ ERROR MANAGEMENT Return whether if the lexicon found any errors or was executed correctly
public boolean hasErrors() { return this.lexError; }
[ "public void check() {\r\n\t\tList<String> token = Lexer.lexer(this.content);\r\n\t\tint errorIndex = syntaxCheck(token);\r\n\t\tif (errorIndex == define.noError) {\r\n\t\t\tsetValue(token.get(0), Lexer.toInt(token.get(2)));\r\n\t\t\terrorIndex = semanticCheck(token.get(0));\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.err...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
required string phy = 5;
public java.lang.String getPhy() { java.lang.Object ref = phy_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { phy_...
[ "java.lang.String getPhy();", "public Builder setPhy(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000010;\n phy_ = value;\n onChanged();\n return this;\n }", "public com.google.protobuf.ByteString\n...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
This method was generated by MyBatis Generator. This method sets the value of the database column change_operation.root_entity_content
public void setRootEntityContent(String rootEntityContent) { this.rootEntityContent = rootEntityContent == null ? null : rootEntityContent.trim(); }
[ "public String getRootEntityContent() {\r\n return rootEntityContent;\r\n }", "public void setChangedEntityContent(String changedEntityContent) {\r\n this.changedEntityContent = changedEntityContent == null ? null : changedEntityContent.trim();\r\n }", "public void setContentExpression(Expre...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a new Chassis vertex in this graph.
public de.uni_koblenz.jgralabtest.schemas.gretl.pddsl.Chassis createChassis();
[ "Vertex createVertex();", "void create(VertexDescriptor descriptor);", "public ChassisPci() {\n super();\n }", "public Vertex(String id) { \n name = id; \n }", "public de.uni_koblenz.jgralabtest.schemas.citymap.Way add_from(de.uni_koblenz.jgralabtest.schemas.citymap.Junction vertex);", "...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
True if has "startPage" attribute
public boolean isSetStartPage() { synchronized (monitor()) { check_orphaned(); return get_store().find_attribute_user(STARTPAGE$12) != null; } }
[ "boolean isSetPages();", "public boolean isPageRequested() {\n\n // If we're in add XML MO mode and have at least one future MO, a new page is not desired.\n if (wizard.isInAddXmlMoMode() && wizard.hasFutureManagedObjects()) {\n return false;\n }\n\n return getPageIdx() >= 0;\n }", "public boo...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Get Tipo de Manifestacao
public String getLBR_TipoDeManifestacao();
[ "TypeManifestation getTypeManifestation();", "public java.lang.String getTipoCatalogador();", "public ManifestAieon getManifest();", "public String getTipo();", "java.lang.String getCrdManifest();", "java.lang.String getCrManifest();", "public java.lang.String getTipoTarea();", "public String tipoMund...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Gets the value of the 'var155' field.
public java.lang.Boolean getVar155() { return var155; }
[ "public java.lang.Boolean getVar155() {\n return var155;\n }", "public java.lang.Integer getVar159() {\n return var159;\n }", "public java.lang.Integer getVar159() {\n return var159;\n }", "public java.lang.Integer getVar15() {\n return var15;\n }", "public java.lang.Integer getVar55() {...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates new form dlgPrintSavedMechOptions
public dlgPrintSavedMechOptions(java.awt.Frame parent, boolean modal, Mech m, String Warrior, int Gunnery, int Piloting) { super(parent, modal); initComponents(); Parent = (ifMechForm) parent; if (m == null) { CurMech = null; pnlBattleMech.setVisible(false); ...
[ "public void showSavePrintDialog(){\n pauseSimulation();\n Object[] options = { \"Save simulation and print logs\", \"No\" , \"Cancel\"};\n int dialogResult = JOptionPane.showOptionDialog(null, \"Would you like to save simulation and print dialog?\", \"Warning\",\n JOptionPane....
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Creates a BinaryExpression that represents a division assignment operation that does not have overflow checking.
public static BinaryExpression divideAssign(Expression expression0, Expression expression1, Method method) { throw Extensions.todo(); }
[ "public static BinaryExpression divideAssign(Expression expression0, Expression expression1) { throw Extensions.todo(); }", "public static BinaryExpression divide(Expression expression0, Expression expression1) { throw Extensions.todo(); }", "public static BinaryExpression divideAssign(Expression expression0, E...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Given a coffee maker with the recipe book When we add a recipe, each recipe name must be unique in the recipe list If we add the recipe with duplicate name the program should return False, otherwise True
@Test public void testAddDuplicateRecipe() { coffeeMaker.addRecipe(recipe1); assertFalse(coffeeMaker.addRecipe(recipe1)); }
[ "@Test\n\tpublic void testAddTheUniqueNameOfRecipe() {\n\t\tcoffeeMaker.addRecipe(recipe1);\n\t\tassertTrue(coffeeMaker.addRecipe(recipe2));\n\t}", "@Test\n\tpublic void testAddTheNotUniqueNameOfRecipe() {\n\t\tcoffeeMaker.addRecipe(recipe1);\n\t\tassertFalse(coffeeMaker.addRecipe(recipe1));\n\t}", "@Test\r\n ...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
Initialize a new UserPanel
private UserPanel() { }
[ "private void initUserPanel(){\n\t\tuserPanel= new UserPanel(this);\n\t\tRootPanel.get(ClientConstants.USER_PANEL_CONTAINER).add(userPanel);\n\t}", "@Override\n public void initPanel() {\n System.out.println(\"--- ManageUserPopUpView.initPanel()\");\n\n // TODO\n }", "public AddNewUserPanel(...
{ "objective": { "paired": [], "self": [], "triplet": [ [ "query", "document", "negatives" ] ] } }