query stringlengths 7 33.1k | document stringlengths 7 335k | metadata dict | negatives listlengths 3 101 | negative_scores listlengths 3 101 | document_score stringlengths 3 10 | document_rank stringclasses 102
values |
|---|---|---|---|---|---|---|
Method for excercise 2.19 | public static double SideCalculator(float x1, float y1, float x2, float y2){
double coord1 = Math.pow((x1 - x2), 2);
double coord2 = Math.pow((y1 - y2), 2);
double side = Math.pow((coord1 + coord2), 0.5);
return side;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void func_104112_b() {\n \n }",
"protected boolean func_70814_o() { return true; }",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"private void kk12() {\n\n\t}",
"private void m50366E() {\n }",
"public void method_4270() {}",
"public final void mo51373a() {\n ... | [
"0.64986694",
"0.6416085",
"0.61663496",
"0.61131614",
"0.60934585",
"0.6080855",
"0.60689056",
"0.60104376",
"0.59825283",
"0.5915454",
"0.58745146",
"0.5867481",
"0.58165205",
"0.5784089",
"0.5779402",
"0.5751849",
"0.5740923",
"0.5728638",
"0.57268006",
"0.5721062",
"0.570... | 0.0 | -1 |
declare the dialog as a member field of your activity | public void onClick(DialogInterface dialog, int id) {
ProgressDialog mProgressDialog;
// instantiate it within the onCreate method
mProgressDialog = new ProgressDialog(MonthActivity.this);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n return mDialog;\n }",
"private void initDialog() {\n }",
"public void setDialog(Dialog dialog) {\r\n\t mDialog = dialog;\r\n\t }",
"@NonNull\n @Override\n public Dialog onCreateDialog(B... | [
"0.6985862",
"0.69826293",
"0.6799238",
"0.6737859",
"0.67340946",
"0.66911507",
"0.6671541",
"0.6671541",
"0.66516435",
"0.6651334",
"0.6632092",
"0.6627036",
"0.66033417",
"0.65879893",
"0.6574452",
"0.6551633",
"0.6540474",
"0.65290725",
"0.65211964",
"0.6473885",
"0.64623... | 0.0 | -1 |
Listener for updating Button Listener Interface for AddAccountFragment. | public interface UpdateAddAccountFragmentButtonListener {
/**
* Update Listener.
* @param mAddAccountFragmentButtonListener Button Listener Interface for AddAccountFragment
*/
void updateAddAccountFragmentButtonListener(AddAccountFragmentButtonListener mAddAccountFragmentButtonListener);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void onClick(View v) {\n mListener.onAddButtonClicked();\n }",
"public interface AddAccountFragmentButtonListener {\r\n\t/**\r\n\t * Submit Account info to presenter.\r\n\t * @param accountName account name (unique)\r\n\t * @param accountDescription account description\r\n\t * @pa... | [
"0.69920963",
"0.69800454",
"0.68346447",
"0.6626572",
"0.65656084",
"0.6311828",
"0.6199602",
"0.61615103",
"0.6134428",
"0.61341935",
"0.61174536",
"0.6107998",
"0.61065733",
"0.6086591",
"0.6076906",
"0.60589623",
"0.6055178",
"0.6010154",
"0.59850585",
"0.5974977",
"0.592... | 0.71409017 | 0 |
TODO Autogenerated method stub | public static void main(String[] args) {
ApplicationContext context =new ClassPathXmlApplicationContext("spring.xml");
Service ser= context.getBean(Service.class);
System.out.println(ser.getAccountID());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
Note: For Unicode supplementary characters use codePointAt() instead of charAt() and codePoints() instead of chars() | public static boolean containsOnlyDigitsV1(String str) {
if (str == null || str.isBlank()) {
// or throw IllegalArgumentException
return false;
}
for (int i = 0; i < str.length(); i++) {
if (!Character.isDigit(str.charAt(i))) {
return... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract public int get(int codePoint);",
"public interface UnicodeConstants {\n\n /** Refers to unnormalized Unicode: */\n static final byte NORM_UNNORMALIZED = 0;\n /** Refers to Normalization Form C: */\n static final byte NORM_NFC = 1;\n /** Refers to Normalization Form KC: */\n static fina... | [
"0.7086908",
"0.67071277",
"0.67021674",
"0.6545879",
"0.65364033",
"0.6386771",
"0.63744104",
"0.6357152",
"0.63305753",
"0.63270974",
"0.6317555",
"0.63123125",
"0.63009447",
"0.62898594",
"0.62728053",
"0.6245287",
"0.62446845",
"0.6242445",
"0.6235427",
"0.6233613",
"0.61... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public boolean canEdit(IAccounterServerCore clientObject,
boolean goingToBeEdit) throws AccounterException {
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void selfValidate() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.66708666",
"0.65675074",
"0.65229905",
"0.6481001",
"0.64770633",
"0.64584893",
"0.6413091",
"0.63764185",
"0.6275735",
"0.62541914",
"0.6236919",
"0.6223816",
"0.62017626",
"0.61944294",
"0.61944294",
"0.61920846",
"0.61867654",
"0.6173323",
"0.61328775",
"0.61276996",
"0... | 0.0 | -1 |
Called to indicate the passed conversation is being resumed. | void conversationResuming(Conversation conversation, HttpServletRequest request); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void resumed() {\n System.out.println(\"Resumed\");\n }",
"public void resume() {}",
"public void resume() {\n }",
"@Override\n public void Resume() {\n }",
"@Override\r\n\tpublic void resume() {\n\t\tthis.suspended = false;\r\n\t}",
"public void resume() {\n m_suspended ... | [
"0.74935263",
"0.7438308",
"0.7387694",
"0.73621035",
"0.7359716",
"0.73595446",
"0.7356897",
"0.7338787",
"0.72966194",
"0.725329",
"0.7250399",
"0.7250399",
"0.7234174",
"0.7234174",
"0.7234174",
"0.7200223",
"0.7174321",
"0.7174321",
"0.7174321",
"0.71683264",
"0.7115231",... | 0.0 | -1 |
Called to indicate the passed Conversation is being paused. | void conversationPausing(Conversation conversation); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void pause()\n {\n paused = true;\n }",
"public void pause() {\n paused = true;\n }",
"public void pause() {\n paused = true;\n }",
"public void checkPaused()\n {\n paused = true;\n }",
"public void paused() {\n System.out.println(\"Paused\");\n }... | [
"0.7437839",
"0.7402742",
"0.7402742",
"0.73265535",
"0.7282793",
"0.7056214",
"0.70431274",
"0.702303",
"0.69850063",
"0.6971865",
"0.6969788",
"0.6962985",
"0.69189507",
"0.6908645",
"0.68908876",
"0.685476",
"0.68338925",
"0.6733662",
"0.67289317",
"0.672556",
"0.67131686"... | 0.71539474 | 5 |
Called to indicate the conversation is ending. | void conversationEnding(Conversation conversation); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void end() {\n isFinished();\n }",
"public void endMessage()\n\t{\n\t}",
"public void end() {\n\t\tsigue = false;\n\t}",
"private void EndTalk() {\n this.mDeleteF = true;\n this.mReadingF = false;\n }",
"public void endGameMessage() {\n gameArena.addText(endGameM... | [
"0.7377354",
"0.7279373",
"0.7201164",
"0.71660656",
"0.71360797",
"0.69595754",
"0.69185334",
"0.6910507",
"0.6910507",
"0.6910507",
"0.6910507",
"0.69069123",
"0.68562007",
"0.68562007",
"0.68562007",
"0.68562007",
"0.68562007",
"0.68562007",
"0.68562007",
"0.68562007",
"0.... | 0.80379754 | 0 |
build decorator based on the request | @Override
public String[] selectDecoratorPaths(Content content, WebAppContext context) throws IOException {
HttpServletRequest request = context.getRequest();
String decorator = null;
//首先从header头信息取值
decorator = request.getHeader("Sitemesh-Decorator");
if (StringUtils.isBlan... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public JsonFactory setInputDecorator(InputDecorator d)\n/* */ {\n/* 611 */ this._inputDecorator = d;\n/* 612 */ return this;\n/* */ }",
"ServletRequestInjector getRequestInjector();",
"Decorator getDecorator(String id);",
"public abstract String getDecoratorInfo();",
"public interfa... | [
"0.5851728",
"0.5735734",
"0.57211334",
"0.5411152",
"0.53895557",
"0.52543956",
"0.5253426",
"0.52517205",
"0.5213044",
"0.51764464",
"0.5142672",
"0.5123266",
"0.50836736",
"0.507484",
"0.5036349",
"0.50302374",
"0.5024659",
"0.5005454",
"0.49901795",
"0.49654374",
"0.49578... | 0.0 | -1 |
Creates a parameter reader that will read the provided data streams. If more than one data stream is passed to the reader multiple occurrences of the same parameter will cause the parameter value to be overwritten with the new value. | public XmlParameterReader(InputStream... dataStreams) throws IOException
{
this(false, null, dataStreams);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public XmlParameterReader(boolean debug, InputStream... dataStreams) throws IOException\n {\n this(debug, null, dataStreams);\n }",
"public XmlParameterReader(String rootNamespace, InputStream... dataStreams) throws IOException\n {\n this(false, rootNamespace, dataStreams);\n }",
"public XmlP... | [
"0.69002736",
"0.66034514",
"0.64739305",
"0.57335395",
"0.56519747",
"0.5590759",
"0.5471655",
"0.5420913",
"0.5405175",
"0.5335484",
"0.52660006",
"0.52658415",
"0.52560115",
"0.5245278",
"0.52354825",
"0.51924306",
"0.5187864",
"0.5181226",
"0.50835717",
"0.5079654",
"0.50... | 0.75504506 | 0 |
Creates a parameter reader that will read the provided data streams. If more than one data stream is passed to the reader multiple occurrences of the same parameter will cause the parameter value to be overwritten with the new value. | public XmlParameterReader(String rootNamespace, InputStream... dataStreams) throws IOException
{
this(false, rootNamespace, dataStreams);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public XmlParameterReader(InputStream... dataStreams) throws IOException\n {\n this(false, null, dataStreams);\n }",
"public XmlParameterReader(boolean debug, InputStream... dataStreams) throws IOException\n {\n this(debug, null, dataStreams);\n }",
"public XmlParameterReader(boolean debug, S... | [
"0.75495595",
"0.68988425",
"0.6472897",
"0.5735369",
"0.5651514",
"0.5592637",
"0.54718685",
"0.54197615",
"0.5405504",
"0.53343457",
"0.52658534",
"0.5265314",
"0.525635",
"0.5244415",
"0.52369106",
"0.5193158",
"0.51875824",
"0.5181577",
"0.5082846",
"0.50792986",
"0.50679... | 0.66025466 | 2 |
Creates a parameter reader that will read the provided data streams. If more than one data stream is passed to the reader multiple occurrences of the same parameter will cause the parameter value to be overwritten with the new value. | public XmlParameterReader(boolean debug, InputStream... dataStreams) throws IOException
{
this(debug, null, dataStreams);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public XmlParameterReader(InputStream... dataStreams) throws IOException\n {\n this(false, null, dataStreams);\n }",
"public XmlParameterReader(String rootNamespace, InputStream... dataStreams) throws IOException\n {\n this(false, rootNamespace, dataStreams);\n }",
"public XmlParameterReader(... | [
"0.7549681",
"0.66024965",
"0.6473497",
"0.57354647",
"0.56514084",
"0.55924016",
"0.547211",
"0.54195327",
"0.5406395",
"0.533431",
"0.52657104",
"0.5264341",
"0.52564144",
"0.5243621",
"0.52356184",
"0.51939887",
"0.51870495",
"0.51824635",
"0.5082966",
"0.50804126",
"0.506... | 0.68997926 | 1 |
Creates a parameter reader that will read the provided data streams. If more than one data stream is passed to the reader multiple occurrences of the same parameter will cause the parameter value to be overwritten with the new value. | public XmlParameterReader(boolean debug, String rootNamespace, InputStream... dataStreams) throws IOException
{
this.debug = debug;
this.rootNamespace = rootNamespace;
for (InputStream dataStream : dataStreams)
{
readStream(dataStream, false);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public XmlParameterReader(InputStream... dataStreams) throws IOException\n {\n this(false, null, dataStreams);\n }",
"public XmlParameterReader(boolean debug, InputStream... dataStreams) throws IOException\n {\n this(debug, null, dataStreams);\n }",
"public XmlParameterReader(String rootNames... | [
"0.7548861",
"0.6898967",
"0.66022027",
"0.5733224",
"0.5652384",
"0.55913836",
"0.5473119",
"0.5422189",
"0.54050505",
"0.53365636",
"0.5266441",
"0.52651817",
"0.52565616",
"0.5245439",
"0.5237122",
"0.5194103",
"0.5187659",
"0.5182975",
"0.5083486",
"0.50799924",
"0.506985... | 0.6472634 | 3 |
Method to set webdriver | private void setWebdriver() throws Exception {
System.setProperty("webdriver.chrome.driver",
currentDir + fileSeparator + "lib" + fileSeparator + "chromedriver.exe");
capability = DesiredCapabilities.chrome();
ChromeOptions options = new ChromeOptions();
options.addArguments("--disable-extensions");
optio... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void setDriver(WebDriver webDriver) {\n driver = webDriver;\n }",
"@SuppressWarnings(\"static-access\")\n\tpublic void setWebDriver(WebDriver driver) {\n\t\tthis.driver = driver;\n\t}",
"private void setWebDriver() {\n if (Boolean.valueOf(System.getProperty(\"LOCAL_DRIVER\"))) {\n ... | [
"0.828379",
"0.8030983",
"0.7988254",
"0.7979152",
"0.7963479",
"0.76757646",
"0.7641143",
"0.75249076",
"0.7329819",
"0.72831017",
"0.723051",
"0.7178432",
"0.70324755",
"0.7012968",
"0.6957842",
"0.6956943",
"0.6940991",
"0.6897709",
"0.689191",
"0.68197167",
"0.6798344",
... | 0.80401254 | 1 |
Method to load properties | private Properties getProptertiesUrl() {
prop = new Properties();
InputStream inputUrl = null;
try {
inputUrl = new FileInputStream(
currentDir + fileSeparator + "properties" + fileSeparator + "prop.properties");
} catch (FileNotFoundException e) {
e.printStackTrace();
}
// load a properties file... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@SuppressWarnings(\"unchecked\")\n private void loadProperties()\n {\n File f = getPropertiesFile();\n if (!f.exists())\n return;\n \n m_props = (Map<String, Object>) PSConfigUtils.loadObjectFromFile(f);\n }",
"private void loadProperties() {\n try (InputStream in = getCl... | [
"0.8010627",
"0.80047184",
"0.79978627",
"0.7671552",
"0.7621516",
"0.75811726",
"0.7398235",
"0.73953277",
"0.7371357",
"0.7366555",
"0.7332471",
"0.7276904",
"0.7249971",
"0.72431546",
"0.71676964",
"0.71566665",
"0.7141477",
"0.70978475",
"0.70960814",
"0.7069479",
"0.7029... | 0.0 | -1 |
Method to make webdriver sleep | public void sleep(long secs) {
try {
Thread.sleep(secs * 1000);
} catch (InterruptedException e) {
e.printStackTrace();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void sleep()\n {\n try {\n Thread.sleep(Driver.sleepTimeMs);\n }\n catch (InterruptedException ex)\n {\n\n }\n }",
"private void sleep() {\n try {\n Thread.sleep(500);\n } catch (InterruptedException e) {\n e.printSta... | [
"0.82458204",
"0.75944436",
"0.74400336",
"0.7378781",
"0.73717654",
"0.73717654",
"0.73524743",
"0.7225843",
"0.7222213",
"0.72149324",
"0.71164644",
"0.70706356",
"0.7041539",
"0.70098466",
"0.69230175",
"0.691147",
"0.6875855",
"0.68274355",
"0.68014026",
"0.6765442",
"0.6... | 0.0 | -1 |
Method to switch to show tab | public void switchTotab(String showName) {
ArrayList<String> tabs = new ArrayList<String>(_eventFiringDriver.getWindowHandles());
for (String tab : tabs) {
_eventFiringDriver.switchTo().window(tab);
if (_eventFiringDriver.getTitle().contains(showName))
break;
}
sleep(5);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void showTab(int tab) {\n switch (tab) {\n case OUTING_TAB_EXPENSES:\n switchToExpensesTab();\n break;\n case OUTING_TAB_BUDDIES:\n switchToBuddiesTab();\n break;\n }\n\n this.activeTab = tab;\n }",
... | [
"0.77093196",
"0.75951296",
"0.68816686",
"0.66892046",
"0.6603314",
"0.6583273",
"0.65817016",
"0.6565705",
"0.6559263",
"0.6516579",
"0.645496",
"0.641808",
"0.6408184",
"0.6377161",
"0.63271755",
"0.6320795",
"0.62943166",
"0.62921274",
"0.6253021",
"0.62317705",
"0.619778... | 0.6574522 | 7 |
Method to switch to iframe | public void switchToIframe(By locator) {
waitForElementToAppear(locator, 30);
_eventFiringDriver.switchTo().frame(_eventFiringDriver.findElement(locator));
System.out.println("switched to iframe");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void switchToIFrame(WebElement iframe) {\n log.traceEntry();\n try {\n if (webWaitsutil.isElementPresent(iframe)) {\n driver.switchTo().frame(iframe);\n }\n } catch (Exception e) {\n log.error(\"Something went wrong [{}]\", e.getMessage())... | [
"0.7486915",
"0.7355926",
"0.6975613",
"0.6915914",
"0.67663544",
"0.67363876",
"0.6736066",
"0.67319167",
"0.65270174",
"0.65221214",
"0.6517739",
"0.64545405",
"0.63440335",
"0.62327653",
"0.60427535",
"0.60406685",
"0.5995745",
"0.59740657",
"0.5954571",
"0.5832723",
"0.57... | 0.7008891 | 2 |
Method to switch control to Parent Frame | public void switchToParentIFrame() {
_eventFiringDriver.switchTo().parentFrame();
System.out.println("control is switched to Parent Frame");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void switchToParentFrame(WebDriver driver) {\n\t\tdriver.switchTo().parentFrame();\n\t}",
"public static void setParent(java.awt.Frame newParent) {\n parent = newParent;\n}",
"public static void changeFrame() {\r\n\t\t\r\n\t}",
"private void switchToFrame() {\n\t\tdriver.switchTo().frame(\"m... | [
"0.7277192",
"0.72527623",
"0.7138659",
"0.6896928",
"0.66516244",
"0.6609655",
"0.65778035",
"0.6539129",
"0.65368545",
"0.6524339",
"0.65216196",
"0.64804995",
"0.63758844",
"0.636952",
"0.6343884",
"0.6338537",
"0.6294325",
"0.62409437",
"0.6191998",
"0.6176861",
"0.616677... | 0.8360676 | 0 |
Method to wait for element to appear | public void waitForElementToAppear(By locator,int timeToOut) {
WebDriverWait wait = new WebDriverWait(_eventFiringDriver, timeToOut);
wait.until(ExpectedConditions.visibilityOfElementLocated(locator));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void waitForElement(WebElement element) {\n WebDriverWait wait = new WebDriverWait(driver, 30);\n wait.until(ExpectedConditions.visibilityOf(element));\n }",
"public void waitForVisibilityOfElement(WebElement element) {\n\t\twait = new WebDriverWait(driver, 10);\n\t\twait.until(ExpectedCo... | [
"0.79333913",
"0.7829026",
"0.78287756",
"0.7815335",
"0.76938736",
"0.76792586",
"0.76767135",
"0.7636152",
"0.76276106",
"0.7606195",
"0.75775",
"0.7441262",
"0.74290794",
"0.73864543",
"0.7364744",
"0.7293623",
"0.72866344",
"0.725896",
"0.72316545",
"0.7209441",
"0.718490... | 0.6556055 | 73 |
Die eigentliche Spielelogik. Das Spielfeld wird hier nicht als zyklisch geschlossen betrachtet. | public interface GameOfLifeLogic {
/**
* Testet, ob die Zelle an der Position (x,y) in der aktuellen Generation lebt.
* @param x Kooridnate
* @param y Koordinate
* @return true genau dann wenn die Zelle an der Position (x,y) in der aktuellen
* Generation lebt. Ansonsten false.
*/
boolean isCell... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public AbstraktesSpielfeld getSpielfeld() {\n // Hier ein Spielfeld-Objekt erzeugen und zurückliefern.\n return new Spielfeld();\n }",
"public Spielfeld() {\n\t\tmulden = new int[14];\n\t\tsetSteine();\n\t}",
"public QwirkleSpiel()\n {\n beutel=new Beutel(3); //erzeuge Beutel mit 3 Steinfamili... | [
"0.66663414",
"0.65418535",
"0.6441946",
"0.6429189",
"0.63685924",
"0.6295595",
"0.6289002",
"0.624168",
"0.62308353",
"0.616385",
"0.6111535",
"0.6007392",
"0.59046763",
"0.588575",
"0.5856518",
"0.57251775",
"0.5695563",
"0.5663779",
"0.5662357",
"0.56214166",
"0.56212515"... | 0.0 | -1 |
Testet, ob die Zelle an der Position (x,y) in der aktuellen Generation lebt. | boolean isCellAlive(int x, int y); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void generateRandomPosition() {\n\t\tx.set((int)(Math.floor(Math.random()*23+1)));\n\t\ty.set((int)(Math.floor(Math.random()*23+1)));\n\n\t}",
"public PositionInTheGameBoard()\r\n\t{\r\n\t\tthis.X = new Random().nextInt(PositionInTheGameBoard.max_X);\r\n\t\tthis.Y = new Random().nextInt(PositionInTheGameB... | [
"0.70670575",
"0.69457114",
"0.6870028",
"0.6817717",
"0.6791918",
"0.6788906",
"0.6788175",
"0.6762181",
"0.6607984",
"0.6603622",
"0.659369",
"0.6568655",
"0.65456384",
"0.6538011",
"0.6480627",
"0.6437156",
"0.6433372",
"0.6423876",
"0.64072555",
"0.63860834",
"0.63724387"... | 0.0 | -1 |
copy the resources files to a temp folder | @Before
public void setUp() throws Exception {
testRootDir = new File(System.getProperty("java.io.tmpdir") + "/Zeppelin_Test_" + System.currentTimeMillis());
testRootDir.mkdirs();
LOGGER.info("Create tmp directory: {} as root folder of ZEPPELIN_INTERPRETER_DIR & ZEPPELIN_CONF_DIR", testRootDir.getAbsolute... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static void copyResources(\n final List<String> resources, final String dir, final BlockingStorage bsto\n ) throws IOException {\n for (final String res : resources) {\n final Path tmp = Files.createTempFile(\n Path.of(res).getFileName().toString(), \".tmp\"\n ... | [
"0.7063075",
"0.66176504",
"0.646293",
"0.62660253",
"0.62050384",
"0.6117399",
"0.5975509",
"0.59645265",
"0.59293735",
"0.590652",
"0.5906508",
"0.58921343",
"0.58873385",
"0.5876905",
"0.5844196",
"0.5824878",
"0.5759147",
"0.57511055",
"0.5686994",
"0.5651869",
"0.5605041... | 0.0 | -1 |
/ You need to pass current activity in order to let Razorpay create CheckoutActivity | public void startPayment() {
double ruppes = Double.parseDouble(price);
final Activity activity = this;
final Checkout co = new Checkout();
try {
JSONObject options = new JSONObject();
options.put("name", getResources().getString(R.string.application_name));
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t Intent intent=new Intent();\n\t\t\t intent.putExtra(\"info\", info);\n\t\t\t intent.putExtra(\"price\", price);\n\t\t\t intent.setClass(WxcOrderActivity.this, WxcPayActivity.class);\n\t\t\t startActivity(intent);\n\t\t\t}",
"@Override\n ... | [
"0.66083413",
"0.6412666",
"0.6380442",
"0.6363135",
"0.6339599",
"0.6330933",
"0.6291237",
"0.62752134",
"0.6263508",
"0.6263508",
"0.6204142",
"0.6194306",
"0.61759615",
"0.6165258",
"0.61124355",
"0.6089142",
"0.60527295",
"0.60496074",
"0.60449266",
"0.60290366",
"0.59613... | 0.5856897 | 38 |
TODO Autogenerated method stub | public void contextDestroyed(ServletContextEvent servletcontextevent)
{
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.66708666",
"0.65675074",
"0.65229905",
"0.6481001",
"0.64770633",
"0.64584893",
"0.6413091",
"0.63764185",
"0.6275735",
"0.62541914",
"0.6236919",
"0.6223816",
"0.62017626",
"0.61944294",
"0.61944294",
"0.61920846",
"0.61867654",
"0.6173323",
"0.61328775",
"0.61276996",
"0... | 0.0 | -1 |
TODO Autogenerated method stub | public void contextInitialized(ServletContextEvent servletcontextevent)
{
JobContext.getInstance().setContext(servletcontextevent.getServletContext());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.608016... | 0.0 | -1 |
TODO Autogenerated method stub Scanner sc = new Scanner(System.in); System.out.print("Enter value of x : "); int x = sc.nextInt(); | public static void main(String[] args) throws IOException {
meth(42);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n System.out.println(\" Please enter a number: \");\n X x = new X(scanner.nextInt());\n x.x();\n\n }",
"public static void main(String[] args) {\n\t\t\n\t\ttry{ \n\t\t\tScanner s = new Scanner (S... | [
"0.71584415",
"0.70696807",
"0.7028682",
"0.691669",
"0.6715129",
"0.66090894",
"0.6550252",
"0.65421414",
"0.65162593",
"0.6494086",
"0.6482891",
"0.6470102",
"0.6433037",
"0.63670045",
"0.6306183",
"0.62790895",
"0.6263219",
"0.6247833",
"0.6247833",
"0.6247833",
"0.6247833... | 0.0 | -1 |
Timestamp when transaction occurred. Required. The format is "YYYYMMDD HH:MM:SS". Examples: "20180305 09:15:00" or "20180201 14:34:30" .google.protobuf.StringValue transaction_date_time = 1; | boolean hasTransactionDateTime(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"com.google.protobuf.StringValue getTransactionDateTime();",
"com.google.protobuf.StringValueOrBuilder getTransactionDateTimeOrBuilder();",
"public void setTransactionTime(Timestamp value) {\r\n setAttributeInternal(TRANSACTIONTIME, value);\r\n }",
"@ApiModelProperty(example = \"1518811817\", value ... | [
"0.76731396",
"0.7242272",
"0.6257143",
"0.58075494",
"0.57416344",
"0.57370156",
"0.57370156",
"0.5705786",
"0.57015324",
"0.57015324",
"0.57015324",
"0.57015324",
"0.57015324",
"0.55535084",
"0.5549064",
"0.5549064",
"0.55474615",
"0.55474615",
"0.554278",
"0.554278",
"0.55... | 0.0 | -1 |
Timestamp when transaction occurred. Required. The format is "YYYYMMDD HH:MM:SS". Examples: "20180305 09:15:00" or "20180201 14:34:30" .google.protobuf.StringValue transaction_date_time = 1; | com.google.protobuf.StringValue getTransactionDateTime(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"com.google.protobuf.StringValueOrBuilder getTransactionDateTimeOrBuilder();",
"public void setTransactionTime(Timestamp value) {\r\n setAttributeInternal(TRANSACTIONTIME, value);\r\n }",
"@ApiModelProperty(example = \"1518811817\", value = \"The transaction time in seconds since epoch.\")\n public L... | [
"0.72427845",
"0.6254055",
"0.58049357",
"0.57398677",
"0.5735536",
"0.5735536",
"0.57040906",
"0.57007563",
"0.57007563",
"0.57007563",
"0.57007563",
"0.57007563",
"0.55528533",
"0.55472404",
"0.55472404",
"0.55453956",
"0.55453956",
"0.55410606",
"0.55410606",
"0.55206525",
... | 0.7673199 | 0 |
Timestamp when transaction occurred. Required. The format is "YYYYMMDD HH:MM:SS". Examples: "20180305 09:15:00" or "20180201 14:34:30" .google.protobuf.StringValue transaction_date_time = 1; | com.google.protobuf.StringValueOrBuilder getTransactionDateTimeOrBuilder(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"com.google.protobuf.StringValue getTransactionDateTime();",
"public void setTransactionTime(Timestamp value) {\r\n setAttributeInternal(TRANSACTIONTIME, value);\r\n }",
"@ApiModelProperty(example = \"1518811817\", value = \"The transaction time in seconds since epoch.\")\n public Long getTransaction... | [
"0.7674042",
"0.62540555",
"0.5804022",
"0.57423836",
"0.5737782",
"0.5737782",
"0.57066023",
"0.5701939",
"0.5701939",
"0.5701939",
"0.5701939",
"0.5701939",
"0.5554217",
"0.55498147",
"0.55498147",
"0.5547826",
"0.5547826",
"0.5543703",
"0.5543703",
"0.55191034",
"0.5517316... | 0.7243315 | 1 |
Transaction amount in micros. Required. .google.protobuf.DoubleValue transaction_amount_micros = 2; | boolean hasTransactionAmountMicros(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"com.google.protobuf.DoubleValue getTransactionAmountMicros();",
"com.google.protobuf.DoubleValueOrBuilder getTransactionAmountMicrosOrBuilder();",
"public static double microSecondsToMilliSeconds(double num) { return (num/Math.pow(10,3)); }",
"public void setTransactionAmount(java.math.BigDecimal transaction... | [
"0.8482153",
"0.8320195",
"0.5768192",
"0.5405427",
"0.5353421",
"0.5322162",
"0.5284772",
"0.52823055",
"0.5227964",
"0.52005726",
"0.5186299",
"0.51157737",
"0.5110709",
"0.5104246",
"0.506445",
"0.50631964",
"0.5059368",
"0.5047287",
"0.50433826",
"0.5042822",
"0.50046754"... | 0.6185765 | 2 |
Transaction amount in micros. Required. .google.protobuf.DoubleValue transaction_amount_micros = 2; | com.google.protobuf.DoubleValue getTransactionAmountMicros(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"com.google.protobuf.DoubleValueOrBuilder getTransactionAmountMicrosOrBuilder();",
"boolean hasTransactionAmountMicros();",
"public static double microSecondsToMilliSeconds(double num) { return (num/Math.pow(10,3)); }",
"public void setTransactionAmount(java.math.BigDecimal transactionAmount) {\r\n thi... | [
"0.83198375",
"0.61835426",
"0.5766033",
"0.5407316",
"0.5352794",
"0.53214407",
"0.52837765",
"0.52820086",
"0.52273715",
"0.5199725",
"0.51854384",
"0.51125574",
"0.51089066",
"0.51046044",
"0.5064758",
"0.5063253",
"0.5059779",
"0.50484747",
"0.50445986",
"0.50433767",
"0.... | 0.8481532 | 0 |
Transaction amount in micros. Required. .google.protobuf.DoubleValue transaction_amount_micros = 2; | com.google.protobuf.DoubleValueOrBuilder getTransactionAmountMicrosOrBuilder(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"com.google.protobuf.DoubleValue getTransactionAmountMicros();",
"boolean hasTransactionAmountMicros();",
"public static double microSecondsToMilliSeconds(double num) { return (num/Math.pow(10,3)); }",
"public void setTransactionAmount(java.math.BigDecimal transactionAmount) {\r\n this.transactionAmoun... | [
"0.84822875",
"0.6183996",
"0.5766535",
"0.54072315",
"0.53526473",
"0.5322143",
"0.52830243",
"0.52827054",
"0.52280205",
"0.520156",
"0.5185222",
"0.51138324",
"0.5109803",
"0.5104168",
"0.50653416",
"0.50636125",
"0.5060496",
"0.5050084",
"0.504437",
"0.50437766",
"0.50050... | 0.83204275 | 1 |
Transaction currency code. ISO 4217 threeletter code is used. Required. .google.protobuf.StringValue currency_code = 3; | boolean hasCurrencyCode(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"com.google.protobuf.StringValue getCurrencyCode();",
"com.google.protobuf.StringValueOrBuilder getCurrencyCodeOrBuilder();",
"@ApiModelProperty(required = true, value = \"Use a 3-character alpha or numeric currency code for currency of the sender. You should (unless prohibited by local law / regulation) use th... | [
"0.83611816",
"0.7903055",
"0.7156137",
"0.6887933",
"0.6476998",
"0.64571303",
"0.6445779",
"0.6426755",
"0.64091545",
"0.63997144",
"0.6294459",
"0.6287554",
"0.6268075",
"0.62678385",
"0.62564254",
"0.62167406",
"0.62085074",
"0.61603504",
"0.6149655",
"0.6085452",
"0.6080... | 0.5440217 | 76 |
Transaction currency code. ISO 4217 threeletter code is used. Required. .google.protobuf.StringValue currency_code = 3; | com.google.protobuf.StringValue getCurrencyCode(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"com.google.protobuf.StringValueOrBuilder getCurrencyCodeOrBuilder();",
"@ApiModelProperty(required = true, value = \"Use a 3-character alpha or numeric currency code for currency of the sender. You should (unless prohibited by local law / regulation) use the billingCurrencyCode obtained from the Funds Transfer A... | [
"0.7903073",
"0.7155747",
"0.68872994",
"0.64763236",
"0.6457549",
"0.6446277",
"0.6425788",
"0.6408134",
"0.6399803",
"0.62942165",
"0.62880486",
"0.6266234",
"0.62660277",
"0.62557954",
"0.62172675",
"0.62088907",
"0.61607504",
"0.6149287",
"0.6083584",
"0.6078163",
"0.6065... | 0.8361015 | 0 |
Transaction currency code. ISO 4217 threeletter code is used. Required. .google.protobuf.StringValue currency_code = 3; | com.google.protobuf.StringValueOrBuilder getCurrencyCodeOrBuilder(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"com.google.protobuf.StringValue getCurrencyCode();",
"@ApiModelProperty(required = true, value = \"Use a 3-character alpha or numeric currency code for currency of the sender. You should (unless prohibited by local law / regulation) use the billingCurrencyCode obtained from the Funds Transfer Attribute Inquiry A... | [
"0.8360335",
"0.7156203",
"0.68874085",
"0.64764065",
"0.64577687",
"0.64464253",
"0.6425954",
"0.6408566",
"0.6400191",
"0.6294255",
"0.6287751",
"0.6266531",
"0.6266241",
"0.6256026",
"0.6217702",
"0.6209118",
"0.61608493",
"0.6149455",
"0.6084033",
"0.6078651",
"0.6066575"... | 0.7902406 | 1 |
The resource name of conversion action to report conversions to. Required. .google.protobuf.StringValue conversion_action = 4; | boolean hasConversionAction(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"com.google.protobuf.StringValue getConversionAction();",
"com.google.protobuf.StringValueOrBuilder getConversionActionOrBuilder();",
"com.google.ads.googleads.v6.resources.ConversionActionOrBuilder getConversionActionOrBuilder();",
"com.google.ads.googleads.v6.resources.ConversionAction getConversionAction()... | [
"0.8495716",
"0.8332193",
"0.7192547",
"0.7081307",
"0.5879626",
"0.5726138",
"0.5720096",
"0.57141876",
"0.567119",
"0.560727",
"0.5480832",
"0.5447838",
"0.53865945",
"0.5326599",
"0.53018534",
"0.51951617",
"0.51488405",
"0.5143328",
"0.505833",
"0.5054317",
"0.5045093",
... | 0.5988356 | 5 |
The resource name of conversion action to report conversions to. Required. .google.protobuf.StringValue conversion_action = 4; | com.google.protobuf.StringValue getConversionAction(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"com.google.protobuf.StringValueOrBuilder getConversionActionOrBuilder();",
"com.google.ads.googleads.v6.resources.ConversionActionOrBuilder getConversionActionOrBuilder();",
"com.google.ads.googleads.v6.resources.ConversionAction getConversionAction();",
"boolean hasConversionAction();",
"boolean hasConver... | [
"0.8332717",
"0.7193433",
"0.7081656",
"0.5989033",
"0.5989033",
"0.5881266",
"0.57257766",
"0.57218",
"0.57124656",
"0.566941",
"0.5608527",
"0.54829365",
"0.54488236",
"0.53877485",
"0.5328007",
"0.5303931",
"0.5197265",
"0.5147149",
"0.514474",
"0.5059155",
"0.5054707",
... | 0.84963316 | 0 |
The resource name of conversion action to report conversions to. Required. .google.protobuf.StringValue conversion_action = 4; | com.google.protobuf.StringValueOrBuilder getConversionActionOrBuilder(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"com.google.protobuf.StringValue getConversionAction();",
"com.google.ads.googleads.v6.resources.ConversionActionOrBuilder getConversionActionOrBuilder();",
"com.google.ads.googleads.v6.resources.ConversionAction getConversionAction();",
"boolean hasConversionAction();",
"boolean hasConversionAction();",
... | [
"0.84958446",
"0.7192062",
"0.7081494",
"0.5987819",
"0.5987819",
"0.5877476",
"0.57255274",
"0.5718006",
"0.5715869",
"0.5672912",
"0.5607488",
"0.54799557",
"0.54467505",
"0.5386128",
"0.5324998",
"0.53006583",
"0.5194119",
"0.51504886",
"0.51418024",
"0.50574136",
"0.50543... | 0.83316284 | 1 |
Transaction order id. Accessible only to customers on the allowlist. .google.protobuf.StringValue order_id = 5; | boolean hasOrderId(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"com.google.protobuf.StringValue getOrderId();",
"public String getOrderID() {\n\t\treturn this.token.get(\"orderID\").toString();\n\t}",
"public String getOrderid() {\n return orderid;\n }",
"public String getOrderId() {\n Object ref = orderId_;\n if (ref instanceof String) {\n ret... | [
"0.7440339",
"0.7175705",
"0.69362205",
"0.6801977",
"0.6779678",
"0.6763738",
"0.6754015",
"0.6732774",
"0.67165536",
"0.66973644",
"0.66911566",
"0.66911566",
"0.66911566",
"0.66199553",
"0.65983814",
"0.6571603",
"0.6550742",
"0.6521391",
"0.6511657",
"0.6479932",
"0.64526... | 0.0 | -1 |
Transaction order id. Accessible only to customers on the allowlist. .google.protobuf.StringValue order_id = 5; | com.google.protobuf.StringValue getOrderId(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getOrderID() {\n\t\treturn this.token.get(\"orderID\").toString();\n\t}",
"public String getOrderid() {\n return orderid;\n }",
"public String getOrderId() {\n Object ref = orderId_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.goog... | [
"0.7176258",
"0.6936226",
"0.68029934",
"0.6780539",
"0.67664105",
"0.67544764",
"0.67322296",
"0.67158747",
"0.669736",
"0.66911215",
"0.66911215",
"0.66911215",
"0.6620747",
"0.65984195",
"0.65720767",
"0.6550963",
"0.6521243",
"0.6511794",
"0.6479718",
"0.64538735",
"0.644... | 0.74424666 | 0 |
Transaction order id. Accessible only to customers on the allowlist. .google.protobuf.StringValue order_id = 5; | com.google.protobuf.StringValueOrBuilder getOrderIdOrBuilder(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"com.google.protobuf.StringValue getOrderId();",
"public String getOrderID() {\n\t\treturn this.token.get(\"orderID\").toString();\n\t}",
"public String getOrderid() {\n return orderid;\n }",
"public String getOrderId() {\n Object ref = orderId_;\n if (ref instanceof String) {\n ret... | [
"0.7442389",
"0.7175509",
"0.69351166",
"0.680224",
"0.6779799",
"0.6754502",
"0.6731429",
"0.6715503",
"0.66968006",
"0.6689778",
"0.6689778",
"0.6689778",
"0.6618885",
"0.6597474",
"0.65717137",
"0.65494645",
"0.65202224",
"0.65104014",
"0.64789337",
"0.64509946",
"0.644525... | 0.676572 | 5 |
Store attributes of the transaction. Accessible only to customers on the allowlist. .google.ads.googleads.v4.common.StoreAttribute store_attribute = 6; | boolean hasStoreAttribute(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"com.google.ads.googleads.v4.common.StoreAttribute getStoreAttribute();",
"com.google.ads.googleads.v4.common.StoreAttributeOrBuilder getStoreAttributeOrBuilder();",
"public final void store(final boolean store) {\n\t\tthis.store = store;\n\t}",
"public int storeAttribute(String key, String value);",
"prote... | [
"0.7147404",
"0.69697165",
"0.57886904",
"0.5549215",
"0.5543615",
"0.54561216",
"0.5362217",
"0.5342781",
"0.53228694",
"0.5298988",
"0.5245834",
"0.5228669",
"0.5217962",
"0.5188606",
"0.51692426",
"0.5145281",
"0.51359296",
"0.51359296",
"0.50922644",
"0.5065246",
"0.50331... | 0.6236814 | 2 |
Store attributes of the transaction. Accessible only to customers on the allowlist. .google.ads.googleads.v4.common.StoreAttribute store_attribute = 6; | com.google.ads.googleads.v4.common.StoreAttribute getStoreAttribute(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"com.google.ads.googleads.v4.common.StoreAttributeOrBuilder getStoreAttributeOrBuilder();",
"boolean hasStoreAttribute();",
"public final void store(final boolean store) {\n\t\tthis.store = store;\n\t}",
"public int storeAttribute(String key, String value);",
"protected void setStore(String store) {\n ... | [
"0.696926",
"0.6236757",
"0.5789828",
"0.5550558",
"0.5543073",
"0.54545665",
"0.5360283",
"0.53442603",
"0.5322519",
"0.52962303",
"0.52434146",
"0.5226398",
"0.52155256",
"0.5188875",
"0.51671237",
"0.514236",
"0.5133449",
"0.5133449",
"0.50894296",
"0.5062795",
"0.50354683... | 0.7146523 | 0 |
Store attributes of the transaction. Accessible only to customers on the allowlist. .google.ads.googleads.v4.common.StoreAttribute store_attribute = 6; | com.google.ads.googleads.v4.common.StoreAttributeOrBuilder getStoreAttributeOrBuilder(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"com.google.ads.googleads.v4.common.StoreAttribute getStoreAttribute();",
"boolean hasStoreAttribute();",
"public final void store(final boolean store) {\n\t\tthis.store = store;\n\t}",
"public int storeAttribute(String key, String value);",
"protected void setStore(String store) {\n this.store = sto... | [
"0.71456164",
"0.62361044",
"0.5789067",
"0.5549117",
"0.55423963",
"0.5454528",
"0.53603125",
"0.53434116",
"0.53228647",
"0.52969426",
"0.5243081",
"0.5227904",
"0.52152026",
"0.5187791",
"0.516717",
"0.5142713",
"0.5133103",
"0.5133103",
"0.5089063",
"0.50624454",
"0.50337... | 0.6968078 | 1 |
Value of the custom variable for each transaction. Accessible only to customers on the allowlist. .google.protobuf.StringValue custom_value = 7; | boolean hasCustomValue(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"com.google.protobuf.StringValue getCustomValue();",
"com.google.protobuf.StringValueOrBuilder getCustomValueOrBuilder();",
"DeclaredCustomsValueAmountType getDeclaredCustomsValueAmount();",
"public java.lang.String getCustom() {\r\n return custom;\r\n }",
"public String getProposedTransactionValu... | [
"0.6815295",
"0.6452737",
"0.597579",
"0.5646798",
"0.5607313",
"0.5540768",
"0.5427384",
"0.53031474",
"0.53031474",
"0.52469945",
"0.52416503",
"0.5236815",
"0.5227037",
"0.5173926",
"0.51112574",
"0.51044947",
"0.51044947",
"0.51044947",
"0.51044947",
"0.51044947",
"0.5104... | 0.50294787 | 33 |
Value of the custom variable for each transaction. Accessible only to customers on the allowlist. .google.protobuf.StringValue custom_value = 7; | com.google.protobuf.StringValue getCustomValue(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"com.google.protobuf.StringValueOrBuilder getCustomValueOrBuilder();",
"DeclaredCustomsValueAmountType getDeclaredCustomsValueAmount();",
"public java.lang.String getCustom() {\r\n return custom;\r\n }",
"public String getProposedTransactionValue() {\n return proposedTransactionValue;\n }",
"p... | [
"0.6450714",
"0.59769666",
"0.56488705",
"0.5606821",
"0.5543664",
"0.54273754",
"0.53021914",
"0.53021914",
"0.52480966",
"0.5240197",
"0.5235418",
"0.522792",
"0.5172181",
"0.5111663",
"0.51037174",
"0.51028335",
"0.51028335",
"0.51028335",
"0.51028335",
"0.51028335",
"0.51... | 0.6813348 | 0 |
Value of the custom variable for each transaction. Accessible only to customers on the allowlist. .google.protobuf.StringValue custom_value = 7; | com.google.protobuf.StringValueOrBuilder getCustomValueOrBuilder(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"com.google.protobuf.StringValue getCustomValue();",
"DeclaredCustomsValueAmountType getDeclaredCustomsValueAmount();",
"public java.lang.String getCustom() {\r\n return custom;\r\n }",
"public String getProposedTransactionValue() {\n return proposedTransactionValue;\n }",
"public void setCust... | [
"0.6816216",
"0.59761626",
"0.5649891",
"0.56075644",
"0.5543993",
"0.54287714",
"0.53036183",
"0.53036183",
"0.5247746",
"0.5241396",
"0.5236526",
"0.52272975",
"0.5173392",
"0.51129967",
"0.5104577",
"0.5104577",
"0.5104577",
"0.5104577",
"0.5104577",
"0.5104577",
"0.510363... | 0.6452826 | 1 |
FIXME think of better way to handle parameters, currently serviceparameters is already taken by service objects Holds the raw map of parameters from suite and test input Adds or updates the raw map | void add( Map< String, Object > paramMap ); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Map getParameters();",
"Map<String, String> getParameters();",
"Map<String, Object> getParameters();",
"Map<String, Object> getParameters();",
"public interface ParameterService\r\n{\r\n\r\n\t/**\r\n\t * Get a parameter by parameter name, including parameter values.\r\n\t * \r\n\t * @param servicePr... | [
"0.64219075",
"0.63387734",
"0.6253677",
"0.6253677",
"0.6239296",
"0.6226396",
"0.6212858",
"0.6199062",
"0.60099924",
"0.5946355",
"0.590738",
"0.5851968",
"0.58482426",
"0.5842956",
"0.57947826",
"0.5785134",
"0.57808733",
"0.5780152",
"0.57587194",
"0.57369196",
"0.571218... | 0.557918 | 35 |
Holds the raw map of parameters from suite and test input Clears the map | void clear(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic Map<String, String[]> getParameterMap() {\n\t\treturn null;\n\t}",
"protected void resetParams() {\n\t\treport.report(\"Resetting Test Parameters\");\n\t\t// numberOfRecoverys = 0;\n\t\tstreams = new ArrayList<StreamParams>();\n\t\tlistOfStreamList = new ArrayList<ArrayList<StreamParams>>();\... | [
"0.6021905",
"0.60106486",
"0.59420925",
"0.59206825",
"0.5909475",
"0.5883539",
"0.58140075",
"0.58139074",
"0.57475847",
"0.5745682",
"0.5731471",
"0.57199895",
"0.5681015",
"0.5667845",
"0.5659342",
"0.56467116",
"0.55991364",
"0.5516771",
"0.5516771",
"0.5480858",
"0.5472... | 0.0 | -1 |
no need for transaction annotation | public interface MenuInstanceRepo extends JpaRepository<MenuInstance,Long> {
public List<MenuInstance> findByMenuNameContains(String menuName);
public MenuInstance findByMenuTypeAndMenuForDate(String menuType, LocalDate menuForDate);
public List<MenuInstance> findByMenuType(String menuType);
public List... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void commitTx() {\n \n }",
"@Override\n\tpublic void onTransactionStart() {}",
"Transaction createTransaction();",
"Transaction getCurrentTransaction();",
"@Override\n public void startTx() {\n \n }",
"Transaction getTransaction() { \r\n return tx;\r\n }",
"void rea... | [
"0.70924306",
"0.68867373",
"0.68425107",
"0.68123144",
"0.6798979",
"0.6691571",
"0.6672019",
"0.66673946",
"0.6625511",
"0.661579",
"0.6613115",
"0.6612499",
"0.6601889",
"0.6597945",
"0.654614",
"0.6518117",
"0.65100724",
"0.6487693",
"0.6477772",
"0.64650905",
"0.6463362"... | 0.0 | -1 |
TODO: This method really should be private again. | public void updatePath() {
String oldPath = this.path;
if (materializePath()) {
PageAlias.create(this, oldPath);
updateChildPaths();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public int describeContents() { return 0; }",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override public int describeContents() { return 0; }",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n public void f... | [
"0.56944215",
"0.56834906",
"0.56009674",
"0.5577064",
"0.55636215",
"0.5509648",
"0.5494166",
"0.5430393",
"0.54183173",
"0.54002476",
"0.5393578",
"0.53759253",
"0.5371317",
"0.5367053",
"0.526984",
"0.52680403",
"0.52680403",
"0.52680403",
"0.52680403",
"0.52680403",
"0.52... | 0.0 | -1 |
Implementation of the Lifecycle interface | public void onSave() {
setCreationDate(new Date());
PageAlias.create(this, null);
updateChildPaths();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface Lifecycle extends Startable, Stopable {\r\n\r\n}",
"LifecycleState lifecycleState();",
"LifecycleState lifecycleState();",
"@Override\n\tLifecycle on();",
"@Override\n\tprotected void startInternal() throws LifecycleException {\n\t\t\n\t}",
"public interface BaseLifecycleObserver extends... | [
"0.73905104",
"0.70567787",
"0.70567787",
"0.70481277",
"0.69080603",
"0.68865526",
"0.6794212",
"0.67850816",
"0.6776358",
"0.6749472",
"0.66852504",
"0.66040194",
"0.6583234",
"0.6430323",
"0.63860893",
"0.63659406",
"0.63401407",
"0.6309077",
"0.6257618",
"0.62468475",
"0.... | 0.0 | -1 |
Constructs a new SRD. | public StreamRecorderDisplay() {
initialize();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ADSR()\n\t{\n\t\tthis(1.0f, 1.0f, 1.0f, 1.0f, 1.0f, 0.0f, 0.0f);\n\t}",
"public CSSTidier() {\n\t}",
"public RDR_RDR() { \r\n this(new DefaultModelClassFactory());\r\n }",
"public static TalonSRX createTalonSRX(int id){\n TalonSRX talon = new TalonSRX(id);\n //talon.configSupply... | [
"0.5979124",
"0.58891886",
"0.58225524",
"0.5801452",
"0.56969935",
"0.56760114",
"0.5636511",
"0.54299194",
"0.54233325",
"0.5404687",
"0.5402577",
"0.5392736",
"0.5389936",
"0.5383779",
"0.5374008",
"0.53624547",
"0.53545564",
"0.5320183",
"0.53149486",
"0.53025025",
"0.527... | 0.0 | -1 |
Begins listening for streams. | private void listen() {
//Grap port/ip from UI
String ip = m_ipField.getText().trim();
try {
ip = InetAddress.getByName(ip).getHostAddress(); //Validate IP Address
} catch (UnknownHostException ex) {
Logger.getLogger(StreamRecorderDisplay.class.getName()).log(L... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void startListening() {\r\n\t\tlisten.startListening();\r\n\t}",
"public void startListening();",
"@Override\n\tpublic void StartListening()\n\t{\n\t\t\n\t}",
"public void streamSubscriberStart(ISubscriberStream stream);",
"public void startListeningForConnection() {\n startInsecureListeningT... | [
"0.74752",
"0.74664354",
"0.728501",
"0.7073202",
"0.6987898",
"0.6824796",
"0.6813456",
"0.68130463",
"0.6734114",
"0.6698314",
"0.6680626",
"0.6653685",
"0.65484405",
"0.6547685",
"0.6393027",
"0.63818085",
"0.6297372",
"0.62746286",
"0.6255821",
"0.6195905",
"0.61108243",
... | 0.53527683 | 94 |
Launches and sets the display visible. | public void launch() {
m_frame.pack();
m_frame.setVisible(true);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void showDisplay() {\n this.display.displayScreen();\n }",
"public void display() {\r\n\t\tsetVisible(true);\r\n\t}",
"public void setVisible()\n\t{\n\t\tMainController.getInstance().setVisible(name, true);\n\t}",
"public void setActiveDisplayVisible(boolean visible) {\r\n\t\tactiveDisplay.... | [
"0.77555406",
"0.7431365",
"0.7325094",
"0.7255537",
"0.7184713",
"0.7016801",
"0.69986665",
"0.6977889",
"0.69640166",
"0.69044405",
"0.6863489",
"0.68275905",
"0.6776833",
"0.66595995",
"0.6622341",
"0.6600761",
"0.65775377",
"0.6550241",
"0.65206414",
"0.6492529",
"0.64904... | 0.6032253 | 85 |
Initializes the display components for this class. | private void initialize() {
m_frame = new JFrame("Video Recorder");
m_frame.setResizable(false);
m_frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
m_frame.setLayout(new BorderLayout());
m_frame.add(buildContentPanel(), BorderLayout.CENTER);
JPanel buttonPanel = new... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Display() {\n initComponents();\n }",
"private void initComponents() {\r\n\t\temulator = new Chip8();\r\n\t\tpanel = new DisplayPanel(emulator);\r\n\t\tregisterPanel = new EmulatorInfoPanel(emulator);\r\n\t\t\r\n\t\tcontroller = new Controller(this, emulator, panel, registerPanel);\r\n\t}",
"p... | [
"0.7763886",
"0.7326923",
"0.7315568",
"0.7280585",
"0.7268261",
"0.7266104",
"0.72490513",
"0.721703",
"0.7213793",
"0.7209455",
"0.72047776",
"0.7147526",
"0.7147526",
"0.71149665",
"0.7070168",
"0.7053635",
"0.70336145",
"0.70206237",
"0.7016963",
"0.7013765",
"0.70092183"... | 0.0 | -1 |
Changes to disconnected status. | private void disconnected() {
m_connectionLabel.setBackground(Color.RED);
m_connectionLabel.setText("Disconnected");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void disconnected(String reason) {}",
"@Override\n\t\tpublic void disconnected() {\n\t\t\tsuper.disconnected();\n\t\t}",
"public void handleDisconnectedState() {\n\n setProgressBarVisible(false);\n setGreenCheckMarkVisible(false);\n setMessageText(\"Failed to connect to \" + tallyDe... | [
"0.74061394",
"0.69924045",
"0.6975639",
"0.68562984",
"0.68026966",
"0.67592597",
"0.67439985",
"0.67152435",
"0.66364694",
"0.66202986",
"0.6593723",
"0.65877473",
"0.6560885",
"0.6548319",
"0.65444624",
"0.6530783",
"0.6493522",
"0.6490441",
"0.6490441",
"0.645446",
"0.644... | 0.73772633 | 1 |
Changes to connected status. | private void connected() {
m_connectionLabel.setBackground(Color.GREEN);
m_connectionLabel.setText("Connected");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private synchronized void UI_RefreshConnStatus ()\r\n\t{\r\n\t\tTCPClient used=null;\r\n\t\tsynchronized (this)\r\n\t\t{\r\n\t\t\tused=_roboCOM;\r\n\t\t}\r\n\t\tLog.e(TAG, \"Is conection Active ACCE : \" + isConnectionActive());\r\n\t\t\r\n\t\tif (!isConnecting())\r\n\t\t{\r\n\t\t\tif (old_conn_status==-2) return;... | [
"0.74405247",
"0.73721683",
"0.714159",
"0.7062711",
"0.7039476",
"0.7027778",
"0.6938011",
"0.69206244",
"0.69046843",
"0.68620855",
"0.6841576",
"0.6824791",
"0.6821809",
"0.6771974",
"0.6735546",
"0.67289966",
"0.6722211",
"0.67077184",
"0.6699852",
"0.6696822",
"0.6692804... | 0.7095315 | 3 |
Assembles and returns the JPanel with the main controls and content on it. | private JPanel buildContentPanel() {
JPanel content = new JPanel();
content.setLayout(new GridBagLayout());
m_ipField = new JTextField(10);
m_ipField.setText(m_defaultIp);
m_portField = new JTextField(5);
m_portField.setText(m_defaultPort);
// First Column
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private JPanel buildContentPane(){\t\n\t\tinitialiseElements();\n\t\tpanel = new JPanel();\n\t\tpanel.setLayout(new FlowLayout());\n\t\tpanel.setBackground(Color.lightGray);\n\t\tpanel.add(scroll);\n\t\tpanel.add(bouton);\n\t\tpanel.add(bouton2);\n\t\treturn panel;\n\t}",
"public JPanel createPanel() {\n\t\t\r\n... | [
"0.7779471",
"0.7740682",
"0.7596443",
"0.7498647",
"0.7381411",
"0.7329359",
"0.73153734",
"0.72888535",
"0.72604746",
"0.71463543",
"0.71440226",
"0.7143544",
"0.7129926",
"0.7127676",
"0.7124725",
"0.7116334",
"0.70531696",
"0.7028715",
"0.69847137",
"0.6971771",
"0.696964... | 0.6826762 | 29 |
/ Approach 1: Brute Force. Use for loops: T.C. = O(n^2) loop i: 0 to n1 loop j: i+1 + n1 check if a[j] < a[i] : count++; Gives TLE. / Approach 2: Use Insertion Sort to sort the current visited elements. Use binary search to find index of that element to update count. | public List<Integer> countSmaller(int[] nums) {
int n = nums.length;
int arr[] = new int[n];
List<Integer> list = new ArrayList<>();
// Loop from n-1 to 0
for (int i=n-1; i>=0; i--) {
arr[i] = sortSearchHelper(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static int ombyttinger(int[] a) {\n int count=0;\n for (int i = 0; i < a.length-1; i++) {\n if (a[i] > a[i+1]) {\n int temp = a[i];\n a[i] = a[i+1];\n a[i+1] = temp;\n count++;\n\n ... | [
"0.7342081",
"0.698201",
"0.69745624",
"0.690629",
"0.685194",
"0.67721057",
"0.67175",
"0.67086035",
"0.6673891",
"0.6643183",
"0.66253436",
"0.66173327",
"0.6611845",
"0.6584061",
"0.65546125",
"0.649594",
"0.6478465",
"0.64526826",
"0.6430345",
"0.64202785",
"0.63930655",
... | 0.61308545 | 36 |
Helper function which will use 'Insertion Sort and Binary Search' | public int sortSearchHelper (int val, int low, int high, List<Integer> list) {
// Binary search to find our element val in the insertion sorted array
int mid = low + (high - low)/2;
// Here, if binary search ends, means current mid is the value.
if (lo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected static <T extends Comparable<? super T>> void insertionSort(List<T> a, int low, int high){\n // Example of insertion sort\n // 4 1 3 2 5\n // 1 4 3 2 5\n // 1 3 4 2 5\n // 1 2 3 4 5\n\n // index low is already sorted\n // move from left to right inserting ... | [
"0.7152022",
"0.70561427",
"0.70338744",
"0.7015614",
"0.70085186",
"0.69501746",
"0.69190687",
"0.68505543",
"0.6794121",
"0.67747974",
"0.676389",
"0.6726554",
"0.66909575",
"0.66861403",
"0.66735035",
"0.6669839",
"0.6657847",
"0.6647828",
"0.663315",
"0.6629936",
"0.66242... | 0.64587086 | 36 |
Creates new form InserirCelularGui | public InserirCelularGui(CelularTableModel mtb) {
initComponents();
model = mtb;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public frmCliente() {\r\n \r\n initComponents();\r\n // Botao do Note_ON brusco que foi retirado ...\r\n //jButton9.setVisible(false);\r\n \r\n // Inicializa o display de desenho\r\n //ImageIcon image=new ImageIcon(\"Hapax4.PNG\");\r\n //setIconImage(image.ge... | [
"0.6895933",
"0.6815116",
"0.67830366",
"0.66901577",
"0.6678825",
"0.66278833",
"0.66040623",
"0.6602102",
"0.65880543",
"0.65770626",
"0.65764624",
"0.65591115",
"0.6550584",
"0.65209234",
"0.65205455",
"0.6513446",
"0.6488487",
"0.64616823",
"0.6460371",
"0.64494044",
"0.6... | 0.66379637 | 5 |
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor. | @SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
jFormattedTextField1 = new javax.swing.JFormattedTextField();
jPanel1 = new javax.swing.JPanel();
jLabel1 = new javax.swing.JLabel();
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Form() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public frmRectangulo() {\n initComponents();\n }",
"public form() {\n ... | [
"0.73192346",
"0.7290526",
"0.7290526",
"0.7290526",
"0.7285891",
"0.72480357",
"0.7213616",
"0.7207808",
"0.71955067",
"0.71891475",
"0.71844363",
"0.7159038",
"0.71474695",
"0.7092269",
"0.7079923",
"0.70560205",
"0.69864315",
"0.697697",
"0.69552195",
"0.6953691",
"0.69458... | 0.0 | -1 |
AllPossibleRoutesModel getPossibleRoutes(Location start, Location end); AllPossibleRoutesModel getPossibleRoutes(int loc_start_id, int loc_end_id); HashMap getPossibleRoutes(int loc_start_id, int loc_end_id); | List<ConnectingFlights> getPossibleRoutes(int loc_start_id, int loc_end_id); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"List<Route> getAllRoute();",
"@GET(\"/routecollection/{startLocation}\")\n void getRoutes(@Path(\"startLocation\")String startLocation, Callback<Routes> routes);",
"public ArrayList<Location> getRoute(Location start, Location end) throws LocationNotFound{\n ArrayList<Location> route = new ArrayList<>... | [
"0.6833193",
"0.66927975",
"0.66699016",
"0.65960634",
"0.63230973",
"0.63201106",
"0.6306086",
"0.62573814",
"0.6248737",
"0.61631143",
"0.61563617",
"0.6119181",
"0.60789716",
"0.5989503",
"0.59792024",
"0.5955082",
"0.59079033",
"0.5898675",
"0.5860443",
"0.5859542",
"0.58... | 0.8094673 | 0 |
Agrega un producto al carrito de compras. | Boolean agregar(String userName, Long idProducto); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void agregarProducto(String producto){\n\t\tif (!this.existeProducto(producto)) {\n\t\t\tthis.compras.add(producto);\n\t\t}\n\t}",
"public void comprarProducto(Producto producto) throws Exception{\n try{\n if(this.productosEnVenta.contains(producto)){\n throw n... | [
"0.7399901",
"0.7011324",
"0.68387204",
"0.68208456",
"0.6802842",
"0.6748892",
"0.66420335",
"0.66084856",
"0.6535646",
"0.6519182",
"0.6517438",
"0.65153414",
"0.6483965",
"0.6480333",
"0.6437535",
"0.6430334",
"0.6406956",
"0.6369162",
"0.6367967",
"0.63590443",
"0.6358008... | 0.0 | -1 |
Remueve un producto del carrito de compras. | Boolean remover(String userName, Long idProducto); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void borrarProducto() {\n }",
"public void eliminarCompraComic();",
"private void removeProdutos() {\n Collection<IProduto> prods = this.controller.getProdutos();\n for(IProduto p : prods) System.out.println(\" -> \" + p.getCodigo() + \" \" + p.getNome());\n System.out.println(\"... | [
"0.6971192",
"0.6386192",
"0.6352727",
"0.6344998",
"0.62930167",
"0.6284935",
"0.62833023",
"0.62199146",
"0.61577344",
"0.61105055",
"0.6048645",
"0.598201",
"0.59771746",
"0.5938128",
"0.5897269",
"0.58717746",
"0.5860727",
"0.58493114",
"0.5835581",
"0.58251035",
"0.57840... | 0.0 | -1 |
Retorna la lista de productos que hacen parte del carrito de compras. | List<CarritoProductoResponseDTO> consultarCarritoCompras(String userName,TipoMoneda tipoMoneda); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<Product> getFullProductList(){\n\t\t/*\n\t\t * La lista dei prodotti da restituire.\n\t\t */\n\t\tList<Product> productList = new ArrayList<Product>();\n\t\t\n\t\t/*\n\t\t * Preleviamo il contenuto della tabella PRODOTTO.\n\t\t */\n\t\tStatement productStm = null;\n\t\tResultSet productRs = null;\n\t\t... | [
"0.69116384",
"0.6798289",
"0.66724426",
"0.6672138",
"0.66576564",
"0.6580112",
"0.6520872",
"0.6505363",
"0.6453876",
"0.64219904",
"0.6380432",
"0.6377057",
"0.6361415",
"0.63608265",
"0.63447005",
"0.63238406",
"0.6317129",
"0.631196",
"0.63027155",
"0.6301137",
"0.626998... | 0.0 | -1 |
Retorna el valor total del carrito de compras. | List<TotalCarritoDTO> getTotalCarritoCompras(String userName,TipoMoneda tipoMoneda); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public BigDecimal getValorTotal() {\r\n \treturn valorUnitario.setScale(5, BigDecimal.ROUND_HALF_EVEN).multiply(quantidade.setScale(3, BigDecimal.ROUND_HALF_EVEN)).setScale(3, BigDecimal.ROUND_DOWN).subtract(valorDesconto).setScale(3, BigDecimal.ROUND_HALF_EVEN);\r\n }",
"@Override\r\n\tpublic int precioTota... | [
"0.7398572",
"0.7246099",
"0.72323245",
"0.71770495",
"0.699238",
"0.699238",
"0.697981",
"0.6977457",
"0.69731885",
"0.69703716",
"0.69661695",
"0.69549453",
"0.69549453",
"0.69521666",
"0.69479084",
"0.69479084",
"0.693985",
"0.69045144",
"0.6904231",
"0.689503",
"0.6891026... | 0.0 | -1 |
/ tests for polyadic prefix mappings (a) base mapping is the mutable one (b) base mapping overrides all others (c) nonoverridden mappings in other maps are visible | public void testOnlyBaseMutated()
{
poly.getPrefixMapping().setNsPrefix( "a", alpha );
assertEquals( null, g1.getPrefixMapping().getNsPrefixURI( "a" ) );
assertEquals( null, g2.getPrefixMapping().getNsPrefixURI( "a" ) );
assertEquals( alpha, gBase.getPrefixMapping().getNsPre... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void testSubgraphsDontPolluteDefaultPrefix() \n {\n String imported = \"http://imported#\", local = \"http://local#\";\n g1.getPrefixMapping().setNsPrefix( \"\", imported );\n poly.getPrefixMapping().setNsPrefix( \"\", local );\n assertEquals( null, poly.getPrefixMapp... | [
"0.6002167",
"0.595837",
"0.5758275",
"0.5751649",
"0.56454504",
"0.5593561",
"0.55825865",
"0.5487449",
"0.5437855",
"0.54356503",
"0.5413082",
"0.5392814",
"0.5383114",
"0.5382122",
"0.5370765",
"0.53626907",
"0.5347574",
"0.53460777",
"0.53419405",
"0.53370506",
"0.5324058... | 0.73110706 | 0 |
Test that the default namespace of a subgraph doesn't appear as a default namespace of the polyadic graph. | public void testSubgraphsDontPolluteDefaultPrefix()
{
String imported = "http://imported#", local = "http://local#";
g1.getPrefixMapping().setNsPrefix( "", imported );
poly.getPrefixMapping().setNsPrefix( "", local );
assertEquals( null, poly.getPrefixMapping().getNsURIPref... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void getGraphNull() throws Exception {\n try (final Graph defaultGraph = dataset.getGraph(null).get()) {\n // TODO: Can we assume the default graph was empty before our new triples?\n assertEquals(2, defaultGraph.size());\n assertTrue(defaultGraph.contains(... | [
"0.6091478",
"0.5937734",
"0.5781531",
"0.57786745",
"0.57347304",
"0.54675084",
"0.5336105",
"0.5332379",
"0.531377",
"0.53027165",
"0.5238758",
"0.51750207",
"0.5166444",
"0.51489407",
"0.5126829",
"0.5111908",
"0.5080271",
"0.5079289",
"0.5077007",
"0.50395846",
"0.5039130... | 0.75272787 | 0 |
BuildTree() method to obtain elements from postfix expression and build an expression tree | public void buildTree() throws RuntimeException, DivideByZero {
// define local variable to count number of times an operator
// is pushed into it's associated stack. This will be use to
// count register values
int i = 0;
// split postfix expression enterend into the te... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private TreeNode exprTreeHelper(String expr) {\n if (expr.charAt(0) != '(') {\n return new TreeNode(expr); // you fill this in\n } else {\n // expr is a parenthesized expression.\n // Strip off the beginning and ending parentheses,\n // find the main operat... | [
"0.68413687",
"0.6784324",
"0.66353583",
"0.650671",
"0.64756125",
"0.6443418",
"0.63814193",
"0.6379499",
"0.6212491",
"0.6205301",
"0.62032866",
"0.6178324",
"0.61563253",
"0.6060706",
"0.60486627",
"0.60483503",
"0.60451293",
"0.6044278",
"0.60390157",
"0.5992153",
"0.5979... | 0.7097671 | 0 |
end method getNodes() method to pop two operands and an operator, determine the function of the operator and use the Node interface to call the OperandNode and OperatorNode classes to create an expression tree and build an infix expression | public void getNodes(int i) throws RuntimeException, DivideByZero{
// define local variables
String operand1 = operandStk.pop();
String operand2 = operandStk.pop();
// pop the operand stack twice using Node interface to declare an instance
Node value1 = new Operand... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void convertInfixToPostfix() {\n\t\t// Create operator stack\n\t\tStack<String> op_stack = new Stack<String>();\n\n\t\t// Prepare the input string\n\t\tprepareInput();\n\t\t\n\t\t// Split the expression \n\t\tString[] tokens = input.split(\"(?<=[^\\\\.a-zA-Z\\\\d])|(?=[^\\\\.a-zA-Z\\\\d])\");\n\t\t\n\t\t//... | [
"0.74006885",
"0.7152794",
"0.6992914",
"0.6988455",
"0.69574136",
"0.68799037",
"0.68422294",
"0.6691752",
"0.6673076",
"0.65708435",
"0.6493331",
"0.6482009",
"0.64807993",
"0.64780176",
"0.64684296",
"0.6461059",
"0.64600194",
"0.64445794",
"0.640056",
"0.637276",
"0.63628... | 0.0 | -1 |
end method getExpression() method to return complete infix expression to the main class to display in output textbox of GUI | public String getExpression() {
return tree.infixExpression();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static void getExpression()\r\n {\r\n System.out.print(\"Please enter an equation you want changed to postfix and prefix: \");\r\n infix_expression = scanner.nextLine();\r\n }",
"String getExpression();",
"String getExpression();",
"public String infix()\n\t {\n\t \t// creat... | [
"0.76651853",
"0.7110604",
"0.7110604",
"0.6982435",
"0.68897325",
"0.67458814",
"0.672112",
"0.668524",
"0.66240114",
"0.6614859",
"0.6614859",
"0.6614859",
"0.6614859",
"0.66119295",
"0.6611435",
"0.6611435",
"0.6611435",
"0.6564089",
"0.6498042",
"0.6476698",
"0.6448766",
... | 0.72454673 | 1 |
end method getMessage() method to display message when invalid character is parsed | public void getMessage() {
// use JOptionPane to have a pop up box informing user of the invalid token
JOptionPane.showMessageDialog(null, "Invalid Token " + invalidToken);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public String getMessage() {\n return \"Invalid token of \" + token + \" entered\";\n }",
"String getInvalidMessage();",
"public String getParseErrorMessage();",
"public static String invalidInput() {\n return \"Invalid input!\";\n }",
"public char getBadChar(){\n retu... | [
"0.687548",
"0.67852134",
"0.6648896",
"0.6594349",
"0.6588675",
"0.6530815",
"0.65035087",
"0.6491977",
"0.6491977",
"0.6491977",
"0.6491977",
"0.6491977",
"0.6491977",
"0.6491977",
"0.6491977",
"0.6491977",
"0.6491977",
"0.6491977",
"0.6491977",
"0.6491977",
"0.6491977",
... | 0.65842646 | 5 |
getOutput() method to retrieve assembly code output from AssemblyCode class. blank lines and divider line are appended between outputs | public String getOutput(){
// add assembly code to outputFile
outputFile.append(assemblyCode.getOutputFile());
// add a line spaces so the reader of the output file can determine
// that a new assembly code sequence has started
outputFile.append(System.lineSeparato... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getOutput();",
"String getOutput();",
"public String getOutput() {\n return output;\n }",
"public String getOutput() {\n return output.toString();\n }",
"private String buildOutput() {\n\t\tStringBuilder out = new StringBuilder();\n\t\tfor (char[] col : this.output) {\n... | [
"0.7237357",
"0.7076808",
"0.66595125",
"0.65732676",
"0.6269048",
"0.6267665",
"0.6253082",
"0.6251006",
"0.61987054",
"0.61568916",
"0.6128534",
"0.6124358",
"0.60387325",
"0.6005707",
"0.5922824",
"0.5894565",
"0.58528864",
"0.584297",
"0.5839624",
"0.5838883",
"0.58341396... | 0.7965748 | 0 |
Load file as Resource | @GetMapping("/download/{id}")
public ResponseEntity<Resource> downloadFile(@PathVariable(value = "id") int fileId) {
Files file = filesRepository.findById(fileId)
.orElseThrow(() -> new ResourceNotFoundException("File", "id", fileId));
Resource resource = fileStorageService.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Resource load(IFile f);",
"public Resource load(String filename) throws MalformedURLException;",
"public void loadResources();",
"public IPluginResource load( URI path ) throws LoaderException;",
"public Resource loadFileAsResource(String fileName) {\n try {\n Path filePath = this.... | [
"0.8102965",
"0.7845247",
"0.7040777",
"0.69357204",
"0.6922961",
"0.6885435",
"0.68390995",
"0.68084395",
"0.68028903",
"0.6780035",
"0.6753841",
"0.6701164",
"0.6623777",
"0.6544897",
"0.6404422",
"0.6393032",
"0.6385573",
"0.6374101",
"0.6335569",
"0.6324604",
"0.631964",
... | 0.0 | -1 |
/ renamed from: a | public static C1661h m8999a() {
return f7523b;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed fr... | [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064... | 0.0 | -1 |
/ renamed from: a | public C1614a m9000a(BluetoothDevice bluetoothDevice, int i, boolean z, String str) {
if (bluetoothDevice == null) {
return null;
}
C1614a b = m9005b(str);
C1614a b2 = m9004b();
if (b == null) {
b = new C1614a(bluetoothDevice, 0, z, i, str);
th... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed fr... | [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064... | 0.0 | -1 |
/ renamed from: a | public C1614a m9001a(String str) {
if (TextUtils.isEmpty(str)) {
f7522a.debug("centralId is empty !");
return null;
}
C1614a b = m9005b(str);
if (b != null) {
return b;
}
b = new C1614a(str);
this.f7524c.put(b.m8728a(), b);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed fr... | [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064... | 0.0 | -1 |
/ renamed from: b | public C1614a m9005b(String str) {
return (C1614a) this.f7524c.get(str);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void mo2508a(bxb bxb);",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n public void b() {\n }",
"public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }",
"@Override\n\tpublic void b2() {\n\t\t\n\t}",
"v... | [
"0.64558864",
"0.6283203",
"0.6252635",
"0.6250949",
"0.6244743",
"0.6216273",
"0.6194491",
"0.6193556",
"0.61641675",
"0.6140157",
"0.60993093",
"0.60974354",
"0.6077849",
"0.6001867",
"0.5997364",
"0.59737104",
"0.59737104",
"0.5905105",
"0.5904295",
"0.58908087",
"0.588663... | 0.0 | -1 |
/ renamed from: b | public C1614a m9004b() {
for (Entry value : this.f7524c.entrySet()) {
C1614a c1614a = (C1614a) value.getValue();
if (c1614a.m8737c() == 4) {
return c1614a;
}
}
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void mo2508a(bxb bxb);",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n public void b() {\n }",
"public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }",
"@Override\n\tpublic void b2() {\n\t\t\n\t}",
"v... | [
"0.64558864",
"0.6283203",
"0.6252635",
"0.6250949",
"0.6244743",
"0.6216273",
"0.6194491",
"0.6193556",
"0.61641675",
"0.6140157",
"0.60993093",
"0.60974354",
"0.6077849",
"0.6001867",
"0.5997364",
"0.59737104",
"0.59737104",
"0.5905105",
"0.5904295",
"0.58908087",
"0.588663... | 0.0 | -1 |
/ renamed from: c | public C1614a m9006c() {
for (Entry value : this.f7524c.entrySet()) {
C1614a c1614a = (C1614a) value.getValue();
if (c1614a.m8737c() == 2) {
return c1614a;
}
}
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void mo5289a(C5102c c5102c);",
"public static void c0() {\n\t}",
"void mo57278c();",
"private static void cajas() {\n\t\t\n\t}",
"void mo5290b(C5102c c5102c);",
"void mo80457c();",
"void mo12638c();",
"void mo28717a(zzc zzc);",
"void mo21072c();",
"@Override\n\tpublic void ccc() {\n\t\t\n\t}",
... | [
"0.64592767",
"0.644052",
"0.6431582",
"0.6418656",
"0.64118475",
"0.6397491",
"0.6250796",
"0.62470585",
"0.6244832",
"0.6232792",
"0.618864",
"0.61662376",
"0.6152657",
"0.61496663",
"0.6138441",
"0.6137171",
"0.6131197",
"0.6103783",
"0.60983956",
"0.6077118",
"0.6061723",... | 0.0 | -1 |
/ renamed from: d | public List<C1614a> m9008d() {
return this.f7525d;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void d() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"public int d()\r\n/* 79: */ {\r\n/* 80:82 */ return this.d;\r\n/* 81: */ }",
"public String d_()\r\n/* 445: */ {\r\n/* 446:459 */ return \"container.inventor... | [
"0.63810617",
"0.616207",
"0.6071929",
"0.59959275",
"0.5877492",
"0.58719957",
"0.5825175",
"0.57585526",
"0.5701679",
"0.5661244",
"0.5651699",
"0.56362265",
"0.562437",
"0.5615328",
"0.56114155",
"0.56114155",
"0.5605659",
"0.56001145",
"0.5589302",
"0.5571578",
"0.5559222... | 0.0 | -1 |
/ renamed from: a | public List<C1614a> m9002a(C1614a c1614a) {
if (this.f7525d.contains(c1614a)) {
f7522a.info("updateScanResult scanResults contains[" + c1614a.m8728a() + "]");
return null;
}
int size = this.f7525d.size();
for (int i = 0; i < size; i++) {
if (TextUtils.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed fr... | [
"0.6249595",
"0.6242955",
"0.61393225",
"0.6117684",
"0.61140615",
"0.60893875",
"0.6046927",
"0.60248226",
"0.60201806",
"0.59753186",
"0.5947817",
"0.5912414",
"0.5883872",
"0.5878469",
"0.587005",
"0.58678955",
"0.58651674",
"0.5857262",
"0.58311176",
"0.58279663",
"0.5827... | 0.0 | -1 |
/ renamed from: e | public void m9010e() {
if (this.f7525d != null) {
this.f7525d.clear();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void e() {\n\n\t}",
"public void e() {\n }",
"@Override\n\tpublic void processEvent(Event e) {\n\n\t}",
"@Override\n public void e(String TAG, String msg) {\n }",
"public String toString()\r\n {\r\n return e.toString();\r\n }",
"@Override\n\t\t\t\... | [
"0.72328156",
"0.66032064",
"0.6412127",
"0.6362734",
"0.633999",
"0.62543726",
"0.6232265",
"0.6159535",
"0.61226326",
"0.61226326",
"0.60798717",
"0.6049423",
"0.60396963",
"0.60011584",
"0.5998842",
"0.59709895",
"0.59551716",
"0.5937381",
"0.58854383",
"0.5870234",
"0.586... | 0.0 | -1 |
/ renamed from: d | public boolean m9009d(String str) {
C1614a b = m9005b(str);
if (b == null || b.m8737c() != 4) {
return false;
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void d() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"public int d()\r\n/* 79: */ {\r\n/* 80:82 */ return this.d;\r\n/* 81: */ }",
"public String d_()\r\n/* 445: */ {\r\n/* 446:459 */ return \"container.inventor... | [
"0.63810617",
"0.616207",
"0.6071929",
"0.59959275",
"0.5877492",
"0.58719957",
"0.5825175",
"0.57585526",
"0.5701679",
"0.5661244",
"0.5651699",
"0.56362265",
"0.562437",
"0.5615328",
"0.56114155",
"0.56114155",
"0.5605659",
"0.56001145",
"0.5589302",
"0.5571578",
"0.5559222... | 0.0 | -1 |
/ renamed from: f | public boolean m9011f() {
return m9004b() != null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void func_70305_f() {}",
"public static Forca get_f(){\n\t\treturn f;\n\t}",
"void mo84656a(float f);",
"public final void mo8765a(float f) {\n }",
"@Override\n public int f() {\n return 0;\n }",
"public void f() {\n }",
"void mo9704b(float f, float f2, int i);",
"void mo56155... | [
"0.7323683",
"0.65213245",
"0.649907",
"0.64541733",
"0.6415534",
"0.63602704",
"0.6325114",
"0.63194084",
"0.630473",
"0.62578535",
"0.62211406",
"0.6209556",
"0.6173324",
"0.61725706",
"0.61682224",
"0.6135272",
"0.6130462",
"0.6092916",
"0.6089471",
"0.6073019",
"0.6069227... | 0.0 | -1 |
/ renamed from: g | public boolean m9012g() {
return this.f7526e;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void g() {\n }",
"public void gored() {\n\t\t\n\t}",
"public boolean g()\r\n/* 94: */ {\r\n/* 95:94 */ return this.g;\r\n/* 96: */ }",
"public int g()\r\n/* 173: */ {\r\n/* 174:198 */ return 0;\r\n/* 175: */ }",
"public void stg() {\n\n\t}",
"public xm n()\r\n/* 274: ... | [
"0.678414",
"0.67709124",
"0.6522526",
"0.64709187",
"0.6450875",
"0.62853396",
"0.6246107",
"0.6244691",
"0.6212993",
"0.61974055",
"0.61380696",
"0.6138033",
"0.6105423",
"0.6057178",
"0.60355175",
"0.60195917",
"0.59741",
"0.596904",
"0.59063077",
"0.58127505",
"0.58101356... | 0.0 | -1 |
/ renamed from: a | public void m9003a(boolean z) {
this.f7526e = z;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }",
"public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }",
"interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}",
"interface C33292a {\n /* renamed fr... | [
"0.62497115",
"0.6242887",
"0.61394435",
"0.61176854",
"0.6114027",
"0.60893",
"0.6046901",
"0.6024682",
"0.60201293",
"0.5975212",
"0.59482527",
"0.59121317",
"0.5883635",
"0.587841",
"0.58703005",
"0.5868436",
"0.5864884",
"0.5857492",
"0.58306104",
"0.5827752",
"0.58272064... | 0.0 | -1 |
GIVEN: an ArrayList sequence represents a sequence of count and say WHERE: sequence is nonempty RETURNS: the next sequence | ArrayList<Character> nextCountAndSay(ArrayList<Character> sequence) {
ArrayList<Character> next = new ArrayList<Character>();
int count = 0;
Character c = sequence.get(0);
for(int i = 0; i < sequence.size(); i++)
//@loop_invariant count represents the length of the longest
// consecutive... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getNextUnSafeSequence(){ return value++;}",
"public static List<Integer> dynamicProgrammingRecover(List<Integer> sequence) {\r\n\t\tList<Integer> result = new ArrayList<Integer>();\r\n\t\tStack<Integer> backwardsOrder = new Stack<Integer>();\r\n\t\tint lastElem = sequence.size() - 1;\r\n\t\tbackwardsO... | [
"0.6270448",
"0.5927248",
"0.58662224",
"0.586303",
"0.58430886",
"0.5744425",
"0.57049423",
"0.5676001",
"0.5669257",
"0.56607145",
"0.561983",
"0.5593203",
"0.55736953",
"0.5539118",
"0.5539118",
"0.5539118",
"0.5527458",
"0.5484016",
"0.54732627",
"0.54722315",
"0.546348",... | 0.7199094 | 0 |
EFFECT: add all Characters of n to the given sequence | public void addCount(ArrayList<Character> sequence, int n) {
String s = Integer.toString(n);
for(int i = 0; i < s.length(); i++) {
sequence.add(s.charAt(i));
}
return;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String ntimes(String s,int n){\n\t\tStringBuffer buf = new StringBuffer();\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tbuf.append(s);\n\t\t}\n\t\treturn buf.toString();\n\t}",
"public static String nTimes(String word, int n) {\n\t\tString concatWord = \"\";\n\t\t\n\t\tfor (int i = 0; i < n; i++)\n\t\... | [
"0.66066664",
"0.64615875",
"0.64313567",
"0.6408733",
"0.6378851",
"0.62978524",
"0.6150593",
"0.60595554",
"0.60413814",
"0.6030069",
"0.6015422",
"0.59815294",
"0.59346235",
"0.5931563",
"0.57912624",
"0.5789506",
"0.57833034",
"0.57713753",
"0.57516176",
"0.5748072",
"0.5... | 0.7763167 | 0 |
EFFECT: add the given digit c into sequence | public void addSay(ArrayList<Character> sequence, Character c) {
sequence.add(c);
return;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void test(String c){\n\t\tc = (Integer.parseInt(c) + 1) + \"\";//按理说修改了c的引用了啊\n\t}",
"public void mutate(int k, char c) {\n if (isValid(c)) seq.set(k, c);\n }",
"@Override\n\tprotected void digit(char c, InterimResult ir)\n\t{\n\t\tContinuingIntegerAction ContinuingInteger = new ContinuingInte... | [
"0.64262456",
"0.6212222",
"0.61518383",
"0.6131735",
"0.6128334",
"0.61182004",
"0.6110624",
"0.60934734",
"0.60378575",
"0.5998551",
"0.59794974",
"0.5897949",
"0.5882663",
"0.5850677",
"0.5813438",
"0.57900095",
"0.5730791",
"0.5722399",
"0.5682603",
"0.5604183",
"0.560202... | 0.5865621 | 13 |
RETURNS: a String representation of the given sequence | public String listToString(ArrayList<Character> sequence) {
char[] cs = new char[sequence.size()];
for(int i = 0; i < cs.length; i++) {
cs[i] = sequence.get(i);
}
return new String(cs);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getSeq();",
"@Override\n\tpublic String toString(){\n return description + \"\\n\" + SequenceUtils.format(sequence);\n\t}",
"public String generateString() {\n List<Trip<String, String, String>> sequence = super.generateSequence(startTrip, endTrip);\n sequence = sequence.su... | [
"0.73784673",
"0.69602007",
"0.6868699",
"0.6765579",
"0.6646772",
"0.66095656",
"0.6600437",
"0.6598571",
"0.65575147",
"0.6495174",
"0.6495174",
"0.6495174",
"0.6495174",
"0.6495174",
"0.6495174",
"0.6495174",
"0.6495174",
"0.6495174",
"0.6495174",
"0.6495174",
"0.6495174",... | 0.63218164 | 43 |
tests for method countAndSay() | boolean testCountAndSay(Tester t) {
return
t.checkExpect(s.countAndSay(1), "1") &&
t.checkExpect(s.countAndSay(3), "21") &&
t.checkExpect(s.countAndSay(4), "1211");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void test() {\n\t\tSystem.out.println(countAndSay(5));\n\t\t\n\t}",
"public void testCount()\n\t{\n\t\tinfo.append(a1);\n\t\tinfo.append(a2);\n\t\tinfo.append(a3);\n\t\tassertEquals(3,info.getSynonymsCount());\n\t}",
"public static void main(String[] args) {\n\t\tSystem.out.println(countAnd... | [
"0.79558784",
"0.68172735",
"0.67039335",
"0.6546512",
"0.64237165",
"0.64237165",
"0.64237165",
"0.64237165",
"0.63727987",
"0.63727987",
"0.63727987",
"0.63727987",
"0.63727987",
"0.63727987",
"0.63550776",
"0.6331247",
"0.6331247",
"0.6328666",
"0.63094956",
"0.62904054",
... | 0.8031383 | 0 |
Operate on a single cell. | @Override
protected void operateValue(Grid src, Grid dst, int col, int row) {
// Zevenbergen-Thorne method using left and right neighbors
dst.setValue(src.getXGradient(col, row), col, row);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Value evaluateCellAt(int col, int row);",
"public abstract void processCell(int rowIndex, int colIndex);",
"protected abstract double getCell(\r\n int row,\r\n int col);",
"public void doCell(Parse cell, int column) {\n\t\tignore(cell);\n\t}",
"abstract float evalCell(Cell c, float hu... | [
"0.6943999",
"0.68750143",
"0.6615965",
"0.6480874",
"0.63487303",
"0.62967587",
"0.6257742",
"0.62415296",
"0.6224712",
"0.61804557",
"0.6042646",
"0.5998229",
"0.5988923",
"0.59745634",
"0.5967083",
"0.5963716",
"0.5963083",
"0.5948282",
"0.5943258",
"0.5929762",
"0.5927144... | 0.0 | -1 |
TODO Autogenerated method stub | public static void main(String[] args) {
GenericPair<Integer> ob1 = new GenericPair(1,1);
GenericPair<Integer> ob2 = new GenericPair(2,3);
System.out.println(ob1.equals(ob2));
System.out.println(ob1.getFirst());
System.out.println(ob1.getSecond());
System.out.println(ob2.getFirst());
System.out.println... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExr... | [
"0.66708666",
"0.65675074",
"0.65229905",
"0.6481001",
"0.64770633",
"0.64584893",
"0.6413091",
"0.63764185",
"0.6275735",
"0.62541914",
"0.6236919",
"0.6223816",
"0.62017626",
"0.61944294",
"0.61944294",
"0.61920846",
"0.61867654",
"0.6173323",
"0.61328775",
"0.61276996",
"0... | 0.0 | -1 |
Title: IApiService Description:TODO Company: adwalker | public interface IPlacementPackageService {
/**
* 更新广告
*
* @param advertisement
* @param id
* @return
* @throws Exception
*/
public PlacementPackageVo uploadPath(PackageForm advertisement)
throws Exception;
/**
* <p>
* Title: findAdvByPlacement
* </p>
* <p>
* Description:TODO
* </p>
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface ApiService {\n\n\n}",
"public interface ApiService {\n\n\n\n}",
"public interface ApiService {\n\n}",
"public interface APIService {\n}",
"public interface JanDanApiService {\n\n\n}",
"public interface IApiService {\n\n void callApiArticles();\n}",
"public interface ApiService {\n\t... | [
"0.8217553",
"0.81647354",
"0.8107776",
"0.7924995",
"0.79040664",
"0.7483531",
"0.7453548",
"0.73357606",
"0.72019625",
"0.71469396",
"0.7139586",
"0.7127241",
"0.71011025",
"0.70452875",
"0.702488",
"0.7020962",
"0.7008843",
"0.70068866",
"0.6945344",
"0.69401896",
"0.69400... | 0.0 | -1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.