query stringlengths 8 1.54M | document stringlengths 9 312k | negatives listlengths 19 20 | metadata dict |
|---|---|---|---|
.cloudstate.crdt.CrdtWriteConsistency write_consistency = 8; | public io.cloudstate.protocol.CrdtProto.CrdtWriteConsistency getWriteConsistency() {
io.cloudstate.protocol.CrdtProto.CrdtWriteConsistency result = io.cloudstate.protocol.CrdtProto.CrdtWriteConsistency.valueOf(writeConsistency_);
return result == null ? io.cloudstate.protocol.CrdtProto.CrdtWriteConsistency.... | [
"abstract boolean getRequireConsistency();",
"public void checkConsistency() {\n\t\t}",
"public InfluxDB setConsistency(final ConsistencyLevel consistency);",
"@Test\n /**\n * Given: A set of reads and writes to a particular key\n * Assert: The last-read and last-written metadata values are set pr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Labs or other data | @Column(name = "HgbOrHct")
public String getHgbOrHct() {
return HgbOrHct;
} | [
"@Parameters\n public static Collection<Object[]> data()\n {\n return Arrays.asList(new Object[][] { { \"\" }, { \"Q\" }, { \" U \" }, { \" \" }, { \"xX\" }, { \"rR\" }, {\"POLi\"},\n {new String[] { \"I\", \"q\" }}, {new String[] { \"I\", \"\", \"q\" }}\n })... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the state of ToggleButton | public void onToggleButtonClicked(View view) {
boolean on = ((ToggleButton) view).isChecked();
if (on) {
// on
} else {
// off
}
} | [
"JToggleButton getButton();",
"public ToggleState getToggleState ()\n throws AutomationException, PatternNotFoundException {\n if (this.togglePattern == null) {\n togglePattern = this.getTogglePattern();\n }\n\n return this.togglePattern.currentToggleState();\n }",
... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method used to add current pages to Available Pages Section using coordinates for dropping and click OK button to customise site page | public HtmlPage addToAvailablePagesAndClickOK (List<SitePageType> pageTypes)
{
WebElement target = driver.findElement(AVAILABLE_PAGES);
if (getCurrentPages().containsAll(pageTypes))
{
for (SitePageType theTypes : pageTypes)
{
try
{
... | [
"public void addPages() {\r\n\t //Lagutko, 22.07.2009, use selection from parent class\r\n\t\tNeoSplashUtil.logn(\"selection: \" + getSelection().toString());\r\n\t\tpage = new SplashNewSpreadsheetWizardPage(getSelection());\r\n\t\taddPage(page);\r\n\t}",
"public void addPages() {\r\n\t\tthis.page = new SaveSa... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Commit inner database connection. | void commit() throws SQLException; | [
"public void commit() {\n\t\ttry {\n\t\t\tdatabaseConnection.commit();\n\t\t\tclose();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public static void commit() {\n\t\ttry {\n\t\t\tconexion.commit();\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.pr... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Simple random number which can be used to check the thread name. | @Test
public void should_create_thread_context_via_aspect() throws Exception {
double b = Math.random();
// Act - now the API is rubbish, but we just want to check the aspect kicks in.
String response = template.getForObject(getRootUrl() + "/add/1/" + b, String.class);
Optional<Thre... | [
"protected String getRandomName() {\n return RandomStringUtils.randomAlphanumeric(RandomUtils.nextInt(10) + 1);\n }",
"public static String getRandomName() {\n return Integer.toHexString(UUID.randomUUID().hashCode());\n }",
"private static String getRandomNumber() {\n return Integer.t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ / / / / | public VerticalTextView(Context context, AttributeSet attrs) {
/* 37 */ super(context, attrs);
/* 38 */ init();
/* */ } | [
"private void calculatePaths() {\n\n\n }",
"public static void main (String arg[]){\n\tSystem.out.println(\" ( ) ( ( \"); \n\n\tSystem.out.println(\" ( )\\\\ ) ( /( ( )\\\\ ) ( )\\\\ ) \");\n\t\n\tSystem.out.println(\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public void onNothingSelected(AdapterView<?> parent) {
} | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Override the execute to run the insert function of the user and permissions collection. | @Override
public Response execute(Request req) throws Exception {
// Ensure the body is of type userpermissions.
if (!(req.body instanceof UserPermissions)) return new UnsupportedType(UserPermissions.class);
// Ensure its not null.
UserPermissions userPermissions... | [
"int insert(AdminUserPermission record);",
"int insert(UserPermissionKey record);",
"int insert(ZkPermission record);",
"int insertSelective(UserPermissionKey record);",
"int insert(SugoPermission record);",
"@Override\n\tpublic int insertSelective(Sys_permission record) {\n\t\treturn PerService.insertSel... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Static branch predictor, doesn't do much | @Override
public void updatePredictor(BranchInstruction branchInstruction, boolean wasTaken) {
return;
} | [
"private void branch (String branchingVar, NodeAttachment nodeData) throws IloException{\n IloNumVar[][] vars = new IloNumVar[TWO][] ;\r\n double[ ][] bounds = new double[TWO ][];\r\n IloCplex.BranchDirection[ ][] dirs = new IloCplex.BranchDirection[ TWO][];\r\n \r\n if (null==... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
End of variables declaration//GENEND:variables | @Override
public void update(Observable o, Object arg) {
updateNewsFeed();
updateUserList();
updateNewsFeed();
updateFollowingUserList();
updateMyTweetList();
//throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choos... | [
"private static void EX5() {\n\t\t\r\n\t}",
"@Override\n\tprotected void initVariable() {\n\t\n\t}",
"public void mo17751g() {\n }",
"public void mo1857d() {\n }",
"public static void Q22()\r\n\t{\r\n\t}",
"public void mo28221a() {\n }",
"public void mo3914b() {\n }",
"protecte... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Sets the Java source files entries to compile. | void setSourceEntries(@Nonnull Collection<File> sourceEntries) throws ConfigurationException; | [
"void setClasspath(Iterable<File> files);",
"public void setSources(java.util.Set sources);",
"public void setSourcesDir(String pSourcesDir);",
"public void setCs(){\n\t\tthis.cs = new CoreSettings(this.keySeparator, this.verbose, this.appName, this.inputDir, this.target);\n\t}",
"public void setSource(Stri... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a new URLInputAdapter by opening a connection to URL specified by the input param | public URLInputAdapter(URL url) throws IOException {
super(new BufferedReader(new InputStreamReader(url.openStream())));
} | [
"interface HttpUrlConnectionFactory\n{\n /**\n * Constructs a new HttpURLConnection that will make a request to the\n * specified url with the specified request as a payload.\n */\n HttpURLConnection newInstance(String address, byte[] request) throws ServiceCallException;\n}",
"public Input(URL ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ / / / / / | public String getMsgFee()
/* */ {
/* 230 */ return this.msgFee;
/* */ } | [
"private void calculatePaths() {\n\n\n }",
"public static void main (String arg[]){\n\tSystem.out.println(\" ( ) ( ( \"); \n\n\tSystem.out.println(\" ( )\\\\ ) ( /( ( )\\\\ ) ( )\\\\ ) \");\n\t\n\tSystem.out.println(\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Optional. SnapshotPolicy for a volume. .google.cloud.netapp.v1.SnapshotPolicy snapshot_policy = 18 [(.google.api.field_behavior) = OPTIONAL]; | public Builder mergeSnapshotPolicy(com.google.cloud.netapp.v1.SnapshotPolicy value) {
if (snapshotPolicyBuilder_ == null) {
if (((bitField0_ & 0x00020000) != 0)
&& snapshotPolicy_ != null
&& snapshotPolicy_ != com.google.cloud.netapp.v1.SnapshotPolicy.getDefaultInstance()) {
... | [
"io.cloudstate.protocol.EventSourcedProto.EventSourcedSnapshot getSnapshot();",
"com.google.protobuf.ByteString getSnapshot();",
"public EbsSnapshotResource getSnapshot() {\n return snapshot;\n }",
"public boolean isSnapshotMode() {\n return snapshotMode;\n }",
"public interface BlockVol... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test of setQuantity method, of class Product. | @Test
public void testSetQuantity3() {
System.out.println("setQuantity");
int quantity = 10;
Product instance = new Product("", "", 0, 10);
instance.setQuantity(quantity);
// TODO review the generated test code and remove the default call to fail.
if (instance.... | [
"@Test\n public void testSetAndQuantit() throws Exception {\n // Arrange\n Production testProduction = new Production();\n int testVal = 1;\n\n // Act\n testProduction.setQuantity(testVal);\n int result = testProduction.getQuantity();\n\n // Assert\n Assert... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
If a streaming output fails, number of seconds to wait until a restart is initiated. A value of 0 means never restart. | public Integer getRestartDelay() {
return this.restartDelay;
} | [
"int getTotalStreamDuration();",
"long getNonStopTimeoutCount();",
"Integer getReadTimeoutSec();",
"int getSecondsPerMessage();",
"long getNumReadoutRequestsQueued();",
"int getSecondsUntilReset();",
"private long calcWaitSeconds() {\n return this.numAttempts > 0 ? (long) Math.pow(2, this.numAtte... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
insert the newNode into the tree | public void insertNode(RBTree tree,RBTreeNode newNode){
//find the correct place to insert the new node
length++;
RBTreeNode pointer=root;
RBTreeNode insertPointer=nil;
if (pointer==nil){
tree.root=newNode;
... | [
"TreeNode<Integer> insert(Integer data, TreeNode<Integer> root);",
"@Override\n\tpublic void insertNode(TreeNode aNode){\n\t\t//This insert method of a Red Black Tree inserts aNode\n\t\t//in search tree order.\n\t\t//O(tree height)\n\n\t\tif(!(aNode instanceof RBTreeNode)) return;\n\n\t\tif(aNode.getData().compar... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This operation will fail if a policy with the same name already exists, or a policy for the same set of resources already exists. Roles defined in this policy that do not already exist will be created. | void createPolicy(Policy policy) throws Exception; | [
"public Policy addPolicy(Policy policyToAdd);",
"@ApiOperation(httpMethod = \"POST\", value = \"API to create new policy\", response = Response.class, produces = MediaType.APPLICATION_JSON_VALUE)\n\t//@PreAuthorize(\"@securityService.hasPermission(authentication)\")\n\t@RequestMapping(path = \"/create\", method =... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Closes all file descriptors, clears the cache, and removes any files from the uncompressed cache. | public synchronized void shutdown() {
Iterator<Map.Entry<String, SharedFile>> iEntries = mCache.entrySet().iterator();
while (iEntries.hasNext()) {
Map.Entry<String, SharedFile> entry = iEntries.next();
String path = entry.getKey();
SharedFile file = entry.getValue();... | [
"@Override\n public void close() throws IOException {\n super.close();\n this.cache.close();\n this.cacheFile.delete();\n }",
"public void dispose() {\n\t\tfor (Image image : cache.values())\n\t\t\timage.dispose();\n\t\tcache.clear();\n\t}",
"public void close() {\n\t\tcacheMap.forEac... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method sets the value of the database column FMSPAYPLANDET_JOINT_CIF.TOTAL_PRINCIPAL_OUTSTANDIG | public void setTOTAL_PRINCIPAL_OUTSTANDIG(BigDecimal TOTAL_PRINCIPAL_OUTSTANDIG) {
this.TOTAL_PRINCIPAL_OUTSTANDIG = TOTAL_PRINCIPAL_OUTSTANDIG;
} | [
"public void setOUTSTANDING_PRINCIPAL(BigDecimal OUTSTANDING_PRINCIPAL) {\r\n this.OUTSTANDING_PRINCIPAL = OUTSTANDING_PRINCIPAL;\r\n }",
"public void setTotalDiscountsFinal(BigDecimal TotalDiscountsFinal);",
"@ApiModelProperty(required = true, value = \"Details of the amount of payout that the affili... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates a new JDialogPlotSurface object. | public JDialogPlotSurface(JFrame theParentFrame, ModelImage im, int slice) {
super(theParentFrame, true);
image = im;
userInterface = ((ViewJFrameBase) (parentFrame)).getUserInterface();
this.slice = slice;
init();
} | [
"void createSurfaceTool(){\n if(surfaceTool!=null){\n surfaceTool.toFront();\n }else{\n surfaceTool = new SurfaceTool(viewer, historyFile, SURFACETOOL_WINDOW_NAME, true);\n }\n }",
"public PlotterWindow(){\r\n\r\n\t \twindow = new Window(\"Plotter\"); \t\t\t// Create the app window\r\n\t\t\tT... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
task tower repeated .protos.TaskTower task_towers = 4; | public java.util.List<com.alibaba.alink.operator.batch.dl.ctr.protos.TowerOuterClass.TaskTower> getTaskTowersList() {
if (taskTowersBuilder_ == null) {
return java.util.Collections.unmodifiableList(taskTowers_);
} else {
return taskTowersBuilder_.getMessageList();
}
} | [
"public ControlTowerGame() {\n // Init the game with the DayTimeMediator\n timeMediator = new DayTimeMediator(uiController);\n // Init the game with normal weather mediator\n weatherMediator = new NormalWeatherMediator(this, uiController);\n\n runways.add(0, new ChopperRunway(\"ru... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Metodo per gestire l'invio dei markers al DB | public void inviaPosizioneMarkers() {
if(mMarkerListDaInviare.size() > 0) {
// Rimozione marker provvisorio
if(mMarkerProvvisorio != null)
mMarkerProvvisorio.remove();
mMarkerProvvisorio = null;
for(final Marker m : mMarkerListDaInviare) {
... | [
"public void onClickFromDatabase (View v) {\n // So firstly read all of the database and import all of the signals. The process them and sort by average\n IndoorDatabaseHelper databaseHelper = IndoorDatabaseHelper.getInstance(this);\n List<IndoorSignal> signals = databaseHelper.getAllSignals();... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get client to Metastore | public ThriftHiveMetastore.Iface metastoreClient(Configuration conf) throws TException {
return metastoreDesc.makeClient(conf);
} | [
"private static IMetaStoreClient getRemoteMetastoreClient(Properties props)\n throws IOException, MetaException, ConfigurationException {\n\n HiveConf conf = new HiveConf();\n conf.setVar(METASTOREURIS, props.getProperty(HIVE_METASTORE_URIS, DEFAULT_METASTORE_URI));\n\n if (props.getProperty(HIVE_META... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Check for multiple capacity use declaration. | @Check(CheckType.NORMAL)
public void checkMultipleCapacityUses(CapacityUses uses) {
if (!isIgnored(IssueCodes.REDUNDANT_CAPACITY_USE)) {
JvmIdentifiableElement jvmContainer = this.logicalContainerProvider.getNearestLogicalContainer(uses);
EObject container = this.jvmModelAssociator.getPrimarySourceElement(jvmC... | [
"@Override\n protected boolean checkRequirements(Set<String> requirements, int capacity) {\n for (String s : requirements) {\n if (!getFeatures().contains(s))\n return false;\n }\n // classrooms cannot take on any more than the capacity\n return capacity <= g... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Map Component Methods: ////////////////////// Adds a component to the map bean context. This makes the mapComponent available to the map layers and other components. | public void addMapComponent(Object mapComponent) {
if (mapComponent != null) {
getMapHandler().add(mapComponent);
}
} | [
"public void addComponent(CustomCanvasComponent component) {\n\t}",
"@Override\n\tpublic void addComponent(Component c) {\n\t\t\n\t}",
"protected void addToContainer() {\n getComponentContainer().addComponent(this);\n }",
"public Entity addComponent(Component component) {\r\n componentManager.addCo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ renamed from: w | public AccessibilityNodeInfo mo14791w() {
return this.f10453a;
} | [
"@Override\n\tpublic void wiper() {\n\t\t\n\t}",
"void mo44758wW();",
"int w();",
"@Override\r\n\tpublic void zwroc() {\n\t\t\r\n\t}",
"void wander();",
"public void setW(int w){\n this.w = w;\n }",
"withClause getW();",
"atw mo11004b();",
"public b d() {\n/* 203 */ return this.w;\n/* ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method to add student to active course Enroll student in course while ensuring they aren't already enrolled | public void addStudent(Student student)
{
if (!students.contains(student))
{
students.add(student);
}
} | [
"void enroll(Course c) {\n if (!this.courses.contains(c)) {\n this.courses = new ConsList<Course>(c, this.courses);\n c.addStudent(this);\n }\n }",
"private void enrollStudent(String username, int courseId){\n if(verifyStudentCourse(username,courseId)) {\n if (!this.backend.enro... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public void actionPerformed(ActionEvent e) {
p1.removeAll();
frame.invalidate();
frame.validate();
frame.repaint();
JTable j;
DefaultTableModel model = new DefaultTableModel();
j = new JTable(model);
model.addColumn("Pincode");
model.addColumn("State ... | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
INSERT INTO database_name.table_name DEFAULT VALUES | @Test
public void testInsertStmt_default() throws ParseException {
InsertStmt stmt = stmt("insert1").insertStmt();
assertTrue(stmt instanceof InsertStmtDefault);
assertEquals(InsertStmt.Type.INSERT, stmt.type);
assertEquals("database_name", stmt.database.name);
assertEquals(... | [
"private void insertDefaultData() {\n this.notificationWebServiceConfigurationRepository.save(this.notificationEndpointConfigurations());\n }",
"void insert(String table_name, String[] values);",
"public String beginInsert(String tbl)\n{\n return \"INSERT INTO \" + tbl + \" VALUES(\";\n}",
"privat... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional int64 clientTime = 2; | public long getClientTime() {
return clientTime_;
} | [
"public void setServingTime(int time)\n {\n this.servingTime=time; \n }",
"public java.lang.Long getRequesttime() {\n return requesttime;\n }",
"public int getTime() { return t; }",
"Long getServerTimeStamp();",
"protected long __timeNow() {\n return __time.get().longValue();\n }",
"l... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Add the packages exported by a bundle. | public static Set<String> getExportedPackages(File file) throws IOException {
if (!file.exists()) {
return Collections.emptySet();
}
Set<String> packages = new HashSet<String>();
Manifest manifest = getManifest(file);
// Read the export-package declaration and get a... | [
"public void addInstalledBundles(Properties properties) {\n\t\tFeedbackPlugin feedbackPlugin = FeedbackPlugin.getDefault();\r\n\t\tList<Bundle> bundlesSendingFeedback = new PluginFilter(pluginPrefixes).getMatchingBundles(feedbackPlugin);\r\n\r\n\t\tfor (int i = 0; i < bundlesSendingFeedback.size(); i++) {\r\n\t\t\t... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method to be used by the velin.server.Auction to create AuctionItems | public synchronized static AuctionItem createAuctionItem(int token, Auction auction, long itemId, long creatorId, String itemName, long lastBidder, double startValue, double value, long timeLeft) {
if (token == AUCTION_TOKEN) {
return new AuctionItem(auction, itemId, creatorId, itemName, lastBidder,... | [
"@Override\r\n\tprotected void createItems()\r\n\t{\n\t}",
"public void addNewItem() {\n /*\n create new item object\n call item constructor\n once item is created and initialized, add to itemList\n */\n }",
"private void createQuestItems()\n {\n questItemRoom... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
return index of highest set bit in binary representation of value minus 1 | public int getMinusOneHighestBit () {
BigInteger valMinus1 = this.getValue().subtract(new BigInteger("1"));
return valMinus1.bitLength() - 1;
} | [
"byte max();",
"public static int lowestZeroBit(byte value) {\n int intVal = Byte.toUnsignedInt(value);\n // Transform search of the lowest 0 bit into a search of the lowest 1 bit\n int negVal = ~intVal;\n\n return Integer.numberOfTrailingZeros(negVal);\n }",
"private int getMaxIn... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Finds an element by locator. | private WebElement getWebElement(By locator) throws NoSuchElementException {
return driver.findElement(locator);
} | [
"public WebElement findElement(By locator) {\n return driver.findElement(locator);\n }",
"@Override\n\tpublic WebElement findElement(By locator) {\n\t\treturn null;\n\t}",
"public WebElement getElement(By locator){\n return driver.findElement(locator);\n }",
"WebElement findElement(By iden... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Forwards the request to a backend group for processing as configured. .yandex.cloud.apploadbalancer.v1.HttpRouteAction route = 2; | @java.lang.Override
public boolean hasRoute() {
return actionCase_ == 2;
} | [
"@Override\n public void handle(RoutingContext event) {\n event.vertx().eventBus().send(EventKey.System.SYSTEM_HTTP_REQUEST_SR, null);\n\n\n HttpServerRequest sourceRequest = event.request();\n\n String suffix = sourceRequest.path();\n suffix = suffix.substring(prefixLen);\n su... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
only public so we can unittest | public List<Pair<LocalDateTime, Change>> getDiffPoints(List<Pair<LocalDateTime, BigDecimal>> targetMovement) {
BigDecimal prev = targetMovement.get(0).getSecond();
List<Pair<LocalDateTime, Change>> diff = new ArrayList<>();
for(int i=1;i<targetMovement.size();i++){
Pair<LocalDateTime, BigDecimal> current =... | [
"private void doTest() {\r\n\r\n\t}",
"private void testing() {\n\t}",
"protected void expectations() { }",
"@Override\n\t\tpublic void testMe() {\n\t\t\t\n\t\t}",
"@Override\n public void test() {\n }",
"@Test\r\n final void testReadFromString() {\r\n // Test code removed, has to be ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Interface for the freecell game controller. An implementation will work with the IFreeCellModel interface to provide a game of freecell | public interface IFreecellController<K> {
/**
* Start and play a new game of freecell with the provided deck. This deck
* should be used as-is. This method returns only when the game is over
* (either by winning or by quitting)
*
* @param deck the deck to be used to play this game
* @param model... | [
"public interface IFreeCellController<K> {\n\n\n /**\n * Starts a new game of FreeCell using the provided model.\n * It also uses the deck, number of cascade piles and num of open\n * piles provided.\n *\n * <p>If shuffle is false the deck is used as is\n * else the deck is shuffled.\n *\n * <p></p... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by MyBatis Generator. This method corresponds to the database table car_brand | int updateByExample(@Param("record") CarBrand record, @Param("example") CarBrandExample example); | [
"EbBrand selectByPrimaryKey(Long brandId);",
"public interface BrandDao {\n\n @Select(\"SELECT id, name, logo FROM xx_brand t1 LEFT JOIN xx_product_category_brand t2 \" +\n \" on t1.id = t2.brands where t2.product_categories=#{categoryId} ORDER BY \" +\n \" t1.orders LIMIT #{limit}\")\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the build information of the backend | String buildInfo(); | [
"public static Map<String,String> getBuildInfo() {\n Map<String,String> info = new HashMap<>();\n String branch = \"N/A\";\n String version = \"N/A\";\n String buildTime = \"N/A\";\n String subsidiary;\n\n String envType = ProjectConfiguration.getConfigProperty(\"EnvType\")... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Append Artifact ID with size and extension | public static List<File> getFiles(String destination,List<File> destinationFileList){
File destDirec = new File(destination);
File[] listOfFiles = destDirec.listFiles();
for (int i = 0; i < listOfFiles.length; i++) {
if (listOfFiles[i].isFile() && (!listOfFiles[i].getName().startsWith("Manifest_"))) {
... | [
"private Resource addArtifactIdToDescription(ResourceImpl description, Artifact artifact) {\n try {\n\n\n Representation representation = new RepresentationBuilder()._instance_(new ArrayList<RepresentationInstance>() {{\n add(artifact);\n }}).build();\n\n if (d... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
@Transactional
public void deteleById(Long id) {
Proyectosrepository.deleteById(id);
} | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
setTerm sets the word for the object | public void setTerm(String term) {
word = term;
} | [
"public void setTerm(Term term) {\n\t\tthis.term = term;\n\t}",
"public void setTerm(java.lang.String param){\n \n this.localTerm=param;\n \n\n }",
"void setTerm(au.gov.asic.typ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the client for a given request | public static SingleClient getSingleClient(HttpServletRequest request)
{
SingleClient retVal = new SingleClient();
SingleClient client = (SingleClient) request.getAttribute(ATTR_CLIENT);
if ( client != null )
{
retVal.setDelegate(client.getDelegate());
}
return retVal;
} | [
"private Client getClient(HttpServletRequest req) {\n\t\tString apiKey = req.getHeader(\"apiKey\");\n\t\tClient client = clients.get(apiKey);\n\n\t\tif (client == null) {\n\t\t\tthrow new WebApplicationException(Response.status(Status.UNAUTHORIZED)\n\t\t\t\t\t.entity(\"Please supply your API key in HTTP header fiel... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
url to full filename | private static Path urlToFilePath(String url) {
return Paths.get(cacheRootPath.toString(), urlToFileName(url));
} | [
"public String getFileDownloadURL(String filename);",
"public String getFileName(){\n if(!url.equals(\"\")){\n return FilenameUtils.getName(url);\n }\n return \"\";\n }",
"private String getUrlFromFileName(String fileName) {\r\n\t\tFile file = new File(fileName);\r\n\t\tURI ur... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test Case fuer das Entfernen eines Kontakts aus einer Kontaktliste CHECK MELANIE | public void removeKontaktFromKontaktliste() {
Nutzer n = new Nutzer();
n.setId(1);
Kontaktliste kl = new Kontaktliste();
kl.setId(1);
Kontakt k = new Kontakt();
k.setId(2);
EditorServiceImpl editor = new EditorServiceImpl();
editor.removeKontaktFromKontaktliste(kl, k);
} | [
"@Test\n\tpublic void testsuchenMarke() {\n\t\tMietwagen m = new Mietwagen(1, \"VW\", false, null, \"Sheila\");\n\t\tMietwagen m1 = new Mietwagen(2, \"VW\", false, null, \"Alex\");\n\t\tMietwagen m2 = new Mietwagen(3, \"Opel\", false, null, \"Anna\");\n\t\tArrayList<Mietwagen> markeList = new ArrayList<Mietwagen>()... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public void unload() throws IOException {
} | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Called back before the OpenGL context is destroyed. Release resource such as buffers. | public void dispose(GLAutoDrawable drawable) {
} | [
"@Override\r\n\tpublic void gl_shutdown() {\n\t\tglDisableVertexAttribArray(0);\r\n\t\t \r\n\t\t// Delete the VBO\r\n\t\tglBindBuffer(GL_ARRAY_BUFFER, 0);\r\n\t\tglDeleteBuffers(vbo);\r\n\t\t \r\n\t\t// Delete the VAO\r\n\t\tglBindVertexArray(0);\r\n\t\tglDeleteVertexArrays(vao);\r\n\t\t\r\n\t\tglDeleteVertexArrays... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Gets the attribute value for SAM using the alias name Sam. | public Number getSam() {
return (Number) getAttributeInternal(SAM);
} | [
"protected String getAttributeValue(String name) {\n return Attribute.findAttribute(attributes, name);\n }",
"String attributeForAlias(String alias);",
"public Object getAttribute(String name){\n return attributes.get(name);\n }",
"@OleMethod String GetAttribute(String AttributeName);",
"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Internal method to find an item in a subtree. | private boolean contains( AnyType x, AvlNode<AnyType> current )
{
while( current != null )
{
int compareResult = x.compareTo( current.element );
if( compareResult < 0 )
current = current.left;
else if( compareResult > 0 )
... | [
"private T recGet(T item, BSTNode<T> tree) {\n\t\tif (tree == null)\n\t\t\treturn null; // element is not found\n\t\telse if (item.compareTo(tree.getData()) < 0)\n\t\t\treturn recGet(item, tree.getLeft()); // get from left subtree\n\t\telse if (item.compareTo(tree.getData()) > 0)\n\t\t\treturn recGet(item, tree.get... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
/ renamed from: b | private static ArrayList<String> m109090b(String str) {
String[] split;
if (str == null || str.isEmpty()) {
return new ArrayList<>();
}
ArrayList<String> arrayList = new ArrayList<>();
for (String str2 : str.split(",")) {
if (!arrayList.contains(str2)) {
... | [
"public abstract T zzs(B b2);",
"public void b(ByteOrder bo) {\n/* 72 */ if (this.i != bo) {\n/* 73 */ this.i = bo;\n/* 74 */ this.h = a(bo);\n/* */ } \n/* */ }",
"public void doSth(B b){\n\n }",
"public abstract void mo14156a(B b, int i, int i2);",
"@Override\n\tpublic v... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Create discover panel and storage lists | void initLists(SanStorageModelBase object) {
iscsiDiscoverTargetsView = new IscsiDiscoverTargetsView();
sanStorageTargetToLunList = new SanStorageTargetToLunList(object, hideLeaf, multiSelection);
// Add view widgets to panel
targetsToLunsDiscoverPanel.add(iscsiDiscoverTargetsView);
... | [
"private void fillData() {\n\t\tfileListEntries = new ArrayList<FileNavList>();\n\t\tfileListNavEntries = new ArrayList<FileNavList>();\n\t\tFileNavList fileList;\n\t\tfileExplorer = new ExplorerOperations();\n\t\tfileExplorer.setFile(new File(ExplorerOperations.DIR_ROOT));\n\t\tfileExplorer.setContext(context);\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
optional .com.heme.logic.module.DelFriendRsp DelFriendRspInfo = 43; | private com.google.protobuf.SingleFieldBuilder<
com.heme.logic.module.Data.DelFriendRsp, com.heme.logic.module.Data.DelFriendRsp.Builder, com.heme.logic.module.Data.DelFriendRspOrBuilder>
getDelFriendRspInfoFieldBuilder() {
if (delFriendRspInfoBuilder_ == null) {
delFriendRspInfoB... | [
"@DELETE(\"/friends/remove_friend/{friendID}/{userID}\")\n Call<Void> removeFriend(\n @Header(\"Authorization\") String token,\n @Path(\"friendID\") int friendID,\n @Path(\"userID\") int userID);",
"@Override\n public void onSuccess(Void aVoid... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
get color by resource id and resource name | int getColor(int resId, String resName) throws Resources.NotFoundException; | [
"public int findResourceColor(String color) {\n\t\tint returnResourceColor = 0;\n\t\t\n\t\tif(color.equals(\"green\")) {\n\t\t\treturnResourceColor = Color.GREEN;\n\t\t}\n\t\tif(color.equals(\"yellow\")) {\n\t\t\treturnResourceColor = Color.rgb(255,215,0);\n\t\t}\n\t\tif(color.equals(\"black\")) {\n\t\t\treturnReso... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
bring back in when running on phone | public void onLocationChanged(Location location) {
// Called when a new location is found by the network location provider.
} | [
"private void finishToSwitchPhone() {\n logd(\"finishToSwitchPhone...\");\n mUnderSimSwitching = false;\n if (mFinishSwitchPoneMsg != null) {\n mGeminiPhoneHandler.sendMessageAtFrontOfQueue(mFinishSwitchPoneMsg);\n }\n\n // Update active phone.\n mDualActivePhone... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
get a random integer 0 ... (maxValue1) | public int getNextValue(final int maxValue) {
int retVal = getNextByte() | getNextByte() << 8 | getNextByte() << 16 | getNextByte() << 24;
retVal %= maxValue;
if (retVal < 0) {
retVal += maxValue;
}
return retVal;
} | [
"public abstract int randomInt( int maxValue );",
"private int getRandom(){\n int max=999999;\n int min=100000;\n Random random=new Random();\n int num=random.nextInt((max-min)+1)+min;\n return num;\n }",
"public static int randomInt(int maxValue) {\n return (int) (M... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
y = 1.75sin(1.75t).exp((t.^2)/2)t cos(1.75t).exp((t.^2)/2); | private double d_mymorlet(double t) {
double y = -1.75 * sin(1.75*t) * exp(-(pow(t, 2))/2)
- cos(1.75*t)*exp(-(pow(t, 2))/2);
return y;
} | [
"public double yValue(double t) {\n\t\treturn Multiplier(t) * Math.sin( t );\n\t}",
"static double f(double t) {\n return Math.cos(2 * Math.PI * t * 0.25);\n }",
"@Override\n\tpublic double[] f(double t, double[] y) \n\t{\n\t\tdouble[] new_y = new double[2];\n\t\tdouble g = 32.2;\n\t\tdouble l = 2;\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test if the first String is equal to the second String. | protected boolean equals(String first, String second)
{
if (first == null && second == null)
{
return true;
}
if (first == null || second == null)
{
return false;
}
return first.equals(second);
} | [
"public static boolean equal(String s1, String s2) {\n return equal(s1, s2, 0);\n }",
"private static boolean isEqual(String s1, String s2) {\n\treturn s1.equals(s2);\r\n }",
"public static void isEqual(String a, String b) {\n System.out.println(a == b ? \"strings are equal\" : \"strings are... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
string radname = 4; | java.lang.String getRadname(); | [
"String getR3name();",
"public void setName(String rname) {\r\n\t name=rname;\r\n }",
"public String getRadom() {\n return radom;\n }",
"int getNameValue();",
"public String returnRegNR () {\n \treturn regNR;\n }",
"public static String name(){\n\treturn \"01.Zorin.Masha\"; \n }",
"publ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Conversion format to .wav | private void startTransferToWav() {
transferPath = filePath.replace(".pcm", ".wav");
recordManager.getAudioRecorderPcm().convertAudioFiles(filePath, transferPath);
} | [
"String convert(String pt, String outp) {\n/* 348 */ final String to = pt + \".mp3\";\n/* 349 */ IMediaReader mediaReader = ToolFactory.makeReader(pt);\n/* 350 */ int mySampleRate = 44100;\n/* 351 */ int myChannels = 2;\n/* */ \n/* 353 */ mediaReader.addListener((IMediaListener)new Media... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Checks if the object is or is part of the diagram assistant figure. This is used to determine if the mouse is hovering over the diagram assistant. | protected abstract boolean isDiagramAssistant(Object object); | [
"public boolean isMouseOver(Coord mouse);",
"public boolean isMouseOver() {\n return this.hovered;\n }",
"public boolean isInvasionOver();",
"public boolean isMouseOver() {\n return mouseOver;\n}",
"public boolean isMouseOver() {\n\t\treturn mouseOver;\r\n\t}",
"default boolean isMouseOver() ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | private void sendRequest(String string) {
try {
outStream.write(string);
outStream.flush();
System.out.println("C: " + string.trim());
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
} | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public NavigableCompositeTrie<K, Boolean, V> subMap(K fromKey, boolean fromInclusive, K toKey,
boolean toInclusive) {
return null;
} | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates new form DisassemblerFrame | public DisassemblerFrame(Emulator emu) {
this.emu=emu;
listmodel = new DefaultListModel();
initComponents();
DebuggerPC = 0;
RefreshDebugger();
} | [
"private FlatFrame createFrame() {\r\n\t\tFlatFrame frame = new FlatFrame();\r\n\t\tScreenManager frameSM = ScreenManager.getInstance();\r\n\r\n\t\tframe.setTitle(\"직원 현황/해고\");\r\n\t\tframe.setSize(frameSM.dip2px(200), frameSM.dip2px(240));\r\n\t\tframe.setLocationOnScreenCenter();\r\n\t\tframe.setWindowExit(false... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
try stubbing a method | @Test
public void testMockWithStub() {
String expected = "Mock 100";
when(mockList.get(100)).thenReturn(expected);
assertEquals(expected, mockList.get(100));
} | [
"public void methodMock(){\n\n }",
"void dummyMethod();",
"@Test\r\n public void testFalseStub2() throws McException\r\n {\r\n final ArenaTypeInterface type = mock(ArenaTypeInterface.class);\r\n final ArenaCreateEvent evt = new ArenaCreateEvent(\"FOO\", type); //$NON-NLS-1$\r\n evt... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Util method to write an attribute without the ns prefix | private void writeQNameAttribute(java.lang.String namespace, java.lang.String attName,
javax.xml.namespace.QName qname, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
java.lang.String attributeNamespace = qname.ge... | [
"private void writeAttribute(java.lang.String namespace, java.lang.String attName, java.lang.String attValue,\r\n\t\t\tjavax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {\r\n\t\tif (namespace.equals(\"\")) {\r\n\t\t\txmlWriter.writeAttribute(attName, attValue);\r\n\t\t} else {\r... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
string, double, int i boolean 1:spoji 2 stringa(String) 2:saberi 2 broja (int) 3:provjeri da li je broj djeljiv sa 2 ili 3 (boolean) 4:prosjek 3 decimalna broja (double) 0:izlaz iz programa Spoji 2 stringa | public static void main(String[] args) {
@SuppressWarnings("resource") // komentar 1: SuppressWarnings, ako ga koristiš, dovoljan je samo jedan
Scanner inputstring = new Scanner (System.in);
System.out.print("Unesite dva imena:");
String ime1 = inputstring.next();
String ime2 = inputstring.next();
Stri... | [
"public static void main(String[] args) {\n\t\tint i;\r\n\t\t//dodjeljivanje vrijednosti\r\n\t\ti=10;\r\n\t\t\r\n\t\tSystem.out.println(i);\r\n\t\t\r\n\t\t//https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html\r\n\t\tbyte b=22; //0 - početna vrijednost\r\n\t\tshort s = 18;//0 - početna vrijednos... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the payload data in this frame. | public byte[] getPayload() {
return payload;
} | [
"public byte[] getPayload() {\n return this.payload;\n }",
"public Object getPayload()\n {\n return payload;\n }",
"public java.nio.ByteBuffer getPayload() {\n return payload;\n }",
"@Override\n\t\t\tpublic Object payload() {\n\t\t\t\treturn payload;\n\t\t\t}",
"@java.... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
this method never returns NULL | public static CompiledSQLExpression compileExpression(
String validatedTableAlias,
Expression exp
) {
if (exp instanceof BinaryExpression) {
CompiledSQLExpression compiled = compileSpecialBinaryExpression(validatedTableAlias, exp);
if (compiled != null) {
... | [
"private String veryExpensiveOperation() {\n return null;\n }",
"protected void method_5557() {}",
"@Override\n }",
"@Override\n protected Object call() throws Exception {\n return null;\n }",
"@Override\n public String comunicarse() {\n return null;... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
count filtered object list | @Override
public Long count(CalendarFilter filter) {
Session session = this.sessionFactory.getCurrentSession();
CriteriaBuilder builder = session.getCriteriaBuilder();
CriteriaQuery<Long> criteria = builder.createQuery(Long.class);
Root<Calendar> root = criteria.from(Calendar.class);
List<Predicate> predicates = new ... | [
"int getIdFiltersCount();",
"int countByFilter(ActorFilter filter);",
"int findOrderCount(Map<String, List> filter);",
"int getDubboFiltersCount();",
"Object countTAlgmnts(SearchFilter<TAlgmnt> searchFilter);",
"public int setNumberOfObjects(){\n\t\t\n\t\tModel model = StoreConnection.getJenaModel(tempGra... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
getItem is called to instantiate the fragment for the given page. Return a PlaceholderFragment (defined as a static inner class below). return PlaceholderFragment.newInstance(position + 1); | @Override
public Fragment getItem(int position) {
switch (position) {
case HOME_IDX:
return ListSessionsFragment.newInstance(ListSessionsFragment.STAGGERED_TYPE);
case CHAT_IDX:
// return FragmentChatClass.newInstance();
... | [
"@Override\n\t\tpublic Fragment getItem(int position) {\n\t\t\treturn PageFragment.newInstance(position + 1);\n\t\t}",
"@Override\n public Fragment getItem(int position) {\n return PlaceholderFragment.newInstance(position + 1, o);\n }",
"@Override\n\tpublic Fragment getItem(int position... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the string part between the separator at the index position. The index starts from the left at 0, or at 1 from the right. If the index is over the number of split parts, the method returns an empty string. StringUtils.substring("test1::test2:test3::test4", "::", 0) => "test1" StringUtils.substring("test1::test2:... | public static String substring(final String str, final String separator, final int index) {
if (index > -1) {
return substring(str, separator, index, index + 1);
} else {
return substring(str, separator, index, index - 1);
}
} | [
"public void substring(){\n\t\tString s = \"animals\";\n\t\tSystem.out.println(s.substring(3)); // mals\n\t\tSystem.out.println(s.substring(s.indexOf('m'))); // mals\n\t\t//To take characters starting with index 3 until, but not\n\t\t// including, the character at index 4\n\t\tSystem.out.println(s.substring(3, 4));... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
f0 > "BEGIN" f1 > StmtList() f2 > "RETURN" f3 > Exp() f4 > "END" | public Arginfo visit(StmtExp n, Arginfo argu) {
Arginfo _ret=null;
// int a=prectr++;
// System.out.println(" BEGIN ");
n.f0.accept(this, argu);
n.f1.accept(this, argu);
n.f2.accept(this, argu);
argu.where=2;
Arginfo temp=n.f3.accept(this, argu);
argu.where=-1;... | [
"private StatementList f_body(){\n //prt(\"F_BODY\",1047);\n StatementList func_list = new StatementList();\n statement_list(func_list);\n endfun();\n return func_list;\n\n }",
"public R visit(StmtExp n) {\n R _ret=null;\n n.f0.accept(this);\n n.f1.accept(this);\n n.f2.acce... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
if the key is zero create a random key. | @PostConstruct
public void init() throws SocketException {
Key localKey = new Key(localKeyValue);
if (localKey.equals(new Key("0"))) {
byte[] info = new byte[20];
new Random().nextBytes(info);
localKey = new Key(info);
}
if (localKeyValue.equals(b... | [
"static HashKey fromRandom(){\n return fromString(String.valueOf(random.nextInt()));\n }",
"Key create(Key key);",
"private double GenerateKey() {\n return BenchmarkMath.random();\n }",
"protected String createKey() {\n \t\tkey = UUID.randomUUID().toString();\n \t\treturn key;\n \t}",
"public ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Test of setCompareList method, of class CompareResultsList. | @Test
public void testSetCompareList() {
System.out.println("setCompareList");
LinkedList<ComparisonResult> list = new LinkedList<>();
CompareResultsList instance = new CompareResultsList();
instance.setCompareList(list);
} | [
"@Test\r\n public void testSetResultsList() {\r\n System.out.println(\"setResultsList\");\r\n List<Results> resultsList = null;\r\n Analysis instance = new Analysis();\r\n instance.setResultsList(resultsList);\r\n // TODO review the generated test code and remove the default ca... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__DomainQuery__Group_2__2__Impl" $ANTLR start "rule__NestedQuery__Group__0" InternalQLParser.g:3705:1: rule__NestedQuery__Group__0 : rule__NestedQuery__Group__0__Impl rule__NestedQuery__Group__1 ; | public final void rule__NestedQuery__Group__0() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalQLParser.g:3709:1: ( rule__NestedQuery__Group__0__Impl rule__NestedQuery__Group__1 )
// InternalQLParser.g:3710:2: rule__NestedQuery__Group... | [
"public final void rule__DataQuery__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // InternalBehavior.g:6144:1: ( rule__DataQuery__Group__0__Impl rule__DataQuery__Group__1 )\n // InternalBehavior.g:6145:2: rule__DataQuer... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
$ANTLR end "rule__XConstructorCall__Group__2" $ANTLR start "rule__XConstructorCall__Group__2__Impl" InternalCreate.g:17119:1: rule__XConstructorCall__Group__2__Impl : ( ( rule__XConstructorCall__ConstructorAssignment_2 ) ) ; | public final void rule__XConstructorCall__Group__2__Impl() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalCreate.g:17123:1: ( ( ( rule__XConstructorCall__ConstructorAssignment_2 ) ) )
// InternalCreate.g:17124:1: ( ( rule__XConstructo... | [
"public final void rule__XConstructorCall__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalScripting.g:11203:1: ( rule__XConstructorCall__Group__2__Impl rule__XConstructorCall__Group__3 )\n // InternalScripting.g:... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns an appropriate editor for the cell specified by row and column. If the TableColumn for this column has a nonnull editor, returns that. If not, finds the class of the data in this column (using getColumnClass) and returns the default editor for this type of data. Note: Throughout the table package, the internal ... | public TableCellEditor getCellEditor(final int row, final int column) {
if (column < frozenColumns) {
return lockedTable.getCellEditor(row, column);
} else {
return scrollTable.getCellEditor(row, column - frozenColumns);
}
} | [
"KTableCellEditor getCellEditor(int col, int row);",
"public TableCellEditor\n getEditor\n (\n int col \n );",
"public KTableCellEditor getCellEditor(int col, int row) {\r\n return null;\r\n }",
"public static DefaultCellEditor getInCellEditor(\n \t\tJTable table, ColumnDisplayDefinition colDef) {\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Utility function to read bytes from a file | private static byte[] readFromFile(final String aFileName) {
byte[] fileContents = null;
try {
final Path fullPath= Paths.get(aFileName);
fileContents = Files.readAllBytes(fullPath);
} catch (IOException ex) {
ex.printStackTrace();
}
return fileContents;
} | [
"public static byte[] readBytesFile(String filename){\n\t\t\n\tbyte[] result = null;\n\ttry(FileInputStream fis = new FileInputStream(filename)\n\t){\n\t\tint size = fis.available();\n\t\t//System.out.println(size);\n\n\t\tbyte[] bytes = new byte[size];\n\t\tfis.read(bytes);\n\t\tresult = bytes;\n\n\t\t//System.out... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
DO NOT USE FOR CLIENT/SERVER COMMS, AS LIST ORDERING MAY BE DIFFERENT! | public int getIDForRecipe(CastingRecipe cr) {
return recipeIDs.inverse().get(cr);
} | [
"public void listInOrder() {\n \n \t}",
"Zr get_order();",
"@Test\n\tpublic void checkListOrderWithModifications() {\n\t\tfor(int i=posts.size()-1; i>=0; i--) {\n\t\t\tauthor.posts.add(posts.get(i));\n\t\t}\n\t\tgetUserService().update(author);\n\n\t\t// order is now: 5 4 3 2 1 0\n\t\tauthor.posts.remove(3);\n\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Inflate the menu; this adds items to the action bar if it is present. | @Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.description, menu);
return true;
} | [
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflator = getMenuInflater();\n\t\tinflator.inflate(R.menu.activity_action_bar, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\r\n public boolean onCreateOptionsMenu( android.view.Menu menu)\r\n {\n ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the level of the skill. | public int getLevel() {
return level;
} | [
"public Level getLevel() {\r\n\t\treturn l;\r\n\t}",
"public int getSkillLevel(int skillId)\n\t{\n\t\tif(_skills == null)\n\t\t\treturn -1;\n\n\t\tSkill skill = _skills.get(skillId);\n\n\t\tif(skill == null)\n\t\t\treturn -1;\n\n\t\treturn skill.getLevel();\n\t}",
"public Difficulty getLevel() {\n\t\treturn lev... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Get the navigation parameter container type. | private static ParameterContainerType getNavigationParameterContainerType(Field field) {
if (Optional.class.isAssignableFrom(field.getType())) {
return ParameterContainerType.OPTIONAL;
}
if (List.class.isAssignableFrom(field.getType())) {
return ParameterContainerType.LIST;
}
if (Set.class.isAssignableF... | [
"public String getContainerType() {\n return this.containerType;\n }",
"public String getContainerType() {\n return this.ContainerType;\n }",
"String getContainerTypeName();",
"public final ParamType getType() {\r\n\t\treturn Type;\r\n\t}",
"EParameterType getType();",
"public Class<?>... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
O(N) time and O(N) space | public boolean find132pattern(int[] nums) {
if (nums == null || nums.length < 3) return false;
int[] minArray = new int[nums.length];
minArray[0] = nums[0];
for (int i=1; i<nums.length; i++) {
minArray[i] = Math.min(nums[i], minArray[i-1]);
}
Stack<In... | [
"for (int i = 1; i <= n; i++) {\n for(int j = 1; j <= n; j++) {\n // constant time code here\n }\n }",
"O invert(O operation);",
"public static int BigO(int[] list) {\n return list[0]; // We can see that the function executes only one operation\n // The ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Created by Administrator on 2017/5/1. | public interface OnCompleteListener<T> extends OkUtils.OnCompleteListener<T> {
} | [
"@Override\n public void extornar() {\n \n }",
"@Override\n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"private static void EX5() {\n\t\t\r\n\t}",
"@Override\n public int utilite() {\n ret... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public void mouseClicked(MouseEvent arg0) {
updateDetailPanel(PicFile.get(j),newName);
} | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Creates ServiceProfile object from new XML message. | public ServiceProfile createServiceProfileFromMessage(File file)
throws IOException, ServiceProfileException {
ServiceProfileFactory._logger.trace("load xml file: " + file.getName());
FileReader reader = new FileReader(file);
ServiceProfile result = null;
try {
result = this._l... | [
"public static CreateServiceOperationResponseE parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception{\r\n CreateServiceOperationResponseE object =\r\n new CreateServiceOperationResponseE();\r\n\r\n int event;\r\n java.lang.String nillableValue = nu... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Compression of Matrix with SVD algorithm | public static VectorMatrix compress( VectorMatrix rawPicMatrix, int percent){
VectorMatrix A = rawPicMatrix;
int rowCount = rawPicMatrix.getRows();
int colCount = rawPicMatrix.getCols();
VectorMatrix symmetricRawPicMatrix;
if(rowCount... | [
"private void transformToLowerBiDiagonal()\r\n/* 220: */ {\r\n/* 221:323 */ int m = this.householderVectors.length;\r\n/* 222:324 */ int n = this.householderVectors[0].length;\r\n/* 223:325 */ for (int k = 0; k < m; k++)\r\n/* 224: */ {\r\n/* 225:328 */ double[] hK = this.householderVe... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
//System.out.println(""); //System.out.println(" Times through. " + "Using: " + array.length); | public static int nLogN2(int[] array){
int length = array.length;
if(length == 1){
return array[0];
}
int middle = length/2;
int[] leftAry = new int[middle];
int[] rightAry = new int[length - middle];
int x;
// //System.out.println(... | [
"public void printArray(){\n for (int i = 0; i < size; i++) {\r\n System.out.println(array[i]);\r\n }\r\n System.out.println();\r\n }",
"static void printArray(int arr[], int arr_size) \r\n\t{ \r\n\tint i; \r\n\tfor (i = 0; i < arr_size; i++) \r\n\tSystem.out.print(arr[i... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
get x coordinate of the block | public int getX()
{
return x;
} | [
"public int getBlockStartX() {\r\n return blockStartX;\r\n }",
"public int getX() {\r\n return coord.x;\r\n }",
"public int getXPos() { return x; }",
"public int getX() {\r\n\t\treturn coord.x;\r\n\t}",
"long getXPosition();",
"public int get_x_coord(){\n\t\treturn this.x_coord;\n\t}"... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
TODO Autogenerated method stub | @Override
public void onUnfavorite(User arg0, User arg1, Status arg2) {
} | [
"@Override\n }",
"@Override\n\t\t\t\tpublic void pintate() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void extornar() {\n \n }",
"@Override\r\n\tpublic void hablar() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void kayit1() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void wydaj() {\n... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Functional interface for a handler of REST service events. | @FunctionalInterface
public interface RestListenerBase extends RestMethodListenerBase {
public static final int END_OF_RESPONSE = ServerCoordinator.END_RESPONSE_MASK;
public static final int CLOSE_CONNECTION = ServerCoordinator.CLOSE_CONNECTION_MASK;
boolean restRequest(HTTPRequestReader request);
... | [
"@Override\n public EventResultT handleRequest(EventT event, Context context) {\n return handleEvent(event, context);\n }",
"interface EventHandler {\n public void handleEvent(String eventJson) throws JSONException;\n }",
"public interface UniversalListener {\n public void handlerEvent... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Type of the backend cluster. | public String getClusterType() {
return this.clusterType;
} | [
"public String getClickHouseClusterType() {\n return this.ClickHouseClusterType;\n }",
"public org.apache.geronimo.xbeans.geronimo.j2ee.GerAbstractClusteringType getClustering()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.geronimo.xbeans.ger... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Method that generates onItemClick ListActivity method | private MethodMetadataBuilder getOnItemClickMethod(String declaredByMetadataId, JavaType entity) {
// Define method parameter types
List<AnnotatedJavaType> parameterTypes = new ArrayList<AnnotatedJavaType>();
parameterTypes.add(AnnotatedJavaType.convertFromJavaType(JavaType.wrapperWilcard(new JavaType(
... | [
"@Override\n\tpublic void onListItemClick(int pos, long id) {\n\t}",
"@Override\r\n public void onListItemClick(ListView l, View view, int position, long id) {\n }",
"void onItemClicked(int intent_action, String data);",
"void onItemClick(View caller, int position);",
"@Override\n public vo... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Returns the result of interpreting the object as an instance of 'Tuberculosis Follow Up Progress Note'. This implementation returns null; returning a nonnull result will terminate the switch. | public T caseTuberculosisFollowUpProgressNote(TuberculosisFollowUpProgressNote object) {
return null;
} | [
"public T caseFollow(Follow object) {\n\t\treturn null;\n\t}",
"public String calcularFollow() {\n\t\treturn null;\r\n\t}",
"public Object getIsfollow() {\n\t\treturn null;\r\n\t}",
"public T caseTestNote(TestNote object) {\n\t\treturn null;\n\t}",
"public String getNote() {\n return primaryProgressD... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
This method was generated by Abator for iBATIS. This method returns the value of the database column TIPS_BACINF.OPTSTATUS | public String getOptstatus() {
return optstatus;
} | [
"sifnode.oracle.v1.Types.Status getStatus();",
"public BigDecimal getSTATUS_CODE() {\r\n return STATUS_CODE;\r\n }",
"@AutoEscape\n\tpublic String getApproval_Status();",
"sifnode.oracle.v1.Types.StatusOrBuilder getStatusOrBuilder();",
"public String getStatusForViewBooking() {\n\t\tString status ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
1001 == Leopard Statue 1003 == Beatty Hall 1005 == Tansey Gym 1007 == 555 Huntington 1009 == Baker Hall 1011 == Watson Auditorium Location IDs in Database | private void readFromNFC(Ndef ndef) {
try {
ndef.connect();
NdefMessage ndefMessage = ndef.getNdefMessage();
//String "message" contains the contents of the NFC tag in String form
String message = new String(ndefMessage.getRecords()[0].getPayload());
... | [
"public int getLBR_Guarantor_Location_ID();",
"private List<String> getAllLocationIds(){\n UserLocations locations = UserLocations.getInstance();\n List<Location> array = locations.getLocations();\n List<String> ids = new ArrayList<>();\n for(Location loc : array){\n String ... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Catch : You can use the same highest fib number to make up to k | public int findMinFibonacciNumbers(int k) {
if(k ==0) return 0;
if(k ==1 || k ==2) return 1;
int count = 0;
// Step 1: Find all the fibonacci numbers less than k
List<Integer> fib = findAllFib(k);
// Keep picking the elements (as many times as you can) from the last (which is highests)
int j = fib.s... | [
"long fib(int limit);",
"static MyBigIntegers fibLoopBig(MyBigIntegers X){\n /// some constants\n MyBigIntegers valOne = new MyBigIntegers(\"1\");\n MyBigIntegers valTwo = new MyBigIntegers(\"2\");\n\n\n MyBigIntegers A = new MyBigIntegers(\"0\");\n MyBigIntegers B = new MyBigIn... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |
Answer true if this Boolean class expression has the given class as an operand. | public boolean hasOperand( Resource cls ) {
return getOperands().contains( cls );
} | [
"public boolean a(Class<?> cls) {\n return b((Class) cls) != null;\n }",
"boolean applicableTo(Class<?> clazz);",
"ClassMember isClass();",
"public boolean matches(Class<?> clazz)\n/* */ {\n/* 39 */ return true;\n/* */ }",
"@Override\n\t\t\tpublic Class<Boolean> getClassType() {\n\t\... | {
"objective": {
"paired": [],
"self": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} |