query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
Creates a new instance of LQT_Message_Queue | public LQT_Message_Queue() {
a_list = new LinkedList<LQT_Message>();
} | [
"protected MessageQueue createMessageQueue() {\n String msgQueueClass = getProperty(MSG_QUEUE_CLASS, null);\n if (msgQueueClass != null) {\n try {\n return (MessageQueue) Class.forName(msgQueueClass).newInstance();\n } catch (Exception e) {\n System.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
end initializePatientInfoTab() TAB 3: Billing | private void initializeBillingTab() {
billingTab = new JPanel(new GridBagLayout());
billingTab.setBackground(MainGUI.backgroundColor);
billingTab.setBorder(BorderFactory.createLineBorder(Color.BLACK, 1));
billingTabConstraints = new GridBagConstraints();
billing_patientB... | [
"private void fillGeneralTab(final EntPaymPlanTestData testData) {\n tfPaymentEntityName().setText(testData.getClientState());\n tfStreet().setText(testData.getAddress());\n tfBuilding().setText(testData.getBuilding());\n tfCity().setText(testData.getCity());\n tfState(testData.getState()).click();\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method that examines all the coins in a List and returns only the coins that have a currency that matches the parameter value. | static <E extends Valuable> List<E> filterByCurrency(List<E> coinlist,String currency) {
if( currency == null || coinlist == null ) return null;
Predicate<E> currencyFilter = (valuable) -> valuable.getCurrency().equalsIgnoreCase(currency);
return coinlist.stream().filter( currencyFilter ).collect( Collectors.toLi... | [
"static void sumByCurrency(List<Valuable> moneys) {\n//\t\tList<String> currencys = new ArrayList<String>();\n//\t\tsortByCurrency(coins);\n//\t\tfor (Valuable coin : coins) {\n//\t\t\tif ( !currencys.contains( coin.getCurrency() ) ) {\n//\t\t\t\tcurrencys.add( coin.getCurrency() );\n//\t\t\t}\n//\t\t}\n//\t\tfor (... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "entryRuleXAndExpression" $ANTLR start "ruleXAndExpression" ../org.xtext.scripting/srcgen/org/xtext/scripting/parser/antlr/internal/InternalScripting.g:498:1: ruleXAndExpression returns [EObject current=null] : (this_XEqualityExpression_0= ruleXEqualityExpression ( ( ( ( () ( ( ruleOpAnd ) ) ) )=> ( () ( ( r... | public final EObject ruleXAndExpression() throws RecognitionException {
EObject current = null;
EObject this_XEqualityExpression_0 = null;
EObject lv_rightOperand_3_0 = null;
enterRule();
try {
// ../org.xtext.scripting/src-gen/org/xtext/scripting/p... | [
"public final EObject ruleXAndExpression() throws RecognitionException {\n EObject current = null;\n\n EObject this_XEqualityExpression_0 = null;\n\n AntlrDatatypeRuleToken lv_feature_2_0 = null;\n\n EObject lv_rightOperand_3_0 = null;\n\n\n enterRule(); \n \t\tHiddenToken... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Ask for the department | private String setDepartment() {
System.out.println("Department codes\n1 for Sales \n2 for Development "
+ "\n3 for Accounting \n0 for Other\nEnter the department code: ");
Scanner sc = new Scanner(System.in);
int deptChoice = sc.nextInt();
sc.close();
if (deptChoice == 1) return "sales";
else if (deptC... | [
"private String askDepartment() {\r\n\t\tScanner scanner = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Please choose department: \\n1 for Sales\\n2 for Developement\\n3 for Accounting\\n0 for none\\n Enter department code: \");\r\n\t\tint departmentInput = scanner.nextInt();\r\n\t\tif (departmentInput == 1)... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Preauthorize a payment on an existing order. | PaymentTransactionResponse authorizeOrder(CardDetailsPaymentMethod orderPayment, PaymentTransactionResponse inResponse,
Money money); | [
"private void prePayOrder() {\n//\t\t//Check if order is completed, if so, print and open drawer, create an empty order and set cashGiven to zero\n//\t\tif( m_order == null) {\t\t\n//\t\t\tFDialog.warn(0, Msg.getMsg(p_ctx, \"You must create an Order first\"));\n//\t\t}\n//\t\telse\n//\t\t{\n//\t\t\tif ( WPosPrePaym... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set the ProxyPort for socks connections. The default value is 1080 | public void setSocksProxyPort(int port) {
this.socksProxyPort = port;
} | [
"private void setRemoteProxyPort(int value) {\n\n remoteProxyPort_ = value;\n }",
"public void setSmtpSOCKSProxyPort(int value) {\n this.smtpSOCKSProxyPort = value;\n }",
"public void setHttpProxyPort(int port);",
"public void setProxyPort(String port)\r\n {\r\n this.proxyPort = po... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Used to validate a three marble move | public boolean isValidMove(String pos1, String pos2, String pos3, int direction, Marble m) {
return makeMove(pos1, pos2, pos3, direction, m);
} | [
"private static boolean isValidThirdMove(PlayerAction moveToCheck,\r\n\t\t\tList<Move> oldMoves) {\r\n\t\tMove firstMove = oldMoves.get(0);\r\n\r\n\t\tif (oldMoves.size() == 2) {\r\n\t\t\tMove secondMove = oldMoves.get(1);\r\n\t\t\treturn !firstMove.getClass().isInstance(moveToCheck)\r\n\t\t\t\t\t&& !secondMove.get... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Compute the total items in the criteria using projection. (by "select count(id)"). | protected static int getTotalItems(Criteria criteria) throws HibernateException
{
/*criteria.setProjection(Projections.count("id"));*/
criteria.setProjection(Projections.rowCount());
Long totalCount = (Long) criteria.uniqueResult();
int total = totalCount.intValue();
criteria.setProjection(null);... | [
"int countByCriteria(JournalCriteria criteria);",
"com.google.firestore.v1.StructuredAggregationQuery.Aggregation.Count getCount();",
"QueryBuilder getFilteredTotalQuery();",
"public static Criteria addCountDistinctIdProjections(Criteria criteria) {\n return criteria.setProjection(Projections.rowCount(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__IV_spec__Group__3__Impl" $ANTLR start "rule__IV_spec__Group__4" ../org.xtext.example.rmodp.ui/srcgen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:14199:1: rule__IV_spec__Group__4 : rule__IV_spec__Group__4__Impl rule__IV_spec__Group__5 ; | public final void rule__IV_spec__Group__4() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:14203:1: ( rule__IV_spec__Group__4__Impl rule... | [
"public final void rule__IV_spec__Group__3() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:14174:1: ( rule__IV_spec__Gr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get Bid Price of company from Yahoo! finance. | public static BigDecimal getBidPriceOfCompany(String s) {
BigDecimal bidPrice;
Stock company = YahooFinance.get(s);
StockQuote r = company.getQuote();
bidPrice = r.getBid().multiply(EUR_CONVERSION, MC);
return bidPrice;
} | [
"public static BigDecimal getStockPriceOfCompany(String s) {\n BigDecimal stockPrice;\n Stock company = YahooFinance.get(s);\n StockQuote r = company.getQuote();\n stockPrice = r.getPrice().multiply(EUR_CONVERSION, MC);\n return stockPrice;\n }",
"TickerPrice getPrice(String ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Constructor for OrGate, utilizes the class heirarchy to initialize final variables name and delay. This class is final and is the concrete class that the simulator will utilize. | public OrGate( String name, float delay ) {
super( name, delay );
} | [
"protected Gate( String name, float delay ) {\n\tthis.name = name;\n\tthis.delay = delay;\n }",
"public LogicGate( String name, float delay ) {\n\tsuper( name, delay );\n }",
"public ConstGate( String name, float delay ) {\n\tsuper( name, delay );\n }",
"public OrGate() {\n\t\tsuper(2, 1);\n\t}",
"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
When present, this field contains recipient&x27;s middle initial | @ApiModelProperty(value = "When present, this field contains recipient's middle initial")
public String getRecipientMiddleInitial() {
return recipientMiddleInitial;
} | [
"@ApiModelProperty(value = \"This field contains sender's middle initial\")\n public String getSenderMiddleInitial() {\n return senderMiddleInitial;\n }",
"private String extractEMailAddress() {\n return SwingUtil.extract(emailJTextField, Boolean.TRUE);\n }",
"java.lang.String getRecipi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set number of days after which the cart is considered to be abandoned. | public void setExpiredTimeoutDays(final int abandonedTimeoutDays) {
this.expiredTimeoutMs = abandonedTimeoutDays * MS_IN_DAY;
} | [
"private void setDayCountDown() {\n dayCountDown = getMaxHunger();\n }",
"private void setExpireIn(int value) {\n \n expireIn_ = value;\n }",
"void setMaxDays(Integer maxDays);",
"private void setExpireIn(long value) {\n \n expireIn_ = value;\n }",
"public void setNumber... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get list of document IDs of given topic ID and keyword | public List<Pair<String>> getDocumentsWithTopicAndKeyword(String collectionId, String topicId, String keyword, int offset,
int numItems, boolean sortDescending) {
List<Pair<String>> toReturn = new ArrayList<Pair<String>>();
if (null == col... | [
"public List<String> getAdsByKeyword(String keyword) {\n\n FindIterable<Document> findIterable = keywordCollection.find(new BasicDBObject(\"keyword\", keyword));\n MongoCursor<Document> mongoCursor = findIterable.iterator();\n\n List<String> adList = new ArrayList<>();\n\n if (mongoCurso... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the value of the 'GRAPHICS' field. | public java.lang.CharSequence getGRAPHICS() {
return GRAPHICS;
} | [
"public java.lang.CharSequence getGRAPHICS() {\n return GRAPHICS;\n }",
"public void setGRAPHICS(java.lang.CharSequence value) {\n this.GRAPHICS = value;\n }",
"public boolean hasGRAPHICS() {\n return fieldSetFlags()[21];\n }",
"public Graphics getGraphics() {\r\n\t\treturn this.graphics;\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
getData accepts a SQL string. Then this method returns a 2d ArrayList. This will be used for doing "SELECT" sql statements. | public ArrayList<ArrayList<String>> getData(String sqlString){
/* Temporary statement */
PreparedStatement stmnt = null;
/* Creates a 2-d ArrayList that will be used to return the results from the commonGetData. */
ArrayList<ArrayList<String>> result = commonGetData(sqlString, false, st... | [
"public static ArrayList<temp> getData(String sSqlCondition){\n\t\tdbHandler db = null;\n\t\ttry{\n\t\t\tArrayList<SqlParameter> sqlparameters = new ArrayList<SqlParameter>();\n\n\t\t\tsqlparameters.add(new SqlParameter(\n\t\t\t\t\t\"__sqlCondition\",\n\t\t\t\t\tsSqlCondition,\n\t\t\t\t\tProcedureParameterType.Stri... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checking if host has received sent message and also if it was noncorrupt when it arrived | private boolean isReceived(DatagramSocket aSocket) throws IOException
{
byte[] buffer = new byte[BUFFER_SIZE];
DatagramPacket reply = new DatagramPacket(buffer, buffer.length);
try
{
aSocket.setSoTimeout(TIMEOUT_SIZE);
aSocket.receive(reply);
if(reply.getAddress() == null) return false;
int valid... | [
"boolean hasMsgbyte();",
"boolean isServerMessage();",
"boolean hasReadyMsg();",
"public boolean hasMessage(){\r\n return this.receivedMessages.size()>0;\r\n }",
"boolean hasSendHeartBeatMsg();",
"public boolean hasDataToTransmit(){\n return transmissionQueue.size() > 0;\n }",
"private b... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Update format of displayed source file binary or hex | public static void changeFormat (String format) {
if (format.equals(currentFormat)) return;
if (format.equals("#hex")) {
for (int i = 0; i < chunks.size(); i++) {
chunks.set(i, Converter.binaryToHex(chunks.get(i)));
}
}
if (format.equals("#binar... | [
"private void updateSourceView() {\n StringWriter sw = new StringWriter(200);\n try {\n new BibEntryWriter(new LatexFieldFormatter(Globals.prefs.getLatexFieldFormatterPreferences()),\n false).write(entry, sw, frame.getCurrentBasePanel().getBibDatabaseContext().getMode());... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Executes an SQL script contained in a StringBuffer object | public void runScript(StringBuffer sqlScript)
throws DataAccessLayerException {
runScript(sqlScript.toString());
} | [
"public void executeScript(Connection connection, File sql, String section, String separator) throws SQLException {\n \t\tString s = new String(); \n \t\tStringBuffer sb = new StringBuffer();\n \t\t\n \t\tString actSection = null;\n \t\n \t try {\n \t\t\tFileReader fr = new FileReader(sql); \t\t\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
add a band and recompute each band size based on given proportion. | private void addBand(Band d, Integer proportion){
if (mainBand == null) {
mainBand = d;
d.setMain();
}
container.add(d);
bands.put(d,proportion);
int total = 0;
for (Band band : bands.keySet()){
total += bands.get(band);
}
for (Band band : bands.keySet()){
// dynamically compute the sizes fo... | [
"public void updateBands() {\n if (this.isFull()) {\n calcInboundBand();\n calcOutboudBand();\n calcVisible();\n }\n }",
"PriceBand add(PriceBand priceBand);",
"public abstract int getSampleSize(int band);",
"public void addStretch() {\n\t\tstretchPaddleTime =... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test of checkIfFilesExist method, of class FlooringMasteryDao. | @Test
public void testCheckIfFilesExist() {
assertFalse(dao.checkIfFilesExist("test"));
assertFalse(dao.checkIfFilesExist("09093000"));
} | [
"@Test\n public void testGetFile() {\n System.out.println(\"getFile with valid path of existing folder with 2 subfiles\");\n String path = System.getProperty(\"user.dir\")+fSeparator+\"MyDiaryBook\"+fSeparator+\"Users\"+fSeparator+\n \"Panagiwtis Georgiadis\"+fSeparator+\"Entries\"+f... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Private helper method. Doubles the size of the arcs array by creating a temp array twice as large and copying the arcs array into the new temp array | private void expandArcsCapacity() {
boolean [][]temp = new boolean[arcs.length*2][arcs.length*2];
for (int i=0; i < arcs.length; i++){
for (int j=0; j< arcs.length; j++) {
temp[i][j]=arcs[i][j];
}
}
arcs = temp;
} | [
"private void doubleArrayCapacity() {\n\t\t\tint[] arrNew = new int[arr.length * 2];\n\t\t\tarr = arrNew;\n\t\t}",
"private void doubleCapacityAndCopy() {\n\t\tObject[] oldArray = elements;\n\t\tcapacity *= 2;\n\t\telements = new Object[capacity];\n\t\t\n\t\tfor(int i = 0; i < oldArray.length; i++) {\n\t\t\teleme... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__StructorUnionReference__Group__1__Impl" $ANTLR start "rule__StructMember__Group__0" ../org.ow2.mindEd.idt.editor.textual.ui/srcgen/org/ow2/mindEd/idt/editor/textual/ui/contentassist/antlr/internal/InternalFractalIdt.g:3010:1: rule__StructMember__Group__0 : rule__StructMember__Group__0__Impl rule__Stru... | public final void rule__StructMember__Group__0() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.ow2.mindEd.idt.editor.textual.ui/src-gen/org/ow2/mindEd/idt/editor/textual/ui/contentassist/antlr/internal/InternalFractalIdt.g:3014:1: ( rule_... | [
"public final void ruleStructMember() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.ow2.mindEd.idt.editor.textual.ui/src-gen/org/ow2/mindEd/idt/editor/textual/ui/contentassist/antlr/internal/InternalFractalIdt.g:384:2: ( (... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set rating image stars | private void setRatingImage(String rating){
try {
int rating_start = Integer.parseInt(rating);
if (rating_start == 0) aboutWashRating.setImageResource(R.drawable.rating_star_null);
if (rating_start == 1) aboutWashRating.setImageResource(R.drawable.rating_star_one);
... | [
"public void setRatingStars(double rating) {\n int roundedRating = (int)Math.floor(rating);\n if(roundedRating == 1) {\n ratingStar1.setImageResource(R.drawable.ic_baseline_star_24px);\n ratingStar2.setImageResource(R.drawable.ic_baseline_star_bord... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets up the paddle and adds it to the game. | private void genPaddle() {
paddle = new GRect(0, PADDLE_Y_TOP_OFFSET, PADDLE_WIDTH, PADDLE_HEIGHT);
paddle.setFilled(true);
add(paddle);
} | [
"private void createPaddle() {\r\n paddle = new GRect(getWidth() / 2.0 - PADDLE_WIDTH / 2.0, getHeight() - PADDLE_Y_OFFSET - PADDLE_HEIGHT, PADDLE_WIDTH, PADDLE_HEIGHT);\r\n paddle.setFilled(true);\r\n add(paddle);\r\n addMouseListeners();\r\n }",
"public void addPaddle(Paddle p)\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The maximum number of unique clients allowed for the token. Please note that since clients are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point. | @ApiModelProperty(value = "The maximum number of unique clients allowed for the token. Please note that since clients are calculated asynchronously (after the download happens), the limit may not be imposed immediately but at a later point.")
public Integer getLimitNumClients() {
return limitNumClients;
} | [
"public int getMaxClients();",
"public int getMaxNoOfClients() {\n return mMaxNoOfClients;\n }",
"int getMaxNumberOfConcurrentTestSessions();",
"public static int getUpperLimitOnConcurrentDownloads() {\n return 20;\n }",
"public int getMaxConcurrentRequests() {\n return maxConcurr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Alternative searchcache method that only takes a String operand as parameter. | public ArrayList<ArrayList> searchCache(String operand1)
{
for(CacheObject c: simpleQueryCache)
{
if(c.equals(operand1))
{
return c.getResult();
}
}
return null;
} | [
"Sym\nsearch( String pInternedName);",
"String getSearchTerm();",
"public String getSearchString();",
"public Sym\nsearchOrAddSym(Sym pSym);",
"RSearch getSearch();",
"String search(int key);",
"java.lang.String getSearchValue();",
"public Sym\nsearch(String pInternedName,int pSymKind);",
"java.lang... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Add the model entities from the xml file represented by the ResourceHandler rhEntity to the entity cache from the model reader modelR. The code is(with little changes) a part from getEntityCache() method in ModelReader class. | private void addEntitiesToEntityCache(ModelReader modelReader,
ResourceHandler resourceHandler,
String loaderEnt,
String locationEnt) throws OfbizDataException {
if (modelReader == null || resourceH... | [
"private void loadData(){\n try (BufferedReader br = new BufferedReader(new FileReader(this.fileName))) {\n String line;\n while((line=br.readLine())!=null){\n E e = createEntity(line);\n super.save(e);\n }\n } catch (IOException e) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The operation to perform. .google.ads.googleads.v2.services.BillingSetupOperation operation = 2; | com.google.ads.googleads.v2.services.BillingSetupOperationOrBuilder getOperationOrBuilder(); | [
"com.google.ads.googleads.v13.services.BillingSetupOperationOrBuilder getOperationOrBuilder();",
"com.google.ads.googleads.v2.services.BillingSetupOperation getOperation();",
"com.google.ads.googleads.v13.services.BillingSetupOperation getOperation();",
"com.google.ads.googleads.v1.resources.BillingSetupOrBui... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__InsertSQL__Group_2__13" $ANTLR start "rule__InsertSQL__Group_2__13__Impl" ../eu.artist.migration.mdt.database.sql.editor.ui/srcgen/eu/artist/migration/mdt/database/sql/editor/ui/contentassist/antlr/internal/InternalSQLDSL.g:1056:1: rule__InsertSQL__Group_2__13__Impl : ( ( rule__InsertSQL__FieldsAssign... | public final void rule__InsertSQL__Group_2__13__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../eu.artist.migration.mdt.database.sql.editor.ui/src-gen/eu/artist/migration/mdt/database/sql/editor/ui/contentassist/antlr/internal/InternalSQLDSL.... | [
"public final void rule__InsertSQL__Group_2_14__3__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../eu.artist.migration.mdt.database.sql.editor.ui/src-gen/eu/artist/migration/mdt/database/sql/editor/ui/contentassist/antlr/internal/I... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__RolePermission__NameAssignment_1" $ANTLR start "rule__RolePermission__InforceAssignment_3" ../org.xtext.example.rmodp.ui/srcgen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:29396:1: rule__RolePermission__InforceAssignment_3 : ( ( 'current' ) ) ; | public final void rule__RolePermission__InforceAssignment_3() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:29400:1: ( ( ( 'current' ) ... | [
"public final void rule__ObjectPermission__InforceAssignment_3() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:29328:1:... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
CRUD R List users = userRepository.findAll(); model.addAttribute("users",users); | @GetMapping("/listUser")
public String ListUser(Model model) {
System.out.println(userRepository.findAll());
model.addAttribute("users", userRepository.findAll());
return "user/listUser";
} | [
"@RequestMapping(\"/\")\n\tpublic String userlistPage(Model model) {\n\t\tmodel.addAttribute(\"list\", bdao.list());\n return \"list\";\n }",
"@RequestMapping(value = {\"/admin/users\"}, method = RequestMethod.GET)\n public String allUsers(Model model) {\n \tUser loggedUser = this.sessionData.getL... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get Diary Creator details of the given list of diaries | Map<String, User> getDiaryCreatorMap(List<Diary> diaries) { // use String not long
List<String> creatorIds = diaries.stream().map(Diary::getCreatedBy).distinct().collect(Collectors.toList());
List<User> creators = userRepository.findByUsername(creatorIds);
Map<String, User> creatorMap = creators.stream()
.col... | [
"public List<Diary> getAllDiaries() {\n List<Diary> diaries = diaries = new ArrayList<>();\n //-- 1) Open the database.\n sqLiteDatabase = this.databaseAccessHelper.openDatabase();\n try {\n // 2) Query the database.\n Cursor cursor = sqLiteDatabase.rawQuery(\"SELEC... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create a repeated list listener for a scalar value. | public static ValueListener repeatedListFor(JsonLoaderImpl loader, ObjectWriter writer) {
ColumnMetadata elementSchema = writer.schema().childSchema();
return wrapInnerArray(loader, writer,
new ScalarArrayListener(loader, elementSchema,
ScalarListener.listenerFor(loader, writer.array().entr... | [
"public static ValueListener repeatedVariantListFor(JsonLoaderImpl loader,\n ObjectWriter writer) {\n return new RepeatedListValueListener(loader, writer,\n new ListListener(loader, writer.array().entry()));\n }",
"@Override\n\tpublic void addCalcValueListener(CalcValueListener l) {\n\t\tif(l == n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Negative test Testing to ensure a null ssn will return false | @Test
public void testSsnvalidatorNull(){
assertFalse(register.ssnValidator("")); // a date can`t start with 70
} | [
"@Test\n public void testSsnvalidatorFalse(){\n assertFalse(register.ssnValidator(\"70091212345\")); // a date can`t start with 70\n }",
"@Test\n public void testSsnValidator(){\n assertTrue(register.ssnValidator(\"16019135954\"));\n }",
"public boolean isNotNullSredCode() {\n retur... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Determine whether the Approov library has been initialized | private static synchronized boolean isApproovInitialized() {
return isApproovInitialized;
} | [
"private static synchronized void setApproovInitialized() {\n isApproovInitialized = true;\n }",
"protected boolean isSdkInitialised() {\n return sdkInitialised;\n }",
"public boolean isInitialised();",
"public boolean hasInitialization()\n {\n return initialization != null;\n }",
"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__Language__Group__5__Impl" $ANTLR start "rule__Language__Group_3__0" ../org.xtext.example.mydsl.extensions.ui/srcgen/org/xtext/example/mydsl/extensions/ui/contentassist/antlr/internal/InternalMyDsl.g:1559:1: rule__Language__Group_3__0 : rule__Language__Group_3__0__Impl rule__Language__Group_3__1 ; | public final void rule__Language__Group_3__0() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../org.xtext.example.mydsl.extensions.ui/src-gen/org/xtext/example/mydsl/extensions/ui/contentassist/antlr/internal/InternalMyDsl.g:1563:1: ( rule__Language_... | [
"public final void rule__Language__Group__3__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.example.mydsl.extensions.ui/src-gen/org/xtext/example/mydsl/extensions/ui/contentassist/antlr/internal/InternalMyDsl.g:1475:1: (... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the contribution of validated hits of the given advocate for the entire dataset. | public int getAdvocateContribution(
int advocateId
) {
HashMap<String, Integer> advocateContributions = advocateContribution.get(advocateId);
if (advocateContributions != null) {
int contribution = 0;
for (int tempContribution : advocateContributions.values())... | [
"@Override\r\n\tpublic double calculateExpectedAgreement() {\r\n\t\tMap<Object, Integer> annotationsPerCategory\r\n\t\t\t\t= CodingAnnotationStudy.countTotalAnnotationsPerCategory(study);\r\n\r\n\t\tBigDecimal result = BigDecimal.ZERO;\r\n\t\tfor (Object category : study.getCategories()) {\r\n\t\t\tInteger catCount... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the detected encoding of the given byte array. | public static Charset detectEncoding(byte[] input, boolean assume88591IfNotUtf8,
FallbackEncodingDetector alternateDecoder) {
if (looksLikeValidUtf8(input)) {
return Charsets.UTF_8;
}
if (assume88591IfNotUtf8) {
return Charsets.ISO_8859_1;
}
// Fall back encoding:
return alte... | [
"String getEncoding();",
"String getDataEncoding();",
"String getSupportedEncoding(String acceptableEncodings);",
"public ICodec<char[]> iso_8859_1_array();",
"public String getEncoding();",
"@Nullable\r\n\tpublic static String guessFileEncoding(String path) {\r\n\t\tUniversalDetector detector = new Unive... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Adding the default layers. In this case only one base layer (i.e. main layer that the user views) is enough. This can be anyofmany types including OSM (default), Google Maps, MapQuest CloudMade, MapBox etc. The best options seem to be CloudMade (500k tile loads free then charges) because the tiles can be fully customis... | public void addDefaultLayers()
{
/**
// Default OSM layers
OSM mapnikOSM = OSM.Mapnik("Mapnik");
OSM cycleOSM = OSM.CycleMap("CycleMap");
mapnikOSM.setIsBaseLayer(true);
cycleOSM.setIsBaseLayer(true);
this.openLayersMap.getMap().addLayer(mapnikOSM);
this.openLayersMap.getMap().addLayer(cycle... | [
"@Override\n\t protected void createLayers2() {\n\t this.downloadLayer = new TileDownloadLayer(this.tileCache,\n\t this.mapViewPositions.get(1), OpenSeaMapBaseTileSource.INSTANCE,\n\t AndroidGraphicFactory.INSTANCE);\n\t this.layerManagers.get(1).getLayers().add(this.d... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Disassociates a wireless device from a FUOTA task. | @Override
public DisassociateWirelessDeviceFromFuotaTaskResult disassociateWirelessDeviceFromFuotaTask(DisassociateWirelessDeviceFromFuotaTaskRequest request) {
request = beforeClientExecution(request);
return executeDisassociateWirelessDeviceFromFuotaTask(request);
} | [
"java.util.concurrent.Future<DisassociateFromAdministratorAccountResult> disassociateFromAdministratorAccountAsync(\n DisassociateFromAdministratorAccountRequest disassociateFromAdministratorAccountRequest);",
"void desactivateByTask( int nIdTask );",
"@Override\n public DisassociateWirelessDevice... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ ZKEnvVar.ROOT, Czxid "base".getBytes(), Ids.CREATOR_ALL_ACL, CreateMode.PERSISTENT | public long getCzxid(); | [
"RuntimeEnv createRuntimeEnv();",
"@Override\n public void buildEnvVars(Map<String, String> env) {\n // Windows\n env.put(\"TMP\", this.tmpdir);\n env.put(\"TEMP\", this.tmpdir);\n\n // UNIX/Linux\n env.put(\"TMPDIR\", this.tmpdir);\n\n // J... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
new columns (arrivalStartLocalTm) // | public ScGridColumn<AcUspsDomesticSupplyAdjustment> newArrivalStartLocalTmColumn()
{
return newArrivalStartLocalTmColumn("Arrival Start Local Tm");
} | [
"public ScGridColumn<AcConsignmentTransport> newArrivalLocalTsColumn()\n {\n return newArrivalLocalTsColumn(\"Arrival Local Ts\");\n }",
"public ScGridColumn<AcUspsDomesticSupply> newArrivalLocalTmColumn()\n {\n return newArrivalLocalTmColumn(\"Arrival Local Tm\");\n }",
"public ScGrid... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Use Case: 05.03.01 BidNotification | public void testBidNotification() {
User owner = new User();
Thing thing1 = new Thing(owner);
User borrower = new User();
Bid bid = null;
try {
bid = new Bid(thing1, borrower, 800);
}catch(Exception e){
fail();
}
try {
... | [
"public int getIdNotification( )\r\n {\r\n return _nIdNotification;\r\n }",
"Notification createNotification();",
"public void testBidAcceptionNotification() {\n User owner = new User();\n Thing thing1 = new Thing(owner);\n\n User borrower = new User();\n\n Bid bid = nu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
objgame juga diset pada pintu dan item2 | public void setObjGameInfo(GameInfo objGameInfo) {
this.objGameInfo = objGameInfo;
Pintu.setObjGameInfo(objGameInfo);
Penjaga.setObjGameInfo(objGameInfo);
for (Item objItem : arrItem) {
objItem.setObjGameInfo(objGameInfo);
}
} | [
"public void jualItem(){\n System.out.println(\"Koin Anda : \" + GameInfo.getKsatriaPlayer().getKoin());\r\n System.out.println(\"Harga Jual Item : \" + this.getHargaJual());\r\n if (!this.isBolehDibeli()) {\r\n GameInfo.getKsatriaPlayer().getArrItem().remove(this);\r\n Ga... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
repeated string play_time_trackers = 5; | java.lang.String getPlayTimeTrackers(int index); | [
"int getPlayTimeTrackersCount();",
"public void incrementTimesPlayed() {\r\n\t\ttimesPlayed++;\r\n\t}",
"int getTimesPlayed (String song_id);",
"@Override\n public void tic() {\n for (GuitarString keys:keyStrings) {\n keys.tic();\n }\n count++;\n }",
"@Test\n public ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates new Showing object where the data for the showing is input by the user instead of passing in a Showing object. | public void addShowing() throws NonValidOptionException, InvalidDateTimeException {
LocalDate date = getDateForAddShowing();
String time = getTimeForAddShowing();
int screenNo = getScreenNoForAddShowing(date, time);
Movie movie = getMovieForAddShowing();
Showing showing = new Sho... | [
"public static TVShow createShow() {\n Scanner keyboard = new Scanner(System.in);\n out.print(\"Enter show name (no spaces, use underscore) : \");\n String name = keyboard.next();\n out.print(\"Enter show ID: \");\n String id = keyboard.next();\n out.print(\"Enter show star... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets a value of property Locator from an instance of java.lang.String First, all existing values are removed, then this value is added. Cardinality constraints are not checked, but this method exists only for properties with no minCardinality or minCardinality == 1. | public void setbiboLocator(java.lang.String value) {
Base.set(this.model, this.getResource(), LOCATOR, value);
} | [
"void setStringProperty(String name, String value);",
"void setLocator(String locator);",
"public void setStringProperty(String propertyName, String value);",
"void setPropertyString(String property_str);",
"public void setLocator(String locator)\r\n\t{\r\n\t\tthis.locator = locator;\r\n\t}",
"public void... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ computes up and down HSE numbers of this amino acid for the specified radius r unless they were computed earlier for this particular radius | public void computeHSENumbers(int r) {
int rr = r*r;
Point3d p = getCa().getPosition();
Point3d q;
Vector3d v = getHSEVector();
AminoAcid aminoAcid = getPrev();
while (aminoAcid != null) {
q = aminoAcid.getCa().getPosition();
if (p.getSquaredDistance(q) <= rr) {
if (Point3d.isBehind(q, p, v)) hseN... | [
"public int getHSENumberDown(int r) {\n\t\tif ((hseRadius != r) || (hseNumberDown == null)) computeHSENumbers(r);\n\t\treturn hseNumberDown.intValue();\n\t}",
"private static double calculateSekante(double left, double right) {\n\n\t\t// if there was only a small change in angle , should be unnecessary\n\t\tif (M... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Simulate the way of finalPathOf. will colouring the edge | public void simulate() {
char alp = 'A';
for (int idx = 0; idx <= row; idx++) {
if (idx < row) {
if (graph.getEdge(String.valueOf((char) (alp + finalPathOf[idx]))
+ String.valueOf((char) (alp + finalPathOf[idx + 1]))) != null) {
graph.getEdge(
String.valueOf((c... | [
"private void colorPath(ArrayList<Node> finalPath, GridUpdator update){\n for (int i=1;i<finalPath.size()-1;i++){\n finalPath.get(i).setType(5);\n update.updateMap();\n update.delay();\n }\n }",
"public void highlightPath() {\n\t\tHexMap hexMap = Game.getInstance(... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The function returns the enumeration associated with moving left from the action button. Example for use: SelectPosEnum x = HeroineEnum.ActionButtonCombatEnum.ACTION_BUTTON_NAV_REFLECT.getValue_MoveLeft(); Return the enumeration associated with moving left from the action button. | public SelectPosEnum getValue_MoveLeft()
{
return moveLeft;
} | [
"public FacingEnum getValue_TurnLeft() \n {\n return FacingEnum.valueOf(turnLeft);\n }",
"public static ActionButtonExploreEnum valueOf_xRef(SelectPosEnum selectedButton) \n {\n // The function converts the passed selected button to its equivalent action button navigatio... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the current voice used by the layer | public Voice getVoice(); | [
"public java.lang.String getVoice () {\n\t\treturn voice;\n\t}",
"SSIT.proto.Unetmgr.VoiceData getVoice();",
"public Voice getVoice() {\n return voice;\n }",
"public Voice getVoice ()\r\n {\r\n return voice;\r\n }",
"public String getVoiceName() {\n return voiceName;\n }",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return the key as an integer array. | public int[] getKeyIntArray() {
return key;
} | [
"Integer[] getKeys();",
"public int[] getIntegerArray(String key) {\r\n return getIntegerArray(key, DEFAULT_DELIMITER);\r\n }",
"public int[] keysToArray()\r\n\t{\r\n\t\tint[] arr = new int[this.size()];\r\n\t\tif (this.empty()) {\r\n\t\t\treturn arr;\r\n\t\t}\r\n\t\tIAVLNode[] nodes = new IAVLNode[th... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
method getNitrateMin Return the 'nitrateMax' class variable | public float getNitrateMax() {
return nitrateMax;
} | [
"Number getMin();",
"float getMin();",
"@VTID(32)\r\n int getMin();",
"public float getDefaultMinRange(){\r\n return defaultMinRange;\r\n }",
"float getMinRange();",
"public int getMin() {\n\t\tif (rangeMax == 0)\n\t\t\treturn -1;\n\t\telse \n\t\t\treturn sites[2*rangeMin];\n\t}",
"public Str... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns all of the dicomconverted tags in the minc header as a tagvalue hashtable. | public Hashtable<String, String> convertTagsToTable() {
final Hashtable<String, String> table = new Hashtable<String, String>();
final String groupPrefix = "dicom_0x";
final String elemPrefix = "el_0x";
String group, elem, data;
VR vr;
int index;
for ... | [
"public Hashtable<String, String> convertTagsToTable() {\r\n /*\r\n * // create the dicom table so that it has <String><String> final Hashtable<String, String> dicomTagStrings =\r\n * new Hashtable<String, String>(); // TODO FileDicomKey key; final Enumeration<FileDicomKey> keyList =\r\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
A method to get the information of the items that have been checked out by a specific borrower | public static Resource[] getAllUserHasCheckedOut( Resource[] library, String borrower){
int count = 0;
// update the count if the item in the library is checked out
for(int i = 0; i < library.length; i++){
if (library[i].getCheckedOut()) {
count = count++;
}
... | [
"private void getBorrow() {\n\t\tkeyset = map.keySet();\n\t\tit = keyset.iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tcheckin = map.get(it.next());\n\t\t\tvt = new Vector<Object>();\n\t\t\tvt.add(checkin.getBorID());\n\t\t\tvt.add(checkin.getEmpID());\n\t\t\tvt.add(checkin.getBookID());\n\t\t\tvt.add(checkin.getC... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ Gives an array of the tiles around the specified position. | private Tile[] getTileAround(Position pos) {
Tile[] tilesToCheck = new Tile[9];
//TODO: anvnda loopar istllet
int x = (int)pos.getX();
int y = (int)pos.getY();
tilesToCheck[0] = ((validPosition(new Position(x, y))) ? tiles[x][y] : null);
tilesToCheck[1] = ((validPosition(new Position(x, y - 1))) ? til... | [
"Tile[][][] getTiles();",
"ArrayList<Tile> getTiles();",
"public List<Tile> getTilesAtAbsoluteRect(AbsoluteRectangle rect) {\n List<Tile> tiles = new ArrayList<>();\n int tileWidth = tileMap.getTileWidth();\n int tileHeight = tileMap.getTileHeight();\n int startX = rect.x / tileWidth... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
nodeToken > "System.currentTimeMillis" nodeToken1 > "(" nodeToken2 > ")" | public Snippet visit(CurrentTime n, Snippet argu) {
Snippet _ret= new Snippet("","",null,false);
n.nodeToken.accept(this, argu);
n.nodeToken1.accept(this, argu);
n.nodeToken2.accept(this, argu);
return new Snippet("", "System.currentTimeMillis()", new X10Long(), false);
} | [
"public void visit(CurrentTime n, String argu) {\n\t n.nodeToken.accept(this, argu);\n\t n.nodeToken1.accept(this, argu);\n\t n.nodeToken2.accept(this, argu);\n\t }",
"Expression currentTime();",
"TimestampOperatorNode(ValueNode date,\n ValueNode time,\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Calculates the distance between two given LifeForms within the environment. | public int getDistance(LifeForm lf1, LifeForm lf2) throws EnvironmentException
{
int lf1Row = getLifeFormRow(lf1); //row of first lifeform
int lf1Col = getLifeFormCol(lf1); //column of first lifeform
int lf2Row = getLifeFormRow(lf2); //row of second lifeform
int lf2Col = getLifeFormCol(lf2); //column of s... | [
"public int getDistance(LifeForm lifeForm1, LifeForm lifeForm2)\r\n {\r\n \tOrderedPair pos1 = getLifeFormPosition(lifeForm1);\r\n \tOrderedPair pos2 = getLifeFormPosition(lifeForm2);\r\n \t\r\n \tint x = pos2.x - pos1.x;\r\n \tint y = pos2.y - pos1.y;\r\n \t\r\n \treturn (int)(Mat... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Reverses data from given parameter. | public static byte[] reverse(byte[] data) {
if (data == null)
return null;
byte[] buff = new byte[data.length];
for (int i = 0; i < buff.length; i++)
buff[i] = data[i];
int n = buff.length - 1;
byte temp;
for (int j = (n - 1) >> 1; j >= 0; --j) {
... | [
"public static void revert(byte[] data) {\r\n\t\tint len = data.length;\r\n\t\tint begin = 0;\r\n\t\tint end = len - 1;\r\n\t\tbyte temp;\r\n\t\tint mid = len >> 1; // mid = len /2\r\n\t\twhile (begin < mid) {\r\n\t\t\ttemp = data[begin];\r\n\t\t\tdata[begin] = data[end];\r\n\t\t\tdata[end] = temp;\r\n\t\t\tbegin++... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Converts a Square to a Vertex. | protected Vertex squareToVertex(Square s) {
return graph[s.getX() + s.getY() * GameBoard.ROWS];
} | [
"protected Square vertexToSquare(Vertex v, GameBoard b) {\n return b.getSquare(v.graphLoc % GameBoard.COLUMNS,\n v.graphLoc / GameBoard.ROWS);\n }",
"public Vertex2d[] square_vertex(int x, int y, int sizelen, spritecomponent s) {\r\n\t\tsizelen = sizelen * 2;\r\n\t\tfloat sizex... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the default group of the project. | public SymbolGroup getDefaultGroup() {
return defaultGroup;
} | [
"@Nullable\n Group getUserDefaultGroup();",
"public Group getDefaultGroup() {\r\n synchronized (groupLock) {\r\n for (Group group : groups)\r\n if (group.DefaultGroup)\r\n return group;\r\n }\r\n return null;\r\n }",
"public abstract String... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the operatingSystem value. | public String operatingSystem() {
return this.operatingSystem;
} | [
"public java.lang.String getOperatingSystem() {\n return operatingSystem;\n }",
"public static String GetOS() {\n\t\treturn System.getProperty(\"os.name\");\n\t}",
"private String getOperativeSystem() {\r\n\t\treturn System.getProperty(\"os.name\").toLowerCase();\r\n\t}",
"public static String getOS... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the point at which the stored object is floating. | public Point getFloatPos() {
return floatLoc;
} | [
"double getFloatingPointField();",
"public FloatPoint to_float()\n {\n double xd = x.doubleValue();\n double yd = y.doubleValue();\n double zd = z.doubleValue();\n return new FloatPoint( xd / zd, yd / zd);\n }",
"Double getFreeFloat();",
"EDataType getEFloat();",
"public Fl... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
if the current round is not drawn, but the last round was (indicated by dPW == true) Then the drawPile should deal cards to the current round winner | public void dealDrawPile()
{
if(roundDrawn == false && deckPileWaiting == true)
{
// Loop through drawPile, adding each card to the winner's deck
for(int i=0; i<drawPile.getDeck().size(); i++)
{
winnerOfRound.getPlayerDeck().getDeck().add(drawPile.getDeck().get(i));
}
// Set dPW back to false
... | [
"private void determineWinnerForDraw() {\n logger.info( \"Calling a draw\");\n int highCardCount = 0;\n Player winner = new Player();\n for (Player p : players) {\n int cardCount = p.getHand().getCards().size();\n if ( cardCount > highCardCount) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the covariance matrix | public double[][] getCovMatrix() {
return covar;
} | [
"public Matrix covariance() {\n\n int n = getColDim();\n int m = getRowDim();\n Matrix X = new Matrix(n, n);\n int degrees = (m - 1);\n double c;\n double s1;\n double s2;\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < n; j++) {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Writes out to the outfile containing only one character | private void oneCharacterFile() {
try {
//Get the char value of the one character
int data = tree.current();
int iter = 0;
//Write to file the number of total characters
while(iter < characters) {
bw.write(data);
... | [
"@Override\n\tpublic void close() throws IOException {\n\t\tif (eofChar != 0)\n\t\t\tout.write(eofChar);\n\t}",
"void writeChars(Writer writer) throws IOException;",
"private static void writer(String filename, char[] chars) {\n BinaryOut binaryOut = new BinaryOut(filename);\n\n for (char c : char... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Updates the cost the of the planning using the computed cost of each day and the cost of using each vehicle | public void updateCost() {
double costPlanning = 0.0;
Set<Integer> techniciansUsed = new HashSet<>();
for (DayHorizon day : days) {
//we get the day costs
costPlanning += day.getCost();
//we want to know the used cost
for (Itinerary itinerary : ... | [
"@Test\n public void computeManyCosts() throws Exception {\n MovesFuelCostModel costModel = new MovesFuelCostModel(\n 0.22112, // rollingTermA\n 0.002838, // rotatingTermB\n 0.000698, // dragTermC\n 1.86686, // vehicleMassInTons\n 1.86686, // fixedMassFactor\n csvFile, // baseRa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
The Fragment can accommodate up to two incoming call views. This method returns the first or the second View object (or their variation if this is a video call) depending on the current status of incoming calls. | private View getIncomingView(boolean isVideo){
View incomingVideo2 = mView.findViewById(R.id.incoming_video2);
View incomingAudio2 = mView.findViewById(R.id.incoming2);
if (map.isEmpty() || incomingVideo2.getVisibility() == View.VISIBLE || incomingAudio2.getVisibility() == View.VISIBLE){
... | [
"com.google.ads.googleads.v6.resources.CallView getCallView();",
"com.google.ads.googleads.v6.resources.CallViewOrBuilder getCallViewOrBuilder();",
"boolean hasCallView();",
"private void setParameters(View view, UICall call){\n\n TextView incomingName = view.findViewById(R.id.incoming_dialog_name);\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Compares timeWrapper of two deadlines with same dateWrapper. | private int sameDateCompare(Deadline other) {
if (!this.hasTime() && other.hasTime()) {
return -1;
} else if (this.hasTime() && !other.hasTime()) {
return 1;
} else if (this.hasTime() && other.hasTime()) {
TimeWrapper thisTimeWrapper = this.getTime();
... | [
"public int compareTo( DateWrapper anotherDateWrapper )\n{\n // Convert this DateWrapper to millis\n long thisVal = getTimeInMillis( );\n\n // Convert the argument DateWrapper to millis\n long anotherVal = anotherDateWrapper.getTimeInMillis( );\n\n // Return the result\n return ( thisVal < anotherVal ? ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
adds one to dataTag of specificData | public void tickTag(String specificData) {
dataTag.set(this.getPosition(specificData),
dataTag.get(this.getPosition(specificData)) + 1);
} | [
"void addDataIdentifier(DataIdentifier dataIdentifier);",
"public int getTag(String specificData) {\r\n return dataTag.get(this.getPosition(specificData));\r\n }",
"public void addDataInfo(Info dataToAdd) {\n if (!formData.contains(dataToAdd))\n formData.add(dataToAdd);\n }",
"p... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the standard output (stdout) from the command you just exec'd. | public StringBuffer getStandardOutputFromCommand() {
return this.inputStreamHandler.getOutputBuffer();
} | [
"java.lang.String getStdout();",
"private static void execWithOutput(String[] cmd)\n throws IOException\n {\n Process p = Runtime.getRuntime().exec(cmd);\n StreamRedirector errRedirector = new StreamRedirector(p.getErrorStream(), System.err);\n errRedirector.start();\n Stream... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Compares this instance with another UserXQueries. | @Override
public boolean equals(Object other) {
if (!(other instanceof UserXQueries)) return false;
return this.equalKeys(other) && ((UserXQueries)other).equalKeys(this);
} | [
"private boolean equalKeys(Object other) {\n if (this==other) {\n return true;\n }\n if (!(other instanceof UserXQueries)) {\n return false;\n }\n UserXQueries that = (UserXQueries) other;\n if (this.getUserXQueriesSid() != that.getUserXQueriesSid()) {... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Original signature : int ftrSweepGetMultipleSlices(void, int, void) native declaration : line 570 | int ftrSweepGetMultipleSlices(Pointer ftrHandle, int nSlices, Pointer pBuffer); | [
"int ftrSweepGetSlice(Pointer ftrHandle, Pointer pBuffer);",
"private static native long createSuperpixelSLIC_0(long image_nativeObj, int algorithm, int region_size, float ruler);",
"private static native long createSelectiveSearchSegmentationStrategyMultiple_0(long s1_nativeObj, long s2_nativeObj, long s3_nati... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Return the value associated with the column: appear_in_discharge_summary | public java.lang.String getAppearInDischargeSummary () {
return appearInDischargeSummary;
} | [
"public java.lang.String getAppearInDischargeSummary() {\n\t\treturn appearInDischargeSummary;\n\t}",
"public java.lang.String getAppearOnBillInd()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "ruleFQN" $ANTLR start "entryRuleEBoolean" InternalCommunicationObject.g:393:1: entryRuleEBoolean : ruleEBoolean EOF ; | public final void entryRuleEBoolean() throws RecognitionException {
try {
// InternalCommunicationObject.g:394:1: ( ruleEBoolean EOF )
// InternalCommunicationObject.g:395:1: ruleEBoolean EOF
{
before(grammarAccess.getEBooleanRule());
pushFollow(FOLL... | [
"public final void entryRuleEBoolean() throws RecognitionException {\n try {\n // InternalTaskDefinition.g:219:1: ( ruleEBoolean EOF )\n // InternalTaskDefinition.g:220:1: ruleEBoolean EOF\n {\n before(grammarAccess.getEBooleanRule()); \n pushFollow(FOL... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Disallows service decoration for this service. | ServiceBindingOptions preventDecoration(); | [
"public static synchronized void markNotUsingService() {\n notUsingService.set(true);\n }",
"private boolean isServiceVulnerable() {\n return true;\n }",
"@Pointcut(\"servicePackage() && !(getter() || setter() )\")\n private void excludeGetterSetter() {\n }",
"protected AbstractService() {... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "ruleXShortClosure" $ANTLR start "entryRuleXParenthesizedExpression" ../de.nie.fin.ui/srcgen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:1077:1: entryRuleXParenthesizedExpression : ruleXParenthesizedExpression EOF ; | public final void entryRuleXParenthesizedExpression() throws RecognitionException {
try {
// ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:1078:1: ( ruleXParenthesizedExpression EOF )
// ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/int... | [
"public final void entryRuleXParenthesizedExpression() throws RecognitionException {\n try {\n // ../org.xtext.guicemodules.ui/src-gen/org/xtext/guicemodules/ui/contentassist/antlr/internal/InternalGuiceModules.g:1188:1: ( ruleXParenthesizedExpression EOF )\n // ../org.xtext.guicemodule... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks, if a tainted Local is assigned to another Local or a class field | private void checkAssignmentOfTaintedLocal(Set<FlowAbstraction> in, Unit d, Set<FlowAbstraction> out) {
if (d instanceof AbstractDefinitionStmt) {
AbstractDefinitionStmt def = (AbstractDefinitionStmt) d;
Value leftSide = def.getLeftOp();
Value rightSide = def.getRightOp();
... | [
"private void checkAssignmentOfTaintedClassField(Set<FlowAbstraction> in, Unit d, Set<FlowAbstraction> out) {\n if (d instanceof AbstractDefinitionStmt) {\n AbstractDefinitionStmt def = (AbstractDefinitionStmt) d;\n Value leftSide = def.getLeftOp();\n Value rightSide = def.ge... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Called from mergeNewBranch to update/create the service The code becomes more complex because some services such as DiskMonitor initialize asynchronously so we may discover new properties when new branch arrive. Since we don't know in advance, we may start updating a service and discover some new leaves and as a result... | private boolean mergeNewService(AlertTreeNode bNodeChild,
AlertComponent bCompNode,
AlertNode compNode,
int nodeIndex,
AlertComponent.AlertProperty svcProp)
throws Aler... | [
"public void markServiceCreate() throws JNCException {\n markLeafCreate(\"service\");\n }",
"private void updateService(AlertTreeNode parent, \n int nodeIndex, String svcName)\n throws AlertException {\n\n AlertComponent parentComp = parent.getComponent();... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column neeq_company_recruitment.job_property | public void setJobProperty(String jobProperty) {
this.jobProperty = jobProperty;
} | [
"public void setHC_EmployeeJob_ID (int HC_EmployeeJob_ID);",
"public String getJobProperty() {\r\n return jobProperty;\r\n }",
"public void setJob(Job jobNum){\n job = jobNum;\n }",
"public void setJob(Job job) {\r\n ExceptionUtils.checkNull(job, null, null, \"The parameter 'job' sh... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the draft ID of this draft attachments. | @Override
public void setDraftId(long draftId) {
model.setDraftId(draftId);
} | [
"public void setAttachmentId(long value) {\n this.attachmentId = value;\n }",
"public String getAttachmentSetId() {\n return this.attachmentSetId;\n }",
"public void setAttachmentId(BigDecimal value) {\r\n setAttributeInternal(ATTACHMENTID, value);\r\n }",
"@Override\n\tpublic lo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Set Storage billing mode. Valid values: `1` (monthly subscription), `0` (payasyougo). Note: This field may return null, indicating that no valid values can be obtained. | public void setStoragePayMode(Long StoragePayMode) {
this.StoragePayMode = StoragePayMode;
} | [
"public void setBillingMode(Long BillingMode) {\n this.BillingMode = BillingMode;\n }",
"public Long getStoragePayMode() {\n return this.StoragePayMode;\n }",
"public String getStorageMode() {\n return this.StorageMode;\n }",
"public void setStorage(Storage storage);",
"public ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Print books sorted by edition or year | private void printBooks(){
outputReader.printOutput("11) Sort by edition\n12) Sort by year");
int opt = inputReader.getIntInput();
switch (opt){
case 11:
controller.printBooksSortedByEdition();
break;
case 12:
controller.pr... | [
"public void printByDate() { //print the list of books by datePublished (ascending)\n\t\tif(numBooks>0) {\n\t\t\tSystem.out.println(\"**List of books by the dates published.\");\n\t\t\t\n\t\t\tmergeSortDate(books,0,numBooks-1);\n\t\t\tfor(int i=0;i<numBooks;i++) {\n\t\t\t\tSystem.out.println(books[i].toString());\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/fleet/hos_logs Get the HOS (hours of service) logs for the specified driver. This method returns all the HOS statuses that the driver was in during this time period. | public HosLogsResponse getFleetHosLogs(String accessToken, HosLogsParam1 hosLogsParam) throws ApiException {
ApiResponse<HosLogsResponse> resp = getFleetHosLogsWithHttpInfo(accessToken, hosLogsParam);
return resp.getData();
} | [
"public com.squareup.okhttp.Call getFleetDriversHosDailyLogsCall(String accessToken, Long driverId, HosLogsParam hosLogsParam, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {\n Object localVarPostBo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Use FindDeviceS3ReqMsg.newBuilder() to construct. | private FindDeviceS3ReqMsg(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
} | [
"private FindDeviceS3RspMsg(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private FetchDeviceSensorDataS3ReqMsg(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private LocateS3ReqMsg(com.google.protobuf.GeneratedMessag... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the encoding scheme used for encodingdecoding a message. symbol > code dictionary representing a coding scheme. | Map<Character, String> getCodingScheme(); | [
"Integer getEncScheme();",
"public java.lang.String getCodingSchemeName() {\n return codingSchemeName;\n }",
"String getScheme();",
"public java.lang.String getCodingSchemeURI() {\n return codingSchemeURI;\n }",
"public Map getRegisteredEncodingAlgorithms();",
"String getEncryptionSche... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
SP OPERATIONS creates sp | public SP_IF createSP(String name, String password, String email, String phone) {
sp = new SP(name, password, email, phone);
dao.createSP(sp);
return dao.readSP(email, password);
} | [
"Operacion createOperacion();",
"private void createProcedures() {\r\n \t\tIrFactory factory = IrFactory.eINSTANCE;\r\n \t\tfor (Vertex vertex : scheduler.getSchedule().getActors()) {\r\n \t\t\tInstance instance = ((Instance) vertex);\r\n \r\n \t\t\tCSDFMoC moc = (CSDFMoC) instance.getMoC();\r\n \t\t\tIterator<In... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__TransformationImpact__Group_1__0" $ANTLR start "rule__TransformationImpact__Group_1__0__Impl" ../fr.tpt.aadl.ramses.transformation.trc.xtext.ui/srcgen/fr/tpt/aadl/ramses/transformation/trc/xtext/ui/contentassist/antlr/internal/InternalTRC.g:2629:1: rule__TransformationImpact__Group_1__0__Impl : ( ( ru... | public final void rule__TransformationImpact__Group_1__0__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// ../fr.tpt.aadl.ramses.transformation.trc.xtext.ui/src-gen/fr/tpt/aadl/ramses/transformation/trc/xtext/ui/contentassist/antlr/internal/Inter... | [
"public final void rule__AttrAss__Group__0__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalMGPL.g:2081:1: ( ( ( rule__AttrAss__AttributeNameAssignment_0 ) ) )\n // InternalMGPL.g:2082:1: ( ( rule__AttrAss__AttributeN... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Extract polygon information from MongoDB document BSON document from MongoDB has a field 'points' points: (width,height) pairs separated by space The retuned RawData has polygon information as POLYGON((width height,width height,width height ... )) | private Polygon extractPolygon(DBObject doc){
DBObject imageDoc = (DBObject)doc.get("image");
String[] points = ((String)doc.get("points")).split("[\\s,]+");
if (points.length > 2){
// create and populate a new raw data polygon for this image
MongoPolygon pData = new MongoPolygon(
doc.get("_... | [
"private void getPolygonData() {\n InputStream inputStream = getResources().openRawResource(R.raw.buildings);\n try {\n String jsonResponse = readFromStream(inputStream);\n mBuildings= extractBuildings(jsonResponse);\n\n } catch (IOException e) {\n e.printStackT... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Legt den Wert der goalendPeriodEigenschaft fest. | public void setGoalendPeriod(int value) {
this.goalendPeriod = value;
} | [
"public int getGoalendPeriod() {\r\n return goalendPeriod;\r\n }",
"public int getGoalstartPeriod() {\r\n return goalstartPeriod;\r\n }",
"protected long getPeriod()\n {\n return 0;\n }",
"Period getEffectivePeriod();",
"long getPeriod();",
"public void setGoalstartPeriod(int ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a new instance of ActionConfirmForgotPassword | public ActionConfirmForgotPassword() {
} | [
"public ForgotPassword() {\n initComponents();\n }",
"@NotNull public static ConfirmAction.Builder confirmAction() { return new ConfirmAction.Builder(new HashMap<String,Object>()); }",
"public ForgotPasswordPage clickForgotPassButton() {\n forgotPasswordButton.click();\n return new Forgo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the attribute selectLeafFlags. | BitSet selectLeafFlags(); | [
"public BigDecimal getLeafFlag() {\n return leafFlag;\n }",
"BitSet valueLeafFlags();",
"public String getMenuIsLeaf() {\n\t\treturn menuIsLeaf;\n\t}",
"public Integer getLeaf() {\n return leaf;\n }",
"long getFlags();",
"public Long getHasLeaf() {\n return hasLeaf;\n }",
"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Tests the ability to setup and save a new job history for a properly processing job. | @Test
public void testNewJobHistoryProcessing()
{
Job job = jobFakery.makeFakeJob();
JobHistory newJobHistory = jobHistoryTx.newJobHistoryProcessing(job, START_TIME);
verify(mockJobHistoryDAO).persist(newJobHistory);
assertEquals(newJobHistory.getStatus(), JobStatus.PROCESSING);
assertNull(newJ... | [
"public void testJobHistoryCleaner() throws Exception {\n MiniMRCluster mr = null;\n try {\n JobConf conf = new JobConf();\n // expire history rapidly\n conf.setInt(\"mapreduce.jobhistory.cleaner.interval-ms\", 0);\n conf.setInt(\"mapreduce.jobhistory.max-age-ms\", 100);\n mr = new Mi... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Non empty only if INCOMPATIBLE_PLUGINS_DETECTED state. repeated .android_studio.BuildAttributionPluginIdentifier incompatible_plugins = 2; | java.util.List<com.google.wireless.android.sdk.stats.BuildAttributionPluginIdentifier>
getIncompatiblePluginsList(); | [
"com.google.wireless.android.sdk.stats.BuildAttributionPluginIdentifier getIncompatiblePlugins(int index);",
"java.util.List<? extends com.google.wireless.android.sdk.stats.BuildAttributionPluginIdentifierOrBuilder>\n getIncompatiblePluginsOrBuilderList();",
"com.google.wireless.android.sdk.stats.BuildAttr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the vpnClientRevokedCertificates property: VPN client revoked certificate of VpnServerConfiguration. | public List<VpnServerConfigVpnClientRevokedCertificate> vpnClientRevokedCertificates() {
return this.innerProperties() == null ? null : this.innerProperties().vpnClientRevokedCertificates();
} | [
"public List<P2SVpnServerConfigVpnClientRevokedCertificate> p2SVpnServerConfigVpnClientRevokedCertificates() {\n return this.innerProperties() == null\n ? null\n : this.innerProperties().p2SVpnServerConfigVpnClientRevokedCertificates();\n }",
"public List<VpnClientRevokedCertificat... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Transforms tokens with metadata in valid JavaScript. | private void dataToJS() {
StringBuilder code = new StringBuilder();
for (int i = 0; i < tokens.size(); i++) {
switch (tokens.get(i)) {
case INPUT:
boolean hasRead = false;
while (tokens.get(i+1) == VARIABLE_NAME || tokens.get(i+1) == COMMA) {
hasRead = true;
if (tokens.get(i+1) == COMMA) {
... | [
"public String[] preprocess(String[] tokens) {\n\t\t// this map contains all the mappings of how I want tokens to look\n\t\tMap<String, String> tokenMap = new HashMap<String, String>();\n\t\ttokenMap.put(\"program\", \"PROGRAM\");\n\t\ttokenMap.put(\"begin\", \"BEGIN\");\n\t\ttokenMap.put(\"end\", \"END\");\n\t\tto... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Pushes an item to the front of the list. | public void pushFront(Item i) {
if(this.isEmpty()){
this.first = new Node();
this.first.item = i;
this.last = this.first;
this.first.next = this.last;
} else {
Node oldFirst = this.first;
this.first = new Node();
this.fi... | [
"@Override\n\tpublic void addFront(T item) {\n\t\taddIndex(item, 0);\t\n\t}",
"public void push(E object) {stackList.insertAtFront(object);}",
"@Override\n\tpublic void addFront(T item) {\n\t\tif (this.isEmpty()) {\n\t\t\tthis.start = new Node<T>(item);\n\t\t\tthis.end = this.start;\n\t\t} else {\n\t\t\t// othe... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Filter out all the nongeo db schemas from the spec and generate a diff Note that some CFs might have been migrated from local db to geo db So we need to grab a latest list of geo schemas from the current schema first. | private static DbSchemasDiff genGeoDiffs(DbSchemas spec, List<DbSchema> geoSchemas) {
// prepare a list of geo schema names
List<String> geoSchemaNames = new ArrayList<>();
for (DbSchema geoSchema : geoSchemas) {
geoSchemaNames.add(geoSchema.getName());
}
List<DbSche... | [
"public static void filterSchemaLocationDiffs(final List<Difference> diffs) {\n List<Difference> removeDiffs = new ArrayList<Difference>();\n for(Difference dif:diffs) {\n if(dif instanceof Change) {\n Change c = (Change)dif;\n //filter namespace attibute chang... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |